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

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 (260) hide show
  1. package/README.md +35 -3
  2. package/THIRD_PARTY_LICENSES.md +48 -0
  3. package/fesm2022/aeris-ui-core-accordion.mjs +34 -32
  4. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +119 -50
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
  9. package/fesm2022/aeris-ui-core-avatar.mjs +6 -6
  10. package/fesm2022/aeris-ui-core-badge.mjs +6 -6
  11. package/fesm2022/aeris-ui-core-block-ui.mjs +18 -6
  12. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  13. package/fesm2022/aeris-ui-core-breadcrumb.mjs +42 -24
  14. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  15. package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
  16. package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
  17. package/fesm2022/aeris-ui-core-button-group.mjs +417 -14
  18. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  19. package/fesm2022/aeris-ui-core-button.mjs +191 -19
  20. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/aeris-ui-core-card.mjs +18 -18
  22. package/fesm2022/aeris-ui-core-carousel.mjs +81 -19
  23. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-cascade-select.mjs +165 -46
  25. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-chart.mjs +171 -36
  27. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-checkbox.mjs +191 -22
  29. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-chip.mjs +702 -27
  31. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  33. package/fesm2022/aeris-ui-core-code-block.mjs +57 -7
  34. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -1
  35. package/fesm2022/aeris-ui-core-color-picker.mjs +1223 -503
  36. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  37. package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
  38. package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
  39. package/fesm2022/aeris-ui-core-compare.mjs +61 -34
  40. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +68 -38
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs +46 -38
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  45. package/fesm2022/aeris-ui-core-context-menu.mjs +94 -43
  46. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  47. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs +946 -0
  48. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs.map +1 -0
  49. package/fesm2022/aeris-ui-core-date-picker.mjs +1186 -650
  50. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  51. package/fesm2022/aeris-ui-core-dialog.mjs +157 -71
  52. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  53. package/fesm2022/aeris-ui-core-divider.mjs +3 -3
  54. package/fesm2022/aeris-ui-core-drawer.mjs +751 -77
  55. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +14 -6
  57. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-editor.mjs +847 -202
  59. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-file-upload.mjs +204 -68
  61. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  63. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-fluid.mjs +5 -5
  65. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  67. package/fesm2022/aeris-ui-core-form-field.mjs +15 -15
  68. package/fesm2022/aeris-ui-core-galleria.mjs +472 -123
  69. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  71. package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
  72. package/fesm2022/aeris-ui-core-inplace.mjs +56 -14
  73. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-input-group.mjs +17 -17
  75. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-input-mask.mjs +61 -8
  77. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-number.mjs +191 -28
  79. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
  81. package/fesm2022/aeris-ui-core-input-text.mjs +102 -26
  82. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  83. package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
  84. package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
  85. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  86. package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
  87. package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs +59 -16
  89. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-menu.mjs +95 -52
  91. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menubar.mjs +103 -34
  93. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-message.mjs +48 -14
  95. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-meter-group.mjs +33 -15
  97. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-multi-select.mjs +283 -65
  99. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
  101. package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
  102. package/fesm2022/aeris-ui-core-order-list.mjs +191 -35
  103. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-organization-chart.mjs +48 -14
  105. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-paginator.mjs +300 -61
  107. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-panel.mjs +21 -29
  109. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-password.mjs +166 -65
  111. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-pick-list.mjs +528 -56
  113. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-popover.mjs +504 -72
  115. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-bar.mjs +75 -21
  117. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-progress-spinner.mjs +24 -6
  119. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-radio-button.mjs +119 -19
  121. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-rating.mjs +6 -6
  123. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
  125. package/fesm2022/aeris-ui-core-scroll-top.mjs +59 -12
  126. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  127. package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
  128. package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
  129. package/fesm2022/aeris-ui-core-select.mjs +206 -87
  130. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  131. package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
  132. package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
  133. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  134. package/fesm2022/aeris-ui-core-slider.mjs +3 -3
  135. package/fesm2022/aeris-ui-core-speed-dial.mjs +34 -13
  136. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  137. package/fesm2022/aeris-ui-core-split-button.mjs +26 -11
  138. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  139. package/fesm2022/aeris-ui-core-splitter.mjs +35 -20
  140. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  141. package/fesm2022/aeris-ui-core-stepper.mjs +23 -17
  142. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  143. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  144. package/fesm2022/aeris-ui-core-table.mjs +945 -106
  145. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-tabs.mjs +81 -19
  147. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-textarea.mjs +89 -28
  149. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theme-builder.mjs +202 -126
  151. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-theming.mjs +8 -8
  153. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-tiered-menu.mjs +94 -43
  155. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-timeline.mjs +17 -17
  157. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toast.mjs +73 -44
  159. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
  161. package/fesm2022/aeris-ui-core-toolbar.mjs +916 -44
  162. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  163. package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
  164. package/fesm2022/aeris-ui-core-tree-select.mjs +252 -61
  165. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-table.mjs +493 -124
  167. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree.mjs +165 -27
  169. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core.mjs +632 -12
  171. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  172. package/package.json +29 -1
  173. package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
  174. package/schematics/runtime/theme-builder/aeris-contrast.js +32 -0
  175. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  176. package/schematics/runtime/theme-builder/aeris-foundation.js +8 -9
  177. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  178. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +8 -21
  179. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  180. package/schematics/runtime/theme-builder/aeris-theme-generator.js +6 -0
  181. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  182. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +64 -91
  183. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  184. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +7 -5
  185. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  186. package/schematics/runtime/theme-builder/aeris-theme-validation.js +11 -1
  187. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  188. package/schematics/runtime/theme-builder/aeris-theme.js +81 -10
  189. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  190. package/styles/_choice-card.scss +93 -0
  191. package/styles/_icon-artwork.scss +14 -0
  192. package/styles/_icon-template.scss +42 -0
  193. package/styles/_selection-icons.scss +12 -0
  194. package/styles/_table-pinning.scss +119 -0
  195. package/styles/aeris.css +35 -12
  196. package/styles/controls.css +149 -11
  197. package/tools/aeris-theme.mjs +3 -3
  198. package/tools/aeris-theme.schema.json +13 -11
  199. package/types/aeris-ui-core-auto-complete.d.ts +12 -0
  200. package/types/aeris-ui-core-block-ui.d.ts +1 -0
  201. package/types/aeris-ui-core-button-forms.d.ts +18 -0
  202. package/types/aeris-ui-core-button-group.d.ts +116 -3
  203. package/types/aeris-ui-core-button.d.ts +52 -4
  204. package/types/aeris-ui-core-carousel.d.ts +12 -0
  205. package/types/aeris-ui-core-cascade-select.d.ts +18 -0
  206. package/types/aeris-ui-core-chart.d.ts +26 -10
  207. package/types/aeris-ui-core-checkbox.d.ts +36 -2
  208. package/types/aeris-ui-core-chip.d.ts +196 -1
  209. package/types/aeris-ui-core-code-block.d.ts +13 -4
  210. package/types/aeris-ui-core-color-picker.d.ts +117 -15
  211. package/types/aeris-ui-core-command-palette.d.ts +267 -0
  212. package/types/aeris-ui-core-compare.d.ts +6 -0
  213. package/types/aeris-ui-core-confirm-dialog.d.ts +9 -1
  214. package/types/aeris-ui-core-context-menu.d.ts +6 -0
  215. package/types/aeris-ui-core-date-picker.d.ts +90 -20
  216. package/types/aeris-ui-core-dialog.d.ts +15 -2
  217. package/types/aeris-ui-core-drawer.d.ts +105 -4
  218. package/types/aeris-ui-core-dynamic-dialog.d.ts +6 -2
  219. package/types/aeris-ui-core-editor.d.ts +8 -1
  220. package/types/aeris-ui-core-file-upload.d.ts +18 -0
  221. package/types/aeris-ui-core-galleria.d.ts +48 -0
  222. package/types/aeris-ui-core-inplace.d.ts +6 -0
  223. package/types/aeris-ui-core-input-mask.d.ts +8 -1
  224. package/types/aeris-ui-core-input-number.d.ts +20 -1
  225. package/types/aeris-ui-core-input-text.d.ts +11 -1
  226. package/types/aeris-ui-core-kbd.d.ts +74 -0
  227. package/types/aeris-ui-core-listbox.d.ts +222 -0
  228. package/types/aeris-ui-core-mega-menu.d.ts +6 -0
  229. package/types/aeris-ui-core-menu.d.ts +6 -0
  230. package/types/aeris-ui-core-menubar.d.ts +16 -0
  231. package/types/aeris-ui-core-message.d.ts +6 -0
  232. package/types/aeris-ui-core-meter-group.d.ts +6 -0
  233. package/types/aeris-ui-core-multi-select.d.ts +30 -0
  234. package/types/aeris-ui-core-navbar.d.ts +208 -0
  235. package/types/aeris-ui-core-order-list.d.ts +24 -0
  236. package/types/aeris-ui-core-organization-chart.d.ts +6 -0
  237. package/types/aeris-ui-core-paginator.d.ts +37 -1
  238. package/types/aeris-ui-core-password.d.ts +18 -0
  239. package/types/aeris-ui-core-pick-list.d.ts +54 -0
  240. package/types/aeris-ui-core-popover.d.ts +80 -5
  241. package/types/aeris-ui-core-progress-bar.d.ts +6 -0
  242. package/types/aeris-ui-core-progress-spinner.d.ts +6 -0
  243. package/types/aeris-ui-core-radio-button.d.ts +24 -2
  244. package/types/aeris-ui-core-rating.d.ts +1 -1
  245. package/types/aeris-ui-core-scroll-top.d.ts +7 -0
  246. package/types/aeris-ui-core-select-native.d.ts +40 -0
  247. package/types/aeris-ui-core-select.d.ts +12 -0
  248. package/types/aeris-ui-core-sidebar.d.ts +220 -0
  249. package/types/aeris-ui-core-splitter.d.ts +3 -4
  250. package/types/aeris-ui-core-table.d.ts +144 -11
  251. package/types/aeris-ui-core-tabs.d.ts +12 -0
  252. package/types/aeris-ui-core-textarea.d.ts +11 -1
  253. package/types/aeris-ui-core-theme-builder.d.ts +31 -296
  254. package/types/aeris-ui-core-tiered-menu.d.ts +6 -0
  255. package/types/aeris-ui-core-toast.d.ts +8 -2
  256. package/types/aeris-ui-core-toolbar.d.ts +213 -3
  257. package/types/aeris-ui-core-tree-select.d.ts +30 -0
  258. package/types/aeris-ui-core-tree-table.d.ts +75 -14
  259. package/types/aeris-ui-core-tree.d.ts +24 -0
  260. package/types/aeris-ui-core.d.ts +140 -3
@@ -2,12 +2,12 @@ import { NgTemplateOutlet } from "@angular/common";
2
2
  import * as i0 from "@angular/core";
3
3
  import { Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, forwardRef, inject, input, model, output, signal, viewChild } from "@angular/core";
4
4
  import { NG_VALUE_ACCESSOR } from "@angular/forms";
5
- import { ɵAerisAppendTo, ɵaerisDisplayInvalid } from "@aeris-ui/core";
5
+ import { ɵAerisAppendTo, ɵAerisIcon, ɵaerisDisplayInvalid } from "@aeris-ui/core";
6
6
  var AerisPasswordHeaderTemplate = class AerisPasswordHeaderTemplate {
7
7
  template = inject(TemplateRef);
8
8
  static ɵfac = i0.ɵɵngDeclareFactory({
9
9
  minVersion: "12.0.0",
10
- version: "22.2.2",
10
+ version: "22.2.4",
11
11
  ngImport: i0,
12
12
  type: AerisPasswordHeaderTemplate,
13
13
  deps: [],
@@ -15,7 +15,7 @@ var AerisPasswordHeaderTemplate = class AerisPasswordHeaderTemplate {
15
15
  });
16
16
  static ɵdir = i0.ɵɵngDeclareDirective({
17
17
  minVersion: "14.0.0",
18
- version: "22.2.2",
18
+ version: "22.2.4",
19
19
  type: AerisPasswordHeaderTemplate,
20
20
  isStandalone: true,
21
21
  selector: "ng-template[aerisPasswordHeader]",
@@ -24,7 +24,7 @@ var AerisPasswordHeaderTemplate = class AerisPasswordHeaderTemplate {
24
24
  };
25
25
  i0.ɵɵngDeclareClassMetadata({
26
26
  minVersion: "12.0.0",
27
- version: "22.2.2",
27
+ version: "22.2.4",
28
28
  ngImport: i0,
29
29
  type: AerisPasswordHeaderTemplate,
30
30
  decorators: [{
@@ -36,7 +36,7 @@ var AerisPasswordFeedbackTemplate = class AerisPasswordFeedbackTemplate {
36
36
  template = inject(TemplateRef);
37
37
  static ɵfac = i0.ɵɵngDeclareFactory({
38
38
  minVersion: "12.0.0",
39
- version: "22.2.2",
39
+ version: "22.2.4",
40
40
  ngImport: i0,
41
41
  type: AerisPasswordFeedbackTemplate,
42
42
  deps: [],
@@ -44,7 +44,7 @@ var AerisPasswordFeedbackTemplate = class AerisPasswordFeedbackTemplate {
44
44
  });
45
45
  static ɵdir = i0.ɵɵngDeclareDirective({
46
46
  minVersion: "14.0.0",
47
- version: "22.2.2",
47
+ version: "22.2.4",
48
48
  type: AerisPasswordFeedbackTemplate,
49
49
  isStandalone: true,
50
50
  selector: "ng-template[aerisPasswordFeedback]",
@@ -53,7 +53,7 @@ var AerisPasswordFeedbackTemplate = class AerisPasswordFeedbackTemplate {
53
53
  };
54
54
  i0.ɵɵngDeclareClassMetadata({
55
55
  minVersion: "12.0.0",
56
- version: "22.2.2",
56
+ version: "22.2.4",
57
57
  ngImport: i0,
58
58
  type: AerisPasswordFeedbackTemplate,
59
59
  decorators: [{
@@ -65,7 +65,7 @@ var AerisPasswordFooterTemplate = class AerisPasswordFooterTemplate {
65
65
  template = inject(TemplateRef);
66
66
  static ɵfac = i0.ɵɵngDeclareFactory({
67
67
  minVersion: "12.0.0",
68
- version: "22.2.2",
68
+ version: "22.2.4",
69
69
  ngImport: i0,
70
70
  type: AerisPasswordFooterTemplate,
71
71
  deps: [],
@@ -73,7 +73,7 @@ var AerisPasswordFooterTemplate = class AerisPasswordFooterTemplate {
73
73
  });
74
74
  static ɵdir = i0.ɵɵngDeclareDirective({
75
75
  minVersion: "14.0.0",
76
- version: "22.2.2",
76
+ version: "22.2.4",
77
77
  type: AerisPasswordFooterTemplate,
78
78
  isStandalone: true,
79
79
  selector: "ng-template[aerisPasswordFooter]",
@@ -82,7 +82,7 @@ var AerisPasswordFooterTemplate = class AerisPasswordFooterTemplate {
82
82
  };
83
83
  i0.ɵɵngDeclareClassMetadata({
84
84
  minVersion: "12.0.0",
85
- version: "22.2.2",
85
+ version: "22.2.4",
86
86
  ngImport: i0,
87
87
  type: AerisPasswordFooterTemplate,
88
88
  decorators: [{
@@ -135,6 +135,9 @@ const evaluateAerisPassword = (value, minLength) => {
135
135
  };
136
136
  let passwordId = 0;
137
137
  var AerisPasswordComponent = class AerisPasswordComponent {
138
+ visibleIconTemplate = input(...ngDevMode ? [void 0, { debugName: "visibleIconTemplate" }] : /* istanbul ignore next */ []);
139
+ maskedIconTemplate = input(...ngDevMode ? [void 0, { debugName: "maskedIconTemplate" }] : /* istanbul ignore next */ []);
140
+ clearIconTemplate = input(...ngDevMode ? [void 0, { debugName: "clearIconTemplate" }] : /* istanbul ignore next */ []);
138
141
  host = inject(ElementRef);
139
142
  inputElement = viewChild("passwordInput", ...ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []);
140
143
  feedbackPanel = viewChild("feedbackPanel", ...ngDevMode ? [{ debugName: "feedbackPanel" }] : /* istanbul ignore next */ []);
@@ -279,7 +282,7 @@ var AerisPasswordComponent = class AerisPasswordComponent {
279
282
  }
280
283
  static ɵfac = i0.ɵɵngDeclareFactory({
281
284
  minVersion: "12.0.0",
282
- version: "22.2.2",
285
+ version: "22.2.4",
283
286
  ngImport: i0,
284
287
  type: AerisPasswordComponent,
285
288
  deps: [],
@@ -287,11 +290,32 @@ var AerisPasswordComponent = class AerisPasswordComponent {
287
290
  });
288
291
  static ɵcmp = i0.ɵɵngDeclareComponent({
289
292
  minVersion: "17.0.0",
290
- version: "22.2.2",
293
+ version: "22.2.4",
291
294
  type: AerisPasswordComponent,
292
295
  isStandalone: true,
293
296
  selector: "aeris-password",
294
297
  inputs: {
298
+ visibleIconTemplate: {
299
+ classPropertyName: "visibleIconTemplate",
300
+ publicName: "visibleIconTemplate",
301
+ isSignal: true,
302
+ isRequired: false,
303
+ transformFunction: null
304
+ },
305
+ maskedIconTemplate: {
306
+ classPropertyName: "maskedIconTemplate",
307
+ publicName: "maskedIconTemplate",
308
+ isSignal: true,
309
+ isRequired: false,
310
+ transformFunction: null
311
+ },
312
+ clearIconTemplate: {
313
+ classPropertyName: "clearIconTemplate",
314
+ publicName: "clearIconTemplate",
315
+ isSignal: true,
316
+ isRequired: false,
317
+ transformFunction: null
318
+ },
295
319
  value: {
296
320
  classPropertyName: "value",
297
321
  publicName: "value",
@@ -599,7 +623,13 @@ var AerisPasswordComponent = class AerisPasswordComponent {
599
623
  [attr.aria-label]="clearButtonAriaLabel()"
600
624
  (click)="clear()"
601
625
  >
602
- <span aria-hidden="true"></span>
626
+ @if (clearIconTemplate(); as customIcon) {
627
+ <span aria-hidden="true" data-aeris-custom-icon
628
+ ><ng-container [ngTemplateOutlet]="customIcon"
629
+ /></span>
630
+ } @else {
631
+ <span aerisInternalIcon="close" aria-hidden="true"></span>
632
+ }
603
633
  </button>
604
634
  }
605
635
  @if (toggleMask()) {
@@ -611,17 +641,31 @@ var AerisPasswordComponent = class AerisPasswordComponent {
611
641
  (click)="toggleVisibility()"
612
642
  >
613
643
  @if (visible()) {
614
- <svg aria-hidden="true" viewBox="0 0 24 24">
615
- <path d="M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z" />
616
- <circle cx="12" cy="12" r="2.75" />
617
- </svg>
644
+ @if (visibleIconTemplate(); as customIcon) {
645
+ <span class="aeris-custom-icon" aria-hidden="true" data-aeris-custom-icon
646
+ ><ng-container [ngTemplateOutlet]="customIcon"
647
+ /></span>
648
+ } @else {
649
+ <span
650
+ aerisInternalIcon="eye"
651
+ class="aeris-password__visibility-mark"
652
+ data-visible="true"
653
+ aria-hidden="true"
654
+ ></span>
655
+ }
618
656
  } @else {
619
- <svg aria-hidden="true" viewBox="0 0 24 24">
620
- <path d="M9.4 6.4A10.6 10.6 0 0 1 12 6c6 0 9.5 6 9.5 6a15 15 0 0 1-2.8 3.4" />
621
- <path d="M14.6 17.6a10.6 10.6 0 0 1-2.6.4c-6 0-9.5-6-9.5-6a15 15 0 0 1 2.8-3.4" />
622
- <path d="M10.1 10.1a2.7 2.7 0 0 0 3.8 3.8" />
623
- <path d="M4 4l16 16" />
624
- </svg>
657
+ @if (maskedIconTemplate(); as customIcon) {
658
+ <span class="aeris-custom-icon" aria-hidden="true" data-aeris-custom-icon
659
+ ><ng-container [ngTemplateOutlet]="customIcon"
660
+ /></span>
661
+ } @else {
662
+ <span
663
+ aerisInternalIcon="eyeOff"
664
+ class="aeris-password__visibility-mark"
665
+ data-visible="false"
666
+ aria-hidden="true"
667
+ ></span>
668
+ }
625
669
  }
626
670
  </button>
627
671
  }
@@ -686,46 +730,59 @@ var AerisPasswordComponent = class AerisPasswordComponent {
686
730
  </span>
687
731
  `,
688
732
  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
- }]
733
+ 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__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:0;background:currentColor;-webkit-mask:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}@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)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-password__visibility-mark{display:block;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-eye-off) center/100% 100% no-repeat;mask:var(--aeris-icon-eye-off) center/100% 100% no-repeat}.aeris-password__visibility-mark[data-visible=true]{-webkit-mask-image:var(--aeris-icon-eye);mask-image:var(--aeris-icon-eye)}\n"],
734
+ dependencies: [
735
+ {
736
+ kind: "component",
737
+ type: ɵAerisIcon,
738
+ selector: "span[aerisInternalIcon]",
739
+ inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
740
+ },
741
+ {
742
+ kind: "directive",
743
+ type: NgTemplateOutlet,
744
+ selector: "[ngTemplateOutlet]",
745
+ inputs: [
746
+ "ngTemplateOutletContext",
747
+ "ngTemplateOutlet",
748
+ "ngTemplateOutletInjector"
749
+ ]
750
+ },
751
+ {
752
+ kind: "directive",
753
+ type: ɵAerisAppendTo,
754
+ selector: "[aerisInternalAppendTo]",
755
+ inputs: [
756
+ "aerisInternalAppendTo",
757
+ "aerisInternalAppendToDefault",
758
+ "aerisInternalAppendToAnchor",
759
+ "aerisInternalAppendToOffset",
760
+ "aerisInternalAppendToMatchWidth",
761
+ "aerisInternalAppendToPlacement",
762
+ "aerisInternalAppendToAlignment",
763
+ "aerisInternalAppendToCollisionPadding",
764
+ "aerisInternalAppendToPositionSelf",
765
+ "aerisInternalAppendToDismiss"
766
+ ],
767
+ outputs: ["aerisInternalAppendToOutside"]
768
+ }
769
+ ]
717
770
  });
718
771
  };
719
772
  i0.ɵɵngDeclareClassMetadata({
720
773
  minVersion: "12.0.0",
721
- version: "22.2.2",
774
+ version: "22.2.4",
722
775
  ngImport: i0,
723
776
  type: AerisPasswordComponent,
724
777
  decorators: [{
725
778
  type: Component,
726
779
  args: [{
727
780
  selector: "aeris-password",
728
- imports: [NgTemplateOutlet, ɵAerisAppendTo],
781
+ imports: [
782
+ ɵAerisIcon,
783
+ NgTemplateOutlet,
784
+ ɵAerisAppendTo
785
+ ],
729
786
  template: `
730
787
  <span
731
788
  class="aeris-password"
@@ -768,7 +825,13 @@ i0.ɵɵngDeclareClassMetadata({
768
825
  [attr.aria-label]="clearButtonAriaLabel()"
769
826
  (click)="clear()"
770
827
  >
771
- <span aria-hidden="true"></span>
828
+ @if (clearIconTemplate(); as customIcon) {
829
+ <span aria-hidden="true" data-aeris-custom-icon
830
+ ><ng-container [ngTemplateOutlet]="customIcon"
831
+ /></span>
832
+ } @else {
833
+ <span aerisInternalIcon="close" aria-hidden="true"></span>
834
+ }
772
835
  </button>
773
836
  }
774
837
  @if (toggleMask()) {
@@ -780,17 +843,31 @@ i0.ɵɵngDeclareClassMetadata({
780
843
  (click)="toggleVisibility()"
781
844
  >
782
845
  @if (visible()) {
783
- <svg aria-hidden="true" viewBox="0 0 24 24">
784
- <path d="M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z" />
785
- <circle cx="12" cy="12" r="2.75" />
786
- </svg>
846
+ @if (visibleIconTemplate(); as customIcon) {
847
+ <span class="aeris-custom-icon" aria-hidden="true" data-aeris-custom-icon
848
+ ><ng-container [ngTemplateOutlet]="customIcon"
849
+ /></span>
850
+ } @else {
851
+ <span
852
+ aerisInternalIcon="eye"
853
+ class="aeris-password__visibility-mark"
854
+ data-visible="true"
855
+ aria-hidden="true"
856
+ ></span>
857
+ }
787
858
  } @else {
788
- <svg aria-hidden="true" viewBox="0 0 24 24">
789
- <path d="M9.4 6.4A10.6 10.6 0 0 1 12 6c6 0 9.5 6 9.5 6a15 15 0 0 1-2.8 3.4" />
790
- <path d="M14.6 17.6a10.6 10.6 0 0 1-2.6.4c-6 0-9.5-6-9.5-6a15 15 0 0 1 2.8-3.4" />
791
- <path d="M10.1 10.1a2.7 2.7 0 0 0 3.8 3.8" />
792
- <path d="M4 4l16 16" />
793
- </svg>
859
+ @if (maskedIconTemplate(); as customIcon) {
860
+ <span class="aeris-custom-icon" aria-hidden="true" data-aeris-custom-icon
861
+ ><ng-container [ngTemplateOutlet]="customIcon"
862
+ /></span>
863
+ } @else {
864
+ <span
865
+ aerisInternalIcon="eyeOff"
866
+ class="aeris-password__visibility-mark"
867
+ data-visible="false"
868
+ aria-hidden="true"
869
+ ></span>
870
+ }
794
871
  }
795
872
  </button>
796
873
  }
@@ -860,10 +937,34 @@ i0.ɵɵngDeclareClassMetadata({
860
937
  multi: true
861
938
  }],
862
939
  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"]
940
+ 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__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:0;background:currentColor;-webkit-mask:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}@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)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-password__visibility-mark{display:block;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-eye-off) center/100% 100% no-repeat;mask:var(--aeris-icon-eye-off) center/100% 100% no-repeat}.aeris-password__visibility-mark[data-visible=true]{-webkit-mask-image:var(--aeris-icon-eye);mask-image:var(--aeris-icon-eye)}\n"]
864
941
  }]
865
942
  }],
866
943
  propDecorators: {
944
+ visibleIconTemplate: [{
945
+ type: i0.Input,
946
+ args: [{
947
+ isSignal: true,
948
+ alias: "visibleIconTemplate",
949
+ required: false
950
+ }]
951
+ }],
952
+ maskedIconTemplate: [{
953
+ type: i0.Input,
954
+ args: [{
955
+ isSignal: true,
956
+ alias: "maskedIconTemplate",
957
+ required: false
958
+ }]
959
+ }],
960
+ clearIconTemplate: [{
961
+ type: i0.Input,
962
+ args: [{
963
+ isSignal: true,
964
+ alias: "clearIconTemplate",
965
+ required: false
966
+ }]
967
+ }],
867
968
  inputElement: [{
868
969
  type: i0.ViewChild,
869
970
  args: ["passwordInput", { isSignal: true }]
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-password.mjs","names":[],"sources":["../../../projects/aeris-ui/password/aeris-password.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵaerisDisplayInvalid } from '@aeris-ui/core';\nimport {\n ɵAerisAppendTo,\n type AerisAppendTo,\n type AerisOverlayCollisionPadding,\n} from '@aeris-ui/core';\n\nexport type AerisPasswordSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisPasswordAppearance = 'outline' | 'filled';\nexport type AerisPasswordStrength = 'empty' | 'weak' | 'medium' | 'strong';\n\nexport interface AerisPasswordRequirement {\n readonly label: string;\n readonly met: boolean;\n}\n\nexport interface AerisPasswordStrengthResult {\n readonly score: 0 | 1 | 2 | 3;\n readonly strength: AerisPasswordStrength;\n readonly label: string;\n readonly requirements: readonly AerisPasswordRequirement[];\n}\n\nexport type AerisPasswordStrengthEvaluator = (\n value: string,\n minLength: number,\n) => AerisPasswordStrengthResult;\n\ninterface PasswordFeedbackContext {\n readonly $implicit: AerisPasswordStrengthResult;\n readonly result: AerisPasswordStrengthResult;\n readonly value: string;\n}\n\n@Directive({ selector: 'ng-template[aerisPasswordHeader]' })\nexport class AerisPasswordHeaderTemplate {\n readonly template = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisPasswordFeedback]' })\nexport class AerisPasswordFeedbackTemplate {\n readonly template = inject<TemplateRef<PasswordFeedbackContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisPasswordFooter]' })\nexport class AerisPasswordFooterTemplate {\n readonly template = inject<TemplateRef<void>>(TemplateRef);\n}\n\nconst scoreFor = (metCount: number): 0 | 1 | 2 | 3 => {\n if (metCount <= 2) return 1;\n if (metCount <= 4) return 2;\n return 3;\n};\n\nexport const evaluateAerisPassword: AerisPasswordStrengthEvaluator = (value, minLength) => {\n const requirements: readonly AerisPasswordRequirement[] = [\n { label: `At least ${minLength} characters`, met: value.length >= minLength },\n { label: 'One uppercase letter', met: /[A-Z]/.test(value) },\n { label: 'One lowercase letter', met: /[a-z]/.test(value) },\n { label: 'One number', met: /\\d/.test(value) },\n { label: 'One symbol', met: /[^A-Za-z0-9\\s]/.test(value) },\n ];\n\n if (!value) {\n return { score: 0, strength: 'empty', label: 'Enter a password', requirements };\n }\n\n const score = scoreFor(requirements.filter((requirement) => requirement.met).length);\n const strength = score === 1 ? 'weak' : score === 2 ? 'medium' : 'strong';\n const label =\n strength === 'weak'\n ? 'Weak password'\n : strength === 'medium'\n ? 'Medium password'\n : 'Strong password';\n return { score, strength, label, requirements };\n};\n\nlet passwordId = 0;\n\n@Component({\n selector: 'aeris-password',\n imports: [NgTemplateOutlet, ɵAerisAppendTo],\n template: `\n <span\n class=\"aeris-password\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"displayInvalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n <span class=\"aeris-password__field\">\n <input\n #passwordInput\n [id]=\"resolvedInputId()\"\n [type]=\"visible() ? 'text' : 'password'\"\n [name]=\"name()\"\n [value]=\"value()\"\n [placeholder]=\"placeholder()\"\n [autocomplete]=\"autocomplete()\"\n [minLength]=\"minLength()\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedby()\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n (input)=\"handleInput($event)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleInputBlur($event)\"\n />\n\n <span class=\"aeris-password__actions\">\n @if (showClearButton()) {\n <button\n type=\"button\"\n class=\"aeris-password__action aeris-password__clear\"\n [attr.aria-label]=\"clearButtonAriaLabel()\"\n (click)=\"clear()\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n @if (toggleMask()) {\n <button\n type=\"button\"\n class=\"aeris-password__action aeris-password__visibility\"\n [attr.aria-label]=\"visible() ? hidePasswordAriaLabel() : showPasswordAriaLabel()\"\n [attr.aria-pressed]=\"visible()\"\n (click)=\"toggleVisibility()\"\n >\n @if (visible()) {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z\" />\n <circle cx=\"12\" cy=\"12\" r=\"2.75\" />\n </svg>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M9.4 6.4A10.6 10.6 0 0 1 12 6c6 0 9.5 6 9.5 6a15 15 0 0 1-2.8 3.4\" />\n <path d=\"M14.6 17.6a10.6 10.6 0 0 1-2.6.4c-6 0-9.5-6-9.5-6a15 15 0 0 1 2.8-3.4\" />\n <path d=\"M10.1 10.1a2.7 2.7 0 0 0 3.8 3.8\" />\n <path d=\"M4 4l16 16\" />\n </svg>\n }\n </button>\n }\n </span>\n </span>\n\n @if (feedbackVisible()) {\n <span\n #feedbackPanel\n class=\"aeris-password__feedback\"\n [aerisInternalAppendTo]=\"appendTo()\"\n [aerisInternalAppendToAnchor]=\"passwordInput\"\n [aerisInternalAppendToMatchWidth]=\"true\"\n [aerisInternalAppendToCollisionPadding]=\"viewportMargin()\"\n [id]=\"feedbackId\"\n >\n @if (headerTemplate(); as header) {\n <span class=\"aeris-password__header\">\n <ng-container [ngTemplateOutlet]=\"header.template\" />\n </span>\n }\n\n @if (feedbackTemplate(); as customFeedback) {\n <ng-container\n [ngTemplateOutlet]=\"customFeedback.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: strengthResult(),\n result: strengthResult(),\n value: value(),\n }\"\n />\n } @else {\n <span class=\"aeris-password__strength-row\">\n <strong role=\"status\" aria-live=\"polite\">{{ strengthResult().label }}</strong>\n <span>{{ strengthResult().score }}/3</span>\n </span>\n <span\n class=\"aeris-password__meter\"\n [attr.data-strength]=\"strengthResult().strength\"\n aria-hidden=\"true\"\n ><span></span><span></span><span></span\n ></span>\n\n @if (showRequirements()) {\n <span class=\"aeris-password__requirements\">\n @for (requirement of strengthResult().requirements; track requirement.label) {\n <span [attr.data-met]=\"requirement.met || null\">\n <i aria-hidden=\"true\"></i>{{ requirement.label }}\n </span>\n }\n </span>\n }\n }\n\n @if (footerTemplate(); as footer) {\n <span class=\"aeris-password__footer\">\n <ng-container [ngTemplateOutlet]=\"footer.template\" />\n </span>\n }\n </span>\n }\n </span>\n `,\n styleUrl: './aeris-password.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisPasswordComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisPasswordComponent implements ControlValueAccessor {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly inputElement = viewChild<ElementRef<HTMLInputElement>>('passwordInput');\n private readonly feedbackPanel = viewChild<ElementRef<HTMLElement>>('feedbackPanel');\n private readonly feedbackPortal = viewChild(ɵAerisAppendTo);\n private readonly generatedId = `aeris-password-${++passwordId}`;\n private readonly formDisabled = signal(false);\n private readonly hasFocus = signal(false);\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model('');\n readonly visible = model(false);\n readonly appendTo = input<AerisAppendTo>();\n readonly viewportMargin = input<number | AerisOverlayCollisionPadding>(8);\n readonly inputId = input('');\n readonly name = input('');\n readonly placeholder = input('');\n readonly autocomplete = input('current-password');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly ariaDescribedBy = input('');\n readonly size = input<AerisPasswordSize>('md');\n readonly appearance = input<AerisPasswordAppearance>('outline');\n readonly minLength = input(8);\n readonly maxLength = input<number>();\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly touched = input<boolean | null>(null);\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly toggleMask = input(true, { transform: booleanAttribute });\n readonly feedback = input(true, { transform: booleanAttribute });\n readonly showRequirements = input(true, { transform: booleanAttribute });\n readonly clearable = input(false, { transform: booleanAttribute });\n readonly clearButtonAriaLabel = input('Clear password');\n readonly showPasswordAriaLabel = input('Show password');\n readonly hidePasswordAriaLabel = input('Hide password');\n readonly strengthEvaluator = input<AerisPasswordStrengthEvaluator>(evaluateAerisPassword);\n\n readonly visibilityChanged = output<boolean>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly feedbackId = `${this.generatedId}-feedback`;\n protected readonly headerTemplate = contentChild(AerisPasswordHeaderTemplate);\n protected readonly feedbackTemplate = contentChild(AerisPasswordFeedbackTemplate);\n protected readonly footerTemplate = contentChild(AerisPasswordFooterTemplate);\n protected readonly resolvedInputId = computed(() => this.inputId() || this.generatedId);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly strengthResult = computed(() =>\n this.strengthEvaluator()(this.value(), this.minLength()),\n );\n protected readonly feedbackVisible = computed(\n () => this.feedback() && this.hasFocus() && !this.effectiveDisabled(),\n );\n protected readonly showClearButton = computed(\n () =>\n this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(),\n );\n protected readonly resolvedAriaDescribedby = computed(() => {\n const ids = [this.ariaDescribedBy(), this.feedbackVisible() ? this.feedbackId : ''].filter(\n Boolean,\n );\n return ids.length ? ids.join(' ') : null;\n });\n\n writeValue(value: unknown): void {\n this.value.set(typeof value === 'string' ? value : value == null ? '' : String(value));\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(options?: FocusOptions): void {\n this.inputElement()?.nativeElement.focus(options);\n }\n\n clear(): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n this.setValue('');\n this.focus();\n }\n\n show(): void {\n this.setVisible(true);\n }\n\n hide(): void {\n this.setVisible(false);\n }\n\n toggleVisibility(): void {\n if (this.effectiveDisabled()) return;\n this.setVisible(!this.visible());\n queueMicrotask(() => this.focus());\n }\n\n protected handleInput(event: Event): void {\n this.setValue((event.target as HTMLInputElement).value);\n }\n\n protected handleFocus(event: FocusEvent): void {\n this.hasFocus.set(true);\n this.focused.emit(event);\n }\n\n protected handleInputBlur(event: FocusEvent): void {\n this.blurred.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (\n nextTarget instanceof Node &&\n (this.host.nativeElement.contains(nextTarget) ||\n this.feedbackPanel()?.nativeElement.contains(nextTarget))\n )\n return;\n this.feedbackPortal()?.restore();\n this.hasFocus.set(false);\n this.touch.emit();\n this.onTouched();\n }\n\n private setValue(value: string): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.onChange(value);\n }\n\n private setVisible(visible: boolean): void {\n if (this.visible() === visible) return;\n this.visible.set(visible);\n this.visibilityChanged.emit(visible);\n }\n}\n\nexport const AerisPassword = [\n AerisPasswordComponent,\n AerisPasswordHeaderTemplate,\n AerisPasswordFeedbackTemplate,\n AerisPasswordFooterTemplate,\n] as const;\n"],"mappings":";;;;;AAqDA,IAAa,8BAAb,MAAa,4BAA2B;CAC7B,WAAW,OAA0B,WAAW;CAD9C,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA2B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAA3B,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAA2B,cAAA;EAAA,UAAA;EAAA,UAA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CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,mBAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,OAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBA8CT,2BAA2B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,kBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACzB,6BAA6B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAC/B,2BAA2B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AAoG9E,MAAa,gBAAgB;CAC3B;CACA;CACA;CACA;AACQ"}
1
+ {"version":3,"file":"aeris-ui-core-password.mjs","names":[],"sources":["../../../projects/aeris-ui/password/aeris-password.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵAerisIcon, ɵaerisDisplayInvalid } from '@aeris-ui/core';\nimport {\n ɵAerisAppendTo,\n type AerisAppendTo,\n type AerisOverlayCollisionPadding,\n} from '@aeris-ui/core';\n\nexport type AerisPasswordSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisPasswordAppearance = 'outline' | 'filled';\nexport type AerisPasswordStrength = 'empty' | 'weak' | 'medium' | 'strong';\n\nexport interface AerisPasswordRequirement {\n readonly label: string;\n readonly met: boolean;\n}\n\nexport interface AerisPasswordStrengthResult {\n readonly score: 0 | 1 | 2 | 3;\n readonly strength: AerisPasswordStrength;\n readonly label: string;\n readonly requirements: readonly AerisPasswordRequirement[];\n}\n\nexport type AerisPasswordStrengthEvaluator = (\n value: string,\n minLength: number,\n) => AerisPasswordStrengthResult;\n\ninterface PasswordFeedbackContext {\n readonly $implicit: AerisPasswordStrengthResult;\n readonly result: AerisPasswordStrengthResult;\n readonly value: string;\n}\n\n@Directive({ selector: 'ng-template[aerisPasswordHeader]' })\nexport class AerisPasswordHeaderTemplate {\n readonly template = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisPasswordFeedback]' })\nexport class AerisPasswordFeedbackTemplate {\n readonly template = inject<TemplateRef<PasswordFeedbackContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisPasswordFooter]' })\nexport class AerisPasswordFooterTemplate {\n readonly template = inject<TemplateRef<void>>(TemplateRef);\n}\n\nconst scoreFor = (metCount: number): 0 | 1 | 2 | 3 => {\n if (metCount <= 2) return 1;\n if (metCount <= 4) return 2;\n return 3;\n};\n\nexport const evaluateAerisPassword: AerisPasswordStrengthEvaluator = (value, minLength) => {\n const requirements: readonly AerisPasswordRequirement[] = [\n { label: `At least ${minLength} characters`, met: value.length >= minLength },\n { label: 'One uppercase letter', met: /[A-Z]/.test(value) },\n { label: 'One lowercase letter', met: /[a-z]/.test(value) },\n { label: 'One number', met: /\\d/.test(value) },\n { label: 'One symbol', met: /[^A-Za-z0-9\\s]/.test(value) },\n ];\n\n if (!value) {\n return { score: 0, strength: 'empty', label: 'Enter a password', requirements };\n }\n\n const score = scoreFor(requirements.filter((requirement) => requirement.met).length);\n const strength = score === 1 ? 'weak' : score === 2 ? 'medium' : 'strong';\n const label =\n strength === 'weak'\n ? 'Weak password'\n : strength === 'medium'\n ? 'Medium password'\n : 'Strong password';\n return { score, strength, label, requirements };\n};\n\nlet passwordId = 0;\n\n@Component({\n selector: 'aeris-password',\n imports: [ɵAerisIcon, NgTemplateOutlet, ɵAerisAppendTo],\n template: `\n <span\n class=\"aeris-password\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"displayInvalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n <span class=\"aeris-password__field\">\n <input\n #passwordInput\n [id]=\"resolvedInputId()\"\n [type]=\"visible() ? 'text' : 'password'\"\n [name]=\"name()\"\n [value]=\"value()\"\n [placeholder]=\"placeholder()\"\n [autocomplete]=\"autocomplete()\"\n [minLength]=\"minLength()\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedby()\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n (input)=\"handleInput($event)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleInputBlur($event)\"\n />\n\n <span class=\"aeris-password__actions\">\n @if (showClearButton()) {\n <button\n type=\"button\"\n class=\"aeris-password__action aeris-password__clear\"\n [attr.aria-label]=\"clearButtonAriaLabel()\"\n (click)=\"clear()\"\n >\n @if (clearIconTemplate(); as customIcon) {\n <span aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <span aerisInternalIcon=\"close\" aria-hidden=\"true\"></span>\n }\n </button>\n }\n @if (toggleMask()) {\n <button\n type=\"button\"\n class=\"aeris-password__action aeris-password__visibility\"\n [attr.aria-label]=\"visible() ? hidePasswordAriaLabel() : showPasswordAriaLabel()\"\n [attr.aria-pressed]=\"visible()\"\n (click)=\"toggleVisibility()\"\n >\n @if (visible()) {\n @if (visibleIconTemplate(); as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <span\n aerisInternalIcon=\"eye\"\n class=\"aeris-password__visibility-mark\"\n data-visible=\"true\"\n aria-hidden=\"true\"\n ></span>\n }\n } @else {\n @if (maskedIconTemplate(); as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <span\n aerisInternalIcon=\"eyeOff\"\n class=\"aeris-password__visibility-mark\"\n data-visible=\"false\"\n aria-hidden=\"true\"\n ></span>\n }\n }\n </button>\n }\n </span>\n </span>\n\n @if (feedbackVisible()) {\n <span\n #feedbackPanel\n class=\"aeris-password__feedback\"\n [aerisInternalAppendTo]=\"appendTo()\"\n [aerisInternalAppendToAnchor]=\"passwordInput\"\n [aerisInternalAppendToMatchWidth]=\"true\"\n [aerisInternalAppendToCollisionPadding]=\"viewportMargin()\"\n [id]=\"feedbackId\"\n >\n @if (headerTemplate(); as header) {\n <span class=\"aeris-password__header\">\n <ng-container [ngTemplateOutlet]=\"header.template\" />\n </span>\n }\n\n @if (feedbackTemplate(); as customFeedback) {\n <ng-container\n [ngTemplateOutlet]=\"customFeedback.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: strengthResult(),\n result: strengthResult(),\n value: value(),\n }\"\n />\n } @else {\n <span class=\"aeris-password__strength-row\">\n <strong role=\"status\" aria-live=\"polite\">{{ strengthResult().label }}</strong>\n <span>{{ strengthResult().score }}/3</span>\n </span>\n <span\n class=\"aeris-password__meter\"\n [attr.data-strength]=\"strengthResult().strength\"\n aria-hidden=\"true\"\n ><span></span><span></span><span></span\n ></span>\n\n @if (showRequirements()) {\n <span class=\"aeris-password__requirements\">\n @for (requirement of strengthResult().requirements; track requirement.label) {\n <span [attr.data-met]=\"requirement.met || null\">\n <i aria-hidden=\"true\"></i>{{ requirement.label }}\n </span>\n }\n </span>\n }\n }\n\n @if (footerTemplate(); as footer) {\n <span class=\"aeris-password__footer\">\n <ng-container [ngTemplateOutlet]=\"footer.template\" />\n </span>\n }\n </span>\n }\n </span>\n `,\n styleUrl: './aeris-password.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisPasswordComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisPasswordComponent implements ControlValueAccessor {\n readonly visibleIconTemplate = input<TemplateRef<void>>();\n readonly maskedIconTemplate = input<TemplateRef<void>>();\n readonly clearIconTemplate = input<TemplateRef<void>>();\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly inputElement = viewChild<ElementRef<HTMLInputElement>>('passwordInput');\n private readonly feedbackPanel = viewChild<ElementRef<HTMLElement>>('feedbackPanel');\n private readonly feedbackPortal = viewChild(ɵAerisAppendTo);\n private readonly generatedId = `aeris-password-${++passwordId}`;\n private readonly formDisabled = signal(false);\n private readonly hasFocus = signal(false);\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model('');\n readonly visible = model(false);\n readonly appendTo = input<AerisAppendTo>();\n readonly viewportMargin = input<number | AerisOverlayCollisionPadding>(8);\n readonly inputId = input('');\n readonly name = input('');\n readonly placeholder = input('');\n readonly autocomplete = input('current-password');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly ariaDescribedBy = input('');\n readonly size = input<AerisPasswordSize>('md');\n readonly appearance = input<AerisPasswordAppearance>('outline');\n readonly minLength = input(8);\n readonly maxLength = input<number>();\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly touched = input<boolean | null>(null);\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly toggleMask = input(true, { transform: booleanAttribute });\n readonly feedback = input(true, { transform: booleanAttribute });\n readonly showRequirements = input(true, { transform: booleanAttribute });\n readonly clearable = input(false, { transform: booleanAttribute });\n readonly clearButtonAriaLabel = input('Clear password');\n readonly showPasswordAriaLabel = input('Show password');\n readonly hidePasswordAriaLabel = input('Hide password');\n readonly strengthEvaluator = input<AerisPasswordStrengthEvaluator>(evaluateAerisPassword);\n\n readonly visibilityChanged = output<boolean>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly feedbackId = `${this.generatedId}-feedback`;\n protected readonly headerTemplate = contentChild(AerisPasswordHeaderTemplate);\n protected readonly feedbackTemplate = contentChild(AerisPasswordFeedbackTemplate);\n protected readonly footerTemplate = contentChild(AerisPasswordFooterTemplate);\n protected readonly resolvedInputId = computed(() => this.inputId() || this.generatedId);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly strengthResult = computed(() =>\n this.strengthEvaluator()(this.value(), this.minLength()),\n );\n protected readonly feedbackVisible = computed(\n () => this.feedback() && this.hasFocus() && !this.effectiveDisabled(),\n );\n protected readonly showClearButton = computed(\n () =>\n this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(),\n );\n protected readonly resolvedAriaDescribedby = computed(() => {\n const ids = [this.ariaDescribedBy(), this.feedbackVisible() ? this.feedbackId : ''].filter(\n Boolean,\n );\n return ids.length ? ids.join(' ') : null;\n });\n\n writeValue(value: unknown): void {\n this.value.set(typeof value === 'string' ? value : value == null ? '' : String(value));\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(options?: FocusOptions): void {\n this.inputElement()?.nativeElement.focus(options);\n }\n\n clear(): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n this.setValue('');\n this.focus();\n }\n\n show(): void {\n this.setVisible(true);\n }\n\n hide(): void {\n this.setVisible(false);\n }\n\n toggleVisibility(): void {\n if (this.effectiveDisabled()) return;\n this.setVisible(!this.visible());\n queueMicrotask(() => this.focus());\n }\n\n protected handleInput(event: Event): void {\n this.setValue((event.target as HTMLInputElement).value);\n }\n\n protected handleFocus(event: FocusEvent): void {\n this.hasFocus.set(true);\n this.focused.emit(event);\n }\n\n protected handleInputBlur(event: FocusEvent): void {\n this.blurred.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (\n nextTarget instanceof Node &&\n (this.host.nativeElement.contains(nextTarget) ||\n this.feedbackPanel()?.nativeElement.contains(nextTarget))\n )\n return;\n this.feedbackPortal()?.restore();\n this.hasFocus.set(false);\n this.touch.emit();\n this.onTouched();\n }\n\n private setValue(value: string): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.onChange(value);\n }\n\n private setVisible(visible: boolean): void {\n if (this.visible() === visible) return;\n this.visible.set(visible);\n this.visibilityChanged.emit(visible);\n }\n}\n\nexport const AerisPassword = [\n AerisPasswordComponent,\n AerisPasswordHeaderTemplate,\n AerisPasswordFeedbackTemplate,\n AerisPasswordFooterTemplate,\n] as const;\n"],"mappings":";;;;;AAqDA,IAAa,8BAAb,MAAa,4BAA2B;CAC7B,WAAW,OAA0B,WAAW;CAD9C,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA2B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAA3B,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAA2B,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAA3B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