@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.10

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 (288) hide show
  1. package/README.md +200 -191
  2. package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +1228 -446
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +209 -101
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +581 -189
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +741 -139
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +773 -369
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +1171 -521
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +455 -258
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +440 -140
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +430 -117
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-code-block.mjs +637 -0
  37. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
  38. package/fesm2022/aeris-ui-core-color-picker.mjs +1340 -700
  39. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-compare.mjs +823 -318
  41. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1404 -555
  43. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1471 -740
  45. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-context-menu.mjs +918 -443
  47. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-date-picker.mjs +1942 -1123
  49. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-dialog.mjs +1079 -346
  51. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  53. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-drawer.mjs +1015 -322
  55. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +410 -254
  57. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-editor.mjs +967 -587
  59. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-file-upload.mjs +1379 -522
  61. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  63. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  65. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  67. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
  69. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  70. package/fesm2022/aeris-ui-core-galleria.mjs +2446 -1117
  71. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  73. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
  75. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
  77. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
  79. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-mask.mjs +658 -255
  81. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-number.mjs +926 -291
  83. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
  85. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-input-text.mjs +625 -158
  87. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  89. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-mega-menu.mjs +613 -382
  91. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menu.mjs +1062 -472
  93. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-menubar.mjs +994 -393
  95. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-message.mjs +477 -145
  97. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-meter-group.mjs +623 -230
  99. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-multi-select.mjs +1598 -561
  101. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-order-list.mjs +592 -220
  103. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-organization-chart.mjs +485 -199
  105. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-paginator.mjs +428 -123
  107. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-panel.mjs +596 -196
  109. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-password.mjs +925 -249
  111. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
  113. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-popover.mjs +912 -375
  115. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
  117. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
  119. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-radio-button.mjs +394 -124
  121. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-rating.mjs +506 -231
  123. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  125. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-scroll-top.mjs +226 -63
  127. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-select.mjs +1845 -648
  129. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  131. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-slider.mjs +884 -430
  133. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-speed-dial.mjs +861 -337
  135. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-split-button.mjs +955 -266
  137. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
  139. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
  141. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  143. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-table.mjs +2034 -869
  145. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-tabs.mjs +789 -279
  147. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-textarea.mjs +856 -219
  149. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theme-builder.mjs +1284 -1399
  151. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-theming.mjs +132 -144
  153. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-tiered-menu.mjs +909 -441
  155. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  157. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toast.mjs +1076 -384
  159. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
  161. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
  163. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  164. package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
  165. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-select.mjs +1453 -621
  167. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree-table.mjs +2019 -940
  169. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core-tree.mjs +1107 -658
  171. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  172. package/fesm2022/aeris-ui-core.mjs +985 -316
  173. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  174. package/package.json +20 -8
  175. package/schematics/ng-add/schema.json +1 -1
  176. package/schematics/runtime/schematics/ng-add/options.js +4 -4
  177. package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
  178. package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
  179. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
  180. package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
  181. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  182. package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
  183. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  184. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +28 -5
  185. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  186. package/schematics/runtime/theme-builder/aeris-theme-generator.js +2 -2
  187. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  188. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +22 -8
  189. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  190. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +12 -4
  191. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  192. package/schematics/runtime/theme-builder/aeris-theme-validation.js +7 -1
  193. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  194. package/schematics/runtime/theme-builder/aeris-theme.js +49 -33
  195. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  196. package/styles/_fallback-colors.scss +10 -0
  197. package/styles/_mobile.scss +16 -0
  198. package/styles/_tokens.scss +5 -5
  199. package/styles/aeris.css +412 -125
  200. package/styles/controls.css +61 -29
  201. package/tools/aeris-theme.mjs +2 -2
  202. package/tools/aeris-theme.schema.json +5 -2
  203. package/types/aeris-ui-core-accordion.d.ts +167 -93
  204. package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
  205. package/types/aeris-ui-core-auto-complete.d.ts +327 -140
  206. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  207. package/types/aeris-ui-core-avatar.d.ts +112 -42
  208. package/types/aeris-ui-core-badge.d.ts +160 -46
  209. package/types/aeris-ui-core-block-ui.d.ts +47 -27
  210. package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
  211. package/types/aeris-ui-core-button-group.d.ts +37 -16
  212. package/types/aeris-ui-core-button.d.ts +226 -67
  213. package/types/aeris-ui-core-card.d.ts +74 -37
  214. package/types/aeris-ui-core-carousel.d.ts +201 -117
  215. package/types/aeris-ui-core-cascade-select.d.ts +257 -123
  216. package/types/aeris-ui-core-chart.d.ts +134 -84
  217. package/types/aeris-ui-core-checkbox.d.ts +139 -54
  218. package/types/aeris-ui-core-chip.d.ts +116 -51
  219. package/types/aeris-ui-core-class-names.d.ts +22 -20
  220. package/types/aeris-ui-core-code-block.d.ts +188 -0
  221. package/types/aeris-ui-core-color-picker.d.ts +348 -143
  222. package/types/aeris-ui-core-compare.d.ts +224 -102
  223. package/types/aeris-ui-core-confirm-dialog.d.ts +442 -245
  224. package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
  225. package/types/aeris-ui-core-context-menu.d.ts +264 -146
  226. package/types/aeris-ui-core-date-picker.d.ts +489 -217
  227. package/types/aeris-ui-core-dialog.d.ts +288 -117
  228. package/types/aeris-ui-core-divider.d.ts +58 -20
  229. package/types/aeris-ui-core-drawer.d.ts +273 -112
  230. package/types/aeris-ui-core-dynamic-dialog.d.ts +158 -137
  231. package/types/aeris-ui-core-editor.d.ts +250 -123
  232. package/types/aeris-ui-core-file-upload.d.ts +367 -197
  233. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  234. package/types/aeris-ui-core-fluid.d.ts +12 -9
  235. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  236. package/types/aeris-ui-core-form-field.d.ts +163 -0
  237. package/types/aeris-ui-core-galleria.d.ts +588 -256
  238. package/types/aeris-ui-core-glass.d.ts +24 -11
  239. package/types/aeris-ui-core-icon-field.d.ts +94 -32
  240. package/types/aeris-ui-core-inplace.d.ts +123 -62
  241. package/types/aeris-ui-core-input-group.d.ts +84 -33
  242. package/types/aeris-ui-core-input-mask.d.ts +194 -69
  243. package/types/aeris-ui-core-input-number.d.ts +272 -87
  244. package/types/aeris-ui-core-input-otp.d.ts +191 -81
  245. package/types/aeris-ui-core-input-text.d.ts +185 -60
  246. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  247. package/types/aeris-ui-core-mega-menu.d.ts +175 -121
  248. package/types/aeris-ui-core-menu.d.ts +277 -168
  249. package/types/aeris-ui-core-menubar.d.ts +273 -135
  250. package/types/aeris-ui-core-message.d.ts +132 -60
  251. package/types/aeris-ui-core-meter-group.d.ts +163 -90
  252. package/types/aeris-ui-core-multi-select.d.ts +439 -180
  253. package/types/aeris-ui-core-order-list.d.ts +144 -66
  254. package/types/aeris-ui-core-organization-chart.d.ts +133 -77
  255. package/types/aeris-ui-core-paginator.d.ts +93 -38
  256. package/types/aeris-ui-core-panel.d.ts +149 -78
  257. package/types/aeris-ui-core-password.d.ts +258 -102
  258. package/types/aeris-ui-core-pick-list.d.ts +374 -179
  259. package/types/aeris-ui-core-popover.d.ts +219 -105
  260. package/types/aeris-ui-core-progress-bar.d.ts +157 -73
  261. package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
  262. package/types/aeris-ui-core-radio-button.d.ts +124 -50
  263. package/types/aeris-ui-core-rating.d.ts +149 -76
  264. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  265. package/types/aeris-ui-core-scroll-top.d.ts +66 -29
  266. package/types/aeris-ui-core-select.d.ts +475 -217
  267. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  268. package/types/aeris-ui-core-slider.d.ts +270 -115
  269. package/types/aeris-ui-core-speed-dial.d.ts +241 -111
  270. package/types/aeris-ui-core-split-button.d.ts +267 -113
  271. package/types/aeris-ui-core-splitter.d.ts +225 -106
  272. package/types/aeris-ui-core-stepper.d.ts +184 -91
  273. package/types/aeris-ui-core-style-class.d.ts +141 -71
  274. package/types/aeris-ui-core-table.d.ts +596 -304
  275. package/types/aeris-ui-core-tabs.d.ts +181 -76
  276. package/types/aeris-ui-core-textarea.d.ts +261 -78
  277. package/types/aeris-ui-core-theme-builder.d.ts +472 -450
  278. package/types/aeris-ui-core-theming.d.ts +42 -45
  279. package/types/aeris-ui-core-tiered-menu.d.ts +251 -142
  280. package/types/aeris-ui-core-timeline.d.ts +109 -71
  281. package/types/aeris-ui-core-toast.d.ts +225 -115
  282. package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
  283. package/types/aeris-ui-core-toolbar.d.ts +98 -41
  284. package/types/aeris-ui-core-tooltip.d.ts +157 -88
  285. package/types/aeris-ui-core-tree-select.d.ts +364 -171
  286. package/types/aeris-ui-core-tree-table.d.ts +566 -286
  287. package/types/aeris-ui-core-tree.d.ts +270 -165
  288. package/types/aeris-ui-core.d.ts +197 -72
@@ -1,223 +1,568 @@
1
- import { NgTemplateOutlet } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, TemplateRef, Directive, ElementRef, viewChild, signal, model, input, booleanAttribute, output, contentChild, computed, forwardRef, Component } from '@angular/core';
4
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
-
6
- class AerisPasswordHeaderTemplate {
7
- template = inject(TemplateRef);
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisPasswordHeaderTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisPasswordHeaderTemplate, isStandalone: true, selector: "ng-template[aerisPasswordHeader]", ngImport: i0 });
10
- }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisPasswordHeaderTemplate, decorators: [{
12
- type: Directive,
13
- args: [{ selector: 'ng-template[aerisPasswordHeader]' }]
14
- }] });
15
- class AerisPasswordFeedbackTemplate {
16
- template = inject(TemplateRef);
17
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisPasswordFeedbackTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
18
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisPasswordFeedbackTemplate, isStandalone: true, selector: "ng-template[aerisPasswordFeedback]", ngImport: i0 });
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisPasswordFeedbackTemplate, decorators: [{
21
- type: Directive,
22
- args: [{ selector: 'ng-template[aerisPasswordFeedback]' }]
23
- }] });
24
- class AerisPasswordFooterTemplate {
25
- template = inject(TemplateRef);
26
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisPasswordFooterTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
27
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisPasswordFooterTemplate, isStandalone: true, selector: "ng-template[aerisPasswordFooter]", ngImport: i0 });
28
- }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisPasswordFooterTemplate, decorators: [{
30
- type: Directive,
31
- args: [{ selector: 'ng-template[aerisPasswordFooter]' }]
32
- }] });
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, forwardRef, inject, input, model, output, signal, viewChild } from "@angular/core";
4
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
5
+ import { ɵAerisAppendTo, ɵaerisDisplayInvalid } from "@aeris-ui/core";
6
+ var AerisPasswordHeaderTemplate = class AerisPasswordHeaderTemplate {
7
+ template = inject(TemplateRef);
8
+ static ɵfac = i0.ɵɵngDeclareFactory({
9
+ minVersion: "12.0.0",
10
+ version: "22.2.2",
11
+ ngImport: i0,
12
+ type: AerisPasswordHeaderTemplate,
13
+ deps: [],
14
+ target: i0.ɵɵFactoryTarget.Directive
15
+ });
16
+ static ɵdir = i0.ɵɵngDeclareDirective({
17
+ minVersion: "14.0.0",
18
+ version: "22.2.2",
19
+ type: AerisPasswordHeaderTemplate,
20
+ isStandalone: true,
21
+ selector: "ng-template[aerisPasswordHeader]",
22
+ ngImport: i0
23
+ });
24
+ };
25
+ i0.ɵɵngDeclareClassMetadata({
26
+ minVersion: "12.0.0",
27
+ version: "22.2.2",
28
+ ngImport: i0,
29
+ type: AerisPasswordHeaderTemplate,
30
+ decorators: [{
31
+ type: Directive,
32
+ args: [{ selector: "ng-template[aerisPasswordHeader]" }]
33
+ }]
34
+ });
35
+ var AerisPasswordFeedbackTemplate = class AerisPasswordFeedbackTemplate {
36
+ template = inject(TemplateRef);
37
+ static ɵfac = i0.ɵɵngDeclareFactory({
38
+ minVersion: "12.0.0",
39
+ version: "22.2.2",
40
+ ngImport: i0,
41
+ type: AerisPasswordFeedbackTemplate,
42
+ deps: [],
43
+ target: i0.ɵɵFactoryTarget.Directive
44
+ });
45
+ static ɵdir = i0.ɵɵngDeclareDirective({
46
+ minVersion: "14.0.0",
47
+ version: "22.2.2",
48
+ type: AerisPasswordFeedbackTemplate,
49
+ isStandalone: true,
50
+ selector: "ng-template[aerisPasswordFeedback]",
51
+ ngImport: i0
52
+ });
53
+ };
54
+ i0.ɵɵngDeclareClassMetadata({
55
+ minVersion: "12.0.0",
56
+ version: "22.2.2",
57
+ ngImport: i0,
58
+ type: AerisPasswordFeedbackTemplate,
59
+ decorators: [{
60
+ type: Directive,
61
+ args: [{ selector: "ng-template[aerisPasswordFeedback]" }]
62
+ }]
63
+ });
64
+ var AerisPasswordFooterTemplate = class AerisPasswordFooterTemplate {
65
+ template = inject(TemplateRef);
66
+ static ɵfac = i0.ɵɵngDeclareFactory({
67
+ minVersion: "12.0.0",
68
+ version: "22.2.2",
69
+ ngImport: i0,
70
+ type: AerisPasswordFooterTemplate,
71
+ deps: [],
72
+ target: i0.ɵɵFactoryTarget.Directive
73
+ });
74
+ static ɵdir = i0.ɵɵngDeclareDirective({
75
+ minVersion: "14.0.0",
76
+ version: "22.2.2",
77
+ type: AerisPasswordFooterTemplate,
78
+ isStandalone: true,
79
+ selector: "ng-template[aerisPasswordFooter]",
80
+ ngImport: i0
81
+ });
82
+ };
83
+ i0.ɵɵngDeclareClassMetadata({
84
+ minVersion: "12.0.0",
85
+ version: "22.2.2",
86
+ ngImport: i0,
87
+ type: AerisPasswordFooterTemplate,
88
+ decorators: [{
89
+ type: Directive,
90
+ args: [{ selector: "ng-template[aerisPasswordFooter]" }]
91
+ }]
92
+ });
33
93
  const scoreFor = (metCount) => {
34
- if (metCount <= 2)
35
- return 1;
36
- if (metCount <= 4)
37
- return 2;
38
- return 3;
94
+ if (metCount <= 2) return 1;
95
+ if (metCount <= 4) return 2;
96
+ return 3;
39
97
  };
40
98
  const evaluateAerisPassword = (value, minLength) => {
41
- const requirements = [
42
- { label: `At least ${minLength} characters`, met: value.length >= minLength },
43
- { label: 'One uppercase letter', met: /[A-Z]/.test(value) },
44
- { label: 'One lowercase letter', met: /[a-z]/.test(value) },
45
- { label: 'One number', met: /\d/.test(value) },
46
- { label: 'One symbol', met: /[^A-Za-z0-9\s]/.test(value) },
47
- ];
48
- if (!value) {
49
- return { score: 0, strength: 'empty', label: 'Enter a password', requirements };
50
- }
51
- const score = scoreFor(requirements.filter((requirement) => requirement.met).length);
52
- const strength = score === 1 ? 'weak' : score === 2 ? 'medium' : 'strong';
53
- const label = strength === 'weak' ? 'Weak password' : strength === 'medium' ? 'Medium password' : 'Strong password';
54
- return { score, strength, label, requirements };
99
+ const requirements = [
100
+ {
101
+ label: `At least ${minLength} characters`,
102
+ met: value.length >= minLength
103
+ },
104
+ {
105
+ label: "One uppercase letter",
106
+ met: /[A-Z]/.test(value)
107
+ },
108
+ {
109
+ label: "One lowercase letter",
110
+ met: /[a-z]/.test(value)
111
+ },
112
+ {
113
+ label: "One number",
114
+ met: /\d/.test(value)
115
+ },
116
+ {
117
+ label: "One symbol",
118
+ met: /[^A-Za-z0-9\s]/.test(value)
119
+ }
120
+ ];
121
+ if (!value) return {
122
+ score: 0,
123
+ strength: "empty",
124
+ label: "Enter a password",
125
+ requirements
126
+ };
127
+ const score = scoreFor(requirements.filter((requirement) => requirement.met).length);
128
+ const strength = score === 1 ? "weak" : score === 2 ? "medium" : "strong";
129
+ return {
130
+ score,
131
+ strength,
132
+ label: strength === "weak" ? "Weak password" : strength === "medium" ? "Medium password" : "Strong password",
133
+ requirements
134
+ };
55
135
  };
56
136
  let passwordId = 0;
57
- class AerisPasswordComponent {
58
- host = inject(ElementRef);
59
- inputElement = viewChild('passwordInput', /* @ts-ignore */
60
- ...(ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []));
61
- generatedId = `aeris-password-${++passwordId}`;
62
- formDisabled = signal(false, /* @ts-ignore */
63
- ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
64
- hasFocus = signal(false, /* @ts-ignore */
65
- ...(ngDevMode ? [{ debugName: "hasFocus" }] : /* istanbul ignore next */ []));
66
- onChange = () => undefined;
67
- onTouched = () => undefined;
68
- value = model('', /* @ts-ignore */
69
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
70
- visible = model(false, /* @ts-ignore */
71
- ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
72
- inputId = input('', /* @ts-ignore */
73
- ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
74
- name = input('', /* @ts-ignore */
75
- ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
76
- placeholder = input('', /* @ts-ignore */
77
- ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
78
- autocomplete = input('current-password', /* @ts-ignore */
79
- ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
80
- ariaLabel = input('', /* @ts-ignore */
81
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
82
- ariaLabelledby = input('', /* @ts-ignore */
83
- ...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
84
- ariaDescribedby = input('', /* @ts-ignore */
85
- ...(ngDevMode ? [{ debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
86
- size = input('md', /* @ts-ignore */
87
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
88
- appearance = input('outline', /* @ts-ignore */
89
- ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
90
- minLength = input(8, /* @ts-ignore */
91
- ...(ngDevMode ? [{ debugName: "minLength" }] : /* istanbul ignore next */ []));
92
- maxLength = input(/* @ts-ignore */
93
- ...(ngDevMode ? [undefined, { debugName: "maxLength" }] : /* istanbul ignore next */ []));
94
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
95
- readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
96
- required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
97
- invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
98
- fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
99
- toggleMask = input(true, { ...(ngDevMode ? { debugName: "toggleMask" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
100
- feedback = input(true, { ...(ngDevMode ? { debugName: "feedback" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
101
- showRequirements = input(true, { ...(ngDevMode ? { debugName: "showRequirements" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
102
- clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
103
- clearButtonAriaLabel = input('Clear password', /* @ts-ignore */
104
- ...(ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []));
105
- showPasswordAriaLabel = input('Show password', /* @ts-ignore */
106
- ...(ngDevMode ? [{ debugName: "showPasswordAriaLabel" }] : /* istanbul ignore next */ []));
107
- hidePasswordAriaLabel = input('Hide password', /* @ts-ignore */
108
- ...(ngDevMode ? [{ debugName: "hidePasswordAriaLabel" }] : /* istanbul ignore next */ []));
109
- strengthEvaluator = input(evaluateAerisPassword, /* @ts-ignore */
110
- ...(ngDevMode ? [{ debugName: "strengthEvaluator" }] : /* istanbul ignore next */ []));
111
- valueInput = output();
112
- visibilityChanged = output();
113
- focused = output();
114
- blurred = output();
115
- touch = output();
116
- feedbackId = `${this.generatedId}-feedback`;
117
- headerTemplate = contentChild(AerisPasswordHeaderTemplate, /* @ts-ignore */
118
- ...(ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []));
119
- feedbackTemplate = contentChild(AerisPasswordFeedbackTemplate, /* @ts-ignore */
120
- ...(ngDevMode ? [{ debugName: "feedbackTemplate" }] : /* istanbul ignore next */ []));
121
- footerTemplate = contentChild(AerisPasswordFooterTemplate, /* @ts-ignore */
122
- ...(ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []));
123
- resolvedInputId = computed(() => this.inputId() || this.generatedId, /* @ts-ignore */
124
- ...(ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []));
125
- effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), /* @ts-ignore */
126
- ...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
127
- strengthResult = computed(() => this.strengthEvaluator()(this.value(), this.minLength()), /* @ts-ignore */
128
- ...(ngDevMode ? [{ debugName: "strengthResult" }] : /* istanbul ignore next */ []));
129
- feedbackVisible = computed(() => this.feedback() && this.hasFocus() && !this.effectiveDisabled(), /* @ts-ignore */
130
- ...(ngDevMode ? [{ debugName: "feedbackVisible" }] : /* istanbul ignore next */ []));
131
- showClearButton = computed(() => this.clearable() &&
132
- this.value().length > 0 &&
133
- !this.effectiveDisabled() &&
134
- !this.readonly(), /* @ts-ignore */
135
- ...(ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []));
136
- resolvedAriaDescribedby = computed(() => {
137
- const ids = [
138
- this.ariaDescribedby(),
139
- this.feedbackVisible() ? this.feedbackId : '',
140
- ].filter(Boolean);
141
- return ids.length ? ids.join(' ') : null;
142
- }, /* @ts-ignore */
143
- ...(ngDevMode ? [{ debugName: "resolvedAriaDescribedby" }] : /* istanbul ignore next */ []));
144
- writeValue(value) {
145
- this.value.set(typeof value === 'string' ? value : value == null ? '' : String(value));
146
- }
147
- registerOnChange(callback) {
148
- this.onChange = callback;
149
- }
150
- registerOnTouched(callback) {
151
- this.onTouched = callback;
152
- }
153
- setDisabledState(disabled) {
154
- this.formDisabled.set(disabled);
155
- }
156
- focus(options) {
157
- this.inputElement()?.nativeElement.focus(options);
158
- }
159
- clear() {
160
- if (this.effectiveDisabled() || this.readonly())
161
- return;
162
- this.setValue('');
163
- this.focus();
164
- }
165
- show() {
166
- this.setVisible(true);
167
- }
168
- hide() {
169
- this.setVisible(false);
170
- }
171
- toggleVisibility() {
172
- if (this.effectiveDisabled())
173
- return;
174
- this.setVisible(!this.visible());
175
- queueMicrotask(() => this.focus());
176
- }
177
- handleInput(event) {
178
- this.setValue(event.target.value);
179
- }
180
- handleFocus(event) {
181
- this.hasFocus.set(true);
182
- this.focused.emit(event);
183
- }
184
- handleInputBlur(event) {
185
- this.blurred.emit(event);
186
- }
187
- handleFocusOut(event) {
188
- const nextTarget = event.relatedTarget;
189
- if (nextTarget instanceof Node && this.host.nativeElement.contains(nextTarget))
190
- return;
191
- this.hasFocus.set(false);
192
- this.touch.emit();
193
- this.onTouched();
194
- }
195
- setValue(value) {
196
- if (this.value() === value)
197
- return;
198
- this.value.set(value);
199
- this.valueInput.emit(value);
200
- this.onChange(value);
201
- }
202
- setVisible(visible) {
203
- if (this.visible() === visible)
204
- return;
205
- this.visible.set(visible);
206
- this.visibilityChanged.emit(visible);
207
- }
208
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
209
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisPasswordComponent, isStandalone: true, selector: "aeris-password", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", 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 }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", 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 }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", 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 }, toggleMask: { classPropertyName: "toggleMask", publicName: "toggleMask", isSignal: true, isRequired: false, transformFunction: null }, feedback: { classPropertyName: "feedback", publicName: "feedback", isSignal: true, isRequired: false, transformFunction: null }, showRequirements: { classPropertyName: "showRequirements", publicName: "showRequirements", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, showPasswordAriaLabel: { classPropertyName: "showPasswordAriaLabel", publicName: "showPasswordAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, hidePasswordAriaLabel: { classPropertyName: "hidePasswordAriaLabel", publicName: "hidePasswordAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, strengthEvaluator: { classPropertyName: "strengthEvaluator", publicName: "strengthEvaluator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", visible: "visibleChange", valueInput: "valueInput", visibilityChanged: "visibilityChanged", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
210
- {
211
- provide: NG_VALUE_ACCESSOR,
212
- useExisting: forwardRef(() => AerisPasswordComponent),
213
- multi: true,
214
- },
215
- ], queries: [{ propertyName: "headerTemplate", first: true, predicate: AerisPasswordHeaderTemplate, descendants: true, isSignal: true }, { propertyName: "feedbackTemplate", first: true, predicate: AerisPasswordFeedbackTemplate, descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: AerisPasswordFooterTemplate, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["passwordInput"], descendants: true, isSignal: true }], ngImport: i0, template: `
137
+ var AerisPasswordComponent = class AerisPasswordComponent {
138
+ host = inject(ElementRef);
139
+ inputElement = viewChild("passwordInput", ...ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []);
140
+ feedbackPanel = viewChild("feedbackPanel", ...ngDevMode ? [{ debugName: "feedbackPanel" }] : /* istanbul ignore next */ []);
141
+ feedbackPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "feedbackPortal" }] : /* istanbul ignore next */ []);
142
+ generatedId = `aeris-password-${++passwordId}`;
143
+ formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
144
+ hasFocus = signal(false, ...ngDevMode ? [{ debugName: "hasFocus" }] : /* istanbul ignore next */ []);
145
+ onChange = () => void 0;
146
+ onTouched = () => void 0;
147
+ value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
148
+ visible = model(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
149
+ appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
150
+ viewportMargin = input(8, ...ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []);
151
+ inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
152
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
153
+ placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
154
+ autocomplete = input("current-password", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
155
+ ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
156
+ ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
157
+ ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
158
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
159
+ appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
160
+ minLength = input(8, ...ngDevMode ? [{ debugName: "minLength" }] : /* istanbul ignore next */ []);
161
+ maxLength = input(...ngDevMode ? [void 0, { debugName: "maxLength" }] : /* istanbul ignore next */ []);
162
+ disabled = input(false, {
163
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
164
+ transform: booleanAttribute
165
+ });
166
+ readonly = input(false, {
167
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
168
+ transform: booleanAttribute
169
+ });
170
+ required = input(false, {
171
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
172
+ transform: booleanAttribute
173
+ });
174
+ invalid = input(false, {
175
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
176
+ transform: booleanAttribute
177
+ });
178
+ touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
179
+ displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
180
+ fluid = input(false, {
181
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
182
+ transform: booleanAttribute
183
+ });
184
+ toggleMask = input(true, {
185
+ ...ngDevMode ? { debugName: "toggleMask" } : /* istanbul ignore next */ {},
186
+ transform: booleanAttribute
187
+ });
188
+ feedback = input(true, {
189
+ ...ngDevMode ? { debugName: "feedback" } : /* istanbul ignore next */ {},
190
+ transform: booleanAttribute
191
+ });
192
+ showRequirements = input(true, {
193
+ ...ngDevMode ? { debugName: "showRequirements" } : /* istanbul ignore next */ {},
194
+ transform: booleanAttribute
195
+ });
196
+ clearable = input(false, {
197
+ ...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
198
+ transform: booleanAttribute
199
+ });
200
+ clearButtonAriaLabel = input("Clear password", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
201
+ showPasswordAriaLabel = input("Show password", ...ngDevMode ? [{ debugName: "showPasswordAriaLabel" }] : /* istanbul ignore next */ []);
202
+ hidePasswordAriaLabel = input("Hide password", ...ngDevMode ? [{ debugName: "hidePasswordAriaLabel" }] : /* istanbul ignore next */ []);
203
+ strengthEvaluator = input(evaluateAerisPassword, ...ngDevMode ? [{ debugName: "strengthEvaluator" }] : /* istanbul ignore next */ []);
204
+ visibilityChanged = output();
205
+ focused = output();
206
+ blurred = output();
207
+ touch = output();
208
+ feedbackId = `${this.generatedId}-feedback`;
209
+ headerTemplate = contentChild(AerisPasswordHeaderTemplate, ...ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []);
210
+ feedbackTemplate = contentChild(AerisPasswordFeedbackTemplate, ...ngDevMode ? [{ debugName: "feedbackTemplate" }] : /* istanbul ignore next */ []);
211
+ footerTemplate = contentChild(AerisPasswordFooterTemplate, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
212
+ resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
213
+ effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
214
+ strengthResult = computed(() => this.strengthEvaluator()(this.value(), this.minLength()), ...ngDevMode ? [{ debugName: "strengthResult" }] : /* istanbul ignore next */ []);
215
+ feedbackVisible = computed(() => this.feedback() && this.hasFocus() && !this.effectiveDisabled(), ...ngDevMode ? [{ debugName: "feedbackVisible" }] : /* istanbul ignore next */ []);
216
+ showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
217
+ resolvedAriaDescribedby = computed(() => {
218
+ const ids = [this.ariaDescribedBy(), this.feedbackVisible() ? this.feedbackId : ""].filter(Boolean);
219
+ return ids.length ? ids.join(" ") : null;
220
+ }, ...ngDevMode ? [{ debugName: "resolvedAriaDescribedby" }] : /* istanbul ignore next */ []);
221
+ writeValue(value) {
222
+ this.value.set(typeof value === "string" ? value : value == null ? "" : String(value));
223
+ }
224
+ registerOnChange(callback) {
225
+ this.onChange = callback;
226
+ }
227
+ registerOnTouched(callback) {
228
+ this.onTouched = callback;
229
+ }
230
+ setDisabledState(disabled) {
231
+ this.formDisabled.set(disabled);
232
+ }
233
+ focus(options) {
234
+ this.inputElement()?.nativeElement.focus(options);
235
+ }
236
+ clear() {
237
+ if (this.effectiveDisabled() || this.readonly()) return;
238
+ this.setValue("");
239
+ this.focus();
240
+ }
241
+ show() {
242
+ this.setVisible(true);
243
+ }
244
+ hide() {
245
+ this.setVisible(false);
246
+ }
247
+ toggleVisibility() {
248
+ if (this.effectiveDisabled()) return;
249
+ this.setVisible(!this.visible());
250
+ queueMicrotask(() => this.focus());
251
+ }
252
+ handleInput(event) {
253
+ this.setValue(event.target.value);
254
+ }
255
+ handleFocus(event) {
256
+ this.hasFocus.set(true);
257
+ this.focused.emit(event);
258
+ }
259
+ handleInputBlur(event) {
260
+ this.blurred.emit(event);
261
+ }
262
+ handleFocusOut(event) {
263
+ const nextTarget = event.relatedTarget;
264
+ if (nextTarget instanceof Node && (this.host.nativeElement.contains(nextTarget) || this.feedbackPanel()?.nativeElement.contains(nextTarget))) return;
265
+ this.feedbackPortal()?.restore();
266
+ this.hasFocus.set(false);
267
+ this.touch.emit();
268
+ this.onTouched();
269
+ }
270
+ setValue(value) {
271
+ if (this.value() === value) return;
272
+ this.value.set(value);
273
+ this.onChange(value);
274
+ }
275
+ setVisible(visible) {
276
+ if (this.visible() === visible) return;
277
+ this.visible.set(visible);
278
+ this.visibilityChanged.emit(visible);
279
+ }
280
+ static ɵfac = i0.ɵɵngDeclareFactory({
281
+ minVersion: "12.0.0",
282
+ version: "22.2.2",
283
+ ngImport: i0,
284
+ type: AerisPasswordComponent,
285
+ deps: [],
286
+ target: i0.ɵɵFactoryTarget.Component
287
+ });
288
+ static ɵcmp = i0.ɵɵngDeclareComponent({
289
+ minVersion: "17.0.0",
290
+ version: "22.2.2",
291
+ type: AerisPasswordComponent,
292
+ isStandalone: true,
293
+ selector: "aeris-password",
294
+ inputs: {
295
+ value: {
296
+ classPropertyName: "value",
297
+ publicName: "value",
298
+ isSignal: true,
299
+ isRequired: false,
300
+ transformFunction: null
301
+ },
302
+ visible: {
303
+ classPropertyName: "visible",
304
+ publicName: "visible",
305
+ isSignal: true,
306
+ isRequired: false,
307
+ transformFunction: null
308
+ },
309
+ appendTo: {
310
+ classPropertyName: "appendTo",
311
+ publicName: "appendTo",
312
+ isSignal: true,
313
+ isRequired: false,
314
+ transformFunction: null
315
+ },
316
+ viewportMargin: {
317
+ classPropertyName: "viewportMargin",
318
+ publicName: "viewportMargin",
319
+ isSignal: true,
320
+ isRequired: false,
321
+ transformFunction: null
322
+ },
323
+ inputId: {
324
+ classPropertyName: "inputId",
325
+ publicName: "inputId",
326
+ isSignal: true,
327
+ isRequired: false,
328
+ transformFunction: null
329
+ },
330
+ name: {
331
+ classPropertyName: "name",
332
+ publicName: "name",
333
+ isSignal: true,
334
+ isRequired: false,
335
+ transformFunction: null
336
+ },
337
+ placeholder: {
338
+ classPropertyName: "placeholder",
339
+ publicName: "placeholder",
340
+ isSignal: true,
341
+ isRequired: false,
342
+ transformFunction: null
343
+ },
344
+ autocomplete: {
345
+ classPropertyName: "autocomplete",
346
+ publicName: "autocomplete",
347
+ isSignal: true,
348
+ isRequired: false,
349
+ transformFunction: null
350
+ },
351
+ ariaLabel: {
352
+ classPropertyName: "ariaLabel",
353
+ publicName: "ariaLabel",
354
+ isSignal: true,
355
+ isRequired: false,
356
+ transformFunction: null
357
+ },
358
+ ariaLabelledBy: {
359
+ classPropertyName: "ariaLabelledBy",
360
+ publicName: "ariaLabelledBy",
361
+ isSignal: true,
362
+ isRequired: false,
363
+ transformFunction: null
364
+ },
365
+ ariaDescribedBy: {
366
+ classPropertyName: "ariaDescribedBy",
367
+ publicName: "ariaDescribedBy",
368
+ isSignal: true,
369
+ isRequired: false,
370
+ transformFunction: null
371
+ },
372
+ size: {
373
+ classPropertyName: "size",
374
+ publicName: "size",
375
+ isSignal: true,
376
+ isRequired: false,
377
+ transformFunction: null
378
+ },
379
+ appearance: {
380
+ classPropertyName: "appearance",
381
+ publicName: "appearance",
382
+ isSignal: true,
383
+ isRequired: false,
384
+ transformFunction: null
385
+ },
386
+ minLength: {
387
+ classPropertyName: "minLength",
388
+ publicName: "minLength",
389
+ isSignal: true,
390
+ isRequired: false,
391
+ transformFunction: null
392
+ },
393
+ maxLength: {
394
+ classPropertyName: "maxLength",
395
+ publicName: "maxLength",
396
+ isSignal: true,
397
+ isRequired: false,
398
+ transformFunction: null
399
+ },
400
+ disabled: {
401
+ classPropertyName: "disabled",
402
+ publicName: "disabled",
403
+ isSignal: true,
404
+ isRequired: false,
405
+ transformFunction: null
406
+ },
407
+ readonly: {
408
+ classPropertyName: "readonly",
409
+ publicName: "readonly",
410
+ isSignal: true,
411
+ isRequired: false,
412
+ transformFunction: null
413
+ },
414
+ required: {
415
+ classPropertyName: "required",
416
+ publicName: "required",
417
+ isSignal: true,
418
+ isRequired: false,
419
+ transformFunction: null
420
+ },
421
+ invalid: {
422
+ classPropertyName: "invalid",
423
+ publicName: "invalid",
424
+ isSignal: true,
425
+ isRequired: false,
426
+ transformFunction: null
427
+ },
428
+ touched: {
429
+ classPropertyName: "touched",
430
+ publicName: "touched",
431
+ isSignal: true,
432
+ isRequired: false,
433
+ transformFunction: null
434
+ },
435
+ fluid: {
436
+ classPropertyName: "fluid",
437
+ publicName: "fluid",
438
+ isSignal: true,
439
+ isRequired: false,
440
+ transformFunction: null
441
+ },
442
+ toggleMask: {
443
+ classPropertyName: "toggleMask",
444
+ publicName: "toggleMask",
445
+ isSignal: true,
446
+ isRequired: false,
447
+ transformFunction: null
448
+ },
449
+ feedback: {
450
+ classPropertyName: "feedback",
451
+ publicName: "feedback",
452
+ isSignal: true,
453
+ isRequired: false,
454
+ transformFunction: null
455
+ },
456
+ showRequirements: {
457
+ classPropertyName: "showRequirements",
458
+ publicName: "showRequirements",
459
+ isSignal: true,
460
+ isRequired: false,
461
+ transformFunction: null
462
+ },
463
+ clearable: {
464
+ classPropertyName: "clearable",
465
+ publicName: "clearable",
466
+ isSignal: true,
467
+ isRequired: false,
468
+ transformFunction: null
469
+ },
470
+ clearButtonAriaLabel: {
471
+ classPropertyName: "clearButtonAriaLabel",
472
+ publicName: "clearButtonAriaLabel",
473
+ isSignal: true,
474
+ isRequired: false,
475
+ transformFunction: null
476
+ },
477
+ showPasswordAriaLabel: {
478
+ classPropertyName: "showPasswordAriaLabel",
479
+ publicName: "showPasswordAriaLabel",
480
+ isSignal: true,
481
+ isRequired: false,
482
+ transformFunction: null
483
+ },
484
+ hidePasswordAriaLabel: {
485
+ classPropertyName: "hidePasswordAriaLabel",
486
+ publicName: "hidePasswordAriaLabel",
487
+ isSignal: true,
488
+ isRequired: false,
489
+ transformFunction: null
490
+ },
491
+ strengthEvaluator: {
492
+ classPropertyName: "strengthEvaluator",
493
+ publicName: "strengthEvaluator",
494
+ isSignal: true,
495
+ isRequired: false,
496
+ transformFunction: null
497
+ }
498
+ },
499
+ outputs: {
500
+ value: "valueChange",
501
+ visible: "visibleChange",
502
+ visibilityChanged: "visibilityChanged",
503
+ focused: "focused",
504
+ blurred: "blurred",
505
+ touch: "touch"
506
+ },
507
+ host: { properties: { "attr.data-fluid": "fluid() || null" } },
508
+ providers: [{
509
+ provide: NG_VALUE_ACCESSOR,
510
+ useExisting: forwardRef(() => AerisPasswordComponent),
511
+ multi: true
512
+ }],
513
+ queries: [
514
+ {
515
+ propertyName: "headerTemplate",
516
+ first: true,
517
+ predicate: AerisPasswordHeaderTemplate,
518
+ descendants: true,
519
+ isSignal: true
520
+ },
521
+ {
522
+ propertyName: "feedbackTemplate",
523
+ first: true,
524
+ predicate: AerisPasswordFeedbackTemplate,
525
+ descendants: true,
526
+ isSignal: true
527
+ },
528
+ {
529
+ propertyName: "footerTemplate",
530
+ first: true,
531
+ predicate: AerisPasswordFooterTemplate,
532
+ descendants: true,
533
+ isSignal: true
534
+ }
535
+ ],
536
+ viewQueries: [
537
+ {
538
+ propertyName: "inputElement",
539
+ first: true,
540
+ predicate: ["passwordInput"],
541
+ descendants: true,
542
+ isSignal: true
543
+ },
544
+ {
545
+ propertyName: "feedbackPanel",
546
+ first: true,
547
+ predicate: ["feedbackPanel"],
548
+ descendants: true,
549
+ isSignal: true
550
+ },
551
+ {
552
+ propertyName: "feedbackPortal",
553
+ first: true,
554
+ predicate: ɵAerisAppendTo,
555
+ descendants: true,
556
+ isSignal: true
557
+ }
558
+ ],
559
+ ngImport: i0,
560
+ template: `
216
561
  <span
217
562
  class="aeris-password"
218
563
  [attr.data-size]="size()"
219
564
  [attr.data-appearance]="appearance()"
220
- [attr.data-invalid]="invalid() || null"
565
+ [attr.data-invalid]="displayInvalid() || null"
221
566
  [attr.data-disabled]="effectiveDisabled() || null"
222
567
  [attr.data-readonly]="readonly() || null"
223
568
  [attr.data-fluid]="fluid() || null"
@@ -233,14 +578,14 @@ class AerisPasswordComponent {
233
578
  [placeholder]="placeholder()"
234
579
  [autocomplete]="autocomplete()"
235
580
  [minLength]="minLength()"
236
- [maxLength]="maxLength() ?? null"
581
+ [attr.maxlength]="maxLength() ?? null"
237
582
  [disabled]="effectiveDisabled()"
238
583
  [readOnly]="readonly()"
239
584
  [required]="required()"
240
585
  [attr.aria-label]="ariaLabel() || null"
241
- [attr.aria-labelledby]="ariaLabelledby() || null"
586
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
242
587
  [attr.aria-describedby]="resolvedAriaDescribedby()"
243
- [attr.aria-invalid]="invalid() || null"
588
+ [attr.aria-invalid]="displayInvalid() || null"
244
589
  (input)="handleInput($event)"
245
590
  (focus)="handleFocus($event)"
246
591
  (blur)="handleInputBlur($event)"
@@ -253,7 +598,9 @@ class AerisPasswordComponent {
253
598
  class="aeris-password__action aeris-password__clear"
254
599
  [attr.aria-label]="clearButtonAriaLabel()"
255
600
  (click)="clear()"
256
- ><span aria-hidden="true"></span></button>
601
+ >
602
+ <span aria-hidden="true"></span>
603
+ </button>
257
604
  }
258
605
  @if (toggleMask()) {
259
606
  <button
@@ -283,7 +630,12 @@ class AerisPasswordComponent {
283
630
 
284
631
  @if (feedbackVisible()) {
285
632
  <span
633
+ #feedbackPanel
286
634
  class="aeris-password__feedback"
635
+ [aerisInternalAppendTo]="appendTo()"
636
+ [aerisInternalAppendToAnchor]="passwordInput"
637
+ [aerisInternalAppendToMatchWidth]="true"
638
+ [aerisInternalAppendToCollisionPadding]="viewportMargin()"
287
639
  [id]="feedbackId"
288
640
  >
289
641
  @if (headerTemplate(); as header) {
@@ -298,7 +650,7 @@ class AerisPasswordComponent {
298
650
  [ngTemplateOutletContext]="{
299
651
  $implicit: strengthResult(),
300
652
  result: strengthResult(),
301
- value: value()
653
+ value: value(),
302
654
  }"
303
655
  />
304
656
  } @else {
@@ -310,7 +662,8 @@ class AerisPasswordComponent {
310
662
  class="aeris-password__meter"
311
663
  [attr.data-strength]="strengthResult().strength"
312
664
  aria-hidden="true"
313
- ><span></span><span></span><span></span></span>
665
+ ><span></span><span></span><span></span
666
+ ></span>
314
667
 
315
668
  @if (showRequirements()) {
316
669
  <span class="aeris-password__requirements">
@@ -331,16 +684,54 @@ class AerisPasswordComponent {
331
684
  </span>
332
685
  }
333
686
  </span>
334
- `, isInline: true, styles: [":host{position:relative;display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-password{--_height: var(--aeris-control-height, 2.625rem);--_font-size: .875rem;position:relative;display:block;width:100%;color:var(--aeris-text, #222222);font-family:inherit}.aeris-password[data-size=xs]{--_height: 1.875rem;--_font-size: .75rem}.aeris-password[data-size=sm]{--_height: 2.25rem;--_font-size: .8125rem}.aeris-password[data-size=lg]{--_height: 3rem;--_font-size: .9375rem}.aeris-password__field{position:relative;display:block}.aeris-password input{width:100%;height:var(--_height);padding:.5rem 5rem .5rem .75rem;border:1px solid var(--aeris-border-strong, #c7c9c0);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-surface, #fff);color:inherit;font:inherit;font-size:var(--_font-size);transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.aeris-password:not(:has(.aeris-password__actions button)) input{padding-inline-end:.75rem}.aeris-password[data-appearance=filled] input{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-password input:hover:not(:disabled,:read-only){border-color:var(--aeris-focus, #536437)}.aeris-password input:focus-visible{border-color:var(--aeris-focus, #536437);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #536437) 20%,transparent)}.aeris-password[data-invalid] input{border-color:var(--aeris-danger, #c81e2a)}.aeris-password[data-invalid] input:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-danger, #c81e2a) 18%,transparent)}.aeris-password[data-disabled]{opacity:var(--aeris-disabled-opacity, .5)}.aeris-password[data-readonly] input{background:var(--aeris-surface-2, #f2f0ec)}.aeris-password__actions{position:absolute;top:50%;right:.4375rem;display:flex;align-items:center;gap:.125rem;transform:translateY(-50%)}.aeris-password__action{width:1.75rem;height:1.75rem;display:grid;place-items:center;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-password__action:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-password__action:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:1px}.aeris-password__clear>span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-password__visibility svg{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.75;vector-effect:non-scaling-stroke}.aeris-password__feedback{position:absolute;z-index:80;top:calc(100% + .4375rem);right:0;left:0;display:grid;gap:.75rem;min-width:min(19rem,100vw - 2rem);padding:.875rem;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-md, .6875rem);background:var(--aeris-surface, #fff);box-shadow:0 1rem 2.5rem #1f231b29;font-size:.8125rem}.aeris-password__header,.aeris-password__footer{color:var(--aeris-text-2, #555555);line-height:1.5}.aeris-password__strength-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.aeris-password__strength-row strong{font-size:.8125rem}.aeris-password__strength-row>span{color:var(--aeris-text-2, #555555);font-size:.75rem}.aeris-password__meter{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem}.aeris-password__meter>span{height:.25rem;border-radius:99px;background:var(--aeris-surface-3, #e7e5df)}.aeris-password__meter[data-strength=weak]>span:first-child{background:var(--aeris-danger, #c81e2a)}.aeris-password__meter[data-strength=medium]>span:nth-child(-n+2){background:var(--aeris-warning, #c38600)}.aeris-password__meter[data-strength=strong]>span{background:var(--aeris-success, #557542)}.aeris-password__requirements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem .75rem}.aeris-password__requirements>span{display:flex;align-items:center;gap:.375rem;color:var(--aeris-text-2, #555555);font-size:.75rem}.aeris-password__requirements i{position:relative;width:.875rem;height:.875rem;flex:0 0 auto;border:1px solid var(--aeris-border-strong, #c7c9c0);border-radius:50%}.aeris-password__requirements>span[data-met]{color:var(--aeris-success, #557542)}.aeris-password__requirements>span[data-met] i{border-color:currentColor;background:color-mix(in srgb,currentColor 12%,transparent)}.aeris-password__requirements>span[data-met] i:after{position:absolute;top:.2rem;left:.2rem;width:.35rem;height:.2rem;border-bottom:1.5px solid currentColor;border-left:1.5px solid currentColor;content:\"\";transform:rotate(-45deg)}@media(max-width:30rem){.aeris-password__feedback{min-width:100%}.aeris-password__requirements{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.aeris-password input{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
335
- }
336
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisPasswordComponent, decorators: [{
337
- type: Component,
338
- args: [{ selector: 'aeris-password', imports: [NgTemplateOutlet], template: `
687
+ `,
688
+ isInline: true,
689
+ styles: [":host{position:relative;display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-password{--_height: var(--aeris-control-height, 2.625rem);--_font-size: var(--aeris-font-size-lg, .875rem);position:relative;display:block;width:100%;color:var(--aeris-text, #111111);font-family:inherit}.aeris-password[data-size=xs]{--_height: 1.875rem;--_font-size: var(--aeris-font-size-sm, .75rem)}.aeris-password[data-size=sm]{--_height: 2.25rem;--_font-size: var(--aeris-font-size-md, .8125rem)}.aeris-password[data-size=lg]{--_height: 3rem;--_font-size: var(--aeris-font-size-xl, .9375rem)}.aeris-password__field{position:relative;display:block}.aeris-password input{width:100%;height:var(--_height);padding:.5rem 5rem .5rem .75rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-surface, #fff);color:inherit;font:inherit;font-size:var(--_font-size);box-shadow:none;transition:border-color var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease)}.aeris-password:not(:has(.aeris-password__actions button)) input{padding-inline-end:.75rem}.aeris-password[data-appearance=filled] input{border-color:transparent;background:var(--aeris-surface-2, #f3f3f3)}@media(hover:hover){.aeris-password input:hover:not(:disabled,:read-only){border-color:var(--aeris-control-hover-border, var(--aeris-primary, #111111))}}.aeris-password input:focus-visible{border-color:var(--aeris-control-focus-border, var(--aeris-focus, #111111));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}.aeris-password[data-invalid] input,.aeris-password input:user-invalid{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-password[data-invalid] input:focus-visible,.aeris-password input:user-invalid:focus-visible{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}.aeris-password[data-disabled]{opacity:var(--aeris-disabled-opacity, .5)}.aeris-password[data-readonly] input{background:var(--aeris-surface-2, #f3f3f3)}.aeris-password__actions{position:absolute;top:50%;right:.4375rem;display:flex;align-items:center;gap:.125rem;transform:translateY(-50%)}.aeris-password__action{width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);cursor:pointer}.aeris-password__action:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-password__action:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-password__action:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-password__clear>span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-password__visibility svg{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.75;vector-effect:non-scaling-stroke}.aeris-password__feedback{position:absolute;z-index:80;top:calc(100% + .4375rem);right:0;left:0;display:grid;gap:.75rem;min-width:min(19rem,100vw - 2rem);padding:.875rem;border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18)));font-size:var(--aeris-font-size-md, .8125rem)}.aeris-password__header,.aeris-password__footer{color:var(--aeris-text-2, #454545);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-password__strength-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.aeris-password__strength-row strong{font-size:var(--aeris-font-size-md, .8125rem)}.aeris-password__strength-row>span{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-password__meter{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem}.aeris-password__meter>span{height:.25rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface-3, #e7e5df)}.aeris-password__meter[data-strength=weak]>span:first-child{background:var(--aeris-danger, #c81e2a)}.aeris-password__meter[data-strength=medium]>span:nth-child(-n+2){background:var(--aeris-warning, #c38600)}.aeris-password__meter[data-strength=strong]>span{background:var(--aeris-success, #557542)}.aeris-password__requirements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem .75rem}.aeris-password__requirements>span{display:flex;align-items:center;gap:.375rem;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-password__requirements i{position:relative;width:.875rem;height:.875rem;flex:0 0 auto;border:1px solid var(--aeris-border, #efefef);border-radius:50%}.aeris-password__requirements>span[data-met]{color:var(--aeris-success, #557542)}.aeris-password__requirements>span[data-met] i{border-color:currentColor;background:color-mix(in srgb,currentColor 12%,transparent)}.aeris-password__requirements>span[data-met] i:after{position:absolute;top:.2rem;left:.2rem;width:.35rem;height:.2rem;border-bottom:1.5px solid currentColor;border-left:1.5px solid currentColor;content:\"\";transform:rotate(-45deg)}@media(max-width:30rem){.aeris-password__feedback{min-width:100%}.aeris-password__requirements{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.aeris-password input{transition:none}}@media(pointer:coarse){input{font-size:var(--aeris-mobile-input-font-size, 1rem)}}\n"],
690
+ dependencies: [{
691
+ kind: "directive",
692
+ type: NgTemplateOutlet,
693
+ selector: "[ngTemplateOutlet]",
694
+ inputs: [
695
+ "ngTemplateOutletContext",
696
+ "ngTemplateOutlet",
697
+ "ngTemplateOutletInjector"
698
+ ]
699
+ }, {
700
+ kind: "directive",
701
+ type: ɵAerisAppendTo,
702
+ selector: "[aerisInternalAppendTo]",
703
+ inputs: [
704
+ "aerisInternalAppendTo",
705
+ "aerisInternalAppendToDefault",
706
+ "aerisInternalAppendToAnchor",
707
+ "aerisInternalAppendToOffset",
708
+ "aerisInternalAppendToMatchWidth",
709
+ "aerisInternalAppendToPlacement",
710
+ "aerisInternalAppendToAlignment",
711
+ "aerisInternalAppendToCollisionPadding",
712
+ "aerisInternalAppendToPositionSelf",
713
+ "aerisInternalAppendToDismiss"
714
+ ],
715
+ outputs: ["aerisInternalAppendToOutside"]
716
+ }]
717
+ });
718
+ };
719
+ i0.ɵɵngDeclareClassMetadata({
720
+ minVersion: "12.0.0",
721
+ version: "22.2.2",
722
+ ngImport: i0,
723
+ type: AerisPasswordComponent,
724
+ decorators: [{
725
+ type: Component,
726
+ args: [{
727
+ selector: "aeris-password",
728
+ imports: [NgTemplateOutlet, ɵAerisAppendTo],
729
+ template: `
339
730
  <span
340
731
  class="aeris-password"
341
732
  [attr.data-size]="size()"
342
733
  [attr.data-appearance]="appearance()"
343
- [attr.data-invalid]="invalid() || null"
734
+ [attr.data-invalid]="displayInvalid() || null"
344
735
  [attr.data-disabled]="effectiveDisabled() || null"
345
736
  [attr.data-readonly]="readonly() || null"
346
737
  [attr.data-fluid]="fluid() || null"
@@ -356,14 +747,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
356
747
  [placeholder]="placeholder()"
357
748
  [autocomplete]="autocomplete()"
358
749
  [minLength]="minLength()"
359
- [maxLength]="maxLength() ?? null"
750
+ [attr.maxlength]="maxLength() ?? null"
360
751
  [disabled]="effectiveDisabled()"
361
752
  [readOnly]="readonly()"
362
753
  [required]="required()"
363
754
  [attr.aria-label]="ariaLabel() || null"
364
- [attr.aria-labelledby]="ariaLabelledby() || null"
755
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
365
756
  [attr.aria-describedby]="resolvedAriaDescribedby()"
366
- [attr.aria-invalid]="invalid() || null"
757
+ [attr.aria-invalid]="displayInvalid() || null"
367
758
  (input)="handleInput($event)"
368
759
  (focus)="handleFocus($event)"
369
760
  (blur)="handleInputBlur($event)"
@@ -376,7 +767,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
376
767
  class="aeris-password__action aeris-password__clear"
377
768
  [attr.aria-label]="clearButtonAriaLabel()"
378
769
  (click)="clear()"
379
- ><span aria-hidden="true"></span></button>
770
+ >
771
+ <span aria-hidden="true"></span>
772
+ </button>
380
773
  }
381
774
  @if (toggleMask()) {
382
775
  <button
@@ -406,7 +799,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
406
799
 
407
800
  @if (feedbackVisible()) {
408
801
  <span
802
+ #feedbackPanel
409
803
  class="aeris-password__feedback"
804
+ [aerisInternalAppendTo]="appendTo()"
805
+ [aerisInternalAppendToAnchor]="passwordInput"
806
+ [aerisInternalAppendToMatchWidth]="true"
807
+ [aerisInternalAppendToCollisionPadding]="viewportMargin()"
410
808
  [id]="feedbackId"
411
809
  >
412
810
  @if (headerTemplate(); as header) {
@@ -421,7 +819,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
421
819
  [ngTemplateOutletContext]="{
422
820
  $implicit: strengthResult(),
423
821
  result: strengthResult(),
424
- value: value()
822
+ value: value(),
425
823
  }"
426
824
  />
427
825
  } @else {
@@ -433,7 +831,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
433
831
  class="aeris-password__meter"
434
832
  [attr.data-strength]="strengthResult().strength"
435
833
  aria-hidden="true"
436
- ><span></span><span></span><span></span></span>
834
+ ><span></span><span></span><span></span
835
+ ></span>
437
836
 
438
837
  @if (showRequirements()) {
439
838
  <span class="aeris-password__requirements">
@@ -454,26 +853,303 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
454
853
  </span>
455
854
  }
456
855
  </span>
457
- `, providers: [
458
- {
459
- provide: NG_VALUE_ACCESSOR,
460
- useExisting: forwardRef(() => AerisPasswordComponent),
461
- multi: true,
462
- },
463
- ], host: {
464
- '[attr.data-fluid]': 'fluid() || null',
465
- }, styles: [":host{position:relative;display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-password{--_height: var(--aeris-control-height, 2.625rem);--_font-size: .875rem;position:relative;display:block;width:100%;color:var(--aeris-text, #222222);font-family:inherit}.aeris-password[data-size=xs]{--_height: 1.875rem;--_font-size: .75rem}.aeris-password[data-size=sm]{--_height: 2.25rem;--_font-size: .8125rem}.aeris-password[data-size=lg]{--_height: 3rem;--_font-size: .9375rem}.aeris-password__field{position:relative;display:block}.aeris-password input{width:100%;height:var(--_height);padding:.5rem 5rem .5rem .75rem;border:1px solid var(--aeris-border-strong, #c7c9c0);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-surface, #fff);color:inherit;font:inherit;font-size:var(--_font-size);transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.aeris-password:not(:has(.aeris-password__actions button)) input{padding-inline-end:.75rem}.aeris-password[data-appearance=filled] input{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-password input:hover:not(:disabled,:read-only){border-color:var(--aeris-focus, #536437)}.aeris-password input:focus-visible{border-color:var(--aeris-focus, #536437);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #536437) 20%,transparent)}.aeris-password[data-invalid] input{border-color:var(--aeris-danger, #c81e2a)}.aeris-password[data-invalid] input:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-danger, #c81e2a) 18%,transparent)}.aeris-password[data-disabled]{opacity:var(--aeris-disabled-opacity, .5)}.aeris-password[data-readonly] input{background:var(--aeris-surface-2, #f2f0ec)}.aeris-password__actions{position:absolute;top:50%;right:.4375rem;display:flex;align-items:center;gap:.125rem;transform:translateY(-50%)}.aeris-password__action{width:1.75rem;height:1.75rem;display:grid;place-items:center;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-password__action:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-password__action:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:1px}.aeris-password__clear>span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-password__visibility svg{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.75;vector-effect:non-scaling-stroke}.aeris-password__feedback{position:absolute;z-index:80;top:calc(100% + .4375rem);right:0;left:0;display:grid;gap:.75rem;min-width:min(19rem,100vw - 2rem);padding:.875rem;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-md, .6875rem);background:var(--aeris-surface, #fff);box-shadow:0 1rem 2.5rem #1f231b29;font-size:.8125rem}.aeris-password__header,.aeris-password__footer{color:var(--aeris-text-2, #555555);line-height:1.5}.aeris-password__strength-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.aeris-password__strength-row strong{font-size:.8125rem}.aeris-password__strength-row>span{color:var(--aeris-text-2, #555555);font-size:.75rem}.aeris-password__meter{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem}.aeris-password__meter>span{height:.25rem;border-radius:99px;background:var(--aeris-surface-3, #e7e5df)}.aeris-password__meter[data-strength=weak]>span:first-child{background:var(--aeris-danger, #c81e2a)}.aeris-password__meter[data-strength=medium]>span:nth-child(-n+2){background:var(--aeris-warning, #c38600)}.aeris-password__meter[data-strength=strong]>span{background:var(--aeris-success, #557542)}.aeris-password__requirements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem .75rem}.aeris-password__requirements>span{display:flex;align-items:center;gap:.375rem;color:var(--aeris-text-2, #555555);font-size:.75rem}.aeris-password__requirements i{position:relative;width:.875rem;height:.875rem;flex:0 0 auto;border:1px solid var(--aeris-border-strong, #c7c9c0);border-radius:50%}.aeris-password__requirements>span[data-met]{color:var(--aeris-success, #557542)}.aeris-password__requirements>span[data-met] i{border-color:currentColor;background:color-mix(in srgb,currentColor 12%,transparent)}.aeris-password__requirements>span[data-met] i:after{position:absolute;top:.2rem;left:.2rem;width:.35rem;height:.2rem;border-bottom:1.5px solid currentColor;border-left:1.5px solid currentColor;content:\"\";transform:rotate(-45deg)}@media(max-width:30rem){.aeris-password__feedback{min-width:100%}.aeris-password__requirements{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.aeris-password input{transition:none}}\n"] }]
466
- }], propDecorators: { inputElement: [{ type: i0.ViewChild, args: ['passwordInput', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", 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 }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", 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 }] }], toggleMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleMask", required: false }] }], feedback: [{ type: i0.Input, args: [{ isSignal: true, alias: "feedback", required: false }] }], showRequirements: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequirements", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], showPasswordAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPasswordAriaLabel", required: false }] }], hidePasswordAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidePasswordAriaLabel", required: false }] }], strengthEvaluator: [{ type: i0.Input, args: [{ isSignal: true, alias: "strengthEvaluator", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], visibilityChanged: [{ type: i0.Output, args: ["visibilityChanged"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisPasswordHeaderTemplate), { isSignal: true }] }], feedbackTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisPasswordFeedbackTemplate), { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisPasswordFooterTemplate), { isSignal: true }] }] } });
856
+ `,
857
+ providers: [{
858
+ provide: NG_VALUE_ACCESSOR,
859
+ useExisting: forwardRef(() => AerisPasswordComponent),
860
+ multi: true
861
+ }],
862
+ host: { "[attr.data-fluid]": "fluid() || null" },
863
+ styles: [":host{position:relative;display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-password{--_height: var(--aeris-control-height, 2.625rem);--_font-size: var(--aeris-font-size-lg, .875rem);position:relative;display:block;width:100%;color:var(--aeris-text, #111111);font-family:inherit}.aeris-password[data-size=xs]{--_height: 1.875rem;--_font-size: var(--aeris-font-size-sm, .75rem)}.aeris-password[data-size=sm]{--_height: 2.25rem;--_font-size: var(--aeris-font-size-md, .8125rem)}.aeris-password[data-size=lg]{--_height: 3rem;--_font-size: var(--aeris-font-size-xl, .9375rem)}.aeris-password__field{position:relative;display:block}.aeris-password input{width:100%;height:var(--_height);padding:.5rem 5rem .5rem .75rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-surface, #fff);color:inherit;font:inherit;font-size:var(--_font-size);box-shadow:none;transition:border-color var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease)}.aeris-password:not(:has(.aeris-password__actions button)) input{padding-inline-end:.75rem}.aeris-password[data-appearance=filled] input{border-color:transparent;background:var(--aeris-surface-2, #f3f3f3)}@media(hover:hover){.aeris-password input:hover:not(:disabled,:read-only){border-color:var(--aeris-control-hover-border, var(--aeris-primary, #111111))}}.aeris-password input:focus-visible{border-color:var(--aeris-control-focus-border, var(--aeris-focus, #111111));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}.aeris-password[data-invalid] input,.aeris-password input:user-invalid{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-password[data-invalid] input:focus-visible,.aeris-password input:user-invalid:focus-visible{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}.aeris-password[data-disabled]{opacity:var(--aeris-disabled-opacity, .5)}.aeris-password[data-readonly] input{background:var(--aeris-surface-2, #f3f3f3)}.aeris-password__actions{position:absolute;top:50%;right:.4375rem;display:flex;align-items:center;gap:.125rem;transform:translateY(-50%)}.aeris-password__action{width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);cursor:pointer}.aeris-password__action:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-password__action:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-password__action:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-password__clear>span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-password__visibility svg{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.75;vector-effect:non-scaling-stroke}.aeris-password__feedback{position:absolute;z-index:80;top:calc(100% + .4375rem);right:0;left:0;display:grid;gap:.75rem;min-width:min(19rem,100vw - 2rem);padding:.875rem;border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18)));font-size:var(--aeris-font-size-md, .8125rem)}.aeris-password__header,.aeris-password__footer{color:var(--aeris-text-2, #454545);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-password__strength-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.aeris-password__strength-row strong{font-size:var(--aeris-font-size-md, .8125rem)}.aeris-password__strength-row>span{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-password__meter{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem}.aeris-password__meter>span{height:.25rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface-3, #e7e5df)}.aeris-password__meter[data-strength=weak]>span:first-child{background:var(--aeris-danger, #c81e2a)}.aeris-password__meter[data-strength=medium]>span:nth-child(-n+2){background:var(--aeris-warning, #c38600)}.aeris-password__meter[data-strength=strong]>span{background:var(--aeris-success, #557542)}.aeris-password__requirements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem .75rem}.aeris-password__requirements>span{display:flex;align-items:center;gap:.375rem;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-password__requirements i{position:relative;width:.875rem;height:.875rem;flex:0 0 auto;border:1px solid var(--aeris-border, #efefef);border-radius:50%}.aeris-password__requirements>span[data-met]{color:var(--aeris-success, #557542)}.aeris-password__requirements>span[data-met] i{border-color:currentColor;background:color-mix(in srgb,currentColor 12%,transparent)}.aeris-password__requirements>span[data-met] i:after{position:absolute;top:.2rem;left:.2rem;width:.35rem;height:.2rem;border-bottom:1.5px solid currentColor;border-left:1.5px solid currentColor;content:\"\";transform:rotate(-45deg)}@media(max-width:30rem){.aeris-password__feedback{min-width:100%}.aeris-password__requirements{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.aeris-password input{transition:none}}@media(pointer:coarse){input{font-size:var(--aeris-mobile-input-font-size, 1rem)}}\n"]
864
+ }]
865
+ }],
866
+ propDecorators: {
867
+ inputElement: [{
868
+ type: i0.ViewChild,
869
+ args: ["passwordInput", { isSignal: true }]
870
+ }],
871
+ feedbackPanel: [{
872
+ type: i0.ViewChild,
873
+ args: ["feedbackPanel", { isSignal: true }]
874
+ }],
875
+ feedbackPortal: [{
876
+ type: i0.ViewChild,
877
+ args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
878
+ }],
879
+ value: [{
880
+ type: i0.Input,
881
+ args: [{
882
+ isSignal: true,
883
+ alias: "value",
884
+ required: false
885
+ }]
886
+ }, {
887
+ type: i0.Output,
888
+ args: ["valueChange"]
889
+ }],
890
+ visible: [{
891
+ type: i0.Input,
892
+ args: [{
893
+ isSignal: true,
894
+ alias: "visible",
895
+ required: false
896
+ }]
897
+ }, {
898
+ type: i0.Output,
899
+ args: ["visibleChange"]
900
+ }],
901
+ appendTo: [{
902
+ type: i0.Input,
903
+ args: [{
904
+ isSignal: true,
905
+ alias: "appendTo",
906
+ required: false
907
+ }]
908
+ }],
909
+ viewportMargin: [{
910
+ type: i0.Input,
911
+ args: [{
912
+ isSignal: true,
913
+ alias: "viewportMargin",
914
+ required: false
915
+ }]
916
+ }],
917
+ inputId: [{
918
+ type: i0.Input,
919
+ args: [{
920
+ isSignal: true,
921
+ alias: "inputId",
922
+ required: false
923
+ }]
924
+ }],
925
+ name: [{
926
+ type: i0.Input,
927
+ args: [{
928
+ isSignal: true,
929
+ alias: "name",
930
+ required: false
931
+ }]
932
+ }],
933
+ placeholder: [{
934
+ type: i0.Input,
935
+ args: [{
936
+ isSignal: true,
937
+ alias: "placeholder",
938
+ required: false
939
+ }]
940
+ }],
941
+ autocomplete: [{
942
+ type: i0.Input,
943
+ args: [{
944
+ isSignal: true,
945
+ alias: "autocomplete",
946
+ required: false
947
+ }]
948
+ }],
949
+ ariaLabel: [{
950
+ type: i0.Input,
951
+ args: [{
952
+ isSignal: true,
953
+ alias: "ariaLabel",
954
+ required: false
955
+ }]
956
+ }],
957
+ ariaLabelledBy: [{
958
+ type: i0.Input,
959
+ args: [{
960
+ isSignal: true,
961
+ alias: "ariaLabelledBy",
962
+ required: false
963
+ }]
964
+ }],
965
+ ariaDescribedBy: [{
966
+ type: i0.Input,
967
+ args: [{
968
+ isSignal: true,
969
+ alias: "ariaDescribedBy",
970
+ required: false
971
+ }]
972
+ }],
973
+ size: [{
974
+ type: i0.Input,
975
+ args: [{
976
+ isSignal: true,
977
+ alias: "size",
978
+ required: false
979
+ }]
980
+ }],
981
+ appearance: [{
982
+ type: i0.Input,
983
+ args: [{
984
+ isSignal: true,
985
+ alias: "appearance",
986
+ required: false
987
+ }]
988
+ }],
989
+ minLength: [{
990
+ type: i0.Input,
991
+ args: [{
992
+ isSignal: true,
993
+ alias: "minLength",
994
+ required: false
995
+ }]
996
+ }],
997
+ maxLength: [{
998
+ type: i0.Input,
999
+ args: [{
1000
+ isSignal: true,
1001
+ alias: "maxLength",
1002
+ required: false
1003
+ }]
1004
+ }],
1005
+ disabled: [{
1006
+ type: i0.Input,
1007
+ args: [{
1008
+ isSignal: true,
1009
+ alias: "disabled",
1010
+ required: false
1011
+ }]
1012
+ }],
1013
+ readonly: [{
1014
+ type: i0.Input,
1015
+ args: [{
1016
+ isSignal: true,
1017
+ alias: "readonly",
1018
+ required: false
1019
+ }]
1020
+ }],
1021
+ required: [{
1022
+ type: i0.Input,
1023
+ args: [{
1024
+ isSignal: true,
1025
+ alias: "required",
1026
+ required: false
1027
+ }]
1028
+ }],
1029
+ invalid: [{
1030
+ type: i0.Input,
1031
+ args: [{
1032
+ isSignal: true,
1033
+ alias: "invalid",
1034
+ required: false
1035
+ }]
1036
+ }],
1037
+ touched: [{
1038
+ type: i0.Input,
1039
+ args: [{
1040
+ isSignal: true,
1041
+ alias: "touched",
1042
+ required: false
1043
+ }]
1044
+ }],
1045
+ fluid: [{
1046
+ type: i0.Input,
1047
+ args: [{
1048
+ isSignal: true,
1049
+ alias: "fluid",
1050
+ required: false
1051
+ }]
1052
+ }],
1053
+ toggleMask: [{
1054
+ type: i0.Input,
1055
+ args: [{
1056
+ isSignal: true,
1057
+ alias: "toggleMask",
1058
+ required: false
1059
+ }]
1060
+ }],
1061
+ feedback: [{
1062
+ type: i0.Input,
1063
+ args: [{
1064
+ isSignal: true,
1065
+ alias: "feedback",
1066
+ required: false
1067
+ }]
1068
+ }],
1069
+ showRequirements: [{
1070
+ type: i0.Input,
1071
+ args: [{
1072
+ isSignal: true,
1073
+ alias: "showRequirements",
1074
+ required: false
1075
+ }]
1076
+ }],
1077
+ clearable: [{
1078
+ type: i0.Input,
1079
+ args: [{
1080
+ isSignal: true,
1081
+ alias: "clearable",
1082
+ required: false
1083
+ }]
1084
+ }],
1085
+ clearButtonAriaLabel: [{
1086
+ type: i0.Input,
1087
+ args: [{
1088
+ isSignal: true,
1089
+ alias: "clearButtonAriaLabel",
1090
+ required: false
1091
+ }]
1092
+ }],
1093
+ showPasswordAriaLabel: [{
1094
+ type: i0.Input,
1095
+ args: [{
1096
+ isSignal: true,
1097
+ alias: "showPasswordAriaLabel",
1098
+ required: false
1099
+ }]
1100
+ }],
1101
+ hidePasswordAriaLabel: [{
1102
+ type: i0.Input,
1103
+ args: [{
1104
+ isSignal: true,
1105
+ alias: "hidePasswordAriaLabel",
1106
+ required: false
1107
+ }]
1108
+ }],
1109
+ strengthEvaluator: [{
1110
+ type: i0.Input,
1111
+ args: [{
1112
+ isSignal: true,
1113
+ alias: "strengthEvaluator",
1114
+ required: false
1115
+ }]
1116
+ }],
1117
+ visibilityChanged: [{
1118
+ type: i0.Output,
1119
+ args: ["visibilityChanged"]
1120
+ }],
1121
+ focused: [{
1122
+ type: i0.Output,
1123
+ args: ["focused"]
1124
+ }],
1125
+ blurred: [{
1126
+ type: i0.Output,
1127
+ args: ["blurred"]
1128
+ }],
1129
+ touch: [{
1130
+ type: i0.Output,
1131
+ args: ["touch"]
1132
+ }],
1133
+ headerTemplate: [{
1134
+ type: i0.ContentChild,
1135
+ args: [i0.forwardRef(() => AerisPasswordHeaderTemplate), { isSignal: true }]
1136
+ }],
1137
+ feedbackTemplate: [{
1138
+ type: i0.ContentChild,
1139
+ args: [i0.forwardRef(() => AerisPasswordFeedbackTemplate), { isSignal: true }]
1140
+ }],
1141
+ footerTemplate: [{
1142
+ type: i0.ContentChild,
1143
+ args: [i0.forwardRef(() => AerisPasswordFooterTemplate), { isSignal: true }]
1144
+ }]
1145
+ }
1146
+ });
467
1147
  const AerisPassword = [
468
- AerisPasswordComponent,
469
- AerisPasswordHeaderTemplate,
470
- AerisPasswordFeedbackTemplate,
471
- AerisPasswordFooterTemplate,
1148
+ AerisPasswordComponent,
1149
+ AerisPasswordHeaderTemplate,
1150
+ AerisPasswordFeedbackTemplate,
1151
+ AerisPasswordFooterTemplate
472
1152
  ];
473
-
474
- /**
475
- * Generated bundle index. Do not edit.
476
- */
477
-
478
1153
  export { AerisPassword, AerisPasswordComponent, AerisPasswordFeedbackTemplate, AerisPasswordFooterTemplate, AerisPasswordHeaderTemplate, evaluateAerisPassword };
479
- //# sourceMappingURL=aeris-ui-core-password.mjs.map
1154
+
1155
+ //# sourceMappingURL=aeris-ui-core-password.mjs.map