@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,91 @@
1
+ import { Component, input, inject, computed, ChangeDetectionStrategy, } from '@angular/core';
2
+ import { SolarisTranslateService } from '../../../../services/translation';
3
+ import { SOLARIS_STEPPER } from '../token/stepper.tokens';
4
+ import * as i0 from "@angular/core";
5
+ export class SolarisStepComponent {
6
+ translateService = inject(SolarisTranslateService, {
7
+ optional: true,
8
+ });
9
+ stepper = inject(SOLARIS_STEPPER, { optional: true });
10
+ error = input(false, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
11
+ optional = input(false, ...(ngDevMode ? [{ debugName: "optional" }] : /* istanbul ignore next */ []));
12
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
13
+ completed = input(false, ...(ngDevMode ? [{ debugName: "completed" }] : /* istanbul ignore next */ []));
14
+ icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
15
+ label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
16
+ labelKey = input(undefined, ...(ngDevMode ? [{ debugName: "labelKey" }] : /* istanbul ignore next */ []));
17
+ status = input('pending', ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
18
+ description = input(undefined, ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
19
+ descriptionKey = input(undefined, ...(ngDevMode ? [{ debugName: "descriptionKey" }] : /* istanbul ignore next */ []));
20
+ index = computed(() => {
21
+ if (this.stepper) {
22
+ return this.stepper.steps().indexOf(this);
23
+ }
24
+ return -1;
25
+ }, ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
26
+ isActive = computed(() => {
27
+ if (this.stepper) {
28
+ return this.stepper.activeIndex() === this.index();
29
+ }
30
+ return false;
31
+ }, ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
32
+ computedStatus = computed(() => {
33
+ if (this.disabled())
34
+ return 'disabled';
35
+ if (this.error())
36
+ return 'error';
37
+ if (this.isActive())
38
+ return 'active';
39
+ if (this.completed())
40
+ return 'completed';
41
+ return this.status();
42
+ }, ...(ngDevMode ? [{ debugName: "computedStatus" }] : /* istanbul ignore next */ []));
43
+ isInteractive = computed(() => {
44
+ if (this.computedStatus() === 'disabled')
45
+ return false;
46
+ if (!this.stepper)
47
+ return false;
48
+ return !(this.stepper.linear() &&
49
+ this.computedStatus() !== 'completed' &&
50
+ !this.isActive());
51
+ }, ...(ngDevMode ? [{ debugName: "isInteractive" }] : /* istanbul ignore next */ []));
52
+ showContent = computed(() => {
53
+ if (!this.stepper)
54
+ return true;
55
+ return this.isActive();
56
+ }, ...(ngDevMode ? [{ debugName: "showContent" }] : /* istanbul ignore next */ []));
57
+ resolvedLabel = computed(() => {
58
+ if (this.label())
59
+ return this.label();
60
+ const labelKey = this.labelKey();
61
+ if (labelKey && this.translateService) {
62
+ return this.translateService.translate(labelKey);
63
+ }
64
+ return labelKey ?? '';
65
+ }, ...(ngDevMode ? [{ debugName: "resolvedLabel" }] : /* istanbul ignore next */ []));
66
+ resolvedDescription = computed(() => {
67
+ if (this.description())
68
+ return this.description();
69
+ const descriptionKey = this.descriptionKey();
70
+ if (descriptionKey && this.translateService) {
71
+ return this.translateService.translate(descriptionKey);
72
+ }
73
+ return descriptionKey ?? '';
74
+ }, ...(ngDevMode ? [{ debugName: "resolvedDescription" }] : /* istanbul ignore next */ []));
75
+ showCheckIcon = computed(() => this.computedStatus() === 'completed' && !this.icon(), ...(ngDevMode ? [{ debugName: "showCheckIcon" }] : /* istanbul ignore next */ []));
76
+ showErrorIcon = computed(() => this.computedStatus() === 'error' && !this.icon(), ...(ngDevMode ? [{ debugName: "showErrorIcon" }] : /* istanbul ignore next */ []));
77
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
78
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisStepComponent, isStandalone: true, selector: "solaris-step", inputs: { error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, completed: { classPropertyName: "completed", publicName: "completed", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, descriptionKey: { classPropertyName: "descriptionKey", publicName: "descriptionKey", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "listitem" }, properties: { "attr.data-active": "isActive()", "attr.data-status": "computedStatus()", "attr.aria-current": "isActive() ? \"step\" : undefined", "attr.aria-disabled": "computedStatus() === \"disabled\"" }, classAttribute: "solaris-step" }, ngImport: i0, template: "@if (showContent()) {\n <div class=\"solaris-step__content-wrapper\">\n <ng-content select=\"solaris-stepper-content\" />\n </div>\n}\n", styles: [":host{display:block}.solaris-step__content-wrapper{padding-top:var(--solaris-spacing-4)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
79
+ }
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisStepComponent, decorators: [{
81
+ type: Component,
82
+ args: [{ selector: 'solaris-step', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, host: {
83
+ role: 'listitem',
84
+ class: 'solaris-step',
85
+ '[attr.data-active]': 'isActive()',
86
+ '[attr.data-status]': 'computedStatus()',
87
+ '[attr.aria-current]': 'isActive() ? "step" : undefined',
88
+ '[attr.aria-disabled]': 'computedStatus() === "disabled"',
89
+ }, template: "@if (showContent()) {\n <div class=\"solaris-step__content-wrapper\">\n <ng-content select=\"solaris-stepper-content\" />\n </div>\n}\n", styles: [":host{display:block}.solaris-step__content-wrapper{padding-top:var(--solaris-spacing-4)}\n"] }]
90
+ }], propDecorators: { error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], completed: [{ type: i0.Input, args: [{ isSignal: true, alias: "completed", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelKey", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], descriptionKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "descriptionKey", required: false }] }] } });
91
+ //# sourceMappingURL=step.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/step/step.component.ts","../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/step/step.component.html"],"names":[],"mappings":"AA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olarisTranslateService } from '../../../../services/translation';\nimport type { SolarisStepperStatus } from '../model/stepper.types';\nimport { SOLARIS_STEPPER } from '../token/stepper.tokens';\n\n@Component({\n selector: 'solaris-step',\n standalone: true,\n imports: [],\n templateUrl: './step.component.html',\n styleUrls: ['./step.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'listitem',\n class: 'solaris-step',\n '[attr.data-active]': 'isActive()',\n '[attr.data-status]': 'computedStatus()',\n '[attr.aria-current]': 'isActive() ? \"step\" : undefined',\n '[attr.aria-disabled]': 'computedStatus() === \"disabled\"',\n },\n})\nexport class SolarisStepComponent {\n private readonly translateService = inject(SolarisTranslateService, {\n optional: true,\n });\n readonly stepper = inject(SOLARIS_STEPPER, { optional: true });\n\n readonly error = input<boolean>(false);\n readonly optional = input<boolean>(false);\n readonly disabled = input<boolean>(false);\n readonly completed = input<boolean>(false);\n readonly icon = input<string | undefined>(undefined);\n readonly label = input<string | undefined>(undefined);\n readonly labelKey = input<string | undefined>(undefined);\n readonly status = input<SolarisStepperStatus>('pending');\n readonly description = input<string | undefined>(undefined);\n readonly descriptionKey = input<string | undefined>(undefined);\n\n readonly index = computed(() => {\n if (this.stepper) {\n return this.stepper.steps().indexOf(this);\n }\n return -1;\n });\n\n readonly isActive = computed(() => {\n if (this.stepper) {\n return this.stepper.activeIndex() === this.index();\n }\n return false;\n });\n\n readonly computedStatus = computed<SolarisStepperStatus>(() => {\n if (this.disabled()) return 'disabled';\n if (this.error()) return 'error';\n if (this.isActive()) return 'active';\n if (this.completed()) return 'completed';\n return this.status();\n });\n\n readonly isInteractive = computed(() => {\n if (this.computedStatus() === 'disabled') return false;\n if (!this.stepper) return false;\n return !(\n this.stepper.linear() &&\n this.computedStatus() !== 'completed' &&\n !this.isActive()\n );\n });\n\n readonly showContent = computed(() => {\n if (!this.stepper) return true;\n return this.isActive();\n });\n\n readonly resolvedLabel = computed(() => {\n if (this.label()) return this.label();\n const labelKey = this.labelKey();\n if (labelKey && this.translateService) {\n return this.translateService.translate(labelKey);\n }\n return labelKey ?? '';\n });\n\n readonly resolvedDescription = computed(() => {\n if (this.description()) return this.description();\n const descriptionKey = this.descriptionKey();\n if (descriptionKey && this.translateService) {\n return this.translateService.translate(descriptionKey);\n }\n return descriptionKey ?? '';\n });\n\n readonly showCheckIcon = computed(\n () => this.computedStatus() === 'completed' && !this.icon(),\n );\n readonly showErrorIcon = computed(\n () => this.computedStatus() === 'error' && !this.icon(),\n );\n}\n","@if (showContent()) {\n <div class=\"solaris-step__content-wrapper\">\n <ng-content select=\"solaris-stepper-content\" />\n </div>\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export const SOLARIS_STEPPER = new InjectionToken('SolarisStepper');
3
+ //# sourceMappingURL=stepper.tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper.tokens.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/token/stepper.tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAoB/C,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,cAAc,CAC/C,gBAAgB,CACjB,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\n\nimport type {\n SolarisStepperOrientation,\n SolarisStepperAppearance,\n SolarisStepperSize,\n SolarisStepperDensity,\n} from '../model/stepper.types';\n\nexport interface SolarisStepperControl {\n activeIndex: () => number;\n steps: () => ReadonlyArray<unknown>;\n orientation: () => SolarisStepperOrientation;\n appearance: () => SolarisStepperAppearance;\n linear: () => boolean;\n size: () => SolarisStepperSize;\n density: () => SolarisStepperDensity;\n goToStep: (index: number) => void;\n}\n\nexport const SOLARIS_STEPPER = new InjectionToken<SolarisStepperControl>(\n 'SolarisStepper',\n);\n"]}
@@ -0,0 +1,169 @@
1
+ import { Component, input, output, model, contentChildren, computed, signal, inject, ChangeDetectionStrategy, effect, ElementRef, NgZone, } from '@angular/core';
2
+ import { SolarisTranslateService } from '../../../../services/translation';
3
+ import { SolarisTabComponent } from '../tab/tab.component';
4
+ import { SolarisTabPanelComponent } from '../tab-panel/tab-panel.component';
5
+ import { SOLARIS_TABS } from '../token/tabs.tokens';
6
+ import * as i0 from "@angular/core";
7
+ let nextInstanceId = 0;
8
+ export class SolarisTabsComponent {
9
+ translateService = inject(SolarisTranslateService, {
10
+ optional: true,
11
+ });
12
+ elementRef = inject(ElementRef);
13
+ ngZone = inject(NgZone);
14
+ tabs = contentChildren(SolarisTabComponent, ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
15
+ panels = contentChildren(SolarisTabPanelComponent, ...(ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []));
16
+ value = model(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
17
+ defaultValue = input(undefined, ...(ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []));
18
+ orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
19
+ appearance = input('underline', ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
20
+ size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
21
+ density = input('comfortable', ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
22
+ activationMode = input('automatic', ...(ngDevMode ? [{ debugName: "activationMode" }] : /* istanbul ignore next */ []));
23
+ contentTransition = input('fade', ...(ngDevMode ? [{ debugName: "contentTransition" }] : /* istanbul ignore next */ []));
24
+ fullWidth = input(false, ...(ngDevMode ? [{ debugName: "fullWidth" }] : /* istanbul ignore next */ []));
25
+ fitContent = input(true, ...(ngDevMode ? [{ debugName: "fitContent" }] : /* istanbul ignore next */ []));
26
+ scrollable = input(true, ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
27
+ showIndicator = input(true, ...(ngDevMode ? [{ debugName: "showIndicator" }] : /* istanbul ignore next */ []));
28
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
29
+ ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
30
+ ariaLabelKey = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabelKey" }] : /* istanbul ignore next */ []));
31
+ valueChange = output();
32
+ tabChange = output();
33
+ tabClick = output();
34
+ previousValue = signal(undefined, ...(ngDevMode ? [{ debugName: "previousValue" }] : /* istanbul ignore next */ []));
35
+ slideDirection = signal('right', ...(ngDevMode ? [{ debugName: "slideDirection" }] : /* istanbul ignore next */ []));
36
+ instanceId = `solaris-tabs-${nextInstanceId++}`;
37
+ indicatorReady = signal(false, ...(ngDevMode ? [{ debugName: "indicatorReady" }] : /* istanbul ignore next */ []));
38
+ indicatorTransformX = signal('translateX(0)', ...(ngDevMode ? [{ debugName: "indicatorTransformX" }] : /* istanbul ignore next */ []));
39
+ indicatorTransformY = signal('translateY(0)', ...(ngDevMode ? [{ debugName: "indicatorTransformY" }] : /* istanbul ignore next */ []));
40
+ indicatorSize = signal('0', ...(ngDevMode ? [{ debugName: "indicatorSize" }] : /* istanbul ignore next */ []));
41
+ resolvedAriaLabel = computed(() => {
42
+ if (this.ariaLabel())
43
+ return this.ariaLabel();
44
+ const ariaLabelKey = this.ariaLabelKey();
45
+ if (ariaLabelKey && this.translateService) {
46
+ return this.translateService.translate(ariaLabelKey);
47
+ }
48
+ return ariaLabelKey ?? 'Tabs';
49
+ }, ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
50
+ constructor() {
51
+ effect(() => {
52
+ const defaultValue = this.defaultValue();
53
+ const currentValue = this.value();
54
+ if (currentValue === undefined && defaultValue !== undefined) {
55
+ this.value.set(defaultValue);
56
+ }
57
+ });
58
+ effect(() => {
59
+ const current = this.value();
60
+ const previous = this.previousValue();
61
+ if (current !== previous && previous !== undefined) {
62
+ this.valueChange.emit(current);
63
+ this.tabChange.emit({
64
+ value: current,
65
+ previousValue: previous,
66
+ });
67
+ this.updateSlideDirection(current, previous);
68
+ }
69
+ this.previousValue.set(current);
70
+ });
71
+ this.ngZone.runOutsideAngular(() => {
72
+ setTimeout(() => this.measureIndicator());
73
+ });
74
+ effect(() => {
75
+ this.value();
76
+ this.appearance();
77
+ this.orientation();
78
+ this.tabs();
79
+ this.ngZone.runOutsideAngular(() => {
80
+ setTimeout(() => this.measureIndicator());
81
+ });
82
+ });
83
+ }
84
+ activateTab(tab) {
85
+ if (tab.isComputedDisabled())
86
+ return;
87
+ if (this.disabled())
88
+ return;
89
+ this.value.set(tab.value());
90
+ const label = tab.resolvedLabel();
91
+ this.tabClick.emit({
92
+ value: tab.value(),
93
+ label,
94
+ });
95
+ }
96
+ focusTab(tab) {
97
+ // SECURITY_EXCEPTION: nativeElement required to query tab elements for programmatic focus. Read-only, SSR-safe.
98
+ const nativeElement = this.elementRef.nativeElement;
99
+ const tabElements = nativeElement.querySelectorAll('solaris-tab');
100
+ const tabArray = this.tabs();
101
+ const index = tabArray.indexOf(tab);
102
+ if (index >= 0 && tabElements[index]) {
103
+ tabElements[index].focus();
104
+ }
105
+ }
106
+ generateTabId(value) {
107
+ return `${this.instanceId}-tab-${value}`;
108
+ }
109
+ generatePanelId(value) {
110
+ return `${this.instanceId}-panel-${value}`;
111
+ }
112
+ measureIndicator() {
113
+ // SECURITY_EXCEPTION: nativeElement required to query tablist for indicator measurement. Read-only, SSR-safe.
114
+ const nativeEl = this.elementRef.nativeElement;
115
+ const tablist = nativeEl.querySelector('.solaris-tabs__tablist');
116
+ if (!tablist)
117
+ return;
118
+ const activeTab = tablist.querySelector('solaris-tab[data-active="true"]');
119
+ if (!activeTab)
120
+ return;
121
+ const isVertical = this.orientation() === 'vertical';
122
+ if (isVertical) {
123
+ this.indicatorTransformY.set(`translateY(${activeTab.offsetTop}px)`);
124
+ this.indicatorSize.set(`${activeTab.offsetHeight}px`);
125
+ }
126
+ else {
127
+ this.indicatorTransformX.set(`translateX(${activeTab.offsetLeft}px)`);
128
+ this.indicatorSize.set(`${activeTab.offsetWidth}px`);
129
+ }
130
+ if (!this.indicatorReady()) {
131
+ setTimeout(() => this.indicatorReady.set(true));
132
+ }
133
+ }
134
+ updateSlideDirection(current, previous) {
135
+ const tabs = this.tabs();
136
+ const currentIndex = tabs.findIndex((t) => t.value() === current);
137
+ const previousIndex = tabs.findIndex((t) => t.value() === previous);
138
+ if (currentIndex >= 0 && previousIndex >= 0) {
139
+ this.slideDirection.set(currentIndex > previousIndex ? 'right' : 'left');
140
+ }
141
+ }
142
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
143
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisTabsComponent, isStandalone: true, selector: "solaris-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, activationMode: { classPropertyName: "activationMode", publicName: "activationMode", isSignal: true, isRequired: false, transformFunction: null }, contentTransition: { classPropertyName: "contentTransition", publicName: "contentTransition", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, fitContent: { classPropertyName: "fitContent", publicName: "fitContent", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelKey: { classPropertyName: "ariaLabelKey", publicName: "ariaLabelKey", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChange: "valueChange", tabChange: "tabChange", tabClick: "tabClick" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-appearance": "appearance()", "attr.data-size": "size()", "attr.data-density": "density()", "attr.data-full-width": "fullWidth()", "attr.data-scrollable": "scrollable()", "attr.data-show-indicator": "showIndicator()", "attr.data-content-transition": "contentTransition()" }, classAttribute: "solaris-tabs" }, providers: [
144
+ {
145
+ provide: SOLARIS_TABS,
146
+ useExisting: SolarisTabsComponent,
147
+ },
148
+ ], queries: [{ propertyName: "tabs", predicate: SolarisTabComponent, isSignal: true }, { propertyName: "panels", predicate: SolarisTabPanelComponent, isSignal: true }], ngImport: i0, template: "<div\n class=\"solaris-tabs__tablist\"\n #tablist\n role=\"tablist\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n>\n <ng-content select=\"solaris-tab\" />\n\n @if (showIndicator() && appearance() === 'underline') {\n <div\n class=\"solaris-tabs__indicator\"\n [class.solaris-tabs__indicator--animate]=\"indicatorReady()\"\n [class.solaris-tabs__indicator--vertical]=\"orientation() === 'vertical'\"\n [style.transform]=\"\n orientation() === 'vertical'\n ? indicatorTransformY()\n : indicatorTransformX()\n \"\n [style.width]=\"orientation() === 'vertical' ? '' : indicatorSize()\"\n [style.height]=\"orientation() === 'vertical' ? indicatorSize() : ''\"\n ></div>\n }\n</div>\n\n@if (panels().length > 0) {\n <div\n class=\"solaris-tabs__panels\"\n [class.solaris-tabs__panels--fade]=\"contentTransition() === 'fade'\"\n [class.solaris-tabs__panels--slide]=\"contentTransition() === 'slide'\"\n [class.solaris-tabs__panels--slide-from-right]=\"\n contentTransition() === 'slide' && slideDirection() === 'right'\n \"\n [class.solaris-tabs__panels--slide-from-left]=\"\n contentTransition() === 'slide' && slideDirection() === 'left'\n \"\n >\n <ng-content select=\"solaris-tab-panel\" />\n </div>\n}\n", styles: [":host{--solaris-tabs-gap: 0;--solaris-tabs-padding: 0;--solaris-tabs-tab-height: auto;--solaris-tabs-badge-gap: var(--solaris-spacing-2);--solaris-tabs-tab-radius: var(--solaris-radius-sm);--solaris-tabs-tab-color: var(--solaris-text-default);--solaris-tabs-tab-padding-y: var(--solaris-spacing-2);--solaris-tabs-tab-padding-x: var(--solaris-spacing-3);--solaris-tabs-panel-padding: var(--solaris-spacing-4);--solaris-tabs-border-color: var(--solaris-border-subtle);--solaris-tabs-indicator-color: var(--solaris-primary-base);--solaris-tabs-tab-active-color: var(--solaris-primary-text);--solaris-tabs-indicator-size: var(--solaris-border-width-md);--solaris-tabs-tab-hover-background: var(--solaris-surface-subtle);--solaris-tabs-tab-active-background: var(--solaris-primary-surface);width:100%;display:block}:host([data-orientation=vertical]){display:flex;gap:var(--solaris-spacing-4)}.solaris-tabs__tablist{display:flex;position:relative;align-items:stretch;gap:var(--solaris-tabs-gap)}:host([data-orientation=horizontal]) .solaris-tabs__tablist{overflow-x:auto;overflow-y:hidden;flex-direction:row;scrollbar-width:thin;border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-orientation=vertical]) .solaris-tabs__tablist{flex-shrink:0;flex-direction:column;border-right:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-scrollable=false][data-orientation=horizontal]) .solaris-tabs__tablist{overflow:visible}:host([data-full-width=true][data-orientation=horizontal]) .solaris-tabs__tablist{display:flex}:host([data-appearance=pills][data-orientation=horizontal]) .solaris-tabs__tablist{border-bottom:none;gap:var(--solaris-spacing-1)}:host([data-appearance=underline][data-orientation=horizontal]) .solaris-tabs__tablist{border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-appearance=enclosed][data-orientation=horizontal]) .solaris-tabs__tablist{margin-bottom:0;border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-appearance=enclosed][data-orientation=horizontal]) .solaris-tabs__panels{border:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color);border-top:none;border-radius:0 0 var(--solaris-radius-sm) var(--solaris-radius-sm)}.solaris-tabs__panels{position:relative;overflow:hidden}:host([data-orientation=vertical]) .solaris-tabs__panels{flex:1;min-width:0}.solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true]{animation:solaris-tabs-fade-in var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:solaris-tabs-slide-in-right var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-tabs__panels--slide-from-left>::ng-deep solaris-tab-panel[data-active=true]{animation-name:solaris-tabs-slide-in-left}@keyframes solaris-tabs-fade-in{0%{opacity:0}to{opacity:1}}@keyframes solaris-tabs-slide-in-right{0%{opacity:0;transform:translate(var(--solaris-spacing-4))}to{opacity:1;transform:translate(0)}}@keyframes solaris-tabs-slide-in-left{0%{opacity:0;transform:translate(calc(-1 * var(--solaris-spacing-4)))}to{opacity:1;transform:translate(0)}}.solaris-tabs__indicator{position:absolute;bottom:0;left:0;height:var(--solaris-tabs-indicator-size);background:var(--solaris-tabs-indicator-color);border-radius:var(--solaris-radius-sm) var(--solaris-radius-sm) 0 0;transition:none;pointer-events:none;z-index:1}.solaris-tabs__indicator--vertical{inset:0 0 auto auto;width:var(--solaris-tabs-indicator-size);height:0;border-radius:var(--solaris-radius-sm) 0 0 var(--solaris-radius-sm)}.solaris-tabs__indicator--animate{transition:transform var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),width var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),height var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}@media(prefers-reduced-motion:reduce){.solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true],.solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:none}.solaris-tabs__indicator{transition:none}}:host-context([data-reduced-motion=true]) .solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true],:host-context([data-reduced-motion=true]) .solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:none}:host-context([data-reduced-motion=true]) .solaris-tabs__indicator{transition:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
149
+ }
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTabsComponent, decorators: [{
151
+ type: Component,
152
+ args: [{ selector: 'solaris-tabs', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, host: {
153
+ class: 'solaris-tabs',
154
+ '[attr.data-orientation]': 'orientation()',
155
+ '[attr.data-appearance]': 'appearance()',
156
+ '[attr.data-size]': 'size()',
157
+ '[attr.data-density]': 'density()',
158
+ '[attr.data-full-width]': 'fullWidth()',
159
+ '[attr.data-scrollable]': 'scrollable()',
160
+ '[attr.data-show-indicator]': 'showIndicator()',
161
+ '[attr.data-content-transition]': 'contentTransition()',
162
+ }, providers: [
163
+ {
164
+ provide: SOLARIS_TABS,
165
+ useExisting: SolarisTabsComponent,
166
+ },
167
+ ], template: "<div\n class=\"solaris-tabs__tablist\"\n #tablist\n role=\"tablist\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n>\n <ng-content select=\"solaris-tab\" />\n\n @if (showIndicator() && appearance() === 'underline') {\n <div\n class=\"solaris-tabs__indicator\"\n [class.solaris-tabs__indicator--animate]=\"indicatorReady()\"\n [class.solaris-tabs__indicator--vertical]=\"orientation() === 'vertical'\"\n [style.transform]=\"\n orientation() === 'vertical'\n ? indicatorTransformY()\n : indicatorTransformX()\n \"\n [style.width]=\"orientation() === 'vertical' ? '' : indicatorSize()\"\n [style.height]=\"orientation() === 'vertical' ? indicatorSize() : ''\"\n ></div>\n }\n</div>\n\n@if (panels().length > 0) {\n <div\n class=\"solaris-tabs__panels\"\n [class.solaris-tabs__panels--fade]=\"contentTransition() === 'fade'\"\n [class.solaris-tabs__panels--slide]=\"contentTransition() === 'slide'\"\n [class.solaris-tabs__panels--slide-from-right]=\"\n contentTransition() === 'slide' && slideDirection() === 'right'\n \"\n [class.solaris-tabs__panels--slide-from-left]=\"\n contentTransition() === 'slide' && slideDirection() === 'left'\n \"\n >\n <ng-content select=\"solaris-tab-panel\" />\n </div>\n}\n", styles: [":host{--solaris-tabs-gap: 0;--solaris-tabs-padding: 0;--solaris-tabs-tab-height: auto;--solaris-tabs-badge-gap: var(--solaris-spacing-2);--solaris-tabs-tab-radius: var(--solaris-radius-sm);--solaris-tabs-tab-color: var(--solaris-text-default);--solaris-tabs-tab-padding-y: var(--solaris-spacing-2);--solaris-tabs-tab-padding-x: var(--solaris-spacing-3);--solaris-tabs-panel-padding: var(--solaris-spacing-4);--solaris-tabs-border-color: var(--solaris-border-subtle);--solaris-tabs-indicator-color: var(--solaris-primary-base);--solaris-tabs-tab-active-color: var(--solaris-primary-text);--solaris-tabs-indicator-size: var(--solaris-border-width-md);--solaris-tabs-tab-hover-background: var(--solaris-surface-subtle);--solaris-tabs-tab-active-background: var(--solaris-primary-surface);width:100%;display:block}:host([data-orientation=vertical]){display:flex;gap:var(--solaris-spacing-4)}.solaris-tabs__tablist{display:flex;position:relative;align-items:stretch;gap:var(--solaris-tabs-gap)}:host([data-orientation=horizontal]) .solaris-tabs__tablist{overflow-x:auto;overflow-y:hidden;flex-direction:row;scrollbar-width:thin;border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-orientation=vertical]) .solaris-tabs__tablist{flex-shrink:0;flex-direction:column;border-right:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-scrollable=false][data-orientation=horizontal]) .solaris-tabs__tablist{overflow:visible}:host([data-full-width=true][data-orientation=horizontal]) .solaris-tabs__tablist{display:flex}:host([data-appearance=pills][data-orientation=horizontal]) .solaris-tabs__tablist{border-bottom:none;gap:var(--solaris-spacing-1)}:host([data-appearance=underline][data-orientation=horizontal]) .solaris-tabs__tablist{border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-appearance=enclosed][data-orientation=horizontal]) .solaris-tabs__tablist{margin-bottom:0;border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-appearance=enclosed][data-orientation=horizontal]) .solaris-tabs__panels{border:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color);border-top:none;border-radius:0 0 var(--solaris-radius-sm) var(--solaris-radius-sm)}.solaris-tabs__panels{position:relative;overflow:hidden}:host([data-orientation=vertical]) .solaris-tabs__panels{flex:1;min-width:0}.solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true]{animation:solaris-tabs-fade-in var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:solaris-tabs-slide-in-right var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-tabs__panels--slide-from-left>::ng-deep solaris-tab-panel[data-active=true]{animation-name:solaris-tabs-slide-in-left}@keyframes solaris-tabs-fade-in{0%{opacity:0}to{opacity:1}}@keyframes solaris-tabs-slide-in-right{0%{opacity:0;transform:translate(var(--solaris-spacing-4))}to{opacity:1;transform:translate(0)}}@keyframes solaris-tabs-slide-in-left{0%{opacity:0;transform:translate(calc(-1 * var(--solaris-spacing-4)))}to{opacity:1;transform:translate(0)}}.solaris-tabs__indicator{position:absolute;bottom:0;left:0;height:var(--solaris-tabs-indicator-size);background:var(--solaris-tabs-indicator-color);border-radius:var(--solaris-radius-sm) var(--solaris-radius-sm) 0 0;transition:none;pointer-events:none;z-index:1}.solaris-tabs__indicator--vertical{inset:0 0 auto auto;width:var(--solaris-tabs-indicator-size);height:0;border-radius:var(--solaris-radius-sm) 0 0 var(--solaris-radius-sm)}.solaris-tabs__indicator--animate{transition:transform var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),width var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),height var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}@media(prefers-reduced-motion:reduce){.solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true],.solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:none}.solaris-tabs__indicator{transition:none}}:host-context([data-reduced-motion=true]) .solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true],:host-context([data-reduced-motion=true]) .solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:none}:host-context([data-reduced-motion=true]) .solaris-tabs__indicator{transition:none}\n"] }]
168
+ }], ctorParameters: () => [], propDecorators: { tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SolarisTabComponent), { isSignal: true }] }], panels: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SolarisTabPanelComponent), { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], activationMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "activationMode", required: false }] }], contentTransition: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTransition", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], fitContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "fitContent", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], showIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIndicator", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelKey", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], tabChange: [{ type: i0.Output, args: ["tabChange"] }], tabClick: [{ type: i0.Output, args: ["tabClick"] }] } });
169
+ //# sourceMappingURL=tabs.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/component/tabs.component.ts","../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/component/tabs.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,KAAK,EACL,eAAe,EACf,QAAQ,EACR,MAAM,EACN,MAAM,EACN,uBAAuB,EACvB,MAAM,EACN,UAAU,EACV,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAA2B,MAAM,sBAAsB,CAAC;;AAa7E,IAAI,cAAc,GAAG,CAAC,CAAC;AA2BvB,MAAM,OAAO,oBAAoB;IACd,gBAAgB,GAAG,MAAM,CAAC,uBAAuB,EAAE;QAClE,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;IACc,UAAU,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,cAAc;wBACxC,4BAA4B,EAAE,iBAAiB;wBAC/C,gCAAgC,EAAE,qBAAqB;qBACxD,aACU;wBACT;4BACE,OAAO,EAAE,YAAY;4BACrB,WAAW,sBAAsB;yBAClC;qBACF;sHAS+B,mBAAmB,2FACjB,wBAAwB","sourcesContent":["import {\n Component,\n input,\n output,\n model,\n contentChildren,\n computed,\n signal,\n inject,\n ChangeDetectionStrategy,\n effect,\n ElementRef,\n NgZone,\n} from '@angular/core';\n\nimport { SolarisTranslateService } from '../../../../services/translation';\nimport { SolarisTabComponent } from '../tab/tab.component';\nimport { SolarisTabPanelComponent } from '../tab-panel/tab-panel.component';\nimport { SOLARIS_TABS, type SolarisTabsControl } from '../token/tabs.tokens';\n\nimport type {\n SolarisTabsOrientation,\n SolarisTabsAppearance,\n SolarisTabsSize,\n SolarisTabsDensity,\n SolarisTabsActivationMode,\n SolarisTabsContentTransition,\n SolarisTabsChangeEvent,\n SolarisTabClickEvent,\n} from '../model/tabs.types';\n\nlet nextInstanceId = 0;\n\n@Component({\n selector: 'solaris-tabs',\n standalone: true,\n imports: [],\n templateUrl: './tabs.component.html',\n styleUrls: ['./tabs.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'solaris-tabs',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-appearance]': 'appearance()',\n '[attr.data-size]': 'size()',\n '[attr.data-density]': 'density()',\n '[attr.data-full-width]': 'fullWidth()',\n '[attr.data-scrollable]': 'scrollable()',\n '[attr.data-show-indicator]': 'showIndicator()',\n '[attr.data-content-transition]': 'contentTransition()',\n },\n providers: [\n {\n provide: SOLARIS_TABS,\n useExisting: SolarisTabsComponent,\n },\n ],\n})\nexport class SolarisTabsComponent implements SolarisTabsControl {\n private readonly translateService = inject(SolarisTranslateService, {\n optional: true,\n });\n private readonly elementRef = inject(ElementRef);\n private readonly ngZone = inject(NgZone);\n\n readonly tabs = contentChildren(SolarisTabComponent);\n readonly panels = contentChildren(SolarisTabPanelComponent);\n\n readonly value = model<string | number | undefined>(undefined);\n readonly defaultValue = input<string | number | undefined>(undefined);\n readonly orientation = input<SolarisTabsOrientation>('horizontal');\n readonly appearance = input<SolarisTabsAppearance>('underline');\n readonly size = input<SolarisTabsSize>('md');\n readonly density = input<SolarisTabsDensity>('comfortable');\n readonly activationMode = input<SolarisTabsActivationMode>('automatic');\n readonly contentTransition = input<SolarisTabsContentTransition>('fade');\n readonly fullWidth = input<boolean>(false);\n readonly fitContent = input<boolean>(true);\n readonly scrollable = input<boolean>(true);\n readonly showIndicator = input<boolean>(true);\n readonly disabled = input<boolean>(false);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelKey = input<string | undefined>(undefined);\n\n readonly valueChange = output<string | number | undefined>();\n readonly tabChange = output<SolarisTabsChangeEvent>();\n readonly tabClick = output<SolarisTabClickEvent>();\n\n protected readonly previousValue = signal<string | number | undefined>(\n undefined,\n );\n protected readonly slideDirection = signal<'left' | 'right'>('right');\n\n protected readonly instanceId = `solaris-tabs-${nextInstanceId++}`;\n\n protected readonly indicatorReady = signal(false);\n protected readonly indicatorTransformX = signal('translateX(0)');\n protected readonly indicatorTransformY = signal('translateY(0)');\n protected readonly indicatorSize = signal('0');\n\n protected readonly resolvedAriaLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel();\n const ariaLabelKey = this.ariaLabelKey();\n if (ariaLabelKey && this.translateService) {\n return this.translateService.translate(ariaLabelKey);\n }\n return ariaLabelKey ?? 'Tabs';\n });\n\n constructor() {\n effect(() => {\n const defaultValue = this.defaultValue();\n const currentValue = this.value();\n if (currentValue === undefined && defaultValue !== undefined) {\n this.value.set(defaultValue);\n }\n });\n\n effect(() => {\n const current = this.value();\n const previous = this.previousValue();\n if (current !== previous && previous !== undefined) {\n this.valueChange.emit(current);\n this.tabChange.emit({\n value: current,\n previousValue: previous,\n });\n this.updateSlideDirection(current, previous);\n }\n this.previousValue.set(current);\n });\n\n this.ngZone.runOutsideAngular(() => {\n setTimeout(() => this.measureIndicator());\n });\n\n effect(() => {\n this.value();\n this.appearance();\n this.orientation();\n this.tabs();\n this.ngZone.runOutsideAngular(() => {\n setTimeout(() => this.measureIndicator());\n });\n });\n }\n\n activateTab(tab: SolarisTabComponent): void {\n if (tab.isComputedDisabled()) return;\n if (this.disabled()) return;\n this.value.set(tab.value());\n const label = tab.resolvedLabel();\n this.tabClick.emit({\n value: tab.value(),\n label,\n });\n }\n\n focusTab(tab: SolarisTabComponent): void {\n // SECURITY_EXCEPTION: nativeElement required to query tab elements for programmatic focus. Read-only, SSR-safe.\n const nativeElement = this.elementRef.nativeElement as HTMLElement;\n const tabElements = nativeElement.querySelectorAll(\n 'solaris-tab',\n ) as NodeListOf<HTMLElement>;\n const tabArray = this.tabs();\n const index = tabArray.indexOf(tab);\n if (index >= 0 && tabElements[index]) {\n tabElements[index].focus();\n }\n }\n\n generateTabId(value: string | number): string {\n return `${this.instanceId}-tab-${value}`;\n }\n\n generatePanelId(value: string | number): string {\n return `${this.instanceId}-panel-${value}`;\n }\n\n private measureIndicator(): void {\n // SECURITY_EXCEPTION: nativeElement required to query tablist for indicator measurement. Read-only, SSR-safe.\n const nativeEl = this.elementRef.nativeElement as HTMLElement;\n const tablist = nativeEl.querySelector(\n '.solaris-tabs__tablist',\n ) as HTMLElement | null;\n if (!tablist) return;\n\n const activeTab = tablist.querySelector(\n 'solaris-tab[data-active=\"true\"]',\n ) as HTMLElement | null;\n if (!activeTab) return;\n\n const isVertical = this.orientation() === 'vertical';\n\n if (isVertical) {\n this.indicatorTransformY.set(`translateY(${activeTab.offsetTop}px)`);\n this.indicatorSize.set(`${activeTab.offsetHeight}px`);\n } else {\n this.indicatorTransformX.set(`translateX(${activeTab.offsetLeft}px)`);\n this.indicatorSize.set(`${activeTab.offsetWidth}px`);\n }\n\n if (!this.indicatorReady()) {\n setTimeout(() => this.indicatorReady.set(true));\n }\n }\n\n private updateSlideDirection(\n current: string | number | undefined,\n previous: string | number | undefined,\n ): void {\n const tabs = this.tabs();\n const currentIndex = tabs.findIndex((t) => t.value() === current);\n const previousIndex = tabs.findIndex((t) => t.value() === previous);\n if (currentIndex >= 0 && previousIndex >= 0) {\n this.slideDirection.set(currentIndex > previousIndex ? 'right' : 'left');\n }\n }\n}\n","<div\n class=\"solaris-tabs__tablist\"\n #tablist\n role=\"tablist\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n>\n <ng-content select=\"solaris-tab\" />\n\n @if (showIndicator() && appearance() === 'underline') {\n <div\n class=\"solaris-tabs__indicator\"\n [class.solaris-tabs__indicator--animate]=\"indicatorReady()\"\n [class.solaris-tabs__indicator--vertical]=\"orientation() === 'vertical'\"\n [style.transform]=\"\n orientation() === 'vertical'\n ? indicatorTransformY()\n : indicatorTransformX()\n \"\n [style.width]=\"orientation() === 'vertical' ? '' : indicatorSize()\"\n [style.height]=\"orientation() === 'vertical' ? indicatorSize() : ''\"\n ></div>\n }\n</div>\n\n@if (panels().length > 0) {\n <div\n class=\"solaris-tabs__panels\"\n [class.solaris-tabs__panels--fade]=\"contentTransition() === 'fade'\"\n [class.solaris-tabs__panels--slide]=\"contentTransition() === 'slide'\"\n [class.solaris-tabs__panels--slide-from-right]=\"\n contentTransition() === 'slide' && slideDirection() === 'right'\n \"\n [class.solaris-tabs__panels--slide-from-left]=\"\n contentTransition() === 'slide' && slideDirection() === 'left'\n \"\n >\n <ng-content select=\"solaris-tab-panel\" />\n </div>\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { SolarisTabsComponent } from './component/tabs.component';
2
+ export { SolarisTabComponent } from './tab/tab.component';
3
+ export { SolarisTabPanelComponent } from './tab-panel/tab-panel.component';
4
+ export { SOLARIS_TABS } from './token/tabs.tokens';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/components/navigation/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { SolarisTabsComponent } from './component/tabs.component';\nexport { SolarisTabComponent } from './tab/tab.component';\nexport { SolarisTabPanelComponent } from './tab-panel/tab-panel.component';\nexport { SOLARIS_TABS } from './token/tabs.tokens';\n\nexport type { SolarisTabsControl } from './token/tabs.tokens';\nexport type {\n SolarisTabsOrientation,\n SolarisTabsAppearance,\n SolarisTabsSize,\n SolarisTabsDensity,\n SolarisTabsActivationMode,\n SolarisTabsContentTransition,\n SolarisTabsValueChangeEvent,\n SolarisTabsChangeEvent,\n SolarisTabClickEvent,\n} from './model/tabs.types';\n"]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=tabs.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/model/tabs.types.ts"],"names":[],"mappings":"","sourcesContent":["export type SolarisTabsOrientation = 'horizontal' | 'vertical';\n\nexport type SolarisTabsAppearance = 'underline' | 'pills' | 'enclosed';\n\nexport type SolarisTabsSize = 'sm' | 'md' | 'lg';\n\nexport type SolarisTabsDensity = 'compact' | 'comfortable';\n\nexport type SolarisTabsActivationMode = 'automatic' | 'manual';\n\nexport type SolarisTabsContentTransition = 'none' | 'fade' | 'slide';\n\nexport interface SolarisTabsValueChangeEvent {\n value: string | number | undefined;\n}\n\nexport interface SolarisTabsChangeEvent {\n value: string | number | undefined;\n previousValue: string | number | undefined;\n}\n\nexport interface SolarisTabClickEvent {\n value: string | number;\n label: string | undefined;\n}\n"]}
@@ -0,0 +1,195 @@
1
+ import { input, inject, computed, Component, ChangeDetectionStrategy, } from '@angular/core';
2
+ import { SolarisTranslateService } from '../../../../services/translation';
3
+ import { SolarisBadgeComponent } from '../../../data-display/badge';
4
+ import { SolarisIconComponent } from '../../../icon';
5
+ import { SOLARIS_TABS } from '../token/tabs.tokens';
6
+ import * as i0 from "@angular/core";
7
+ let nextId = 0;
8
+ export class SolarisTabComponent {
9
+ translateService = inject(SolarisTranslateService, {
10
+ optional: true,
11
+ });
12
+ tabsControl = inject(SOLARIS_TABS, { optional: true });
13
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
14
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
15
+ iconDecorative = input(true, ...(ngDevMode ? [{ debugName: "iconDecorative" }] : /* istanbul ignore next */ []));
16
+ icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
17
+ label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
18
+ labelKey = input(undefined, ...(ngDevMode ? [{ debugName: "labelKey" }] : /* istanbul ignore next */ []));
19
+ ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
20
+ badgeLabel = input(undefined, ...(ngDevMode ? [{ debugName: "badgeLabel" }] : /* istanbul ignore next */ []));
21
+ ariaLabelKey = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabelKey" }] : /* istanbul ignore next */ []));
22
+ badgeLabelKey = input(undefined, ...(ngDevMode ? [{ debugName: "badgeLabelKey" }] : /* istanbul ignore next */ []));
23
+ badge = input(undefined, ...(ngDevMode ? [{ debugName: "badge" }] : /* istanbul ignore next */ []));
24
+ instanceId = `solaris-tab-${nextId++}`;
25
+ tabId = computed(() => {
26
+ if (this.tabsControl) {
27
+ return this.tabsControl.generateTabId(this.value());
28
+ }
29
+ return `${this.instanceId}-tab`;
30
+ }, ...(ngDevMode ? [{ debugName: "tabId" }] : /* istanbul ignore next */ []));
31
+ panelId = computed(() => {
32
+ if (this.tabsControl) {
33
+ return this.tabsControl.generatePanelId(this.value());
34
+ }
35
+ return `${this.instanceId}-panel`;
36
+ }, ...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
37
+ orientation = computed(() => {
38
+ return this.tabsControl?.orientation() ?? 'horizontal';
39
+ }, ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
40
+ size = computed(() => {
41
+ return this.tabsControl?.size() ?? 'md';
42
+ }, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
43
+ density = computed(() => {
44
+ return this.tabsControl?.density() ?? 'comfortable';
45
+ }, ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
46
+ appearance = computed(() => {
47
+ return this.tabsControl?.appearance() ?? 'underline';
48
+ }, ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
49
+ isActive = computed(() => {
50
+ if (!this.tabsControl)
51
+ return false;
52
+ return this.tabsControl.value() === this.value();
53
+ }, ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
54
+ isComputedDisabled = computed(() => {
55
+ return this.disabled() || (this.tabsControl?.disabled() ?? false);
56
+ }, ...(ngDevMode ? [{ debugName: "isComputedDisabled" }] : /* istanbul ignore next */ []));
57
+ computedBadge = computed(() => {
58
+ const b = this.badge();
59
+ if (b === undefined || b === null)
60
+ return null;
61
+ return b;
62
+ }, ...(ngDevMode ? [{ debugName: "computedBadge" }] : /* istanbul ignore next */ []));
63
+ index = computed(() => {
64
+ if (!this.tabsControl)
65
+ return -1;
66
+ return this.tabsControl.tabs().indexOf(this);
67
+ }, ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
68
+ resolvedLabel = computed(() => {
69
+ if (this.label())
70
+ return this.label();
71
+ const labelKey = this.labelKey();
72
+ if (labelKey && this.translateService) {
73
+ return this.translateService.translate(labelKey);
74
+ }
75
+ return labelKey ?? undefined;
76
+ }, ...(ngDevMode ? [{ debugName: "resolvedLabel" }] : /* istanbul ignore next */ []));
77
+ resolvedBadgeLabel = computed(() => {
78
+ if (this.badgeLabel())
79
+ return this.badgeLabel();
80
+ const badgeLabelKey = this.badgeLabelKey();
81
+ if (badgeLabelKey && this.translateService) {
82
+ return this.translateService.translate(badgeLabelKey);
83
+ }
84
+ return badgeLabelKey ?? undefined;
85
+ }, ...(ngDevMode ? [{ debugName: "resolvedBadgeLabel" }] : /* istanbul ignore next */ []));
86
+ resolvedAriaLabel = computed(() => {
87
+ if (this.ariaLabel())
88
+ return this.ariaLabel();
89
+ const ariaLabelKey = this.ariaLabelKey();
90
+ if (ariaLabelKey && this.translateService) {
91
+ return this.translateService.translate(ariaLabelKey);
92
+ }
93
+ return undefined;
94
+ }, ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
95
+ onClick() {
96
+ if (this.isComputedDisabled())
97
+ return;
98
+ this.tabsControl?.activateTab(this);
99
+ this.tabsControl?.focusTab(this);
100
+ }
101
+ onKeydown(event) {
102
+ if (this.isComputedDisabled())
103
+ return;
104
+ const tabs = this.tabsControl?.tabs() ?? [];
105
+ const currentIndex = this.index();
106
+ if (event.key === 'Enter' || event.key === ' ') {
107
+ event.preventDefault();
108
+ if (this.tabsControl?.activationMode() === 'manual') {
109
+ this.tabsControl.activateTab(this);
110
+ }
111
+ return;
112
+ }
113
+ const nextIndex = this.getNextIndex(event.key, tabs, currentIndex);
114
+ if (nextIndex === null || nextIndex === currentIndex)
115
+ return;
116
+ event.preventDefault();
117
+ const nextTab = tabs[nextIndex];
118
+ if (this.tabsControl?.activationMode() === 'automatic') {
119
+ this.tabsControl.activateTab(nextTab);
120
+ }
121
+ this.tabsControl?.focusTab(nextTab);
122
+ }
123
+ getNextIndex(key, tabs, currentIndex) {
124
+ switch (key) {
125
+ case 'ArrowRight':
126
+ return this.orientation() === 'horizontal'
127
+ ? this.findNextEnabled(tabs, currentIndex, 1)
128
+ : null;
129
+ case 'ArrowLeft':
130
+ return this.orientation() === 'horizontal'
131
+ ? this.findNextEnabled(tabs, currentIndex, -1)
132
+ : null;
133
+ case 'ArrowDown':
134
+ return this.orientation() === 'vertical'
135
+ ? this.findNextEnabled(tabs, currentIndex, 1)
136
+ : null;
137
+ case 'ArrowUp':
138
+ return this.orientation() === 'vertical'
139
+ ? this.findNextEnabled(tabs, currentIndex, -1)
140
+ : null;
141
+ case 'Home':
142
+ return this.findFirstEnabled(tabs);
143
+ case 'End':
144
+ return this.findLastEnabled(tabs);
145
+ default:
146
+ return null;
147
+ }
148
+ }
149
+ findNextEnabled(tabs, fromIndex, direction) {
150
+ let i = fromIndex + direction;
151
+ while (i >= 0 && i < tabs.length) {
152
+ if (!tabs[i].isComputedDisabled())
153
+ return i;
154
+ i += direction;
155
+ }
156
+ return null;
157
+ }
158
+ findFirstEnabled(tabs) {
159
+ for (let i = 0; i < tabs.length; i++) {
160
+ if (!tabs[i].isComputedDisabled())
161
+ return i;
162
+ }
163
+ return null;
164
+ }
165
+ findLastEnabled(tabs) {
166
+ for (let i = tabs.length - 1; i >= 0; i--) {
167
+ if (!tabs[i].isComputedDisabled())
168
+ return i;
169
+ }
170
+ return null;
171
+ }
172
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
173
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisTabComponent, isStandalone: true, selector: "solaris-tab", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, iconDecorative: { classPropertyName: "iconDecorative", publicName: "iconDecorative", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, badgeLabel: { classPropertyName: "badgeLabel", publicName: "badgeLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelKey: { classPropertyName: "ariaLabelKey", publicName: "ariaLabelKey", isSignal: true, isRequired: false, transformFunction: null }, badgeLabelKey: { classPropertyName: "badgeLabelKey", publicName: "badgeLabelKey", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tab" }, listeners: { "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "attr.id": "tabId()", "attr.data-size": "size()", "attr.data-density": "density()", "attr.data-active": "isActive()", "attr.aria-controls": "panelId()", "attr.aria-selected": "isActive()", "attr.data-appearance": "appearance()", "attr.aria-label": "resolvedAriaLabel()", "attr.data-orientation": "orientation()", "attr.tabindex": "isActive() ? \"0\" : \"-1\"", "attr.data-disabled": "isComputedDisabled()", "attr.aria-disabled": "isComputedDisabled() || undefined" } }, ngImport: i0, template: "<span class=\"solaris-tab__inner\">\n @if (icon(); as iconName) {\n <solaris-icon\n class=\"solaris-tab__icon\"\n [name]=\"iconName\"\n [decorative]=\"iconDecorative()\"\n />\n }\n @if (resolvedLabel(); as labelText) {\n <span class=\"solaris-tab__label\">{{ labelText }}</span>\n }\n <ng-content />\n @if (computedBadge(); as badgeValue) {\n <solaris-badge\n class=\"solaris-tab__badge\"\n variant=\"count\"\n size=\"sm\"\n [attr.aria-label]=\"resolvedBadgeLabel()\"\n >\n {{ badgeValue }}\n </solaris-badge>\n }\n</span>\n", styles: [":host{--solaris-tab-gap: var(--solaris-spacing-2);--solaris-tab-padding-x: var(--solaris-spacing-3);--solaris-tab-padding-y: var(--solaris-spacing-2);--solaris-tab-color: var(--solaris-text-default);--solaris-tab-active-color: var(--solaris-primary-text);--solaris-tab-hover-background: var(--solaris-surface-subtle);--solaris-tab-active-background: var(--solaris-surface-base);--solaris-tab-radius: var(--solaris-radius-sm);--solaris-tab-font-size: var(--solaris-font-size-sm);--solaris-tab-font-weight: var(--solaris-font-weight-medium);--solaris-tab-icon-size: var(--solaris-spacing-4);--solaris-tab-badge-gap: var(--solaris-spacing-2);--solaris-tabs-indicator-color: var(--solaris-primary-base);--solaris-tabs-border-color: var(--solaris-border-subtle);--solaris-tabs-tab-active-background: var(--solaris-primary-surface);border:none;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;align-items:center;white-space:nowrap;display:inline-flex;text-decoration:none;background:transparent;gap:var(--solaris-tab-gap);color:var(--solaris-tab-color);padding:var(--solaris-tab-padding-y) var(--solaris-tab-padding-x);font:var(--solaris-tab-font-weight) var(--solaris-tab-font-size)/1 var(--solaris-font-family-sans);transition:color var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),background var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),box-shadow var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host(:hover:not([data-disabled=true]):not([data-active=true])){background:var(--solaris-tab-hover-background)}:host(:focus-visible){outline-offset:var(--solaris-border-width-md);outline:var(--solaris-border-width-md) solid var(--solaris-primary-base)}:host([data-active=true]){color:var(--solaris-tab-active-color)}:host([data-disabled=true]){opacity:.5;cursor:not-allowed}:host([data-orientation=vertical]){width:100%;display:flex;max-width:100%;box-sizing:border-box}.solaris-tab__inner{align-items:center;display:inline-flex;gap:var(--solaris-tab-gap)}.solaris-tab__icon{flex-shrink:0;width:var(--solaris-tab-icon-size);height:var(--solaris-tab-icon-size)}.solaris-tab__label{line-height:var(--solaris-line-height-md)}.solaris-tab__badge{flex-shrink:0}:host([data-size=sm]){--solaris-tab-padding-y: var(--solaris-spacing-1);--solaris-tab-padding-x: var(--solaris-spacing-2);--solaris-tab-icon-size: var(--solaris-spacing-3);--solaris-tab-font-size: var(--solaris-font-size-xs)}:host([data-size=lg]){--solaris-tab-padding-y: var(--solaris-spacing-3);--solaris-tab-padding-x: var(--solaris-spacing-4);--solaris-tab-icon-size: var(--solaris-spacing-5);--solaris-tab-font-size: var(--solaris-font-size-md)}:host([data-density=compact]){--solaris-tab-gap: var(--solaris-spacing-1);--solaris-tab-padding-y: var(--solaris-spacing-1);--solaris-tab-padding-x: var(--solaris-spacing-2)}:host([data-appearance=underline]){--solaris-tab-radius: 0}:host([data-appearance=pills]){border-radius:var(--solaris-tab-radius);--solaris-tab-radius: var(--solaris-radius-full)}:host([data-appearance=pills]:hover:not([data-disabled=true]):not([data-active=true])){background:var(--solaris-tab-hover-background)}:host([data-appearance=pills][data-active=true]){color:var(--solaris-tab-active-color);background:var(--solaris-tabs-tab-active-background)}:host([data-appearance=enclosed]){margin-bottom:0;border:var(--solaris-border-width-sm) solid transparent;border-bottom:none;border-radius:var(--solaris-radius-sm) var(--solaris-radius-sm) 0 0}:host([data-appearance=enclosed][data-active=true]){background:var(--solaris-surface-base);border-color:var(--solaris-tabs-border-color)}:host-context([data-full-width=true]){flex:1;justify-content:center}@media(prefers-reduced-motion:reduce){:host{transition:none}}:host-context([data-reduced-motion=true]){transition:none}\n"], dependencies: [{ kind: "component", type: SolarisIconComponent, selector: "solaris-icon", inputs: ["name", "ariaLabel", "decorative"] }, { kind: "component", type: SolarisBadgeComponent, selector: "solaris-badge", inputs: ["appearance", "variant", "color", "radius", "density", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
174
+ }
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTabComponent, decorators: [{
176
+ type: Component,
177
+ args: [{ selector: 'solaris-tab', standalone: true, imports: [SolarisIconComponent, SolarisBadgeComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: {
178
+ role: 'tab',
179
+ '[attr.id]': 'tabId()',
180
+ '(click)': 'onClick()',
181
+ '[attr.data-size]': 'size()',
182
+ '(keydown)': 'onKeydown($event)',
183
+ '[attr.data-density]': 'density()',
184
+ '[attr.data-active]': 'isActive()',
185
+ '[attr.aria-controls]': 'panelId()',
186
+ '[attr.aria-selected]': 'isActive()',
187
+ '[attr.data-appearance]': 'appearance()',
188
+ '[attr.aria-label]': 'resolvedAriaLabel()',
189
+ '[attr.data-orientation]': 'orientation()',
190
+ '[attr.tabindex]': 'isActive() ? "0" : "-1"',
191
+ '[attr.data-disabled]': 'isComputedDisabled()',
192
+ '[attr.aria-disabled]': 'isComputedDisabled() || undefined',
193
+ }, template: "<span class=\"solaris-tab__inner\">\n @if (icon(); as iconName) {\n <solaris-icon\n class=\"solaris-tab__icon\"\n [name]=\"iconName\"\n [decorative]=\"iconDecorative()\"\n />\n }\n @if (resolvedLabel(); as labelText) {\n <span class=\"solaris-tab__label\">{{ labelText }}</span>\n }\n <ng-content />\n @if (computedBadge(); as badgeValue) {\n <solaris-badge\n class=\"solaris-tab__badge\"\n variant=\"count\"\n size=\"sm\"\n [attr.aria-label]=\"resolvedBadgeLabel()\"\n >\n {{ badgeValue }}\n </solaris-badge>\n }\n</span>\n", styles: [":host{--solaris-tab-gap: var(--solaris-spacing-2);--solaris-tab-padding-x: var(--solaris-spacing-3);--solaris-tab-padding-y: var(--solaris-spacing-2);--solaris-tab-color: var(--solaris-text-default);--solaris-tab-active-color: var(--solaris-primary-text);--solaris-tab-hover-background: var(--solaris-surface-subtle);--solaris-tab-active-background: var(--solaris-surface-base);--solaris-tab-radius: var(--solaris-radius-sm);--solaris-tab-font-size: var(--solaris-font-size-sm);--solaris-tab-font-weight: var(--solaris-font-weight-medium);--solaris-tab-icon-size: var(--solaris-spacing-4);--solaris-tab-badge-gap: var(--solaris-spacing-2);--solaris-tabs-indicator-color: var(--solaris-primary-base);--solaris-tabs-border-color: var(--solaris-border-subtle);--solaris-tabs-tab-active-background: var(--solaris-primary-surface);border:none;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;align-items:center;white-space:nowrap;display:inline-flex;text-decoration:none;background:transparent;gap:var(--solaris-tab-gap);color:var(--solaris-tab-color);padding:var(--solaris-tab-padding-y) var(--solaris-tab-padding-x);font:var(--solaris-tab-font-weight) var(--solaris-tab-font-size)/1 var(--solaris-font-family-sans);transition:color var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),background var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),box-shadow var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host(:hover:not([data-disabled=true]):not([data-active=true])){background:var(--solaris-tab-hover-background)}:host(:focus-visible){outline-offset:var(--solaris-border-width-md);outline:var(--solaris-border-width-md) solid var(--solaris-primary-base)}:host([data-active=true]){color:var(--solaris-tab-active-color)}:host([data-disabled=true]){opacity:.5;cursor:not-allowed}:host([data-orientation=vertical]){width:100%;display:flex;max-width:100%;box-sizing:border-box}.solaris-tab__inner{align-items:center;display:inline-flex;gap:var(--solaris-tab-gap)}.solaris-tab__icon{flex-shrink:0;width:var(--solaris-tab-icon-size);height:var(--solaris-tab-icon-size)}.solaris-tab__label{line-height:var(--solaris-line-height-md)}.solaris-tab__badge{flex-shrink:0}:host([data-size=sm]){--solaris-tab-padding-y: var(--solaris-spacing-1);--solaris-tab-padding-x: var(--solaris-spacing-2);--solaris-tab-icon-size: var(--solaris-spacing-3);--solaris-tab-font-size: var(--solaris-font-size-xs)}:host([data-size=lg]){--solaris-tab-padding-y: var(--solaris-spacing-3);--solaris-tab-padding-x: var(--solaris-spacing-4);--solaris-tab-icon-size: var(--solaris-spacing-5);--solaris-tab-font-size: var(--solaris-font-size-md)}:host([data-density=compact]){--solaris-tab-gap: var(--solaris-spacing-1);--solaris-tab-padding-y: var(--solaris-spacing-1);--solaris-tab-padding-x: var(--solaris-spacing-2)}:host([data-appearance=underline]){--solaris-tab-radius: 0}:host([data-appearance=pills]){border-radius:var(--solaris-tab-radius);--solaris-tab-radius: var(--solaris-radius-full)}:host([data-appearance=pills]:hover:not([data-disabled=true]):not([data-active=true])){background:var(--solaris-tab-hover-background)}:host([data-appearance=pills][data-active=true]){color:var(--solaris-tab-active-color);background:var(--solaris-tabs-tab-active-background)}:host([data-appearance=enclosed]){margin-bottom:0;border:var(--solaris-border-width-sm) solid transparent;border-bottom:none;border-radius:var(--solaris-radius-sm) var(--solaris-radius-sm) 0 0}:host([data-appearance=enclosed][data-active=true]){background:var(--solaris-surface-base);border-color:var(--solaris-tabs-border-color)}:host-context([data-full-width=true]){flex:1;justify-content:center}@media(prefers-reduced-motion:reduce){:host{transition:none}}:host-context([data-reduced-motion=true]){transition:none}\n"] }]
194
+ }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], iconDecorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconDecorative", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelKey", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], badgeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeLabel", required: false }] }], ariaLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelKey", required: false }] }], badgeLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeLabelKey", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }] } });
195
+ //# sourceMappingURL=tab.component.js.map