@educarehq/solaris-ui 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (575) hide show
  1. package/educarehq-solaris-ui.d.ts +5 -0
  2. package/esm2022/educarehq-solaris-ui.js +5 -0
  3. package/esm2022/educarehq-solaris-ui.js.map +1 -0
  4. package/esm2022/index.js +109 -0
  5. package/esm2022/index.js.map +1 -0
  6. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js +17 -0
  7. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js.map +1 -0
  8. package/esm2022/lib/components/actions/button/directives/button.directive.js +60 -0
  9. package/esm2022/lib/components/actions/button/directives/button.directive.js.map +1 -0
  10. package/esm2022/lib/components/actions/button/index.js +3 -0
  11. package/esm2022/lib/components/actions/button/index.js.map +1 -0
  12. package/esm2022/lib/components/actions/button/model/button.types.js +1 -0
  13. package/esm2022/lib/components/actions/button/model/button.types.js.map +1 -0
  14. package/esm2022/lib/components/actions/button-group/component/button-group.component.js +21 -0
  15. package/esm2022/lib/components/actions/button-group/component/button-group.component.js.map +1 -0
  16. package/esm2022/lib/components/actions/button-group/model/button-group.types.js +1 -0
  17. package/esm2022/lib/components/actions/button-group/model/button-group.types.js.map +1 -0
  18. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js +17 -0
  19. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js.map +1 -0
  20. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js +58 -0
  21. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js.map +1 -0
  22. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js +1 -0
  23. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js.map +1 -0
  24. package/esm2022/lib/components/data-display/badge/component/badge.component.js +24 -0
  25. package/esm2022/lib/components/data-display/badge/component/badge.component.js.map +1 -0
  26. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js +17 -0
  27. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js.map +1 -0
  28. package/esm2022/lib/components/data-display/badge/index.js +3 -0
  29. package/esm2022/lib/components/data-display/badge/index.js.map +1 -0
  30. package/esm2022/lib/components/data-display/badge/model/badge.types.js +1 -0
  31. package/esm2022/lib/components/data-display/badge/model/badge.types.js.map +1 -0
  32. package/esm2022/lib/components/data-display/card/component/card.component.js +20 -0
  33. package/esm2022/lib/components/data-display/card/component/card.component.js.map +1 -0
  34. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js +17 -0
  35. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js.map +1 -0
  36. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js +17 -0
  37. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js.map +1 -0
  38. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js +17 -0
  39. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js.map +1 -0
  40. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js +19 -0
  41. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js.map +1 -0
  42. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js +17 -0
  43. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js.map +1 -0
  44. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js +17 -0
  45. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js.map +1 -0
  46. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js +17 -0
  47. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js.map +1 -0
  48. package/esm2022/lib/components/data-display/card/model/card.types.js +1 -0
  49. package/esm2022/lib/components/data-display/card/model/card.types.js.map +1 -0
  50. package/esm2022/lib/components/data-display/divider/component/divider.component.js +46 -0
  51. package/esm2022/lib/components/data-display/divider/component/divider.component.js.map +1 -0
  52. package/esm2022/lib/components/data-display/divider/index.js +2 -0
  53. package/esm2022/lib/components/data-display/divider/index.js.map +1 -0
  54. package/esm2022/lib/components/data-display/divider/model/divider.types.js +1 -0
  55. package/esm2022/lib/components/data-display/divider/model/divider.types.js.map +1 -0
  56. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js +18 -0
  57. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js.map +1 -0
  58. package/esm2022/lib/components/feedback/alert/component/alert.component.js +90 -0
  59. package/esm2022/lib/components/feedback/alert/component/alert.component.js.map +1 -0
  60. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js +17 -0
  61. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js.map +1 -0
  62. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js +17 -0
  63. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js.map +1 -0
  64. package/esm2022/lib/components/feedback/alert/model/alert.types.js +1 -0
  65. package/esm2022/lib/components/feedback/alert/model/alert.types.js.map +1 -0
  66. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js +69 -0
  67. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js.map +1 -0
  68. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js +1 -0
  69. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js.map +1 -0
  70. package/esm2022/lib/components/feedback/toast/component/toast.component.js +268 -0
  71. package/esm2022/lib/components/feedback/toast/component/toast.component.js.map +1 -0
  72. package/esm2022/lib/components/feedback/toast/container/toast-container.component.js +24 -0
  73. package/esm2022/lib/components/feedback/toast/container/toast-container.component.js.map +1 -0
  74. package/esm2022/lib/components/feedback/toast/model/toast.types.js +1 -0
  75. package/esm2022/lib/components/feedback/toast/model/toast.types.js.map +1 -0
  76. package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js +17 -0
  77. package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js.map +1 -0
  78. package/esm2022/lib/components/feedback/toast/service/toast.service.js +219 -0
  79. package/esm2022/lib/components/feedback/toast/service/toast.service.js.map +1 -0
  80. package/esm2022/lib/components/feedback/toast/token/toast.tokens.js +13 -0
  81. package/esm2022/lib/components/feedback/toast/token/toast.tokens.js.map +1 -0
  82. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js +227 -0
  83. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js.map +1 -0
  84. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js +1 -0
  85. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js.map +1 -0
  86. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js +441 -0
  87. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js.map +1 -0
  88. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js +1 -0
  89. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js.map +1 -0
  90. package/esm2022/lib/components/forms/email-field/component/email-field.component.js +215 -0
  91. package/esm2022/lib/components/forms/email-field/component/email-field.component.js.map +1 -0
  92. package/esm2022/lib/components/forms/email-field/model/email-field.types.js +1 -0
  93. package/esm2022/lib/components/forms/email-field/model/email-field.types.js.map +1 -0
  94. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js +69 -0
  95. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js.map +1 -0
  96. package/esm2022/lib/components/forms/form-field/component/form-error.component.js +19 -0
  97. package/esm2022/lib/components/forms/form-field/component/form-error.component.js.map +1 -0
  98. package/esm2022/lib/components/forms/form-field/component/form-field.component.js +442 -0
  99. package/esm2022/lib/components/forms/form-field/component/form-field.component.js.map +1 -0
  100. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js +18 -0
  101. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js.map +1 -0
  102. package/esm2022/lib/components/forms/form-field/component/form-label.component.js +18 -0
  103. package/esm2022/lib/components/forms/form-field/component/form-label.component.js.map +1 -0
  104. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js +14 -0
  105. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js.map +1 -0
  106. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js +17 -0
  107. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js.map +1 -0
  108. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js +17 -0
  109. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js.map +1 -0
  110. package/esm2022/lib/components/forms/form-field/index.js +8 -0
  111. package/esm2022/lib/components/forms/form-field/index.js.map +1 -0
  112. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js +3 -0
  113. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js.map +1 -0
  114. package/esm2022/lib/components/forms/form-field/model/form-field.types.js +1 -0
  115. package/esm2022/lib/components/forms/form-field/model/form-field.types.js.map +1 -0
  116. package/esm2022/lib/components/forms/input/directives/input.directive.js +148 -0
  117. package/esm2022/lib/components/forms/input/directives/input.directive.js.map +1 -0
  118. package/esm2022/lib/components/forms/input/index.js +2 -0
  119. package/esm2022/lib/components/forms/input/index.js.map +1 -0
  120. package/esm2022/lib/components/forms/input/model/input.defaults.js +27 -0
  121. package/esm2022/lib/components/forms/input/model/input.defaults.js.map +1 -0
  122. package/esm2022/lib/components/forms/input/model/input.types.js +1 -0
  123. package/esm2022/lib/components/forms/input/model/input.types.js.map +1 -0
  124. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js +1102 -0
  125. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js.map +1 -0
  126. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js +1 -0
  127. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js.map +1 -0
  128. package/esm2022/lib/components/forms/option/component/option.component.js +149 -0
  129. package/esm2022/lib/components/forms/option/component/option.component.js.map +1 -0
  130. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js +58 -0
  131. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js.map +1 -0
  132. package/esm2022/lib/components/forms/option/index.js +3 -0
  133. package/esm2022/lib/components/forms/option/index.js.map +1 -0
  134. package/esm2022/lib/components/forms/option/model/option.types.js +1 -0
  135. package/esm2022/lib/components/forms/option/model/option.types.js.map +1 -0
  136. package/esm2022/lib/components/forms/option-group/component/option-group.component.js +103 -0
  137. package/esm2022/lib/components/forms/option-group/component/option-group.component.js.map +1 -0
  138. package/esm2022/lib/components/forms/option-group/index.js +2 -0
  139. package/esm2022/lib/components/forms/option-group/index.js.map +1 -0
  140. package/esm2022/lib/components/forms/option-group/model/option-group.types.js +1 -0
  141. package/esm2022/lib/components/forms/option-group/model/option-group.types.js.map +1 -0
  142. package/esm2022/lib/components/forms/password-field/component/password-field.component.js +299 -0
  143. package/esm2022/lib/components/forms/password-field/component/password-field.component.js.map +1 -0
  144. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js +5 -0
  145. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js.map +1 -0
  146. package/esm2022/lib/components/forms/password-field/model/password-field.types.js +1 -0
  147. package/esm2022/lib/components/forms/password-field/model/password-field.types.js.map +1 -0
  148. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js +1 -0
  149. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js.map +1 -0
  150. package/esm2022/lib/components/forms/password-field/model/password-strength.js +67 -0
  151. package/esm2022/lib/components/forms/password-field/model/password-strength.js.map +1 -0
  152. package/esm2022/lib/components/forms/password-field/validators/password.validator.js +45 -0
  153. package/esm2022/lib/components/forms/password-field/validators/password.validator.js.map +1 -0
  154. package/esm2022/lib/components/forms/radio/component/radio.component.js +219 -0
  155. package/esm2022/lib/components/forms/radio/component/radio.component.js.map +1 -0
  156. package/esm2022/lib/components/forms/radio/model/radio.types.js +1 -0
  157. package/esm2022/lib/components/forms/radio/model/radio.types.js.map +1 -0
  158. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js +348 -0
  159. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js.map +1 -0
  160. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js +3 -0
  161. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js.map +1 -0
  162. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js +1 -0
  163. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js.map +1 -0
  164. package/esm2022/lib/components/forms/select/component/select.component.js +815 -0
  165. package/esm2022/lib/components/forms/select/component/select.component.js.map +1 -0
  166. package/esm2022/lib/components/forms/select/model/select.types.js +1 -0
  167. package/esm2022/lib/components/forms/select/model/select.types.js.map +1 -0
  168. package/esm2022/lib/components/forms/switch/component/switch.component.js +211 -0
  169. package/esm2022/lib/components/forms/switch/component/switch.component.js.map +1 -0
  170. package/esm2022/lib/components/forms/switch/index.js +2 -0
  171. package/esm2022/lib/components/forms/switch/index.js.map +1 -0
  172. package/esm2022/lib/components/forms/switch/model/switch.types.js +1 -0
  173. package/esm2022/lib/components/forms/switch/model/switch.types.js.map +1 -0
  174. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js +369 -0
  175. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js.map +1 -0
  176. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js +1 -0
  177. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js.map +1 -0
  178. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js +137 -0
  179. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js.map +1 -0
  180. package/esm2022/lib/components/forms/textarea/model/textarea.types.js +1 -0
  181. package/esm2022/lib/components/forms/textarea/model/textarea.types.js.map +1 -0
  182. package/esm2022/lib/components/icon/component/solaris-icon.component.js +20 -0
  183. package/esm2022/lib/components/icon/component/solaris-icon.component.js.map +1 -0
  184. package/esm2022/lib/components/icon/index.js +2 -0
  185. package/esm2022/lib/components/icon/index.js.map +1 -0
  186. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js +27 -0
  187. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js.map +1 -0
  188. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js +96 -0
  189. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js.map +1 -0
  190. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js +22 -0
  191. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js.map +1 -0
  192. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js +105 -0
  193. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js.map +1 -0
  194. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js +95 -0
  195. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js.map +1 -0
  196. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js +631 -0
  197. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js.map +1 -0
  198. package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js +365 -0
  199. package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js.map +1 -0
  200. package/esm2022/lib/components/interaction/dropdown-menu/index.js +8 -0
  201. package/esm2022/lib/components/interaction/dropdown-menu/index.js.map +1 -0
  202. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js +3 -0
  203. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js.map +1 -0
  204. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js +1 -0
  205. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js.map +1 -0
  206. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js +1 -0
  207. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js.map +1 -0
  208. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js +29 -0
  209. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js.map +1 -0
  210. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js +325 -0
  211. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js.map +1 -0
  212. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js +16 -0
  213. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js.map +1 -0
  214. package/esm2022/lib/components/interaction/popover/index.js +4 -0
  215. package/esm2022/lib/components/interaction/popover/index.js.map +1 -0
  216. package/esm2022/lib/components/interaction/popover/model/popover-position.js +145 -0
  217. package/esm2022/lib/components/interaction/popover/model/popover-position.js.map +1 -0
  218. package/esm2022/lib/components/interaction/popover/model/popover.types.js +1 -0
  219. package/esm2022/lib/components/interaction/popover/model/popover.types.js.map +1 -0
  220. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js +3 -0
  221. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js.map +1 -0
  222. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js +23 -0
  223. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js.map +1 -0
  224. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js +405 -0
  225. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js.map +1 -0
  226. package/esm2022/lib/components/interaction/tooltip/index.js +3 -0
  227. package/esm2022/lib/components/interaction/tooltip/index.js.map +1 -0
  228. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js +209 -0
  229. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js.map +1 -0
  230. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js +1 -0
  231. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js.map +1 -0
  232. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js +3 -0
  233. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js.map +1 -0
  234. package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js +323 -0
  235. package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js.map +1 -0
  236. package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js +34 -0
  237. package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js.map +1 -0
  238. package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js +1 -0
  239. package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js.map +1 -0
  240. package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js +242 -0
  241. package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js.map +1 -0
  242. package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js +197 -0
  243. package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js.map +1 -0
  244. package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js +1 -0
  245. package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js.map +1 -0
  246. package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js +3 -0
  247. package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js.map +1 -0
  248. package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js +15 -0
  249. package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js.map +1 -0
  250. package/esm2022/lib/components/navigation/stepper/component/stepper.component.js +99 -0
  251. package/esm2022/lib/components/navigation/stepper/component/stepper.component.js.map +1 -0
  252. package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js +13 -0
  253. package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js.map +1 -0
  254. package/esm2022/lib/components/navigation/stepper/model/stepper.types.js +1 -0
  255. package/esm2022/lib/components/navigation/stepper/model/stepper.types.js.map +1 -0
  256. package/esm2022/lib/components/navigation/stepper/step/step.component.js +91 -0
  257. package/esm2022/lib/components/navigation/stepper/step/step.component.js.map +1 -0
  258. package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js +3 -0
  259. package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js.map +1 -0
  260. package/esm2022/lib/components/navigation/tabs/component/tabs.component.js +169 -0
  261. package/esm2022/lib/components/navigation/tabs/component/tabs.component.js.map +1 -0
  262. package/esm2022/lib/components/navigation/tabs/index.js +5 -0
  263. package/esm2022/lib/components/navigation/tabs/index.js.map +1 -0
  264. package/esm2022/lib/components/navigation/tabs/model/tabs.types.js +1 -0
  265. package/esm2022/lib/components/navigation/tabs/model/tabs.types.js.map +1 -0
  266. package/esm2022/lib/components/navigation/tabs/tab/tab.component.js +195 -0
  267. package/esm2022/lib/components/navigation/tabs/tab/tab.component.js.map +1 -0
  268. package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js +55 -0
  269. package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js.map +1 -0
  270. package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js +3 -0
  271. package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js.map +1 -0
  272. package/esm2022/lib/components/overlay/dialog/component/dialog.component.js +49 -0
  273. package/esm2022/lib/components/overlay/dialog/component/dialog.component.js.map +1 -0
  274. package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js +37 -0
  275. package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js.map +1 -0
  276. package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js +13 -0
  277. package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js.map +1 -0
  278. package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js +32 -0
  279. package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js.map +1 -0
  280. package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js +142 -0
  281. package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js.map +1 -0
  282. package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js +56 -0
  283. package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js.map +1 -0
  284. package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js +20 -0
  285. package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js.map +1 -0
  286. package/esm2022/lib/components/overlay/dialog/model/dialog.types.js +1 -0
  287. package/esm2022/lib/components/overlay/dialog/model/dialog.types.js.map +1 -0
  288. package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js +13 -0
  289. package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js.map +1 -0
  290. package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js +23 -0
  291. package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js.map +1 -0
  292. package/esm2022/lib/components/overlay/dialog/service/dialog.service.js +111 -0
  293. package/esm2022/lib/components/overlay/dialog/service/dialog.service.js.map +1 -0
  294. package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js +4 -0
  295. package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js.map +1 -0
  296. package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js +15 -0
  297. package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js.map +1 -0
  298. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js +25 -0
  299. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js.map +1 -0
  300. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js +1 -0
  301. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js.map +1 -0
  302. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js +1 -0
  303. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js.map +1 -0
  304. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js +10 -0
  305. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js.map +1 -0
  306. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js +60 -0
  307. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js.map +1 -0
  308. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js +10 -0
  309. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js.map +1 -0
  310. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js +3 -0
  311. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js.map +1 -0
  312. package/esm2022/lib/services/icon/icons/groups/actions.js +242 -0
  313. package/esm2022/lib/services/icon/icons/groups/actions.js.map +1 -0
  314. package/esm2022/lib/services/icon/icons/groups/data.js +129 -0
  315. package/esm2022/lib/services/icon/icons/groups/data.js.map +1 -0
  316. package/esm2022/lib/services/icon/icons/groups/layout.js +50 -0
  317. package/esm2022/lib/services/icon/icons/groups/layout.js.map +1 -0
  318. package/esm2022/lib/services/icon/icons/groups/navigation.js +354 -0
  319. package/esm2022/lib/services/icon/icons/groups/navigation.js.map +1 -0
  320. package/esm2022/lib/services/icon/icons/groups/status.js +70 -0
  321. package/esm2022/lib/services/icon/icons/groups/status.js.map +1 -0
  322. package/esm2022/lib/services/icon/icons/groups/theme.js +49 -0
  323. package/esm2022/lib/services/icon/icons/groups/theme.js.map +1 -0
  324. package/esm2022/lib/services/icon/icons/index.js +2 -0
  325. package/esm2022/lib/services/icon/icons/index.js.map +1 -0
  326. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js +15 -0
  327. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js.map +1 -0
  328. package/esm2022/lib/services/icon/index.js +5 -0
  329. package/esm2022/lib/services/icon/index.js.map +1 -0
  330. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js +1 -0
  331. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js.map +1 -0
  332. package/esm2022/lib/services/icon/model/solaris-icon.types.js +1 -0
  333. package/esm2022/lib/services/icon/model/solaris-icon.types.js.map +1 -0
  334. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js +10 -0
  335. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js.map +1 -0
  336. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js +43 -0
  337. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js.map +1 -0
  338. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js +3 -0
  339. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js.map +1 -0
  340. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js +1 -0
  341. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js.map +1 -0
  342. package/esm2022/lib/services/theme/model/solaris-theme.types.js +1 -0
  343. package/esm2022/lib/services/theme/model/solaris-theme.types.js.map +1 -0
  344. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js +10 -0
  345. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js.map +1 -0
  346. package/esm2022/lib/services/theme/service/solaris-theme.service.js +22 -0
  347. package/esm2022/lib/services/theme/service/solaris-theme.service.js.map +1 -0
  348. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js +10 -0
  349. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js.map +1 -0
  350. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js +3 -0
  351. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js.map +1 -0
  352. package/esm2022/lib/services/translation/index.js +6 -0
  353. package/esm2022/lib/services/translation/index.js.map +1 -0
  354. package/esm2022/lib/services/translation/model/solaris-locale.types.js +1 -0
  355. package/esm2022/lib/services/translation/model/solaris-locale.types.js.map +1 -0
  356. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js +1 -0
  357. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js.map +1 -0
  358. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js +96 -0
  359. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js.map +1 -0
  360. package/esm2022/lib/services/translation/model/solaris-translation.types.js +1 -0
  361. package/esm2022/lib/services/translation/model/solaris-translation.types.js.map +1 -0
  362. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js +20 -0
  363. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js.map +1 -0
  364. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js +10 -0
  365. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js.map +1 -0
  366. package/esm2022/lib/services/translation/service/solaris-translate.service.js +87 -0
  367. package/esm2022/lib/services/translation/service/solaris-translate.service.js.map +1 -0
  368. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js +32 -0
  369. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js.map +1 -0
  370. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js +3 -0
  371. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js.map +1 -0
  372. package/esm2022/lib/testing/provide-solaris-testing.js +11 -0
  373. package/esm2022/lib/testing/provide-solaris-testing.js.map +1 -0
  374. package/esm2022/lib/testing/solaris-test-utilities.js +12 -0
  375. package/esm2022/lib/testing/solaris-test-utilities.js.map +1 -0
  376. package/index.d.ts +197 -0
  377. package/lib/components/actions/button/directives/button-icon.directive.d.ts +5 -0
  378. package/lib/components/actions/button/directives/button.directive.d.ts +22 -0
  379. package/lib/components/actions/button/index.d.ts +3 -0
  380. package/lib/components/actions/button/model/button.types.d.ts +5 -0
  381. package/lib/components/actions/button-group/component/button-group.component.d.ts +10 -0
  382. package/lib/components/actions/button-group/model/button-group.types.d.ts +2 -0
  383. package/lib/components/actions/icon-button/directives/icon-button-badge.directive.d.ts +5 -0
  384. package/lib/components/actions/icon-button/directives/icon-button.directive.d.ts +21 -0
  385. package/lib/components/actions/icon-button/model/icon-button.types.d.ts +5 -0
  386. package/lib/components/data-display/badge/component/badge.component.d.ts +12 -0
  387. package/lib/components/data-display/badge/directives/badge-icon.directive.d.ts +5 -0
  388. package/lib/components/data-display/badge/index.d.ts +3 -0
  389. package/lib/components/data-display/badge/model/badge.types.d.ts +6 -0
  390. package/lib/components/data-display/card/component/card.component.d.ts +10 -0
  391. package/lib/components/data-display/card/directives/card-actions.directive.d.ts +5 -0
  392. package/lib/components/data-display/card/directives/card-content.directive.d.ts +5 -0
  393. package/lib/components/data-display/card/directives/card-description.directive.d.ts +5 -0
  394. package/lib/components/data-display/card/directives/card-footer.directive.d.ts +6 -0
  395. package/lib/components/data-display/card/directives/card-header.directive.d.ts +5 -0
  396. package/lib/components/data-display/card/directives/card-media.directive.d.ts +5 -0
  397. package/lib/components/data-display/card/directives/card-title.directive.d.ts +5 -0
  398. package/lib/components/data-display/card/model/card.types.d.ts +4 -0
  399. package/lib/components/data-display/divider/component/divider.component.d.ts +17 -0
  400. package/lib/components/data-display/divider/index.d.ts +2 -0
  401. package/lib/components/data-display/divider/model/divider.types.d.ts +5 -0
  402. package/lib/components/feedback/alert/component/alert-actions.component.d.ts +5 -0
  403. package/lib/components/feedback/alert/component/alert.component.d.ts +26 -0
  404. package/lib/components/feedback/alert/directives/alert-description.directive.d.ts +5 -0
  405. package/lib/components/feedback/alert/directives/alert-title.directive.d.ts +5 -0
  406. package/lib/components/feedback/alert/model/alert.types.d.ts +5 -0
  407. package/lib/components/feedback/skeleton/component/skeleton.component.d.ts +17 -0
  408. package/lib/components/feedback/skeleton/model/skeleton.types.d.ts +5 -0
  409. package/lib/components/feedback/toast/component/toast.component.d.ts +62 -0
  410. package/lib/components/feedback/toast/container/toast-container.component.d.ts +10 -0
  411. package/lib/components/feedback/toast/model/toast.types.d.ts +106 -0
  412. package/lib/components/feedback/toast/provider/provide-solaris-toast.d.ts +3 -0
  413. package/lib/components/feedback/toast/service/toast.service.d.ts +36 -0
  414. package/lib/components/feedback/toast/token/toast.tokens.d.ts +5 -0
  415. package/lib/components/forms/checkbox/component/checkbox.component.d.ts +70 -0
  416. package/lib/components/forms/checkbox/model/checkbox.types.d.ts +5 -0
  417. package/lib/components/forms/checkbox-group/component/checkbox-group.component.d.ts +123 -0
  418. package/lib/components/forms/checkbox-group/model/checkbox-group.types.d.ts +5 -0
  419. package/lib/components/forms/email-field/component/email-field.component.d.ts +67 -0
  420. package/lib/components/forms/email-field/model/email-field.types.d.ts +6 -0
  421. package/lib/components/forms/email-field/validators/email-field.validators.d.ts +8 -0
  422. package/lib/components/forms/form-field/component/form-error.component.d.ts +5 -0
  423. package/lib/components/forms/form-field/component/form-field.component.d.ts +96 -0
  424. package/lib/components/forms/form-field/component/form-hint.component.d.ts +5 -0
  425. package/lib/components/forms/form-field/component/form-label.component.d.ts +5 -0
  426. package/lib/components/forms/form-field/directives/form-field-trigger.directive.d.ts +5 -0
  427. package/lib/components/forms/form-field/directives/form-prefix.directive.d.ts +5 -0
  428. package/lib/components/forms/form-field/directives/form-suffix.directive.d.ts +5 -0
  429. package/lib/components/forms/form-field/index.d.ts +8 -0
  430. package/lib/components/forms/form-field/model/form-control.contract.d.ts +11 -0
  431. package/lib/components/forms/form-field/model/form-field.types.d.ts +5 -0
  432. package/lib/components/forms/input/directives/input.directive.d.ts +37 -0
  433. package/lib/components/forms/input/index.d.ts +2 -0
  434. package/lib/components/forms/input/model/input.defaults.d.ts +2 -0
  435. package/lib/components/forms/input/model/input.types.d.ts +4 -0
  436. package/lib/components/forms/multi-select/component/multi-select.component.d.ts +199 -0
  437. package/lib/components/forms/multi-select/model/multi-select.types.d.ts +5 -0
  438. package/lib/components/forms/option/component/option.component.d.ts +58 -0
  439. package/lib/components/forms/option/directives/option-slots.directive.d.ts +21 -0
  440. package/lib/components/forms/option/index.d.ts +3 -0
  441. package/lib/components/forms/option/model/option.types.d.ts +3 -0
  442. package/lib/components/forms/option-group/component/option-group.component.d.ts +32 -0
  443. package/lib/components/forms/option-group/index.d.ts +2 -0
  444. package/lib/components/forms/option-group/model/option-group.types.d.ts +2 -0
  445. package/lib/components/forms/password-field/component/password-field.component.d.ts +81 -0
  446. package/lib/components/forms/password-field/model/password-field-constants.d.ts +4 -0
  447. package/lib/components/forms/password-field/model/password-field.types.d.ts +6 -0
  448. package/lib/components/forms/password-field/model/password-policy.types.d.ts +10 -0
  449. package/lib/components/forms/password-field/model/password-strength.d.ts +2 -0
  450. package/lib/components/forms/password-field/validators/password.validator.d.ts +3 -0
  451. package/lib/components/forms/radio/component/radio.component.d.ts +68 -0
  452. package/lib/components/forms/radio/model/radio.types.d.ts +4 -0
  453. package/lib/components/forms/radio-group/component/radio-group.component.d.ts +86 -0
  454. package/lib/components/forms/radio-group/model/radio-group.token.d.ts +2 -0
  455. package/lib/components/forms/radio-group/model/radio-group.types.d.ts +5 -0
  456. package/lib/components/forms/select/component/select.component.d.ts +158 -0
  457. package/lib/components/forms/select/model/select.types.d.ts +4 -0
  458. package/lib/components/forms/switch/component/switch.component.d.ts +66 -0
  459. package/lib/components/forms/switch/index.d.ts +2 -0
  460. package/lib/components/forms/switch/model/switch.types.d.ts +4 -0
  461. package/lib/components/forms/switch-group/component/switch-group.component.d.ts +91 -0
  462. package/lib/components/forms/switch-group/model/switch-group.types.d.ts +5 -0
  463. package/lib/components/forms/textarea/directives/textarea.directive.d.ts +37 -0
  464. package/lib/components/forms/textarea/model/textarea.types.d.ts +5 -0
  465. package/lib/components/icon/component/solaris-icon.component.d.ts +13 -0
  466. package/lib/components/icon/index.d.ts +1 -0
  467. package/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.d.ts +10 -0
  468. package/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.d.ts +28 -0
  469. package/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.d.ts +7 -0
  470. package/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.d.ts +21 -0
  471. package/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.d.ts +21 -0
  472. package/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.d.ts +68 -0
  473. package/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.d.ts +61 -0
  474. package/lib/components/interaction/dropdown-menu/index.d.ts +9 -0
  475. package/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.d.ts +8 -0
  476. package/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.d.ts +11 -0
  477. package/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.d.ts +2 -0
  478. package/lib/components/interaction/popover/component/popover-panel.component.d.ts +10 -0
  479. package/lib/components/interaction/popover/directives/popover-trigger.directive.d.ts +65 -0
  480. package/lib/components/interaction/popover/directives/popover.directive.d.ts +7 -0
  481. package/lib/components/interaction/popover/index.d.ts +4 -0
  482. package/lib/components/interaction/popover/model/popover-position.d.ts +4 -0
  483. package/lib/components/interaction/popover/model/popover.types.d.ts +7 -0
  484. package/lib/components/interaction/popover/token/popover.tokens.d.ts +12 -0
  485. package/lib/components/interaction/tooltip/component/tooltip-panel.component.d.ts +9 -0
  486. package/lib/components/interaction/tooltip/directive/tooltip.directive.d.ts +80 -0
  487. package/lib/components/interaction/tooltip/index.d.ts +3 -0
  488. package/lib/components/interaction/tooltip/model/tooltip-position.d.ts +5 -0
  489. package/lib/components/interaction/tooltip/model/tooltip.types.d.ts +22 -0
  490. package/lib/components/interaction/tooltip/token/tooltip.tokens.d.ts +21 -0
  491. package/lib/components/navigation/editable-tabs/component/editable-tabs.component.d.ts +69 -0
  492. package/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.d.ts +20 -0
  493. package/lib/components/navigation/editable-tabs/model/editable-tabs.types.d.ts +60 -0
  494. package/lib/components/navigation/segmented-control/component/segmented-control.component.d.ts +64 -0
  495. package/lib/components/navigation/segmented-control/item/segmented-item.component.d.ts +35 -0
  496. package/lib/components/navigation/segmented-control/model/segmented-control.types.d.ts +12 -0
  497. package/lib/components/navigation/segmented-control/token/segmented-control.tokens.d.ts +22 -0
  498. package/lib/components/navigation/stepper/actions/stepper-actions.component.d.ts +7 -0
  499. package/lib/components/navigation/stepper/component/stepper.component.d.ts +36 -0
  500. package/lib/components/navigation/stepper/content/stepper-content.component.d.ts +5 -0
  501. package/lib/components/navigation/stepper/model/stepper.types.d.ts +15 -0
  502. package/lib/components/navigation/stepper/step/step.component.d.ts +27 -0
  503. package/lib/components/navigation/stepper/token/stepper.tokens.d.ts +13 -0
  504. package/lib/components/navigation/tabs/component/tabs.component.d.ts +47 -0
  505. package/lib/components/navigation/tabs/index.d.ts +6 -0
  506. package/lib/components/navigation/tabs/model/tabs.types.d.ts +17 -0
  507. package/lib/components/navigation/tabs/tab/tab.component.d.ts +38 -0
  508. package/lib/components/navigation/tabs/tab-panel/tab-panel.component.d.ts +15 -0
  509. package/lib/components/navigation/tabs/token/tabs.tokens.d.ts +19 -0
  510. package/lib/components/overlay/dialog/component/dialog.component.d.ts +29 -0
  511. package/lib/components/overlay/dialog/components/dialog-actions.component.d.ts +12 -0
  512. package/lib/components/overlay/dialog/components/dialog-content.component.d.ts +5 -0
  513. package/lib/components/overlay/dialog/components/dialog-header.component.d.ts +19 -0
  514. package/lib/components/overlay/dialog/container/dialog-container.component.d.ts +32 -0
  515. package/lib/components/overlay/dialog/flow/dialog-flow.component.d.ts +19 -0
  516. package/lib/components/overlay/dialog/flow/dialog-step.component.d.ts +7 -0
  517. package/lib/components/overlay/dialog/model/dialog.types.d.ts +87 -0
  518. package/lib/components/overlay/dialog/provider/provide-solaris-dialog.d.ts +3 -0
  519. package/lib/components/overlay/dialog/service/dialog-ref.d.ts +11 -0
  520. package/lib/components/overlay/dialog/service/dialog.service.d.ts +20 -0
  521. package/lib/components/overlay/dialog/token/dialog-data.token.d.ts +4 -0
  522. package/lib/components/overlay/dialog/token/dialog.tokens.d.ts +4 -0
  523. package/lib/services/accessibility/directives/visually-hidden.directive.d.ts +5 -0
  524. package/lib/services/accessibility/model/solaris-accessibility-config.interface.d.ts +4 -0
  525. package/lib/services/accessibility/model/solaris-accessibility.types.d.ts +5 -0
  526. package/lib/services/accessibility/provider/provide-solaris-accessibility.d.ts +3 -0
  527. package/lib/services/accessibility/service/solaris-accessibility.service.d.ts +15 -0
  528. package/lib/services/accessibility/testing/solaris-accessibility-testing.provider.d.ts +3 -0
  529. package/lib/services/accessibility/token/solaris-accessibility.tokens.d.ts +3 -0
  530. package/lib/services/icon/icons/groups/actions.d.ts +2 -0
  531. package/lib/services/icon/icons/groups/data.d.ts +2 -0
  532. package/lib/services/icon/icons/groups/layout.d.ts +2 -0
  533. package/lib/services/icon/icons/groups/navigation.d.ts +2 -0
  534. package/lib/services/icon/icons/groups/status.d.ts +2 -0
  535. package/lib/services/icon/icons/groups/theme.d.ts +2 -0
  536. package/lib/services/icon/icons/index.d.ts +1 -0
  537. package/lib/services/icon/icons/solaris-built-in-icons.d.ts +2 -0
  538. package/lib/services/icon/index.d.ts +8 -0
  539. package/lib/services/icon/model/solaris-icon-definition.interface.d.ts +45 -0
  540. package/lib/services/icon/model/solaris-icon.types.d.ts +4 -0
  541. package/lib/services/icon/provider/provide-solaris-icons.d.ts +3 -0
  542. package/lib/services/icon/service/solaris-icon-registry.service.d.ts +12 -0
  543. package/lib/services/icon/token/solaris-icon.tokens.d.ts +6 -0
  544. package/lib/services/theme/model/solaris-theme-config.interface.d.ts +5 -0
  545. package/lib/services/theme/model/solaris-theme.types.d.ts +3 -0
  546. package/lib/services/theme/provider/provide-solaris-theme.d.ts +3 -0
  547. package/lib/services/theme/service/solaris-theme.service.d.ts +9 -0
  548. package/lib/services/theme/testing/solaris-theme-testing.provider.d.ts +3 -0
  549. package/lib/services/theme/token/solaris-theme.tokens.d.ts +3 -0
  550. package/lib/services/translation/index.d.ts +8 -0
  551. package/lib/services/translation/model/solaris-locale.types.d.ts +4 -0
  552. package/lib/services/translation/model/solaris-translate-config.interface.d.ts +8 -0
  553. package/lib/services/translation/model/solaris-translate-defaults.d.ts +2 -0
  554. package/lib/services/translation/model/solaris-translation.types.d.ts +3 -0
  555. package/lib/services/translation/pipe/solaris-translate.pipe.d.ts +8 -0
  556. package/lib/services/translation/provider/provide-solaris-translate.d.ts +3 -0
  557. package/lib/services/translation/service/solaris-translate.service.d.ts +15 -0
  558. package/lib/services/translation/testing/solaris-translate-testing.provider.d.ts +3 -0
  559. package/lib/services/translation/token/solaris-translate.tokens.d.ts +3 -0
  560. package/lib/testing/provide-solaris-testing.d.ts +10 -0
  561. package/lib/testing/solaris-test-utilities.d.ts +3 -0
  562. package/package.json +9 -5
  563. package/styles/_button.scss +50 -220
  564. package/styles/_core.scss +37 -37
  565. package/styles/_dropdown-menu.scss +72 -0
  566. package/styles/_icon-button.scss +43 -219
  567. package/styles/_index.scss +19 -19
  568. package/styles/_input.scss +255 -0
  569. package/styles/_popover.scss +73 -0
  570. package/styles/_theme.scss +36 -36
  571. package/styles/_toast.scss +9 -0
  572. package/styles/_tooltip.scss +3 -0
  573. package/fesm2022/educarehq-solaris-ui.mjs +0 -1047
  574. package/fesm2022/educarehq-solaris-ui.mjs.map +0 -1
  575. package/types/educarehq-solaris-ui.d.ts +0 -408
@@ -0,0 +1,23 @@
1
+ import { Component, inject, ChangeDetectorRef } from '@angular/core';
2
+ import { NgTemplateOutlet } from '@angular/common';
3
+ import { SolarisIconComponent } from '../../../icon';
4
+ import { SOLARIS_TOOLTIP_PANEL_DATA, } from '../token/tooltip.tokens';
5
+ import * as i0 from "@angular/core";
6
+ export class SolarisTooltipPanelComponent {
7
+ data = inject(SOLARIS_TOOLTIP_PANEL_DATA);
8
+ cdr = inject(ChangeDetectorRef);
9
+ updatePlacement(placement, arrowClass) {
10
+ this.data.placement = placement;
11
+ this.data.arrowClass = arrowClass;
12
+ this.cdr.markForCheck();
13
+ }
14
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisTooltipPanelComponent, isStandalone: true, selector: "solaris-tooltip-panel", host: { classAttribute: "solaris-tooltip-panel" }, ngImport: i0, template: "<div\n class=\"solaris-tooltip-panel__container\"\n [attr.data-appearance]=\"data.appearance\"\n [attr.data-size]=\"data.size\"\n [attr.data-radius]=\"data.radius\"\n [attr.data-placement]=\"data.placement\"\n [id]=\"data.panelId\"\n [style.max-width]=\"data.maxWidth\"\n>\n @if (data.arrow) {\n <div class=\"solaris-tooltip-panel__arrow {{ data.arrowClass }}\"></div>\n }\n\n <div class=\"solaris-tooltip-panel__content\">\n @if (data.icon) {\n <solaris-icon\n [name]=\"data.icon\"\n [decorative]=\"data.iconDecorative\"\n class=\"solaris-tooltip-panel__icon\"\n />\n }\n\n <div class=\"solaris-tooltip-panel__text\">\n @if (data.title) {\n <div class=\"solaris-tooltip-panel__title\">{{ data.title }}</div>\n }\n\n @if (data.body) {\n <div class=\"solaris-tooltip-panel__body\">{{ data.body }}</div>\n }\n\n @if (data.contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"data.contentTemplate\" />\n }\n </div>\n </div>\n\n @if (data.closeable) {\n <button\n class=\"solaris-tooltip-panel__close\"\n type=\"button\"\n (click)=\"data.close()\"\n attr.aria-label=\"{{ data.closeLabel }}\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n</div>\n", styles: [".solaris-tooltip-panel{--solaris-tooltip-max-width: 32rem;--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;--solaris-tooltip-gap: var(--solaris-spacing-5);--solaris-tooltip-shadow: var(--solaris-shadow-sm);--solaris-tooltip-radius: var(--solaris-radius-md);--solaris-tooltip-color: var(--solaris-text-default);--solaris-tooltip-icon-size: var(--solaris-font-size-md);--solaris-tooltip-arrow-size: var(--solaris-font-size-xs);--solaris-tooltip-padding-block: var(--solaris-spacing-3);--solaris-tooltip-padding-inline: var(--solaris-spacing-5);--solaris-tooltip-background: var(--solaris-surface-raised);--solaris-tooltip-offset: calc(var(--solaris-spacing-1) / 2);outline:none;display:block}.solaris-tooltip-panel__container{--solaris-tooltip-background: var(--solaris-surface-raised);display:flex;outline:none;overflow:visible;position:relative;word-break:normal;white-space:normal;box-sizing:border-box;align-items:flex-start;gap:var(--solaris-tooltip-gap);color:var(--solaris-tooltip-color);box-shadow:var(--solaris-tooltip-shadow);line-height:var(--solaris-line-height-md);max-width:var(--solaris-tooltip-max-width);border-radius:var(--solaris-tooltip-radius);background:var(--solaris-tooltip-background);padding-block:var(--solaris-tooltip-padding-block);padding-inline:var(--solaris-tooltip-padding-inline);border:var(--solaris-tooltip-border-width) solid var(--solaris-tooltip-border-color)}.solaris-tooltip-panel__arrow{--solaris-tooltip-arrow-outer-size: calc( var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-border-width, 0px) + var(--solaris-tooltip-border-width, 0px) );width:0;height:0;position:absolute;pointer-events:none}.solaris-tooltip-panel__arrow:before,.solaris-tooltip-panel__arrow:after{width:0;height:0;content:\"\";position:absolute;border-style:solid}.solaris-tooltip-arrow--bottom{left:50%;transform:translate(-50%);bottom:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--bottom:before,.solaris-tooltip-arrow--bottom:after{left:50%;transform:translate(-50%);top:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--bottom:before{border-width:var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) 0;border-color:var(--solaris-tooltip-border-color) transparent transparent}.solaris-tooltip-arrow--bottom:after{border-width:var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) 0;border-color:var(--solaris-tooltip-background) transparent transparent}.solaris-tooltip-arrow--top{left:50%;transform:translate(-50%);top:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--top:before,.solaris-tooltip-arrow--top:after{left:50%;transform:translate(-50%);bottom:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--top:before{border-width:0 var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size);border-color:transparent transparent var(--solaris-tooltip-border-color)}.solaris-tooltip-arrow--top:after{border-width:0 var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size);border-color:transparent transparent var(--solaris-tooltip-background)}.solaris-tooltip-arrow--right{top:50%;transform:translateY(-50%);right:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--right:before,.solaris-tooltip-arrow--right:after{top:50%;transform:translateY(-50%);left:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--right:before{border-width:var(--solaris-tooltip-arrow-outer-size) 0 var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size);border-color:transparent transparent transparent var(--solaris-tooltip-border-color)}.solaris-tooltip-arrow--right:after{border-width:var(--solaris-tooltip-arrow-size) 0 var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size);border-color:transparent transparent transparent var(--solaris-tooltip-background)}.solaris-tooltip-arrow--left{top:50%;transform:translateY(-50%);left:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--left:before,.solaris-tooltip-arrow--left:after{top:50%;transform:translateY(-50%);right:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--left:before{border-width:var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) 0;border-color:transparent var(--solaris-tooltip-border-color) transparent transparent}.solaris-tooltip-arrow--left:after{border-width:var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) 0;border-color:transparent var(--solaris-tooltip-background) transparent transparent}.solaris-tooltip-panel__container[data-placement=top-start] .solaris-tooltip-arrow--bottom,.solaris-tooltip-panel__container[data-placement=bottom-start] .solaris-tooltip-arrow--top{left:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=top-end] .solaris-tooltip-arrow--bottom,.solaris-tooltip-panel__container[data-placement=bottom-end] .solaris-tooltip-arrow--top{left:auto;right:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=left-start] .solaris-tooltip-arrow--right,.solaris-tooltip-panel__container[data-placement=right-start] .solaris-tooltip-arrow--left{top:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=left-end] .solaris-tooltip-arrow--right,.solaris-tooltip-panel__container[data-placement=right-end] .solaris-tooltip-arrow--left{top:auto;bottom:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__content{flex:1;min-width:0;display:flex;align-items:flex-start;gap:var(--solaris-tooltip-gap)}.solaris-tooltip-panel__icon{flex-shrink:0;display:inline-flex;margin-top:var(--solaris-tooltip-offset);font-size:var(--solaris-tooltip-icon-size);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__text{min-width:0;display:flex;gap:var(--solaris-tooltip-offset);flex-direction:column}.solaris-tooltip-panel__title{overflow:hidden;font-weight:var(--solaris-font-weight-semibold);white-space:nowrap;text-overflow:ellipsis}.solaris-tooltip-panel__body{word-break:normal;white-space:normal}.solaris-tooltip-panel__close{opacity:.7;border:none;flex-shrink:0;color:inherit;cursor:pointer;background:none;padding:0;border-radius:50%;align-items:center;display:inline-flex;margin-top:var(--solaris-tooltip-offset);justify-content:center;font-size:var(--solaris-tooltip-icon-size);transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__close:hover,.solaris-tooltip-panel__close:focus-visible{opacity:1}.solaris-tooltip-panel__container[data-appearance=outline]{--solaris-tooltip-border-color: var(--solaris-border-default);--solaris-tooltip-border-width: var(--solaris-border-width-sm);background:var(--solaris-tooltip-background);border:var(--solaris-tooltip-border-width) solid var(--solaris-tooltip-border-color)}.solaris-tooltip-panel__container[data-appearance=surface]{--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;border:0;background:var(--solaris-tooltip-background)}.solaris-tooltip-panel__container[data-appearance=inverse]{--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;--solaris-tooltip-background: var(--solaris-text-default);border:0;color:var(--solaris-surface-raised);background:var(--solaris-tooltip-background)}.solaris-tooltip-panel__container[data-size=sm]{padding-block:var(--solaris-spacing-2);padding-inline:var(--solaris-spacing-5);font-size:var(--solaris-font-size-xs);--solaris-tooltip-arrow-size: var(--solaris-font-size-2xs)}.solaris-tooltip-panel__container[data-size=md]{padding-block:var(--solaris-spacing-3);padding-inline:var(--solaris-spacing-6);font-size:var(--solaris-font-size-sm);--solaris-tooltip-arrow-size: var(--solaris-font-size-xs)}.solaris-tooltip-panel__container[data-size=lg]{padding-block:var(--solaris-spacing-4);padding-inline:var(--solaris-spacing-8);font-size:var(--solaris-font-size-md);--solaris-tooltip-arrow-size: var(--solaris-font-size-md)}.solaris-tooltip-panel__container[data-size=sm] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=sm] .solaris-tooltip-panel__close{font-size:var(--solaris-tooltip-icon-size);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__container[data-size=md] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=md] .solaris-tooltip-panel__close{font-size:var(--solaris-font-size-xl);width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}.solaris-tooltip-panel__container[data-size=lg] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=lg] .solaris-tooltip-panel__close{font-size:var(--solaris-font-size-2xl);width:var(--solaris-font-size-2xl);height:var(--solaris-font-size-2xl)}.solaris-tooltip-panel__container[data-radius=sm]{border-radius:var(--solaris-radius-sm)}.solaris-tooltip-panel__container[data-radius=md]{border-radius:var(--solaris-radius-md)}.solaris-tooltip-panel__container[data-radius=lg]{border-radius:var(--solaris-radius-lg)}@media(prefers-reduced-motion:reduce){.solaris-tooltip-panel__close{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SolarisIconComponent, selector: "solaris-icon", inputs: ["name", "ariaLabel", "decorative"] }] });
16
+ }
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTooltipPanelComponent, decorators: [{
18
+ type: Component,
19
+ args: [{ selector: 'solaris-tooltip-panel', standalone: true, imports: [NgTemplateOutlet, SolarisIconComponent], host: {
20
+ class: 'solaris-tooltip-panel',
21
+ }, template: "<div\n class=\"solaris-tooltip-panel__container\"\n [attr.data-appearance]=\"data.appearance\"\n [attr.data-size]=\"data.size\"\n [attr.data-radius]=\"data.radius\"\n [attr.data-placement]=\"data.placement\"\n [id]=\"data.panelId\"\n [style.max-width]=\"data.maxWidth\"\n>\n @if (data.arrow) {\n <div class=\"solaris-tooltip-panel__arrow {{ data.arrowClass }}\"></div>\n }\n\n <div class=\"solaris-tooltip-panel__content\">\n @if (data.icon) {\n <solaris-icon\n [name]=\"data.icon\"\n [decorative]=\"data.iconDecorative\"\n class=\"solaris-tooltip-panel__icon\"\n />\n }\n\n <div class=\"solaris-tooltip-panel__text\">\n @if (data.title) {\n <div class=\"solaris-tooltip-panel__title\">{{ data.title }}</div>\n }\n\n @if (data.body) {\n <div class=\"solaris-tooltip-panel__body\">{{ data.body }}</div>\n }\n\n @if (data.contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"data.contentTemplate\" />\n }\n </div>\n </div>\n\n @if (data.closeable) {\n <button\n class=\"solaris-tooltip-panel__close\"\n type=\"button\"\n (click)=\"data.close()\"\n attr.aria-label=\"{{ data.closeLabel }}\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n</div>\n", styles: [".solaris-tooltip-panel{--solaris-tooltip-max-width: 32rem;--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;--solaris-tooltip-gap: var(--solaris-spacing-5);--solaris-tooltip-shadow: var(--solaris-shadow-sm);--solaris-tooltip-radius: var(--solaris-radius-md);--solaris-tooltip-color: var(--solaris-text-default);--solaris-tooltip-icon-size: var(--solaris-font-size-md);--solaris-tooltip-arrow-size: var(--solaris-font-size-xs);--solaris-tooltip-padding-block: var(--solaris-spacing-3);--solaris-tooltip-padding-inline: var(--solaris-spacing-5);--solaris-tooltip-background: var(--solaris-surface-raised);--solaris-tooltip-offset: calc(var(--solaris-spacing-1) / 2);outline:none;display:block}.solaris-tooltip-panel__container{--solaris-tooltip-background: var(--solaris-surface-raised);display:flex;outline:none;overflow:visible;position:relative;word-break:normal;white-space:normal;box-sizing:border-box;align-items:flex-start;gap:var(--solaris-tooltip-gap);color:var(--solaris-tooltip-color);box-shadow:var(--solaris-tooltip-shadow);line-height:var(--solaris-line-height-md);max-width:var(--solaris-tooltip-max-width);border-radius:var(--solaris-tooltip-radius);background:var(--solaris-tooltip-background);padding-block:var(--solaris-tooltip-padding-block);padding-inline:var(--solaris-tooltip-padding-inline);border:var(--solaris-tooltip-border-width) solid var(--solaris-tooltip-border-color)}.solaris-tooltip-panel__arrow{--solaris-tooltip-arrow-outer-size: calc( var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-border-width, 0px) + var(--solaris-tooltip-border-width, 0px) );width:0;height:0;position:absolute;pointer-events:none}.solaris-tooltip-panel__arrow:before,.solaris-tooltip-panel__arrow:after{width:0;height:0;content:\"\";position:absolute;border-style:solid}.solaris-tooltip-arrow--bottom{left:50%;transform:translate(-50%);bottom:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--bottom:before,.solaris-tooltip-arrow--bottom:after{left:50%;transform:translate(-50%);top:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--bottom:before{border-width:var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) 0;border-color:var(--solaris-tooltip-border-color) transparent transparent}.solaris-tooltip-arrow--bottom:after{border-width:var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) 0;border-color:var(--solaris-tooltip-background) transparent transparent}.solaris-tooltip-arrow--top{left:50%;transform:translate(-50%);top:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--top:before,.solaris-tooltip-arrow--top:after{left:50%;transform:translate(-50%);bottom:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--top:before{border-width:0 var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size);border-color:transparent transparent var(--solaris-tooltip-border-color)}.solaris-tooltip-arrow--top:after{border-width:0 var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size);border-color:transparent transparent var(--solaris-tooltip-background)}.solaris-tooltip-arrow--right{top:50%;transform:translateY(-50%);right:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--right:before,.solaris-tooltip-arrow--right:after{top:50%;transform:translateY(-50%);left:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--right:before{border-width:var(--solaris-tooltip-arrow-outer-size) 0 var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size);border-color:transparent transparent transparent var(--solaris-tooltip-border-color)}.solaris-tooltip-arrow--right:after{border-width:var(--solaris-tooltip-arrow-size) 0 var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size);border-color:transparent transparent transparent var(--solaris-tooltip-background)}.solaris-tooltip-arrow--left{top:50%;transform:translateY(-50%);left:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--left:before,.solaris-tooltip-arrow--left:after{top:50%;transform:translateY(-50%);right:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--left:before{border-width:var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) 0;border-color:transparent var(--solaris-tooltip-border-color) transparent transparent}.solaris-tooltip-arrow--left:after{border-width:var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) 0;border-color:transparent var(--solaris-tooltip-background) transparent transparent}.solaris-tooltip-panel__container[data-placement=top-start] .solaris-tooltip-arrow--bottom,.solaris-tooltip-panel__container[data-placement=bottom-start] .solaris-tooltip-arrow--top{left:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=top-end] .solaris-tooltip-arrow--bottom,.solaris-tooltip-panel__container[data-placement=bottom-end] .solaris-tooltip-arrow--top{left:auto;right:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=left-start] .solaris-tooltip-arrow--right,.solaris-tooltip-panel__container[data-placement=right-start] .solaris-tooltip-arrow--left{top:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=left-end] .solaris-tooltip-arrow--right,.solaris-tooltip-panel__container[data-placement=right-end] .solaris-tooltip-arrow--left{top:auto;bottom:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__content{flex:1;min-width:0;display:flex;align-items:flex-start;gap:var(--solaris-tooltip-gap)}.solaris-tooltip-panel__icon{flex-shrink:0;display:inline-flex;margin-top:var(--solaris-tooltip-offset);font-size:var(--solaris-tooltip-icon-size);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__text{min-width:0;display:flex;gap:var(--solaris-tooltip-offset);flex-direction:column}.solaris-tooltip-panel__title{overflow:hidden;font-weight:var(--solaris-font-weight-semibold);white-space:nowrap;text-overflow:ellipsis}.solaris-tooltip-panel__body{word-break:normal;white-space:normal}.solaris-tooltip-panel__close{opacity:.7;border:none;flex-shrink:0;color:inherit;cursor:pointer;background:none;padding:0;border-radius:50%;align-items:center;display:inline-flex;margin-top:var(--solaris-tooltip-offset);justify-content:center;font-size:var(--solaris-tooltip-icon-size);transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__close:hover,.solaris-tooltip-panel__close:focus-visible{opacity:1}.solaris-tooltip-panel__container[data-appearance=outline]{--solaris-tooltip-border-color: var(--solaris-border-default);--solaris-tooltip-border-width: var(--solaris-border-width-sm);background:var(--solaris-tooltip-background);border:var(--solaris-tooltip-border-width) solid var(--solaris-tooltip-border-color)}.solaris-tooltip-panel__container[data-appearance=surface]{--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;border:0;background:var(--solaris-tooltip-background)}.solaris-tooltip-panel__container[data-appearance=inverse]{--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;--solaris-tooltip-background: var(--solaris-text-default);border:0;color:var(--solaris-surface-raised);background:var(--solaris-tooltip-background)}.solaris-tooltip-panel__container[data-size=sm]{padding-block:var(--solaris-spacing-2);padding-inline:var(--solaris-spacing-5);font-size:var(--solaris-font-size-xs);--solaris-tooltip-arrow-size: var(--solaris-font-size-2xs)}.solaris-tooltip-panel__container[data-size=md]{padding-block:var(--solaris-spacing-3);padding-inline:var(--solaris-spacing-6);font-size:var(--solaris-font-size-sm);--solaris-tooltip-arrow-size: var(--solaris-font-size-xs)}.solaris-tooltip-panel__container[data-size=lg]{padding-block:var(--solaris-spacing-4);padding-inline:var(--solaris-spacing-8);font-size:var(--solaris-font-size-md);--solaris-tooltip-arrow-size: var(--solaris-font-size-md)}.solaris-tooltip-panel__container[data-size=sm] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=sm] .solaris-tooltip-panel__close{font-size:var(--solaris-tooltip-icon-size);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__container[data-size=md] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=md] .solaris-tooltip-panel__close{font-size:var(--solaris-font-size-xl);width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}.solaris-tooltip-panel__container[data-size=lg] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=lg] .solaris-tooltip-panel__close{font-size:var(--solaris-font-size-2xl);width:var(--solaris-font-size-2xl);height:var(--solaris-font-size-2xl)}.solaris-tooltip-panel__container[data-radius=sm]{border-radius:var(--solaris-radius-sm)}.solaris-tooltip-panel__container[data-radius=md]{border-radius:var(--solaris-radius-md)}.solaris-tooltip-panel__container[data-radius=lg]{border-radius:var(--solaris-radius-lg)}@media(prefers-reduced-motion:reduce){.solaris-tooltip-panel__close{transition:none}}\n"] }]
22
+ }] });
23
+ //# sourceMappingURL=tooltip-panel.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-panel.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/interaction/tooltip/component/tooltip-panel.component.ts","../../../../../../../../../packages/angular/src/lib/components/interaction/tooltip/component/tooltip-panel.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EACL,0BAA0B,GAE3B,MAAM,yBAAyB,CAAC;;AAYjC,MAAM,OAAO,4BAA4B;IAC9B,IAAI,GAA4B,MAAM,CAAC,0BAA0B,CAAC,CAAC;IAC3D,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAEjD,eAAe,CAAC,SAAiB,EAAE,UAAkB;QACnD,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAClC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;IAC1B,CAAC;wGARU,4BAA4B;4FAA5B,4BAA4B,oICpBzC,syCAgDA,wgTDnCY,gBAAgB,oJAAE,oBAAoB;;4FAOrC,4BAA4B;kBAVxC,SAAS;+BACE,uBAAuB,cACrB,IAAI,WACP,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,QAG3C;wBACJ,KAAK,EAAE,uBAAuB;qBAC/B","sourcesContent":["import { Component, inject, ChangeDetectorRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\nimport { SolarisIconComponent } from '../../../icon';\n\nimport {\n SOLARIS_TOOLTIP_PANEL_DATA,\n type SolarisTooltipPanelData,\n} from '../token/tooltip.tokens';\n\n@Component({\n selector: 'solaris-tooltip-panel',\n standalone: true,\n imports: [NgTemplateOutlet, SolarisIconComponent],\n templateUrl: './tooltip-panel.component.html',\n styleUrls: ['./tooltip-panel.component.scss'],\n host: {\n class: 'solaris-tooltip-panel',\n },\n})\nexport class SolarisTooltipPanelComponent {\n readonly data: SolarisTooltipPanelData = inject(SOLARIS_TOOLTIP_PANEL_DATA);\n private readonly cdr = inject(ChangeDetectorRef);\n\n updatePlacement(placement: string, arrowClass: string): void {\n this.data.placement = placement;\n this.data.arrowClass = arrowClass;\n this.cdr.markForCheck();\n }\n}\n","<div\n class=\"solaris-tooltip-panel__container\"\n [attr.data-appearance]=\"data.appearance\"\n [attr.data-size]=\"data.size\"\n [attr.data-radius]=\"data.radius\"\n [attr.data-placement]=\"data.placement\"\n [id]=\"data.panelId\"\n [style.max-width]=\"data.maxWidth\"\n>\n @if (data.arrow) {\n <div class=\"solaris-tooltip-panel__arrow {{ data.arrowClass }}\"></div>\n }\n\n <div class=\"solaris-tooltip-panel__content\">\n @if (data.icon) {\n <solaris-icon\n [name]=\"data.icon\"\n [decorative]=\"data.iconDecorative\"\n class=\"solaris-tooltip-panel__icon\"\n />\n }\n\n <div class=\"solaris-tooltip-panel__text\">\n @if (data.title) {\n <div class=\"solaris-tooltip-panel__title\">{{ data.title }}</div>\n }\n\n @if (data.body) {\n <div class=\"solaris-tooltip-panel__body\">{{ data.body }}</div>\n }\n\n @if (data.contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"data.contentTemplate\" />\n }\n </div>\n </div>\n\n @if (data.closeable) {\n <button\n class=\"solaris-tooltip-panel__close\"\n type=\"button\"\n (click)=\"data.close()\"\n attr.aria-label=\"{{ data.closeLabel }}\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n</div>\n"]}
@@ -0,0 +1,405 @@
1
+ import { Directive, ElementRef, Injector, ViewContainerRef, computed, effect, inject, input, output, signal, DestroyRef, HostListener, booleanAttribute, numberAttribute, NgZone, } from '@angular/core';
2
+ import { DOCUMENT } from '@angular/common';
3
+ import { Overlay, OverlayConfig, } from '@angular/cdk/overlay';
4
+ import { ComponentPortal } from '@angular/cdk/portal';
5
+ import { SolarisTranslateService } from '../../../../services/translation';
6
+ import { SolarisTooltipPanelComponent } from '../component/tooltip-panel.component';
7
+ import { SOLARIS_TOOLTIP_PANEL_DATA, } from '../token/tooltip.tokens';
8
+ import { getTooltipPositions, getTooltipArrowClass, derivePlacementFromConnectionPair, } from '../model/tooltip-position';
9
+ import * as i0 from "@angular/core";
10
+ let nextPanelId = 0;
11
+ const TOOLTIP_TRIGGER_GAP = 3;
12
+ const ARROW_SIZE_PX = {
13
+ sm: 12,
14
+ md: 20,
15
+ lg: 24,
16
+ };
17
+ export class SolarisTooltipDirective {
18
+ overlay = inject(Overlay);
19
+ elementRef = inject(ElementRef);
20
+ viewContainerRef = inject(ViewContainerRef);
21
+ injector = inject(Injector);
22
+ document = inject(DOCUMENT);
23
+ destroyRef = inject(DestroyRef);
24
+ translate = inject(SolarisTranslateService);
25
+ ngZone = inject(NgZone);
26
+ panelId = `solaris-tooltip-panel-${++nextPanelId}`;
27
+ isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
28
+ isClickTrigger = computed(() => this.solarisTooltipTrigger() === 'click', ...(ngDevMode ? [{ debugName: "isClickTrigger" }] : /* istanbul ignore next */ []));
29
+ overlayRef = null;
30
+ outsideClickCleanup = null;
31
+ previousActiveElement = null;
32
+ hoverTimeout = null;
33
+ isHovered = false;
34
+ isFocused = false;
35
+ tooltipComponentRef = null;
36
+ positionChangesSub = null;
37
+ currentPlacement = 'top';
38
+ solarisTooltip = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltip" } : /* istanbul ignore next */ {}), alias: 'solarisTooltip' });
39
+ solarisTooltipKey = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipKey" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipKey' });
40
+ solarisTooltipFor = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipFor" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipFor' });
41
+ solarisTooltipTitle = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipTitle" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipTitle' });
42
+ solarisTooltipTitleKey = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipTitleKey" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipTitleKey' });
43
+ solarisTooltipIcon = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipIcon" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipIcon' });
44
+ solarisTooltipIconDecorative = input(true, { ...(ngDevMode ? { debugName: "solarisTooltipIconDecorative" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipIconDecorative',
45
+ transform: booleanAttribute });
46
+ solarisTooltipTrigger = input('hover', { ...(ngDevMode ? { debugName: "solarisTooltipTrigger" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipTrigger' });
47
+ solarisTooltipPlacement = input('top', { ...(ngDevMode ? { debugName: "solarisTooltipPlacement" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipPlacement' });
48
+ solarisTooltipOffset = input(0, { ...(ngDevMode ? { debugName: "solarisTooltipOffset" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipOffset',
49
+ transform: numberAttribute });
50
+ solarisTooltipDisabled = input(false, { ...(ngDevMode ? { debugName: "solarisTooltipDisabled" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipDisabled',
51
+ transform: booleanAttribute });
52
+ solarisTooltipCloseable = input(false, { ...(ngDevMode ? { debugName: "solarisTooltipCloseable" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipCloseable',
53
+ transform: booleanAttribute });
54
+ solarisTooltipCloseLabel = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipCloseLabel" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipCloseLabel' });
55
+ solarisTooltipCloseLabelKey = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipCloseLabelKey" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipCloseLabelKey' });
56
+ solarisTooltipShowDelay = input(300, { ...(ngDevMode ? { debugName: "solarisTooltipShowDelay" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipShowDelay',
57
+ transform: numberAttribute });
58
+ solarisTooltipHideDelay = input(100, { ...(ngDevMode ? { debugName: "solarisTooltipHideDelay" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipHideDelay',
59
+ transform: numberAttribute });
60
+ solarisTooltipAppearance = input('outline', { ...(ngDevMode ? { debugName: "solarisTooltipAppearance" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipAppearance' });
61
+ solarisTooltipSize = input('sm', { ...(ngDevMode ? { debugName: "solarisTooltipSize" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipSize' });
62
+ solarisTooltipRadius = input('md', { ...(ngDevMode ? { debugName: "solarisTooltipRadius" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipRadius' });
63
+ solarisTooltipMaxWidth = input('20rem', { ...(ngDevMode ? { debugName: "solarisTooltipMaxWidth" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipMaxWidth' });
64
+ solarisTooltipArrow = input(true, { ...(ngDevMode ? { debugName: "solarisTooltipArrow" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipArrow',
65
+ transform: booleanAttribute });
66
+ solarisTooltipOpen = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipOpen" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipOpen' });
67
+ solarisTooltipOpened = output();
68
+ solarisTooltipClosed = output();
69
+ solarisTooltipOpenChange = output();
70
+ constructor() {
71
+ effect(() => {
72
+ const shouldBeOpen = this.solarisTooltipOpen();
73
+ if (shouldBeOpen === true && !this.isOpen()) {
74
+ this.open();
75
+ }
76
+ else if (shouldBeOpen === false && this.isOpen()) {
77
+ this.close();
78
+ }
79
+ });
80
+ this.destroyRef.onDestroy(() => {
81
+ this.disposeOverlay();
82
+ this.clearHoverTimeout();
83
+ });
84
+ }
85
+ ngAfterViewInit() {
86
+ if (!this.solarisTooltip() &&
87
+ !this.solarisTooltipKey() &&
88
+ !this.solarisTooltipFor()) {
89
+ console.warn('[SolarisTooltip] Tooltip requires solaris-tooltip, solarisTooltip, solarisTooltipKey, or solarisTooltipFor.');
90
+ }
91
+ }
92
+ onMouseEnter() {
93
+ this.isHovered = true;
94
+ if (this.solarisTooltipTrigger() === 'hover' &&
95
+ !this.solarisTooltipDisabled()) {
96
+ this.scheduleOpen(Number(this.solarisTooltipShowDelay()));
97
+ }
98
+ }
99
+ onMouseLeave() {
100
+ this.isHovered = false;
101
+ if (this.solarisTooltipTrigger() === 'hover') {
102
+ this.scheduleClose(Number(this.solarisTooltipHideDelay()));
103
+ }
104
+ }
105
+ onFocusIn() {
106
+ this.isFocused = true;
107
+ if (this.solarisTooltipTrigger() === 'hover' &&
108
+ !this.solarisTooltipDisabled()) {
109
+ this.scheduleOpen(Number(this.solarisTooltipShowDelay()));
110
+ }
111
+ }
112
+ onFocusOut() {
113
+ this.isFocused = false;
114
+ if (this.solarisTooltipTrigger() === 'hover') {
115
+ this.scheduleClose(Number(this.solarisTooltipHideDelay()));
116
+ }
117
+ }
118
+ onClick() {
119
+ if (this.solarisTooltipDisabled()) {
120
+ return;
121
+ }
122
+ if (this.solarisTooltipTrigger() === 'click') {
123
+ this.toggle();
124
+ }
125
+ }
126
+ onEscape() {
127
+ if (this.isOpen() && this.solarisTooltipTrigger() !== 'manual') {
128
+ this.close();
129
+ }
130
+ }
131
+ open() {
132
+ if (this.isOpen() || this.solarisTooltipDisabled()) {
133
+ return;
134
+ }
135
+ this.clearHoverTimeout();
136
+ if (this.solarisTooltipTrigger() === 'click') {
137
+ // SECURITY_EXCEPTION: this.document.activeElement required for restoreFocus. SSR-safe via injected DOCUMENT.
138
+ this.previousActiveElement = this.document.activeElement;
139
+ }
140
+ this.createOverlay();
141
+ this.attachPanel();
142
+ this.addOutsideClickHandler();
143
+ this.isOpen.set(true);
144
+ this.solarisTooltipOpened.emit();
145
+ this.solarisTooltipOpenChange.emit(true);
146
+ }
147
+ close() {
148
+ if (!this.isOpen()) {
149
+ return;
150
+ }
151
+ this.clearHoverTimeout();
152
+ this.detachPanel();
153
+ this.restoreFocus();
154
+ this.isOpen.set(false);
155
+ this.solarisTooltipClosed.emit();
156
+ this.solarisTooltipOpenChange.emit(false);
157
+ }
158
+ toggle() {
159
+ if (this.isOpen()) {
160
+ this.close();
161
+ }
162
+ else {
163
+ this.open();
164
+ }
165
+ }
166
+ reposition() {
167
+ if (this.overlayRef) {
168
+ this.overlayRef.updatePosition();
169
+ }
170
+ }
171
+ getResolvedBody() {
172
+ const text = this.solarisTooltip();
173
+ if (text) {
174
+ return text;
175
+ }
176
+ const key = this.solarisTooltipKey();
177
+ if (key) {
178
+ return this.translate.translate(key);
179
+ }
180
+ return undefined;
181
+ }
182
+ getResolvedTitle() {
183
+ const title = this.solarisTooltipTitle();
184
+ if (title) {
185
+ return title;
186
+ }
187
+ const titleKey = this.solarisTooltipTitleKey();
188
+ if (titleKey) {
189
+ return this.translate.translate(titleKey);
190
+ }
191
+ return undefined;
192
+ }
193
+ getResolvedCloseLabel() {
194
+ const closeLabel = this.solarisTooltipCloseLabel();
195
+ if (closeLabel) {
196
+ return closeLabel;
197
+ }
198
+ const closeLabelKey = this.solarisTooltipCloseLabelKey();
199
+ if (closeLabelKey) {
200
+ return this.translate.translate(closeLabelKey);
201
+ }
202
+ return this.translate.translate('solaris.tooltip.close');
203
+ }
204
+ scheduleOpen(delay) {
205
+ this.clearHoverTimeout();
206
+ if (delay > 0) {
207
+ this.hoverTimeout = setTimeout(() => {
208
+ this.ngZone.run(() => {
209
+ if ((this.isHovered || this.isFocused) && !this.isOpen()) {
210
+ this.open();
211
+ }
212
+ });
213
+ }, delay);
214
+ }
215
+ else {
216
+ this.open();
217
+ }
218
+ }
219
+ scheduleClose(delay) {
220
+ this.clearHoverTimeout();
221
+ if (this.solarisTooltipTrigger() !== 'hover') {
222
+ return;
223
+ }
224
+ if (delay > 0) {
225
+ this.hoverTimeout = setTimeout(() => {
226
+ this.ngZone.run(() => {
227
+ if (!this.isHovered && !this.isFocused && this.isOpen()) {
228
+ this.close();
229
+ }
230
+ });
231
+ }, delay);
232
+ }
233
+ else if (!this.isHovered && !this.isFocused) {
234
+ this.close();
235
+ }
236
+ }
237
+ clearHoverTimeout() {
238
+ if (this.hoverTimeout !== null) {
239
+ clearTimeout(this.hoverTimeout);
240
+ this.hoverTimeout = null;
241
+ }
242
+ }
243
+ createOverlay() {
244
+ this.disposeOverlay();
245
+ const positionStrategy = this.createPositionStrategy();
246
+ const scrollStrategy = this.overlay.scrollStrategies.reposition();
247
+ const config = new OverlayConfig({
248
+ positionStrategy,
249
+ scrollStrategy,
250
+ disposeOnNavigation: true,
251
+ panelClass: 'solaris-tooltip-panel-overlay',
252
+ });
253
+ this.overlayRef = this.overlay.create(config);
254
+ }
255
+ createPositionStrategy() {
256
+ const placement = this.solarisTooltipPlacement();
257
+ const userOffset = Number(this.solarisTooltipOffset());
258
+ const hasArrow = this.solarisTooltipArrow();
259
+ const size = this.solarisTooltipSize();
260
+ const arrowPx = hasArrow ? (ARROW_SIZE_PX[size] ?? 20) : 0;
261
+ const effectiveOffset = arrowPx + TOOLTIP_TRIGGER_GAP + userOffset;
262
+ const positions = getTooltipPositions(placement, effectiveOffset);
263
+ return this.overlay
264
+ .position()
265
+ .flexibleConnectedTo(this.elementRef)
266
+ .withPositions(positions)
267
+ .withFlexibleDimensions(true)
268
+ .withPush(true)
269
+ .withGrowAfterOpen(true);
270
+ }
271
+ attachPanel() {
272
+ if (!this.overlayRef) {
273
+ return;
274
+ }
275
+ this.currentPlacement = this.solarisTooltipPlacement();
276
+ const trigger = this.solarisTooltipTrigger();
277
+ const effectiveCloseable = trigger === 'click' ? this.solarisTooltipCloseable() : false;
278
+ const closeFn = () => this.close();
279
+ const data = {
280
+ title: this.getResolvedTitle(),
281
+ body: this.getResolvedBody(),
282
+ icon: this.solarisTooltipIcon(),
283
+ iconDecorative: this.solarisTooltipIconDecorative(),
284
+ contentTemplate: this.solarisTooltipFor(),
285
+ appearance: this.solarisTooltipAppearance(),
286
+ size: this.solarisTooltipSize(),
287
+ radius: this.solarisTooltipRadius(),
288
+ maxWidth: this.solarisTooltipMaxWidth(),
289
+ arrow: this.solarisTooltipArrow(),
290
+ arrowClass: getTooltipArrowClass(this.currentPlacement),
291
+ closeable: effectiveCloseable,
292
+ closeLabel: this.getResolvedCloseLabel(),
293
+ panelId: this.panelId,
294
+ placement: this.currentPlacement,
295
+ trigger,
296
+ close: closeFn,
297
+ };
298
+ const panelInjector = Injector.create({
299
+ parent: this.injector,
300
+ providers: [{ provide: SOLARIS_TOOLTIP_PANEL_DATA, useValue: data }],
301
+ });
302
+ const portal = new ComponentPortal(SolarisTooltipPanelComponent, this.viewContainerRef, panelInjector);
303
+ this.tooltipComponentRef = this.overlayRef.attach(portal);
304
+ const strategy = this.overlayRef.getConfig()
305
+ .positionStrategy;
306
+ this.positionChangesSub = strategy.positionChanges.subscribe((change) => {
307
+ const actualPlacement = derivePlacementFromConnectionPair(change.connectionPair);
308
+ if (actualPlacement !== this.currentPlacement) {
309
+ this.currentPlacement = actualPlacement;
310
+ this.tooltipComponentRef?.instance.updatePlacement(actualPlacement, getTooltipArrowClass(actualPlacement));
311
+ }
312
+ });
313
+ }
314
+ detachPanel() {
315
+ if (this.overlayRef) {
316
+ this.overlayRef.detach();
317
+ this.disposeOverlay();
318
+ }
319
+ this.removeOutsideClickHandler();
320
+ }
321
+ disposeOverlay() {
322
+ this.positionChangesSub?.unsubscribe();
323
+ this.positionChangesSub = null;
324
+ this.tooltipComponentRef = null;
325
+ if (this.overlayRef) {
326
+ this.overlayRef.dispose();
327
+ this.overlayRef = null;
328
+ }
329
+ this.removeOutsideClickHandler();
330
+ }
331
+ addOutsideClickHandler() {
332
+ if (this.solarisTooltipTrigger() !== 'click') {
333
+ return;
334
+ }
335
+ this.removeOutsideClickHandler();
336
+ this.outsideClickCleanup = this.rendererListen(this.document, 'click', this.handleOutsideClick);
337
+ }
338
+ removeOutsideClickHandler() {
339
+ if (this.outsideClickCleanup) {
340
+ this.outsideClickCleanup();
341
+ this.outsideClickCleanup = null;
342
+ }
343
+ }
344
+ handleOutsideClick = (event) => {
345
+ if (!this.overlayRef) {
346
+ return;
347
+ }
348
+ const overlayElement = this.overlayRef.overlayElement;
349
+ // SECURITY_EXCEPTION: nativeElement needed for outside-click containment check. ElementRef SSR-safe.
350
+ const triggerElement = this.elementRef.nativeElement;
351
+ const target = event.target;
352
+ if (target &&
353
+ !overlayElement.contains(target) &&
354
+ !triggerElement.contains(target)) {
355
+ this.close();
356
+ }
357
+ };
358
+ rendererListen(target, event, callback) {
359
+ target.addEventListener(event, callback);
360
+ return () => {
361
+ target.removeEventListener(event, callback);
362
+ };
363
+ }
364
+ restoreFocus() {
365
+ if (this.solarisTooltipTrigger() === 'click' &&
366
+ this.previousActiveElement &&
367
+ // SECURITY_EXCEPTION: this.document.contains() to safely verify trigger still exists before focus.
368
+ this.document.contains(this.previousActiveElement)) {
369
+ this.previousActiveElement.focus();
370
+ }
371
+ this.previousActiveElement = null;
372
+ }
373
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
374
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.17", type: SolarisTooltipDirective, isStandalone: true, selector: "[solaris-tooltip], [solarisTooltip], [solarisTooltipFor]", inputs: { solarisTooltip: { classPropertyName: "solarisTooltip", publicName: "solarisTooltip", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipKey: { classPropertyName: "solarisTooltipKey", publicName: "solarisTooltipKey", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipFor: { classPropertyName: "solarisTooltipFor", publicName: "solarisTooltipFor", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipTitle: { classPropertyName: "solarisTooltipTitle", publicName: "solarisTooltipTitle", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipTitleKey: { classPropertyName: "solarisTooltipTitleKey", publicName: "solarisTooltipTitleKey", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipIcon: { classPropertyName: "solarisTooltipIcon", publicName: "solarisTooltipIcon", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipIconDecorative: { classPropertyName: "solarisTooltipIconDecorative", publicName: "solarisTooltipIconDecorative", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipTrigger: { classPropertyName: "solarisTooltipTrigger", publicName: "solarisTooltipTrigger", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipPlacement: { classPropertyName: "solarisTooltipPlacement", publicName: "solarisTooltipPlacement", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipOffset: { classPropertyName: "solarisTooltipOffset", publicName: "solarisTooltipOffset", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipDisabled: { classPropertyName: "solarisTooltipDisabled", publicName: "solarisTooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipCloseable: { classPropertyName: "solarisTooltipCloseable", publicName: "solarisTooltipCloseable", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipCloseLabel: { classPropertyName: "solarisTooltipCloseLabel", publicName: "solarisTooltipCloseLabel", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipCloseLabelKey: { classPropertyName: "solarisTooltipCloseLabelKey", publicName: "solarisTooltipCloseLabelKey", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipShowDelay: { classPropertyName: "solarisTooltipShowDelay", publicName: "solarisTooltipShowDelay", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipHideDelay: { classPropertyName: "solarisTooltipHideDelay", publicName: "solarisTooltipHideDelay", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipAppearance: { classPropertyName: "solarisTooltipAppearance", publicName: "solarisTooltipAppearance", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipSize: { classPropertyName: "solarisTooltipSize", publicName: "solarisTooltipSize", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipRadius: { classPropertyName: "solarisTooltipRadius", publicName: "solarisTooltipRadius", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipMaxWidth: { classPropertyName: "solarisTooltipMaxWidth", publicName: "solarisTooltipMaxWidth", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipArrow: { classPropertyName: "solarisTooltipArrow", publicName: "solarisTooltipArrow", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipOpen: { classPropertyName: "solarisTooltipOpen", publicName: "solarisTooltipOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { solarisTooltipOpened: "solarisTooltipOpened", solarisTooltipClosed: "solarisTooltipClosed", solarisTooltipOpenChange: "solarisTooltipOpenChange" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "focusin": "onFocusIn()", "focusout": "onFocusOut()", "click": "onClick()", "keydown.escape": "onEscape()" }, properties: { "attr.aria-describedby": "isOpen() && !isClickTrigger() ? panelId : null" } }, exportAs: ["solarisTooltip"], ngImport: i0 });
375
+ }
376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTooltipDirective, decorators: [{
377
+ type: Directive,
378
+ args: [{
379
+ selector: '[solaris-tooltip], [solarisTooltip], [solarisTooltipFor]',
380
+ standalone: true,
381
+ exportAs: 'solarisTooltip',
382
+ host: {
383
+ '[attr.aria-describedby]': 'isOpen() && !isClickTrigger() ? panelId : null',
384
+ },
385
+ }]
386
+ }], ctorParameters: () => [], propDecorators: { solarisTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltip", required: false }] }], solarisTooltipKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipKey", required: false }] }], solarisTooltipFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipFor", required: false }] }], solarisTooltipTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipTitle", required: false }] }], solarisTooltipTitleKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipTitleKey", required: false }] }], solarisTooltipIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipIcon", required: false }] }], solarisTooltipIconDecorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipIconDecorative", required: false }] }], solarisTooltipTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipTrigger", required: false }] }], solarisTooltipPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipPlacement", required: false }] }], solarisTooltipOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipOffset", required: false }] }], solarisTooltipDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipDisabled", required: false }] }], solarisTooltipCloseable: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipCloseable", required: false }] }], solarisTooltipCloseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipCloseLabel", required: false }] }], solarisTooltipCloseLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipCloseLabelKey", required: false }] }], solarisTooltipShowDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipShowDelay", required: false }] }], solarisTooltipHideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipHideDelay", required: false }] }], solarisTooltipAppearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipAppearance", required: false }] }], solarisTooltipSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipSize", required: false }] }], solarisTooltipRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipRadius", required: false }] }], solarisTooltipMaxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipMaxWidth", required: false }] }], solarisTooltipArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipArrow", required: false }] }], solarisTooltipOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipOpen", required: false }] }], solarisTooltipOpened: [{ type: i0.Output, args: ["solarisTooltipOpened"] }], solarisTooltipClosed: [{ type: i0.Output, args: ["solarisTooltipClosed"] }], solarisTooltipOpenChange: [{ type: i0.Output, args: ["solarisTooltipOpenChange"] }], onMouseEnter: [{
387
+ type: HostListener,
388
+ args: ['mouseenter']
389
+ }], onMouseLeave: [{
390
+ type: HostListener,
391
+ args: ['mouseleave']
392
+ }], onFocusIn: [{
393
+ type: HostListener,
394
+ args: ['focusin']
395
+ }], onFocusOut: [{
396
+ type: HostListener,
397
+ args: ['focusout']
398
+ }], onClick: [{
399
+ type: HostListener,
400
+ args: ['click']
401
+ }], onEscape: [{
402
+ type: HostListener,
403
+ args: ['keydown.escape']
404
+ }] } });
405
+ //# sourceMappingURL=tooltip.directive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.directive.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/interaction/tooltip/directive/tooltip.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,gBAAgB,EAEhB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,EACN,UAAU,EACV,YAAY,EAGZ,gBAAgB,EAChB,eAAe,EACf,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE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yB,EAAE,gDAAgD;qBAC5E;iBACF;;sBAiKE,YAAY;uBAAC,YAAY;;sBAWzB,YAAY;uBAAC,YAAY;;sBAQzB,YAAY;uBAAC,SAAS;;sBAWtB,YAAY;uBAAC,UAAU;;sBAQvB,YAAY;uBAAC,OAAO;;sBAWpB,YAAY;uBAAC,gBAAgB","sourcesContent":["import {\n Directive,\n ElementRef,\n Injector,\n ViewContainerRef,\n ComponentRef,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n DestroyRef,\n HostListener,\n TemplateRef,\n AfterViewInit,\n booleanAttribute,\n numberAttribute,\n NgZone,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport {\n Overlay,\n OverlayRef,\n OverlayConfig,\n FlexibleConnectedPositionStrategy,\n type ConnectedOverlayPositionChange,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { Subscription } from 'rxjs';\n\nimport { SolarisTranslateService } from '../../../../services/translation';\n\nimport { SolarisTooltipPanelComponent } from '../component/tooltip-panel.component';\nimport {\n SOLARIS_TOOLTIP_PANEL_DATA,\n type SolarisTooltipPanelData,\n} from '../token/tooltip.tokens';\nimport {\n getTooltipPositions,\n getTooltipArrowClass,\n derivePlacementFromConnectionPair,\n} from '../model/tooltip-position';\n\nimport type {\n SolarisTooltipPlacement,\n SolarisTooltipTrigger,\n SolarisTooltipAppearance,\n SolarisTooltipSize,\n SolarisTooltipRadius,\n} from '../model/tooltip.types';\n\nlet nextPanelId = 0;\n\nconst TOOLTIP_TRIGGER_GAP = 3;\n\nconst ARROW_SIZE_PX: Record<string, number> = {\n sm: 12,\n md: 20,\n lg: 24,\n};\n\n@Directive({\n selector: '[solaris-tooltip], [solarisTooltip], [solarisTooltipFor]',\n standalone: true,\n exportAs: 'solarisTooltip',\n host: {\n '[attr.aria-describedby]': 'isOpen() && !isClickTrigger() ? panelId : null',\n },\n})\nexport class SolarisTooltipDirective implements AfterViewInit {\n private readonly overlay = inject(Overlay);\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly injector = inject(Injector);\n private readonly document = inject(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly translate = inject(SolarisTranslateService);\n private readonly ngZone = inject(NgZone);\n\n protected readonly panelId = `solaris-tooltip-panel-${++nextPanelId}`;\n protected readonly isOpen = signal(false);\n protected readonly isClickTrigger = computed(\n () => this.solarisTooltipTrigger() === 'click',\n );\n\n private overlayRef: OverlayRef | null = null;\n private outsideClickCleanup: (() => void) | null = null;\n private previousActiveElement: HTMLElement | null = null;\n private hoverTimeout: ReturnType<typeof setTimeout> | null = null;\n private isHovered = false;\n private isFocused = false;\n private tooltipComponentRef: ComponentRef<SolarisTooltipPanelComponent> | null =\n null;\n private positionChangesSub: Subscription | null = null;\n private currentPlacement: SolarisTooltipPlacement = 'top';\n\n readonly solarisTooltip = input<string | undefined>(undefined, {\n alias: 'solarisTooltip',\n });\n\n readonly solarisTooltipKey = input<string | undefined>(undefined, {\n alias: 'solarisTooltipKey',\n });\n\n readonly solarisTooltipFor = input<TemplateRef<unknown> | undefined>(\n undefined,\n {\n alias: 'solarisTooltipFor',\n },\n );\n\n readonly solarisTooltipTitle = input<string | undefined>(undefined, {\n alias: 'solarisTooltipTitle',\n });\n\n readonly solarisTooltipTitleKey = input<string | undefined>(undefined, {\n alias: 'solarisTooltipTitleKey',\n });\n\n readonly solarisTooltipIcon = input<string | undefined>(undefined, {\n alias: 'solarisTooltipIcon',\n });\n\n readonly solarisTooltipIconDecorative = input<boolean, boolean>(true, {\n alias: 'solarisTooltipIconDecorative',\n transform: booleanAttribute,\n });\n\n readonly solarisTooltipTrigger = input<SolarisTooltipTrigger>('hover', {\n alias: 'solarisTooltipTrigger',\n });\n\n readonly solarisTooltipPlacement = input<SolarisTooltipPlacement>('top', {\n alias: 'solarisTooltipPlacement',\n });\n\n readonly solarisTooltipOffset = input<number, string | number>(0, {\n alias: 'solarisTooltipOffset',\n transform: numberAttribute,\n });\n\n readonly solarisTooltipDisabled = input<boolean, boolean>(false, {\n alias: 'solarisTooltipDisabled',\n transform: booleanAttribute,\n });\n\n readonly solarisTooltipCloseable = input<boolean, boolean>(false, {\n alias: 'solarisTooltipCloseable',\n transform: booleanAttribute,\n });\n\n readonly solarisTooltipCloseLabel = input<string | undefined>(undefined, {\n alias: 'solarisTooltipCloseLabel',\n });\n\n readonly solarisTooltipCloseLabelKey = input<string | undefined>(undefined, {\n alias: 'solarisTooltipCloseLabelKey',\n });\n\n readonly solarisTooltipShowDelay = input<number, string | number>(300, {\n alias: 'solarisTooltipShowDelay',\n transform: numberAttribute,\n });\n\n readonly solarisTooltipHideDelay = input<number, string | number>(100, {\n alias: 'solarisTooltipHideDelay',\n transform: numberAttribute,\n });\n\n readonly solarisTooltipAppearance = input<SolarisTooltipAppearance>(\n 'outline',\n {\n alias: 'solarisTooltipAppearance',\n },\n );\n\n readonly solarisTooltipSize = input<SolarisTooltipSize>('sm', {\n alias: 'solarisTooltipSize',\n });\n\n readonly solarisTooltipRadius = input<SolarisTooltipRadius>('md', {\n alias: 'solarisTooltipRadius',\n });\n\n readonly solarisTooltipMaxWidth = input<string | number>('20rem', {\n alias: 'solarisTooltipMaxWidth',\n });\n\n readonly solarisTooltipArrow = input<boolean, boolean>(true, {\n alias: 'solarisTooltipArrow',\n transform: booleanAttribute,\n });\n\n readonly solarisTooltipOpen = input<boolean | undefined>(undefined, {\n alias: 'solarisTooltipOpen',\n });\n\n readonly solarisTooltipOpened = output<void>();\n readonly solarisTooltipClosed = output<void>();\n readonly solarisTooltipOpenChange = output<boolean>();\n\n constructor() {\n effect(() => {\n const shouldBeOpen = this.solarisTooltipOpen();\n if (shouldBeOpen === true && !this.isOpen()) {\n this.open();\n } else if (shouldBeOpen === false && this.isOpen()) {\n this.close();\n }\n });\n\n this.destroyRef.onDestroy(() => {\n this.disposeOverlay();\n this.clearHoverTimeout();\n });\n }\n\n ngAfterViewInit(): void {\n if (\n !this.solarisTooltip() &&\n !this.solarisTooltipKey() &&\n !this.solarisTooltipFor()\n ) {\n console.warn(\n '[SolarisTooltip] Tooltip requires solaris-tooltip, solarisTooltip, solarisTooltipKey, or solarisTooltipFor.',\n );\n }\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n this.isHovered = true;\n if (\n this.solarisTooltipTrigger() === 'hover' &&\n !this.solarisTooltipDisabled()\n ) {\n this.scheduleOpen(Number(this.solarisTooltipShowDelay()));\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n this.isHovered = false;\n if (this.solarisTooltipTrigger() === 'hover') {\n this.scheduleClose(Number(this.solarisTooltipHideDelay()));\n }\n }\n\n @HostListener('focusin')\n onFocusIn(): void {\n this.isFocused = true;\n if (\n this.solarisTooltipTrigger() === 'hover' &&\n !this.solarisTooltipDisabled()\n ) {\n this.scheduleOpen(Number(this.solarisTooltipShowDelay()));\n }\n }\n\n @HostListener('focusout')\n onFocusOut(): void {\n this.isFocused = false;\n if (this.solarisTooltipTrigger() === 'hover') {\n this.scheduleClose(Number(this.solarisTooltipHideDelay()));\n }\n }\n\n @HostListener('click')\n onClick(): void {\n if (this.solarisTooltipDisabled()) {\n return;\n }\n\n if (this.solarisTooltipTrigger() === 'click') {\n this.toggle();\n }\n }\n\n @HostListener('keydown.escape')\n onEscape(): void {\n if (this.isOpen() && this.solarisTooltipTrigger() !== 'manual') {\n this.close();\n }\n }\n\n open(): void {\n if (this.isOpen() || this.solarisTooltipDisabled()) {\n return;\n }\n\n this.clearHoverTimeout();\n\n if (this.solarisTooltipTrigger() === 'click') {\n // SECURITY_EXCEPTION: this.document.activeElement required for restoreFocus. SSR-safe via injected DOCUMENT.\n this.previousActiveElement = this.document.activeElement as HTMLElement;\n }\n\n this.createOverlay();\n this.attachPanel();\n this.addOutsideClickHandler();\n this.isOpen.set(true);\n this.solarisTooltipOpened.emit();\n this.solarisTooltipOpenChange.emit(true);\n }\n\n close(): void {\n if (!this.isOpen()) {\n return;\n }\n\n this.clearHoverTimeout();\n this.detachPanel();\n this.restoreFocus();\n this.isOpen.set(false);\n this.solarisTooltipClosed.emit();\n this.solarisTooltipOpenChange.emit(false);\n }\n\n toggle(): void {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n reposition(): void {\n if (this.overlayRef) {\n this.overlayRef.updatePosition();\n }\n }\n\n private getResolvedBody(): string | undefined {\n const text = this.solarisTooltip();\n if (text) {\n return text;\n }\n\n const key = this.solarisTooltipKey();\n if (key) {\n return this.translate.translate(key);\n }\n\n return undefined;\n }\n\n private getResolvedTitle(): string | undefined {\n const title = this.solarisTooltipTitle();\n if (title) {\n return title;\n }\n\n const titleKey = this.solarisTooltipTitleKey();\n if (titleKey) {\n return this.translate.translate(titleKey);\n }\n\n return undefined;\n }\n\n private getResolvedCloseLabel(): string {\n const closeLabel = this.solarisTooltipCloseLabel();\n if (closeLabel) {\n return closeLabel;\n }\n\n const closeLabelKey = this.solarisTooltipCloseLabelKey();\n if (closeLabelKey) {\n return this.translate.translate(closeLabelKey);\n }\n\n return this.translate.translate('solaris.tooltip.close');\n }\n\n private scheduleOpen(delay: number): void {\n this.clearHoverTimeout();\n if (delay > 0) {\n this.hoverTimeout = setTimeout(() => {\n this.ngZone.run(() => {\n if ((this.isHovered || this.isFocused) && !this.isOpen()) {\n this.open();\n }\n });\n }, delay);\n } else {\n this.open();\n }\n }\n\n private scheduleClose(delay: number): void {\n this.clearHoverTimeout();\n\n if (this.solarisTooltipTrigger() !== 'hover') {\n return;\n }\n\n if (delay > 0) {\n this.hoverTimeout = setTimeout(() => {\n this.ngZone.run(() => {\n if (!this.isHovered && !this.isFocused && this.isOpen()) {\n this.close();\n }\n });\n }, delay);\n } else if (!this.isHovered && !this.isFocused) {\n this.close();\n }\n }\n\n private clearHoverTimeout(): void {\n if (this.hoverTimeout !== null) {\n clearTimeout(this.hoverTimeout);\n this.hoverTimeout = null;\n }\n }\n\n private createOverlay(): void {\n this.disposeOverlay();\n\n const positionStrategy = this.createPositionStrategy();\n const scrollStrategy = this.overlay.scrollStrategies.reposition();\n\n const config = new OverlayConfig({\n positionStrategy,\n scrollStrategy,\n disposeOnNavigation: true,\n panelClass: 'solaris-tooltip-panel-overlay',\n });\n\n this.overlayRef = this.overlay.create(config);\n }\n\n private createPositionStrategy(): FlexibleConnectedPositionStrategy {\n const placement = this.solarisTooltipPlacement();\n const userOffset = Number(this.solarisTooltipOffset());\n const hasArrow = this.solarisTooltipArrow();\n const size = this.solarisTooltipSize();\n const arrowPx = hasArrow ? (ARROW_SIZE_PX[size] ?? 20) : 0;\n const effectiveOffset = arrowPx + TOOLTIP_TRIGGER_GAP + userOffset;\n const positions = getTooltipPositions(placement, effectiveOffset);\n\n return this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef)\n .withPositions(positions)\n .withFlexibleDimensions(true)\n .withPush(true)\n .withGrowAfterOpen(true);\n }\n\n private attachPanel(): void {\n if (!this.overlayRef) {\n return;\n }\n\n this.currentPlacement = this.solarisTooltipPlacement();\n const trigger = this.solarisTooltipTrigger();\n const effectiveCloseable =\n trigger === 'click' ? this.solarisTooltipCloseable() : false;\n const closeFn = () => this.close();\n\n const data: SolarisTooltipPanelData = {\n title: this.getResolvedTitle(),\n body: this.getResolvedBody(),\n icon: this.solarisTooltipIcon(),\n iconDecorative: this.solarisTooltipIconDecorative(),\n contentTemplate: this.solarisTooltipFor(),\n appearance: this.solarisTooltipAppearance(),\n size: this.solarisTooltipSize(),\n radius: this.solarisTooltipRadius(),\n maxWidth: this.solarisTooltipMaxWidth(),\n arrow: this.solarisTooltipArrow(),\n arrowClass: getTooltipArrowClass(this.currentPlacement),\n closeable: effectiveCloseable,\n closeLabel: this.getResolvedCloseLabel(),\n panelId: this.panelId,\n placement: this.currentPlacement,\n trigger,\n close: closeFn,\n };\n\n const panelInjector = Injector.create({\n parent: this.injector,\n providers: [{ provide: SOLARIS_TOOLTIP_PANEL_DATA, useValue: data }],\n });\n\n const portal = new ComponentPortal(\n SolarisTooltipPanelComponent,\n this.viewContainerRef,\n panelInjector,\n );\n\n this.tooltipComponentRef = this.overlayRef.attach(portal);\n\n const strategy = this.overlayRef.getConfig()\n .positionStrategy as FlexibleConnectedPositionStrategy;\n this.positionChangesSub = strategy.positionChanges.subscribe(\n (change: ConnectedOverlayPositionChange) => {\n const actualPlacement = derivePlacementFromConnectionPair(\n change.connectionPair,\n );\n if (actualPlacement !== this.currentPlacement) {\n this.currentPlacement = actualPlacement;\n this.tooltipComponentRef?.instance.updatePlacement(\n actualPlacement,\n getTooltipArrowClass(actualPlacement),\n );\n }\n },\n );\n }\n\n private detachPanel(): void {\n if (this.overlayRef) {\n this.overlayRef.detach();\n this.disposeOverlay();\n }\n this.removeOutsideClickHandler();\n }\n\n private disposeOverlay(): void {\n this.positionChangesSub?.unsubscribe();\n this.positionChangesSub = null;\n this.tooltipComponentRef = null;\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n this.removeOutsideClickHandler();\n }\n\n private addOutsideClickHandler(): void {\n if (this.solarisTooltipTrigger() !== 'click') {\n return;\n }\n\n this.removeOutsideClickHandler();\n\n this.outsideClickCleanup = this.rendererListen(\n this.document,\n 'click',\n this.handleOutsideClick,\n );\n }\n\n private removeOutsideClickHandler(): void {\n if (this.outsideClickCleanup) {\n this.outsideClickCleanup();\n this.outsideClickCleanup = null;\n }\n }\n\n private readonly handleOutsideClick = (event: Event): void => {\n if (!this.overlayRef) {\n return;\n }\n\n const overlayElement = this.overlayRef.overlayElement;\n // SECURITY_EXCEPTION: nativeElement needed for outside-click containment check. ElementRef SSR-safe.\n const triggerElement = this.elementRef.nativeElement;\n const target = event.target as Node;\n\n if (\n target &&\n !overlayElement.contains(target) &&\n !triggerElement.contains(target)\n ) {\n this.close();\n }\n };\n\n private rendererListen(\n target: EventTarget,\n event: string,\n callback: (event: Event) => void,\n ): () => void {\n target.addEventListener(event, callback);\n return () => {\n target.removeEventListener(event, callback);\n };\n }\n\n private restoreFocus(): void {\n if (\n this.solarisTooltipTrigger() === 'click' &&\n this.previousActiveElement &&\n // SECURITY_EXCEPTION: this.document.contains() to safely verify trigger still exists before focus.\n this.document.contains(this.previousActiveElement)\n ) {\n this.previousActiveElement.focus();\n }\n this.previousActiveElement = null;\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export { SolarisTooltipDirective } from './directive/tooltip.directive';
2
+ export { SolarisTooltipPanelComponent } from './component/tooltip-panel.component';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/components/interaction/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { SolarisTooltipDirective } from './directive/tooltip.directive';\nexport { SolarisTooltipPanelComponent } from './component/tooltip-panel.component';\n\nexport type {\n SolarisTooltipPlacement,\n SolarisTooltipTrigger,\n SolarisTooltipAppearance,\n SolarisTooltipSize,\n SolarisTooltipRadius,\n SolarisTooltipConfig,\n} from './model/tooltip.types';\n"]}