@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,819 @@
1
+ import { Component, input, computed, signal, output, effect, forwardRef, inject, ContentChildren, ElementRef, ViewChild, isDevMode, } from '@angular/core';
2
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
+ import { SolarisFormControl } from '../../form-field/model/form-control.contract';
4
+ import { SolarisFormFieldComponent } from '../../form-field/component/form-field.component';
5
+ import { SolarisFormFieldTriggerDirective } from '../../form-field/directives/form-field-trigger.directive';
6
+ import { SolarisFormPrefixDirective } from '../../form-field/directives/form-prefix.directive';
7
+ import { SolarisFormSuffixDirective } from '../../form-field/directives/form-suffix.directive';
8
+ import { SolarisTranslateService } from '../../../../services/translation';
9
+ import { SolarisOptionComponent } from '../../option';
10
+ import { SolarisOptionGroupComponent } from '../../option-group';
11
+ import { SolarisIconComponent } from '../../../icon';
12
+ import { SolarisPopoverDirective, SolarisPopoverTriggerDirective, } from '../../../interaction/popover';
13
+ import * as i0 from "@angular/core";
14
+ let nextId = 0;
15
+ function generateId() {
16
+ return `solaris-select-${++nextId}`;
17
+ }
18
+ export class SolarisSelectComponent extends SolarisFormControl {
19
+ elementRef = inject(ElementRef);
20
+ translateService = inject(SolarisTranslateService);
21
+ parentFormField = inject(SolarisFormFieldComponent, {
22
+ optional: true,
23
+ });
24
+ popoverTrigger;
25
+ searchInputRef;
26
+ triggerElement;
27
+ formFieldElement;
28
+ options;
29
+ optionGroups;
30
+ hint = input(...(ngDevMode ? [undefined, { debugName: "hint" }] : /* istanbul ignore next */ []));
31
+ icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
32
+ label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
33
+ error = input(...(ngDevMode ? [undefined, { debugName: "error" }] : /* istanbul ignore next */ []));
34
+ hintKey = input(...(ngDevMode ? [undefined, { debugName: "hintKey" }] : /* istanbul ignore next */ []));
35
+ labelKey = input(...(ngDevMode ? [undefined, { debugName: "labelKey" }] : /* istanbul ignore next */ []));
36
+ errorKey = input(...(ngDevMode ? [undefined, { debugName: "errorKey" }] : /* istanbul ignore next */ []));
37
+ emptyText = input(...(ngDevMode ? [undefined, { debugName: "emptyText" }] : /* istanbul ignore next */ []));
38
+ ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
39
+ placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
40
+ loadingText = input(...(ngDevMode ? [undefined, { debugName: "loadingText" }] : /* istanbul ignore next */ []));
41
+ emptyTextKey = input(...(ngDevMode ? [undefined, { debugName: "emptyTextKey" }] : /* istanbul ignore next */ []));
42
+ ariaLabelKey = input(...(ngDevMode ? [undefined, { debugName: "ariaLabelKey" }] : /* istanbul ignore next */ []));
43
+ noResultsText = input(...(ngDevMode ? [undefined, { debugName: "noResultsText" }] : /* istanbul ignore next */ []));
44
+ placeholderKey = input(...(ngDevMode ? [undefined, { debugName: "placeholderKey" }] : /* istanbul ignore next */ []));
45
+ loadingTextKey = input(...(ngDevMode ? [undefined, { debugName: "loadingTextKey" }] : /* istanbul ignore next */ []));
46
+ ariaLabelledby = input(...(ngDevMode ? [undefined, { debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
47
+ noResultsTextKey = input(...(ngDevMode ? [undefined, { debugName: "noResultsTextKey" }] : /* istanbul ignore next */ []));
48
+ loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
49
+ searchPlaceholder = input(...(ngDevMode ? [undefined, { debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
50
+ clearable = input(false, ...(ngDevMode ? [{ debugName: "clearable" }] : /* istanbul ignore next */ []));
51
+ clearLabel = input(...(ngDevMode ? [undefined, { debugName: "clearLabel" }] : /* istanbul ignore next */ []));
52
+ clearLabelKey = input(...(ngDevMode ? [undefined, { debugName: "clearLabelKey" }] : /* istanbul ignore next */ []));
53
+ value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
54
+ searchable = input(false, ...(ngDevMode ? [{ debugName: "searchable" }] : /* istanbul ignore next */ []));
55
+ searchPlaceholderKey = input(...(ngDevMode ? [undefined, { debugName: "searchPlaceholderKey" }] : /* istanbul ignore next */ []));
56
+ panelMinWidth = input(...(ngDevMode ? [undefined, { debugName: "panelMinWidth" }] : /* istanbul ignore next */ []));
57
+ panelMaxWidth = input(...(ngDevMode ? [undefined, { debugName: "panelMaxWidth" }] : /* istanbul ignore next */ []));
58
+ density = input(...(ngDevMode ? [undefined, { debugName: "density" }] : /* istanbul ignore next */ []));
59
+ size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
60
+ panelMatchTriggerWidth = input(true, ...(ngDevMode ? [{ debugName: "panelMatchTriggerWidth" }] : /* istanbul ignore next */ []));
61
+ radius = input('md', ...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
62
+ disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {}), alias: 'disabled' });
63
+ readonlyInput = input(false, { ...(ngDevMode ? { debugName: "readonlyInput" } : /* istanbul ignore next */ {}), alias: 'readonly' });
64
+ requiredInput = input(false, { ...(ngDevMode ? { debugName: "requiredInput" } : /* istanbul ignore next */ {}), alias: 'required' });
65
+ panelMaxHeight = input('20rem', ...(ngDevMode ? [{ debugName: "panelMaxHeight" }] : /* istanbul ignore next */ []));
66
+ displayWith = input(...(ngDevMode ? [undefined, { debugName: "displayWith" }] : /* istanbul ignore next */ []));
67
+ appearance = input('outline', ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
68
+ compareWith = input(Object.is, ...(ngDevMode ? [{ debugName: "compareWith" }] : /* istanbul ignore next */ []));
69
+ manualInvalid = input(undefined, { ...(ngDevMode ? { debugName: "manualInvalid" } : /* istanbul ignore next */ {}), alias: 'invalid' });
70
+ opened = output();
71
+ closed = output();
72
+ cleared = output();
73
+ openChange = output();
74
+ searchChange = output();
75
+ valueChange = output();
76
+ selectionChange = output();
77
+ panelId = `solaris-select-panel-${generateId()}`;
78
+ panelOpen = signal(false, ...(ngDevMode ? [{ debugName: "panelOpen" }] : /* istanbul ignore next */ []));
79
+ internalValue = signal(undefined, ...(ngDevMode ? [{ debugName: "internalValue" }] : /* istanbul ignore next */ []));
80
+ internalFocused = signal(false, ...(ngDevMode ? [{ debugName: "internalFocused" }] : /* istanbul ignore next */ []));
81
+ internalDisabled = signal(false, ...(ngDevMode ? [{ debugName: "internalDisabled" }] : /* istanbul ignore next */ []));
82
+ searchQuery = signal('', ...(ngDevMode ? [{ debugName: "searchQuery" }] : /* istanbul ignore next */ []));
83
+ activeOptionIndex = signal(-1, ...(ngDevMode ? [{ debugName: "activeOptionIndex" }] : /* istanbul ignore next */ []));
84
+ touched = signal(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
85
+ optionsInitialized = signal(false, ...(ngDevMode ? [{ debugName: "optionsInitialized" }] : /* istanbul ignore next */ []));
86
+ onChange = () => undefined;
87
+ onTouched = () => undefined;
88
+ optionsSubscription;
89
+ optionInteractionSubscriptions = [];
90
+ popoverSubscriptions = [];
91
+ elementId = computed(() => {
92
+ // SECURITY_EXCEPTION: nativeElement.getAttribute('id') is standard DOM API to check existing ID before generating one. Same approach used by Solaris Option and Angular CDK.
93
+ const existing = this.elementRef.nativeElement.getAttribute('id');
94
+ return existing ?? generateId();
95
+ }, ...(ngDevMode ? [{ debugName: "elementId" }] : /* istanbul ignore next */ []));
96
+ effectiveDensity = computed(() => {
97
+ return this.density() ?? 'comfortable';
98
+ }, ...(ngDevMode ? [{ debugName: "effectiveDensity" }] : /* istanbul ignore next */ []));
99
+ isEffectivelyDisabled = computed(() => {
100
+ return this.disabledInput() || this.internalDisabled();
101
+ }, ...(ngDevMode ? [{ debugName: "isEffectivelyDisabled" }] : /* istanbul ignore next */ []));
102
+ isEffectivelyReadonly = computed(() => {
103
+ return this.readonlyInput();
104
+ }, ...(ngDevMode ? [{ debugName: "isEffectivelyReadonly" }] : /* istanbul ignore next */ []));
105
+ isEffectivelyInvalid = computed(() => {
106
+ const manual = this.manualInvalid();
107
+ if (manual !== undefined) {
108
+ return manual;
109
+ }
110
+ return this.requiredInput() && this.touched() && !this.hasValue();
111
+ }, ...(ngDevMode ? [{ debugName: "isEffectivelyInvalid" }] : /* istanbul ignore next */ []));
112
+ popoverAppearance = computed(() => {
113
+ const a = this.appearance();
114
+ return a === 'filled' ? 'surface' : a;
115
+ }, ...(ngDevMode ? [{ debugName: "popoverAppearance" }] : /* istanbul ignore next */ []));
116
+ canOpen = computed(() => {
117
+ return !this.isEffectivelyDisabled() && !this.isEffectivelyReadonly();
118
+ }, ...(ngDevMode ? [{ debugName: "canOpen" }] : /* istanbul ignore next */ []));
119
+ hasValue = computed(() => {
120
+ return this.internalValue() !== undefined && this.internalValue() !== null;
121
+ }, ...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
122
+ canClear = computed(() => {
123
+ return (this.clearable() &&
124
+ this.hasValue() &&
125
+ !this.isEffectivelyDisabled() &&
126
+ !this.isEffectivelyReadonly());
127
+ }, ...(ngDevMode ? [{ debugName: "canClear" }] : /* istanbul ignore next */ []));
128
+ selectedOption = computed(() => {
129
+ const value = this.internalValue();
130
+ const comp = this.compareWith();
131
+ const opts = this.options;
132
+ if (!opts || value === undefined || value === null) {
133
+ return undefined;
134
+ }
135
+ return opts.find((opt) => comp(opt.value(), value));
136
+ }, ...(ngDevMode ? [{ debugName: "selectedOption" }] : /* istanbul ignore next */ []));
137
+ displayText = computed(() => {
138
+ const dw = this.displayWith();
139
+ const val = this.internalValue();
140
+ if (dw && val !== undefined && val !== null) {
141
+ const result = dw(val);
142
+ if (result !== undefined) {
143
+ return result;
144
+ }
145
+ }
146
+ const selected = this.selectedOption();
147
+ if (selected) {
148
+ const label = selected.labelText();
149
+ if (label) {
150
+ return label;
151
+ }
152
+ const nativeText = this.getOptionNativeText(selected);
153
+ if (nativeText) {
154
+ return nativeText;
155
+ }
156
+ }
157
+ if (val !== undefined && val !== null) {
158
+ const str = String(val);
159
+ if (str !== '[object Object]') {
160
+ return str;
161
+ }
162
+ if (isDevMode()) {
163
+ console.warn(`[SolarisSelect] No displayWith provided for object value. Use displayWith input to show a readable label.`);
164
+ }
165
+ }
166
+ return '';
167
+ }, ...(ngDevMode ? [{ debugName: "displayText" }] : /* istanbul ignore next */ []));
168
+ placeholderText = computed(() => {
169
+ const key = this.placeholderKey();
170
+ if (key) {
171
+ return this.translateService.translate(key) || this.placeholder() || '';
172
+ }
173
+ return this.placeholder() ?? '';
174
+ }, ...(ngDevMode ? [{ debugName: "placeholderText" }] : /* istanbul ignore next */ []));
175
+ searchPlaceholderText = computed(() => {
176
+ const key = this.searchPlaceholderKey();
177
+ if (key) {
178
+ return this.translateService.translate(key);
179
+ }
180
+ const text = this.searchPlaceholder();
181
+ if (text) {
182
+ return text;
183
+ }
184
+ return this.translateService.translate('solaris.select.search.placeholder');
185
+ }, ...(ngDevMode ? [{ debugName: "searchPlaceholderText" }] : /* istanbul ignore next */ []));
186
+ loadingTextValue = computed(() => {
187
+ const key = this.loadingTextKey();
188
+ if (key) {
189
+ return this.translateService.translate(key);
190
+ }
191
+ const text = this.loadingText();
192
+ if (text) {
193
+ return text;
194
+ }
195
+ return this.translateService.translate('solaris.select.loading');
196
+ }, ...(ngDevMode ? [{ debugName: "loadingTextValue" }] : /* istanbul ignore next */ []));
197
+ emptyTextValue = computed(() => {
198
+ const key = this.emptyTextKey();
199
+ if (key) {
200
+ return this.translateService.translate(key);
201
+ }
202
+ const text = this.emptyText();
203
+ if (text) {
204
+ return text;
205
+ }
206
+ return this.translateService.translate('solaris.select.empty');
207
+ }, ...(ngDevMode ? [{ debugName: "emptyTextValue" }] : /* istanbul ignore next */ []));
208
+ noResultsTextValue = computed(() => {
209
+ const key = this.noResultsTextKey();
210
+ if (key) {
211
+ return this.translateService.translate(key);
212
+ }
213
+ const text = this.noResultsText();
214
+ if (text) {
215
+ return text;
216
+ }
217
+ return this.translateService.translate('solaris.select.noResults');
218
+ }, ...(ngDevMode ? [{ debugName: "noResultsTextValue" }] : /* istanbul ignore next */ []));
219
+ clearAriaLabel = computed(() => {
220
+ const key = this.clearLabelKey();
221
+ if (key) {
222
+ return this.translateService.translate(key);
223
+ }
224
+ const text = this.clearLabel();
225
+ if (text) {
226
+ return text;
227
+ }
228
+ return this.translateService.translate('solaris.select.clear');
229
+ }, ...(ngDevMode ? [{ debugName: "clearAriaLabel" }] : /* istanbul ignore next */ []));
230
+ ariaLabelText = computed(() => {
231
+ const key = this.ariaLabelKey();
232
+ if (key) {
233
+ return this.translateService.translate(key);
234
+ }
235
+ return this.ariaLabel();
236
+ }, ...(ngDevMode ? [{ debugName: "ariaLabelText" }] : /* istanbul ignore next */ []));
237
+ ariaLabelledbyText = computed(() => {
238
+ return this.ariaLabelledby();
239
+ }, ...(ngDevMode ? [{ debugName: "ariaLabelledbyText" }] : /* istanbul ignore next */ []));
240
+ labelText = computed(() => {
241
+ const key = this.labelKey();
242
+ if (key) {
243
+ return this.translateService.translate(key) || this.label() || '';
244
+ }
245
+ return this.label() ?? '';
246
+ }, ...(ngDevMode ? [{ debugName: "labelText" }] : /* istanbul ignore next */ []));
247
+ hintText = computed(() => {
248
+ const key = this.hintKey();
249
+ if (key) {
250
+ return this.translateService.translate(key) || this.hint() || '';
251
+ }
252
+ return this.hint() ?? '';
253
+ }, ...(ngDevMode ? [{ debugName: "hintText" }] : /* istanbul ignore next */ []));
254
+ errorText = computed(() => {
255
+ const key = this.errorKey();
256
+ if (key) {
257
+ return this.translateService.translate(key) || this.error() || '';
258
+ }
259
+ return this.error() ?? '';
260
+ }, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
261
+ activeDescendantId = computed(() => {
262
+ if (!this.panelOpen())
263
+ return null;
264
+ const idx = this.activeOptionIndex();
265
+ const opts = this.visibleOptions();
266
+ if (idx >= 0 && idx < opts.length) {
267
+ return opts[idx].elementId();
268
+ }
269
+ return null;
270
+ }, ...(ngDevMode ? [{ debugName: "activeDescendantId" }] : /* istanbul ignore next */ []));
271
+ _describedByIds = signal([], ...(ngDevMode ? [{ debugName: "_describedByIds" }] : /* istanbul ignore next */ []));
272
+ ariaDescribedBy = computed(() => {
273
+ const ids = this._describedByIds();
274
+ return ids.length > 0 ? ids.join(' ') : null;
275
+ }, ...(ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
276
+ visibleOptions = computed(() => {
277
+ const opts = this.options;
278
+ if (!opts)
279
+ return [];
280
+ if (!this.panelOpen())
281
+ return [];
282
+ const query = this.searchQuery().toLowerCase().trim();
283
+ if (!query)
284
+ return opts.toArray();
285
+ return opts.toArray().filter((opt) => {
286
+ if (opt.isEffectivelyDisabled())
287
+ return false;
288
+ return this.optionMatchesSearch(opt, query);
289
+ });
290
+ }, ...(ngDevMode ? [{ debugName: "visibleOptions" }] : /* istanbul ignore next */ []));
291
+ showNoResults = computed(() => {
292
+ return (this.searchQuery().trim().length > 0 &&
293
+ this.visibleOptions().length === 0 &&
294
+ !this.loading());
295
+ }, ...(ngDevMode ? [{ debugName: "showNoResults" }] : /* istanbul ignore next */ []));
296
+ showEmpty = computed(() => {
297
+ const opts = this.options;
298
+ return ((!opts || opts.length === 0) &&
299
+ !this.loading() &&
300
+ this.searchQuery().trim().length === 0);
301
+ }, ...(ngDevMode ? [{ debugName: "showEmpty" }] : /* istanbul ignore next */ []));
302
+ get id() {
303
+ return this.elementId();
304
+ }
305
+ get focused() {
306
+ return this.internalFocused();
307
+ }
308
+ get disabled() {
309
+ return this.isEffectivelyDisabled();
310
+ }
311
+ get readonly() {
312
+ return this.isEffectivelyReadonly();
313
+ }
314
+ get invalid() {
315
+ return this.isEffectivelyInvalid();
316
+ }
317
+ get required() {
318
+ return this.requiredInput();
319
+ }
320
+ get describedByIds() {
321
+ return this._describedByIds();
322
+ }
323
+ setDescribedByIds(ids) {
324
+ this._describedByIds.set([...ids]);
325
+ }
326
+ focus() {
327
+ // SECURITY_EXCEPTION: nativeElement.focus() required to programmatically focus the select trigger. Standard DOM method used by Angular CDK.
328
+ if (this.triggerElement) {
329
+ this.triggerElement.nativeElement.focus();
330
+ }
331
+ else {
332
+ // SECURITY_EXCEPTION: nativeElement.focus() required as fallback when no triggerElement ref. Standard DOM method.
333
+ this.elementRef.nativeElement.focus();
334
+ }
335
+ }
336
+ writeValue(safe) {
337
+ this.internalValue.set(safe);
338
+ }
339
+ registerOnChange(fn) {
340
+ this.onChange = fn;
341
+ }
342
+ registerOnTouched(fn) {
343
+ this.onTouched = fn;
344
+ }
345
+ setDisabledState(isDisabled) {
346
+ this.internalDisabled.set(isDisabled);
347
+ }
348
+ constructor() {
349
+ super();
350
+ effect(() => {
351
+ if (!this.optionsInitialized())
352
+ return;
353
+ this.internalValue();
354
+ this.setOptionsSelectedState();
355
+ });
356
+ }
357
+ ngAfterContentInit() {
358
+ this.optionsInitialized.set(true);
359
+ this.setOptionsSelectedState();
360
+ this.setOptionGroupDisabledState();
361
+ this.syncActiveOptionToSelected();
362
+ this.syncActiveStates();
363
+ this.syncVisibility();
364
+ this.subscribeToOptionInteractions();
365
+ const optionsSub = this.options.changes.subscribe(() => {
366
+ this.setOptionsSelectedState();
367
+ this.setOptionGroupDisabledState();
368
+ this.syncVisibility();
369
+ this.subscribeToOptionInteractions();
370
+ });
371
+ this.optionsSubscription = () => optionsSub.unsubscribe();
372
+ if (isDevMode() && this.parentFormField) {
373
+ console.warn('SolarisSelectComponent already includes SolarisFormField internally. ' +
374
+ 'Do not wrap it with <solaris-form-field>; pass label, hint, error, prefix and suffix directly to <solaris-select>.');
375
+ }
376
+ }
377
+ ngAfterViewInit() {
378
+ if (this.popoverTrigger) {
379
+ const openedSub = this.popoverTrigger.solarisPopoverOpened.subscribe(() => {
380
+ this.onPanelOpened();
381
+ });
382
+ const closedSub = this.popoverTrigger.solarisPopoverClosed.subscribe(() => {
383
+ this.onPanelClosed();
384
+ });
385
+ this.popoverSubscriptions.push(() => openedSub.unsubscribe(), () => closedSub.unsubscribe());
386
+ }
387
+ }
388
+ ngOnDestroy() {
389
+ this.optionsSubscription?.();
390
+ this.optionInteractionSubscriptions.forEach((fn) => fn());
391
+ this.popoverSubscriptions.forEach((fn) => fn());
392
+ }
393
+ onPanelOpened() {
394
+ this.searchQuery.set('');
395
+ this.panelOpen.set(true);
396
+ this.setOptionsSelectedState();
397
+ this.syncActiveOptionToSelected();
398
+ this.syncActiveStates();
399
+ this.syncVisibility();
400
+ this.opened.emit();
401
+ this.openChange.emit(true);
402
+ this.setConnectedSide('bottom');
403
+ if (this.searchable()) {
404
+ requestAnimationFrame(() => {
405
+ // SECURITY_EXCEPTION: nativeElement.focus() required to focus search input when panel opens. Standard DOM method.
406
+ this.searchInputRef?.nativeElement.focus();
407
+ });
408
+ }
409
+ }
410
+ onPanelClosed() {
411
+ this.panelOpen.set(false);
412
+ this.searchQuery.set('');
413
+ this.syncVisibility();
414
+ this.closed.emit();
415
+ this.openChange.emit(false);
416
+ this.markAsTouched();
417
+ this.clearConnectedSide();
418
+ }
419
+ setConnectedSide(side) {
420
+ // SECURITY_EXCEPTION: nativeElement required to access form-field DOM for connected-side sync. ElementRef SSR-safe.
421
+ const el = this.formFieldElement?.nativeElement;
422
+ if (el) {
423
+ // SECURITY_EXCEPTION: nativeElement.querySelector required to find control-wrapper for connected-side sync.
424
+ const wrapper = el.querySelector('.solaris-form-field__control-wrapper');
425
+ if (wrapper) {
426
+ wrapper.dataset['connectedSide'] = side;
427
+ }
428
+ }
429
+ }
430
+ clearConnectedSide() {
431
+ // SECURITY_EXCEPTION: nativeElement required to access form-field DOM for connected-side cleanup. ElementRef SSR-safe.
432
+ const el = this.formFieldElement?.nativeElement;
433
+ if (el) {
434
+ const wrapper = el.querySelector('.solaris-form-field__control-wrapper');
435
+ if (wrapper) {
436
+ delete wrapper.dataset['connectedSide'];
437
+ }
438
+ }
439
+ }
440
+ selectOption(option) {
441
+ if (option.isEffectivelyDisabled())
442
+ return;
443
+ const newValue = option.value();
444
+ this.internalValue.set(newValue);
445
+ this.onChange(newValue);
446
+ this.valueChange.emit(newValue);
447
+ this.selectionChange.emit(option);
448
+ this.setOptionsSelectedState();
449
+ this.popoverTrigger?.close();
450
+ }
451
+ clearValue() {
452
+ this.internalValue.set(null);
453
+ this.onChange(null);
454
+ this.valueChange.emit(null);
455
+ this.selectionChange.emit(undefined);
456
+ this.cleared.emit();
457
+ this.setOptionsSelectedState();
458
+ this.markAsTouched();
459
+ }
460
+ onTriggerKeydown(event) {
461
+ if (!this.canOpen()) {
462
+ event.preventDefault();
463
+ return;
464
+ }
465
+ if (this.maybeClosePanel(event))
466
+ return;
467
+ if (this.maybeNavigateToBound(event))
468
+ return;
469
+ switch (event.key) {
470
+ case 'Enter':
471
+ case ' ':
472
+ event.preventDefault();
473
+ this.handleToggleOpen();
474
+ break;
475
+ case 'ArrowDown':
476
+ event.preventDefault();
477
+ this.handleArrow(1);
478
+ break;
479
+ case 'ArrowUp':
480
+ event.preventDefault();
481
+ this.handleArrow(-1);
482
+ break;
483
+ }
484
+ }
485
+ handleToggleOpen() {
486
+ if (this.panelOpen()) {
487
+ this.selectActiveOption();
488
+ }
489
+ else {
490
+ this.popoverTrigger?.open();
491
+ }
492
+ }
493
+ handleArrow(direction) {
494
+ if (this.panelOpen()) {
495
+ this.focusNextOption(direction);
496
+ }
497
+ else {
498
+ this.popoverTrigger?.open();
499
+ requestAnimationFrame(() => this.focusNextOption(direction));
500
+ }
501
+ }
502
+ maybeClosePanel(event) {
503
+ if (!this.panelOpen())
504
+ return false;
505
+ if (event.key === 'Escape') {
506
+ event.preventDefault();
507
+ this.popoverTrigger?.close();
508
+ return true;
509
+ }
510
+ if (event.key === 'Tab') {
511
+ this.popoverTrigger?.close();
512
+ return true;
513
+ }
514
+ return false;
515
+ }
516
+ maybeNavigateToBound(event) {
517
+ if (!this.panelOpen())
518
+ return false;
519
+ if (event.key === 'Home') {
520
+ event.preventDefault();
521
+ this.activeOptionIndex.set(this.getFirstEnabledOptionIndex());
522
+ this.syncActiveStates();
523
+ return true;
524
+ }
525
+ if (event.key === 'End') {
526
+ event.preventDefault();
527
+ this.activeOptionIndex.set(this.getLastEnabledOptionIndex());
528
+ this.syncActiveStates();
529
+ return true;
530
+ }
531
+ return false;
532
+ }
533
+ onSearchInput(event) {
534
+ const target = event.target;
535
+ const value = target.value;
536
+ this.searchQuery.set(value);
537
+ this.searchChange.emit(value);
538
+ this.activeOptionIndex.set(-1);
539
+ this.syncActiveStates();
540
+ this.syncVisibility();
541
+ }
542
+ onSearchKeydown(event) {
543
+ switch (event.key) {
544
+ case 'ArrowDown':
545
+ event.preventDefault();
546
+ event.stopPropagation();
547
+ this.focusNextOption(1);
548
+ break;
549
+ case 'ArrowUp':
550
+ event.preventDefault();
551
+ event.stopPropagation();
552
+ this.focusNextOption(-1);
553
+ break;
554
+ case 'Enter':
555
+ event.preventDefault();
556
+ event.stopPropagation();
557
+ this.selectActiveOption();
558
+ break;
559
+ case 'Escape':
560
+ event.preventDefault();
561
+ event.stopPropagation();
562
+ if (this.searchQuery()) {
563
+ this.searchQuery.set('');
564
+ this.searchChange.emit('');
565
+ this.syncVisibility();
566
+ this.syncActiveStates();
567
+ }
568
+ else {
569
+ this.popoverTrigger?.close();
570
+ }
571
+ break;
572
+ case 'Tab':
573
+ this.popoverTrigger?.close();
574
+ break;
575
+ }
576
+ }
577
+ onPanelClick(event) {
578
+ event.stopPropagation();
579
+ }
580
+ onPanelKeydown(event) {
581
+ event.stopPropagation();
582
+ switch (event.key) {
583
+ case 'ArrowDown':
584
+ event.preventDefault();
585
+ this.focusNextOption(1);
586
+ break;
587
+ case 'ArrowUp':
588
+ event.preventDefault();
589
+ this.focusNextOption(-1);
590
+ break;
591
+ case 'Enter':
592
+ case ' ':
593
+ event.preventDefault();
594
+ this.selectActiveOption();
595
+ break;
596
+ case 'Escape':
597
+ event.preventDefault();
598
+ this.popoverTrigger?.close();
599
+ break;
600
+ case 'Home':
601
+ event.preventDefault();
602
+ this.activeOptionIndex.set(this.getFirstEnabledOptionIndex());
603
+ break;
604
+ case 'End':
605
+ event.preventDefault();
606
+ this.activeOptionIndex.set(this.getLastEnabledOptionIndex());
607
+ break;
608
+ }
609
+ }
610
+ onTriggerFocus() {
611
+ this.internalFocused.set(true);
612
+ }
613
+ onTriggerBlur() {
614
+ this.internalFocused.set(false);
615
+ }
616
+ subscribeToOptionInteractions() {
617
+ this.optionInteractionSubscriptions.forEach((fn) => fn());
618
+ this.optionInteractionSubscriptions = [];
619
+ this.options.forEach((opt) => {
620
+ const sub = opt.optionInteraction.subscribe(({ option }) => {
621
+ this.selectOption(option);
622
+ });
623
+ this.optionInteractionSubscriptions.push(() => sub.unsubscribe());
624
+ });
625
+ }
626
+ setOptionsSelectedState() {
627
+ const value = this.internalValue();
628
+ const comp = this.compareWith();
629
+ this.options.forEach((opt) => {
630
+ const isSelected = comp(opt.value(), value);
631
+ opt.setSelected(isSelected);
632
+ });
633
+ }
634
+ setOptionGroupDisabledState() {
635
+ this.optionGroups.forEach((group) => {
636
+ group.options.forEach((opt) => {
637
+ opt.setGroupDisabledState(group.isEffectivelyDisabled());
638
+ });
639
+ });
640
+ }
641
+ syncActiveStates() {
642
+ const idx = this.activeOptionIndex();
643
+ const opts = this.visibleOptions();
644
+ this.options.forEach((opt) => opt.setActive(false));
645
+ if (idx >= 0 && idx < opts.length) {
646
+ opts[idx].setActive(true);
647
+ }
648
+ }
649
+ syncVisibility() {
650
+ const query = this.searchQuery().trim();
651
+ if (!query) {
652
+ this.options.forEach((o) => o.setHidden(false));
653
+ this.optionGroups.forEach((g) => g.setHidden(false));
654
+ return;
655
+ }
656
+ const visible = new Set(this.visibleOptions());
657
+ this.options.forEach((o) => o.setHidden(!visible.has(o)));
658
+ this.optionGroups.forEach((g) => {
659
+ const anyVisible = g.options.some((o) => visible.has(o));
660
+ g.setHidden(!anyVisible);
661
+ });
662
+ }
663
+ syncActiveOptionToSelected() {
664
+ const selected = this.selectedOption();
665
+ if (selected) {
666
+ const opts = this.options.toArray();
667
+ const idx = opts.indexOf(selected);
668
+ this.activeOptionIndex.set(idx >= 0 ? idx : -1);
669
+ }
670
+ else {
671
+ this.activeOptionIndex.set(-1);
672
+ }
673
+ this.syncActiveStates();
674
+ }
675
+ getOptionNativeText(option) {
676
+ const nativeEl = option.elementRef;
677
+ // SECURITY_EXCEPTION: nativeElement access needed to read option text for search filtering. Read-only, SSR-safe.
678
+ if (nativeEl?.nativeElement) {
679
+ // SECURITY_EXCEPTION: nativeElement.textContent needed to read option text for search filtering. Read-only, SSR-safe.
680
+ return nativeEl.nativeElement.textContent?.trim() || '';
681
+ }
682
+ return '';
683
+ }
684
+ optionMatchesSearch(option, query) {
685
+ const label = (option.labelText() || '').toLowerCase();
686
+ const desc = (option.descriptionText() || '').toLowerCase();
687
+ const native = this.getOptionNativeText(option).toLowerCase();
688
+ const normalizedQuery = query
689
+ .normalize('NFD')
690
+ .replace(/[\u0300-\u036f]/g, '');
691
+ const normalizedLabel = label
692
+ .normalize('NFD')
693
+ .replace(/[\u0300-\u036f]/g, '');
694
+ const normalizedDesc = desc
695
+ .normalize('NFD')
696
+ .replace(/[\u0300-\u036f]/g, '');
697
+ const normalizedNative = native
698
+ .normalize('NFD')
699
+ .replace(/[\u0300-\u036f]/g, '');
700
+ return (normalizedLabel.includes(normalizedQuery) ||
701
+ normalizedDesc.includes(normalizedQuery) ||
702
+ normalizedNative.includes(normalizedQuery));
703
+ }
704
+ markAsTouched() {
705
+ if (!this.touched()) {
706
+ this.touched.set(true);
707
+ this.onTouched();
708
+ }
709
+ }
710
+ selectActiveOption() {
711
+ const idx = this.activeOptionIndex();
712
+ const opts = this.visibleOptions();
713
+ if (idx >= 0 && idx < opts.length) {
714
+ this.selectOption(opts[idx]);
715
+ }
716
+ }
717
+ focusNextOption(direction) {
718
+ const opts = this.visibleOptions();
719
+ if (opts.length === 0)
720
+ return;
721
+ let current = this.activeOptionIndex();
722
+ if (current < 0 || current >= opts.length) {
723
+ current = direction === 1 ? -1 : opts.length;
724
+ }
725
+ let next = current + direction;
726
+ while (next >= 0 && next < opts.length) {
727
+ if (!opts[next].isEffectivelyDisabled()) {
728
+ this.activeOptionIndex.set(next);
729
+ this.syncActiveStates();
730
+ return;
731
+ }
732
+ next += direction;
733
+ }
734
+ if (direction === 1 && next >= opts.length) {
735
+ this.activeOptionIndex.set(this.getFirstEnabledOptionIndex());
736
+ this.syncActiveStates();
737
+ }
738
+ else if (direction === -1 && next < 0) {
739
+ this.activeOptionIndex.set(this.getLastEnabledOptionIndex());
740
+ this.syncActiveStates();
741
+ }
742
+ }
743
+ getFirstEnabledOptionIndex() {
744
+ const opts = this.visibleOptions();
745
+ for (let i = 0; i < opts.length; i++) {
746
+ if (!opts[i].isEffectivelyDisabled())
747
+ return i;
748
+ }
749
+ return -1;
750
+ }
751
+ getLastEnabledOptionIndex() {
752
+ const opts = this.visibleOptions();
753
+ for (let i = opts.length - 1; i >= 0; i--) {
754
+ if (!opts[i].isEffectivelyDisabled())
755
+ return i;
756
+ }
757
+ return -1;
758
+ }
759
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
760
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisSelectComponent, isStandalone: true, selector: "solaris-select", inputs: { hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, hintKey: { classPropertyName: "hintKey", publicName: "hintKey", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, errorKey: { classPropertyName: "errorKey", publicName: "errorKey", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, loadingText: { classPropertyName: "loadingText", publicName: "loadingText", isSignal: true, isRequired: false, transformFunction: null }, emptyTextKey: { classPropertyName: "emptyTextKey", publicName: "emptyTextKey", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelKey: { classPropertyName: "ariaLabelKey", publicName: "ariaLabelKey", isSignal: true, isRequired: false, transformFunction: null }, noResultsText: { classPropertyName: "noResultsText", publicName: "noResultsText", isSignal: true, isRequired: false, transformFunction: null }, placeholderKey: { classPropertyName: "placeholderKey", publicName: "placeholderKey", isSignal: true, isRequired: false, transformFunction: null }, loadingTextKey: { classPropertyName: "loadingTextKey", publicName: "loadingTextKey", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, noResultsTextKey: { classPropertyName: "noResultsTextKey", publicName: "noResultsTextKey", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, clearLabelKey: { classPropertyName: "clearLabelKey", publicName: "clearLabelKey", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholderKey: { classPropertyName: "searchPlaceholderKey", publicName: "searchPlaceholderKey", isSignal: true, isRequired: false, transformFunction: null }, panelMinWidth: { classPropertyName: "panelMinWidth", publicName: "panelMinWidth", isSignal: true, isRequired: false, transformFunction: null }, panelMaxWidth: { classPropertyName: "panelMaxWidth", publicName: "panelMaxWidth", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, panelMatchTriggerWidth: { classPropertyName: "panelMatchTriggerWidth", publicName: "panelMatchTriggerWidth", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonlyInput: { classPropertyName: "readonlyInput", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, requiredInput: { classPropertyName: "requiredInput", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, panelMaxHeight: { classPropertyName: "panelMaxHeight", publicName: "panelMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, displayWith: { classPropertyName: "displayWith", publicName: "displayWith", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null }, manualInvalid: { classPropertyName: "manualInvalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed", cleared: "cleared", openChange: "openChange", searchChange: "searchChange", valueChange: "valueChange", selectionChange: "selectionChange" }, host: { attributes: { "solaris-select": "" }, properties: { "attr.id": "elementId()", "attr.data-size": "size()", "attr.data-open": "panelOpen() ? \"\" : null", "attr.aria-label": "ariaLabelText() ?? null", "attr.data-has-value": "hasValue() ? \"\" : null" } }, providers: [
761
+ {
762
+ provide: NG_VALUE_ACCESSOR,
763
+ useExisting: forwardRef(() => SolarisSelectComponent),
764
+ multi: true,
765
+ },
766
+ {
767
+ provide: SolarisFormControl,
768
+ useExisting: forwardRef(() => SolarisSelectComponent),
769
+ },
770
+ ], queries: [{ propertyName: "options", predicate: SolarisOptionComponent, descendants: true }, { propertyName: "optionGroups", predicate: SolarisOptionGroupComponent, descendants: true }], viewQueries: [{ propertyName: "popoverTrigger", first: true, predicate: SolarisPopoverTriggerDirective, descendants: true }, { propertyName: "searchInputRef", first: true, predicate: ["searchInput"], descendants: true, read: ElementRef }, { propertyName: "triggerElement", first: true, predicate: ["triggerEl"], descendants: true, read: ElementRef }, { propertyName: "formFieldElement", first: true, predicate: ["formFieldRef"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<solaris-form-field\r\n #formFieldRef\r\n [class.solaris-select--panel-open]=\"panelOpen()\"\r\n [control]=\"this\"\r\n [label]=\"labelText()\"\r\n [hint]=\"hintText()\"\r\n [error]=\"errorText()\"\r\n [appearance]=\"appearance()\"\r\n [size]=\"size()\"\r\n [density]=\"effectiveDensity()\"\r\n [radius]=\"radius()\"\r\n [invalid]=\"isEffectivelyInvalid()\"\r\n [required]=\"requiredInput()\"\r\n solaris-popover-trigger\r\n [solarisPopoverDisabled]=\"!canOpen()\"\r\n [solarisPopoverTriggerFor]=\"matchWidthPopover\"\r\n [solarisPopoverMatchTriggerWidth]=\"panelMatchTriggerWidth()\"\r\n [solarisPopoverAppearance]=\"popoverAppearance()\"\r\n [solarisPopoverPlacement]=\"'bottom'\"\r\n [solarisPopoverAlign]=\"'start'\"\r\n [solarisPopoverOffset]=\"0\"\r\n [solarisPopoverPadding]=\"'none'\"\r\n [solarisPopoverRadius]=\"radius()\"\r\n [solarisPopoverTopConnected]=\"true\"\r\n [solarisPopoverMinWidth]=\"panelMinWidth()\"\r\n [solarisPopoverMaxWidth]=\"panelMaxWidth()\"\r\n [solarisPopoverScrollStrategy]=\"'reposition'\"\r\n [solarisPopoverCloseOnEscape]=\"false\"\r\n [solarisPopoverAriaHasPopup]=\"'listbox'\"\r\n>\r\n @if (icon(); as iconName) {\r\n <solaris-icon solaris-form-prefix [name]=\"iconName\" [decorative]=\"true\" />\r\n }\r\n <ng-content select=\"[solaris-form-prefix]\" />\r\n\r\n <div\r\n #triggerEl\r\n class=\"solaris-select__trigger\"\r\n [id]=\"elementId() + '--trigger'\"\r\n solaris-form-field-trigger\r\n role=\"combobox\"\r\n tabindex=\"0\"\r\n [attr.aria-expanded]=\"panelOpen() ? 'true' : 'false'\"\r\n [attr.aria-controls]=\"panelOpen() ? panelId : null\"\r\n [attr.aria-haspopup]=\"'listbox'\"\r\n [attr.aria-activedescendant]=\"activeDescendantId()\"\r\n (keydown)=\"onTriggerKeydown($event)\"\r\n (focus)=\"onTriggerFocus()\"\r\n (blur)=\"onTriggerBlur()\"\r\n >\r\n @if (searchable() && panelOpen()) {\r\n <input\r\n #searchInput\r\n type=\"text\"\r\n class=\"solaris-select__search-input\"\r\n [attr.placeholder]=\"searchPlaceholderText()\"\r\n [value]=\"searchQuery()\"\r\n (input)=\"onSearchInput($event)\"\r\n (keydown)=\"onSearchKeydown($event)\"\r\n (click)=\"$event.stopPropagation()\"\r\n role=\"searchbox\"\r\n autocomplete=\"off\"\r\n />\r\n } @else {\r\n <span class=\"solaris-select__value\">\r\n @if (displayText()) {\r\n <span class=\"solaris-select__value-text\">{{ displayText() }}</span>\r\n } @else {\r\n <span class=\"solaris-select__placeholder\">{{\r\n placeholderText()\r\n }}</span>\r\n }\r\n </span>\r\n }\r\n\r\n <span class=\"solaris-select__actions\">\r\n @if (canClear()) {\r\n <button\r\n type=\"button\"\r\n class=\"solaris-select__clear\"\r\n [attr.aria-label]=\"clearAriaLabel()\"\r\n (click)=\"clearValue(); $event.stopPropagation()\"\r\n tabindex=\"-1\"\r\n >\r\n <solaris-icon name=\"x\" [decorative]=\"true\" />\r\n </button>\r\n }\r\n\r\n <solaris-icon\r\n class=\"solaris-select__dropdown-icon\"\r\n name=\"chevron-down\"\r\n [decorative]=\"true\"\r\n size=\"sm\"\r\n />\r\n </span>\r\n </div>\r\n\r\n <ng-content select=\"[solaris-form-suffix]\" />\r\n</solaris-form-field>\r\n\r\n<ng-template #matchWidthPopover=\"solarisPopover\" solaris-popover>\r\n <div\r\n class=\"solaris-select__panel\"\r\n role=\"listbox\"\r\n [attr.id]=\"panelId\"\r\n tabindex=\"-1\"\r\n (click)=\"onPanelClick($event)\"\r\n (keydown)=\"onPanelKeydown($event)\"\r\n >\r\n @if (loading()) {\r\n <div class=\"solaris-select__loading\">\r\n <span class=\"solaris-select__loading-text\">{{\r\n loadingTextValue()\r\n }}</span>\r\n </div>\r\n } @else if (showNoResults()) {\r\n <div class=\"solaris-select__no-results\">\r\n <span class=\"solaris-select__no-results-text\">{{\r\n noResultsTextValue()\r\n }}</span>\r\n </div>\r\n } @else if (showEmpty()) {\r\n <div class=\"solaris-select__empty\">\r\n <span class=\"solaris-select__empty-text\">{{ emptyTextValue() }}</span>\r\n </div>\r\n } @else {\r\n <div\r\n class=\"solaris-select__options\"\r\n [style.max-height]=\"panelMaxHeight()\"\r\n >\r\n <ng-content select=\"solaris-option, solaris-option-group\" />\r\n </div>\r\n }\r\n </div>\r\n</ng-template>\r\n", styles: [":host{--solaris-select-icon-color: var(--solaris-text-muted);--solaris-select-value-color: var(--solaris-text-default);--solaris-select-placeholder-color: var(--solaris-text-muted);--solaris-select-font-size: var(--solaris-font-size-md);--solaris-select-line-height: var(--solaris-line-height-md);outline:none;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;flex-direction:column;box-sizing:border-box;font-family:var(--solaris-font-family-sans, system-ui)}.solaris-select__trigger{flex:1;min-width:0;display:flex;align-items:center;box-sizing:border-box;gap:var(--solaris-spacing-2);padding:0;outline:none;border:none;background:transparent;cursor:pointer}:host ::ng-deep .solaris-form-field__message-row{margin-top:0}:host ::ng-deep .solaris-select--panel-open .solaris-form-field__message-row{display:none}.solaris-select__value{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.solaris-select__value-text{color:var(--solaris-select-value-color);font-size:var(--solaris-select-font-size);line-height:var(--solaris-select-line-height)}.solaris-select__placeholder{font-size:var(--solaris-select-font-size);color:var(--solaris-select-placeholder-color);line-height:var(--solaris-select-line-height)}.solaris-select__actions{display:flex;flex-shrink:0;align-items:center;gap:var(--solaris-spacing-2)}.solaris-select__clear{padding:0;border:none;display:flex;cursor:pointer;border-radius:50%;align-items:center;justify-content:center;background:transparent;width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl);color:var(--solaris-select-icon-color);transition:color var(--solaris-motion-duration-normal) ease}.solaris-select__clear solaris-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}.solaris-select__clear:hover{color:var(--solaris-text-default)}.solaris-select__dropdown-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl);color:var(--solaris-select-icon-color);transition:transform var(--solaris-motion-duration-normal) ease}.solaris-select__dropdown-icon solaris-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}:host([data-open]) .solaris-select__dropdown-icon{transform:rotate(180deg)}.solaris-select__panel{display:flex;overflow-y:auto;flex-direction:column;overscroll-behavior:contain}.solaris-select__search-input{flex:1;min-width:0;border:none;outline:none;padding:0;margin:0;font-family:inherit;box-sizing:border-box;color:var(--solaris-select-value-color);font-size:var(--solaris-select-font-size);line-height:var(--solaris-select-line-height);background:transparent}.solaris-select__search-input::placeholder{color:var(--solaris-select-placeholder-color)}.solaris-select__loading,.solaris-select__no-results,.solaris-select__empty{display:flex;align-items:center;justify-content:center;color:var(--solaris-text-muted);padding:var(--solaris-spacing-4);font-size:var(--solaris-font-size-sm);line-height:var(--solaris-line-height-md)}.solaris-select__options{display:flex;flex-direction:column;gap:var(--solaris-spacing-1);padding:var(--solaris-spacing-1) var(--solaris-spacing-2)}:host([data-disabled]){cursor:not-allowed}:host([data-readonly]){cursor:default}@media(prefers-reduced-motion:reduce){.solaris-select__dropdown-icon,.solaris-select__clear{transition:none}}[data-reduced-motion=true] .solaris-select__dropdown-icon,[data-reduced-motion=true] .solaris-select__clear{transition:none}\n"], dependencies: [{ 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: SolarisFormFieldTriggerDirective, selector: "[solaris-form-field-trigger]" }, { kind: "directive", type: SolarisFormPrefixDirective, selector: "[solaris-form-prefix]" }, { kind: "component", type: SolarisIconComponent, selector: "solaris-icon", inputs: ["name", "ariaLabel", "decorative"] }, { kind: "directive", type: SolarisPopoverDirective, selector: "ng-template[solaris-popover]", exportAs: ["solarisPopover"] }, { kind: "directive", type: SolarisPopoverTriggerDirective, selector: "[solaris-popover-trigger]", inputs: ["solarisPopoverTriggerFor", "solarisPopoverOpen", "solarisPopoverDisabled", "solarisPopoverPlacement", "solarisPopoverAlign", "solarisPopoverOffset", "solarisPopoverMatchTriggerWidth", "solarisPopoverMinWidth", "solarisPopoverMaxWidth", "solarisPopoverCloseOnOutsideClick", "solarisPopoverCloseOnEscape", "solarisPopoverRestoreFocus", "solarisPopoverAutoFocus", "solarisPopoverScrollStrategy", "solarisPopoverPanelRole", "solarisPopoverAriaHasPopup", "solarisPopoverAppearance", "solarisPopoverPadding", "solarisPopoverRadius", "solarisPopoverTopConnected"], outputs: ["solarisPopoverOpened", "solarisPopoverClosed", "solarisPopoverOpenChange"] }] });
771
+ }
772
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisSelectComponent, decorators: [{
773
+ type: Component,
774
+ args: [{ selector: 'solaris-select', standalone: true, imports: [
775
+ SolarisFormFieldComponent,
776
+ SolarisFormFieldTriggerDirective,
777
+ SolarisFormPrefixDirective,
778
+ SolarisFormSuffixDirective,
779
+ SolarisIconComponent,
780
+ SolarisPopoverDirective,
781
+ SolarisPopoverTriggerDirective,
782
+ ], providers: [
783
+ {
784
+ provide: NG_VALUE_ACCESSOR,
785
+ useExisting: forwardRef(() => SolarisSelectComponent),
786
+ multi: true,
787
+ },
788
+ {
789
+ provide: SolarisFormControl,
790
+ useExisting: forwardRef(() => SolarisSelectComponent),
791
+ },
792
+ ], host: {
793
+ 'solaris-select': '',
794
+ '[attr.id]': 'elementId()',
795
+ '[attr.data-size]': 'size()',
796
+ '[attr.data-open]': 'panelOpen() ? "" : null',
797
+ '[attr.aria-label]': 'ariaLabelText() ?? null',
798
+ '[attr.data-has-value]': 'hasValue() ? "" : null',
799
+ }, template: "<solaris-form-field\r\n #formFieldRef\r\n [class.solaris-select--panel-open]=\"panelOpen()\"\r\n [control]=\"this\"\r\n [label]=\"labelText()\"\r\n [hint]=\"hintText()\"\r\n [error]=\"errorText()\"\r\n [appearance]=\"appearance()\"\r\n [size]=\"size()\"\r\n [density]=\"effectiveDensity()\"\r\n [radius]=\"radius()\"\r\n [invalid]=\"isEffectivelyInvalid()\"\r\n [required]=\"requiredInput()\"\r\n solaris-popover-trigger\r\n [solarisPopoverDisabled]=\"!canOpen()\"\r\n [solarisPopoverTriggerFor]=\"matchWidthPopover\"\r\n [solarisPopoverMatchTriggerWidth]=\"panelMatchTriggerWidth()\"\r\n [solarisPopoverAppearance]=\"popoverAppearance()\"\r\n [solarisPopoverPlacement]=\"'bottom'\"\r\n [solarisPopoverAlign]=\"'start'\"\r\n [solarisPopoverOffset]=\"0\"\r\n [solarisPopoverPadding]=\"'none'\"\r\n [solarisPopoverRadius]=\"radius()\"\r\n [solarisPopoverTopConnected]=\"true\"\r\n [solarisPopoverMinWidth]=\"panelMinWidth()\"\r\n [solarisPopoverMaxWidth]=\"panelMaxWidth()\"\r\n [solarisPopoverScrollStrategy]=\"'reposition'\"\r\n [solarisPopoverCloseOnEscape]=\"false\"\r\n [solarisPopoverAriaHasPopup]=\"'listbox'\"\r\n>\r\n @if (icon(); as iconName) {\r\n <solaris-icon solaris-form-prefix [name]=\"iconName\" [decorative]=\"true\" />\r\n }\r\n <ng-content select=\"[solaris-form-prefix]\" />\r\n\r\n <div\r\n #triggerEl\r\n class=\"solaris-select__trigger\"\r\n [id]=\"elementId() + '--trigger'\"\r\n solaris-form-field-trigger\r\n role=\"combobox\"\r\n tabindex=\"0\"\r\n [attr.aria-expanded]=\"panelOpen() ? 'true' : 'false'\"\r\n [attr.aria-controls]=\"panelOpen() ? panelId : null\"\r\n [attr.aria-haspopup]=\"'listbox'\"\r\n [attr.aria-activedescendant]=\"activeDescendantId()\"\r\n (keydown)=\"onTriggerKeydown($event)\"\r\n (focus)=\"onTriggerFocus()\"\r\n (blur)=\"onTriggerBlur()\"\r\n >\r\n @if (searchable() && panelOpen()) {\r\n <input\r\n #searchInput\r\n type=\"text\"\r\n class=\"solaris-select__search-input\"\r\n [attr.placeholder]=\"searchPlaceholderText()\"\r\n [value]=\"searchQuery()\"\r\n (input)=\"onSearchInput($event)\"\r\n (keydown)=\"onSearchKeydown($event)\"\r\n (click)=\"$event.stopPropagation()\"\r\n role=\"searchbox\"\r\n autocomplete=\"off\"\r\n />\r\n } @else {\r\n <span class=\"solaris-select__value\">\r\n @if (displayText()) {\r\n <span class=\"solaris-select__value-text\">{{ displayText() }}</span>\r\n } @else {\r\n <span class=\"solaris-select__placeholder\">{{\r\n placeholderText()\r\n }}</span>\r\n }\r\n </span>\r\n }\r\n\r\n <span class=\"solaris-select__actions\">\r\n @if (canClear()) {\r\n <button\r\n type=\"button\"\r\n class=\"solaris-select__clear\"\r\n [attr.aria-label]=\"clearAriaLabel()\"\r\n (click)=\"clearValue(); $event.stopPropagation()\"\r\n tabindex=\"-1\"\r\n >\r\n <solaris-icon name=\"x\" [decorative]=\"true\" />\r\n </button>\r\n }\r\n\r\n <solaris-icon\r\n class=\"solaris-select__dropdown-icon\"\r\n name=\"chevron-down\"\r\n [decorative]=\"true\"\r\n size=\"sm\"\r\n />\r\n </span>\r\n </div>\r\n\r\n <ng-content select=\"[solaris-form-suffix]\" />\r\n</solaris-form-field>\r\n\r\n<ng-template #matchWidthPopover=\"solarisPopover\" solaris-popover>\r\n <div\r\n class=\"solaris-select__panel\"\r\n role=\"listbox\"\r\n [attr.id]=\"panelId\"\r\n tabindex=\"-1\"\r\n (click)=\"onPanelClick($event)\"\r\n (keydown)=\"onPanelKeydown($event)\"\r\n >\r\n @if (loading()) {\r\n <div class=\"solaris-select__loading\">\r\n <span class=\"solaris-select__loading-text\">{{\r\n loadingTextValue()\r\n }}</span>\r\n </div>\r\n } @else if (showNoResults()) {\r\n <div class=\"solaris-select__no-results\">\r\n <span class=\"solaris-select__no-results-text\">{{\r\n noResultsTextValue()\r\n }}</span>\r\n </div>\r\n } @else if (showEmpty()) {\r\n <div class=\"solaris-select__empty\">\r\n <span class=\"solaris-select__empty-text\">{{ emptyTextValue() }}</span>\r\n </div>\r\n } @else {\r\n <div\r\n class=\"solaris-select__options\"\r\n [style.max-height]=\"panelMaxHeight()\"\r\n >\r\n <ng-content select=\"solaris-option, solaris-option-group\" />\r\n </div>\r\n }\r\n </div>\r\n</ng-template>\r\n", styles: [":host{--solaris-select-icon-color: var(--solaris-text-muted);--solaris-select-value-color: var(--solaris-text-default);--solaris-select-placeholder-color: var(--solaris-text-muted);--solaris-select-font-size: var(--solaris-font-size-md);--solaris-select-line-height: var(--solaris-line-height-md);outline:none;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;flex-direction:column;box-sizing:border-box;font-family:var(--solaris-font-family-sans, system-ui)}.solaris-select__trigger{flex:1;min-width:0;display:flex;align-items:center;box-sizing:border-box;gap:var(--solaris-spacing-2);padding:0;outline:none;border:none;background:transparent;cursor:pointer}:host ::ng-deep .solaris-form-field__message-row{margin-top:0}:host ::ng-deep .solaris-select--panel-open .solaris-form-field__message-row{display:none}.solaris-select__value{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.solaris-select__value-text{color:var(--solaris-select-value-color);font-size:var(--solaris-select-font-size);line-height:var(--solaris-select-line-height)}.solaris-select__placeholder{font-size:var(--solaris-select-font-size);color:var(--solaris-select-placeholder-color);line-height:var(--solaris-select-line-height)}.solaris-select__actions{display:flex;flex-shrink:0;align-items:center;gap:var(--solaris-spacing-2)}.solaris-select__clear{padding:0;border:none;display:flex;cursor:pointer;border-radius:50%;align-items:center;justify-content:center;background:transparent;width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl);color:var(--solaris-select-icon-color);transition:color var(--solaris-motion-duration-normal) ease}.solaris-select__clear solaris-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}.solaris-select__clear:hover{color:var(--solaris-text-default)}.solaris-select__dropdown-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl);color:var(--solaris-select-icon-color);transition:transform var(--solaris-motion-duration-normal) ease}.solaris-select__dropdown-icon solaris-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}:host([data-open]) .solaris-select__dropdown-icon{transform:rotate(180deg)}.solaris-select__panel{display:flex;overflow-y:auto;flex-direction:column;overscroll-behavior:contain}.solaris-select__search-input{flex:1;min-width:0;border:none;outline:none;padding:0;margin:0;font-family:inherit;box-sizing:border-box;color:var(--solaris-select-value-color);font-size:var(--solaris-select-font-size);line-height:var(--solaris-select-line-height);background:transparent}.solaris-select__search-input::placeholder{color:var(--solaris-select-placeholder-color)}.solaris-select__loading,.solaris-select__no-results,.solaris-select__empty{display:flex;align-items:center;justify-content:center;color:var(--solaris-text-muted);padding:var(--solaris-spacing-4);font-size:var(--solaris-font-size-sm);line-height:var(--solaris-line-height-md)}.solaris-select__options{display:flex;flex-direction:column;gap:var(--solaris-spacing-1);padding:var(--solaris-spacing-1) var(--solaris-spacing-2)}:host([data-disabled]){cursor:not-allowed}:host([data-readonly]){cursor:default}@media(prefers-reduced-motion:reduce){.solaris-select__dropdown-icon,.solaris-select__clear{transition:none}}[data-reduced-motion=true] .solaris-select__dropdown-icon,[data-reduced-motion=true] .solaris-select__clear{transition:none}\n"] }]
800
+ }], ctorParameters: () => [], propDecorators: { popoverTrigger: [{
801
+ type: ViewChild,
802
+ args: [SolarisPopoverTriggerDirective]
803
+ }], searchInputRef: [{
804
+ type: ViewChild,
805
+ args: ['searchInput', { read: ElementRef }]
806
+ }], triggerElement: [{
807
+ type: ViewChild,
808
+ args: ['triggerEl', { read: ElementRef }]
809
+ }], formFieldElement: [{
810
+ type: ViewChild,
811
+ args: ['formFieldRef', { read: ElementRef }]
812
+ }], options: [{
813
+ type: ContentChildren,
814
+ args: [SolarisOptionComponent, { descendants: true }]
815
+ }], optionGroups: [{
816
+ type: ContentChildren,
817
+ args: [SolarisOptionGroupComponent, { descendants: true }]
818
+ }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], hintKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "hintKey", required: false }] }], labelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelKey", required: false }] }], errorKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorKey", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], loadingText: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingText", required: false }] }], emptyTextKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTextKey", required: false }] }], ariaLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelKey", required: false }] }], noResultsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsText", required: false }] }], placeholderKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholderKey", required: false }] }], loadingTextKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTextKey", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], noResultsTextKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsTextKey", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], clearLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabelKey", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], searchPlaceholderKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholderKey", required: false }] }], panelMinWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelMinWidth", required: false }] }], panelMaxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelMaxWidth", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], panelMatchTriggerWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelMatchTriggerWidth", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], requiredInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], panelMaxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelMaxHeight", required: false }] }], displayWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayWith", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], compareWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareWith", required: false }] }], manualInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], openChange: [{ type: i0.Output, args: ["openChange"] }], searchChange: [{ type: i0.Output, args: ["searchChange"] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }] } });
819
+ //# sourceMappingURL=select.component.js.map