@educarehq/solaris-ui 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (393) hide show
  1. package/educarehq-solaris-ui.d.ts +5 -0
  2. package/esm2022/educarehq-solaris-ui.js +5 -0
  3. package/esm2022/educarehq-solaris-ui.js.map +1 -0
  4. package/esm2022/index.js +70 -0
  5. package/esm2022/index.js.map +1 -0
  6. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js +17 -0
  7. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js.map +1 -0
  8. package/esm2022/lib/components/actions/button/directives/button.directive.js +60 -0
  9. package/esm2022/lib/components/actions/button/directives/button.directive.js.map +1 -0
  10. package/esm2022/lib/components/actions/button/model/button.types.js +1 -0
  11. package/esm2022/lib/components/actions/button/model/button.types.js.map +1 -0
  12. package/esm2022/lib/components/actions/button-group/component/button-group.component.js +21 -0
  13. package/esm2022/lib/components/actions/button-group/component/button-group.component.js.map +1 -0
  14. package/esm2022/lib/components/actions/button-group/model/button-group.types.js +1 -0
  15. package/esm2022/lib/components/actions/button-group/model/button-group.types.js.map +1 -0
  16. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js +17 -0
  17. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js.map +1 -0
  18. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js +58 -0
  19. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js.map +1 -0
  20. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js +1 -0
  21. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js.map +1 -0
  22. package/esm2022/lib/components/data-display/badge/component/badge.component.js +24 -0
  23. package/esm2022/lib/components/data-display/badge/component/badge.component.js.map +1 -0
  24. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js +17 -0
  25. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js.map +1 -0
  26. package/esm2022/lib/components/data-display/badge/model/badge.types.js +1 -0
  27. package/esm2022/lib/components/data-display/badge/model/badge.types.js.map +1 -0
  28. package/esm2022/lib/components/data-display/card/component/card.component.js +20 -0
  29. package/esm2022/lib/components/data-display/card/component/card.component.js.map +1 -0
  30. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js +17 -0
  31. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js.map +1 -0
  32. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js +17 -0
  33. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js.map +1 -0
  34. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js +17 -0
  35. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js.map +1 -0
  36. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js +19 -0
  37. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js.map +1 -0
  38. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js +17 -0
  39. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js.map +1 -0
  40. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js +17 -0
  41. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js.map +1 -0
  42. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js +17 -0
  43. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js.map +1 -0
  44. package/esm2022/lib/components/data-display/card/model/card.types.js +1 -0
  45. package/esm2022/lib/components/data-display/card/model/card.types.js.map +1 -0
  46. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js +18 -0
  47. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js.map +1 -0
  48. package/esm2022/lib/components/feedback/alert/component/alert.component.js +90 -0
  49. package/esm2022/lib/components/feedback/alert/component/alert.component.js.map +1 -0
  50. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js +17 -0
  51. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js.map +1 -0
  52. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js +17 -0
  53. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js.map +1 -0
  54. package/esm2022/lib/components/feedback/alert/model/alert.types.js +1 -0
  55. package/esm2022/lib/components/feedback/alert/model/alert.types.js.map +1 -0
  56. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js +69 -0
  57. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js.map +1 -0
  58. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js +1 -0
  59. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js.map +1 -0
  60. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js +227 -0
  61. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js.map +1 -0
  62. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js +1 -0
  63. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js.map +1 -0
  64. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js +441 -0
  65. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js.map +1 -0
  66. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js +1 -0
  67. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js.map +1 -0
  68. package/esm2022/lib/components/forms/email-field/component/email-field.component.js +214 -0
  69. package/esm2022/lib/components/forms/email-field/component/email-field.component.js.map +1 -0
  70. package/esm2022/lib/components/forms/email-field/model/email-field.types.js +1 -0
  71. package/esm2022/lib/components/forms/email-field/model/email-field.types.js.map +1 -0
  72. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js +69 -0
  73. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js.map +1 -0
  74. package/esm2022/lib/components/forms/form-field/component/form-error.component.js +19 -0
  75. package/esm2022/lib/components/forms/form-field/component/form-error.component.js.map +1 -0
  76. package/esm2022/lib/components/forms/form-field/component/form-field.component.js +394 -0
  77. package/esm2022/lib/components/forms/form-field/component/form-field.component.js.map +1 -0
  78. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js +18 -0
  79. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js.map +1 -0
  80. package/esm2022/lib/components/forms/form-field/component/form-label.component.js +18 -0
  81. package/esm2022/lib/components/forms/form-field/component/form-label.component.js.map +1 -0
  82. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js +14 -0
  83. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js.map +1 -0
  84. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js +17 -0
  85. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js.map +1 -0
  86. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js +17 -0
  87. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js.map +1 -0
  88. package/esm2022/lib/components/forms/form-field/index.js +8 -0
  89. package/esm2022/lib/components/forms/form-field/index.js.map +1 -0
  90. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js +3 -0
  91. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js.map +1 -0
  92. package/esm2022/lib/components/forms/form-field/model/form-field.types.js +1 -0
  93. package/esm2022/lib/components/forms/form-field/model/form-field.types.js.map +1 -0
  94. package/esm2022/lib/components/forms/input/directives/input.directive.js +148 -0
  95. package/esm2022/lib/components/forms/input/directives/input.directive.js.map +1 -0
  96. package/esm2022/lib/components/forms/input/index.js +2 -0
  97. package/esm2022/lib/components/forms/input/index.js.map +1 -0
  98. package/esm2022/lib/components/forms/input/model/input.defaults.js +27 -0
  99. package/esm2022/lib/components/forms/input/model/input.defaults.js.map +1 -0
  100. package/esm2022/lib/components/forms/input/model/input.types.js +1 -0
  101. package/esm2022/lib/components/forms/input/model/input.types.js.map +1 -0
  102. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js +1119 -0
  103. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js.map +1 -0
  104. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js +1 -0
  105. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js.map +1 -0
  106. package/esm2022/lib/components/forms/option/component/option.component.js +149 -0
  107. package/esm2022/lib/components/forms/option/component/option.component.js.map +1 -0
  108. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js +58 -0
  109. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js.map +1 -0
  110. package/esm2022/lib/components/forms/option/index.js +3 -0
  111. package/esm2022/lib/components/forms/option/index.js.map +1 -0
  112. package/esm2022/lib/components/forms/option/model/option.types.js +1 -0
  113. package/esm2022/lib/components/forms/option/model/option.types.js.map +1 -0
  114. package/esm2022/lib/components/forms/option-group/component/option-group.component.js +103 -0
  115. package/esm2022/lib/components/forms/option-group/component/option-group.component.js.map +1 -0
  116. package/esm2022/lib/components/forms/option-group/index.js +2 -0
  117. package/esm2022/lib/components/forms/option-group/index.js.map +1 -0
  118. package/esm2022/lib/components/forms/option-group/model/option-group.types.js +1 -0
  119. package/esm2022/lib/components/forms/option-group/model/option-group.types.js.map +1 -0
  120. package/esm2022/lib/components/forms/password-field/component/password-field.component.js +299 -0
  121. package/esm2022/lib/components/forms/password-field/component/password-field.component.js.map +1 -0
  122. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js +5 -0
  123. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js.map +1 -0
  124. package/esm2022/lib/components/forms/password-field/model/password-field.types.js +1 -0
  125. package/esm2022/lib/components/forms/password-field/model/password-field.types.js.map +1 -0
  126. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js +1 -0
  127. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js.map +1 -0
  128. package/esm2022/lib/components/forms/password-field/model/password-strength.js +67 -0
  129. package/esm2022/lib/components/forms/password-field/model/password-strength.js.map +1 -0
  130. package/esm2022/lib/components/forms/password-field/validators/password.validator.js +45 -0
  131. package/esm2022/lib/components/forms/password-field/validators/password.validator.js.map +1 -0
  132. package/esm2022/lib/components/forms/radio/component/radio.component.js +219 -0
  133. package/esm2022/lib/components/forms/radio/component/radio.component.js.map +1 -0
  134. package/esm2022/lib/components/forms/radio/model/radio.types.js +1 -0
  135. package/esm2022/lib/components/forms/radio/model/radio.types.js.map +1 -0
  136. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js +348 -0
  137. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js.map +1 -0
  138. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js +3 -0
  139. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js.map +1 -0
  140. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js +1 -0
  141. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js.map +1 -0
  142. package/esm2022/lib/components/forms/select/component/select.component.js +819 -0
  143. package/esm2022/lib/components/forms/select/component/select.component.js.map +1 -0
  144. package/esm2022/lib/components/forms/select/model/select.types.js +1 -0
  145. package/esm2022/lib/components/forms/select/model/select.types.js.map +1 -0
  146. package/esm2022/lib/components/forms/switch/component/switch.component.js +211 -0
  147. package/esm2022/lib/components/forms/switch/component/switch.component.js.map +1 -0
  148. package/esm2022/lib/components/forms/switch/index.js +2 -0
  149. package/esm2022/lib/components/forms/switch/index.js.map +1 -0
  150. package/esm2022/lib/components/forms/switch/model/switch.types.js +1 -0
  151. package/esm2022/lib/components/forms/switch/model/switch.types.js.map +1 -0
  152. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js +369 -0
  153. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js.map +1 -0
  154. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js +1 -0
  155. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js.map +1 -0
  156. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js +137 -0
  157. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js.map +1 -0
  158. package/esm2022/lib/components/forms/textarea/model/textarea.types.js +1 -0
  159. package/esm2022/lib/components/forms/textarea/model/textarea.types.js.map +1 -0
  160. package/esm2022/lib/components/icon/component/solaris-icon.component.js +20 -0
  161. package/esm2022/lib/components/icon/component/solaris-icon.component.js.map +1 -0
  162. package/esm2022/lib/components/icon/index.js +2 -0
  163. package/esm2022/lib/components/icon/index.js.map +1 -0
  164. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js +29 -0
  165. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js.map +1 -0
  166. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js +317 -0
  167. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js.map +1 -0
  168. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js +16 -0
  169. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js.map +1 -0
  170. package/esm2022/lib/components/interaction/popover/index.js +4 -0
  171. package/esm2022/lib/components/interaction/popover/index.js.map +1 -0
  172. package/esm2022/lib/components/interaction/popover/model/popover-position.js +145 -0
  173. package/esm2022/lib/components/interaction/popover/model/popover-position.js.map +1 -0
  174. package/esm2022/lib/components/interaction/popover/model/popover.types.js +1 -0
  175. package/esm2022/lib/components/interaction/popover/model/popover.types.js.map +1 -0
  176. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js +3 -0
  177. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js.map +1 -0
  178. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js +23 -0
  179. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js.map +1 -0
  180. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js +405 -0
  181. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js.map +1 -0
  182. package/esm2022/lib/components/interaction/tooltip/index.js +3 -0
  183. package/esm2022/lib/components/interaction/tooltip/index.js.map +1 -0
  184. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js +209 -0
  185. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js.map +1 -0
  186. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js +1 -0
  187. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js.map +1 -0
  188. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js +3 -0
  189. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js.map +1 -0
  190. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js +25 -0
  191. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js.map +1 -0
  192. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js +1 -0
  193. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js.map +1 -0
  194. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js +1 -0
  195. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js.map +1 -0
  196. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js +10 -0
  197. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js.map +1 -0
  198. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js +60 -0
  199. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js.map +1 -0
  200. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js +10 -0
  201. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js.map +1 -0
  202. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js +3 -0
  203. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js.map +1 -0
  204. package/esm2022/lib/services/icon/icons/index.js +2 -0
  205. package/esm2022/lib/services/icon/icons/index.js.map +1 -0
  206. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js +207 -0
  207. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js.map +1 -0
  208. package/esm2022/lib/services/icon/index.js +5 -0
  209. package/esm2022/lib/services/icon/index.js.map +1 -0
  210. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js +1 -0
  211. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js.map +1 -0
  212. package/esm2022/lib/services/icon/model/solaris-icon.types.js +1 -0
  213. package/esm2022/lib/services/icon/model/solaris-icon.types.js.map +1 -0
  214. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js +10 -0
  215. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js.map +1 -0
  216. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js +43 -0
  217. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js.map +1 -0
  218. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js +3 -0
  219. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js.map +1 -0
  220. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js +1 -0
  221. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js.map +1 -0
  222. package/esm2022/lib/services/theme/model/solaris-theme.types.js +1 -0
  223. package/esm2022/lib/services/theme/model/solaris-theme.types.js.map +1 -0
  224. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js +10 -0
  225. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js.map +1 -0
  226. package/esm2022/lib/services/theme/service/solaris-theme.service.js +22 -0
  227. package/esm2022/lib/services/theme/service/solaris-theme.service.js.map +1 -0
  228. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js +10 -0
  229. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js.map +1 -0
  230. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js +3 -0
  231. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js.map +1 -0
  232. package/esm2022/lib/services/translation/index.js +6 -0
  233. package/esm2022/lib/services/translation/index.js.map +1 -0
  234. package/esm2022/lib/services/translation/model/solaris-locale.types.js +1 -0
  235. package/esm2022/lib/services/translation/model/solaris-locale.types.js.map +1 -0
  236. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js +1 -0
  237. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js.map +1 -0
  238. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js +40 -0
  239. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js.map +1 -0
  240. package/esm2022/lib/services/translation/model/solaris-translation.types.js +1 -0
  241. package/esm2022/lib/services/translation/model/solaris-translation.types.js.map +1 -0
  242. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js +20 -0
  243. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js.map +1 -0
  244. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js +10 -0
  245. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js.map +1 -0
  246. package/esm2022/lib/services/translation/service/solaris-translate.service.js +87 -0
  247. package/esm2022/lib/services/translation/service/solaris-translate.service.js.map +1 -0
  248. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js +32 -0
  249. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js.map +1 -0
  250. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js +3 -0
  251. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js.map +1 -0
  252. package/esm2022/lib/testing/provide-solaris-testing.js +11 -0
  253. package/esm2022/lib/testing/provide-solaris-testing.js.map +1 -0
  254. package/esm2022/lib/testing/solaris-test-utilities.js +12 -0
  255. package/esm2022/lib/testing/solaris-test-utilities.js.map +1 -0
  256. package/index.d.ts +106 -0
  257. package/lib/components/actions/button/directives/button-icon.directive.d.ts +5 -0
  258. package/lib/components/actions/button/directives/button.directive.d.ts +22 -0
  259. package/lib/components/actions/button/model/button.types.d.ts +5 -0
  260. package/lib/components/actions/button-group/component/button-group.component.d.ts +10 -0
  261. package/lib/components/actions/button-group/model/button-group.types.d.ts +2 -0
  262. package/lib/components/actions/icon-button/directives/icon-button-badge.directive.d.ts +5 -0
  263. package/lib/components/actions/icon-button/directives/icon-button.directive.d.ts +21 -0
  264. package/lib/components/actions/icon-button/model/icon-button.types.d.ts +5 -0
  265. package/lib/components/data-display/badge/component/badge.component.d.ts +12 -0
  266. package/lib/components/data-display/badge/directives/badge-icon.directive.d.ts +5 -0
  267. package/lib/components/data-display/badge/model/badge.types.d.ts +6 -0
  268. package/lib/components/data-display/card/component/card.component.d.ts +10 -0
  269. package/lib/components/data-display/card/directives/card-actions.directive.d.ts +5 -0
  270. package/lib/components/data-display/card/directives/card-content.directive.d.ts +5 -0
  271. package/lib/components/data-display/card/directives/card-description.directive.d.ts +5 -0
  272. package/lib/components/data-display/card/directives/card-footer.directive.d.ts +6 -0
  273. package/lib/components/data-display/card/directives/card-header.directive.d.ts +5 -0
  274. package/lib/components/data-display/card/directives/card-media.directive.d.ts +5 -0
  275. package/lib/components/data-display/card/directives/card-title.directive.d.ts +5 -0
  276. package/lib/components/data-display/card/model/card.types.d.ts +4 -0
  277. package/lib/components/feedback/alert/component/alert-actions.component.d.ts +5 -0
  278. package/lib/components/feedback/alert/component/alert.component.d.ts +26 -0
  279. package/lib/components/feedback/alert/directives/alert-description.directive.d.ts +5 -0
  280. package/lib/components/feedback/alert/directives/alert-title.directive.d.ts +5 -0
  281. package/lib/components/feedback/alert/model/alert.types.d.ts +5 -0
  282. package/lib/components/feedback/skeleton/component/skeleton.component.d.ts +17 -0
  283. package/lib/components/feedback/skeleton/model/skeleton.types.d.ts +5 -0
  284. package/lib/components/forms/checkbox/component/checkbox.component.d.ts +70 -0
  285. package/lib/components/forms/checkbox/model/checkbox.types.d.ts +5 -0
  286. package/lib/components/forms/checkbox-group/component/checkbox-group.component.d.ts +123 -0
  287. package/lib/components/forms/checkbox-group/model/checkbox-group.types.d.ts +5 -0
  288. package/lib/components/forms/email-field/component/email-field.component.d.ts +66 -0
  289. package/lib/components/forms/email-field/model/email-field.types.d.ts +6 -0
  290. package/lib/components/forms/email-field/validators/email-field.validators.d.ts +8 -0
  291. package/lib/components/forms/form-field/component/form-error.component.d.ts +5 -0
  292. package/lib/components/forms/form-field/component/form-field.component.d.ts +90 -0
  293. package/lib/components/forms/form-field/component/form-hint.component.d.ts +5 -0
  294. package/lib/components/forms/form-field/component/form-label.component.d.ts +5 -0
  295. package/lib/components/forms/form-field/directives/form-field-trigger.directive.d.ts +5 -0
  296. package/lib/components/forms/form-field/directives/form-prefix.directive.d.ts +5 -0
  297. package/lib/components/forms/form-field/directives/form-suffix.directive.d.ts +5 -0
  298. package/lib/components/forms/form-field/index.d.ts +8 -0
  299. package/lib/components/forms/form-field/model/form-control.contract.d.ts +11 -0
  300. package/lib/components/forms/form-field/model/form-field.types.d.ts +5 -0
  301. package/lib/components/forms/input/directives/input.directive.d.ts +37 -0
  302. package/lib/components/forms/input/index.d.ts +2 -0
  303. package/lib/components/forms/input/model/input.defaults.d.ts +2 -0
  304. package/lib/components/forms/input/model/input.types.d.ts +4 -0
  305. package/lib/components/forms/multi-select/component/multi-select.component.d.ts +202 -0
  306. package/lib/components/forms/multi-select/model/multi-select.types.d.ts +5 -0
  307. package/lib/components/forms/option/component/option.component.d.ts +58 -0
  308. package/lib/components/forms/option/directives/option-slots.directive.d.ts +21 -0
  309. package/lib/components/forms/option/index.d.ts +3 -0
  310. package/lib/components/forms/option/model/option.types.d.ts +3 -0
  311. package/lib/components/forms/option-group/component/option-group.component.d.ts +32 -0
  312. package/lib/components/forms/option-group/index.d.ts +2 -0
  313. package/lib/components/forms/option-group/model/option-group.types.d.ts +2 -0
  314. package/lib/components/forms/password-field/component/password-field.component.d.ts +81 -0
  315. package/lib/components/forms/password-field/model/password-field-constants.d.ts +4 -0
  316. package/lib/components/forms/password-field/model/password-field.types.d.ts +6 -0
  317. package/lib/components/forms/password-field/model/password-policy.types.d.ts +10 -0
  318. package/lib/components/forms/password-field/model/password-strength.d.ts +2 -0
  319. package/lib/components/forms/password-field/validators/password.validator.d.ts +3 -0
  320. package/lib/components/forms/radio/component/radio.component.d.ts +68 -0
  321. package/lib/components/forms/radio/model/radio.types.d.ts +4 -0
  322. package/lib/components/forms/radio-group/component/radio-group.component.d.ts +86 -0
  323. package/lib/components/forms/radio-group/model/radio-group.token.d.ts +2 -0
  324. package/lib/components/forms/radio-group/model/radio-group.types.d.ts +5 -0
  325. package/lib/components/forms/select/component/select.component.d.ts +158 -0
  326. package/lib/components/forms/select/model/select.types.d.ts +4 -0
  327. package/lib/components/forms/switch/component/switch.component.d.ts +66 -0
  328. package/lib/components/forms/switch/index.d.ts +2 -0
  329. package/lib/components/forms/switch/model/switch.types.d.ts +4 -0
  330. package/lib/components/forms/switch-group/component/switch-group.component.d.ts +91 -0
  331. package/lib/components/forms/switch-group/model/switch-group.types.d.ts +5 -0
  332. package/lib/components/forms/textarea/directives/textarea.directive.d.ts +37 -0
  333. package/lib/components/forms/textarea/model/textarea.types.d.ts +5 -0
  334. package/lib/components/icon/component/solaris-icon.component.d.ts +13 -0
  335. package/lib/components/icon/index.d.ts +1 -0
  336. package/lib/components/interaction/popover/component/popover-panel.component.d.ts +10 -0
  337. package/lib/components/interaction/popover/directives/popover-trigger.directive.d.ts +65 -0
  338. package/lib/components/interaction/popover/directives/popover.directive.d.ts +7 -0
  339. package/lib/components/interaction/popover/index.d.ts +4 -0
  340. package/lib/components/interaction/popover/model/popover-position.d.ts +4 -0
  341. package/lib/components/interaction/popover/model/popover.types.d.ts +7 -0
  342. package/lib/components/interaction/popover/token/popover.tokens.d.ts +12 -0
  343. package/lib/components/interaction/tooltip/component/tooltip-panel.component.d.ts +9 -0
  344. package/lib/components/interaction/tooltip/directive/tooltip.directive.d.ts +80 -0
  345. package/lib/components/interaction/tooltip/index.d.ts +3 -0
  346. package/lib/components/interaction/tooltip/model/tooltip-position.d.ts +5 -0
  347. package/lib/components/interaction/tooltip/model/tooltip.types.d.ts +22 -0
  348. package/lib/components/interaction/tooltip/token/tooltip.tokens.d.ts +21 -0
  349. package/lib/services/accessibility/directives/visually-hidden.directive.d.ts +5 -0
  350. package/lib/services/accessibility/model/solaris-accessibility-config.interface.d.ts +4 -0
  351. package/lib/services/accessibility/model/solaris-accessibility.types.d.ts +5 -0
  352. package/lib/services/accessibility/provider/provide-solaris-accessibility.d.ts +3 -0
  353. package/lib/services/accessibility/service/solaris-accessibility.service.d.ts +15 -0
  354. package/lib/services/accessibility/testing/solaris-accessibility-testing.provider.d.ts +3 -0
  355. package/lib/services/accessibility/token/solaris-accessibility.tokens.d.ts +3 -0
  356. package/lib/services/icon/icons/index.d.ts +1 -0
  357. package/lib/services/icon/icons/solaris-built-in-icons.d.ts +2 -0
  358. package/lib/services/icon/index.d.ts +8 -0
  359. package/lib/services/icon/model/solaris-icon-definition.interface.d.ts +36 -0
  360. package/lib/services/icon/model/solaris-icon.types.d.ts +4 -0
  361. package/lib/services/icon/provider/provide-solaris-icons.d.ts +3 -0
  362. package/lib/services/icon/service/solaris-icon-registry.service.d.ts +12 -0
  363. package/lib/services/icon/token/solaris-icon.tokens.d.ts +6 -0
  364. package/lib/services/theme/model/solaris-theme-config.interface.d.ts +5 -0
  365. package/lib/services/theme/model/solaris-theme.types.d.ts +3 -0
  366. package/lib/services/theme/provider/provide-solaris-theme.d.ts +3 -0
  367. package/lib/services/theme/service/solaris-theme.service.d.ts +9 -0
  368. package/lib/services/theme/testing/solaris-theme-testing.provider.d.ts +3 -0
  369. package/lib/services/theme/token/solaris-theme.tokens.d.ts +3 -0
  370. package/lib/services/translation/index.d.ts +8 -0
  371. package/lib/services/translation/model/solaris-locale.types.d.ts +4 -0
  372. package/lib/services/translation/model/solaris-translate-config.interface.d.ts +8 -0
  373. package/lib/services/translation/model/solaris-translate-defaults.d.ts +2 -0
  374. package/lib/services/translation/model/solaris-translation.types.d.ts +3 -0
  375. package/lib/services/translation/pipe/solaris-translate.pipe.d.ts +8 -0
  376. package/lib/services/translation/provider/provide-solaris-translate.d.ts +3 -0
  377. package/lib/services/translation/service/solaris-translate.service.d.ts +15 -0
  378. package/lib/services/translation/testing/solaris-translate-testing.provider.d.ts +3 -0
  379. package/lib/services/translation/token/solaris-translate.tokens.d.ts +3 -0
  380. package/lib/testing/provide-solaris-testing.d.ts +10 -0
  381. package/lib/testing/solaris-test-utilities.d.ts +3 -0
  382. package/package.json +9 -5
  383. package/styles/_button.scss +50 -220
  384. package/styles/_core.scss +37 -37
  385. package/styles/_icon-button.scss +43 -219
  386. package/styles/_index.scss +19 -19
  387. package/styles/_input.scss +255 -0
  388. package/styles/_popover.scss +68 -0
  389. package/styles/_theme.scss +36 -36
  390. package/styles/_tooltip.scss +3 -0
  391. package/fesm2022/educarehq-solaris-ui.mjs +0 -1047
  392. package/fesm2022/educarehq-solaris-ui.mjs.map +0 -1
  393. package/types/educarehq-solaris-ui.d.ts +0 -408
@@ -0,0 +1,103 @@
1
+ import { Component, input, computed, signal, effect, inject, ElementRef, ContentChildren, } from '@angular/core';
2
+ import { SolarisTranslateService } from '../../../../services/translation';
3
+ import { SolarisOptionComponent } from '../../option';
4
+ import * as i0 from "@angular/core";
5
+ let nextId = 0;
6
+ function generateId() {
7
+ return `solaris-option-group-${++nextId}`;
8
+ }
9
+ export class SolarisOptionGroupComponent {
10
+ elementRef = inject(ElementRef);
11
+ translateService = inject(SolarisTranslateService);
12
+ options;
13
+ label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
14
+ labelKey = input(...(ngDevMode ? [undefined, { debugName: "labelKey" }] : /* istanbul ignore next */ []));
15
+ disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {}), alias: 'disabled',
16
+ transform: (v) => v ?? false });
17
+ size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
18
+ density = input(...(ngDevMode ? [undefined, { debugName: "density" }] : /* istanbul ignore next */ []));
19
+ groupId = input(undefined, { ...(ngDevMode ? { debugName: "groupId" } : /* istanbul ignore next */ {}), alias: 'id' });
20
+ contentInitialized = signal(false, ...(ngDevMode ? [{ debugName: "contentInitialized" }] : /* istanbul ignore next */ []));
21
+ internalHidden = signal(false, ...(ngDevMode ? [{ debugName: "internalHidden" }] : /* istanbul ignore next */ []));
22
+ elementId = computed(() => {
23
+ return (this.groupId() ||
24
+ // SECURITY_EXCEPTION: nativeElement.getAttribute('id') is the standard DOM API to check existing ID before generating one. Same approach used by Angular CDK form controls and Solaris Checkbox.
25
+ this.elementRef.nativeElement.getAttribute('id') ||
26
+ generateId());
27
+ }, ...(ngDevMode ? [{ debugName: "elementId" }] : /* istanbul ignore next */ []));
28
+ labelId = computed(() => `${this.elementId()}-label`, ...(ngDevMode ? [{ debugName: "labelId" }] : /* istanbul ignore next */ []));
29
+ effectiveDensity = computed(() => {
30
+ return this.density() ?? 'comfortable';
31
+ }, ...(ngDevMode ? [{ debugName: "effectiveDensity" }] : /* istanbul ignore next */ []));
32
+ isEffectivelyDisabled = computed(() => {
33
+ return this.disabledInput();
34
+ }, ...(ngDevMode ? [{ debugName: "isEffectivelyDisabled" }] : /* istanbul ignore next */ []));
35
+ labelText = computed(() => {
36
+ const key = this.labelKey();
37
+ if (key) {
38
+ const translated = this.translateService.translate(key);
39
+ if (translated !== key)
40
+ return translated;
41
+ return this.label() ?? key;
42
+ }
43
+ return this.label();
44
+ }, ...(ngDevMode ? [{ debugName: "labelText" }] : /* istanbul ignore next */ []));
45
+ effectiveAriaLabel = computed(() => {
46
+ return this.labelText() ?? null;
47
+ }, ...(ngDevMode ? [{ debugName: "effectiveAriaLabel" }] : /* istanbul ignore next */ []));
48
+ ariaLabelledBy = computed(() => {
49
+ if (this.labelText()) {
50
+ return this.labelId();
51
+ }
52
+ return null;
53
+ }, ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
54
+ optionQuerySubscription = null;
55
+ ngAfterContentInit() {
56
+ this.contentInitialized.set(true);
57
+ this.propagateDisabledToOptions();
58
+ this.optionQuerySubscription = this.options.changes.subscribe(() => {
59
+ this.propagateDisabledToOptions();
60
+ });
61
+ }
62
+ ngOnDestroy() {
63
+ if (this.optionQuerySubscription) {
64
+ this.optionQuerySubscription.unsubscribe();
65
+ }
66
+ }
67
+ setHidden(v) {
68
+ this.internalHidden.set(v);
69
+ }
70
+ propagateDisabledToOptions() {
71
+ if (!this.options)
72
+ return;
73
+ const isDisabled = this.isEffectivelyDisabled();
74
+ this.options.forEach((option) => {
75
+ option.setGroupDisabledState(isDisabled);
76
+ });
77
+ }
78
+ _disabledEffect = effect(() => {
79
+ if (!this.contentInitialized())
80
+ return;
81
+ this.isEffectivelyDisabled();
82
+ this.propagateDisabledToOptions();
83
+ }, ...(ngDevMode ? [{ debugName: "_disabledEffect" }] : /* istanbul ignore next */ []));
84
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisOptionGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
85
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisOptionGroupComponent, isStandalone: true, selector: "solaris-option-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, groupId: { classPropertyName: "groupId", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.id": "elementId()", "attr.data-size": "size()", "attr.aria-label": "effectiveAriaLabel() ?? null", "attr.aria-labelledby": "ariaLabelledBy()", "attr.data-density": "effectiveDensity()", "attr.data-disabled": "isEffectivelyDisabled() ? \"\" : null", "style.display": "internalHidden() ? \"none\" : \"\"" } }, queries: [{ propertyName: "options", predicate: SolarisOptionComponent, descendants: true }], ngImport: i0, template: "<div class=\"solaris-option-group\">\n @if (labelText(); as groupLabel) {\n <div class=\"solaris-option-group__label\" [id]=\"labelId()\">\n {{ groupLabel }}\n </div>\n }\n <div class=\"solaris-option-group__options\">\n <ng-content />\n </div>\n</div>\n", styles: [":host{--solaris-option-group-gap: initial;--solaris-option-group-padding-x: initial;--solaris-option-group-padding-y: initial;--solaris-option-group-label-color: initial;display:block;outline:none}.solaris-option-group{display:flex;flex-direction:column;gap:var(--solaris-option-group-gap);padding:var(--solaris-option-group-padding-y) var(--solaris-option-group-padding-x)}.solaris-option-group__label{-webkit-user-select:none;user-select:none;color:var(--solaris-option-group-label-color);font-weight:var(--solaris-font-weight-semibold);padding:var(--solaris-spacing-2) var(--solaris-spacing-3)}.solaris-option-group__options{display:flex;flex-direction:column}:host([data-size=sm]){--solaris-option-group-padding-x: 0;--solaris-option-group-padding-y: 0;--solaris-option-group-gap: var(--solaris-spacing-1);--solaris-option-group-label-color: var(--solaris-text-muted)}:host([data-size=sm]) .solaris-option-group__label{font-size:var(--solaris-font-size-xs);text-transform:uppercase;letter-spacing:.05em}:host([data-size=md]){--solaris-option-group-padding-x: 0;--solaris-option-group-padding-y: 0;--solaris-option-group-gap: var(--solaris-spacing-1);--solaris-option-group-label-color: var(--solaris-text-muted)}:host([data-size=md]) .solaris-option-group__label{font-size:var(--solaris-font-size-sm);text-transform:uppercase;letter-spacing:.05em}:host([data-size=lg]){--solaris-option-group-padding-x: 0;--solaris-option-group-padding-y: 0;--solaris-option-group-gap: var(--solaris-spacing-2);--solaris-option-group-label-color: var(--solaris-text-muted)}:host([data-size=lg]) .solaris-option-group__label{font-size:var(--solaris-font-size-md);text-transform:uppercase;letter-spacing:.05em}:host([data-density=compact]){--solaris-option-group-gap: 0}:host([data-density=comfortable]){--solaris-option-group-gap: var(--solaris-spacing-1)}:host([data-disabled]){opacity:.6}\n"] });
86
+ }
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisOptionGroupComponent, decorators: [{
88
+ type: Component,
89
+ args: [{ selector: 'solaris-option-group', standalone: true, imports: [], host: {
90
+ role: 'group',
91
+ '[attr.id]': 'elementId()',
92
+ '[attr.data-size]': 'size()',
93
+ '[attr.aria-label]': 'effectiveAriaLabel() ?? null',
94
+ '[attr.aria-labelledby]': 'ariaLabelledBy()',
95
+ '[attr.data-density]': 'effectiveDensity()',
96
+ '[attr.data-disabled]': 'isEffectivelyDisabled() ? "" : null',
97
+ '[style.display]': 'internalHidden() ? "none" : ""',
98
+ }, template: "<div class=\"solaris-option-group\">\n @if (labelText(); as groupLabel) {\n <div class=\"solaris-option-group__label\" [id]=\"labelId()\">\n {{ groupLabel }}\n </div>\n }\n <div class=\"solaris-option-group__options\">\n <ng-content />\n </div>\n</div>\n", styles: [":host{--solaris-option-group-gap: initial;--solaris-option-group-padding-x: initial;--solaris-option-group-padding-y: initial;--solaris-option-group-label-color: initial;display:block;outline:none}.solaris-option-group{display:flex;flex-direction:column;gap:var(--solaris-option-group-gap);padding:var(--solaris-option-group-padding-y) var(--solaris-option-group-padding-x)}.solaris-option-group__label{-webkit-user-select:none;user-select:none;color:var(--solaris-option-group-label-color);font-weight:var(--solaris-font-weight-semibold);padding:var(--solaris-spacing-2) var(--solaris-spacing-3)}.solaris-option-group__options{display:flex;flex-direction:column}:host([data-size=sm]){--solaris-option-group-padding-x: 0;--solaris-option-group-padding-y: 0;--solaris-option-group-gap: var(--solaris-spacing-1);--solaris-option-group-label-color: var(--solaris-text-muted)}:host([data-size=sm]) .solaris-option-group__label{font-size:var(--solaris-font-size-xs);text-transform:uppercase;letter-spacing:.05em}:host([data-size=md]){--solaris-option-group-padding-x: 0;--solaris-option-group-padding-y: 0;--solaris-option-group-gap: var(--solaris-spacing-1);--solaris-option-group-label-color: var(--solaris-text-muted)}:host([data-size=md]) .solaris-option-group__label{font-size:var(--solaris-font-size-sm);text-transform:uppercase;letter-spacing:.05em}:host([data-size=lg]){--solaris-option-group-padding-x: 0;--solaris-option-group-padding-y: 0;--solaris-option-group-gap: var(--solaris-spacing-2);--solaris-option-group-label-color: var(--solaris-text-muted)}:host([data-size=lg]) .solaris-option-group__label{font-size:var(--solaris-font-size-md);text-transform:uppercase;letter-spacing:.05em}:host([data-density=compact]){--solaris-option-group-gap: 0}:host([data-density=comfortable]){--solaris-option-group-gap: var(--solaris-spacing-1)}:host([data-disabled]){opacity:.6}\n"] }]
99
+ }], propDecorators: { options: [{
100
+ type: ContentChildren,
101
+ args: [SolarisOptionComponent, { descendants: true }]
102
+ }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelKey", required: false }] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], groupId: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
103
+ //# sourceMappingURL=option-group.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option-group.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/forms/option-group/component/option-group.component.ts","../../../../../../../../../packages/angular/src/lib/components/forms/option-group/component/option-group.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,MAAM,EACN,MAAM,EACN,UAAU,EACV,eAAe,GAIhB,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;;AAOtD,IAAI,MAAM,GAAG,CAAC,CAAC;AAEf,SAAS,UAAU;IACjB,OAAO,wBAAwB,EAAE,MAAM,EAAE,CAAC;AAC5C,CAAC;AAmBD,MAAM,OAAO,2BAA2B;IAGrB,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC;IACzD,gBAAgB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAGpE,OAAO,CAAqC;IAEnC,KAAK,GAAG,KAAK,sFAAU,CAAC;IACxB,QAAQ,GAAG,KAAK,yFAAU,CAAC;IAC3B,aAAa,GAAG,KAAK,CAAmB,KAAK,qFACpD,KAA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,eAAe,GAAG,MAAM,CAAC,GAAG,EAAE;QAC7C,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;YAAE,OAAO;QACvC,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC7B,IAAI,CAAC,0BAA0B,EAAE,CAAC;IACpC,CAAC,sFAAC,CAAC;wGAjGQ,2BAA2B;4FAA3B,2BAA2B,qtCAMrB,sBAAsB,gDCrDzC,kRAUA;;4FDqCa,2BAA2B;kBAjBvC,SAAS;+BACE,sBAAsB,cACpB,IAAI,WACP,EAAE,QAGL;wBACJ,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,aAAa;wBAC1B,kBAAkB,EAAE,QAAQ;wBAC5B,mBAAmB,EAAE,8BAA8B;wBACnD,wBAAwB,EAAE,kBAAkB;wBAC5C,qBAAqB,EAAE,oBAAoB;wBAC3C,sBAAsB,EAAE,qCAAqC;wBAC7D,iBAAiB,EAAE,gCAAgC;qBACpD;;sBAQA,eAAe;uBAAC,sBAAsB,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE","sourcesContent":["import {\n Component,\n input,\n computed,\n signal,\n effect,\n inject,\n ElementRef,\n ContentChildren,\n QueryList,\n type AfterContentInit,\n type OnDestroy,\n} from '@angular/core';\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Subscription = any;\n\nimport { SolarisTranslateService } from '../../../../services/translation';\nimport { SolarisOptionComponent } from '../../option';\n\nimport type {\n SolarisOptionGroupSize,\n SolarisOptionGroupDensity,\n} from '../model/option-group.types';\n\nlet nextId = 0;\n\nfunction generateId(): string {\n return `solaris-option-group-${++nextId}`;\n}\n\n@Component({\n selector: 'solaris-option-group',\n standalone: true,\n imports: [],\n templateUrl: './option-group.component.html',\n styleUrls: ['./option-group.component.scss'],\n host: {\n role: 'group',\n '[attr.id]': 'elementId()',\n '[attr.data-size]': 'size()',\n '[attr.aria-label]': 'effectiveAriaLabel() ?? null',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n '[attr.data-density]': 'effectiveDensity()',\n '[attr.data-disabled]': 'isEffectivelyDisabled() ? \"\" : null',\n '[style.display]': 'internalHidden() ? \"none\" : \"\"',\n },\n})\nexport class SolarisOptionGroupComponent\n implements AfterContentInit, OnDestroy\n{\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly translateService = inject(SolarisTranslateService);\n\n @ContentChildren(SolarisOptionComponent, { descendants: true })\n options!: QueryList<SolarisOptionComponent>;\n\n readonly label = input<string>();\n readonly labelKey = input<string>();\n readonly disabledInput = input<boolean, boolean>(false, {\n alias: 'disabled',\n transform: (v: boolean) => v ?? false,\n });\n readonly size = input<SolarisOptionGroupSize>('md');\n readonly density = input<SolarisOptionGroupDensity>();\n readonly groupId = input<string>(undefined, { alias: 'id' });\n\n protected readonly contentInitialized = signal(false);\n protected readonly internalHidden = signal(false);\n\n protected readonly elementId = computed(() => {\n return (\n this.groupId() ||\n // SECURITY_EXCEPTION: nativeElement.getAttribute('id') is the standard DOM API to check existing ID before generating one. Same approach used by Angular CDK form controls and Solaris Checkbox.\n this.elementRef.nativeElement.getAttribute('id') ||\n generateId()\n );\n });\n\n protected readonly labelId = computed(() => `${this.elementId()}-label`);\n\n protected readonly effectiveDensity = computed<SolarisOptionGroupDensity>(\n () => {\n return this.density() ?? 'comfortable';\n },\n );\n\n readonly isEffectivelyDisabled = computed(() => {\n return this.disabledInput();\n });\n\n protected readonly labelText = computed(() => {\n const key = this.labelKey();\n if (key) {\n const translated = this.translateService.translate(key);\n if (translated !== key) return translated;\n return this.label() ?? key;\n }\n return this.label();\n });\n\n protected readonly effectiveAriaLabel = computed(() => {\n return this.labelText() ?? null;\n });\n\n protected readonly ariaLabelledBy = computed(() => {\n if (this.labelText()) {\n return this.labelId();\n }\n return null;\n });\n\n private optionQuerySubscription: Subscription | null = null;\n\n ngAfterContentInit(): void {\n this.contentInitialized.set(true);\n this.propagateDisabledToOptions();\n\n this.optionQuerySubscription = this.options.changes.subscribe(() => {\n this.propagateDisabledToOptions();\n });\n }\n\n ngOnDestroy(): void {\n if (this.optionQuerySubscription) {\n this.optionQuerySubscription.unsubscribe();\n }\n }\n\n setHidden(v: boolean): void {\n this.internalHidden.set(v);\n }\n\n private propagateDisabledToOptions(): void {\n if (!this.options) return;\n const isDisabled = this.isEffectivelyDisabled();\n this.options.forEach((option) => {\n option.setGroupDisabledState(isDisabled);\n });\n }\n\n private readonly _disabledEffect = effect(() => {\n if (!this.contentInitialized()) return;\n this.isEffectivelyDisabled();\n this.propagateDisabledToOptions();\n });\n}\n","<div class=\"solaris-option-group\">\n @if (labelText(); as groupLabel) {\n <div class=\"solaris-option-group__label\" [id]=\"labelId()\">\n {{ groupLabel }}\n </div>\n }\n <div class=\"solaris-option-group__options\">\n <ng-content />\n </div>\n</div>\n"]}
@@ -0,0 +1,2 @@
1
+ export { SolarisOptionGroupComponent } from './component/option-group.component';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/components/forms/option-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC","sourcesContent":["export { SolarisOptionGroupComponent } from './component/option-group.component';\nexport type {\n SolarisOptionGroupSize,\n SolarisOptionGroupDensity,\n} from './model/option-group.types';\n"]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=option-group.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option-group.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/forms/option-group/model/option-group.types.ts"],"names":[],"mappings":"","sourcesContent":["export type SolarisOptionGroupSize = 'sm' | 'md' | 'lg';\n\nexport type SolarisOptionGroupDensity = 'compact' | 'comfortable';\n"]}
@@ -0,0 +1,299 @@
1
+ import { Component, input, computed, signal, output, effect, forwardRef, inject, ViewChild, ElementRef, isDevMode, } from '@angular/core';
2
+ import { NG_VALUE_ACCESSOR, FormsModule, } from '@angular/forms';
3
+ import { SolarisFormFieldComponent, SolarisFormSuffixDirective, } from '../../form-field';
4
+ import { solarisPasswordValidator } from '../validators/password.validator';
5
+ import { SolarisTranslateService } from '../../../../services/translation';
6
+ import { SolarisIconComponent } from '../../../../components/icon';
7
+ import { SolarisInputDirective } from '../../input';
8
+ import { calculatePasswordStrength } from '../model/password-strength';
9
+ import * as i0 from "@angular/core";
10
+ export class SolarisPasswordFieldComponent {
11
+ translateService = inject(SolarisTranslateService);
12
+ inputElementRef;
13
+ value = input('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
14
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
15
+ labelKey = input(...(ngDevMode ? [undefined, { debugName: "labelKey" }] : /* istanbul ignore next */ []));
16
+ hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
17
+ hintKey = input(...(ngDevMode ? [undefined, { debugName: "hintKey" }] : /* istanbul ignore next */ []));
18
+ error = input('', ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
19
+ errorKey = input(...(ngDevMode ? [undefined, { debugName: "errorKey" }] : /* istanbul ignore next */ []));
20
+ placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
21
+ placeholderKey = input(...(ngDevMode ? [undefined, { debugName: "placeholderKey" }] : /* istanbul ignore next */ []));
22
+ autocomplete = input(...(ngDevMode ? [undefined, { debugName: "autocomplete" }] : /* istanbul ignore next */ []));
23
+ name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
24
+ id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
25
+ required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
26
+ optional = input(false, ...(ngDevMode ? [{ debugName: "optional" }] : /* istanbul ignore next */ []));
27
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
28
+ readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
29
+ invalid = input(...(ngDevMode ? [undefined, { debugName: "invalid" }] : /* istanbul ignore next */ []));
30
+ appearance = input('outline', ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
31
+ size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
32
+ density = input(...(ngDevMode ? [undefined, { debugName: "density" }] : /* istanbul ignore next */ []));
33
+ radius = input('md', ...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
34
+ fullWidth = input(true, ...(ngDevMode ? [{ debugName: "fullWidth" }] : /* istanbul ignore next */ []));
35
+ showToggle = input(true, ...(ngDevMode ? [{ debugName: "showToggle" }] : /* istanbul ignore next */ []));
36
+ visible = input(false, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
37
+ showRequirements = input(false, ...(ngDevMode ? [{ debugName: "showRequirements" }] : /* istanbul ignore next */ []));
38
+ showStrength = input(false, ...(ngDevMode ? [{ debugName: "showStrength" }] : /* istanbul ignore next */ []));
39
+ policy = input(...(ngDevMode ? [undefined, { debugName: "policy" }] : /* istanbul ignore next */ []));
40
+ validatePolicy = input(true, ...(ngDevMode ? [{ debugName: "validatePolicy" }] : /* istanbul ignore next */ []));
41
+ minLength = input(...(ngDevMode ? [undefined, { debugName: "minLength" }] : /* istanbul ignore next */ []));
42
+ maxLength = input(...(ngDevMode ? [undefined, { debugName: "maxLength" }] : /* istanbul ignore next */ []));
43
+ toggleShowLabel = input(...(ngDevMode ? [undefined, { debugName: "toggleShowLabel" }] : /* istanbul ignore next */ []));
44
+ toggleShowLabelKey = input(...(ngDevMode ? [undefined, { debugName: "toggleShowLabelKey" }] : /* istanbul ignore next */ []));
45
+ toggleHideLabel = input(...(ngDevMode ? [undefined, { debugName: "toggleHideLabel" }] : /* istanbul ignore next */ []));
46
+ toggleHideLabelKey = input(...(ngDevMode ? [undefined, { debugName: "toggleHideLabelKey" }] : /* istanbul ignore next */ []));
47
+ valueChange = output();
48
+ visibleChange = output();
49
+ internalValue = signal('', ...(ngDevMode ? [{ debugName: "internalValue" }] : /* istanbul ignore next */ []));
50
+ internalFocused = signal(false, ...(ngDevMode ? [{ debugName: "internalFocused" }] : /* istanbul ignore next */ []));
51
+ internalDisabled = signal(false, ...(ngDevMode ? [{ debugName: "internalDisabled" }] : /* istanbul ignore next */ []));
52
+ _visibleState = signal(false, ...(ngDevMode ? [{ debugName: "_visibleState" }] : /* istanbul ignore next */ []));
53
+ touched = signal(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
54
+ dirty = signal(false, ...(ngDevMode ? [{ debugName: "dirty" }] : /* istanbul ignore next */ []));
55
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
56
+ onChange = () => { };
57
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
58
+ onTouched = () => { };
59
+ effectivePolicy = computed(() => {
60
+ const p = this.policy();
61
+ const min = this.minLength();
62
+ const max = this.maxLength();
63
+ if (!p && min === undefined && max === undefined) {
64
+ return undefined;
65
+ }
66
+ return {
67
+ ...p,
68
+ ...(min !== undefined ? { minLength: min } : {}),
69
+ ...(max !== undefined ? { maxLength: max } : {}),
70
+ };
71
+ }, ...(ngDevMode ? [{ debugName: "effectivePolicy" }] : /* istanbul ignore next */ []));
72
+ constructor() {
73
+ effect(() => {
74
+ this._visibleState.set(this.visible());
75
+ });
76
+ }
77
+ inputType = computed(() => {
78
+ return this._visibleState() ? 'text' : 'password';
79
+ }, ...(ngDevMode ? [{ debugName: "inputType" }] : /* istanbul ignore next */ []));
80
+ placeholderText = computed(() => {
81
+ const key = this.placeholderKey();
82
+ if (key) {
83
+ return this.translateService.translate(key);
84
+ }
85
+ return this.placeholder() ?? '';
86
+ }, ...(ngDevMode ? [{ debugName: "placeholderText" }] : /* istanbul ignore next */ []));
87
+ toggleLabel = computed(() => {
88
+ if (this._visibleState()) {
89
+ const key = this.toggleHideLabelKey();
90
+ if (key) {
91
+ return this.translateService.translate(key);
92
+ }
93
+ return (this.toggleHideLabel() ||
94
+ this.translateWithDefault('solaris.password-field.toggle.hide', 'Hide password'));
95
+ }
96
+ const key = this.toggleShowLabelKey();
97
+ if (key) {
98
+ return this.translateService.translate(key);
99
+ }
100
+ return (this.toggleShowLabel() ||
101
+ this.translateWithDefault('solaris.password-field.toggle.show', 'Show password'));
102
+ }, ...(ngDevMode ? [{ debugName: "toggleLabel" }] : /* istanbul ignore next */ []));
103
+ translateWithDefault(key, defaultText, params) {
104
+ const result = this.translateService.translate(key, params);
105
+ return result !== key ? result : defaultText;
106
+ }
107
+ isEffectivelyDisabled = computed(() => {
108
+ return this.disabled() || this.internalDisabled();
109
+ }, ...(ngDevMode ? [{ debugName: "isEffectivelyDisabled" }] : /* istanbul ignore next */ []));
110
+ isFieldInvalid = computed(() => {
111
+ const manual = this.invalid();
112
+ if (manual !== undefined) {
113
+ return manual;
114
+ }
115
+ if (this.internalFocused()) {
116
+ return false;
117
+ }
118
+ const isTouchedOrDirty = this.touched() || this.dirty();
119
+ if (!isTouchedOrDirty) {
120
+ return false;
121
+ }
122
+ const val = this.internalValue();
123
+ if (this.required() && (!val || val.length === 0)) {
124
+ return true;
125
+ }
126
+ const currentPolicy = this.effectivePolicy();
127
+ if (this.validatePolicy() && currentPolicy) {
128
+ if (typeof val === 'string' && val.length > 0) {
129
+ const errors = solarisPasswordValidator(currentPolicy)({
130
+ value: val,
131
+ });
132
+ if (errors && Object.keys(errors).length > 0) {
133
+ return true;
134
+ }
135
+ }
136
+ }
137
+ return false;
138
+ }, ...(ngDevMode ? [{ debugName: "isFieldInvalid" }] : /* istanbul ignore next */ []));
139
+ computedError = computed(() => {
140
+ if (!this.isFieldInvalid()) {
141
+ return '';
142
+ }
143
+ const val = this.internalValue();
144
+ if (!val || val.length === 0) {
145
+ if (this.required()) {
146
+ return this.translateWithDefault('solaris.password-field.error.required', 'Password is required.');
147
+ }
148
+ }
149
+ return '';
150
+ }, ...(ngDevMode ? [{ debugName: "computedError" }] : /* istanbul ignore next */ []));
151
+ requirementList = computed(() => {
152
+ const p = this.effectivePolicy();
153
+ if (!p) {
154
+ return [];
155
+ }
156
+ const val = this.internalValue();
157
+ const items = [];
158
+ if (p.minLength !== undefined) {
159
+ items.push({
160
+ key: 'minLength',
161
+ label: this.translateWithDefault('solaris.password-field.requirement.minLength', `At least ${p.minLength} characters.`, { count: p.minLength }),
162
+ met: val.length >= p.minLength,
163
+ });
164
+ }
165
+ if (p.maxLength !== undefined) {
166
+ items.push({
167
+ key: 'maxLength',
168
+ label: this.translateWithDefault('solaris.password-field.requirement.maxLength', `At most ${p.maxLength} characters.`, { count: p.maxLength }),
169
+ met: val.length <= p.maxLength,
170
+ });
171
+ }
172
+ if (p.requireLowercase) {
173
+ items.push({
174
+ key: 'lowercase',
175
+ label: this.translateWithDefault('solaris.password-field.requirement.lowercase', 'One lowercase letter.'),
176
+ met: /[a-z]/.test(val),
177
+ });
178
+ }
179
+ if (p.requireUppercase) {
180
+ items.push({
181
+ key: 'uppercase',
182
+ label: this.translateWithDefault('solaris.password-field.requirement.uppercase', 'One uppercase letter.'),
183
+ met: /[A-Z]/.test(val),
184
+ });
185
+ }
186
+ if (p.requireNumber) {
187
+ items.push({
188
+ key: 'number',
189
+ label: this.translateWithDefault('solaris.password-field.requirement.number', 'One number.'),
190
+ met: /\d/.test(val),
191
+ });
192
+ }
193
+ if (p.requireSymbol) {
194
+ items.push({
195
+ key: 'symbol',
196
+ label: this.translateWithDefault('solaris.password-field.requirement.symbol', 'One symbol.'),
197
+ met: /[^a-zA-Z0-9]/.test(val),
198
+ });
199
+ }
200
+ if (p.disallowWhitespace) {
201
+ items.push({
202
+ key: 'noWhitespace',
203
+ label: this.translateWithDefault('solaris.password-field.requirement.noWhitespace', 'No spaces.'),
204
+ met: !/\s/.test(val),
205
+ });
206
+ }
207
+ return items;
208
+ }, ...(ngDevMode ? [{ debugName: "requirementList" }] : /* istanbul ignore next */ []));
209
+ strengthLevel = computed(() => calculatePasswordStrength(this.internalValue()), ...(ngDevMode ? [{ debugName: "strengthLevel" }] : /* istanbul ignore next */ []));
210
+ strengthLabelText = computed(() => {
211
+ const level = this.strengthLevel();
212
+ switch (level) {
213
+ case 'empty':
214
+ return '';
215
+ case 'weak':
216
+ return this.translateWithDefault('solaris.password-field.strength.weak', 'Weak');
217
+ case 'medium':
218
+ return this.translateWithDefault('solaris.password-field.strength.medium', 'Medium');
219
+ case 'strong':
220
+ return this.translateWithDefault('solaris.password-field.strength.strong', 'Strong');
221
+ }
222
+ }, ...(ngDevMode ? [{ debugName: "strengthLabelText" }] : /* istanbul ignore next */ []));
223
+ writeValue(safe = '') {
224
+ this.internalValue.set(safe);
225
+ }
226
+ registerOnChange(fn) {
227
+ this.onChange = fn;
228
+ }
229
+ registerOnTouched(fn) {
230
+ this.onTouched = fn;
231
+ }
232
+ setDisabledState(isDisabled) {
233
+ this.internalDisabled.set(isDisabled);
234
+ }
235
+ onInput(event) {
236
+ const target = event.target;
237
+ const newValue = target.value;
238
+ if (!this.dirty()) {
239
+ this.dirty.set(true);
240
+ }
241
+ this.internalValue.set(newValue);
242
+ this.onChange(newValue);
243
+ this.valueChange.emit(newValue);
244
+ }
245
+ onInputFocus() {
246
+ this.internalFocused.set(true);
247
+ }
248
+ onInputBlur() {
249
+ this.internalFocused.set(false);
250
+ if (!this.touched()) {
251
+ this.touched.set(true);
252
+ }
253
+ this.onTouched();
254
+ }
255
+ toggleVisibility() {
256
+ const newVisible = !this._visibleState();
257
+ this._visibleState.set(newVisible);
258
+ this.visibleChange.emit(newVisible);
259
+ if (this.inputElementRef) {
260
+ try {
261
+ // SECURITY_EXCEPTION: nativeElement.focus() is the standard DOM API to restore focus after toggle. No SSR-safe alternative exists for imperative focus. Same approach used by Angular CDK.
262
+ this.inputElementRef.nativeElement.focus();
263
+ }
264
+ catch {
265
+ if (isDevMode()) {
266
+ console.warn('[SolarisPasswordField] Could not restore focus after toggle.');
267
+ }
268
+ }
269
+ }
270
+ }
271
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisPasswordFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
272
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisPasswordFieldComponent, isStandalone: true, selector: "solaris-password-field", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, hintKey: { classPropertyName: "hintKey", publicName: "hintKey", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorKey: { classPropertyName: "errorKey", publicName: "errorKey", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, placeholderKey: { classPropertyName: "placeholderKey", publicName: "placeholderKey", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", 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 }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, showToggle: { classPropertyName: "showToggle", publicName: "showToggle", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, showRequirements: { classPropertyName: "showRequirements", publicName: "showRequirements", isSignal: true, isRequired: false, transformFunction: null }, showStrength: { classPropertyName: "showStrength", publicName: "showStrength", isSignal: true, isRequired: false, transformFunction: null }, policy: { classPropertyName: "policy", publicName: "policy", isSignal: true, isRequired: false, transformFunction: null }, validatePolicy: { classPropertyName: "validatePolicy", publicName: "validatePolicy", 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 }, toggleShowLabel: { classPropertyName: "toggleShowLabel", publicName: "toggleShowLabel", isSignal: true, isRequired: false, transformFunction: null }, toggleShowLabelKey: { classPropertyName: "toggleShowLabelKey", publicName: "toggleShowLabelKey", isSignal: true, isRequired: false, transformFunction: null }, toggleHideLabel: { classPropertyName: "toggleHideLabel", publicName: "toggleHideLabel", isSignal: true, isRequired: false, transformFunction: null }, toggleHideLabelKey: { classPropertyName: "toggleHideLabelKey", publicName: "toggleHideLabelKey", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", visibleChange: "visibleChange" }, providers: [
273
+ {
274
+ provide: NG_VALUE_ACCESSOR,
275
+ useExisting: forwardRef(() => SolarisPasswordFieldComponent),
276
+ multi: true,
277
+ },
278
+ ], viewQueries: [{ propertyName: "inputElementRef", first: true, predicate: ["inputElement"], descendants: true, read: ElementRef }], ngImport: i0, template: "<solaris-form-field\n [label]=\"label()\"\n [labelKey]=\"labelKey()\"\n [hint]=\"hint()\"\n [hintKey]=\"hintKey()\"\n [error]=\"error() || computedError()\"\n [errorKey]=\"errorKey()\"\n [invalid]=\"isFieldInvalid()\"\n [required]=\"required()\"\n [optional]=\"optional()\"\n [disabled]=\"isEffectivelyDisabled()\"\n [readonly]=\"readonly()\"\n [appearance]=\"appearance()\"\n [size]=\"size()\"\n [density]=\"density()\"\n [radius]=\"radius()\"\n>\n <input\n #inputElement\n solaris-input\n [type]=\"inputType()\"\n [value]=\"internalValue()\"\n [disabled]=\"isEffectivelyDisabled()\"\n [readonly]=\"readonly()\"\n [attr.autocomplete]=\"autocomplete() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.id]=\"id() ?? null\"\n [attr.placeholder]=\"placeholderText() || null\"\n (input)=\"onInput($event)\"\n (focus)=\"onInputFocus()\"\n (blur)=\"onInputBlur()\"\n />\n @if (showToggle()) {\n <button\n class=\"solaris-password-field__toggle\"\n solaris-form-suffix\n type=\"button\"\n [disabled]=\"isEffectivelyDisabled()\"\n [attr.aria-label]=\"toggleLabel()\"\n (click)=\"toggleVisibility()\"\n >\n <solaris-icon\n [name]=\"_visibleState() ? 'eye-off' : 'eye'\"\n [decorative]=\"true\"\n />\n </button>\n }\n</solaris-form-field>\n\n@if (showRequirements() && effectivePolicy(); as p) {\n <div class=\"solaris-password-field__requirements\" role=\"list\">\n @for (req of requirementList(); track req.key) {\n <div\n class=\"solaris-password-field__requirement\"\n role=\"listitem\"\n [attr.data-met]=\"req.met\"\n >\n <solaris-icon\n class=\"solaris-password-field__requirement-icon\"\n [name]=\"req.met ? 'check' : 'x'\"\n [decorative]=\"true\"\n />\n <span class=\"solaris-password-field__requirement-label\">\n {{ req.label }}\n </span>\n </div>\n }\n </div>\n}\n\n@if (showStrength() && internalValue().length > 0) {\n <div\n class=\"solaris-password-field__strength\"\n [attr.data-level]=\"strengthLevel()\"\n role=\"status\"\n aria-live=\"polite\"\n >\n <div class=\"solaris-password-field__strength-bar\">\n <div\n class=\"solaris-password-field__strength-segment\"\n [attr.data-active]=\"strengthLevel() !== 'empty'\"\n ></div>\n <div\n class=\"solaris-password-field__strength-segment\"\n [attr.data-active]=\"\n strengthLevel() === 'medium' || strengthLevel() === 'strong'\n \"\n ></div>\n <div\n class=\"solaris-password-field__strength-segment\"\n [attr.data-active]=\"strengthLevel() === 'strong'\"\n ></div>\n </div>\n <span class=\"solaris-password-field__strength-label\">\n {{ strengthLabelText() }}\n </span>\n </div>\n}\n", styles: [":host{--solaris-password-field-strength-height: .4rem;--solaris-password-field-strength-gap: var(--solaris-spacing-2, .8rem);--solaris-password-field-requirement-gap: var(--solaris-spacing-1, .4rem);--solaris-password-field-strength-radius: var(--solaris-radius-sm, .2rem);--solaris-password-field-requirement-color: var( --solaris-text-muted, #6b7280 );--solaris-password-field-strength-bar-bg: var( --solaris-surface-muted, #f3f4f6 );--solaris-password-field-strength-weak-color: var( --solaris-danger-text, #dc2626 );--solaris-password-field-requirement-met-color: var( --solaris-success-text, #059669 );--solaris-password-field-requirement-unmet-color: var( --solaris-danger-text, #dc2626 );--solaris-password-field-strength-medium-color: var( --solaris-warning-text, #d97706 );--solaris-password-field-strength-strong-color: var( --solaris-success-text, #059669 );display:block;box-sizing:border-box}.solaris-password-field__toggle{margin:0;padding:0;border:none;font:inherit;line-height:1;cursor:pointer;appearance:none;background:none;box-shadow:none;align-items:center;justify-content:center;-webkit-appearance:none}.solaris-password-field__toggle:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.solaris-form-suffix solaris-icon{cursor:pointer;width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl);transition:color var(--solaris-motion-duration-normal) ease}.solaris-password-field__requirements{padding:0;display:flex;list-style:none;flex-direction:column;margin-top:var(--solaris-spacing-2);gap:var(--solaris-password-field-requirement-gap)}.solaris-password-field__requirement{display:flex;align-items:center;gap:var(--solaris-spacing-1);font-size:var(--solaris-font-size-sm);color:var(--solaris-password-field-requirement-unmet-color);transition:color var(--solaris-motion-duration-fast, .15s) ease}.solaris-password-field__requirement[data-met=true]{color:var(--solaris-password-field-requirement-met-color)}.solaris-password-field__requirement-icon{width:1em;height:1em;flex-shrink:0}.solaris-password-field__requirement[data-met=true] .solaris-password-field__requirement-icon{color:var(--solaris-password-field-requirement-met-color)}.solaris-password-field__requirement[data-met=false] .solaris-password-field__requirement-icon{color:var(--solaris-password-field-requirement-unmet-color)}.solaris-password-field__strength{display:flex;align-items:center;margin-top:var(--solaris-spacing-1);gap:var(--solaris-password-field-strength-gap)}.solaris-password-field__strength-bar{display:flex;gap:.3rem;flex:1;min-width:4rem;height:var(--solaris-password-field-strength-height)}.solaris-password-field__strength-segment{flex:1;height:100%;background:var(--solaris-password-field-strength-bar-bg);border-radius:var(--solaris-password-field-strength-radius);transition:background-color var(--solaris-motion-duration-normal, .3s) ease}.solaris-password-field__strength[data-level=weak] .solaris-password-field__strength-segment[data-active=true]{background-color:var(--solaris-password-field-strength-weak-color)}.solaris-password-field__strength[data-level=medium] .solaris-password-field__strength-segment[data-active=true]{background-color:var(--solaris-password-field-strength-medium-color)}.solaris-password-field__strength[data-level=strong] .solaris-password-field__strength-segment[data-active=true]{background-color:var(--solaris-password-field-strength-strong-color)}input[type=password]::-ms-reveal,input[type=password]::-ms-clear{display:none}input[type=password]::-webkit-credentials-auto-fill-button,input[type=password]::-webkit-contacts-auto-fill-button{display:none!important;visibility:hidden;pointer-events:none}.solaris-password-field__strength-label{flex-shrink:0;white-space:nowrap;color:var(--solaris-text-muted);font-size:var(--solaris-font-size-xs)}@media(prefers-reduced-motion:reduce){.solaris-password-field__requirement,.solaris-password-field__strength-segment{transition:none}}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: SolarisFormFieldComponent, selector: "solaris-form-field", inputs: ["hintKey", "labelKey", "hint", "errorKey", "label", "error", "optionalLabel", "requiredLabel", "optionalLabelKey", "requiredLabelKey", "required", "optional", "invalid", "disabled", "readonly", "density", "size", "radius", "appearance", "control"] }, { kind: "directive", type: SolarisInputDirective, selector: "[solaris-input]", inputs: ["appearance", "radius", "size", "density", "invalid", "fullWidth"] }, { kind: "directive", type: SolarisFormSuffixDirective, selector: "[solaris-form-suffix]" }, { kind: "component", type: SolarisIconComponent, selector: "solaris-icon", inputs: ["name", "ariaLabel", "decorative"] }] });
279
+ }
280
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisPasswordFieldComponent, decorators: [{
281
+ type: Component,
282
+ args: [{ selector: 'solaris-password-field', standalone: true, imports: [
283
+ FormsModule,
284
+ SolarisFormFieldComponent,
285
+ SolarisInputDirective,
286
+ SolarisFormSuffixDirective,
287
+ SolarisIconComponent,
288
+ ], providers: [
289
+ {
290
+ provide: NG_VALUE_ACCESSOR,
291
+ useExisting: forwardRef(() => SolarisPasswordFieldComponent),
292
+ multi: true,
293
+ },
294
+ ], template: "<solaris-form-field\n [label]=\"label()\"\n [labelKey]=\"labelKey()\"\n [hint]=\"hint()\"\n [hintKey]=\"hintKey()\"\n [error]=\"error() || computedError()\"\n [errorKey]=\"errorKey()\"\n [invalid]=\"isFieldInvalid()\"\n [required]=\"required()\"\n [optional]=\"optional()\"\n [disabled]=\"isEffectivelyDisabled()\"\n [readonly]=\"readonly()\"\n [appearance]=\"appearance()\"\n [size]=\"size()\"\n [density]=\"density()\"\n [radius]=\"radius()\"\n>\n <input\n #inputElement\n solaris-input\n [type]=\"inputType()\"\n [value]=\"internalValue()\"\n [disabled]=\"isEffectivelyDisabled()\"\n [readonly]=\"readonly()\"\n [attr.autocomplete]=\"autocomplete() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.id]=\"id() ?? null\"\n [attr.placeholder]=\"placeholderText() || null\"\n (input)=\"onInput($event)\"\n (focus)=\"onInputFocus()\"\n (blur)=\"onInputBlur()\"\n />\n @if (showToggle()) {\n <button\n class=\"solaris-password-field__toggle\"\n solaris-form-suffix\n type=\"button\"\n [disabled]=\"isEffectivelyDisabled()\"\n [attr.aria-label]=\"toggleLabel()\"\n (click)=\"toggleVisibility()\"\n >\n <solaris-icon\n [name]=\"_visibleState() ? 'eye-off' : 'eye'\"\n [decorative]=\"true\"\n />\n </button>\n }\n</solaris-form-field>\n\n@if (showRequirements() && effectivePolicy(); as p) {\n <div class=\"solaris-password-field__requirements\" role=\"list\">\n @for (req of requirementList(); track req.key) {\n <div\n class=\"solaris-password-field__requirement\"\n role=\"listitem\"\n [attr.data-met]=\"req.met\"\n >\n <solaris-icon\n class=\"solaris-password-field__requirement-icon\"\n [name]=\"req.met ? 'check' : 'x'\"\n [decorative]=\"true\"\n />\n <span class=\"solaris-password-field__requirement-label\">\n {{ req.label }}\n </span>\n </div>\n }\n </div>\n}\n\n@if (showStrength() && internalValue().length > 0) {\n <div\n class=\"solaris-password-field__strength\"\n [attr.data-level]=\"strengthLevel()\"\n role=\"status\"\n aria-live=\"polite\"\n >\n <div class=\"solaris-password-field__strength-bar\">\n <div\n class=\"solaris-password-field__strength-segment\"\n [attr.data-active]=\"strengthLevel() !== 'empty'\"\n ></div>\n <div\n class=\"solaris-password-field__strength-segment\"\n [attr.data-active]=\"\n strengthLevel() === 'medium' || strengthLevel() === 'strong'\n \"\n ></div>\n <div\n class=\"solaris-password-field__strength-segment\"\n [attr.data-active]=\"strengthLevel() === 'strong'\"\n ></div>\n </div>\n <span class=\"solaris-password-field__strength-label\">\n {{ strengthLabelText() }}\n </span>\n </div>\n}\n", styles: [":host{--solaris-password-field-strength-height: .4rem;--solaris-password-field-strength-gap: var(--solaris-spacing-2, .8rem);--solaris-password-field-requirement-gap: var(--solaris-spacing-1, .4rem);--solaris-password-field-strength-radius: var(--solaris-radius-sm, .2rem);--solaris-password-field-requirement-color: var( --solaris-text-muted, #6b7280 );--solaris-password-field-strength-bar-bg: var( --solaris-surface-muted, #f3f4f6 );--solaris-password-field-strength-weak-color: var( --solaris-danger-text, #dc2626 );--solaris-password-field-requirement-met-color: var( --solaris-success-text, #059669 );--solaris-password-field-requirement-unmet-color: var( --solaris-danger-text, #dc2626 );--solaris-password-field-strength-medium-color: var( --solaris-warning-text, #d97706 );--solaris-password-field-strength-strong-color: var( --solaris-success-text, #059669 );display:block;box-sizing:border-box}.solaris-password-field__toggle{margin:0;padding:0;border:none;font:inherit;line-height:1;cursor:pointer;appearance:none;background:none;box-shadow:none;align-items:center;justify-content:center;-webkit-appearance:none}.solaris-password-field__toggle:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.solaris-form-suffix solaris-icon{cursor:pointer;width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl);transition:color var(--solaris-motion-duration-normal) ease}.solaris-password-field__requirements{padding:0;display:flex;list-style:none;flex-direction:column;margin-top:var(--solaris-spacing-2);gap:var(--solaris-password-field-requirement-gap)}.solaris-password-field__requirement{display:flex;align-items:center;gap:var(--solaris-spacing-1);font-size:var(--solaris-font-size-sm);color:var(--solaris-password-field-requirement-unmet-color);transition:color var(--solaris-motion-duration-fast, .15s) ease}.solaris-password-field__requirement[data-met=true]{color:var(--solaris-password-field-requirement-met-color)}.solaris-password-field__requirement-icon{width:1em;height:1em;flex-shrink:0}.solaris-password-field__requirement[data-met=true] .solaris-password-field__requirement-icon{color:var(--solaris-password-field-requirement-met-color)}.solaris-password-field__requirement[data-met=false] .solaris-password-field__requirement-icon{color:var(--solaris-password-field-requirement-unmet-color)}.solaris-password-field__strength{display:flex;align-items:center;margin-top:var(--solaris-spacing-1);gap:var(--solaris-password-field-strength-gap)}.solaris-password-field__strength-bar{display:flex;gap:.3rem;flex:1;min-width:4rem;height:var(--solaris-password-field-strength-height)}.solaris-password-field__strength-segment{flex:1;height:100%;background:var(--solaris-password-field-strength-bar-bg);border-radius:var(--solaris-password-field-strength-radius);transition:background-color var(--solaris-motion-duration-normal, .3s) ease}.solaris-password-field__strength[data-level=weak] .solaris-password-field__strength-segment[data-active=true]{background-color:var(--solaris-password-field-strength-weak-color)}.solaris-password-field__strength[data-level=medium] .solaris-password-field__strength-segment[data-active=true]{background-color:var(--solaris-password-field-strength-medium-color)}.solaris-password-field__strength[data-level=strong] .solaris-password-field__strength-segment[data-active=true]{background-color:var(--solaris-password-field-strength-strong-color)}input[type=password]::-ms-reveal,input[type=password]::-ms-clear{display:none}input[type=password]::-webkit-credentials-auto-fill-button,input[type=password]::-webkit-contacts-auto-fill-button{display:none!important;visibility:hidden;pointer-events:none}.solaris-password-field__strength-label{flex-shrink:0;white-space:nowrap;color:var(--solaris-text-muted);font-size:var(--solaris-font-size-xs)}@media(prefers-reduced-motion:reduce){.solaris-password-field__requirement,.solaris-password-field__strength-segment{transition:none}}\n"] }]
295
+ }], ctorParameters: () => [], propDecorators: { inputElementRef: [{
296
+ type: ViewChild,
297
+ args: ['inputElement', { read: ElementRef }]
298
+ }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelKey", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], hintKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "hintKey", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorKey", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], placeholderKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholderKey", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], showToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToggle", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], showRequirements: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequirements", required: false }] }], showStrength: [{ type: i0.Input, args: [{ isSignal: true, alias: "showStrength", required: false }] }], policy: [{ type: i0.Input, args: [{ isSignal: true, alias: "policy", required: false }] }], validatePolicy: [{ type: i0.Input, args: [{ isSignal: true, alias: "validatePolicy", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], toggleShowLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleShowLabel", required: false }] }], toggleShowLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleShowLabelKey", required: false }] }], toggleHideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleHideLabel", required: false }] }], toggleHideLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleHideLabelKey", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }] } });
299
+ //# sourceMappingURL=password-field.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-field.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/forms/password-field/component/password-field.component.ts","../../../../../../../../../packages/angular/src/lib/components/forms/password-field/component/password-field.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,MAAM,EACN,MAAM,EACN,UAAU,EACV,MAAM,EACN,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,iBAAiB,EAEjB,WAAW,GACZ,MAAM,gBAAgB,CAAC;AASxB,OAAO,EACL,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;;AA4BvE,MAAM,OAAO,6BAA6B;IACvB,gBAAgB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAG1D,eAAe,CAAgC;IAEhD,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC,CAAC;IAC1B,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC,CAAC;IAC1B,QAAQ,GAAG,KAAK,yFAAU,CAAC;IAC3B,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC,CAAC;IACzB,OAAO,GAAG,KAAK,wFAAU,CAAC;IAC1B,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC,CAAC;IAC1B,QAAQ,GAAG,KAAK,yFAAU,CAAC;IAC3B,WAAW,GAAG,KAAK,4FAAU,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C,aAAa,CAAC,KAAK,EAAE,CAAC;YAC7C,CAAC;YAAC,MAAM,CAAC;gBACP,IAAI,SAAS,EAAE,EAAE,CAAC;oBAChB,OAAO,CAAC,IAAI,CACV,8DAA8D,CAC/D,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;wGA1WU,6BAA6B;4FAA7B,6BAA6B,2iJAV7B;YACT;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;gBAC5D,KAAK,EAAE,IAAI;aACZ;SACF,sHAOkC,UAAU,6BCnE/C,40FAkGA,m6HDlDI,WAAW,+BACX,yBAAyB,iUACzB,qBAAqB,yIACrB,0BAA0B,kEAC1B,oBAAoB;;4FAYX,6BAA6B;kBApBzC,SAAS;+BACE,wBAAwB,cACtB,IAAI,WACP;wBACP,WAAW;wBACX,yBAAyB;wBACzB,qBAAqB;wBACrB,0BAA0B;wBAC1B,oBAAoB;qBACrB,aACU;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,8BAA8B,CAAC;4BAC5D,KAAK,EAAE,IAAI;yBACZ;qBACF;;sBAOA,SAAS;uBAAC,cAAc,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE","sourcesContent":["import {\n Component,\n input,\n computed,\n signal,\n output,\n effect,\n forwardRef,\n inject,\n ViewChild,\n ElementRef,\n isDevMode,\n} from '@angular/core';\nimport {\n NG_VALUE_ACCESSOR,\n ControlValueAccessor,\n FormsModule,\n} from '@angular/forms';\n\nimport type {\n SolarisPasswordFieldAppearance,\n SolarisPasswordFieldSize,\n SolarisPasswordFieldDensity,\n SolarisPasswordFieldRadius,\n SolarisPasswordStrength,\n} from '../model/password-field.types';\nimport {\n SolarisFormFieldComponent,\n SolarisFormSuffixDirective,\n} from '../../form-field';\nimport type { SolarisPasswordPolicy } from '../model/password-policy.types';\nimport { solarisPasswordValidator } from '../validators/password.validator';\nimport { SolarisTranslateService } from '../../../../services/translation';\nimport type { SolarisTranslateParams } from '../../../../services/translation';\nimport { SolarisIconComponent } from '../../../../components/icon';\nimport { SolarisInputDirective } from '../../input';\nimport { calculatePasswordStrength } from '../model/password-strength';\n\ninterface RequirementItem {\n key: string;\n label: string;\n met: boolean;\n}\n\n@Component({\n selector: 'solaris-password-field',\n standalone: true,\n imports: [\n FormsModule,\n SolarisFormFieldComponent,\n SolarisInputDirective,\n SolarisFormSuffixDirective,\n SolarisIconComponent,\n ],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SolarisPasswordFieldComponent),\n multi: true,\n },\n ],\n templateUrl: './password-field.component.html',\n styleUrls: ['./password-field.component.scss'],\n})\nexport class SolarisPasswordFieldComponent implements ControlValueAccessor {\n private readonly translateService = inject(SolarisTranslateService);\n\n @ViewChild('inputElement', { read: ElementRef })\n protected inputElementRef?: ElementRef<HTMLInputElement>;\n\n readonly value = input<string>('');\n readonly label = input<string>('');\n readonly labelKey = input<string>();\n readonly hint = input<string>('');\n readonly hintKey = input<string>();\n readonly error = input<string>('');\n readonly errorKey = input<string>();\n readonly placeholder = input<string>();\n readonly placeholderKey = input<string>();\n readonly autocomplete = input<string>();\n readonly name = input<string>();\n readonly id = input<string>();\n readonly required = input<boolean>(false);\n readonly optional = input<boolean>(false);\n readonly disabled = input<boolean>(false);\n readonly readonly = input<boolean>(false);\n readonly invalid = input<boolean | undefined>();\n readonly appearance = input<SolarisPasswordFieldAppearance>('outline');\n readonly size = input<SolarisPasswordFieldSize>('md');\n readonly density = input<SolarisPasswordFieldDensity>();\n readonly radius = input<SolarisPasswordFieldRadius>('md');\n readonly fullWidth = input<boolean>(true);\n\n readonly showToggle = input<boolean>(true);\n readonly visible = input<boolean>(false);\n readonly showRequirements = input<boolean>(false);\n readonly showStrength = input<boolean>(false);\n readonly policy = input<SolarisPasswordPolicy | undefined>();\n readonly validatePolicy = input<boolean>(true);\n readonly minLength = input<number>();\n readonly maxLength = input<number>();\n\n readonly toggleShowLabel = input<string>();\n readonly toggleShowLabelKey = input<string>();\n readonly toggleHideLabel = input<string>();\n readonly toggleHideLabelKey = input<string>();\n\n readonly valueChange = output<string>();\n readonly visibleChange = output<boolean>();\n\n protected readonly internalValue = signal<string>('');\n protected readonly internalFocused = signal(false);\n protected readonly internalDisabled = signal(false);\n protected readonly _visibleState = signal(false);\n protected readonly touched = signal(false);\n protected readonly dirty = signal(false);\n\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n private onChange: (value: string) => void = () => {};\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n private onTouched: () => void = () => {};\n\n protected readonly effectivePolicy = computed<\n SolarisPasswordPolicy | undefined\n >(() => {\n const p = this.policy();\n const min = this.minLength();\n const max = this.maxLength();\n if (!p && min === undefined && max === undefined) {\n return undefined;\n }\n return {\n ...p,\n ...(min !== undefined ? { minLength: min } : {}),\n ...(max !== undefined ? { maxLength: max } : {}),\n };\n });\n\n constructor() {\n effect(() => {\n this._visibleState.set(this.visible());\n });\n }\n\n protected readonly inputType = computed(() => {\n return this._visibleState() ? 'text' : 'password';\n });\n\n protected readonly placeholderText = computed(() => {\n const key = this.placeholderKey();\n if (key) {\n return this.translateService.translate(key);\n }\n return this.placeholder() ?? '';\n });\n\n protected readonly toggleLabel = computed(() => {\n if (this._visibleState()) {\n const key = this.toggleHideLabelKey();\n if (key) {\n return this.translateService.translate(key);\n }\n return (\n this.toggleHideLabel() ||\n this.translateWithDefault(\n 'solaris.password-field.toggle.hide',\n 'Hide password',\n )\n );\n }\n const key = this.toggleShowLabelKey();\n if (key) {\n return this.translateService.translate(key);\n }\n return (\n this.toggleShowLabel() ||\n this.translateWithDefault(\n 'solaris.password-field.toggle.show',\n 'Show password',\n )\n );\n });\n\n private translateWithDefault(\n key: string,\n defaultText: string,\n params?: SolarisTranslateParams,\n ): string {\n const result = this.translateService.translate(key, params);\n return result !== key ? result : defaultText;\n }\n\n protected readonly isEffectivelyDisabled = computed(() => {\n return this.disabled() || this.internalDisabled();\n });\n\n protected readonly isFieldInvalid = computed(() => {\n const manual = this.invalid();\n if (manual !== undefined) {\n return manual;\n }\n\n if (this.internalFocused()) {\n return false;\n }\n\n const isTouchedOrDirty = this.touched() || this.dirty();\n if (!isTouchedOrDirty) {\n return false;\n }\n\n const val = this.internalValue();\n if (this.required() && (!val || val.length === 0)) {\n return true;\n }\n\n const currentPolicy = this.effectivePolicy();\n if (this.validatePolicy() && currentPolicy) {\n if (typeof val === 'string' && val.length > 0) {\n const errors = solarisPasswordValidator(currentPolicy)({\n value: val,\n } as never);\n if (errors && Object.keys(errors).length > 0) {\n return true;\n }\n }\n }\n\n return false;\n });\n\n protected readonly computedError = computed(() => {\n if (!this.isFieldInvalid()) {\n return '';\n }\n\n const val = this.internalValue();\n if (!val || val.length === 0) {\n if (this.required()) {\n return this.translateWithDefault(\n 'solaris.password-field.error.required',\n 'Password is required.',\n );\n }\n }\n\n return '';\n });\n\n protected readonly requirementList = computed<RequirementItem[]>(() => {\n const p = this.effectivePolicy();\n if (!p) {\n return [];\n }\n const val = this.internalValue();\n const items: RequirementItem[] = [];\n\n if (p.minLength !== undefined) {\n items.push({\n key: 'minLength',\n label: this.translateWithDefault(\n 'solaris.password-field.requirement.minLength',\n `At least ${p.minLength} characters.`,\n { count: p.minLength },\n ),\n met: val.length >= p.minLength,\n });\n }\n\n if (p.maxLength !== undefined) {\n items.push({\n key: 'maxLength',\n label: this.translateWithDefault(\n 'solaris.password-field.requirement.maxLength',\n `At most ${p.maxLength} characters.`,\n { count: p.maxLength },\n ),\n met: val.length <= p.maxLength,\n });\n }\n\n if (p.requireLowercase) {\n items.push({\n key: 'lowercase',\n label: this.translateWithDefault(\n 'solaris.password-field.requirement.lowercase',\n 'One lowercase letter.',\n ),\n met: /[a-z]/.test(val),\n });\n }\n\n if (p.requireUppercase) {\n items.push({\n key: 'uppercase',\n label: this.translateWithDefault(\n 'solaris.password-field.requirement.uppercase',\n 'One uppercase letter.',\n ),\n met: /[A-Z]/.test(val),\n });\n }\n\n if (p.requireNumber) {\n items.push({\n key: 'number',\n label: this.translateWithDefault(\n 'solaris.password-field.requirement.number',\n 'One number.',\n ),\n met: /\\d/.test(val),\n });\n }\n\n if (p.requireSymbol) {\n items.push({\n key: 'symbol',\n label: this.translateWithDefault(\n 'solaris.password-field.requirement.symbol',\n 'One symbol.',\n ),\n met: /[^a-zA-Z0-9]/.test(val),\n });\n }\n\n if (p.disallowWhitespace) {\n items.push({\n key: 'noWhitespace',\n label: this.translateWithDefault(\n 'solaris.password-field.requirement.noWhitespace',\n 'No spaces.',\n ),\n met: !/\\s/.test(val),\n });\n }\n\n return items;\n });\n\n protected readonly strengthLevel = computed<SolarisPasswordStrength>(() =>\n calculatePasswordStrength(this.internalValue()),\n );\n\n protected readonly strengthLabelText = computed(() => {\n const level = this.strengthLevel();\n switch (level) {\n case 'empty':\n return '';\n case 'weak':\n return this.translateWithDefault(\n 'solaris.password-field.strength.weak',\n 'Weak',\n );\n case 'medium':\n return this.translateWithDefault(\n 'solaris.password-field.strength.medium',\n 'Medium',\n );\n case 'strong':\n return this.translateWithDefault(\n 'solaris.password-field.strength.strong',\n 'Strong',\n );\n }\n });\n\n writeValue(safe = ''): void {\n this.internalValue.set(safe);\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.internalDisabled.set(isDisabled);\n }\n\n protected onInput(event: Event): void {\n const target = event.target as HTMLInputElement;\n const newValue = target.value;\n\n if (!this.dirty()) {\n this.dirty.set(true);\n }\n\n this.internalValue.set(newValue);\n this.onChange(newValue);\n this.valueChange.emit(newValue);\n }\n\n protected onInputFocus(): void {\n this.internalFocused.set(true);\n }\n\n protected onInputBlur(): void {\n this.internalFocused.set(false);\n\n if (!this.touched()) {\n this.touched.set(true);\n }\n\n this.onTouched();\n }\n\n protected toggleVisibility(): void {\n const newVisible = !this._visibleState();\n this._visibleState.set(newVisible);\n this.visibleChange.emit(newVisible);\n\n if (this.inputElementRef) {\n try {\n // SECURITY_EXCEPTION: nativeElement.focus() is the standard DOM API to restore focus after toggle. No SSR-safe alternative exists for imperative focus. Same approach used by Angular CDK.\n this.inputElementRef.nativeElement.focus();\n } catch {\n if (isDevMode()) {\n console.warn(\n '[SolarisPasswordField] Could not restore focus after toggle.',\n );\n }\n }\n }\n }\n}\n","<solaris-form-field\n [label]=\"label()\"\n [labelKey]=\"labelKey()\"\n [hint]=\"hint()\"\n [hintKey]=\"hintKey()\"\n [error]=\"error() || computedError()\"\n [errorKey]=\"errorKey()\"\n [invalid]=\"isFieldInvalid()\"\n [required]=\"required()\"\n [optional]=\"optional()\"\n [disabled]=\"isEffectivelyDisabled()\"\n [readonly]=\"readonly()\"\n [appearance]=\"appearance()\"\n [size]=\"size()\"\n [density]=\"density()\"\n [radius]=\"radius()\"\n>\n <input\n #inputElement\n solaris-input\n [type]=\"inputType()\"\n [value]=\"internalValue()\"\n [disabled]=\"isEffectivelyDisabled()\"\n [readonly]=\"readonly()\"\n [attr.autocomplete]=\"autocomplete() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.id]=\"id() ?? null\"\n [attr.placeholder]=\"placeholderText() || null\"\n (input)=\"onInput($event)\"\n (focus)=\"onInputFocus()\"\n (blur)=\"onInputBlur()\"\n />\n @if (showToggle()) {\n <button\n class=\"solaris-password-field__toggle\"\n solaris-form-suffix\n type=\"button\"\n [disabled]=\"isEffectivelyDisabled()\"\n [attr.aria-label]=\"toggleLabel()\"\n (click)=\"toggleVisibility()\"\n >\n <solaris-icon\n [name]=\"_visibleState() ? 'eye-off' : 'eye'\"\n [decorative]=\"true\"\n />\n </button>\n }\n</solaris-form-field>\n\n@if (showRequirements() && effectivePolicy(); as p) {\n <div class=\"solaris-password-field__requirements\" role=\"list\">\n @for (req of requirementList(); track req.key) {\n <div\n class=\"solaris-password-field__requirement\"\n role=\"listitem\"\n [attr.data-met]=\"req.met\"\n >\n <solaris-icon\n class=\"solaris-password-field__requirement-icon\"\n [name]=\"req.met ? 'check' : 'x'\"\n [decorative]=\"true\"\n />\n <span class=\"solaris-password-field__requirement-label\">\n {{ req.label }}\n </span>\n </div>\n }\n </div>\n}\n\n@if (showStrength() && internalValue().length > 0) {\n <div\n class=\"solaris-password-field__strength\"\n [attr.data-level]=\"strengthLevel()\"\n role=\"status\"\n aria-live=\"polite\"\n >\n <div class=\"solaris-password-field__strength-bar\">\n <div\n class=\"solaris-password-field__strength-segment\"\n [attr.data-active]=\"strengthLevel() !== 'empty'\"\n ></div>\n <div\n class=\"solaris-password-field__strength-segment\"\n [attr.data-active]=\"\n strengthLevel() === 'medium' || strengthLevel() === 'strong'\n \"\n ></div>\n <div\n class=\"solaris-password-field__strength-segment\"\n [attr.data-active]=\"strengthLevel() === 'strong'\"\n ></div>\n </div>\n <span class=\"solaris-password-field__strength-label\">\n {{ strengthLabelText() }}\n </span>\n </div>\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export const ALPHABET = 'abcdefghijklmnopqrstuvwxyz';
2
+ export const DIGITS = '0123456789';
3
+ export const SEQUENTIAL_MIN_LENGTH = 4;
4
+ export const REPEAT_MIN_COUNT = 3;
5
+ //# sourceMappingURL=password-field-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-field-constants.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/forms/password-field/model/password-field-constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,4BAA4B,CAAC;AACrD,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC;AACnC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC;AACvC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC","sourcesContent":["export const ALPHABET = 'abcdefghijklmnopqrstuvwxyz';\nexport const DIGITS = '0123456789';\nexport const SEQUENTIAL_MIN_LENGTH = 4;\nexport const REPEAT_MIN_COUNT = 3;\n"]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=password-field.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-field.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/forms/password-field/model/password-field.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n SolarisFormFieldAppearance,\n SolarisFormFieldSize,\n SolarisFormFieldDensity,\n SolarisFormFieldRadius,\n} from '../../form-field';\n\nexport type SolarisPasswordFieldSize = SolarisFormFieldSize;\nexport type SolarisPasswordFieldRadius = SolarisFormFieldRadius;\nexport type SolarisPasswordFieldDensity = SolarisFormFieldDensity;\nexport type SolarisPasswordFieldAppearance = SolarisFormFieldAppearance;\nexport type SolarisPasswordStrength = 'empty' | 'weak' | 'medium' | 'strong';\n"]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=password-policy.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-policy.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/forms/password-field/model/password-policy.types.ts"],"names":[],"mappings":"","sourcesContent":["export interface SolarisPasswordPolicy {\n minLength?: number;\n maxLength?: number;\n requireLowercase?: boolean;\n requireUppercase?: boolean;\n requireNumber?: boolean;\n requireSymbol?: boolean;\n disallowWhitespace?: boolean;\n forbiddenValues?: string[];\n}\n"]}