@educarehq/solaris-ui 0.3.0 → 0.3.2

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 (598) 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 +9 -5
  4. package/styles/_button.scss +510 -510
  5. package/styles/_dropdown-menu.scss +72 -72
  6. package/styles/_icon-button.scss +481 -481
  7. package/styles/_input.scss +255 -255
  8. package/styles/_popover.scss +73 -73
  9. package/styles/_theme.scss +46 -36
  10. package/styles/_toast.scss +9 -9
  11. package/styles/_tooltip.scss +3 -3
  12. package/styles/token/border/_border.scss +5 -0
  13. package/styles/token/border/_index.scss +1 -0
  14. package/styles/token/color/_dark.scss +78 -0
  15. package/styles/token/color/_high-contrast.scss +27 -0
  16. package/styles/token/color/_index.scss +3 -0
  17. package/styles/token/color/_light.scss +69 -0
  18. package/styles/token/density/_comfortable.scss +15 -0
  19. package/styles/token/density/_compact.scss +15 -0
  20. package/styles/token/density/_index.scss +2 -0
  21. package/styles/token/motion/_index.scss +2 -0
  22. package/styles/token/motion/_motion.scss +15 -0
  23. package/styles/token/motion/_reduced-motion.scss +15 -0
  24. package/styles/token/opacity/_index.scss +1 -0
  25. package/styles/token/opacity/_opacity.scss +4 -0
  26. package/styles/token/radius/_index.scss +1 -0
  27. package/styles/token/radius/_radius.scss +8 -0
  28. package/styles/token/shadow/_index.scss +1 -0
  29. package/styles/token/shadow/_shadow.scss +26 -0
  30. package/styles/token/spacing/_index.scss +1 -0
  31. package/styles/token/spacing/_spacing.scss +15 -0
  32. package/styles/token/typography/_font-family.scss +13 -0
  33. package/styles/token/typography/_index.scss +2 -0
  34. package/styles/token/typography/_typography.scss +25 -0
  35. package/styles/token/z-index/_index.scss +1 -0
  36. package/styles/token/z-index/_z-index.scss +10 -0
  37. package/types/educarehq-solaris-ui.d.ts +3201 -0
  38. package/educarehq-solaris-ui.d.ts +0 -5
  39. package/esm2022/educarehq-solaris-ui.js +0 -5
  40. package/esm2022/educarehq-solaris-ui.js.map +0 -1
  41. package/esm2022/index.js +0 -109
  42. package/esm2022/index.js.map +0 -1
  43. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js +0 -17
  44. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js.map +0 -1
  45. package/esm2022/lib/components/actions/button/directives/button.directive.js +0 -60
  46. package/esm2022/lib/components/actions/button/directives/button.directive.js.map +0 -1
  47. package/esm2022/lib/components/actions/button/index.js +0 -3
  48. package/esm2022/lib/components/actions/button/index.js.map +0 -1
  49. package/esm2022/lib/components/actions/button/model/button.types.js +0 -1
  50. package/esm2022/lib/components/actions/button/model/button.types.js.map +0 -1
  51. package/esm2022/lib/components/actions/button-group/component/button-group.component.js +0 -21
  52. package/esm2022/lib/components/actions/button-group/component/button-group.component.js.map +0 -1
  53. package/esm2022/lib/components/actions/button-group/model/button-group.types.js +0 -1
  54. package/esm2022/lib/components/actions/button-group/model/button-group.types.js.map +0 -1
  55. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js +0 -17
  56. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js.map +0 -1
  57. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js +0 -58
  58. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js.map +0 -1
  59. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js +0 -1
  60. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js.map +0 -1
  61. package/esm2022/lib/components/data-display/badge/component/badge.component.js +0 -24
  62. package/esm2022/lib/components/data-display/badge/component/badge.component.js.map +0 -1
  63. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js +0 -17
  64. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js.map +0 -1
  65. package/esm2022/lib/components/data-display/badge/index.js +0 -3
  66. package/esm2022/lib/components/data-display/badge/index.js.map +0 -1
  67. package/esm2022/lib/components/data-display/badge/model/badge.types.js +0 -1
  68. package/esm2022/lib/components/data-display/badge/model/badge.types.js.map +0 -1
  69. package/esm2022/lib/components/data-display/card/component/card.component.js +0 -20
  70. package/esm2022/lib/components/data-display/card/component/card.component.js.map +0 -1
  71. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js +0 -17
  72. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js.map +0 -1
  73. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js +0 -17
  74. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js.map +0 -1
  75. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js +0 -17
  76. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js.map +0 -1
  77. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js +0 -19
  78. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js.map +0 -1
  79. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js +0 -17
  80. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js.map +0 -1
  81. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js +0 -17
  82. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js.map +0 -1
  83. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js +0 -17
  84. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js.map +0 -1
  85. package/esm2022/lib/components/data-display/card/model/card.types.js +0 -1
  86. package/esm2022/lib/components/data-display/card/model/card.types.js.map +0 -1
  87. package/esm2022/lib/components/data-display/divider/component/divider.component.js +0 -46
  88. package/esm2022/lib/components/data-display/divider/component/divider.component.js.map +0 -1
  89. package/esm2022/lib/components/data-display/divider/index.js +0 -2
  90. package/esm2022/lib/components/data-display/divider/index.js.map +0 -1
  91. package/esm2022/lib/components/data-display/divider/model/divider.types.js +0 -1
  92. package/esm2022/lib/components/data-display/divider/model/divider.types.js.map +0 -1
  93. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js +0 -18
  94. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js.map +0 -1
  95. package/esm2022/lib/components/feedback/alert/component/alert.component.js +0 -90
  96. package/esm2022/lib/components/feedback/alert/component/alert.component.js.map +0 -1
  97. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js +0 -17
  98. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js.map +0 -1
  99. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js +0 -17
  100. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js.map +0 -1
  101. package/esm2022/lib/components/feedback/alert/model/alert.types.js +0 -1
  102. package/esm2022/lib/components/feedback/alert/model/alert.types.js.map +0 -1
  103. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js +0 -69
  104. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js.map +0 -1
  105. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js +0 -1
  106. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js.map +0 -1
  107. package/esm2022/lib/components/feedback/toast/component/toast.component.js +0 -268
  108. package/esm2022/lib/components/feedback/toast/component/toast.component.js.map +0 -1
  109. package/esm2022/lib/components/feedback/toast/container/toast-container.component.js +0 -24
  110. package/esm2022/lib/components/feedback/toast/container/toast-container.component.js.map +0 -1
  111. package/esm2022/lib/components/feedback/toast/model/toast.types.js +0 -1
  112. package/esm2022/lib/components/feedback/toast/model/toast.types.js.map +0 -1
  113. package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js +0 -17
  114. package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js.map +0 -1
  115. package/esm2022/lib/components/feedback/toast/service/toast.service.js +0 -219
  116. package/esm2022/lib/components/feedback/toast/service/toast.service.js.map +0 -1
  117. package/esm2022/lib/components/feedback/toast/token/toast.tokens.js +0 -13
  118. package/esm2022/lib/components/feedback/toast/token/toast.tokens.js.map +0 -1
  119. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js +0 -227
  120. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js.map +0 -1
  121. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js +0 -1
  122. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js.map +0 -1
  123. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js +0 -441
  124. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js.map +0 -1
  125. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js +0 -1
  126. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js.map +0 -1
  127. package/esm2022/lib/components/forms/email-field/component/email-field.component.js +0 -215
  128. package/esm2022/lib/components/forms/email-field/component/email-field.component.js.map +0 -1
  129. package/esm2022/lib/components/forms/email-field/model/email-field.types.js +0 -1
  130. package/esm2022/lib/components/forms/email-field/model/email-field.types.js.map +0 -1
  131. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js +0 -69
  132. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js.map +0 -1
  133. package/esm2022/lib/components/forms/form-field/component/form-error.component.js +0 -19
  134. package/esm2022/lib/components/forms/form-field/component/form-error.component.js.map +0 -1
  135. package/esm2022/lib/components/forms/form-field/component/form-field.component.js +0 -442
  136. package/esm2022/lib/components/forms/form-field/component/form-field.component.js.map +0 -1
  137. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js +0 -18
  138. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js.map +0 -1
  139. package/esm2022/lib/components/forms/form-field/component/form-label.component.js +0 -18
  140. package/esm2022/lib/components/forms/form-field/component/form-label.component.js.map +0 -1
  141. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js +0 -14
  142. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js.map +0 -1
  143. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js +0 -17
  144. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js.map +0 -1
  145. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js +0 -17
  146. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js.map +0 -1
  147. package/esm2022/lib/components/forms/form-field/index.js +0 -8
  148. package/esm2022/lib/components/forms/form-field/index.js.map +0 -1
  149. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js +0 -3
  150. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js.map +0 -1
  151. package/esm2022/lib/components/forms/form-field/model/form-field.types.js +0 -1
  152. package/esm2022/lib/components/forms/form-field/model/form-field.types.js.map +0 -1
  153. package/esm2022/lib/components/forms/input/directives/input.directive.js +0 -148
  154. package/esm2022/lib/components/forms/input/directives/input.directive.js.map +0 -1
  155. package/esm2022/lib/components/forms/input/index.js +0 -2
  156. package/esm2022/lib/components/forms/input/index.js.map +0 -1
  157. package/esm2022/lib/components/forms/input/model/input.defaults.js +0 -27
  158. package/esm2022/lib/components/forms/input/model/input.defaults.js.map +0 -1
  159. package/esm2022/lib/components/forms/input/model/input.types.js +0 -1
  160. package/esm2022/lib/components/forms/input/model/input.types.js.map +0 -1
  161. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js +0 -1102
  162. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js.map +0 -1
  163. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js +0 -1
  164. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js.map +0 -1
  165. package/esm2022/lib/components/forms/option/component/option.component.js +0 -149
  166. package/esm2022/lib/components/forms/option/component/option.component.js.map +0 -1
  167. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js +0 -58
  168. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js.map +0 -1
  169. package/esm2022/lib/components/forms/option/index.js +0 -3
  170. package/esm2022/lib/components/forms/option/index.js.map +0 -1
  171. package/esm2022/lib/components/forms/option/model/option.types.js +0 -1
  172. package/esm2022/lib/components/forms/option/model/option.types.js.map +0 -1
  173. package/esm2022/lib/components/forms/option-group/component/option-group.component.js +0 -103
  174. package/esm2022/lib/components/forms/option-group/component/option-group.component.js.map +0 -1
  175. package/esm2022/lib/components/forms/option-group/index.js +0 -2
  176. package/esm2022/lib/components/forms/option-group/index.js.map +0 -1
  177. package/esm2022/lib/components/forms/option-group/model/option-group.types.js +0 -1
  178. package/esm2022/lib/components/forms/option-group/model/option-group.types.js.map +0 -1
  179. package/esm2022/lib/components/forms/password-field/component/password-field.component.js +0 -299
  180. package/esm2022/lib/components/forms/password-field/component/password-field.component.js.map +0 -1
  181. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js +0 -5
  182. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js.map +0 -1
  183. package/esm2022/lib/components/forms/password-field/model/password-field.types.js +0 -1
  184. package/esm2022/lib/components/forms/password-field/model/password-field.types.js.map +0 -1
  185. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js +0 -1
  186. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js.map +0 -1
  187. package/esm2022/lib/components/forms/password-field/model/password-strength.js +0 -67
  188. package/esm2022/lib/components/forms/password-field/model/password-strength.js.map +0 -1
  189. package/esm2022/lib/components/forms/password-field/validators/password.validator.js +0 -45
  190. package/esm2022/lib/components/forms/password-field/validators/password.validator.js.map +0 -1
  191. package/esm2022/lib/components/forms/radio/component/radio.component.js +0 -219
  192. package/esm2022/lib/components/forms/radio/component/radio.component.js.map +0 -1
  193. package/esm2022/lib/components/forms/radio/model/radio.types.js +0 -1
  194. package/esm2022/lib/components/forms/radio/model/radio.types.js.map +0 -1
  195. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js +0 -348
  196. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js.map +0 -1
  197. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js +0 -3
  198. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js.map +0 -1
  199. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js +0 -1
  200. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js.map +0 -1
  201. package/esm2022/lib/components/forms/select/component/select.component.js +0 -815
  202. package/esm2022/lib/components/forms/select/component/select.component.js.map +0 -1
  203. package/esm2022/lib/components/forms/select/model/select.types.js +0 -1
  204. package/esm2022/lib/components/forms/select/model/select.types.js.map +0 -1
  205. package/esm2022/lib/components/forms/switch/component/switch.component.js +0 -211
  206. package/esm2022/lib/components/forms/switch/component/switch.component.js.map +0 -1
  207. package/esm2022/lib/components/forms/switch/index.js +0 -2
  208. package/esm2022/lib/components/forms/switch/index.js.map +0 -1
  209. package/esm2022/lib/components/forms/switch/model/switch.types.js +0 -1
  210. package/esm2022/lib/components/forms/switch/model/switch.types.js.map +0 -1
  211. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js +0 -369
  212. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js.map +0 -1
  213. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js +0 -1
  214. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js.map +0 -1
  215. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js +0 -137
  216. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js.map +0 -1
  217. package/esm2022/lib/components/forms/textarea/model/textarea.types.js +0 -1
  218. package/esm2022/lib/components/forms/textarea/model/textarea.types.js.map +0 -1
  219. package/esm2022/lib/components/icon/component/solaris-icon.component.js +0 -20
  220. package/esm2022/lib/components/icon/component/solaris-icon.component.js.map +0 -1
  221. package/esm2022/lib/components/icon/index.js +0 -2
  222. package/esm2022/lib/components/icon/index.js.map +0 -1
  223. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js +0 -27
  224. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js.map +0 -1
  225. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js +0 -96
  226. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js.map +0 -1
  227. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js +0 -22
  228. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js.map +0 -1
  229. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js +0 -105
  230. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js.map +0 -1
  231. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js +0 -95
  232. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js.map +0 -1
  233. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js +0 -631
  234. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js.map +0 -1
  235. package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js +0 -365
  236. package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js.map +0 -1
  237. package/esm2022/lib/components/interaction/dropdown-menu/index.js +0 -8
  238. package/esm2022/lib/components/interaction/dropdown-menu/index.js.map +0 -1
  239. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js +0 -3
  240. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js.map +0 -1
  241. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js +0 -1
  242. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js.map +0 -1
  243. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js +0 -1
  244. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js.map +0 -1
  245. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js +0 -29
  246. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js.map +0 -1
  247. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js +0 -325
  248. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js.map +0 -1
  249. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js +0 -16
  250. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js.map +0 -1
  251. package/esm2022/lib/components/interaction/popover/index.js +0 -4
  252. package/esm2022/lib/components/interaction/popover/index.js.map +0 -1
  253. package/esm2022/lib/components/interaction/popover/model/popover-position.js +0 -145
  254. package/esm2022/lib/components/interaction/popover/model/popover-position.js.map +0 -1
  255. package/esm2022/lib/components/interaction/popover/model/popover.types.js +0 -1
  256. package/esm2022/lib/components/interaction/popover/model/popover.types.js.map +0 -1
  257. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js +0 -3
  258. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js.map +0 -1
  259. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js +0 -23
  260. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js.map +0 -1
  261. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js +0 -405
  262. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js.map +0 -1
  263. package/esm2022/lib/components/interaction/tooltip/index.js +0 -3
  264. package/esm2022/lib/components/interaction/tooltip/index.js.map +0 -1
  265. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js +0 -209
  266. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js.map +0 -1
  267. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js +0 -1
  268. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js.map +0 -1
  269. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js +0 -3
  270. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js.map +0 -1
  271. package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js +0 -323
  272. package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js.map +0 -1
  273. package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js +0 -34
  274. package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js.map +0 -1
  275. package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js +0 -1
  276. package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js.map +0 -1
  277. package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js +0 -242
  278. package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js.map +0 -1
  279. package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js +0 -197
  280. package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js.map +0 -1
  281. package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js +0 -1
  282. package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js.map +0 -1
  283. package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js +0 -3
  284. package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js.map +0 -1
  285. package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js +0 -15
  286. package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js.map +0 -1
  287. package/esm2022/lib/components/navigation/stepper/component/stepper.component.js +0 -99
  288. package/esm2022/lib/components/navigation/stepper/component/stepper.component.js.map +0 -1
  289. package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js +0 -13
  290. package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js.map +0 -1
  291. package/esm2022/lib/components/navigation/stepper/model/stepper.types.js +0 -1
  292. package/esm2022/lib/components/navigation/stepper/model/stepper.types.js.map +0 -1
  293. package/esm2022/lib/components/navigation/stepper/step/step.component.js +0 -91
  294. package/esm2022/lib/components/navigation/stepper/step/step.component.js.map +0 -1
  295. package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js +0 -3
  296. package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js.map +0 -1
  297. package/esm2022/lib/components/navigation/tabs/component/tabs.component.js +0 -169
  298. package/esm2022/lib/components/navigation/tabs/component/tabs.component.js.map +0 -1
  299. package/esm2022/lib/components/navigation/tabs/index.js +0 -5
  300. package/esm2022/lib/components/navigation/tabs/index.js.map +0 -1
  301. package/esm2022/lib/components/navigation/tabs/model/tabs.types.js +0 -1
  302. package/esm2022/lib/components/navigation/tabs/model/tabs.types.js.map +0 -1
  303. package/esm2022/lib/components/navigation/tabs/tab/tab.component.js +0 -195
  304. package/esm2022/lib/components/navigation/tabs/tab/tab.component.js.map +0 -1
  305. package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js +0 -55
  306. package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js.map +0 -1
  307. package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js +0 -3
  308. package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js.map +0 -1
  309. package/esm2022/lib/components/overlay/dialog/component/dialog.component.js +0 -49
  310. package/esm2022/lib/components/overlay/dialog/component/dialog.component.js.map +0 -1
  311. package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js +0 -37
  312. package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js.map +0 -1
  313. package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js +0 -13
  314. package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js.map +0 -1
  315. package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js +0 -32
  316. package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js.map +0 -1
  317. package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js +0 -142
  318. package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js.map +0 -1
  319. package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js +0 -56
  320. package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js.map +0 -1
  321. package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js +0 -20
  322. package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js.map +0 -1
  323. package/esm2022/lib/components/overlay/dialog/model/dialog.types.js +0 -1
  324. package/esm2022/lib/components/overlay/dialog/model/dialog.types.js.map +0 -1
  325. package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js +0 -13
  326. package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js.map +0 -1
  327. package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js +0 -23
  328. package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js.map +0 -1
  329. package/esm2022/lib/components/overlay/dialog/service/dialog.service.js +0 -111
  330. package/esm2022/lib/components/overlay/dialog/service/dialog.service.js.map +0 -1
  331. package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js +0 -4
  332. package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js.map +0 -1
  333. package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js +0 -15
  334. package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js.map +0 -1
  335. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js +0 -25
  336. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js.map +0 -1
  337. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js +0 -1
  338. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js.map +0 -1
  339. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js +0 -1
  340. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js.map +0 -1
  341. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js +0 -10
  342. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js.map +0 -1
  343. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js +0 -60
  344. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js.map +0 -1
  345. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js +0 -10
  346. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js.map +0 -1
  347. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js +0 -3
  348. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js.map +0 -1
  349. package/esm2022/lib/services/icon/icons/groups/actions.js +0 -242
  350. package/esm2022/lib/services/icon/icons/groups/actions.js.map +0 -1
  351. package/esm2022/lib/services/icon/icons/groups/data.js +0 -129
  352. package/esm2022/lib/services/icon/icons/groups/data.js.map +0 -1
  353. package/esm2022/lib/services/icon/icons/groups/layout.js +0 -50
  354. package/esm2022/lib/services/icon/icons/groups/layout.js.map +0 -1
  355. package/esm2022/lib/services/icon/icons/groups/navigation.js +0 -354
  356. package/esm2022/lib/services/icon/icons/groups/navigation.js.map +0 -1
  357. package/esm2022/lib/services/icon/icons/groups/status.js +0 -70
  358. package/esm2022/lib/services/icon/icons/groups/status.js.map +0 -1
  359. package/esm2022/lib/services/icon/icons/groups/theme.js +0 -49
  360. package/esm2022/lib/services/icon/icons/groups/theme.js.map +0 -1
  361. package/esm2022/lib/services/icon/icons/index.js +0 -2
  362. package/esm2022/lib/services/icon/icons/index.js.map +0 -1
  363. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js +0 -15
  364. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js.map +0 -1
  365. package/esm2022/lib/services/icon/index.js +0 -5
  366. package/esm2022/lib/services/icon/index.js.map +0 -1
  367. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js +0 -1
  368. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js.map +0 -1
  369. package/esm2022/lib/services/icon/model/solaris-icon.types.js +0 -1
  370. package/esm2022/lib/services/icon/model/solaris-icon.types.js.map +0 -1
  371. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js +0 -10
  372. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js.map +0 -1
  373. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js +0 -43
  374. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js.map +0 -1
  375. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js +0 -3
  376. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js.map +0 -1
  377. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js +0 -1
  378. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js.map +0 -1
  379. package/esm2022/lib/services/theme/model/solaris-theme.types.js +0 -1
  380. package/esm2022/lib/services/theme/model/solaris-theme.types.js.map +0 -1
  381. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js +0 -10
  382. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js.map +0 -1
  383. package/esm2022/lib/services/theme/service/solaris-theme.service.js +0 -22
  384. package/esm2022/lib/services/theme/service/solaris-theme.service.js.map +0 -1
  385. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js +0 -10
  386. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js.map +0 -1
  387. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js +0 -3
  388. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js.map +0 -1
  389. package/esm2022/lib/services/translation/index.js +0 -6
  390. package/esm2022/lib/services/translation/index.js.map +0 -1
  391. package/esm2022/lib/services/translation/model/solaris-locale.types.js +0 -1
  392. package/esm2022/lib/services/translation/model/solaris-locale.types.js.map +0 -1
  393. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js +0 -1
  394. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js.map +0 -1
  395. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js +0 -96
  396. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js.map +0 -1
  397. package/esm2022/lib/services/translation/model/solaris-translation.types.js +0 -1
  398. package/esm2022/lib/services/translation/model/solaris-translation.types.js.map +0 -1
  399. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js +0 -20
  400. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js.map +0 -1
  401. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js +0 -10
  402. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js.map +0 -1
  403. package/esm2022/lib/services/translation/service/solaris-translate.service.js +0 -87
  404. package/esm2022/lib/services/translation/service/solaris-translate.service.js.map +0 -1
  405. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js +0 -32
  406. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js.map +0 -1
  407. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js +0 -3
  408. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js.map +0 -1
  409. package/esm2022/lib/testing/provide-solaris-testing.js +0 -11
  410. package/esm2022/lib/testing/provide-solaris-testing.js.map +0 -1
  411. package/esm2022/lib/testing/solaris-test-utilities.js +0 -12
  412. package/esm2022/lib/testing/solaris-test-utilities.js.map +0 -1
  413. package/index.d.ts +0 -197
  414. package/lib/components/actions/button/directives/button-icon.directive.d.ts +0 -5
  415. package/lib/components/actions/button/directives/button.directive.d.ts +0 -22
  416. package/lib/components/actions/button/index.d.ts +0 -3
  417. package/lib/components/actions/button/model/button.types.d.ts +0 -5
  418. package/lib/components/actions/button-group/component/button-group.component.d.ts +0 -10
  419. package/lib/components/actions/button-group/model/button-group.types.d.ts +0 -2
  420. package/lib/components/actions/icon-button/directives/icon-button-badge.directive.d.ts +0 -5
  421. package/lib/components/actions/icon-button/directives/icon-button.directive.d.ts +0 -21
  422. package/lib/components/actions/icon-button/model/icon-button.types.d.ts +0 -5
  423. package/lib/components/data-display/badge/component/badge.component.d.ts +0 -12
  424. package/lib/components/data-display/badge/directives/badge-icon.directive.d.ts +0 -5
  425. package/lib/components/data-display/badge/index.d.ts +0 -3
  426. package/lib/components/data-display/badge/model/badge.types.d.ts +0 -6
  427. package/lib/components/data-display/card/component/card.component.d.ts +0 -10
  428. package/lib/components/data-display/card/directives/card-actions.directive.d.ts +0 -5
  429. package/lib/components/data-display/card/directives/card-content.directive.d.ts +0 -5
  430. package/lib/components/data-display/card/directives/card-description.directive.d.ts +0 -5
  431. package/lib/components/data-display/card/directives/card-footer.directive.d.ts +0 -6
  432. package/lib/components/data-display/card/directives/card-header.directive.d.ts +0 -5
  433. package/lib/components/data-display/card/directives/card-media.directive.d.ts +0 -5
  434. package/lib/components/data-display/card/directives/card-title.directive.d.ts +0 -5
  435. package/lib/components/data-display/card/model/card.types.d.ts +0 -4
  436. package/lib/components/data-display/divider/component/divider.component.d.ts +0 -17
  437. package/lib/components/data-display/divider/index.d.ts +0 -2
  438. package/lib/components/data-display/divider/model/divider.types.d.ts +0 -5
  439. package/lib/components/feedback/alert/component/alert-actions.component.d.ts +0 -5
  440. package/lib/components/feedback/alert/component/alert.component.d.ts +0 -26
  441. package/lib/components/feedback/alert/directives/alert-description.directive.d.ts +0 -5
  442. package/lib/components/feedback/alert/directives/alert-title.directive.d.ts +0 -5
  443. package/lib/components/feedback/alert/model/alert.types.d.ts +0 -5
  444. package/lib/components/feedback/skeleton/component/skeleton.component.d.ts +0 -17
  445. package/lib/components/feedback/skeleton/model/skeleton.types.d.ts +0 -5
  446. package/lib/components/feedback/toast/component/toast.component.d.ts +0 -62
  447. package/lib/components/feedback/toast/container/toast-container.component.d.ts +0 -10
  448. package/lib/components/feedback/toast/model/toast.types.d.ts +0 -106
  449. package/lib/components/feedback/toast/provider/provide-solaris-toast.d.ts +0 -3
  450. package/lib/components/feedback/toast/service/toast.service.d.ts +0 -36
  451. package/lib/components/feedback/toast/token/toast.tokens.d.ts +0 -5
  452. package/lib/components/forms/checkbox/component/checkbox.component.d.ts +0 -70
  453. package/lib/components/forms/checkbox/model/checkbox.types.d.ts +0 -5
  454. package/lib/components/forms/checkbox-group/component/checkbox-group.component.d.ts +0 -123
  455. package/lib/components/forms/checkbox-group/model/checkbox-group.types.d.ts +0 -5
  456. package/lib/components/forms/email-field/component/email-field.component.d.ts +0 -67
  457. package/lib/components/forms/email-field/model/email-field.types.d.ts +0 -6
  458. package/lib/components/forms/email-field/validators/email-field.validators.d.ts +0 -8
  459. package/lib/components/forms/form-field/component/form-error.component.d.ts +0 -5
  460. package/lib/components/forms/form-field/component/form-field.component.d.ts +0 -96
  461. package/lib/components/forms/form-field/component/form-hint.component.d.ts +0 -5
  462. package/lib/components/forms/form-field/component/form-label.component.d.ts +0 -5
  463. package/lib/components/forms/form-field/directives/form-field-trigger.directive.d.ts +0 -5
  464. package/lib/components/forms/form-field/directives/form-prefix.directive.d.ts +0 -5
  465. package/lib/components/forms/form-field/directives/form-suffix.directive.d.ts +0 -5
  466. package/lib/components/forms/form-field/index.d.ts +0 -8
  467. package/lib/components/forms/form-field/model/form-control.contract.d.ts +0 -11
  468. package/lib/components/forms/form-field/model/form-field.types.d.ts +0 -5
  469. package/lib/components/forms/input/directives/input.directive.d.ts +0 -37
  470. package/lib/components/forms/input/index.d.ts +0 -2
  471. package/lib/components/forms/input/model/input.defaults.d.ts +0 -2
  472. package/lib/components/forms/input/model/input.types.d.ts +0 -4
  473. package/lib/components/forms/multi-select/component/multi-select.component.d.ts +0 -199
  474. package/lib/components/forms/multi-select/model/multi-select.types.d.ts +0 -5
  475. package/lib/components/forms/option/component/option.component.d.ts +0 -58
  476. package/lib/components/forms/option/directives/option-slots.directive.d.ts +0 -21
  477. package/lib/components/forms/option/index.d.ts +0 -3
  478. package/lib/components/forms/option/model/option.types.d.ts +0 -3
  479. package/lib/components/forms/option-group/component/option-group.component.d.ts +0 -32
  480. package/lib/components/forms/option-group/index.d.ts +0 -2
  481. package/lib/components/forms/option-group/model/option-group.types.d.ts +0 -2
  482. package/lib/components/forms/password-field/component/password-field.component.d.ts +0 -81
  483. package/lib/components/forms/password-field/model/password-field-constants.d.ts +0 -4
  484. package/lib/components/forms/password-field/model/password-field.types.d.ts +0 -6
  485. package/lib/components/forms/password-field/model/password-policy.types.d.ts +0 -10
  486. package/lib/components/forms/password-field/model/password-strength.d.ts +0 -2
  487. package/lib/components/forms/password-field/validators/password.validator.d.ts +0 -3
  488. package/lib/components/forms/radio/component/radio.component.d.ts +0 -68
  489. package/lib/components/forms/radio/model/radio.types.d.ts +0 -4
  490. package/lib/components/forms/radio-group/component/radio-group.component.d.ts +0 -86
  491. package/lib/components/forms/radio-group/model/radio-group.token.d.ts +0 -2
  492. package/lib/components/forms/radio-group/model/radio-group.types.d.ts +0 -5
  493. package/lib/components/forms/select/component/select.component.d.ts +0 -158
  494. package/lib/components/forms/select/model/select.types.d.ts +0 -4
  495. package/lib/components/forms/switch/component/switch.component.d.ts +0 -66
  496. package/lib/components/forms/switch/index.d.ts +0 -2
  497. package/lib/components/forms/switch/model/switch.types.d.ts +0 -4
  498. package/lib/components/forms/switch-group/component/switch-group.component.d.ts +0 -91
  499. package/lib/components/forms/switch-group/model/switch-group.types.d.ts +0 -5
  500. package/lib/components/forms/textarea/directives/textarea.directive.d.ts +0 -37
  501. package/lib/components/forms/textarea/model/textarea.types.d.ts +0 -5
  502. package/lib/components/icon/component/solaris-icon.component.d.ts +0 -13
  503. package/lib/components/icon/index.d.ts +0 -1
  504. package/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.d.ts +0 -10
  505. package/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.d.ts +0 -28
  506. package/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.d.ts +0 -7
  507. package/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.d.ts +0 -21
  508. package/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.d.ts +0 -21
  509. package/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.d.ts +0 -68
  510. package/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.d.ts +0 -61
  511. package/lib/components/interaction/dropdown-menu/index.d.ts +0 -9
  512. package/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.d.ts +0 -8
  513. package/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.d.ts +0 -11
  514. package/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.d.ts +0 -2
  515. package/lib/components/interaction/popover/component/popover-panel.component.d.ts +0 -10
  516. package/lib/components/interaction/popover/directives/popover-trigger.directive.d.ts +0 -65
  517. package/lib/components/interaction/popover/directives/popover.directive.d.ts +0 -7
  518. package/lib/components/interaction/popover/index.d.ts +0 -4
  519. package/lib/components/interaction/popover/model/popover-position.d.ts +0 -4
  520. package/lib/components/interaction/popover/model/popover.types.d.ts +0 -7
  521. package/lib/components/interaction/popover/token/popover.tokens.d.ts +0 -12
  522. package/lib/components/interaction/tooltip/component/tooltip-panel.component.d.ts +0 -9
  523. package/lib/components/interaction/tooltip/directive/tooltip.directive.d.ts +0 -80
  524. package/lib/components/interaction/tooltip/index.d.ts +0 -3
  525. package/lib/components/interaction/tooltip/model/tooltip-position.d.ts +0 -5
  526. package/lib/components/interaction/tooltip/model/tooltip.types.d.ts +0 -22
  527. package/lib/components/interaction/tooltip/token/tooltip.tokens.d.ts +0 -21
  528. package/lib/components/navigation/editable-tabs/component/editable-tabs.component.d.ts +0 -69
  529. package/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.d.ts +0 -20
  530. package/lib/components/navigation/editable-tabs/model/editable-tabs.types.d.ts +0 -60
  531. package/lib/components/navigation/segmented-control/component/segmented-control.component.d.ts +0 -64
  532. package/lib/components/navigation/segmented-control/item/segmented-item.component.d.ts +0 -35
  533. package/lib/components/navigation/segmented-control/model/segmented-control.types.d.ts +0 -12
  534. package/lib/components/navigation/segmented-control/token/segmented-control.tokens.d.ts +0 -22
  535. package/lib/components/navigation/stepper/actions/stepper-actions.component.d.ts +0 -7
  536. package/lib/components/navigation/stepper/component/stepper.component.d.ts +0 -36
  537. package/lib/components/navigation/stepper/content/stepper-content.component.d.ts +0 -5
  538. package/lib/components/navigation/stepper/model/stepper.types.d.ts +0 -15
  539. package/lib/components/navigation/stepper/step/step.component.d.ts +0 -27
  540. package/lib/components/navigation/stepper/token/stepper.tokens.d.ts +0 -13
  541. package/lib/components/navigation/tabs/component/tabs.component.d.ts +0 -47
  542. package/lib/components/navigation/tabs/index.d.ts +0 -6
  543. package/lib/components/navigation/tabs/model/tabs.types.d.ts +0 -17
  544. package/lib/components/navigation/tabs/tab/tab.component.d.ts +0 -38
  545. package/lib/components/navigation/tabs/tab-panel/tab-panel.component.d.ts +0 -15
  546. package/lib/components/navigation/tabs/token/tabs.tokens.d.ts +0 -19
  547. package/lib/components/overlay/dialog/component/dialog.component.d.ts +0 -29
  548. package/lib/components/overlay/dialog/components/dialog-actions.component.d.ts +0 -12
  549. package/lib/components/overlay/dialog/components/dialog-content.component.d.ts +0 -5
  550. package/lib/components/overlay/dialog/components/dialog-header.component.d.ts +0 -19
  551. package/lib/components/overlay/dialog/container/dialog-container.component.d.ts +0 -32
  552. package/lib/components/overlay/dialog/flow/dialog-flow.component.d.ts +0 -19
  553. package/lib/components/overlay/dialog/flow/dialog-step.component.d.ts +0 -7
  554. package/lib/components/overlay/dialog/model/dialog.types.d.ts +0 -87
  555. package/lib/components/overlay/dialog/provider/provide-solaris-dialog.d.ts +0 -3
  556. package/lib/components/overlay/dialog/service/dialog-ref.d.ts +0 -11
  557. package/lib/components/overlay/dialog/service/dialog.service.d.ts +0 -20
  558. package/lib/components/overlay/dialog/token/dialog-data.token.d.ts +0 -4
  559. package/lib/components/overlay/dialog/token/dialog.tokens.d.ts +0 -4
  560. package/lib/services/accessibility/directives/visually-hidden.directive.d.ts +0 -5
  561. package/lib/services/accessibility/model/solaris-accessibility-config.interface.d.ts +0 -4
  562. package/lib/services/accessibility/model/solaris-accessibility.types.d.ts +0 -5
  563. package/lib/services/accessibility/provider/provide-solaris-accessibility.d.ts +0 -3
  564. package/lib/services/accessibility/service/solaris-accessibility.service.d.ts +0 -15
  565. package/lib/services/accessibility/testing/solaris-accessibility-testing.provider.d.ts +0 -3
  566. package/lib/services/accessibility/token/solaris-accessibility.tokens.d.ts +0 -3
  567. package/lib/services/icon/icons/groups/actions.d.ts +0 -2
  568. package/lib/services/icon/icons/groups/data.d.ts +0 -2
  569. package/lib/services/icon/icons/groups/layout.d.ts +0 -2
  570. package/lib/services/icon/icons/groups/navigation.d.ts +0 -2
  571. package/lib/services/icon/icons/groups/status.d.ts +0 -2
  572. package/lib/services/icon/icons/groups/theme.d.ts +0 -2
  573. package/lib/services/icon/icons/index.d.ts +0 -1
  574. package/lib/services/icon/icons/solaris-built-in-icons.d.ts +0 -2
  575. package/lib/services/icon/index.d.ts +0 -8
  576. package/lib/services/icon/model/solaris-icon-definition.interface.d.ts +0 -45
  577. package/lib/services/icon/model/solaris-icon.types.d.ts +0 -4
  578. package/lib/services/icon/provider/provide-solaris-icons.d.ts +0 -3
  579. package/lib/services/icon/service/solaris-icon-registry.service.d.ts +0 -12
  580. package/lib/services/icon/token/solaris-icon.tokens.d.ts +0 -6
  581. package/lib/services/theme/model/solaris-theme-config.interface.d.ts +0 -5
  582. package/lib/services/theme/model/solaris-theme.types.d.ts +0 -3
  583. package/lib/services/theme/provider/provide-solaris-theme.d.ts +0 -3
  584. package/lib/services/theme/service/solaris-theme.service.d.ts +0 -9
  585. package/lib/services/theme/testing/solaris-theme-testing.provider.d.ts +0 -3
  586. package/lib/services/theme/token/solaris-theme.tokens.d.ts +0 -3
  587. package/lib/services/translation/index.d.ts +0 -8
  588. package/lib/services/translation/model/solaris-locale.types.d.ts +0 -4
  589. package/lib/services/translation/model/solaris-translate-config.interface.d.ts +0 -8
  590. package/lib/services/translation/model/solaris-translate-defaults.d.ts +0 -2
  591. package/lib/services/translation/model/solaris-translation.types.d.ts +0 -3
  592. package/lib/services/translation/pipe/solaris-translate.pipe.d.ts +0 -8
  593. package/lib/services/translation/provider/provide-solaris-translate.d.ts +0 -3
  594. package/lib/services/translation/service/solaris-translate.service.d.ts +0 -15
  595. package/lib/services/translation/testing/solaris-translate-testing.provider.d.ts +0 -3
  596. package/lib/services/translation/token/solaris-translate.tokens.d.ts +0 -3
  597. package/lib/testing/provide-solaris-testing.d.ts +0 -10
  598. package/lib/testing/solaris-test-utilities.d.ts +0 -3
@@ -1,1102 +0,0 @@
1
- import { Component, input, computed, signal, output, effect, forwardRef, inject, ContentChildren, ElementRef, ViewChild, DestroyRef, isDevMode, } from '@angular/core';
2
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
- import { SolarisFormFieldTriggerDirective, SolarisFormPrefixDirective, SolarisFormFieldComponent, } from '../../form-field';
4
- import { SolarisFormControl } from '../../form-field/model/form-control.contract';
5
- import { SolarisTranslateService } from '../../../../services/translation';
6
- import { SolarisOptionGroupComponent } from '../../option-group';
7
- import { SolarisOptionComponent } from '../../option';
8
- import { SolarisIconComponent } from '../../../icon';
9
- import { SolarisPopoverDirective, SolarisPopoverTriggerDirective, } from '../../../interaction/popover';
10
- import { SolarisTooltipDirective } from '../../../interaction/tooltip';
11
- import * as i0 from "@angular/core";
12
- let nextId = 0;
13
- function generateId() {
14
- return `solaris-multi-select-${++nextId}`;
15
- }
16
- function normalizeArray(value) {
17
- if (value === null || value === undefined)
18
- return [];
19
- if (Array.isArray(value))
20
- return value;
21
- return [];
22
- }
23
- export class SolarisMultiSelectComponent extends SolarisFormControl {
24
- elementRef = inject(ElementRef);
25
- translateService = inject(SolarisTranslateService);
26
- parentFormField = inject(SolarisFormFieldComponent, {
27
- optional: true,
28
- });
29
- popoverTrigger;
30
- searchInputRef;
31
- triggerElement;
32
- formFieldElement;
33
- options;
34
- optionGroups;
35
- hint = input(...(ngDevMode ? [undefined, { debugName: "hint" }] : /* istanbul ignore next */ []));
36
- label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
37
- error = input(...(ngDevMode ? [undefined, { debugName: "error" }] : /* istanbul ignore next */ []));
38
- hintKey = input(...(ngDevMode ? [undefined, { debugName: "hintKey" }] : /* istanbul ignore next */ []));
39
- labelKey = input(...(ngDevMode ? [undefined, { debugName: "labelKey" }] : /* istanbul ignore next */ []));
40
- errorKey = input(...(ngDevMode ? [undefined, { debugName: "errorKey" }] : /* istanbul ignore next */ []));
41
- emptyText = input(...(ngDevMode ? [undefined, { debugName: "emptyText" }] : /* istanbul ignore next */ []));
42
- ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
43
- placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
44
- loadingText = input(...(ngDevMode ? [undefined, { debugName: "loadingText" }] : /* istanbul ignore next */ []));
45
- emptyTextKey = input(...(ngDevMode ? [undefined, { debugName: "emptyTextKey" }] : /* istanbul ignore next */ []));
46
- ariaLabelKey = input(...(ngDevMode ? [undefined, { debugName: "ariaLabelKey" }] : /* istanbul ignore next */ []));
47
- placeholderKey = input(...(ngDevMode ? [undefined, { debugName: "placeholderKey" }] : /* istanbul ignore next */ []));
48
- loadingTextKey = input(...(ngDevMode ? [undefined, { debugName: "loadingTextKey" }] : /* istanbul ignore next */ []));
49
- ariaLabelledby = input(...(ngDevMode ? [undefined, { debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
50
- loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
51
- searchPlaceholder = input(...(ngDevMode ? [undefined, { debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
52
- clearable = input(false, ...(ngDevMode ? [{ debugName: "clearable" }] : /* istanbul ignore next */ []));
53
- clearLabel = input(...(ngDevMode ? [undefined, { debugName: "clearLabel" }] : /* istanbul ignore next */ []));
54
- clearLabelKey = input(...(ngDevMode ? [undefined, { debugName: "clearLabelKey" }] : /* istanbul ignore next */ []));
55
- removeChipLabel = input(...(ngDevMode ? [undefined, { debugName: "removeChipLabel" }] : /* istanbul ignore next */ []));
56
- removeChipLabelKey = input(...(ngDevMode ? [undefined, { debugName: "removeChipLabelKey" }] : /* istanbul ignore next */ []));
57
- noResultsText = input(...(ngDevMode ? [undefined, { debugName: "noResultsText" }] : /* istanbul ignore next */ []));
58
- noResultsTextKey = input(...(ngDevMode ? [undefined, { debugName: "noResultsTextKey" }] : /* istanbul ignore next */ []));
59
- value = input([], ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
60
- searchable = input(false, ...(ngDevMode ? [{ debugName: "searchable" }] : /* istanbul ignore next */ []));
61
- searchPlaceholderKey = input(...(ngDevMode ? [undefined, { debugName: "searchPlaceholderKey" }] : /* istanbul ignore next */ []));
62
- panelMinWidth = input(...(ngDevMode ? [undefined, { debugName: "panelMinWidth" }] : /* istanbul ignore next */ []));
63
- panelMaxWidth = input(...(ngDevMode ? [undefined, { debugName: "panelMaxWidth" }] : /* istanbul ignore next */ []));
64
- density = input(...(ngDevMode ? [undefined, { debugName: "density" }] : /* istanbul ignore next */ []));
65
- size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
66
- panelMatchTriggerWidth = input(true, ...(ngDevMode ? [{ debugName: "panelMatchTriggerWidth" }] : /* istanbul ignore next */ []));
67
- radius = input('md', ...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
68
- disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {}), alias: 'disabled' });
69
- readonlyInput = input(false, { ...(ngDevMode ? { debugName: "readonlyInput" } : /* istanbul ignore next */ {}), alias: 'readonly' });
70
- requiredInput = input(false, { ...(ngDevMode ? { debugName: "requiredInput" } : /* istanbul ignore next */ {}), alias: 'required' });
71
- panelMaxHeight = input('20rem', ...(ngDevMode ? [{ debugName: "panelMaxHeight" }] : /* istanbul ignore next */ []));
72
- icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
73
- displayWith = input(...(ngDevMode ? [undefined, { debugName: "displayWith" }] : /* istanbul ignore next */ []));
74
- appearance = input('outline', ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
75
- compareWith = input(Object.is, ...(ngDevMode ? [{ debugName: "compareWith" }] : /* istanbul ignore next */ []));
76
- manualInvalid = input(undefined, { ...(ngDevMode ? { debugName: "manualInvalid" } : /* istanbul ignore next */ {}), alias: 'invalid' });
77
- selectAll = input(false, ...(ngDevMode ? [{ debugName: "selectAll" }] : /* istanbul ignore next */ []));
78
- selectAllLabel = input(...(ngDevMode ? [undefined, { debugName: "selectAllLabel" }] : /* istanbul ignore next */ []));
79
- selectAllLabelKey = input(...(ngDevMode ? [undefined, { debugName: "selectAllLabelKey" }] : /* istanbul ignore next */ []));
80
- displayMode = input('auto', ...(ngDevMode ? [{ debugName: "displayMode" }] : /* istanbul ignore next */ []));
81
- maxVisibleChips = input(3, ...(ngDevMode ? [{ debugName: "maxVisibleChips" }] : /* istanbul ignore next */ []));
82
- selectedCountLabel = input(...(ngDevMode ? [undefined, { debugName: "selectedCountLabel" }] : /* istanbul ignore next */ []));
83
- selectedCountLabelKey = input(...(ngDevMode ? [undefined, { debugName: "selectedCountLabelKey" }] : /* istanbul ignore next */ []));
84
- overflowLabel = input(...(ngDevMode ? [undefined, { debugName: "overflowLabel" }] : /* istanbul ignore next */ []));
85
- overflowLabelKey = input(...(ngDevMode ? [undefined, { debugName: "overflowLabelKey" }] : /* istanbul ignore next */ []));
86
- minSelected = input(undefined, ...(ngDevMode ? [{ debugName: "minSelected" }] : /* istanbul ignore next */ []));
87
- maxSelected = input(undefined, ...(ngDevMode ? [{ debugName: "maxSelected" }] : /* istanbul ignore next */ []));
88
- showSelectionTooltip = input(false, ...(ngDevMode ? [{ debugName: "showSelectionTooltip" }] : /* istanbul ignore next */ []));
89
- name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
90
- opened = output();
91
- closed = output();
92
- cleared = output();
93
- openChange = output();
94
- searchChange = output();
95
- valueChange = output();
96
- selectionChange = output();
97
- panelId = `solaris-multi-select-panel-${generateId()}`;
98
- panelOpen = signal(false, ...(ngDevMode ? [{ debugName: "panelOpen" }] : /* istanbul ignore next */ []));
99
- internalValue = signal([], ...(ngDevMode ? [{ debugName: "internalValue" }] : /* istanbul ignore next */ []));
100
- internalFocused = signal(false, ...(ngDevMode ? [{ debugName: "internalFocused" }] : /* istanbul ignore next */ []));
101
- internalDisabled = signal(false, ...(ngDevMode ? [{ debugName: "internalDisabled" }] : /* istanbul ignore next */ []));
102
- searchQuery = signal('', ...(ngDevMode ? [{ debugName: "searchQuery" }] : /* istanbul ignore next */ []));
103
- activeOptionIndex = signal(-1, ...(ngDevMode ? [{ debugName: "activeOptionIndex" }] : /* istanbul ignore next */ []));
104
- touched = signal(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
105
- optionsInitialized = signal(false, ...(ngDevMode ? [{ debugName: "optionsInitialized" }] : /* istanbul ignore next */ []));
106
- triggerContentRef;
107
- onChange = () => undefined;
108
- onTouched = () => undefined;
109
- optionsSubscription;
110
- optionInteractionSubscriptions = [];
111
- popoverSubscriptions = [];
112
- triggerWidth = signal(0, ...(ngDevMode ? [{ debugName: "triggerWidth" }] : /* istanbul ignore next */ []));
113
- resizeObserver = null;
114
- destroyRef = inject(DestroyRef);
115
- elementId = computed(() => {
116
- // SECURITY_EXCEPTION: nativeElement.getAttribute('id') is standard DOM API to check existing ID before generating one. Same approach used by Solaris Select and Option.
117
- const existing = this.elementRef.nativeElement.getAttribute('id');
118
- return existing ?? generateId();
119
- }, ...(ngDevMode ? [{ debugName: "elementId" }] : /* istanbul ignore next */ []));
120
- effectiveDensity = computed(() => {
121
- return this.density() ?? 'comfortable';
122
- }, ...(ngDevMode ? [{ debugName: "effectiveDensity" }] : /* istanbul ignore next */ []));
123
- isEffectivelyDisabled = computed(() => {
124
- return this.disabledInput() || this.internalDisabled();
125
- }, ...(ngDevMode ? [{ debugName: "isEffectivelyDisabled" }] : /* istanbul ignore next */ []));
126
- isEffectivelyReadonly = computed(() => {
127
- return this.readonlyInput();
128
- }, ...(ngDevMode ? [{ debugName: "isEffectivelyReadonly" }] : /* istanbul ignore next */ []));
129
- isEffectivelyInvalid = computed(() => {
130
- const manual = this.manualInvalid();
131
- if (manual !== undefined) {
132
- return manual;
133
- }
134
- if (this.touched()) {
135
- const min = this.minSelected();
136
- const max = this.maxSelected();
137
- const count = this.internalValue().length;
138
- if (min !== undefined && count < min)
139
- return true;
140
- if (max !== undefined && count > max)
141
- return true;
142
- if (this.requiredInput() && !this.hasValue())
143
- return true;
144
- }
145
- return false;
146
- }, ...(ngDevMode ? [{ debugName: "isEffectivelyInvalid" }] : /* istanbul ignore next */ []));
147
- popoverAppearance = computed(() => {
148
- const a = this.appearance();
149
- return a === 'filled' ? 'surface' : a;
150
- }, ...(ngDevMode ? [{ debugName: "popoverAppearance" }] : /* istanbul ignore next */ []));
151
- canOpen = computed(() => {
152
- return !this.isEffectivelyDisabled() && !this.isEffectivelyReadonly();
153
- }, ...(ngDevMode ? [{ debugName: "canOpen" }] : /* istanbul ignore next */ []));
154
- hasValue = computed(() => {
155
- return this.internalValue().length > 0;
156
- }, ...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
157
- canClear = computed(() => {
158
- return (this.clearable() &&
159
- this.hasValue() &&
160
- !this.isEffectivelyDisabled() &&
161
- !this.isEffectivelyReadonly());
162
- }, ...(ngDevMode ? [{ debugName: "canClear" }] : /* istanbul ignore next */ []));
163
- selectedOptions = computed(() => {
164
- const value = this.internalValue();
165
- const comp = this.compareWith();
166
- const opts = this.options;
167
- if (!opts || value.length === 0) {
168
- return [];
169
- }
170
- return opts.filter((opt) => value.some((v) => comp(opt.value(), v)));
171
- }, ...(ngDevMode ? [{ debugName: "selectedOptions" }] : /* istanbul ignore next */ []));
172
- selectedCount = computed(() => {
173
- return this.internalValue().length;
174
- }, ...(ngDevMode ? [{ debugName: "selectedCount" }] : /* istanbul ignore next */ []));
175
- selectedLabels = computed(() => {
176
- const dw = this.displayWith();
177
- const selected = this.selectedOptions();
178
- return selected
179
- .map((opt) => {
180
- if (dw) {
181
- const result = dw(opt.value());
182
- if (result !== undefined)
183
- return result;
184
- }
185
- const label = opt.labelText();
186
- if (label)
187
- return label;
188
- const native = this.getOptionNativeText(opt);
189
- if (native)
190
- return native;
191
- return '';
192
- })
193
- .filter(Boolean);
194
- }, ...(ngDevMode ? [{ debugName: "selectedLabels" }] : /* istanbul ignore next */ []));
195
- summaryText = computed(() => {
196
- const count = this.selectedCount();
197
- if (count === 0)
198
- return '';
199
- const key = this.selectedCountLabelKey();
200
- if (key) {
201
- return this.translateService.translate(key, { count: String(count) });
202
- }
203
- const text = this.selectedCountLabel();
204
- if (text)
205
- return text;
206
- if (count === 1) {
207
- return this.translateService.translate('solaris.multiSelect.selectedCount.singular', { count: '1' });
208
- }
209
- return this.translateService.translate('solaris.multiSelect.selectedCount.plural', { count: String(count) });
210
- }, ...(ngDevMode ? [{ debugName: "summaryText" }] : /* istanbul ignore next */ []));
211
- availableContentWidth = computed(() => {
212
- const tw = this.triggerWidth();
213
- if (tw <= 0)
214
- return 0;
215
- const searchWidth = this.searchable() && this.panelOpen() ? 80 : 0;
216
- return Math.max(0, tw - searchWidth);
217
- }, ...(ngDevMode ? [{ debugName: "availableContentWidth" }] : /* istanbul ignore next */ []));
218
- autoChipCount = computed(() => {
219
- if (this.displayMode() !== 'auto')
220
- return 0;
221
- const selected = this.selectedOptions();
222
- if (selected.length === 0)
223
- return 0;
224
- const avail = this.availableContentWidth();
225
- if (avail <= 0)
226
- return 0;
227
- let remaining = avail;
228
- let count = 0;
229
- for (const opt of selected) {
230
- const label = this.getOptionDisplayLabel(opt);
231
- const canRemove = !this.isEffectivelyDisabled() && !this.isEffectivelyReadonly();
232
- const labelWidth = label.length * 9;
233
- const chipPaddingX = 16;
234
- const removeWidth = canRemove ? 20 : 0;
235
- const chipWidth = labelWidth + chipPaddingX + removeWidth + 4;
236
- if (chipWidth <= remaining) {
237
- remaining -= chipWidth;
238
- count++;
239
- }
240
- else {
241
- break;
242
- }
243
- }
244
- return count;
245
- }, ...(ngDevMode ? [{ debugName: "autoChipCount" }] : /* istanbul ignore next */ []));
246
- autoOverflowCount = computed(() => {
247
- return Math.max(0, this.selectedOptions().length - this.autoChipCount());
248
- }, ...(ngDevMode ? [{ debugName: "autoOverflowCount" }] : /* istanbul ignore next */ []));
249
- autoShowOverflow = computed(() => {
250
- return this.autoOverflowCount() > 0;
251
- }, ...(ngDevMode ? [{ debugName: "autoShowOverflow" }] : /* istanbul ignore next */ []));
252
- showCountOnly = computed(() => {
253
- return (this.displayMode() === 'auto' &&
254
- this.autoChipCount() === 0 &&
255
- this.selectedCount() > 0);
256
- }, ...(ngDevMode ? [{ debugName: "showCountOnly" }] : /* istanbul ignore next */ []));
257
- autoVisibleChips = computed(() => {
258
- return this.selectedOptions().slice(0, this.autoChipCount());
259
- }, ...(ngDevMode ? [{ debugName: "autoVisibleChips" }] : /* istanbul ignore next */ []));
260
- autoOverflowTooltipText = computed(() => {
261
- const selected = this.selectedOptions();
262
- const count = this.autoChipCount();
263
- return selected
264
- .slice(count)
265
- .map((opt) => this.getOptionDisplayLabel(opt))
266
- .join(', ');
267
- }, ...(ngDevMode ? [{ debugName: "autoOverflowTooltipText" }] : /* istanbul ignore next */ []));
268
- countTooltipText = computed(() => {
269
- return this.selectedLabels().join(', ');
270
- }, ...(ngDevMode ? [{ debugName: "countTooltipText" }] : /* istanbul ignore next */ []));
271
- overflowCount = computed(() => {
272
- return Math.max(0, this.selectedOptions().length - this.maxVisibleChips());
273
- }, ...(ngDevMode ? [{ debugName: "overflowCount" }] : /* istanbul ignore next */ []));
274
- overflowText = computed(() => {
275
- const count = this.overflowCount();
276
- if (count <= 0)
277
- return '';
278
- const key = this.overflowLabelKey();
279
- if (key) {
280
- return this.translateService.translate(key, { count: String(count) });
281
- }
282
- const text = this.overflowLabel();
283
- if (text)
284
- return text;
285
- return `+${count}`;
286
- }, ...(ngDevMode ? [{ debugName: "overflowText" }] : /* istanbul ignore next */ []));
287
- commaText = computed(() => {
288
- return this.selectedLabels().join(', ');
289
- }, ...(ngDevMode ? [{ debugName: "commaText" }] : /* istanbul ignore next */ []));
290
- placeholderText = computed(() => {
291
- const key = this.placeholderKey();
292
- if (key) {
293
- return this.translateService.translate(key) || this.placeholder() || '';
294
- }
295
- return this.placeholder() ?? '';
296
- }, ...(ngDevMode ? [{ debugName: "placeholderText" }] : /* istanbul ignore next */ []));
297
- searchPlaceholderText = computed(() => {
298
- const key = this.searchPlaceholderKey();
299
- if (key) {
300
- return this.translateService.translate(key);
301
- }
302
- const text = this.searchPlaceholder();
303
- if (text) {
304
- return text;
305
- }
306
- return this.translateService.translate('solaris.multiSelect.search.placeholder');
307
- }, ...(ngDevMode ? [{ debugName: "searchPlaceholderText" }] : /* istanbul ignore next */ []));
308
- loadingTextValue = computed(() => {
309
- const key = this.loadingTextKey();
310
- if (key) {
311
- return this.translateService.translate(key);
312
- }
313
- const text = this.loadingText();
314
- if (text) {
315
- return text;
316
- }
317
- return this.translateService.translate('solaris.multiSelect.loading');
318
- }, ...(ngDevMode ? [{ debugName: "loadingTextValue" }] : /* istanbul ignore next */ []));
319
- emptyTextValue = computed(() => {
320
- const key = this.emptyTextKey();
321
- if (key) {
322
- return this.translateService.translate(key);
323
- }
324
- const text = this.emptyText();
325
- if (text) {
326
- return text;
327
- }
328
- return this.translateService.translate('solaris.multiSelect.empty');
329
- }, ...(ngDevMode ? [{ debugName: "emptyTextValue" }] : /* istanbul ignore next */ []));
330
- noResultsTextValue = computed(() => {
331
- const key = this.noResultsTextKey();
332
- if (key) {
333
- return this.translateService.translate(key);
334
- }
335
- const text = this.noResultsText();
336
- if (text) {
337
- return text;
338
- }
339
- return this.translateService.translate('solaris.multiSelect.noResults');
340
- }, ...(ngDevMode ? [{ debugName: "noResultsTextValue" }] : /* istanbul ignore next */ []));
341
- clearAriaLabel = computed(() => {
342
- const key = this.clearLabelKey();
343
- if (key) {
344
- return this.translateService.translate(key);
345
- }
346
- const text = this.clearLabel();
347
- if (text) {
348
- return text;
349
- }
350
- return this.translateService.translate('solaris.multiSelect.clear');
351
- }, ...(ngDevMode ? [{ debugName: "clearAriaLabel" }] : /* istanbul ignore next */ []));
352
- selectAllLabelText = computed(() => {
353
- const key = this.selectAllLabelKey();
354
- if (key) {
355
- return this.translateService.translate(key);
356
- }
357
- const text = this.selectAllLabel();
358
- if (text) {
359
- return text;
360
- }
361
- return this.translateService.translate('solaris.multiSelect.selectAll');
362
- }, ...(ngDevMode ? [{ debugName: "selectAllLabelText" }] : /* istanbul ignore next */ []));
363
- removeChipAriaLabel = computed(() => {
364
- const key = this.removeChipLabelKey();
365
- if (key) {
366
- return this.translateService.translate(key);
367
- }
368
- const text = this.removeChipLabel();
369
- if (text) {
370
- return text;
371
- }
372
- return this.translateService.translate('solaris.multiSelect.removeChip');
373
- }, ...(ngDevMode ? [{ debugName: "removeChipAriaLabel" }] : /* istanbul ignore next */ []));
374
- ariaLabelText = computed(() => {
375
- const key = this.ariaLabelKey();
376
- if (key) {
377
- return this.translateService.translate(key);
378
- }
379
- return this.ariaLabel();
380
- }, ...(ngDevMode ? [{ debugName: "ariaLabelText" }] : /* istanbul ignore next */ []));
381
- ariaLabelledbyText = computed(() => {
382
- return this.ariaLabelledby();
383
- }, ...(ngDevMode ? [{ debugName: "ariaLabelledbyText" }] : /* istanbul ignore next */ []));
384
- labelText = computed(() => {
385
- const key = this.labelKey();
386
- if (key) {
387
- return this.translateService.translate(key) || this.label() || '';
388
- }
389
- return this.label() ?? '';
390
- }, ...(ngDevMode ? [{ debugName: "labelText" }] : /* istanbul ignore next */ []));
391
- hintText = computed(() => {
392
- const key = this.hintKey();
393
- if (key) {
394
- return this.translateService.translate(key) || this.hint() || '';
395
- }
396
- return this.hint() ?? '';
397
- }, ...(ngDevMode ? [{ debugName: "hintText" }] : /* istanbul ignore next */ []));
398
- errorText = computed(() => {
399
- const key = this.errorKey();
400
- if (key) {
401
- return this.translateService.translate(key) || this.error() || '';
402
- }
403
- return this.error() ?? '';
404
- }, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
405
- activeDescendantId = computed(() => {
406
- if (!this.panelOpen())
407
- return null;
408
- const idx = this.activeOptionIndex();
409
- const opts = this.visibleOptions();
410
- if (idx >= 0 && idx < opts.length) {
411
- return opts[idx].elementId();
412
- }
413
- return null;
414
- }, ...(ngDevMode ? [{ debugName: "activeDescendantId" }] : /* istanbul ignore next */ []));
415
- _describedByIds = signal([], ...(ngDevMode ? [{ debugName: "_describedByIds" }] : /* istanbul ignore next */ []));
416
- ariaDescribedBy = computed(() => {
417
- const ids = this._describedByIds();
418
- return ids.length > 0 ? ids.join(' ') : null;
419
- }, ...(ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
420
- visibleOptions = computed(() => {
421
- const opts = this.options;
422
- if (!opts)
423
- return [];
424
- if (!this.panelOpen())
425
- return [];
426
- const query = this.searchQuery().toLowerCase().trim();
427
- if (!query)
428
- return opts.toArray();
429
- return opts.toArray().filter((opt) => {
430
- if (opt.isEffectivelyDisabled())
431
- return false;
432
- return this.optionMatchesSearch(opt, query);
433
- });
434
- }, ...(ngDevMode ? [{ debugName: "visibleOptions" }] : /* istanbul ignore next */ []));
435
- showNoResults = computed(() => {
436
- return (this.searchQuery().trim().length > 0 &&
437
- this.visibleOptions().length === 0 &&
438
- !this.loading());
439
- }, ...(ngDevMode ? [{ debugName: "showNoResults" }] : /* istanbul ignore next */ []));
440
- showEmpty = computed(() => {
441
- const opts = this.options;
442
- return ((!opts || opts.length === 0) &&
443
- !this.loading() &&
444
- this.searchQuery().trim().length === 0);
445
- }, ...(ngDevMode ? [{ debugName: "showEmpty" }] : /* istanbul ignore next */ []));
446
- allSelectedCount = computed(() => {
447
- const value = this.internalValue();
448
- const comp = this.compareWith();
449
- const opts = this.selectableOptions();
450
- return opts.filter((opt) => value.some((v) => comp(opt.value(), v))).length;
451
- }, ...(ngDevMode ? [{ debugName: "allSelectedCount" }] : /* istanbul ignore next */ []));
452
- selectableOptions = computed(() => {
453
- const opts = this.options;
454
- if (!opts)
455
- return [];
456
- const query = this.searchQuery().trim();
457
- let filtered;
458
- if (query) {
459
- filtered = opts
460
- .toArray()
461
- .filter((o) => !o.isEffectivelyDisabled() && this.optionMatchesSearch(o, query));
462
- }
463
- else {
464
- filtered = opts.toArray().filter((o) => !o.isEffectivelyDisabled());
465
- }
466
- return filtered;
467
- }, ...(ngDevMode ? [{ debugName: "selectableOptions" }] : /* istanbul ignore next */ []));
468
- isAllSelected = computed(() => {
469
- const selectable = this.selectableOptions();
470
- if (selectable.length === 0)
471
- return false;
472
- return this.allSelectedCount() === selectable.length;
473
- }, ...(ngDevMode ? [{ debugName: "isAllSelected" }] : /* istanbul ignore next */ []));
474
- isPartialSelected = computed(() => {
475
- const selectable = this.selectableOptions();
476
- if (selectable.length === 0)
477
- return false;
478
- return (this.allSelectedCount() > 0 && this.allSelectedCount() < selectable.length);
479
- }, ...(ngDevMode ? [{ debugName: "isPartialSelected" }] : /* istanbul ignore next */ []));
480
- get id() {
481
- return this.elementId();
482
- }
483
- get focused() {
484
- return this.internalFocused();
485
- }
486
- get disabled() {
487
- return this.isEffectivelyDisabled();
488
- }
489
- get readonly() {
490
- return this.isEffectivelyReadonly();
491
- }
492
- get invalid() {
493
- return this.isEffectivelyInvalid();
494
- }
495
- get required() {
496
- return this.requiredInput();
497
- }
498
- get describedByIds() {
499
- return this._describedByIds();
500
- }
501
- setDescribedByIds(ids) {
502
- this._describedByIds.set([...ids]);
503
- }
504
- focus() {
505
- // SECURITY_EXCEPTION: nativeElement.focus() required to programmatically focus the multi-select trigger. Standard DOM method used by Angular CDK.
506
- if (this.triggerElement) {
507
- this.triggerElement.nativeElement.focus();
508
- }
509
- else {
510
- // SECURITY_EXCEPTION: nativeElement.focus() required as fallback when no triggerElement ref. Standard DOM method.
511
- this.elementRef.nativeElement.focus();
512
- }
513
- }
514
- writeValue(safe) {
515
- const arr = normalizeArray(safe);
516
- this.internalValue.set([...arr]);
517
- }
518
- registerOnChange(fn) {
519
- this.onChange = fn;
520
- }
521
- registerOnTouched(fn) {
522
- this.onTouched = fn;
523
- }
524
- setDisabledState(isDisabled) {
525
- this.internalDisabled.set(isDisabled);
526
- }
527
- constructor() {
528
- super();
529
- effect(() => {
530
- if (!this.optionsInitialized())
531
- return;
532
- this.internalValue();
533
- this.setOptionsSelectedState();
534
- });
535
- this.destroyRef.onDestroy(() => {
536
- this.optionsSubscription?.();
537
- this.optionInteractionSubscriptions.forEach((fn) => fn());
538
- this.popoverSubscriptions.forEach((fn) => fn());
539
- this.resizeObserver?.disconnect();
540
- this.resizeObserver = null;
541
- });
542
- }
543
- ngAfterContentInit() {
544
- this.optionsInitialized.set(true);
545
- this.setOptionsMultiSelectMode();
546
- this.setOptionsSelectedState();
547
- this.setOptionGroupDisabledState();
548
- this.syncActiveStates();
549
- this.syncVisibility();
550
- this.subscribeToOptionInteractions();
551
- const optionsSub = this.options.changes.subscribe(() => {
552
- this.setOptionsMultiSelectMode();
553
- this.setOptionsSelectedState();
554
- this.setOptionGroupDisabledState();
555
- this.syncVisibility();
556
- this.subscribeToOptionInteractions();
557
- });
558
- this.optionsSubscription = () => optionsSub.unsubscribe();
559
- if (isDevMode() && this.parentFormField) {
560
- console.warn('SolarisMultiSelectComponent already includes SolarisFormField internally. ' +
561
- 'Do not wrap it with <solaris-form-field>; pass label, hint, error, prefix and suffix directly to <solaris-multi-select>.');
562
- }
563
- }
564
- ngAfterViewInit() {
565
- if (this.popoverTrigger) {
566
- const openedSub = this.popoverTrigger.solarisPopoverOpened.subscribe(() => {
567
- this.onPanelOpened();
568
- });
569
- const closedSub = this.popoverTrigger.solarisPopoverClosed.subscribe(() => {
570
- this.onPanelClosed();
571
- });
572
- this.popoverSubscriptions.push(() => openedSub.unsubscribe(), () => closedSub.unsubscribe());
573
- }
574
- this.setupResizeObserver();
575
- }
576
- setupResizeObserver() {
577
- // SECURITY_EXCEPTION: nativeElement access needed to measure trigger content width for auto display mode. ResizeObserver is SSR-safe (guarded by typeof check). offsetWidth is read-only, no XSS risk.
578
- const el = this.triggerContentRef?.nativeElement;
579
- if (!el)
580
- return;
581
- this.triggerWidth.set(el.offsetWidth);
582
- if (typeof ResizeObserver !== 'undefined') {
583
- this.resizeObserver?.disconnect();
584
- this.resizeObserver = new ResizeObserver((entries) => {
585
- for (const entry of entries) {
586
- this.triggerWidth.set(entry.contentRect.width);
587
- }
588
- });
589
- this.resizeObserver.observe(el);
590
- }
591
- }
592
- onPanelOpened() {
593
- this.searchQuery.set('');
594
- this.panelOpen.set(true);
595
- this.setOptionsSelectedState();
596
- this.syncActiveStates();
597
- this.syncVisibility();
598
- this.opened.emit();
599
- this.openChange.emit(true);
600
- this.setConnectedSide('bottom');
601
- if (this.searchable()) {
602
- requestAnimationFrame(() => {
603
- // SECURITY_EXCEPTION: nativeElement.focus() required to focus search input when panel opens. Standard DOM method.
604
- this.searchInputRef?.nativeElement.focus();
605
- });
606
- }
607
- }
608
- onPanelClosed() {
609
- this.panelOpen.set(false);
610
- this.searchQuery.set('');
611
- this.syncVisibility();
612
- this.closed.emit();
613
- this.openChange.emit(false);
614
- this.markAsTouched();
615
- this.clearConnectedSide();
616
- }
617
- setConnectedSide(side) {
618
- // SECURITY_EXCEPTION: nativeElement required to access form-field DOM for connected-side sync. ElementRef SSR-safe.
619
- const el = this.formFieldElement?.nativeElement;
620
- if (el) {
621
- // SECURITY_EXCEPTION: nativeElement.querySelector required to find control-wrapper for connected-side sync.
622
- const wrapper = el.querySelector('.solaris-form-field__control-wrapper');
623
- if (wrapper) {
624
- wrapper.dataset['connectedSide'] = side;
625
- }
626
- }
627
- }
628
- clearConnectedSide() {
629
- // SECURITY_EXCEPTION: nativeElement required to access form-field DOM for connected-side cleanup. ElementRef SSR-safe.
630
- const el = this.formFieldElement?.nativeElement;
631
- if (el) {
632
- const wrapper = el.querySelector('.solaris-form-field__control-wrapper');
633
- if (wrapper) {
634
- delete wrapper.dataset['connectedSide'];
635
- }
636
- }
637
- }
638
- toggleOption(option) {
639
- if (option.isEffectivelyDisabled())
640
- return;
641
- const value = this.internalValue();
642
- const optValue = option.value();
643
- const comp = this.compareWith();
644
- const idx = value.findIndex((v) => comp(v, optValue));
645
- let newValue;
646
- if (idx >= 0) {
647
- newValue = [...value.slice(0, idx), ...value.slice(idx + 1)];
648
- }
649
- else {
650
- newValue = [...value, optValue];
651
- }
652
- this.internalValue.set(newValue);
653
- this.onChange(newValue);
654
- this.valueChange.emit(newValue);
655
- this.selectionChange.emit(option);
656
- this.setOptionsSelectedState();
657
- if (this.searchable() && this.panelOpen()) {
658
- requestAnimationFrame(() => {
659
- // SECURITY_EXCEPTION: nativeElement.focus() required to restore focus to search input after selection. ElementRef SSR-safe.
660
- this.searchInputRef?.nativeElement.focus();
661
- });
662
- }
663
- }
664
- clearValue() {
665
- this.internalValue.set([]);
666
- this.onChange([]);
667
- this.valueChange.emit([]);
668
- this.selectionChange.emit(undefined);
669
- this.cleared.emit();
670
- this.setOptionsSelectedState();
671
- this.markAsTouched();
672
- }
673
- handleSelectAll() {
674
- if (this.isEffectivelyReadonly() || this.isEffectivelyDisabled())
675
- return;
676
- const selectable = this.selectableOptions();
677
- if (selectable.length === 0)
678
- return;
679
- const value = this.internalValue();
680
- const comp = this.compareWith();
681
- if (this.isAllSelected()) {
682
- const selectableValues = new Set(selectable.map((o) => o.value()));
683
- const newValue = value.filter((v) => {
684
- for (const sv of selectableValues) {
685
- if (comp(v, sv))
686
- return false;
687
- }
688
- return true;
689
- });
690
- this.internalValue.set(newValue);
691
- this.onChange(newValue);
692
- this.valueChange.emit(newValue);
693
- }
694
- else {
695
- const existingValues = new Set(value);
696
- const newValues = [...value];
697
- selectable.forEach((opt) => {
698
- const ov = opt.value();
699
- let found = false;
700
- for (const ev of existingValues) {
701
- if (comp(ev, ov)) {
702
- found = true;
703
- break;
704
- }
705
- }
706
- if (!found) {
707
- newValues.push(ov);
708
- }
709
- });
710
- this.internalValue.set(newValues);
711
- this.onChange(newValues);
712
- this.valueChange.emit(newValues);
713
- }
714
- this.setOptionsSelectedState();
715
- }
716
- removeChip(option, event) {
717
- event.stopPropagation();
718
- this.toggleOption(option);
719
- }
720
- onTriggerKeydown(event) {
721
- if (!this.canOpen()) {
722
- event.preventDefault();
723
- return;
724
- }
725
- if (this.maybeClosePanel(event))
726
- return;
727
- if (this.maybeNavigateToBound(event))
728
- return;
729
- switch (event.key) {
730
- case 'Enter':
731
- case ' ':
732
- event.preventDefault();
733
- this.handleToggleOpen();
734
- break;
735
- case 'ArrowDown':
736
- event.preventDefault();
737
- this.handleArrow(1);
738
- break;
739
- case 'ArrowUp':
740
- event.preventDefault();
741
- this.handleArrow(-1);
742
- break;
743
- }
744
- }
745
- handleToggleOpen() {
746
- if (this.panelOpen()) {
747
- this.selectActiveOption();
748
- }
749
- else {
750
- this.popoverTrigger?.open();
751
- }
752
- }
753
- handleArrow(direction) {
754
- if (this.panelOpen()) {
755
- this.focusNextOption(direction);
756
- }
757
- else {
758
- this.popoverTrigger?.open();
759
- requestAnimationFrame(() => this.focusNextOption(direction));
760
- }
761
- }
762
- maybeClosePanel(event) {
763
- if (!this.panelOpen())
764
- return false;
765
- if (event.key === 'Escape') {
766
- event.preventDefault();
767
- this.popoverTrigger?.close();
768
- return true;
769
- }
770
- if (event.key === 'Tab') {
771
- this.popoverTrigger?.close();
772
- return true;
773
- }
774
- return false;
775
- }
776
- maybeNavigateToBound(event) {
777
- if (!this.panelOpen())
778
- return false;
779
- if (event.key === 'Home') {
780
- event.preventDefault();
781
- this.activeOptionIndex.set(this.getFirstEnabledOptionIndex());
782
- this.syncActiveStates();
783
- return true;
784
- }
785
- if (event.key === 'End') {
786
- event.preventDefault();
787
- this.activeOptionIndex.set(this.getLastEnabledOptionIndex());
788
- this.syncActiveStates();
789
- return true;
790
- }
791
- return false;
792
- }
793
- onSearchInput(event) {
794
- const target = event.target;
795
- const value = target.value;
796
- this.searchQuery.set(value);
797
- this.searchChange.emit(value);
798
- this.activeOptionIndex.set(-1);
799
- this.syncActiveStates();
800
- this.syncVisibility();
801
- }
802
- onSearchKeydown(event) {
803
- switch (event.key) {
804
- case 'ArrowDown':
805
- event.preventDefault();
806
- event.stopPropagation();
807
- this.focusNextOption(1);
808
- break;
809
- case 'ArrowUp':
810
- event.preventDefault();
811
- event.stopPropagation();
812
- this.focusNextOption(-1);
813
- break;
814
- case 'Enter':
815
- event.preventDefault();
816
- event.stopPropagation();
817
- this.selectActiveOption();
818
- break;
819
- case 'Escape':
820
- event.preventDefault();
821
- event.stopPropagation();
822
- if (this.searchQuery()) {
823
- this.searchQuery.set('');
824
- this.searchChange.emit('');
825
- this.syncVisibility();
826
- this.syncActiveStates();
827
- }
828
- else {
829
- this.popoverTrigger?.close();
830
- }
831
- break;
832
- case 'Tab':
833
- this.popoverTrigger?.close();
834
- break;
835
- case 'Backspace':
836
- if (!this.searchQuery() &&
837
- !this.isEffectivelyDisabled() &&
838
- !this.isEffectivelyReadonly()) {
839
- event.preventDefault();
840
- const selected = this.selectedOptions();
841
- if (selected.length > 0) {
842
- this.toggleOption(selected[selected.length - 1]);
843
- }
844
- }
845
- break;
846
- }
847
- }
848
- onPanelClick(event) {
849
- event.stopPropagation();
850
- }
851
- onPanelKeydown(event) {
852
- event.stopPropagation();
853
- switch (event.key) {
854
- case 'ArrowDown':
855
- event.preventDefault();
856
- this.focusNextOption(1);
857
- break;
858
- case 'ArrowUp':
859
- event.preventDefault();
860
- this.focusNextOption(-1);
861
- break;
862
- case 'Enter':
863
- case ' ':
864
- event.preventDefault();
865
- this.selectActiveOption();
866
- break;
867
- case 'Escape':
868
- event.preventDefault();
869
- this.popoverTrigger?.close();
870
- break;
871
- case 'Home':
872
- event.preventDefault();
873
- this.activeOptionIndex.set(this.getFirstEnabledOptionIndex());
874
- break;
875
- case 'End':
876
- event.preventDefault();
877
- this.activeOptionIndex.set(this.getLastEnabledOptionIndex());
878
- break;
879
- }
880
- }
881
- onTriggerFocus() {
882
- this.internalFocused.set(true);
883
- }
884
- onTriggerBlur() {
885
- this.internalFocused.set(false);
886
- }
887
- subscribeToOptionInteractions() {
888
- this.optionInteractionSubscriptions.forEach((fn) => fn());
889
- this.optionInteractionSubscriptions = [];
890
- this.options.forEach((opt) => {
891
- const sub = opt.optionInteraction.subscribe(({ option }) => {
892
- this.toggleOption(option);
893
- });
894
- this.optionInteractionSubscriptions.push(() => sub.unsubscribe());
895
- });
896
- }
897
- setOptionsMultiSelectMode() {
898
- this.options.forEach((opt) => {
899
- opt.setSelectionMode('multiple');
900
- opt.setShowSelectionIndicator(true);
901
- });
902
- }
903
- setOptionsSelectedState() {
904
- const value = this.internalValue();
905
- const comp = this.compareWith();
906
- this.options.forEach((opt) => {
907
- const isSelected = value.some((v) => comp(opt.value(), v));
908
- opt.setSelected(isSelected);
909
- });
910
- }
911
- setOptionGroupDisabledState() {
912
- this.optionGroups.forEach((group) => {
913
- group.options.forEach((opt) => {
914
- opt.setGroupDisabledState(group.isEffectivelyDisabled());
915
- });
916
- });
917
- }
918
- syncActiveStates() {
919
- const idx = this.activeOptionIndex();
920
- const opts = this.visibleOptions();
921
- this.options.forEach((opt) => opt.setActive(false));
922
- if (idx >= 0 && idx < opts.length) {
923
- opts[idx].setActive(true);
924
- }
925
- }
926
- syncVisibility() {
927
- const query = this.searchQuery().trim();
928
- if (!query) {
929
- this.options.forEach((o) => o.setHidden(false));
930
- this.optionGroups.forEach((g) => g.setHidden(false));
931
- return;
932
- }
933
- const visible = new Set(this.visibleOptions());
934
- this.options.forEach((o) => o.setHidden(!visible.has(o)));
935
- this.optionGroups.forEach((g) => {
936
- const anyVisible = g.options.some((o) => visible.has(o));
937
- g.setHidden(!anyVisible);
938
- });
939
- }
940
- getOptionDisplayLabel(option) {
941
- const dw = this.displayWith();
942
- if (dw) {
943
- const result = dw(option.value());
944
- if (result !== undefined)
945
- return result;
946
- }
947
- const label = option.labelText();
948
- if (label)
949
- return label;
950
- const native = this.getOptionNativeText(option);
951
- if (native)
952
- return native;
953
- return '';
954
- }
955
- getOptionNativeText(option) {
956
- const nativeEl = option.elementRef;
957
- // SECURITY_EXCEPTION: nativeElement access needed to read option text for search filtering. Read-only, SSR-safe.
958
- if (nativeEl?.nativeElement) {
959
- // SECURITY_EXCEPTION: nativeElement.textContent needed to read option text for search filtering. Read-only, SSR-safe.
960
- return nativeEl.nativeElement.textContent?.trim() || '';
961
- }
962
- return '';
963
- }
964
- optionMatchesSearch(option, query) {
965
- const label = (option.labelText() || '').toLowerCase();
966
- const desc = (option.descriptionText() || '').toLowerCase();
967
- const native = this.getOptionNativeText(option).toLowerCase();
968
- const normalizedQuery = query
969
- .normalize('NFD')
970
- .replace(/[\u0300-\u036f]/g, '');
971
- const normalizedLabel = label
972
- .normalize('NFD')
973
- .replace(/[\u0300-\u036f]/g, '');
974
- const normalizedDesc = desc
975
- .normalize('NFD')
976
- .replace(/[\u0300-\u036f]/g, '');
977
- const normalizedNative = native
978
- .normalize('NFD')
979
- .replace(/[\u0300-\u036f]/g, '');
980
- return (normalizedLabel.includes(normalizedQuery) ||
981
- normalizedDesc.includes(normalizedQuery) ||
982
- normalizedNative.includes(normalizedQuery));
983
- }
984
- markAsTouched() {
985
- if (!this.touched()) {
986
- this.touched.set(true);
987
- this.onTouched();
988
- }
989
- }
990
- selectActiveOption() {
991
- const idx = this.activeOptionIndex();
992
- const opts = this.visibleOptions();
993
- if (idx >= 0 && idx < opts.length) {
994
- this.toggleOption(opts[idx]);
995
- }
996
- }
997
- focusNextOption(direction) {
998
- const opts = this.visibleOptions();
999
- if (opts.length === 0)
1000
- return;
1001
- let current = this.activeOptionIndex();
1002
- if (current < 0 || current >= opts.length) {
1003
- current = direction === 1 ? -1 : opts.length;
1004
- }
1005
- let next = current + direction;
1006
- while (next >= 0 && next < opts.length) {
1007
- if (!opts[next].isEffectivelyDisabled()) {
1008
- this.activeOptionIndex.set(next);
1009
- this.syncActiveStates();
1010
- return;
1011
- }
1012
- next += direction;
1013
- }
1014
- if (direction === 1 && next >= opts.length) {
1015
- this.activeOptionIndex.set(this.getFirstEnabledOptionIndex());
1016
- this.syncActiveStates();
1017
- }
1018
- else if (direction === -1 && next < 0) {
1019
- this.activeOptionIndex.set(this.getLastEnabledOptionIndex());
1020
- this.syncActiveStates();
1021
- }
1022
- }
1023
- getFirstEnabledOptionIndex() {
1024
- const opts = this.visibleOptions();
1025
- for (let i = 0; i < opts.length; i++) {
1026
- if (!opts[i].isEffectivelyDisabled())
1027
- return i;
1028
- }
1029
- return -1;
1030
- }
1031
- getLastEnabledOptionIndex() {
1032
- const opts = this.visibleOptions();
1033
- for (let i = opts.length - 1; i >= 0; i--) {
1034
- if (!opts[i].isEffectivelyDisabled())
1035
- return i;
1036
- }
1037
- return -1;
1038
- }
1039
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisMultiSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1040
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisMultiSelectComponent, isStandalone: true, selector: "solaris-multi-select", inputs: { hint: { classPropertyName: "hint", publicName: "hint", 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 }, 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 }, 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 }, removeChipLabel: { classPropertyName: "removeChipLabel", publicName: "removeChipLabel", isSignal: true, isRequired: false, transformFunction: null }, removeChipLabelKey: { classPropertyName: "removeChipLabelKey", publicName: "removeChipLabelKey", isSignal: true, isRequired: false, transformFunction: null }, noResultsText: { classPropertyName: "noResultsText", publicName: "noResultsText", isSignal: true, isRequired: false, transformFunction: null }, noResultsTextKey: { classPropertyName: "noResultsTextKey", publicName: "noResultsTextKey", 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 }, icon: { classPropertyName: "icon", publicName: "icon", 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 }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null }, selectAllLabel: { classPropertyName: "selectAllLabel", publicName: "selectAllLabel", isSignal: true, isRequired: false, transformFunction: null }, selectAllLabelKey: { classPropertyName: "selectAllLabelKey", publicName: "selectAllLabelKey", isSignal: true, isRequired: false, transformFunction: null }, displayMode: { classPropertyName: "displayMode", publicName: "displayMode", isSignal: true, isRequired: false, transformFunction: null }, maxVisibleChips: { classPropertyName: "maxVisibleChips", publicName: "maxVisibleChips", isSignal: true, isRequired: false, transformFunction: null }, selectedCountLabel: { classPropertyName: "selectedCountLabel", publicName: "selectedCountLabel", isSignal: true, isRequired: false, transformFunction: null }, selectedCountLabelKey: { classPropertyName: "selectedCountLabelKey", publicName: "selectedCountLabelKey", isSignal: true, isRequired: false, transformFunction: null }, overflowLabel: { classPropertyName: "overflowLabel", publicName: "overflowLabel", isSignal: true, isRequired: false, transformFunction: null }, overflowLabelKey: { classPropertyName: "overflowLabelKey", publicName: "overflowLabelKey", isSignal: true, isRequired: false, transformFunction: null }, minSelected: { classPropertyName: "minSelected", publicName: "minSelected", isSignal: true, isRequired: false, transformFunction: null }, maxSelected: { classPropertyName: "maxSelected", publicName: "maxSelected", isSignal: true, isRequired: false, transformFunction: null }, showSelectionTooltip: { classPropertyName: "showSelectionTooltip", publicName: "showSelectionTooltip", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed", cleared: "cleared", openChange: "openChange", searchChange: "searchChange", valueChange: "valueChange", selectionChange: "selectionChange" }, host: { attributes: { "solaris-multi-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: [
1041
- {
1042
- provide: NG_VALUE_ACCESSOR,
1043
- useExisting: forwardRef(() => SolarisMultiSelectComponent),
1044
- multi: true,
1045
- },
1046
- {
1047
- provide: SolarisFormControl,
1048
- useExisting: forwardRef(() => SolarisMultiSelectComponent),
1049
- },
1050
- ], 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 }, { propertyName: "triggerContentRef", first: true, predicate: ["triggerContent"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<solaris-form-field\n #formFieldRef\n [control]=\"this\"\n [label]=\"labelText()\"\n [hint]=\"hintText()\"\n [error]=\"errorText()\"\n [appearance]=\"appearance()\"\n [size]=\"size()\"\n [density]=\"effectiveDensity()\"\n [radius]=\"radius()\"\n [invalid]=\"isEffectivelyInvalid()\"\n [required]=\"requiredInput()\"\n solaris-popover-trigger\n [solarisPopoverDisabled]=\"!canOpen()\"\n [solarisPopoverTriggerFor]=\"matchWidthPopover\"\n [class.solaris-multi-select--panel-open]=\"panelOpen()\"\n [solarisPopoverMatchTriggerWidth]=\"panelMatchTriggerWidth()\"\n [solarisPopoverAppearance]=\"popoverAppearance()\"\n [solarisPopoverPlacement]=\"'bottom'\"\n [solarisPopoverAlign]=\"'start'\"\n [solarisPopoverOffset]=\"0\"\n [solarisPopoverPadding]=\"'none'\"\n [solarisPopoverRadius]=\"radius()\"\n [solarisPopoverTopConnected]=\"true\"\n [solarisPopoverMinWidth]=\"panelMinWidth()\"\n [solarisPopoverMaxWidth]=\"panelMaxWidth()\"\n [solarisPopoverScrollStrategy]=\"'reposition'\"\n [solarisPopoverCloseOnEscape]=\"false\"\n [solarisPopoverAriaHasPopup]=\"'listbox'\"\n>\n @if (icon(); as iconName) {\n <solaris-icon solaris-form-prefix [name]=\"iconName\" [decorative]=\"true\" />\n }\n <ng-content select=\"[solaris-form-prefix]\" />\n\n <div\n #triggerEl\n class=\"solaris-multi-select__trigger\"\n [id]=\"elementId() + '--trigger'\"\n solaris-form-field-trigger\n role=\"combobox\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"panelOpen() ? 'true' : 'false'\"\n [attr.aria-controls]=\"panelOpen() ? panelId : null\"\n [attr.aria-haspopup]=\"'listbox'\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [attr.aria-labelledby]=\"ariaLabelledbyText() ?? null\"\n [attr.aria-describedby]=\"ariaDescribedBy() ?? null\"\n (keydown)=\"onTriggerKeydown($event)\"\n (focus)=\"onTriggerFocus()\"\n (blur)=\"onTriggerBlur()\"\n >\n <div class=\"solaris-multi-select__trigger-content\" #triggerContent>\n @if (displayMode() === 'auto') {\n @if (hasValue()) {\n @if (showCountOnly()) {\n <span\n class=\"solaris-multi-select__chip\"\n [solarisTooltip]=\"countTooltipText()\"\n [solarisTooltipTrigger]=\"'hover'\"\n tabindex=\"0\"\n >\n <span class=\"solaris-multi-select__chip-label\">{{\n summaryText()\n }}</span>\n </span>\n } @else {\n <div\n class=\"solaris-multi-select__chips solaris-multi-select__chips--auto\"\n >\n @for (opt of autoVisibleChips(); track opt) {\n <span class=\"solaris-multi-select__chip\" role=\"listitem\">\n <span class=\"solaris-multi-select__chip-label\">{{\n getOptionDisplayLabel(opt)\n }}</span>\n @if (!isEffectivelyDisabled() && !isEffectivelyReadonly()) {\n <button\n type=\"button\"\n class=\"solaris-multi-select__chip-remove\"\n [attr.aria-label]=\"removeChipAriaLabel()\"\n (click)=\"removeChip(opt, $event)\"\n tabindex=\"-1\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n </span>\n }\n @if (autoShowOverflow()) {\n <span\n class=\"solaris-multi-select__chip-overflow\"\n [solarisTooltip]=\"autoOverflowTooltipText()\"\n [solarisTooltipTrigger]=\"'hover'\"\n tabindex=\"0\"\n [attr.aria-label]=\"\n '+ ' +\n autoOverflowCount() +\n ' ' +\n selectedLabels().join(', ')\n \"\n >+{{ autoOverflowCount() }}</span\n >\n }\n </div>\n }\n }\n @if (searchable() && panelOpen()) {\n <input\n #searchInput\n type=\"text\"\n class=\"solaris-multi-select__search-input\"\n [attr.placeholder]=\"searchPlaceholderText()\"\n [value]=\"searchQuery()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onSearchKeydown($event)\"\n (click)=\"$event.stopPropagation()\"\n role=\"searchbox\"\n autocomplete=\"off\"\n />\n }\n @if (!hasValue() && !(searchable() && panelOpen())) {\n <span class=\"solaris-multi-select__value\">\n <span class=\"solaris-multi-select__placeholder\">{{\n placeholderText()\n }}</span>\n </span>\n }\n } @else {\n @if (searchable() && panelOpen()) {\n <input\n #searchInput\n type=\"text\"\n class=\"solaris-multi-select__search-input\"\n [attr.placeholder]=\"searchPlaceholderText()\"\n [value]=\"searchQuery()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onSearchKeydown($event)\"\n (click)=\"$event.stopPropagation()\"\n role=\"searchbox\"\n autocomplete=\"off\"\n />\n } @else {\n @if (hasValue()) {\n @if (displayMode() === 'chips') {\n <div class=\"solaris-multi-select__chips\">\n @for (\n opt of selectedOptions().slice(0, maxVisibleChips());\n track opt\n ) {\n <span class=\"solaris-multi-select__chip\" role=\"listitem\">\n <span class=\"solaris-multi-select__chip-label\">{{\n getOptionDisplayLabel(opt)\n }}</span>\n @if (!isEffectivelyDisabled() && !isEffectivelyReadonly()) {\n <button\n type=\"button\"\n class=\"solaris-multi-select__chip-remove\"\n [attr.aria-label]=\"removeChipAriaLabel()\"\n (click)=\"removeChip(opt, $event)\"\n tabindex=\"-1\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n </span>\n }\n @if (overflowCount() > 0) {\n <span\n class=\"solaris-multi-select__chip-overflow\"\n [attr.aria-label]=\"\n '+ ' + overflowCount() + ' ' + selectedLabels().join(', ')\n \"\n >\n {{ overflowText() }}\n </span>\n }\n </div>\n } @else if (displayMode() === 'comma') {\n <span class=\"solaris-multi-select__value\">\n <span class=\"solaris-multi-select__value-text\">{{\n commaText()\n }}</span>\n </span>\n } @else {\n <span\n class=\"solaris-multi-select__chip\"\n [solarisTooltip]=\"countTooltipText()\"\n [solarisTooltipTrigger]=\"'hover'\"\n tabindex=\"0\"\n >\n <span class=\"solaris-multi-select__chip-label\">{{\n summaryText()\n }}</span>\n </span>\n }\n } @else {\n <span class=\"solaris-multi-select__value\">\n <span class=\"solaris-multi-select__placeholder\">{{\n placeholderText()\n }}</span>\n </span>\n }\n }\n }\n </div>\n\n <span class=\"solaris-multi-select__actions\">\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"solaris-multi-select__clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"clearValue(); $event.stopPropagation()\"\n tabindex=\"-1\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n\n <solaris-icon\n class=\"solaris-multi-select__dropdown-icon\"\n name=\"chevron-down\"\n [decorative]=\"true\"\n size=\"sm\"\n />\n </span>\n </div>\n\n <ng-content select=\"[solaris-form-suffix]\" />\n</solaris-form-field>\n\n<ng-template #matchWidthPopover=\"solarisPopover\" solaris-popover>\n <div\n class=\"solaris-multi-select__panel\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"'true'\"\n [attr.id]=\"panelId\"\n tabindex=\"-1\"\n (click)=\"onPanelClick($event)\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n @if (selectAll() && !loading()) {\n <div\n class=\"solaris-multi-select__select-all\"\n role=\"option\"\n aria-selected=\"false\"\n tabindex=\"-1\"\n (click)=\"handleSelectAll()\"\n (keydown.enter)=\"handleSelectAll()\"\n (keydown.space)=\"handleSelectAll(); $event.preventDefault()\"\n [class.solaris-multi-select__select-all--readonly]=\"\n isEffectivelyReadonly()\n \"\n >\n <span\n class=\"solaris-multi-select__select-all-checkbox\"\n [class.solaris-multi-select__select-all-checkbox--checked]=\"\n isAllSelected()\n \"\n [class.solaris-multi-select__select-all-checkbox--partial]=\"\n isPartialSelected()\n \"\n >\n @if (isAllSelected()) {\n <span class=\"solaris-multi-select__select-all-checkbox-icon\">\n <solaris-icon name=\"check\" [decorative]=\"true\" />\n </span>\n } @else if (isPartialSelected()) {\n <span class=\"solaris-multi-select__select-all-checkbox-icon\">\n <solaris-icon name=\"minus\" [decorative]=\"true\" />\n </span>\n }\n </span>\n <span class=\"solaris-multi-select__select-all-label\">{{\n selectAllLabelText()\n }}</span>\n </div>\n }\n\n @if (loading()) {\n <div class=\"solaris-multi-select__loading\">\n <span class=\"solaris-multi-select__loading-text\">{{\n loadingTextValue()\n }}</span>\n </div>\n } @else if (showNoResults()) {\n <div class=\"solaris-multi-select__no-results\">\n <span class=\"solaris-multi-select__no-results-text\">{{\n noResultsTextValue()\n }}</span>\n </div>\n } @else if (showEmpty()) {\n <div class=\"solaris-multi-select__empty\">\n <span class=\"solaris-multi-select__empty-text\">{{\n emptyTextValue()\n }}</span>\n </div>\n } @else {\n <div\n class=\"solaris-multi-select__options\"\n [style.max-height]=\"panelMaxHeight()\"\n >\n <ng-content select=\"solaris-option, solaris-option-group\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: [":host{--solaris-multi-select-chip-gap: var(--solaris-spacing-1);--solaris-multi-select-chip-radius: var(--solaris-radius-sm);--solaris-multi-select-icon-color: var(--solaris-text-muted);--solaris-multi-select-font-size: var(--solaris-font-size-md);--solaris-multi-select-chip-color: var(--solaris-text-default);--solaris-multi-select-value-color: var(--solaris-text-default);--solaris-multi-select-chip-padding-y: var(--solaris-spacing-1);--solaris-multi-select-chip-padding-x: var(--solaris-spacing-2);--solaris-multi-select-line-height: var(--solaris-line-height-md);--solaris-multi-select-chip-font-size: var(--solaris-font-size-sm);--solaris-multi-select-select-all-height: var(--solaris-spacing-9);--solaris-multi-select-placeholder-color: var(--solaris-text-muted);--solaris-multi-select-chip-remove-size: var(--solaris-font-size-md);--solaris-multi-select-chip-background: var(--solaris-surface-subtle);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-multi-select__trigger{flex:1;padding:0;min-width:0;border:none;outline:none;display:flex;cursor:pointer;align-items:center;box-sizing:border-box;background:transparent;gap:var(--solaris-spacing-2)}:host ::ng-deep .solaris-form-field__message-row{margin-top:0}:host ::ng-deep .solaris-multi-select--panel-open .solaris-form-field__message-row{display:none}.solaris-multi-select__trigger-content{flex:1;min-width:0;display:flex;overflow:hidden;align-items:center;gap:var(--solaris-spacing-2)}.solaris-multi-select__value{flex:none;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.solaris-multi-select__value-text{color:var(--solaris-multi-select-value-color);font-size:var(--solaris-multi-select-font-size);line-height:var(--solaris-multi-select-line-height)}.solaris-multi-select__placeholder{font-size:var(--solaris-multi-select-font-size);color:var(--solaris-multi-select-placeholder-color);line-height:var(--solaris-multi-select-line-height)}.solaris-multi-select__chips{flex:1;min-width:0;display:flex;flex-wrap:wrap;overflow:hidden;align-items:center;gap:var(--solaris-multi-select-chip-gap)}.solaris-multi-select__chips--auto{flex:none;flex-wrap:nowrap}.solaris-multi-select__chips--auto .solaris-multi-select__chip{flex-shrink:0}.solaris-multi-select__chip{align-items:center;white-space:nowrap;display:inline-flex;gap:var(--solaris-spacing-1);line-height:var(--solaris-line-height-sm);color:var(--solaris-multi-select-chip-color);font-size:var(--solaris-multi-select-chip-font-size);border-radius:var(--solaris-multi-select-chip-radius);background:var(--solaris-multi-select-chip-background);border:var(--solaris-border-width-sm) solid var(--solaris-border-default);padding:var(--solaris-multi-select-chip-padding-y) var(--solaris-multi-select-chip-padding-x)}.solaris-multi-select__chip-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.solaris-multi-select__chip-remove{padding:0;border:none;display:flex;flex-shrink:0;cursor:pointer;border-radius:50%;align-items:center;justify-content:center;background:transparent;color:var(--solaris-multi-select-icon-color);width:var(--solaris-multi-select-chip-remove-size);height:var(--solaris-multi-select-chip-remove-size);transition:background var(--solaris-motion-duration-normal) ease}.solaris-multi-select__chip-remove solaris-icon{width:var(--solaris-multi-select-chip-remove-size);height:var(--solaris-multi-select-chip-remove-size)}.solaris-multi-select__chip-remove:hover{background:var(--solaris-surface-hover)}.solaris-multi-select__chip-overflow{flex-shrink:0;white-space:nowrap;color:var(--solaris-multi-select-icon-color);font-size:var(--solaris-multi-select-font-size);line-height:var(--solaris-multi-select-line-height)}.solaris-multi-select__actions{display:flex;flex-shrink:0;align-items:center;gap:var(--solaris-spacing-2)}.solaris-multi-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-multi-select-icon-color);transition:color var(--solaris-motion-duration-normal) ease}.solaris-multi-select__clear solaris-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}.solaris-multi-select__clear:hover{color:var(--solaris-text-default)}.solaris-multi-select__dropdown-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl);color:var(--solaris-multi-select-icon-color);transition:transform var(--solaris-motion-duration-normal) ease}.solaris-multi-select__dropdown-icon solaris-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}:host([data-open]) .solaris-multi-select__dropdown-icon{transform:rotate(180deg)}.solaris-multi-select__panel{display:flex;overflow-y:auto;flex-direction:column;overscroll-behavior:contain}.solaris-multi-select__search-input{flex:1;margin:0;padding:0;border:none;outline:none;min-width:0;font-family:inherit;background:transparent;box-sizing:border-box;font-size:var(--solaris-multi-select-font-size);color:var(--solaris-multi-select-value-color);line-height:var(--solaris-multi-select-line-height)}.solaris-multi-select__search-input::placeholder{color:var(--solaris-multi-select-placeholder-color)}.solaris-multi-select__loading,.solaris-multi-select__no-results,.solaris-multi-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-multi-select__options{display:flex;flex-direction:column;gap:var(--solaris-spacing-1);padding:var(--solaris-spacing-1) var(--solaris-spacing-2)}.solaris-multi-select__select-all{display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:var(--solaris-spacing-2);min-height:var(--solaris-multi-select-select-all-height);padding:var(--solaris-spacing-2) var(--solaris-spacing-3);transition:background var(--solaris-motion-duration-normal) ease}.solaris-multi-select__select-all:hover{background:var(--solaris-surface-hover)}.solaris-multi-select__select-all-checkbox{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--solaris-font-size-lg);height:var(--solaris-font-size-lg);border-radius:var(--solaris-radius-sm);background:var(--solaris-surface-base);border:var(--solaris-border-width-sm) solid var(--solaris-primary-border)}.solaris-multi-select__select-all-checkbox--checked{background:var(--solaris-primary-base);border-color:var(--solaris-primary-base)}.solaris-multi-select__select-all-checkbox--partial{background:var(--solaris-primary-muted);border-color:var(--solaris-primary-base)}.solaris-multi-select__select-all-checkbox-icon{display:flex;align-items:center;justify-content:center;color:var(--solaris-on-primary);width:var(--solaris-font-size-sm);height:var(--solaris-font-size-sm)}.solaris-multi-select__select-all-label{font-size:var(--solaris-multi-select-font-size);color:var(--solaris-multi-select-value-color);line-height:var(--solaris-multi-select-line-height)}.solaris-multi-select__select-all--readonly{opacity:.5;cursor:default}:host([data-disabled]){cursor:not-allowed}:host([data-readonly]){cursor:default}@media(prefers-reduced-motion:reduce){.solaris-multi-select__dropdown-icon,.solaris-multi-select__clear{transition:none}}[data-reduced-motion=true] .solaris-multi-select__dropdown-icon,[data-reduced-motion=true] .solaris-multi-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"] }, { kind: "directive", type: SolarisTooltipDirective, selector: "[solaris-tooltip], [solarisTooltip], [solarisTooltipFor]", inputs: ["solarisTooltip", "solarisTooltipKey", "solarisTooltipFor", "solarisTooltipTitle", "solarisTooltipTitleKey", "solarisTooltipIcon", "solarisTooltipIconDecorative", "solarisTooltipTrigger", "solarisTooltipPlacement", "solarisTooltipOffset", "solarisTooltipDisabled", "solarisTooltipCloseable", "solarisTooltipCloseLabel", "solarisTooltipCloseLabelKey", "solarisTooltipShowDelay", "solarisTooltipHideDelay", "solarisTooltipAppearance", "solarisTooltipSize", "solarisTooltipRadius", "solarisTooltipMaxWidth", "solarisTooltipArrow", "solarisTooltipOpen"], outputs: ["solarisTooltipOpened", "solarisTooltipClosed", "solarisTooltipOpenChange"], exportAs: ["solarisTooltip"] }] });
1051
- }
1052
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisMultiSelectComponent, decorators: [{
1053
- type: Component,
1054
- args: [{ selector: 'solaris-multi-select', standalone: true, imports: [
1055
- SolarisFormFieldComponent,
1056
- SolarisFormFieldTriggerDirective,
1057
- SolarisFormPrefixDirective,
1058
- SolarisIconComponent,
1059
- SolarisPopoverDirective,
1060
- SolarisPopoverTriggerDirective,
1061
- SolarisTooltipDirective,
1062
- ], providers: [
1063
- {
1064
- provide: NG_VALUE_ACCESSOR,
1065
- useExisting: forwardRef(() => SolarisMultiSelectComponent),
1066
- multi: true,
1067
- },
1068
- {
1069
- provide: SolarisFormControl,
1070
- useExisting: forwardRef(() => SolarisMultiSelectComponent),
1071
- },
1072
- ], host: {
1073
- 'solaris-multi-select': '',
1074
- '[attr.id]': 'elementId()',
1075
- '[attr.data-size]': 'size()',
1076
- '[attr.data-open]': 'panelOpen() ? "" : null',
1077
- '[attr.aria-label]': 'ariaLabelText() ?? null',
1078
- '[attr.data-has-value]': 'hasValue() ? "" : null',
1079
- }, template: "<solaris-form-field\n #formFieldRef\n [control]=\"this\"\n [label]=\"labelText()\"\n [hint]=\"hintText()\"\n [error]=\"errorText()\"\n [appearance]=\"appearance()\"\n [size]=\"size()\"\n [density]=\"effectiveDensity()\"\n [radius]=\"radius()\"\n [invalid]=\"isEffectivelyInvalid()\"\n [required]=\"requiredInput()\"\n solaris-popover-trigger\n [solarisPopoverDisabled]=\"!canOpen()\"\n [solarisPopoverTriggerFor]=\"matchWidthPopover\"\n [class.solaris-multi-select--panel-open]=\"panelOpen()\"\n [solarisPopoverMatchTriggerWidth]=\"panelMatchTriggerWidth()\"\n [solarisPopoverAppearance]=\"popoverAppearance()\"\n [solarisPopoverPlacement]=\"'bottom'\"\n [solarisPopoverAlign]=\"'start'\"\n [solarisPopoverOffset]=\"0\"\n [solarisPopoverPadding]=\"'none'\"\n [solarisPopoverRadius]=\"radius()\"\n [solarisPopoverTopConnected]=\"true\"\n [solarisPopoverMinWidth]=\"panelMinWidth()\"\n [solarisPopoverMaxWidth]=\"panelMaxWidth()\"\n [solarisPopoverScrollStrategy]=\"'reposition'\"\n [solarisPopoverCloseOnEscape]=\"false\"\n [solarisPopoverAriaHasPopup]=\"'listbox'\"\n>\n @if (icon(); as iconName) {\n <solaris-icon solaris-form-prefix [name]=\"iconName\" [decorative]=\"true\" />\n }\n <ng-content select=\"[solaris-form-prefix]\" />\n\n <div\n #triggerEl\n class=\"solaris-multi-select__trigger\"\n [id]=\"elementId() + '--trigger'\"\n solaris-form-field-trigger\n role=\"combobox\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"panelOpen() ? 'true' : 'false'\"\n [attr.aria-controls]=\"panelOpen() ? panelId : null\"\n [attr.aria-haspopup]=\"'listbox'\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [attr.aria-labelledby]=\"ariaLabelledbyText() ?? null\"\n [attr.aria-describedby]=\"ariaDescribedBy() ?? null\"\n (keydown)=\"onTriggerKeydown($event)\"\n (focus)=\"onTriggerFocus()\"\n (blur)=\"onTriggerBlur()\"\n >\n <div class=\"solaris-multi-select__trigger-content\" #triggerContent>\n @if (displayMode() === 'auto') {\n @if (hasValue()) {\n @if (showCountOnly()) {\n <span\n class=\"solaris-multi-select__chip\"\n [solarisTooltip]=\"countTooltipText()\"\n [solarisTooltipTrigger]=\"'hover'\"\n tabindex=\"0\"\n >\n <span class=\"solaris-multi-select__chip-label\">{{\n summaryText()\n }}</span>\n </span>\n } @else {\n <div\n class=\"solaris-multi-select__chips solaris-multi-select__chips--auto\"\n >\n @for (opt of autoVisibleChips(); track opt) {\n <span class=\"solaris-multi-select__chip\" role=\"listitem\">\n <span class=\"solaris-multi-select__chip-label\">{{\n getOptionDisplayLabel(opt)\n }}</span>\n @if (!isEffectivelyDisabled() && !isEffectivelyReadonly()) {\n <button\n type=\"button\"\n class=\"solaris-multi-select__chip-remove\"\n [attr.aria-label]=\"removeChipAriaLabel()\"\n (click)=\"removeChip(opt, $event)\"\n tabindex=\"-1\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n </span>\n }\n @if (autoShowOverflow()) {\n <span\n class=\"solaris-multi-select__chip-overflow\"\n [solarisTooltip]=\"autoOverflowTooltipText()\"\n [solarisTooltipTrigger]=\"'hover'\"\n tabindex=\"0\"\n [attr.aria-label]=\"\n '+ ' +\n autoOverflowCount() +\n ' ' +\n selectedLabels().join(', ')\n \"\n >+{{ autoOverflowCount() }}</span\n >\n }\n </div>\n }\n }\n @if (searchable() && panelOpen()) {\n <input\n #searchInput\n type=\"text\"\n class=\"solaris-multi-select__search-input\"\n [attr.placeholder]=\"searchPlaceholderText()\"\n [value]=\"searchQuery()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onSearchKeydown($event)\"\n (click)=\"$event.stopPropagation()\"\n role=\"searchbox\"\n autocomplete=\"off\"\n />\n }\n @if (!hasValue() && !(searchable() && panelOpen())) {\n <span class=\"solaris-multi-select__value\">\n <span class=\"solaris-multi-select__placeholder\">{{\n placeholderText()\n }}</span>\n </span>\n }\n } @else {\n @if (searchable() && panelOpen()) {\n <input\n #searchInput\n type=\"text\"\n class=\"solaris-multi-select__search-input\"\n [attr.placeholder]=\"searchPlaceholderText()\"\n [value]=\"searchQuery()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onSearchKeydown($event)\"\n (click)=\"$event.stopPropagation()\"\n role=\"searchbox\"\n autocomplete=\"off\"\n />\n } @else {\n @if (hasValue()) {\n @if (displayMode() === 'chips') {\n <div class=\"solaris-multi-select__chips\">\n @for (\n opt of selectedOptions().slice(0, maxVisibleChips());\n track opt\n ) {\n <span class=\"solaris-multi-select__chip\" role=\"listitem\">\n <span class=\"solaris-multi-select__chip-label\">{{\n getOptionDisplayLabel(opt)\n }}</span>\n @if (!isEffectivelyDisabled() && !isEffectivelyReadonly()) {\n <button\n type=\"button\"\n class=\"solaris-multi-select__chip-remove\"\n [attr.aria-label]=\"removeChipAriaLabel()\"\n (click)=\"removeChip(opt, $event)\"\n tabindex=\"-1\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n </span>\n }\n @if (overflowCount() > 0) {\n <span\n class=\"solaris-multi-select__chip-overflow\"\n [attr.aria-label]=\"\n '+ ' + overflowCount() + ' ' + selectedLabels().join(', ')\n \"\n >\n {{ overflowText() }}\n </span>\n }\n </div>\n } @else if (displayMode() === 'comma') {\n <span class=\"solaris-multi-select__value\">\n <span class=\"solaris-multi-select__value-text\">{{\n commaText()\n }}</span>\n </span>\n } @else {\n <span\n class=\"solaris-multi-select__chip\"\n [solarisTooltip]=\"countTooltipText()\"\n [solarisTooltipTrigger]=\"'hover'\"\n tabindex=\"0\"\n >\n <span class=\"solaris-multi-select__chip-label\">{{\n summaryText()\n }}</span>\n </span>\n }\n } @else {\n <span class=\"solaris-multi-select__value\">\n <span class=\"solaris-multi-select__placeholder\">{{\n placeholderText()\n }}</span>\n </span>\n }\n }\n }\n </div>\n\n <span class=\"solaris-multi-select__actions\">\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"solaris-multi-select__clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"clearValue(); $event.stopPropagation()\"\n tabindex=\"-1\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n\n <solaris-icon\n class=\"solaris-multi-select__dropdown-icon\"\n name=\"chevron-down\"\n [decorative]=\"true\"\n size=\"sm\"\n />\n </span>\n </div>\n\n <ng-content select=\"[solaris-form-suffix]\" />\n</solaris-form-field>\n\n<ng-template #matchWidthPopover=\"solarisPopover\" solaris-popover>\n <div\n class=\"solaris-multi-select__panel\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"'true'\"\n [attr.id]=\"panelId\"\n tabindex=\"-1\"\n (click)=\"onPanelClick($event)\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n @if (selectAll() && !loading()) {\n <div\n class=\"solaris-multi-select__select-all\"\n role=\"option\"\n aria-selected=\"false\"\n tabindex=\"-1\"\n (click)=\"handleSelectAll()\"\n (keydown.enter)=\"handleSelectAll()\"\n (keydown.space)=\"handleSelectAll(); $event.preventDefault()\"\n [class.solaris-multi-select__select-all--readonly]=\"\n isEffectivelyReadonly()\n \"\n >\n <span\n class=\"solaris-multi-select__select-all-checkbox\"\n [class.solaris-multi-select__select-all-checkbox--checked]=\"\n isAllSelected()\n \"\n [class.solaris-multi-select__select-all-checkbox--partial]=\"\n isPartialSelected()\n \"\n >\n @if (isAllSelected()) {\n <span class=\"solaris-multi-select__select-all-checkbox-icon\">\n <solaris-icon name=\"check\" [decorative]=\"true\" />\n </span>\n } @else if (isPartialSelected()) {\n <span class=\"solaris-multi-select__select-all-checkbox-icon\">\n <solaris-icon name=\"minus\" [decorative]=\"true\" />\n </span>\n }\n </span>\n <span class=\"solaris-multi-select__select-all-label\">{{\n selectAllLabelText()\n }}</span>\n </div>\n }\n\n @if (loading()) {\n <div class=\"solaris-multi-select__loading\">\n <span class=\"solaris-multi-select__loading-text\">{{\n loadingTextValue()\n }}</span>\n </div>\n } @else if (showNoResults()) {\n <div class=\"solaris-multi-select__no-results\">\n <span class=\"solaris-multi-select__no-results-text\">{{\n noResultsTextValue()\n }}</span>\n </div>\n } @else if (showEmpty()) {\n <div class=\"solaris-multi-select__empty\">\n <span class=\"solaris-multi-select__empty-text\">{{\n emptyTextValue()\n }}</span>\n </div>\n } @else {\n <div\n class=\"solaris-multi-select__options\"\n [style.max-height]=\"panelMaxHeight()\"\n >\n <ng-content select=\"solaris-option, solaris-option-group\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: [":host{--solaris-multi-select-chip-gap: var(--solaris-spacing-1);--solaris-multi-select-chip-radius: var(--solaris-radius-sm);--solaris-multi-select-icon-color: var(--solaris-text-muted);--solaris-multi-select-font-size: var(--solaris-font-size-md);--solaris-multi-select-chip-color: var(--solaris-text-default);--solaris-multi-select-value-color: var(--solaris-text-default);--solaris-multi-select-chip-padding-y: var(--solaris-spacing-1);--solaris-multi-select-chip-padding-x: var(--solaris-spacing-2);--solaris-multi-select-line-height: var(--solaris-line-height-md);--solaris-multi-select-chip-font-size: var(--solaris-font-size-sm);--solaris-multi-select-select-all-height: var(--solaris-spacing-9);--solaris-multi-select-placeholder-color: var(--solaris-text-muted);--solaris-multi-select-chip-remove-size: var(--solaris-font-size-md);--solaris-multi-select-chip-background: var(--solaris-surface-subtle);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-multi-select__trigger{flex:1;padding:0;min-width:0;border:none;outline:none;display:flex;cursor:pointer;align-items:center;box-sizing:border-box;background:transparent;gap:var(--solaris-spacing-2)}:host ::ng-deep .solaris-form-field__message-row{margin-top:0}:host ::ng-deep .solaris-multi-select--panel-open .solaris-form-field__message-row{display:none}.solaris-multi-select__trigger-content{flex:1;min-width:0;display:flex;overflow:hidden;align-items:center;gap:var(--solaris-spacing-2)}.solaris-multi-select__value{flex:none;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.solaris-multi-select__value-text{color:var(--solaris-multi-select-value-color);font-size:var(--solaris-multi-select-font-size);line-height:var(--solaris-multi-select-line-height)}.solaris-multi-select__placeholder{font-size:var(--solaris-multi-select-font-size);color:var(--solaris-multi-select-placeholder-color);line-height:var(--solaris-multi-select-line-height)}.solaris-multi-select__chips{flex:1;min-width:0;display:flex;flex-wrap:wrap;overflow:hidden;align-items:center;gap:var(--solaris-multi-select-chip-gap)}.solaris-multi-select__chips--auto{flex:none;flex-wrap:nowrap}.solaris-multi-select__chips--auto .solaris-multi-select__chip{flex-shrink:0}.solaris-multi-select__chip{align-items:center;white-space:nowrap;display:inline-flex;gap:var(--solaris-spacing-1);line-height:var(--solaris-line-height-sm);color:var(--solaris-multi-select-chip-color);font-size:var(--solaris-multi-select-chip-font-size);border-radius:var(--solaris-multi-select-chip-radius);background:var(--solaris-multi-select-chip-background);border:var(--solaris-border-width-sm) solid var(--solaris-border-default);padding:var(--solaris-multi-select-chip-padding-y) var(--solaris-multi-select-chip-padding-x)}.solaris-multi-select__chip-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.solaris-multi-select__chip-remove{padding:0;border:none;display:flex;flex-shrink:0;cursor:pointer;border-radius:50%;align-items:center;justify-content:center;background:transparent;color:var(--solaris-multi-select-icon-color);width:var(--solaris-multi-select-chip-remove-size);height:var(--solaris-multi-select-chip-remove-size);transition:background var(--solaris-motion-duration-normal) ease}.solaris-multi-select__chip-remove solaris-icon{width:var(--solaris-multi-select-chip-remove-size);height:var(--solaris-multi-select-chip-remove-size)}.solaris-multi-select__chip-remove:hover{background:var(--solaris-surface-hover)}.solaris-multi-select__chip-overflow{flex-shrink:0;white-space:nowrap;color:var(--solaris-multi-select-icon-color);font-size:var(--solaris-multi-select-font-size);line-height:var(--solaris-multi-select-line-height)}.solaris-multi-select__actions{display:flex;flex-shrink:0;align-items:center;gap:var(--solaris-spacing-2)}.solaris-multi-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-multi-select-icon-color);transition:color var(--solaris-motion-duration-normal) ease}.solaris-multi-select__clear solaris-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}.solaris-multi-select__clear:hover{color:var(--solaris-text-default)}.solaris-multi-select__dropdown-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl);color:var(--solaris-multi-select-icon-color);transition:transform var(--solaris-motion-duration-normal) ease}.solaris-multi-select__dropdown-icon solaris-icon{width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}:host([data-open]) .solaris-multi-select__dropdown-icon{transform:rotate(180deg)}.solaris-multi-select__panel{display:flex;overflow-y:auto;flex-direction:column;overscroll-behavior:contain}.solaris-multi-select__search-input{flex:1;margin:0;padding:0;border:none;outline:none;min-width:0;font-family:inherit;background:transparent;box-sizing:border-box;font-size:var(--solaris-multi-select-font-size);color:var(--solaris-multi-select-value-color);line-height:var(--solaris-multi-select-line-height)}.solaris-multi-select__search-input::placeholder{color:var(--solaris-multi-select-placeholder-color)}.solaris-multi-select__loading,.solaris-multi-select__no-results,.solaris-multi-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-multi-select__options{display:flex;flex-direction:column;gap:var(--solaris-spacing-1);padding:var(--solaris-spacing-1) var(--solaris-spacing-2)}.solaris-multi-select__select-all{display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:var(--solaris-spacing-2);min-height:var(--solaris-multi-select-select-all-height);padding:var(--solaris-spacing-2) var(--solaris-spacing-3);transition:background var(--solaris-motion-duration-normal) ease}.solaris-multi-select__select-all:hover{background:var(--solaris-surface-hover)}.solaris-multi-select__select-all-checkbox{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--solaris-font-size-lg);height:var(--solaris-font-size-lg);border-radius:var(--solaris-radius-sm);background:var(--solaris-surface-base);border:var(--solaris-border-width-sm) solid var(--solaris-primary-border)}.solaris-multi-select__select-all-checkbox--checked{background:var(--solaris-primary-base);border-color:var(--solaris-primary-base)}.solaris-multi-select__select-all-checkbox--partial{background:var(--solaris-primary-muted);border-color:var(--solaris-primary-base)}.solaris-multi-select__select-all-checkbox-icon{display:flex;align-items:center;justify-content:center;color:var(--solaris-on-primary);width:var(--solaris-font-size-sm);height:var(--solaris-font-size-sm)}.solaris-multi-select__select-all-label{font-size:var(--solaris-multi-select-font-size);color:var(--solaris-multi-select-value-color);line-height:var(--solaris-multi-select-line-height)}.solaris-multi-select__select-all--readonly{opacity:.5;cursor:default}:host([data-disabled]){cursor:not-allowed}:host([data-readonly]){cursor:default}@media(prefers-reduced-motion:reduce){.solaris-multi-select__dropdown-icon,.solaris-multi-select__clear{transition:none}}[data-reduced-motion=true] .solaris-multi-select__dropdown-icon,[data-reduced-motion=true] .solaris-multi-select__clear{transition:none}\n"] }]
1080
- }], ctorParameters: () => [], propDecorators: { popoverTrigger: [{
1081
- type: ViewChild,
1082
- args: [SolarisPopoverTriggerDirective]
1083
- }], searchInputRef: [{
1084
- type: ViewChild,
1085
- args: ['searchInput', { read: ElementRef }]
1086
- }], triggerElement: [{
1087
- type: ViewChild,
1088
- args: ['triggerEl', { read: ElementRef }]
1089
- }], formFieldElement: [{
1090
- type: ViewChild,
1091
- args: ['formFieldRef', { read: ElementRef }]
1092
- }], options: [{
1093
- type: ContentChildren,
1094
- args: [SolarisOptionComponent, { descendants: true }]
1095
- }], optionGroups: [{
1096
- type: ContentChildren,
1097
- args: [SolarisOptionGroupComponent, { descendants: true }]
1098
- }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", 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 }] }], 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 }] }], 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 }] }], removeChipLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeChipLabel", required: false }] }], removeChipLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeChipLabelKey", required: false }] }], noResultsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsText", required: false }] }], noResultsTextKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsTextKey", 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 }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", 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 }] }], selectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAll", required: false }] }], selectAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllLabel", required: false }] }], selectAllLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllLabelKey", required: false }] }], displayMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayMode", required: false }] }], maxVisibleChips: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleChips", required: false }] }], selectedCountLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedCountLabel", required: false }] }], selectedCountLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedCountLabelKey", required: false }] }], overflowLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflowLabel", required: false }] }], overflowLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflowLabelKey", required: false }] }], minSelected: [{ type: i0.Input, args: [{ isSignal: true, alias: "minSelected", required: false }] }], maxSelected: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSelected", required: false }] }], showSelectionTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSelectionTooltip", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", 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"] }], triggerContentRef: [{
1099
- type: ViewChild,
1100
- args: ['triggerContent', { read: ElementRef }]
1101
- }] } });
1102
- //# sourceMappingURL=multi-select.component.js.map