@educarehq/solaris-ui 0.2.0 → 0.3.1

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 (417) hide show
  1. package/fesm2022/educarehq-solaris-ui.mjs +12261 -0
  2. package/fesm2022/educarehq-solaris-ui.mjs.map +1 -0
  3. package/package.json +5 -5
  4. package/styles/_button.scss +510 -510
  5. package/styles/_dropdown-menu.scss +72 -0
  6. package/styles/_icon-button.scss +481 -481
  7. package/styles/_input.scss +255 -255
  8. package/styles/_popover.scss +73 -68
  9. package/styles/_theme.scss +46 -36
  10. package/styles/_toast.scss +9 -0
  11. package/styles/token/border/_border.scss +5 -0
  12. package/styles/token/border/_index.scss +1 -0
  13. package/styles/token/color/_dark.scss +78 -0
  14. package/styles/token/color/_high-contrast.scss +27 -0
  15. package/styles/token/color/_index.scss +3 -0
  16. package/styles/token/color/_light.scss +69 -0
  17. package/styles/token/density/_comfortable.scss +15 -0
  18. package/styles/token/density/_compact.scss +15 -0
  19. package/styles/token/density/_index.scss +2 -0
  20. package/styles/token/motion/_index.scss +2 -0
  21. package/styles/token/motion/_motion.scss +15 -0
  22. package/styles/token/motion/_reduced-motion.scss +15 -0
  23. package/styles/token/opacity/_index.scss +1 -0
  24. package/styles/token/opacity/_opacity.scss +4 -0
  25. package/styles/token/radius/_index.scss +1 -0
  26. package/styles/token/radius/_radius.scss +8 -0
  27. package/styles/token/shadow/_index.scss +1 -0
  28. package/styles/token/shadow/_shadow.scss +26 -0
  29. package/styles/token/spacing/_index.scss +1 -0
  30. package/styles/token/spacing/_spacing.scss +15 -0
  31. package/styles/token/typography/_font-family.scss +13 -0
  32. package/styles/token/typography/_index.scss +2 -0
  33. package/styles/token/typography/_typography.scss +25 -0
  34. package/styles/token/z-index/_index.scss +1 -0
  35. package/styles/token/z-index/_z-index.scss +10 -0
  36. package/types/educarehq-solaris-ui.d.ts +3201 -0
  37. package/educarehq-solaris-ui.d.ts +0 -5
  38. package/esm2022/educarehq-solaris-ui.js +0 -5
  39. package/esm2022/educarehq-solaris-ui.js.map +0 -1
  40. package/esm2022/index.js +0 -70
  41. package/esm2022/index.js.map +0 -1
  42. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js +0 -17
  43. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js.map +0 -1
  44. package/esm2022/lib/components/actions/button/directives/button.directive.js +0 -60
  45. package/esm2022/lib/components/actions/button/directives/button.directive.js.map +0 -1
  46. package/esm2022/lib/components/actions/button/model/button.types.js +0 -1
  47. package/esm2022/lib/components/actions/button/model/button.types.js.map +0 -1
  48. package/esm2022/lib/components/actions/button-group/component/button-group.component.js +0 -21
  49. package/esm2022/lib/components/actions/button-group/component/button-group.component.js.map +0 -1
  50. package/esm2022/lib/components/actions/button-group/model/button-group.types.js +0 -1
  51. package/esm2022/lib/components/actions/button-group/model/button-group.types.js.map +0 -1
  52. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js +0 -17
  53. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js.map +0 -1
  54. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js +0 -58
  55. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js.map +0 -1
  56. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js +0 -1
  57. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js.map +0 -1
  58. package/esm2022/lib/components/data-display/badge/component/badge.component.js +0 -24
  59. package/esm2022/lib/components/data-display/badge/component/badge.component.js.map +0 -1
  60. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js +0 -17
  61. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js.map +0 -1
  62. package/esm2022/lib/components/data-display/badge/model/badge.types.js +0 -1
  63. package/esm2022/lib/components/data-display/badge/model/badge.types.js.map +0 -1
  64. package/esm2022/lib/components/data-display/card/component/card.component.js +0 -20
  65. package/esm2022/lib/components/data-display/card/component/card.component.js.map +0 -1
  66. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js +0 -17
  67. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js.map +0 -1
  68. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js +0 -17
  69. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js.map +0 -1
  70. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js +0 -17
  71. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js.map +0 -1
  72. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js +0 -19
  73. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js.map +0 -1
  74. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js +0 -17
  75. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js.map +0 -1
  76. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js +0 -17
  77. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js.map +0 -1
  78. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js +0 -17
  79. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js.map +0 -1
  80. package/esm2022/lib/components/data-display/card/model/card.types.js +0 -1
  81. package/esm2022/lib/components/data-display/card/model/card.types.js.map +0 -1
  82. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js +0 -18
  83. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js.map +0 -1
  84. package/esm2022/lib/components/feedback/alert/component/alert.component.js +0 -90
  85. package/esm2022/lib/components/feedback/alert/component/alert.component.js.map +0 -1
  86. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js +0 -17
  87. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js.map +0 -1
  88. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js +0 -17
  89. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js.map +0 -1
  90. package/esm2022/lib/components/feedback/alert/model/alert.types.js +0 -1
  91. package/esm2022/lib/components/feedback/alert/model/alert.types.js.map +0 -1
  92. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js +0 -69
  93. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js.map +0 -1
  94. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js +0 -1
  95. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js.map +0 -1
  96. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js +0 -227
  97. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js.map +0 -1
  98. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js +0 -1
  99. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js.map +0 -1
  100. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js +0 -441
  101. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js.map +0 -1
  102. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js +0 -1
  103. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js.map +0 -1
  104. package/esm2022/lib/components/forms/email-field/component/email-field.component.js +0 -214
  105. package/esm2022/lib/components/forms/email-field/component/email-field.component.js.map +0 -1
  106. package/esm2022/lib/components/forms/email-field/model/email-field.types.js +0 -1
  107. package/esm2022/lib/components/forms/email-field/model/email-field.types.js.map +0 -1
  108. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js +0 -69
  109. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js.map +0 -1
  110. package/esm2022/lib/components/forms/form-field/component/form-error.component.js +0 -19
  111. package/esm2022/lib/components/forms/form-field/component/form-error.component.js.map +0 -1
  112. package/esm2022/lib/components/forms/form-field/component/form-field.component.js +0 -394
  113. package/esm2022/lib/components/forms/form-field/component/form-field.component.js.map +0 -1
  114. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js +0 -18
  115. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js.map +0 -1
  116. package/esm2022/lib/components/forms/form-field/component/form-label.component.js +0 -18
  117. package/esm2022/lib/components/forms/form-field/component/form-label.component.js.map +0 -1
  118. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js +0 -14
  119. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js.map +0 -1
  120. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js +0 -17
  121. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js.map +0 -1
  122. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js +0 -17
  123. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js.map +0 -1
  124. package/esm2022/lib/components/forms/form-field/index.js +0 -8
  125. package/esm2022/lib/components/forms/form-field/index.js.map +0 -1
  126. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js +0 -3
  127. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js.map +0 -1
  128. package/esm2022/lib/components/forms/form-field/model/form-field.types.js +0 -1
  129. package/esm2022/lib/components/forms/form-field/model/form-field.types.js.map +0 -1
  130. package/esm2022/lib/components/forms/input/directives/input.directive.js +0 -148
  131. package/esm2022/lib/components/forms/input/directives/input.directive.js.map +0 -1
  132. package/esm2022/lib/components/forms/input/index.js +0 -2
  133. package/esm2022/lib/components/forms/input/index.js.map +0 -1
  134. package/esm2022/lib/components/forms/input/model/input.defaults.js +0 -27
  135. package/esm2022/lib/components/forms/input/model/input.defaults.js.map +0 -1
  136. package/esm2022/lib/components/forms/input/model/input.types.js +0 -1
  137. package/esm2022/lib/components/forms/input/model/input.types.js.map +0 -1
  138. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js +0 -1119
  139. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js.map +0 -1
  140. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js +0 -1
  141. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js.map +0 -1
  142. package/esm2022/lib/components/forms/option/component/option.component.js +0 -149
  143. package/esm2022/lib/components/forms/option/component/option.component.js.map +0 -1
  144. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js +0 -58
  145. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js.map +0 -1
  146. package/esm2022/lib/components/forms/option/index.js +0 -3
  147. package/esm2022/lib/components/forms/option/index.js.map +0 -1
  148. package/esm2022/lib/components/forms/option/model/option.types.js +0 -1
  149. package/esm2022/lib/components/forms/option/model/option.types.js.map +0 -1
  150. package/esm2022/lib/components/forms/option-group/component/option-group.component.js +0 -103
  151. package/esm2022/lib/components/forms/option-group/component/option-group.component.js.map +0 -1
  152. package/esm2022/lib/components/forms/option-group/index.js +0 -2
  153. package/esm2022/lib/components/forms/option-group/index.js.map +0 -1
  154. package/esm2022/lib/components/forms/option-group/model/option-group.types.js +0 -1
  155. package/esm2022/lib/components/forms/option-group/model/option-group.types.js.map +0 -1
  156. package/esm2022/lib/components/forms/password-field/component/password-field.component.js +0 -299
  157. package/esm2022/lib/components/forms/password-field/component/password-field.component.js.map +0 -1
  158. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js +0 -5
  159. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js.map +0 -1
  160. package/esm2022/lib/components/forms/password-field/model/password-field.types.js +0 -1
  161. package/esm2022/lib/components/forms/password-field/model/password-field.types.js.map +0 -1
  162. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js +0 -1
  163. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js.map +0 -1
  164. package/esm2022/lib/components/forms/password-field/model/password-strength.js +0 -67
  165. package/esm2022/lib/components/forms/password-field/model/password-strength.js.map +0 -1
  166. package/esm2022/lib/components/forms/password-field/validators/password.validator.js +0 -45
  167. package/esm2022/lib/components/forms/password-field/validators/password.validator.js.map +0 -1
  168. package/esm2022/lib/components/forms/radio/component/radio.component.js +0 -219
  169. package/esm2022/lib/components/forms/radio/component/radio.component.js.map +0 -1
  170. package/esm2022/lib/components/forms/radio/model/radio.types.js +0 -1
  171. package/esm2022/lib/components/forms/radio/model/radio.types.js.map +0 -1
  172. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js +0 -348
  173. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js.map +0 -1
  174. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js +0 -3
  175. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js.map +0 -1
  176. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js +0 -1
  177. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js.map +0 -1
  178. package/esm2022/lib/components/forms/select/component/select.component.js +0 -819
  179. package/esm2022/lib/components/forms/select/component/select.component.js.map +0 -1
  180. package/esm2022/lib/components/forms/select/model/select.types.js +0 -1
  181. package/esm2022/lib/components/forms/select/model/select.types.js.map +0 -1
  182. package/esm2022/lib/components/forms/switch/component/switch.component.js +0 -211
  183. package/esm2022/lib/components/forms/switch/component/switch.component.js.map +0 -1
  184. package/esm2022/lib/components/forms/switch/index.js +0 -2
  185. package/esm2022/lib/components/forms/switch/index.js.map +0 -1
  186. package/esm2022/lib/components/forms/switch/model/switch.types.js +0 -1
  187. package/esm2022/lib/components/forms/switch/model/switch.types.js.map +0 -1
  188. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js +0 -369
  189. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js.map +0 -1
  190. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js +0 -1
  191. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js.map +0 -1
  192. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js +0 -137
  193. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js.map +0 -1
  194. package/esm2022/lib/components/forms/textarea/model/textarea.types.js +0 -1
  195. package/esm2022/lib/components/forms/textarea/model/textarea.types.js.map +0 -1
  196. package/esm2022/lib/components/icon/component/solaris-icon.component.js +0 -20
  197. package/esm2022/lib/components/icon/component/solaris-icon.component.js.map +0 -1
  198. package/esm2022/lib/components/icon/index.js +0 -2
  199. package/esm2022/lib/components/icon/index.js.map +0 -1
  200. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js +0 -29
  201. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js.map +0 -1
  202. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js +0 -317
  203. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js.map +0 -1
  204. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js +0 -16
  205. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js.map +0 -1
  206. package/esm2022/lib/components/interaction/popover/index.js +0 -4
  207. package/esm2022/lib/components/interaction/popover/index.js.map +0 -1
  208. package/esm2022/lib/components/interaction/popover/model/popover-position.js +0 -145
  209. package/esm2022/lib/components/interaction/popover/model/popover-position.js.map +0 -1
  210. package/esm2022/lib/components/interaction/popover/model/popover.types.js +0 -1
  211. package/esm2022/lib/components/interaction/popover/model/popover.types.js.map +0 -1
  212. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js +0 -3
  213. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js.map +0 -1
  214. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js +0 -23
  215. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js.map +0 -1
  216. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js +0 -405
  217. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js.map +0 -1
  218. package/esm2022/lib/components/interaction/tooltip/index.js +0 -3
  219. package/esm2022/lib/components/interaction/tooltip/index.js.map +0 -1
  220. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js +0 -209
  221. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js.map +0 -1
  222. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js +0 -1
  223. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js.map +0 -1
  224. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js +0 -3
  225. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js.map +0 -1
  226. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js +0 -25
  227. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js.map +0 -1
  228. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js +0 -1
  229. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js.map +0 -1
  230. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js +0 -1
  231. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js.map +0 -1
  232. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js +0 -10
  233. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js.map +0 -1
  234. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js +0 -60
  235. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js.map +0 -1
  236. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js +0 -10
  237. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js.map +0 -1
  238. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js +0 -3
  239. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js.map +0 -1
  240. package/esm2022/lib/services/icon/icons/index.js +0 -2
  241. package/esm2022/lib/services/icon/icons/index.js.map +0 -1
  242. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js +0 -207
  243. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js.map +0 -1
  244. package/esm2022/lib/services/icon/index.js +0 -5
  245. package/esm2022/lib/services/icon/index.js.map +0 -1
  246. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js +0 -1
  247. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js.map +0 -1
  248. package/esm2022/lib/services/icon/model/solaris-icon.types.js +0 -1
  249. package/esm2022/lib/services/icon/model/solaris-icon.types.js.map +0 -1
  250. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js +0 -10
  251. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js.map +0 -1
  252. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js +0 -43
  253. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js.map +0 -1
  254. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js +0 -3
  255. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js.map +0 -1
  256. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js +0 -1
  257. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js.map +0 -1
  258. package/esm2022/lib/services/theme/model/solaris-theme.types.js +0 -1
  259. package/esm2022/lib/services/theme/model/solaris-theme.types.js.map +0 -1
  260. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js +0 -10
  261. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js.map +0 -1
  262. package/esm2022/lib/services/theme/service/solaris-theme.service.js +0 -22
  263. package/esm2022/lib/services/theme/service/solaris-theme.service.js.map +0 -1
  264. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js +0 -10
  265. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js.map +0 -1
  266. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js +0 -3
  267. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js.map +0 -1
  268. package/esm2022/lib/services/translation/index.js +0 -6
  269. package/esm2022/lib/services/translation/index.js.map +0 -1
  270. package/esm2022/lib/services/translation/model/solaris-locale.types.js +0 -1
  271. package/esm2022/lib/services/translation/model/solaris-locale.types.js.map +0 -1
  272. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js +0 -1
  273. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js.map +0 -1
  274. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js +0 -40
  275. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js.map +0 -1
  276. package/esm2022/lib/services/translation/model/solaris-translation.types.js +0 -1
  277. package/esm2022/lib/services/translation/model/solaris-translation.types.js.map +0 -1
  278. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js +0 -20
  279. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js.map +0 -1
  280. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js +0 -10
  281. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js.map +0 -1
  282. package/esm2022/lib/services/translation/service/solaris-translate.service.js +0 -87
  283. package/esm2022/lib/services/translation/service/solaris-translate.service.js.map +0 -1
  284. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js +0 -32
  285. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js.map +0 -1
  286. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js +0 -3
  287. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js.map +0 -1
  288. package/esm2022/lib/testing/provide-solaris-testing.js +0 -11
  289. package/esm2022/lib/testing/provide-solaris-testing.js.map +0 -1
  290. package/esm2022/lib/testing/solaris-test-utilities.js +0 -12
  291. package/esm2022/lib/testing/solaris-test-utilities.js.map +0 -1
  292. package/index.d.ts +0 -106
  293. package/lib/components/actions/button/directives/button-icon.directive.d.ts +0 -5
  294. package/lib/components/actions/button/directives/button.directive.d.ts +0 -22
  295. package/lib/components/actions/button/model/button.types.d.ts +0 -5
  296. package/lib/components/actions/button-group/component/button-group.component.d.ts +0 -10
  297. package/lib/components/actions/button-group/model/button-group.types.d.ts +0 -2
  298. package/lib/components/actions/icon-button/directives/icon-button-badge.directive.d.ts +0 -5
  299. package/lib/components/actions/icon-button/directives/icon-button.directive.d.ts +0 -21
  300. package/lib/components/actions/icon-button/model/icon-button.types.d.ts +0 -5
  301. package/lib/components/data-display/badge/component/badge.component.d.ts +0 -12
  302. package/lib/components/data-display/badge/directives/badge-icon.directive.d.ts +0 -5
  303. package/lib/components/data-display/badge/model/badge.types.d.ts +0 -6
  304. package/lib/components/data-display/card/component/card.component.d.ts +0 -10
  305. package/lib/components/data-display/card/directives/card-actions.directive.d.ts +0 -5
  306. package/lib/components/data-display/card/directives/card-content.directive.d.ts +0 -5
  307. package/lib/components/data-display/card/directives/card-description.directive.d.ts +0 -5
  308. package/lib/components/data-display/card/directives/card-footer.directive.d.ts +0 -6
  309. package/lib/components/data-display/card/directives/card-header.directive.d.ts +0 -5
  310. package/lib/components/data-display/card/directives/card-media.directive.d.ts +0 -5
  311. package/lib/components/data-display/card/directives/card-title.directive.d.ts +0 -5
  312. package/lib/components/data-display/card/model/card.types.d.ts +0 -4
  313. package/lib/components/feedback/alert/component/alert-actions.component.d.ts +0 -5
  314. package/lib/components/feedback/alert/component/alert.component.d.ts +0 -26
  315. package/lib/components/feedback/alert/directives/alert-description.directive.d.ts +0 -5
  316. package/lib/components/feedback/alert/directives/alert-title.directive.d.ts +0 -5
  317. package/lib/components/feedback/alert/model/alert.types.d.ts +0 -5
  318. package/lib/components/feedback/skeleton/component/skeleton.component.d.ts +0 -17
  319. package/lib/components/feedback/skeleton/model/skeleton.types.d.ts +0 -5
  320. package/lib/components/forms/checkbox/component/checkbox.component.d.ts +0 -70
  321. package/lib/components/forms/checkbox/model/checkbox.types.d.ts +0 -5
  322. package/lib/components/forms/checkbox-group/component/checkbox-group.component.d.ts +0 -123
  323. package/lib/components/forms/checkbox-group/model/checkbox-group.types.d.ts +0 -5
  324. package/lib/components/forms/email-field/component/email-field.component.d.ts +0 -66
  325. package/lib/components/forms/email-field/model/email-field.types.d.ts +0 -6
  326. package/lib/components/forms/email-field/validators/email-field.validators.d.ts +0 -8
  327. package/lib/components/forms/form-field/component/form-error.component.d.ts +0 -5
  328. package/lib/components/forms/form-field/component/form-field.component.d.ts +0 -90
  329. package/lib/components/forms/form-field/component/form-hint.component.d.ts +0 -5
  330. package/lib/components/forms/form-field/component/form-label.component.d.ts +0 -5
  331. package/lib/components/forms/form-field/directives/form-field-trigger.directive.d.ts +0 -5
  332. package/lib/components/forms/form-field/directives/form-prefix.directive.d.ts +0 -5
  333. package/lib/components/forms/form-field/directives/form-suffix.directive.d.ts +0 -5
  334. package/lib/components/forms/form-field/index.d.ts +0 -8
  335. package/lib/components/forms/form-field/model/form-control.contract.d.ts +0 -11
  336. package/lib/components/forms/form-field/model/form-field.types.d.ts +0 -5
  337. package/lib/components/forms/input/directives/input.directive.d.ts +0 -37
  338. package/lib/components/forms/input/index.d.ts +0 -2
  339. package/lib/components/forms/input/model/input.defaults.d.ts +0 -2
  340. package/lib/components/forms/input/model/input.types.d.ts +0 -4
  341. package/lib/components/forms/multi-select/component/multi-select.component.d.ts +0 -202
  342. package/lib/components/forms/multi-select/model/multi-select.types.d.ts +0 -5
  343. package/lib/components/forms/option/component/option.component.d.ts +0 -58
  344. package/lib/components/forms/option/directives/option-slots.directive.d.ts +0 -21
  345. package/lib/components/forms/option/index.d.ts +0 -3
  346. package/lib/components/forms/option/model/option.types.d.ts +0 -3
  347. package/lib/components/forms/option-group/component/option-group.component.d.ts +0 -32
  348. package/lib/components/forms/option-group/index.d.ts +0 -2
  349. package/lib/components/forms/option-group/model/option-group.types.d.ts +0 -2
  350. package/lib/components/forms/password-field/component/password-field.component.d.ts +0 -81
  351. package/lib/components/forms/password-field/model/password-field-constants.d.ts +0 -4
  352. package/lib/components/forms/password-field/model/password-field.types.d.ts +0 -6
  353. package/lib/components/forms/password-field/model/password-policy.types.d.ts +0 -10
  354. package/lib/components/forms/password-field/model/password-strength.d.ts +0 -2
  355. package/lib/components/forms/password-field/validators/password.validator.d.ts +0 -3
  356. package/lib/components/forms/radio/component/radio.component.d.ts +0 -68
  357. package/lib/components/forms/radio/model/radio.types.d.ts +0 -4
  358. package/lib/components/forms/radio-group/component/radio-group.component.d.ts +0 -86
  359. package/lib/components/forms/radio-group/model/radio-group.token.d.ts +0 -2
  360. package/lib/components/forms/radio-group/model/radio-group.types.d.ts +0 -5
  361. package/lib/components/forms/select/component/select.component.d.ts +0 -158
  362. package/lib/components/forms/select/model/select.types.d.ts +0 -4
  363. package/lib/components/forms/switch/component/switch.component.d.ts +0 -66
  364. package/lib/components/forms/switch/index.d.ts +0 -2
  365. package/lib/components/forms/switch/model/switch.types.d.ts +0 -4
  366. package/lib/components/forms/switch-group/component/switch-group.component.d.ts +0 -91
  367. package/lib/components/forms/switch-group/model/switch-group.types.d.ts +0 -5
  368. package/lib/components/forms/textarea/directives/textarea.directive.d.ts +0 -37
  369. package/lib/components/forms/textarea/model/textarea.types.d.ts +0 -5
  370. package/lib/components/icon/component/solaris-icon.component.d.ts +0 -13
  371. package/lib/components/icon/index.d.ts +0 -1
  372. package/lib/components/interaction/popover/component/popover-panel.component.d.ts +0 -10
  373. package/lib/components/interaction/popover/directives/popover-trigger.directive.d.ts +0 -65
  374. package/lib/components/interaction/popover/directives/popover.directive.d.ts +0 -7
  375. package/lib/components/interaction/popover/index.d.ts +0 -4
  376. package/lib/components/interaction/popover/model/popover-position.d.ts +0 -4
  377. package/lib/components/interaction/popover/model/popover.types.d.ts +0 -7
  378. package/lib/components/interaction/popover/token/popover.tokens.d.ts +0 -12
  379. package/lib/components/interaction/tooltip/component/tooltip-panel.component.d.ts +0 -9
  380. package/lib/components/interaction/tooltip/directive/tooltip.directive.d.ts +0 -80
  381. package/lib/components/interaction/tooltip/index.d.ts +0 -3
  382. package/lib/components/interaction/tooltip/model/tooltip-position.d.ts +0 -5
  383. package/lib/components/interaction/tooltip/model/tooltip.types.d.ts +0 -22
  384. package/lib/components/interaction/tooltip/token/tooltip.tokens.d.ts +0 -21
  385. package/lib/services/accessibility/directives/visually-hidden.directive.d.ts +0 -5
  386. package/lib/services/accessibility/model/solaris-accessibility-config.interface.d.ts +0 -4
  387. package/lib/services/accessibility/model/solaris-accessibility.types.d.ts +0 -5
  388. package/lib/services/accessibility/provider/provide-solaris-accessibility.d.ts +0 -3
  389. package/lib/services/accessibility/service/solaris-accessibility.service.d.ts +0 -15
  390. package/lib/services/accessibility/testing/solaris-accessibility-testing.provider.d.ts +0 -3
  391. package/lib/services/accessibility/token/solaris-accessibility.tokens.d.ts +0 -3
  392. package/lib/services/icon/icons/index.d.ts +0 -1
  393. package/lib/services/icon/icons/solaris-built-in-icons.d.ts +0 -2
  394. package/lib/services/icon/index.d.ts +0 -8
  395. package/lib/services/icon/model/solaris-icon-definition.interface.d.ts +0 -36
  396. package/lib/services/icon/model/solaris-icon.types.d.ts +0 -4
  397. package/lib/services/icon/provider/provide-solaris-icons.d.ts +0 -3
  398. package/lib/services/icon/service/solaris-icon-registry.service.d.ts +0 -12
  399. package/lib/services/icon/token/solaris-icon.tokens.d.ts +0 -6
  400. package/lib/services/theme/model/solaris-theme-config.interface.d.ts +0 -5
  401. package/lib/services/theme/model/solaris-theme.types.d.ts +0 -3
  402. package/lib/services/theme/provider/provide-solaris-theme.d.ts +0 -3
  403. package/lib/services/theme/service/solaris-theme.service.d.ts +0 -9
  404. package/lib/services/theme/testing/solaris-theme-testing.provider.d.ts +0 -3
  405. package/lib/services/theme/token/solaris-theme.tokens.d.ts +0 -3
  406. package/lib/services/translation/index.d.ts +0 -8
  407. package/lib/services/translation/model/solaris-locale.types.d.ts +0 -4
  408. package/lib/services/translation/model/solaris-translate-config.interface.d.ts +0 -8
  409. package/lib/services/translation/model/solaris-translate-defaults.d.ts +0 -2
  410. package/lib/services/translation/model/solaris-translation.types.d.ts +0 -3
  411. package/lib/services/translation/pipe/solaris-translate.pipe.d.ts +0 -8
  412. package/lib/services/translation/provider/provide-solaris-translate.d.ts +0 -3
  413. package/lib/services/translation/service/solaris-translate.service.d.ts +0 -15
  414. package/lib/services/translation/testing/solaris-translate-testing.provider.d.ts +0 -3
  415. package/lib/services/translation/token/solaris-translate.tokens.d.ts +0 -3
  416. package/lib/testing/provide-solaris-testing.d.ts +0 -10
  417. package/lib/testing/solaris-test-utilities.d.ts +0 -3
@@ -1,819 +0,0 @@
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