@educarehq/solaris-ui 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (598) hide show
  1. package/fesm2022/educarehq-solaris-ui.mjs +12261 -0
  2. package/fesm2022/educarehq-solaris-ui.mjs.map +1 -0
  3. package/package.json +9 -5
  4. package/styles/_button.scss +510 -510
  5. package/styles/_dropdown-menu.scss +72 -72
  6. package/styles/_icon-button.scss +481 -481
  7. package/styles/_input.scss +255 -255
  8. package/styles/_popover.scss +73 -73
  9. package/styles/_theme.scss +46 -36
  10. package/styles/_toast.scss +9 -9
  11. package/styles/_tooltip.scss +3 -3
  12. package/styles/token/border/_border.scss +5 -0
  13. package/styles/token/border/_index.scss +1 -0
  14. package/styles/token/color/_dark.scss +78 -0
  15. package/styles/token/color/_high-contrast.scss +27 -0
  16. package/styles/token/color/_index.scss +3 -0
  17. package/styles/token/color/_light.scss +69 -0
  18. package/styles/token/density/_comfortable.scss +15 -0
  19. package/styles/token/density/_compact.scss +15 -0
  20. package/styles/token/density/_index.scss +2 -0
  21. package/styles/token/motion/_index.scss +2 -0
  22. package/styles/token/motion/_motion.scss +15 -0
  23. package/styles/token/motion/_reduced-motion.scss +15 -0
  24. package/styles/token/opacity/_index.scss +1 -0
  25. package/styles/token/opacity/_opacity.scss +4 -0
  26. package/styles/token/radius/_index.scss +1 -0
  27. package/styles/token/radius/_radius.scss +8 -0
  28. package/styles/token/shadow/_index.scss +1 -0
  29. package/styles/token/shadow/_shadow.scss +26 -0
  30. package/styles/token/spacing/_index.scss +1 -0
  31. package/styles/token/spacing/_spacing.scss +15 -0
  32. package/styles/token/typography/_font-family.scss +13 -0
  33. package/styles/token/typography/_index.scss +2 -0
  34. package/styles/token/typography/_typography.scss +25 -0
  35. package/styles/token/z-index/_index.scss +1 -0
  36. package/styles/token/z-index/_z-index.scss +10 -0
  37. package/types/educarehq-solaris-ui.d.ts +3201 -0
  38. package/educarehq-solaris-ui.d.ts +0 -5
  39. package/esm2022/educarehq-solaris-ui.js +0 -5
  40. package/esm2022/educarehq-solaris-ui.js.map +0 -1
  41. package/esm2022/index.js +0 -109
  42. package/esm2022/index.js.map +0 -1
  43. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js +0 -17
  44. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js.map +0 -1
  45. package/esm2022/lib/components/actions/button/directives/button.directive.js +0 -60
  46. package/esm2022/lib/components/actions/button/directives/button.directive.js.map +0 -1
  47. package/esm2022/lib/components/actions/button/index.js +0 -3
  48. package/esm2022/lib/components/actions/button/index.js.map +0 -1
  49. package/esm2022/lib/components/actions/button/model/button.types.js +0 -1
  50. package/esm2022/lib/components/actions/button/model/button.types.js.map +0 -1
  51. package/esm2022/lib/components/actions/button-group/component/button-group.component.js +0 -21
  52. package/esm2022/lib/components/actions/button-group/component/button-group.component.js.map +0 -1
  53. package/esm2022/lib/components/actions/button-group/model/button-group.types.js +0 -1
  54. package/esm2022/lib/components/actions/button-group/model/button-group.types.js.map +0 -1
  55. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js +0 -17
  56. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js.map +0 -1
  57. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js +0 -58
  58. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js.map +0 -1
  59. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js +0 -1
  60. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js.map +0 -1
  61. package/esm2022/lib/components/data-display/badge/component/badge.component.js +0 -24
  62. package/esm2022/lib/components/data-display/badge/component/badge.component.js.map +0 -1
  63. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js +0 -17
  64. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js.map +0 -1
  65. package/esm2022/lib/components/data-display/badge/index.js +0 -3
  66. package/esm2022/lib/components/data-display/badge/index.js.map +0 -1
  67. package/esm2022/lib/components/data-display/badge/model/badge.types.js +0 -1
  68. package/esm2022/lib/components/data-display/badge/model/badge.types.js.map +0 -1
  69. package/esm2022/lib/components/data-display/card/component/card.component.js +0 -20
  70. package/esm2022/lib/components/data-display/card/component/card.component.js.map +0 -1
  71. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js +0 -17
  72. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js.map +0 -1
  73. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js +0 -17
  74. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js.map +0 -1
  75. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js +0 -17
  76. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js.map +0 -1
  77. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js +0 -19
  78. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js.map +0 -1
  79. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js +0 -17
  80. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js.map +0 -1
  81. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js +0 -17
  82. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js.map +0 -1
  83. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js +0 -17
  84. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js.map +0 -1
  85. package/esm2022/lib/components/data-display/card/model/card.types.js +0 -1
  86. package/esm2022/lib/components/data-display/card/model/card.types.js.map +0 -1
  87. package/esm2022/lib/components/data-display/divider/component/divider.component.js +0 -46
  88. package/esm2022/lib/components/data-display/divider/component/divider.component.js.map +0 -1
  89. package/esm2022/lib/components/data-display/divider/index.js +0 -2
  90. package/esm2022/lib/components/data-display/divider/index.js.map +0 -1
  91. package/esm2022/lib/components/data-display/divider/model/divider.types.js +0 -1
  92. package/esm2022/lib/components/data-display/divider/model/divider.types.js.map +0 -1
  93. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js +0 -18
  94. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js.map +0 -1
  95. package/esm2022/lib/components/feedback/alert/component/alert.component.js +0 -90
  96. package/esm2022/lib/components/feedback/alert/component/alert.component.js.map +0 -1
  97. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js +0 -17
  98. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js.map +0 -1
  99. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js +0 -17
  100. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js.map +0 -1
  101. package/esm2022/lib/components/feedback/alert/model/alert.types.js +0 -1
  102. package/esm2022/lib/components/feedback/alert/model/alert.types.js.map +0 -1
  103. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js +0 -69
  104. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js.map +0 -1
  105. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js +0 -1
  106. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js.map +0 -1
  107. package/esm2022/lib/components/feedback/toast/component/toast.component.js +0 -268
  108. package/esm2022/lib/components/feedback/toast/component/toast.component.js.map +0 -1
  109. package/esm2022/lib/components/feedback/toast/container/toast-container.component.js +0 -24
  110. package/esm2022/lib/components/feedback/toast/container/toast-container.component.js.map +0 -1
  111. package/esm2022/lib/components/feedback/toast/model/toast.types.js +0 -1
  112. package/esm2022/lib/components/feedback/toast/model/toast.types.js.map +0 -1
  113. package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js +0 -17
  114. package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js.map +0 -1
  115. package/esm2022/lib/components/feedback/toast/service/toast.service.js +0 -219
  116. package/esm2022/lib/components/feedback/toast/service/toast.service.js.map +0 -1
  117. package/esm2022/lib/components/feedback/toast/token/toast.tokens.js +0 -13
  118. package/esm2022/lib/components/feedback/toast/token/toast.tokens.js.map +0 -1
  119. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js +0 -227
  120. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js.map +0 -1
  121. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js +0 -1
  122. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js.map +0 -1
  123. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js +0 -441
  124. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js.map +0 -1
  125. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js +0 -1
  126. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js.map +0 -1
  127. package/esm2022/lib/components/forms/email-field/component/email-field.component.js +0 -215
  128. package/esm2022/lib/components/forms/email-field/component/email-field.component.js.map +0 -1
  129. package/esm2022/lib/components/forms/email-field/model/email-field.types.js +0 -1
  130. package/esm2022/lib/components/forms/email-field/model/email-field.types.js.map +0 -1
  131. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js +0 -69
  132. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js.map +0 -1
  133. package/esm2022/lib/components/forms/form-field/component/form-error.component.js +0 -19
  134. package/esm2022/lib/components/forms/form-field/component/form-error.component.js.map +0 -1
  135. package/esm2022/lib/components/forms/form-field/component/form-field.component.js +0 -442
  136. package/esm2022/lib/components/forms/form-field/component/form-field.component.js.map +0 -1
  137. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js +0 -18
  138. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js.map +0 -1
  139. package/esm2022/lib/components/forms/form-field/component/form-label.component.js +0 -18
  140. package/esm2022/lib/components/forms/form-field/component/form-label.component.js.map +0 -1
  141. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js +0 -14
  142. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js.map +0 -1
  143. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js +0 -17
  144. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js.map +0 -1
  145. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js +0 -17
  146. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js.map +0 -1
  147. package/esm2022/lib/components/forms/form-field/index.js +0 -8
  148. package/esm2022/lib/components/forms/form-field/index.js.map +0 -1
  149. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js +0 -3
  150. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js.map +0 -1
  151. package/esm2022/lib/components/forms/form-field/model/form-field.types.js +0 -1
  152. package/esm2022/lib/components/forms/form-field/model/form-field.types.js.map +0 -1
  153. package/esm2022/lib/components/forms/input/directives/input.directive.js +0 -148
  154. package/esm2022/lib/components/forms/input/directives/input.directive.js.map +0 -1
  155. package/esm2022/lib/components/forms/input/index.js +0 -2
  156. package/esm2022/lib/components/forms/input/index.js.map +0 -1
  157. package/esm2022/lib/components/forms/input/model/input.defaults.js +0 -27
  158. package/esm2022/lib/components/forms/input/model/input.defaults.js.map +0 -1
  159. package/esm2022/lib/components/forms/input/model/input.types.js +0 -1
  160. package/esm2022/lib/components/forms/input/model/input.types.js.map +0 -1
  161. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js +0 -1102
  162. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js.map +0 -1
  163. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js +0 -1
  164. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js.map +0 -1
  165. package/esm2022/lib/components/forms/option/component/option.component.js +0 -149
  166. package/esm2022/lib/components/forms/option/component/option.component.js.map +0 -1
  167. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js +0 -58
  168. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js.map +0 -1
  169. package/esm2022/lib/components/forms/option/index.js +0 -3
  170. package/esm2022/lib/components/forms/option/index.js.map +0 -1
  171. package/esm2022/lib/components/forms/option/model/option.types.js +0 -1
  172. package/esm2022/lib/components/forms/option/model/option.types.js.map +0 -1
  173. package/esm2022/lib/components/forms/option-group/component/option-group.component.js +0 -103
  174. package/esm2022/lib/components/forms/option-group/component/option-group.component.js.map +0 -1
  175. package/esm2022/lib/components/forms/option-group/index.js +0 -2
  176. package/esm2022/lib/components/forms/option-group/index.js.map +0 -1
  177. package/esm2022/lib/components/forms/option-group/model/option-group.types.js +0 -1
  178. package/esm2022/lib/components/forms/option-group/model/option-group.types.js.map +0 -1
  179. package/esm2022/lib/components/forms/password-field/component/password-field.component.js +0 -299
  180. package/esm2022/lib/components/forms/password-field/component/password-field.component.js.map +0 -1
  181. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js +0 -5
  182. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js.map +0 -1
  183. package/esm2022/lib/components/forms/password-field/model/password-field.types.js +0 -1
  184. package/esm2022/lib/components/forms/password-field/model/password-field.types.js.map +0 -1
  185. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js +0 -1
  186. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js.map +0 -1
  187. package/esm2022/lib/components/forms/password-field/model/password-strength.js +0 -67
  188. package/esm2022/lib/components/forms/password-field/model/password-strength.js.map +0 -1
  189. package/esm2022/lib/components/forms/password-field/validators/password.validator.js +0 -45
  190. package/esm2022/lib/components/forms/password-field/validators/password.validator.js.map +0 -1
  191. package/esm2022/lib/components/forms/radio/component/radio.component.js +0 -219
  192. package/esm2022/lib/components/forms/radio/component/radio.component.js.map +0 -1
  193. package/esm2022/lib/components/forms/radio/model/radio.types.js +0 -1
  194. package/esm2022/lib/components/forms/radio/model/radio.types.js.map +0 -1
  195. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js +0 -348
  196. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js.map +0 -1
  197. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js +0 -3
  198. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js.map +0 -1
  199. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js +0 -1
  200. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js.map +0 -1
  201. package/esm2022/lib/components/forms/select/component/select.component.js +0 -815
  202. package/esm2022/lib/components/forms/select/component/select.component.js.map +0 -1
  203. package/esm2022/lib/components/forms/select/model/select.types.js +0 -1
  204. package/esm2022/lib/components/forms/select/model/select.types.js.map +0 -1
  205. package/esm2022/lib/components/forms/switch/component/switch.component.js +0 -211
  206. package/esm2022/lib/components/forms/switch/component/switch.component.js.map +0 -1
  207. package/esm2022/lib/components/forms/switch/index.js +0 -2
  208. package/esm2022/lib/components/forms/switch/index.js.map +0 -1
  209. package/esm2022/lib/components/forms/switch/model/switch.types.js +0 -1
  210. package/esm2022/lib/components/forms/switch/model/switch.types.js.map +0 -1
  211. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js +0 -369
  212. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js.map +0 -1
  213. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js +0 -1
  214. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js.map +0 -1
  215. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js +0 -137
  216. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js.map +0 -1
  217. package/esm2022/lib/components/forms/textarea/model/textarea.types.js +0 -1
  218. package/esm2022/lib/components/forms/textarea/model/textarea.types.js.map +0 -1
  219. package/esm2022/lib/components/icon/component/solaris-icon.component.js +0 -20
  220. package/esm2022/lib/components/icon/component/solaris-icon.component.js.map +0 -1
  221. package/esm2022/lib/components/icon/index.js +0 -2
  222. package/esm2022/lib/components/icon/index.js.map +0 -1
  223. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js +0 -27
  224. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js.map +0 -1
  225. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js +0 -96
  226. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js.map +0 -1
  227. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js +0 -22
  228. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js.map +0 -1
  229. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js +0 -105
  230. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js.map +0 -1
  231. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js +0 -95
  232. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js.map +0 -1
  233. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js +0 -631
  234. package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js.map +0 -1
  235. package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js +0 -365
  236. package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js.map +0 -1
  237. package/esm2022/lib/components/interaction/dropdown-menu/index.js +0 -8
  238. package/esm2022/lib/components/interaction/dropdown-menu/index.js.map +0 -1
  239. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js +0 -3
  240. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js.map +0 -1
  241. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js +0 -1
  242. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js.map +0 -1
  243. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js +0 -1
  244. package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js.map +0 -1
  245. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js +0 -29
  246. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js.map +0 -1
  247. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js +0 -325
  248. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js.map +0 -1
  249. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js +0 -16
  250. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js.map +0 -1
  251. package/esm2022/lib/components/interaction/popover/index.js +0 -4
  252. package/esm2022/lib/components/interaction/popover/index.js.map +0 -1
  253. package/esm2022/lib/components/interaction/popover/model/popover-position.js +0 -145
  254. package/esm2022/lib/components/interaction/popover/model/popover-position.js.map +0 -1
  255. package/esm2022/lib/components/interaction/popover/model/popover.types.js +0 -1
  256. package/esm2022/lib/components/interaction/popover/model/popover.types.js.map +0 -1
  257. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js +0 -3
  258. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js.map +0 -1
  259. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js +0 -23
  260. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js.map +0 -1
  261. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js +0 -405
  262. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js.map +0 -1
  263. package/esm2022/lib/components/interaction/tooltip/index.js +0 -3
  264. package/esm2022/lib/components/interaction/tooltip/index.js.map +0 -1
  265. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js +0 -209
  266. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js.map +0 -1
  267. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js +0 -1
  268. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js.map +0 -1
  269. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js +0 -3
  270. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js.map +0 -1
  271. package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js +0 -323
  272. package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js.map +0 -1
  273. package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js +0 -34
  274. package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js.map +0 -1
  275. package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js +0 -1
  276. package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js.map +0 -1
  277. package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js +0 -242
  278. package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js.map +0 -1
  279. package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js +0 -197
  280. package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js.map +0 -1
  281. package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js +0 -1
  282. package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js.map +0 -1
  283. package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js +0 -3
  284. package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js.map +0 -1
  285. package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js +0 -15
  286. package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js.map +0 -1
  287. package/esm2022/lib/components/navigation/stepper/component/stepper.component.js +0 -99
  288. package/esm2022/lib/components/navigation/stepper/component/stepper.component.js.map +0 -1
  289. package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js +0 -13
  290. package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js.map +0 -1
  291. package/esm2022/lib/components/navigation/stepper/model/stepper.types.js +0 -1
  292. package/esm2022/lib/components/navigation/stepper/model/stepper.types.js.map +0 -1
  293. package/esm2022/lib/components/navigation/stepper/step/step.component.js +0 -91
  294. package/esm2022/lib/components/navigation/stepper/step/step.component.js.map +0 -1
  295. package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js +0 -3
  296. package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js.map +0 -1
  297. package/esm2022/lib/components/navigation/tabs/component/tabs.component.js +0 -169
  298. package/esm2022/lib/components/navigation/tabs/component/tabs.component.js.map +0 -1
  299. package/esm2022/lib/components/navigation/tabs/index.js +0 -5
  300. package/esm2022/lib/components/navigation/tabs/index.js.map +0 -1
  301. package/esm2022/lib/components/navigation/tabs/model/tabs.types.js +0 -1
  302. package/esm2022/lib/components/navigation/tabs/model/tabs.types.js.map +0 -1
  303. package/esm2022/lib/components/navigation/tabs/tab/tab.component.js +0 -195
  304. package/esm2022/lib/components/navigation/tabs/tab/tab.component.js.map +0 -1
  305. package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js +0 -55
  306. package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js.map +0 -1
  307. package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js +0 -3
  308. package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js.map +0 -1
  309. package/esm2022/lib/components/overlay/dialog/component/dialog.component.js +0 -49
  310. package/esm2022/lib/components/overlay/dialog/component/dialog.component.js.map +0 -1
  311. package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js +0 -37
  312. package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js.map +0 -1
  313. package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js +0 -13
  314. package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js.map +0 -1
  315. package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js +0 -32
  316. package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js.map +0 -1
  317. package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js +0 -142
  318. package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js.map +0 -1
  319. package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js +0 -56
  320. package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js.map +0 -1
  321. package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js +0 -20
  322. package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js.map +0 -1
  323. package/esm2022/lib/components/overlay/dialog/model/dialog.types.js +0 -1
  324. package/esm2022/lib/components/overlay/dialog/model/dialog.types.js.map +0 -1
  325. package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js +0 -13
  326. package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js.map +0 -1
  327. package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js +0 -23
  328. package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js.map +0 -1
  329. package/esm2022/lib/components/overlay/dialog/service/dialog.service.js +0 -111
  330. package/esm2022/lib/components/overlay/dialog/service/dialog.service.js.map +0 -1
  331. package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js +0 -4
  332. package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js.map +0 -1
  333. package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js +0 -15
  334. package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js.map +0 -1
  335. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js +0 -25
  336. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js.map +0 -1
  337. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js +0 -1
  338. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js.map +0 -1
  339. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js +0 -1
  340. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js.map +0 -1
  341. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js +0 -10
  342. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js.map +0 -1
  343. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js +0 -60
  344. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js.map +0 -1
  345. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js +0 -10
  346. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js.map +0 -1
  347. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js +0 -3
  348. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js.map +0 -1
  349. package/esm2022/lib/services/icon/icons/groups/actions.js +0 -242
  350. package/esm2022/lib/services/icon/icons/groups/actions.js.map +0 -1
  351. package/esm2022/lib/services/icon/icons/groups/data.js +0 -129
  352. package/esm2022/lib/services/icon/icons/groups/data.js.map +0 -1
  353. package/esm2022/lib/services/icon/icons/groups/layout.js +0 -50
  354. package/esm2022/lib/services/icon/icons/groups/layout.js.map +0 -1
  355. package/esm2022/lib/services/icon/icons/groups/navigation.js +0 -354
  356. package/esm2022/lib/services/icon/icons/groups/navigation.js.map +0 -1
  357. package/esm2022/lib/services/icon/icons/groups/status.js +0 -70
  358. package/esm2022/lib/services/icon/icons/groups/status.js.map +0 -1
  359. package/esm2022/lib/services/icon/icons/groups/theme.js +0 -49
  360. package/esm2022/lib/services/icon/icons/groups/theme.js.map +0 -1
  361. package/esm2022/lib/services/icon/icons/index.js +0 -2
  362. package/esm2022/lib/services/icon/icons/index.js.map +0 -1
  363. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js +0 -15
  364. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js.map +0 -1
  365. package/esm2022/lib/services/icon/index.js +0 -5
  366. package/esm2022/lib/services/icon/index.js.map +0 -1
  367. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js +0 -1
  368. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js.map +0 -1
  369. package/esm2022/lib/services/icon/model/solaris-icon.types.js +0 -1
  370. package/esm2022/lib/services/icon/model/solaris-icon.types.js.map +0 -1
  371. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js +0 -10
  372. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js.map +0 -1
  373. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js +0 -43
  374. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js.map +0 -1
  375. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js +0 -3
  376. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js.map +0 -1
  377. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js +0 -1
  378. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js.map +0 -1
  379. package/esm2022/lib/services/theme/model/solaris-theme.types.js +0 -1
  380. package/esm2022/lib/services/theme/model/solaris-theme.types.js.map +0 -1
  381. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js +0 -10
  382. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js.map +0 -1
  383. package/esm2022/lib/services/theme/service/solaris-theme.service.js +0 -22
  384. package/esm2022/lib/services/theme/service/solaris-theme.service.js.map +0 -1
  385. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js +0 -10
  386. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js.map +0 -1
  387. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js +0 -3
  388. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js.map +0 -1
  389. package/esm2022/lib/services/translation/index.js +0 -6
  390. package/esm2022/lib/services/translation/index.js.map +0 -1
  391. package/esm2022/lib/services/translation/model/solaris-locale.types.js +0 -1
  392. package/esm2022/lib/services/translation/model/solaris-locale.types.js.map +0 -1
  393. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js +0 -1
  394. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js.map +0 -1
  395. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js +0 -96
  396. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js.map +0 -1
  397. package/esm2022/lib/services/translation/model/solaris-translation.types.js +0 -1
  398. package/esm2022/lib/services/translation/model/solaris-translation.types.js.map +0 -1
  399. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js +0 -20
  400. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js.map +0 -1
  401. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js +0 -10
  402. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js.map +0 -1
  403. package/esm2022/lib/services/translation/service/solaris-translate.service.js +0 -87
  404. package/esm2022/lib/services/translation/service/solaris-translate.service.js.map +0 -1
  405. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js +0 -32
  406. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js.map +0 -1
  407. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js +0 -3
  408. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js.map +0 -1
  409. package/esm2022/lib/testing/provide-solaris-testing.js +0 -11
  410. package/esm2022/lib/testing/provide-solaris-testing.js.map +0 -1
  411. package/esm2022/lib/testing/solaris-test-utilities.js +0 -12
  412. package/esm2022/lib/testing/solaris-test-utilities.js.map +0 -1
  413. package/index.d.ts +0 -197
  414. package/lib/components/actions/button/directives/button-icon.directive.d.ts +0 -5
  415. package/lib/components/actions/button/directives/button.directive.d.ts +0 -22
  416. package/lib/components/actions/button/index.d.ts +0 -3
  417. package/lib/components/actions/button/model/button.types.d.ts +0 -5
  418. package/lib/components/actions/button-group/component/button-group.component.d.ts +0 -10
  419. package/lib/components/actions/button-group/model/button-group.types.d.ts +0 -2
  420. package/lib/components/actions/icon-button/directives/icon-button-badge.directive.d.ts +0 -5
  421. package/lib/components/actions/icon-button/directives/icon-button.directive.d.ts +0 -21
  422. package/lib/components/actions/icon-button/model/icon-button.types.d.ts +0 -5
  423. package/lib/components/data-display/badge/component/badge.component.d.ts +0 -12
  424. package/lib/components/data-display/badge/directives/badge-icon.directive.d.ts +0 -5
  425. package/lib/components/data-display/badge/index.d.ts +0 -3
  426. package/lib/components/data-display/badge/model/badge.types.d.ts +0 -6
  427. package/lib/components/data-display/card/component/card.component.d.ts +0 -10
  428. package/lib/components/data-display/card/directives/card-actions.directive.d.ts +0 -5
  429. package/lib/components/data-display/card/directives/card-content.directive.d.ts +0 -5
  430. package/lib/components/data-display/card/directives/card-description.directive.d.ts +0 -5
  431. package/lib/components/data-display/card/directives/card-footer.directive.d.ts +0 -6
  432. package/lib/components/data-display/card/directives/card-header.directive.d.ts +0 -5
  433. package/lib/components/data-display/card/directives/card-media.directive.d.ts +0 -5
  434. package/lib/components/data-display/card/directives/card-title.directive.d.ts +0 -5
  435. package/lib/components/data-display/card/model/card.types.d.ts +0 -4
  436. package/lib/components/data-display/divider/component/divider.component.d.ts +0 -17
  437. package/lib/components/data-display/divider/index.d.ts +0 -2
  438. package/lib/components/data-display/divider/model/divider.types.d.ts +0 -5
  439. package/lib/components/feedback/alert/component/alert-actions.component.d.ts +0 -5
  440. package/lib/components/feedback/alert/component/alert.component.d.ts +0 -26
  441. package/lib/components/feedback/alert/directives/alert-description.directive.d.ts +0 -5
  442. package/lib/components/feedback/alert/directives/alert-title.directive.d.ts +0 -5
  443. package/lib/components/feedback/alert/model/alert.types.d.ts +0 -5
  444. package/lib/components/feedback/skeleton/component/skeleton.component.d.ts +0 -17
  445. package/lib/components/feedback/skeleton/model/skeleton.types.d.ts +0 -5
  446. package/lib/components/feedback/toast/component/toast.component.d.ts +0 -62
  447. package/lib/components/feedback/toast/container/toast-container.component.d.ts +0 -10
  448. package/lib/components/feedback/toast/model/toast.types.d.ts +0 -106
  449. package/lib/components/feedback/toast/provider/provide-solaris-toast.d.ts +0 -3
  450. package/lib/components/feedback/toast/service/toast.service.d.ts +0 -36
  451. package/lib/components/feedback/toast/token/toast.tokens.d.ts +0 -5
  452. package/lib/components/forms/checkbox/component/checkbox.component.d.ts +0 -70
  453. package/lib/components/forms/checkbox/model/checkbox.types.d.ts +0 -5
  454. package/lib/components/forms/checkbox-group/component/checkbox-group.component.d.ts +0 -123
  455. package/lib/components/forms/checkbox-group/model/checkbox-group.types.d.ts +0 -5
  456. package/lib/components/forms/email-field/component/email-field.component.d.ts +0 -67
  457. package/lib/components/forms/email-field/model/email-field.types.d.ts +0 -6
  458. package/lib/components/forms/email-field/validators/email-field.validators.d.ts +0 -8
  459. package/lib/components/forms/form-field/component/form-error.component.d.ts +0 -5
  460. package/lib/components/forms/form-field/component/form-field.component.d.ts +0 -96
  461. package/lib/components/forms/form-field/component/form-hint.component.d.ts +0 -5
  462. package/lib/components/forms/form-field/component/form-label.component.d.ts +0 -5
  463. package/lib/components/forms/form-field/directives/form-field-trigger.directive.d.ts +0 -5
  464. package/lib/components/forms/form-field/directives/form-prefix.directive.d.ts +0 -5
  465. package/lib/components/forms/form-field/directives/form-suffix.directive.d.ts +0 -5
  466. package/lib/components/forms/form-field/index.d.ts +0 -8
  467. package/lib/components/forms/form-field/model/form-control.contract.d.ts +0 -11
  468. package/lib/components/forms/form-field/model/form-field.types.d.ts +0 -5
  469. package/lib/components/forms/input/directives/input.directive.d.ts +0 -37
  470. package/lib/components/forms/input/index.d.ts +0 -2
  471. package/lib/components/forms/input/model/input.defaults.d.ts +0 -2
  472. package/lib/components/forms/input/model/input.types.d.ts +0 -4
  473. package/lib/components/forms/multi-select/component/multi-select.component.d.ts +0 -199
  474. package/lib/components/forms/multi-select/model/multi-select.types.d.ts +0 -5
  475. package/lib/components/forms/option/component/option.component.d.ts +0 -58
  476. package/lib/components/forms/option/directives/option-slots.directive.d.ts +0 -21
  477. package/lib/components/forms/option/index.d.ts +0 -3
  478. package/lib/components/forms/option/model/option.types.d.ts +0 -3
  479. package/lib/components/forms/option-group/component/option-group.component.d.ts +0 -32
  480. package/lib/components/forms/option-group/index.d.ts +0 -2
  481. package/lib/components/forms/option-group/model/option-group.types.d.ts +0 -2
  482. package/lib/components/forms/password-field/component/password-field.component.d.ts +0 -81
  483. package/lib/components/forms/password-field/model/password-field-constants.d.ts +0 -4
  484. package/lib/components/forms/password-field/model/password-field.types.d.ts +0 -6
  485. package/lib/components/forms/password-field/model/password-policy.types.d.ts +0 -10
  486. package/lib/components/forms/password-field/model/password-strength.d.ts +0 -2
  487. package/lib/components/forms/password-field/validators/password.validator.d.ts +0 -3
  488. package/lib/components/forms/radio/component/radio.component.d.ts +0 -68
  489. package/lib/components/forms/radio/model/radio.types.d.ts +0 -4
  490. package/lib/components/forms/radio-group/component/radio-group.component.d.ts +0 -86
  491. package/lib/components/forms/radio-group/model/radio-group.token.d.ts +0 -2
  492. package/lib/components/forms/radio-group/model/radio-group.types.d.ts +0 -5
  493. package/lib/components/forms/select/component/select.component.d.ts +0 -158
  494. package/lib/components/forms/select/model/select.types.d.ts +0 -4
  495. package/lib/components/forms/switch/component/switch.component.d.ts +0 -66
  496. package/lib/components/forms/switch/index.d.ts +0 -2
  497. package/lib/components/forms/switch/model/switch.types.d.ts +0 -4
  498. package/lib/components/forms/switch-group/component/switch-group.component.d.ts +0 -91
  499. package/lib/components/forms/switch-group/model/switch-group.types.d.ts +0 -5
  500. package/lib/components/forms/textarea/directives/textarea.directive.d.ts +0 -37
  501. package/lib/components/forms/textarea/model/textarea.types.d.ts +0 -5
  502. package/lib/components/icon/component/solaris-icon.component.d.ts +0 -13
  503. package/lib/components/icon/index.d.ts +0 -1
  504. package/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.d.ts +0 -10
  505. package/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.d.ts +0 -28
  506. package/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.d.ts +0 -7
  507. package/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.d.ts +0 -21
  508. package/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.d.ts +0 -21
  509. package/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.d.ts +0 -68
  510. package/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.d.ts +0 -61
  511. package/lib/components/interaction/dropdown-menu/index.d.ts +0 -9
  512. package/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.d.ts +0 -8
  513. package/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.d.ts +0 -11
  514. package/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.d.ts +0 -2
  515. package/lib/components/interaction/popover/component/popover-panel.component.d.ts +0 -10
  516. package/lib/components/interaction/popover/directives/popover-trigger.directive.d.ts +0 -65
  517. package/lib/components/interaction/popover/directives/popover.directive.d.ts +0 -7
  518. package/lib/components/interaction/popover/index.d.ts +0 -4
  519. package/lib/components/interaction/popover/model/popover-position.d.ts +0 -4
  520. package/lib/components/interaction/popover/model/popover.types.d.ts +0 -7
  521. package/lib/components/interaction/popover/token/popover.tokens.d.ts +0 -12
  522. package/lib/components/interaction/tooltip/component/tooltip-panel.component.d.ts +0 -9
  523. package/lib/components/interaction/tooltip/directive/tooltip.directive.d.ts +0 -80
  524. package/lib/components/interaction/tooltip/index.d.ts +0 -3
  525. package/lib/components/interaction/tooltip/model/tooltip-position.d.ts +0 -5
  526. package/lib/components/interaction/tooltip/model/tooltip.types.d.ts +0 -22
  527. package/lib/components/interaction/tooltip/token/tooltip.tokens.d.ts +0 -21
  528. package/lib/components/navigation/editable-tabs/component/editable-tabs.component.d.ts +0 -69
  529. package/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.d.ts +0 -20
  530. package/lib/components/navigation/editable-tabs/model/editable-tabs.types.d.ts +0 -60
  531. package/lib/components/navigation/segmented-control/component/segmented-control.component.d.ts +0 -64
  532. package/lib/components/navigation/segmented-control/item/segmented-item.component.d.ts +0 -35
  533. package/lib/components/navigation/segmented-control/model/segmented-control.types.d.ts +0 -12
  534. package/lib/components/navigation/segmented-control/token/segmented-control.tokens.d.ts +0 -22
  535. package/lib/components/navigation/stepper/actions/stepper-actions.component.d.ts +0 -7
  536. package/lib/components/navigation/stepper/component/stepper.component.d.ts +0 -36
  537. package/lib/components/navigation/stepper/content/stepper-content.component.d.ts +0 -5
  538. package/lib/components/navigation/stepper/model/stepper.types.d.ts +0 -15
  539. package/lib/components/navigation/stepper/step/step.component.d.ts +0 -27
  540. package/lib/components/navigation/stepper/token/stepper.tokens.d.ts +0 -13
  541. package/lib/components/navigation/tabs/component/tabs.component.d.ts +0 -47
  542. package/lib/components/navigation/tabs/index.d.ts +0 -6
  543. package/lib/components/navigation/tabs/model/tabs.types.d.ts +0 -17
  544. package/lib/components/navigation/tabs/tab/tab.component.d.ts +0 -38
  545. package/lib/components/navigation/tabs/tab-panel/tab-panel.component.d.ts +0 -15
  546. package/lib/components/navigation/tabs/token/tabs.tokens.d.ts +0 -19
  547. package/lib/components/overlay/dialog/component/dialog.component.d.ts +0 -29
  548. package/lib/components/overlay/dialog/components/dialog-actions.component.d.ts +0 -12
  549. package/lib/components/overlay/dialog/components/dialog-content.component.d.ts +0 -5
  550. package/lib/components/overlay/dialog/components/dialog-header.component.d.ts +0 -19
  551. package/lib/components/overlay/dialog/container/dialog-container.component.d.ts +0 -32
  552. package/lib/components/overlay/dialog/flow/dialog-flow.component.d.ts +0 -19
  553. package/lib/components/overlay/dialog/flow/dialog-step.component.d.ts +0 -7
  554. package/lib/components/overlay/dialog/model/dialog.types.d.ts +0 -87
  555. package/lib/components/overlay/dialog/provider/provide-solaris-dialog.d.ts +0 -3
  556. package/lib/components/overlay/dialog/service/dialog-ref.d.ts +0 -11
  557. package/lib/components/overlay/dialog/service/dialog.service.d.ts +0 -20
  558. package/lib/components/overlay/dialog/token/dialog-data.token.d.ts +0 -4
  559. package/lib/components/overlay/dialog/token/dialog.tokens.d.ts +0 -4
  560. package/lib/services/accessibility/directives/visually-hidden.directive.d.ts +0 -5
  561. package/lib/services/accessibility/model/solaris-accessibility-config.interface.d.ts +0 -4
  562. package/lib/services/accessibility/model/solaris-accessibility.types.d.ts +0 -5
  563. package/lib/services/accessibility/provider/provide-solaris-accessibility.d.ts +0 -3
  564. package/lib/services/accessibility/service/solaris-accessibility.service.d.ts +0 -15
  565. package/lib/services/accessibility/testing/solaris-accessibility-testing.provider.d.ts +0 -3
  566. package/lib/services/accessibility/token/solaris-accessibility.tokens.d.ts +0 -3
  567. package/lib/services/icon/icons/groups/actions.d.ts +0 -2
  568. package/lib/services/icon/icons/groups/data.d.ts +0 -2
  569. package/lib/services/icon/icons/groups/layout.d.ts +0 -2
  570. package/lib/services/icon/icons/groups/navigation.d.ts +0 -2
  571. package/lib/services/icon/icons/groups/status.d.ts +0 -2
  572. package/lib/services/icon/icons/groups/theme.d.ts +0 -2
  573. package/lib/services/icon/icons/index.d.ts +0 -1
  574. package/lib/services/icon/icons/solaris-built-in-icons.d.ts +0 -2
  575. package/lib/services/icon/index.d.ts +0 -8
  576. package/lib/services/icon/model/solaris-icon-definition.interface.d.ts +0 -45
  577. package/lib/services/icon/model/solaris-icon.types.d.ts +0 -4
  578. package/lib/services/icon/provider/provide-solaris-icons.d.ts +0 -3
  579. package/lib/services/icon/service/solaris-icon-registry.service.d.ts +0 -12
  580. package/lib/services/icon/token/solaris-icon.tokens.d.ts +0 -6
  581. package/lib/services/theme/model/solaris-theme-config.interface.d.ts +0 -5
  582. package/lib/services/theme/model/solaris-theme.types.d.ts +0 -3
  583. package/lib/services/theme/provider/provide-solaris-theme.d.ts +0 -3
  584. package/lib/services/theme/service/solaris-theme.service.d.ts +0 -9
  585. package/lib/services/theme/testing/solaris-theme-testing.provider.d.ts +0 -3
  586. package/lib/services/theme/token/solaris-theme.tokens.d.ts +0 -3
  587. package/lib/services/translation/index.d.ts +0 -8
  588. package/lib/services/translation/model/solaris-locale.types.d.ts +0 -4
  589. package/lib/services/translation/model/solaris-translate-config.interface.d.ts +0 -8
  590. package/lib/services/translation/model/solaris-translate-defaults.d.ts +0 -2
  591. package/lib/services/translation/model/solaris-translation.types.d.ts +0 -3
  592. package/lib/services/translation/pipe/solaris-translate.pipe.d.ts +0 -8
  593. package/lib/services/translation/provider/provide-solaris-translate.d.ts +0 -3
  594. package/lib/services/translation/service/solaris-translate.service.d.ts +0 -15
  595. package/lib/services/translation/testing/solaris-translate-testing.provider.d.ts +0 -3
  596. package/lib/services/translation/token/solaris-translate.tokens.d.ts +0 -3
  597. package/lib/testing/provide-solaris-testing.d.ts +0 -10
  598. package/lib/testing/solaris-test-utilities.d.ts +0 -3
@@ -1,197 +0,0 @@
1
- import { input, inject, signal, computed, Component, ElementRef, ChangeDetectionStrategy, } from '@angular/core';
2
- import { SolarisTranslateService } from '../../../../services/translation';
3
- import { SolarisIconComponent } from '../../../icon';
4
- import { SOLARIS_SEGMENTED_CONTROL } from '../token/segmented-control.tokens';
5
- import * as i0 from "@angular/core";
6
- let nextId = 0;
7
- export class SolarisSegmentedItemComponent {
8
- translateService = inject(SolarisTranslateService, {
9
- optional: true,
10
- });
11
- control = inject(SOLARIS_SEGMENTED_CONTROL, {
12
- optional: true,
13
- });
14
- elementRef = inject(ElementRef);
15
- hasContent = signal(false, ...(ngDevMode ? [{ debugName: "hasContent" }] : /* istanbul ignore next */ []));
16
- value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
17
- label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
18
- labelKey = input(undefined, ...(ngDevMode ? [{ debugName: "labelKey" }] : /* istanbul ignore next */ []));
19
- icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
20
- disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
21
- ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
22
- ariaLabelKey = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabelKey" }] : /* istanbul ignore next */ []));
23
- instanceId = `solaris-segmented-item-${nextId++}`;
24
- itemId = computed(() => {
25
- const ctrl = this.control;
26
- if (ctrl) {
27
- return `solaris-segmented-item-${String(this.value())}`;
28
- }
29
- return this.instanceId;
30
- }, ...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
31
- isSelected = computed(() => {
32
- if (!this.control)
33
- return false;
34
- return this.control.compareFn()(this.value(), this.control.value());
35
- }, ...(ngDevMode ? [{ debugName: "isSelected" }] : /* istanbul ignore next */ []));
36
- isComputedDisabled = computed(() => {
37
- return this.disabled() || (this.control?.disabled() ?? false);
38
- }, ...(ngDevMode ? [{ debugName: "isComputedDisabled" }] : /* istanbul ignore next */ []));
39
- isComputedReadonly = computed(() => {
40
- return this.control?.readonly() ?? false;
41
- }, ...(ngDevMode ? [{ debugName: "isComputedReadonly" }] : /* istanbul ignore next */ []));
42
- isTabstop = computed(() => {
43
- if (this.isComputedDisabled())
44
- return false;
45
- if (this.isSelected())
46
- return true;
47
- if (!this.control)
48
- return false;
49
- const items = this.control.items();
50
- const firstEnabled = items.findIndex((item) => !item.isComputedDisabled());
51
- return items.indexOf(this) === firstEnabled;
52
- }, ...(ngDevMode ? [{ debugName: "isTabstop" }] : /* istanbul ignore next */ []));
53
- isIconOnly = computed(() => {
54
- return (!!this.icon() && !this.label() && !this.labelKey() && !this.hasContent());
55
- }, ...(ngDevMode ? [{ debugName: "isIconOnly" }] : /* istanbul ignore next */ []));
56
- ngAfterContentInit() {
57
- this.updateHasContent();
58
- }
59
- updateHasContent() {
60
- // SECURITY_EXCEPTION: nativeElement required to check projected content. SSR-safe read-only operation.
61
- const nativeEl = this.elementRef.nativeElement;
62
- const innerEl = nativeEl.querySelector('.solaris-segmented-item__inner');
63
- if (!innerEl)
64
- return;
65
- for (const node of Array.from(innerEl.childNodes)) {
66
- if (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()) {
67
- this.hasContent.set(true);
68
- return;
69
- }
70
- if (node.nodeType === Node.ELEMENT_NODE) {
71
- const el = node;
72
- if (!el.classList.contains('solaris-segmented-item__icon')) {
73
- this.hasContent.set(true);
74
- return;
75
- }
76
- }
77
- }
78
- }
79
- resolvedLabel = computed(() => {
80
- if (this.label())
81
- return this.label();
82
- const labelKey = this.labelKey();
83
- if (labelKey && this.translateService) {
84
- return this.translateService.translate(labelKey);
85
- }
86
- return labelKey ?? undefined;
87
- }, ...(ngDevMode ? [{ debugName: "resolvedLabel" }] : /* istanbul ignore next */ []));
88
- resolvedAriaLabel = computed(() => {
89
- if (this.ariaLabel())
90
- return this.ariaLabel();
91
- const ariaLabelKey = this.ariaLabelKey();
92
- if (ariaLabelKey && this.translateService) {
93
- return this.translateService.translate(ariaLabelKey);
94
- }
95
- return undefined;
96
- }, ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
97
- index = computed(() => {
98
- if (!this.control)
99
- return -1;
100
- return this.control.items().indexOf(this);
101
- }, ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
102
- onClick() {
103
- if (this.isComputedDisabled())
104
- return;
105
- if (this.isComputedReadonly())
106
- return;
107
- this.control?.selectItem(this);
108
- }
109
- onKeydown(event) {
110
- if (this.isComputedDisabled())
111
- return;
112
- const items = this.control?.items() ?? [];
113
- const currentIndex = this.index();
114
- if (event.key === 'Enter' || event.key === ' ') {
115
- event.preventDefault();
116
- if (!this.isComputedReadonly()) {
117
- this.control?.selectItem(this);
118
- }
119
- return;
120
- }
121
- const nextIndex = this.getNextIndex(event.key, items, currentIndex);
122
- if (nextIndex === null || nextIndex === currentIndex)
123
- return;
124
- event.preventDefault();
125
- const nextItem = items[nextIndex];
126
- this.control?.focusItem(nextItem);
127
- }
128
- getNextIndex(key, items, currentIndex) {
129
- const orientation = this.control?.orientation() ?? 'horizontal';
130
- switch (key) {
131
- case 'ArrowRight':
132
- return orientation === 'horizontal'
133
- ? this.findNextEnabled(items, currentIndex, 1)
134
- : null;
135
- case 'ArrowLeft':
136
- return orientation === 'horizontal'
137
- ? this.findNextEnabled(items, currentIndex, -1)
138
- : null;
139
- case 'ArrowDown':
140
- return orientation === 'vertical'
141
- ? this.findNextEnabled(items, currentIndex, 1)
142
- : null;
143
- case 'ArrowUp':
144
- return orientation === 'vertical'
145
- ? this.findNextEnabled(items, currentIndex, -1)
146
- : null;
147
- case 'Home':
148
- return this.findFirstEnabled(items);
149
- case 'End':
150
- return this.findLastEnabled(items);
151
- default:
152
- return null;
153
- }
154
- }
155
- findNextEnabled(items, fromIndex, direction) {
156
- let i = fromIndex + direction;
157
- while (i >= 0 && i < items.length) {
158
- if (!items[i].isComputedDisabled())
159
- return i;
160
- i += direction;
161
- }
162
- return null;
163
- }
164
- findFirstEnabled(items) {
165
- for (let i = 0; i < items.length; i++) {
166
- if (!items[i].isComputedDisabled())
167
- return i;
168
- }
169
- return null;
170
- }
171
- findLastEnabled(items) {
172
- for (let i = items.length - 1; i >= 0; i--) {
173
- if (!items[i].isComputedDisabled())
174
- return i;
175
- }
176
- return null;
177
- }
178
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisSegmentedItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
179
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisSegmentedItemComponent, isStandalone: true, selector: "solaris-segmented-item", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", 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 } }, host: { attributes: { "role": "radio" }, listeners: { "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "attr.id": "itemId()", "attr.data-selected": "isSelected()", "attr.data-disabled": "isComputedDisabled()", "attr.aria-checked": "isSelected()", "attr.aria-disabled": "isComputedDisabled() || undefined", "attr.aria-label": "resolvedAriaLabel() || undefined", "attr.tabindex": "isTabstop() ? \"0\" : \"-1\"", "class.solaris-segmented-item--icon-only": "isIconOnly()" } }, ngImport: i0, template: "<span class=\"solaris-segmented-item__inner\">\n @if (icon(); as iconName) {\n <solaris-icon\n class=\"solaris-segmented-item__icon\"\n [name]=\"iconName\"\n [decorative]=\"true\"\n />\n }\n @if (resolvedLabel(); as labelText) {\n <span class=\"solaris-segmented-item__label\">{{ labelText }}</span>\n }\n <ng-content />\n</span>\n", styles: [":host{--solaris-segmented-item-gap: var(--solaris-spacing-2);--solaris-segmented-item-radius: var(--solaris-radius-sm);--solaris-segmented-item-color: var(--solaris-text-default);--solaris-segmented-item-padding-y: var(--solaris-spacing-2);--solaris-segmented-item-padding-x: var(--solaris-spacing-2);--solaris-segmented-item-icon-size: var(--solaris-font-size-sm);--solaris-segmented-item-font-size: var(--solaris-font-size-sm);--solaris-segmented-item-selected-color: var(--solaris-text-strong);--solaris-segmented-item-font-weight: var(--solaris-font-weight-medium);--solaris-segmented-item-hover-background: var(--solaris-surface-subtle);z-index:2;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-segmented-item-gap);color:var(--solaris-segmented-item-color);padding:var(--solaris-segmented-item-padding-y) var(--solaris-segmented-item-padding-x);font:var(--solaris-segmented-item-font-weight) var(--solaris-segmented-item-font-size)/1 var(--solaris-font-family-sans);border-radius:max(var(--solaris-segmented-radius) - var(--solaris-segmented-padding),var(--solaris-segmented-padding) - var(--solaris-segmented-radius));transition:color var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),background var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host(:hover:not([data-disabled=true]):not([data-selected=true])){background:var(--solaris-segmented-item-hover-background)}:host(.solaris-segmented-item--icon-only){--solaris-segmented-item-icon-size: calc(var(--solaris-font-size-md) * 1.2)}:host:not([data-selected=true]):not([data-disabled=true]){opacity:.5}:host(:focus-visible){outline-offset:var(--solaris-border-width-md);border-radius:var(--solaris-segmented-item-radius);outline:var(--solaris-border-width-md) solid var(--solaris-primary-base)}:host([data-selected=true]){color:var(--solaris-segmented-item-selected-color)}:host([data-disabled=true]){opacity:.15;cursor:not-allowed}:host([data-disabled=true]:focus-visible){outline:none}:host([data-selected=true][data-disabled=true]){opacity:.4}:host-context([data-orientation=vertical]){width:100%;display:flex;max-width:100%;box-sizing:border-box}.solaris-segmented-item__inner{min-width:0;align-items:center;display:inline-flex;gap:var(--solaris-segmented-item-gap)}.solaris-segmented-item__icon{flex-shrink:0;width:var(--solaris-segmented-item-icon-size);height:var(--solaris-segmented-item-icon-size)}.solaris-segmented-item__label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:var(--solaris-line-height-md)}:host-context([data-size=sm]){--solaris-segmented-item-padding-y: var(--solaris-spacing-1);--solaris-segmented-item-padding-x: var(--solaris-spacing-1);--solaris-segmented-item-icon-size: var(--solaris-font-size-xs);--solaris-segmented-item-font-size: var(--solaris-font-size-xs)}:host-context([data-size=lg]){--solaris-segmented-item-padding-y: var(--solaris-spacing-3);--solaris-segmented-item-padding-x: var(--solaris-spacing-3);--solaris-segmented-item-icon-size: var(--solaris-font-size-md);--solaris-segmented-item-font-size: var(--solaris-font-size-md)}:host-context([data-size=sm][data-density=compact]){--solaris-segmented-item-gap: var(--solaris-spacing-1);--solaris-segmented-item-padding-y: var(--solaris-spacing-1);--solaris-segmented-item-padding-x: var(--solaris-spacing-1);--solaris-segmented-item-icon-size: var(--solaris-font-size-xs);--solaris-segmented-item-font-size: var(--solaris-font-size-xs)}:host-context([data-size=md][data-density=compact]){--solaris-segmented-item-gap: var(--solaris-spacing-1);--solaris-segmented-item-padding-y: var(--solaris-spacing-1);--solaris-segmented-item-padding-x: var(--solaris-spacing-1);--solaris-segmented-item-icon-size: var(--solaris-font-size-sm);--solaris-segmented-item-font-size: var(--solaris-font-size-sm)}:host-context([data-size=lg][data-density=compact]){--solaris-segmented-item-gap: var(--solaris-spacing-1);--solaris-segmented-item-padding-y: var(--solaris-spacing-2);--solaris-segmented-item-padding-x: var(--solaris-spacing-2);--solaris-segmented-item-icon-size: var(--solaris-font-size-md);--solaris-segmented-item-font-size: var(--solaris-font-size-md)}:host-context([data-appearance=surface][data-selected=true]){--solaris-segmented-item-color: var(--solaris-text-strong)}:host-context([data-appearance=outline]){--solaris-segmented-item-color: var(--solaris-text-default)}:host-context([data-full-width=true]){flex:1;justify-content:center}:host-context([data-equal-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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
180
- }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisSegmentedItemComponent, decorators: [{
182
- type: Component,
183
- args: [{ selector: 'solaris-segmented-item', standalone: true, imports: [SolarisIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: {
184
- role: 'radio',
185
- '[attr.id]': 'itemId()',
186
- '(click)': 'onClick()',
187
- '(keydown)': 'onKeydown($event)',
188
- '[attr.data-selected]': 'isSelected()',
189
- '[attr.data-disabled]': 'isComputedDisabled()',
190
- '[attr.aria-checked]': 'isSelected()',
191
- '[attr.aria-disabled]': 'isComputedDisabled() || undefined',
192
- '[attr.aria-label]': 'resolvedAriaLabel() || undefined',
193
- '[attr.tabindex]': 'isTabstop() ? "0" : "-1"',
194
- '[class.solaris-segmented-item--icon-only]': 'isIconOnly()',
195
- }, template: "<span class=\"solaris-segmented-item__inner\">\n @if (icon(); as iconName) {\n <solaris-icon\n class=\"solaris-segmented-item__icon\"\n [name]=\"iconName\"\n [decorative]=\"true\"\n />\n }\n @if (resolvedLabel(); as labelText) {\n <span class=\"solaris-segmented-item__label\">{{ labelText }}</span>\n }\n <ng-content />\n</span>\n", styles: [":host{--solaris-segmented-item-gap: var(--solaris-spacing-2);--solaris-segmented-item-radius: var(--solaris-radius-sm);--solaris-segmented-item-color: var(--solaris-text-default);--solaris-segmented-item-padding-y: var(--solaris-spacing-2);--solaris-segmented-item-padding-x: var(--solaris-spacing-2);--solaris-segmented-item-icon-size: var(--solaris-font-size-sm);--solaris-segmented-item-font-size: var(--solaris-font-size-sm);--solaris-segmented-item-selected-color: var(--solaris-text-strong);--solaris-segmented-item-font-weight: var(--solaris-font-weight-medium);--solaris-segmented-item-hover-background: var(--solaris-surface-subtle);z-index:2;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-segmented-item-gap);color:var(--solaris-segmented-item-color);padding:var(--solaris-segmented-item-padding-y) var(--solaris-segmented-item-padding-x);font:var(--solaris-segmented-item-font-weight) var(--solaris-segmented-item-font-size)/1 var(--solaris-font-family-sans);border-radius:max(var(--solaris-segmented-radius) - var(--solaris-segmented-padding),var(--solaris-segmented-padding) - var(--solaris-segmented-radius));transition:color var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),background var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host(:hover:not([data-disabled=true]):not([data-selected=true])){background:var(--solaris-segmented-item-hover-background)}:host(.solaris-segmented-item--icon-only){--solaris-segmented-item-icon-size: calc(var(--solaris-font-size-md) * 1.2)}:host:not([data-selected=true]):not([data-disabled=true]){opacity:.5}:host(:focus-visible){outline-offset:var(--solaris-border-width-md);border-radius:var(--solaris-segmented-item-radius);outline:var(--solaris-border-width-md) solid var(--solaris-primary-base)}:host([data-selected=true]){color:var(--solaris-segmented-item-selected-color)}:host([data-disabled=true]){opacity:.15;cursor:not-allowed}:host([data-disabled=true]:focus-visible){outline:none}:host([data-selected=true][data-disabled=true]){opacity:.4}:host-context([data-orientation=vertical]){width:100%;display:flex;max-width:100%;box-sizing:border-box}.solaris-segmented-item__inner{min-width:0;align-items:center;display:inline-flex;gap:var(--solaris-segmented-item-gap)}.solaris-segmented-item__icon{flex-shrink:0;width:var(--solaris-segmented-item-icon-size);height:var(--solaris-segmented-item-icon-size)}.solaris-segmented-item__label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:var(--solaris-line-height-md)}:host-context([data-size=sm]){--solaris-segmented-item-padding-y: var(--solaris-spacing-1);--solaris-segmented-item-padding-x: var(--solaris-spacing-1);--solaris-segmented-item-icon-size: var(--solaris-font-size-xs);--solaris-segmented-item-font-size: var(--solaris-font-size-xs)}:host-context([data-size=lg]){--solaris-segmented-item-padding-y: var(--solaris-spacing-3);--solaris-segmented-item-padding-x: var(--solaris-spacing-3);--solaris-segmented-item-icon-size: var(--solaris-font-size-md);--solaris-segmented-item-font-size: var(--solaris-font-size-md)}:host-context([data-size=sm][data-density=compact]){--solaris-segmented-item-gap: var(--solaris-spacing-1);--solaris-segmented-item-padding-y: var(--solaris-spacing-1);--solaris-segmented-item-padding-x: var(--solaris-spacing-1);--solaris-segmented-item-icon-size: var(--solaris-font-size-xs);--solaris-segmented-item-font-size: var(--solaris-font-size-xs)}:host-context([data-size=md][data-density=compact]){--solaris-segmented-item-gap: var(--solaris-spacing-1);--solaris-segmented-item-padding-y: var(--solaris-spacing-1);--solaris-segmented-item-padding-x: var(--solaris-spacing-1);--solaris-segmented-item-icon-size: var(--solaris-font-size-sm);--solaris-segmented-item-font-size: var(--solaris-font-size-sm)}:host-context([data-size=lg][data-density=compact]){--solaris-segmented-item-gap: var(--solaris-spacing-1);--solaris-segmented-item-padding-y: var(--solaris-spacing-2);--solaris-segmented-item-padding-x: var(--solaris-spacing-2);--solaris-segmented-item-icon-size: var(--solaris-font-size-md);--solaris-segmented-item-font-size: var(--solaris-font-size-md)}:host-context([data-appearance=surface][data-selected=true]){--solaris-segmented-item-color: var(--solaris-text-strong)}:host-context([data-appearance=outline]){--solaris-segmented-item-color: var(--solaris-text-default)}:host-context([data-full-width=true]){flex:1;justify-content:center}:host-context([data-equal-width=true]){flex:1;justify-content:center}@media(prefers-reduced-motion:reduce){:host{transition:none}}:host-context([data-reduced-motion=true]){transition:none}\n"] }]
196
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelKey", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", 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 }] }] } });
197
- //# sourceMappingURL=segmented-item.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"segmented-item.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/segmented-control/item/segmented-item.component.ts","../../../../../../../../../packages/angular/src/lib/components/navigation/segmented-control/item/segmented-item.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EAEV,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;;AAE9E,IAAI,MAAM,GAAG,CAAC,CAAC;AAuBf,MAAM,OAAO,6BAA6B;IACvB,gBAAgB,GAAG,MAAM,CAAC,uBAAuB,EAAE;QAClE,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;IACc,OAAO,GAAG,MAAM,CAAC,yBAAyB,EAAE;QAC3D,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;IACc,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAE9B,UAAU,GAAG,MAAM,CAAC,KAAK,iFAAC,CAAC;IAErC,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAW,CAAC;IAClC,KAAK,GAAG,KAAK,CAAqB,SAAS,4EAAC,CAAC;IAC7C,QAAQ,GAAG,KAAK,CAAqB,SAAS,+EAAC,CAAC;IAChD,IAAI,GAAG,KAAK,CAAqB,SAAS,2EAAC,CAAC;IAC5C,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,KAAK,CAAC,CAAC,CAAC,CAAC,kBAAkB,EAAE;gBAAE,OAAO,CAAC,CAAC;QAC/C,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,eAAe,CACrB,KAAmD;QAEnD,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3C,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,kBAAkB,EAAE;gBAAE,OAAO,CAAC,CAAC;QAC/C,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;wGA1MU,6BAA6B;4FAA7B,6BAA6B,m8CCtC1C,0WAaA,8wJDOY,oBAAoB;;4FAkBnB,6BAA6B;kBArBzC,SAAS;+BACE,wBAAwB,cACtB,IAAI,WACP,CAAC,oBAAoB,CAAC,mBAGd,uBAAuB,CAAC,MAAM,QACzC;wBACJ,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,UAAU;wBACvB,SAAS,EAAE,WAAW;wBACtB,WAAW,EAAE,mBAAmB;wBAChC,sBAAsB,EAAE,cAAc;wBACtC,sBAAsB,EAAE,sBAAsB;wBAC9C,qBAAqB,EAAE,cAAc;wBACrC,sBAAsB,EAAE,mCAAmC;wBAC3D,mBAAmB,EAAE,kCAAkC;wBACvD,iBAAiB,EAAE,0BAA0B;wBAC7C,2CAA2C,EAAE,cAAc;qBAC5D","sourcesContent":["import {\n input,\n inject,\n signal,\n computed,\n Component,\n ElementRef,\n AfterContentInit,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { SolarisTranslateService } from '../../../../services/translation';\nimport { SolarisIconComponent } from '../../../icon';\nimport { SOLARIS_SEGMENTED_CONTROL } from '../token/segmented-control.tokens';\n\nlet nextId = 0;\n\n@Component({\n selector: 'solaris-segmented-item',\n standalone: true,\n imports: [SolarisIconComponent],\n templateUrl: './segmented-item.component.html',\n styleUrls: ['./segmented-item.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'radio',\n '[attr.id]': 'itemId()',\n '(click)': 'onClick()',\n '(keydown)': 'onKeydown($event)',\n '[attr.data-selected]': 'isSelected()',\n '[attr.data-disabled]': 'isComputedDisabled()',\n '[attr.aria-checked]': 'isSelected()',\n '[attr.aria-disabled]': 'isComputedDisabled() || undefined',\n '[attr.aria-label]': 'resolvedAriaLabel() || undefined',\n '[attr.tabindex]': 'isTabstop() ? \"0\" : \"-1\"',\n '[class.solaris-segmented-item--icon-only]': 'isIconOnly()',\n },\n})\nexport class SolarisSegmentedItemComponent implements AfterContentInit {\n private readonly translateService = inject(SolarisTranslateService, {\n optional: true,\n });\n private readonly control = inject(SOLARIS_SEGMENTED_CONTROL, {\n optional: true,\n });\n private readonly elementRef = inject(ElementRef);\n\n protected readonly hasContent = signal(false);\n\n readonly value = input.required<unknown>();\n readonly label = input<string | undefined>(undefined);\n readonly labelKey = input<string | undefined>(undefined);\n readonly icon = input<string | undefined>(undefined);\n readonly disabled = input<boolean>(false);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelKey = input<string | undefined>(undefined);\n\n protected readonly instanceId = `solaris-segmented-item-${nextId++}`;\n\n protected readonly itemId = computed(() => {\n const ctrl = this.control;\n if (ctrl) {\n return `solaris-segmented-item-${String(this.value())}`;\n }\n return this.instanceId;\n });\n\n readonly isSelected = computed(() => {\n if (!this.control) return false;\n return this.control.compareFn()(this.value(), this.control.value());\n });\n\n readonly isComputedDisabled = computed(() => {\n return this.disabled() || (this.control?.disabled() ?? false);\n });\n\n readonly isComputedReadonly = computed(() => {\n return this.control?.readonly() ?? false;\n });\n\n readonly isTabstop = computed(() => {\n if (this.isComputedDisabled()) return false;\n if (this.isSelected()) return true;\n if (!this.control) return false;\n const items = this.control.items();\n const firstEnabled = items.findIndex((item) => !item.isComputedDisabled());\n return items.indexOf(this) === firstEnabled;\n });\n\n protected readonly isIconOnly = computed(() => {\n return (\n !!this.icon() && !this.label() && !this.labelKey() && !this.hasContent()\n );\n });\n\n ngAfterContentInit(): void {\n this.updateHasContent();\n }\n\n private updateHasContent(): void {\n // SECURITY_EXCEPTION: nativeElement required to check projected content. SSR-safe read-only operation.\n const nativeEl = this.elementRef.nativeElement as HTMLElement;\n const innerEl = nativeEl.querySelector('.solaris-segmented-item__inner');\n if (!innerEl) return;\n for (const node of Array.from(innerEl.childNodes)) {\n if (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()) {\n this.hasContent.set(true);\n return;\n }\n if (node.nodeType === Node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.classList.contains('solaris-segmented-item__icon')) {\n this.hasContent.set(true);\n return;\n }\n }\n }\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 ?? undefined;\n });\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 undefined;\n });\n\n protected readonly index = computed(() => {\n if (!this.control) return -1;\n return this.control.items().indexOf(this);\n });\n\n protected onClick(): void {\n if (this.isComputedDisabled()) return;\n if (this.isComputedReadonly()) return;\n this.control?.selectItem(this);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.isComputedDisabled()) return;\n\n const items = this.control?.items() ?? [];\n const currentIndex = this.index();\n\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n if (!this.isComputedReadonly()) {\n this.control?.selectItem(this);\n }\n return;\n }\n\n const nextIndex = this.getNextIndex(event.key, items, currentIndex);\n\n if (nextIndex === null || nextIndex === currentIndex) return;\n\n event.preventDefault();\n\n const nextItem = items[nextIndex];\n this.control?.focusItem(nextItem);\n }\n\n private getNextIndex(\n key: string,\n items: ReadonlyArray<SolarisSegmentedItemComponent>,\n currentIndex: number,\n ): number | null {\n const orientation = this.control?.orientation() ?? 'horizontal';\n\n switch (key) {\n case 'ArrowRight':\n return orientation === 'horizontal'\n ? this.findNextEnabled(items, currentIndex, 1)\n : null;\n\n case 'ArrowLeft':\n return orientation === 'horizontal'\n ? this.findNextEnabled(items, currentIndex, -1)\n : null;\n\n case 'ArrowDown':\n return orientation === 'vertical'\n ? this.findNextEnabled(items, currentIndex, 1)\n : null;\n\n case 'ArrowUp':\n return orientation === 'vertical'\n ? this.findNextEnabled(items, currentIndex, -1)\n : null;\n\n case 'Home':\n return this.findFirstEnabled(items);\n\n case 'End':\n return this.findLastEnabled(items);\n\n default:\n return null;\n }\n }\n\n private findNextEnabled(\n items: ReadonlyArray<SolarisSegmentedItemComponent>,\n fromIndex: number,\n direction: 1 | -1,\n ): number | null {\n let i = fromIndex + direction;\n while (i >= 0 && i < items.length) {\n if (!items[i].isComputedDisabled()) return i;\n i += direction;\n }\n return null;\n }\n\n private findFirstEnabled(\n items: ReadonlyArray<SolarisSegmentedItemComponent>,\n ): number | null {\n for (let i = 0; i < items.length; i++) {\n if (!items[i].isComputedDisabled()) return i;\n }\n return null;\n }\n\n private findLastEnabled(\n items: ReadonlyArray<SolarisSegmentedItemComponent>,\n ): number | null {\n for (let i = items.length - 1; i >= 0; i--) {\n if (!items[i].isComputedDisabled()) return i;\n }\n return null;\n }\n}\n","<span class=\"solaris-segmented-item__inner\">\n @if (icon(); as iconName) {\n <solaris-icon\n class=\"solaris-segmented-item__icon\"\n [name]=\"iconName\"\n [decorative]=\"true\"\n />\n }\n @if (resolvedLabel(); as labelText) {\n <span class=\"solaris-segmented-item__label\">{{ labelText }}</span>\n }\n <ng-content />\n</span>\n"]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=segmented-control.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"segmented-control.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/segmented-control/model/segmented-control.types.ts"],"names":[],"mappings":"","sourcesContent":["export type SolarisSegmentedControlOrientation = 'horizontal' | 'vertical';\n\nexport type SolarisSegmentedControlAppearance = 'surface' | 'outline';\n\nexport type SolarisSegmentedControlSize = 'sm' | 'md' | 'lg';\n\nexport type SolarisSegmentedControlDensity = 'compact' | 'comfortable';\n\nexport type SolarisSegmentedControlRadius = 'sm' | 'md' | 'lg' | 'full';\n\nexport interface SolarisSegmentedControlValueChangeEvent {\n value: unknown;\n}\n\nexport interface SolarisSegmentedControlChangeEvent {\n value: unknown;\n previousValue: unknown;\n}\n"]}
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export const SOLARIS_SEGMENTED_CONTROL = new InjectionToken('SolarisSegmentedControl');
3
- //# sourceMappingURL=segmented-control.tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"segmented-control.tokens.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/segmented-control/token/segmented-control.tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,eAAe,CAAC;AA8B5D,MAAM,CAAC,MAAM,yBAAyB,GACpC,IAAI,cAAc,CAChB,yBAAyB,CAC1B,CAAC","sourcesContent":["import { InjectionToken, type Signal } from '@angular/core';\n\nimport type {\n SolarisSegmentedControlOrientation,\n SolarisSegmentedControlAppearance,\n SolarisSegmentedControlSize,\n SolarisSegmentedControlDensity,\n SolarisSegmentedControlRadius,\n} from '../model/segmented-control.types';\nimport type { SolarisSegmentedItemComponent } from '../item/segmented-item.component';\n\nexport interface SolarisSegmentedControlInterface {\n value: Signal<unknown>;\n items: Signal<ReadonlyArray<SolarisSegmentedItemComponent>>;\n orientation: Signal<SolarisSegmentedControlOrientation>;\n appearance: Signal<SolarisSegmentedControlAppearance>;\n size: Signal<SolarisSegmentedControlSize>;\n density: Signal<SolarisSegmentedControlDensity>;\n radius: Signal<SolarisSegmentedControlRadius>;\n disabled: Signal<boolean>;\n readonly: Signal<boolean>;\n invalid: Signal<boolean>;\n fullWidth: Signal<boolean>;\n equalWidth: Signal<boolean>;\n indicator: Signal<boolean>;\n compareFn: Signal<(a: unknown, b: unknown) => boolean>;\n selectItem: (item: SolarisSegmentedItemComponent) => void;\n focusItem: (item: SolarisSegmentedItemComponent) => void;\n}\n\nexport const SOLARIS_SEGMENTED_CONTROL =\n new InjectionToken<SolarisSegmentedControlInterface>(\n 'SolarisSegmentedControl',\n );\n"]}
@@ -1,15 +0,0 @@
1
- import { Component, input, ChangeDetectionStrategy } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class SolarisStepperActionsComponent {
4
- align = input('end', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisStepperActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: SolarisStepperActionsComponent, isStandalone: true, selector: "solaris-stepper-actions", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-align": "align()" }, classAttribute: "solaris-stepper-actions" }, ngImport: i0, template: "<ng-content />\n", styles: [":host{display:flex;gap:var(--solaris-spacing-3);padding-top:var(--solaris-spacing-6)}:host([data-align=start]){justify-content:flex-start}:host([data-align=center]){justify-content:center}:host([data-align=end]){justify-content:flex-end}:host([data-align=space-between]){justify-content:space-between}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7
- }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisStepperActionsComponent, decorators: [{
9
- type: Component,
10
- args: [{ selector: 'solaris-stepper-actions', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: {
11
- '[attr.data-align]': 'align()',
12
- class: 'solaris-stepper-actions',
13
- }, template: "<ng-content />\n", styles: [":host{display:flex;gap:var(--solaris-spacing-3);padding-top:var(--solaris-spacing-6)}:host([data-align=start]){justify-content:flex-start}:host([data-align=center]){justify-content:center}:host([data-align=end]){justify-content:flex-end}:host([data-align=space-between]){justify-content:space-between}\n"] }]
14
- }], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }] } });
15
- //# sourceMappingURL=stepper-actions.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepper-actions.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/actions/stepper-actions.component.ts","../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/actions/stepper-actions.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;;AAc1E,MAAM,OAAO,8BAA8B;IAChC,KAAK,GAAG,KAAK,CAA6B,KAAK,4EAAC,CAAC;wGAD/C,8BAA8B;4FAA9B,8BAA8B,0TCd3C,kBACA;;4FDaa,8BAA8B;kBAX1C,SAAS;+BACE,yBAAyB,cACvB,IAAI,mBAGC,uBAAuB,CAAC,MAAM,QACzC;wBACJ,mBAAmB,EAAE,SAAS;wBAC9B,KAAK,EAAE,yBAAyB;qBACjC","sourcesContent":["import { Component, input, ChangeDetectionStrategy } from '@angular/core';\nimport type { SolarisStepperActionsAlign } from '../model/stepper.types';\n\n@Component({\n selector: 'solaris-stepper-actions',\n standalone: true,\n templateUrl: './stepper-actions.component.html',\n styleUrls: ['./stepper-actions.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-align]': 'align()',\n class: 'solaris-stepper-actions',\n },\n})\nexport class SolarisStepperActionsComponent {\n readonly align = input<SolarisStepperActionsAlign>('end');\n}\n","<ng-content />\n"]}
@@ -1,99 +0,0 @@
1
- import { Component, input, output, model, contentChildren, contentChild, computed, signal, inject, ChangeDetectionStrategy, effect, } from '@angular/core';
2
- import { SolarisStepperActionsComponent } from '../actions/stepper-actions.component';
3
- import { SolarisTranslateService } from '../../../../services/translation';
4
- import { SolarisStepComponent } from '../step/step.component';
5
- import { SOLARIS_STEPPER } from '../token/stepper.tokens';
6
- import { SolarisIconComponent } from '../../../icon';
7
- import * as i0 from "@angular/core";
8
- export class SolarisStepperComponent {
9
- translateService = inject(SolarisTranslateService, {
10
- optional: true,
11
- });
12
- steps = contentChildren(SolarisStepComponent, ...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
13
- actions = contentChild(SolarisStepperActionsComponent, ...(ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []));
14
- activeIndex = model(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
15
- orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
16
- appearance = input('default', ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
17
- linear = input(false, ...(ngDevMode ? [{ debugName: "linear" }] : /* istanbul ignore next */ []));
18
- size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
19
- density = input('comfortable', ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
20
- showConnectors = input(true, ...(ngDevMode ? [{ debugName: "showConnectors" }] : /* istanbul ignore next */ []));
21
- showStepStatus = input(true, ...(ngDevMode ? [{ debugName: "showStepStatus" }] : /* istanbul ignore next */ []));
22
- showStepNumbers = input(true, ...(ngDevMode ? [{ debugName: "showStepNumbers" }] : /* istanbul ignore next */ []));
23
- contentTransition = input('fade', ...(ngDevMode ? [{ debugName: "contentTransition" }] : /* istanbul ignore next */ []));
24
- ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
25
- ariaLabelKey = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabelKey" }] : /* istanbul ignore next */ []));
26
- activeIndexChange = output();
27
- stepChange = output();
28
- stepClick = output();
29
- stepTransitionDirection = signal('next', ...(ngDevMode ? [{ debugName: "stepTransitionDirection" }] : /* istanbul ignore next */ []));
30
- previousIndex = signal(0, ...(ngDevMode ? [{ debugName: "previousIndex" }] : /* istanbul ignore next */ []));
31
- resolvedAriaLabel = computed(() => {
32
- if (this.ariaLabel())
33
- return this.ariaLabel();
34
- const ariaLabelKey = this.ariaLabelKey();
35
- if (ariaLabelKey && this.translateService) {
36
- return this.translateService.translate(ariaLabelKey);
37
- }
38
- return ariaLabelKey ?? 'Progress';
39
- }, ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
40
- constructor() {
41
- effect(() => {
42
- const current = this.activeIndex();
43
- const prev = this.previousIndex();
44
- if (current !== prev) {
45
- this.activeIndexChange.emit(current);
46
- this.stepChange.emit({
47
- activeIndex: current,
48
- previousIndex: prev,
49
- });
50
- this.stepTransitionDirection.set(current > prev ? 'next' : 'previous');
51
- this.previousIndex.set(current);
52
- }
53
- });
54
- }
55
- goToStep(index) {
56
- const step = this.steps()[index];
57
- if (!step)
58
- return;
59
- if (step.computedStatus() === 'disabled')
60
- return;
61
- if (this.linear() &&
62
- step.computedStatus() !== 'completed' &&
63
- index !== this.activeIndex())
64
- return;
65
- this.activeIndex.set(index);
66
- this.stepClick.emit({
67
- index,
68
- label: step.resolvedLabel(),
69
- });
70
- }
71
- isStepClickable(step) {
72
- return step.computedStatus() !== 'disabled';
73
- }
74
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
75
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisStepperComponent, isStandalone: true, selector: "solaris-stepper", inputs: { activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", 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 }, linear: { classPropertyName: "linear", publicName: "linear", 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 }, showConnectors: { classPropertyName: "showConnectors", publicName: "showConnectors", isSignal: true, isRequired: false, transformFunction: null }, showStepStatus: { classPropertyName: "showStepStatus", publicName: "showStepStatus", isSignal: true, isRequired: false, transformFunction: null }, showStepNumbers: { classPropertyName: "showStepNumbers", publicName: "showStepNumbers", isSignal: true, isRequired: false, transformFunction: null }, contentTransition: { classPropertyName: "contentTransition", publicName: "contentTransition", 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: { activeIndex: "activeIndexChange", activeIndexChange: "activeIndexChange", stepChange: "stepChange", stepClick: "stepClick" }, host: { properties: { "attr.data-size": "size()", "attr.role": "\"navigation\"", "attr.data-density": "density()", "attr.data-appearance": "appearance()", "attr.data-orientation": "orientation()", "attr.aria-label": "resolvedAriaLabel()" }, classAttribute: "solaris-stepper" }, providers: [
76
- {
77
- provide: SOLARIS_STEPPER,
78
- useExisting: SolarisStepperComponent,
79
- },
80
- ], queries: [{ propertyName: "steps", predicate: SolarisStepComponent, isSignal: true }, { propertyName: "actions", first: true, predicate: SolarisStepperActionsComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"solaris-stepper__indicators\">\n @for (step of steps(); track step; let i = $index) {\n @if (showConnectors() && i > 0) {\n <div\n class=\"solaris-stepper__connector\"\n [class.solaris-stepper__connector--active]=\"i <= activeIndex()\"\n ></div>\n }\n\n <div\n class=\"solaris-stepper__step\"\n [class.solaris-stepper__step--active]=\"i === activeIndex()\"\n [class.solaris-stepper__step--clickable]=\"isStepClickable(step)\"\n [attr.data-status]=\"step.computedStatus()\"\n >\n @if (isStepClickable(step)) {\n <button\n type=\"button\"\n class=\"solaris-stepper__indicator-button\"\n (click)=\"goToStep(i)\"\n [attr.aria-current]=\"i === activeIndex() ? 'step' : undefined\"\n [attr.aria-disabled]=\"step.computedStatus() === 'disabled'\"\n >\n @if (step.icon(); as iconName) {\n <solaris-icon [name]=\"iconName\" [decorative]=\"true\" />\n } @else if (step.showCheckIcon()) {\n <solaris-icon name=\"check\" [decorative]=\"true\" />\n } @else if (step.showErrorIcon()) {\n <solaris-icon name=\"danger\" [decorative]=\"true\" />\n } @else if (showStepNumbers()) {\n <span class=\"solaris-stepper__number\">{{ i + 1 }}</span>\n }\n </button>\n } @else {\n <span class=\"solaris-stepper__indicator-static\">\n @if (step.icon(); as iconName) {\n <solaris-icon [name]=\"iconName\" [decorative]=\"true\" />\n } @else if (step.showCheckIcon()) {\n <solaris-icon name=\"check\" [decorative]=\"true\" />\n } @else if (step.showErrorIcon()) {\n <solaris-icon name=\"danger\" [decorative]=\"true\" />\n } @else if (showStepNumbers()) {\n <span class=\"solaris-stepper__number\">{{ i + 1 }}</span>\n }\n </span>\n }\n\n <div class=\"solaris-stepper__label-group\">\n <span class=\"solaris-stepper__label\">{{ step.resolvedLabel() }}</span>\n @if (step.resolvedDescription(); as desc) {\n <span class=\"solaris-stepper__description\">{{ desc }}</span>\n }\n </div>\n\n @if (showStepStatus()) {\n <span class=\"solaris-stepper__status-badge\">\n @if (step.optional()) {\n <span class=\"solaris-stepper__optional-text\">Optional</span>\n <!-- SOLARIS_I18N_EXCEPTION: \"Optional\" is a short static label used as a visual badge. Translation support can be added in a future iteration. -->\n }\n </span>\n }\n </div>\n }\n</div>\n\n<div\n class=\"solaris-stepper__content-panel\"\n [class.solaris-stepper__content-panel--fade]=\"contentTransition() === 'fade'\"\n [class.solaris-stepper__content-panel--slide-right]=\"\n contentTransition() === 'slide' && stepTransitionDirection() === 'next'\n \"\n [class.solaris-stepper__content-panel--slide-left]=\"\n contentTransition() === 'slide' && stepTransitionDirection() === 'previous'\n \"\n>\n <ng-content select=\"solaris-step\" />\n</div>\n\n<ng-content select=\"solaris-stepper-actions\" />\n", styles: [":host{--solaris-stepper-gap: var(--solaris-spacing-4);--solaris-stepper-card-shadow: var(--solaris-shadow-sm);--solaris-stepper-indicator-size: var(--solaris-spacing-8);--solaris-stepper-label-color: var(--solaris-text-default);--solaris-stepper-indicator-color: var(--solaris-text-subtle);--solaris-stepper-description-color: var(--solaris-text-muted);--solaris-stepper-card-background: var(--solaris-surface-base);--solaris-stepper-connector-color: var(--solaris-border-subtle);--solaris-stepper-connector-size: var(--solaris-border-width-md);--solaris-stepper-card-border-color: var(--solaris-border-subtle);--solaris-stepper-indicator-background: var(--solaris-surface-muted);--solaris-stepper-connector-active-color: var(--solaris-primary-base);--solaris-stepper-dashed-connector-color: var(--solaris-border-subtle);display:block}.solaris-stepper__indicators{display:flex;align-items:flex-start;gap:var(--solaris-stepper-gap)}:host([data-orientation=vertical]) .solaris-stepper__indicators{flex-direction:column}.solaris-stepper__connector{flex:1;min-width:var(--solaris-spacing-6);border-radius:var(--solaris-radius-full);height:var(--solaris-stepper-connector-size);background:var(--solaris-stepper-connector-color);margin-top:calc(var(--solaris-stepper-indicator-size) / 2 - var(--solaris-stepper-connector-size) / 2);transition:background var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}:host([data-orientation=vertical]) .solaris-stepper__connector{flex:1;height:auto;margin-top:0;min-width:auto;min-height:var(--solaris-spacing-6);width:var(--solaris-stepper-connector-size);margin-left:calc(var(--solaris-stepper-indicator-size) / 2 - var(--solaris-stepper-connector-size) / 2)}.solaris-stepper__connector--active{background:var(--solaris-stepper-connector-active-color)}.solaris-stepper__step{display:flex;flex-shrink:0;align-items:center;gap:var(--solaris-spacing-3)}.solaris-stepper__step--clickable{cursor:pointer}.solaris-stepper__indicator-button,.solaris-stepper__indicator-static{padding:0;border:none;display:flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--solaris-radius-full);width:var(--solaris-stepper-indicator-size);height:var(--solaris-stepper-indicator-size);color:var(--solaris-stepper-indicator-color);background:var(--solaris-stepper-indicator-background);font:var(--solaris-font-weight-semibold) var(--solaris-font-size-sm)/1 var(--solaris-font-family-sans);transition:background var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard),color var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard),box-shadow var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}.solaris-stepper__indicator-button{cursor:pointer}.solaris-stepper__indicator-button:focus-visible{outline-offset:.2rem;outline:.2rem solid var(--solaris-primary-base)}.solaris-stepper__step[data-status=active] .solaris-stepper__indicator-button,.solaris-stepper__step[data-status=active] .solaris-stepper__indicator-static{color:var(--solaris-primary-text);background:var(--solaris-primary-base)}.solaris-stepper__step[data-status=completed] .solaris-stepper__indicator-button,.solaris-stepper__step[data-status=completed] .solaris-stepper__indicator-static{color:var(--solaris-success-on-solid);background:var(--solaris-success-base)}.solaris-stepper__step[data-status=error] .solaris-stepper__indicator-button,.solaris-stepper__step[data-status=error] .solaris-stepper__indicator-static{color:var(--solaris-danger-on-solid);background:var(--solaris-danger-base)}.solaris-stepper__step[data-status=disabled] .solaris-stepper__indicator-button,.solaris-stepper__step[data-status=disabled] .solaris-stepper__indicator-static{opacity:.5;cursor:not-allowed}.solaris-stepper__step[data-status=disabled] .solaris-stepper__label{opacity:.5}.solaris-stepper__number{font:var(--solaris-font-weight-semibold) var(--solaris-font-size-sm)/1 var(--solaris-font-family-sans)}.solaris-stepper__label-group{display:flex;flex-direction:column;gap:var(--solaris-spacing-1)}:host([data-orientation=vertical]) .solaris-stepper__label-group{flex:1}.solaris-stepper__label{white-space:nowrap;color:var(--solaris-stepper-label-color);font:var(--solaris-font-weight-medium) var(--solaris-font-size-sm)/var(--solaris-line-height-md) var(--solaris-font-family-sans)}.solaris-stepper__description{white-space:nowrap;color:var(--solaris-stepper-description-color);font:var(--solaris-font-weight-regular) var(--solaris-font-size-xs)/var(--solaris-line-height-md) var(--solaris-font-family-sans)}.solaris-stepper__status-badge{display:flex;align-items:center}.solaris-stepper__optional-text{color:var(--solaris-text-muted);border-radius:var(--solaris-radius-sm);background:var(--solaris-surface-subtle);padding:var(--solaris-spacing-1) var(--solaris-spacing-2);font:var(--solaris-font-weight-regular) var(--solaris-font-size-xs)/1 var(--solaris-font-family-sans)}.solaris-stepper__content-panel{padding-top:var(--solaris-spacing-6)}:host([data-orientation=horizontal]) .solaris-stepper__content-panel{max-width:100%}.solaris-stepper__content-panel--fade{animation:solaris-stepper-fade-in var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-stepper__content-panel--slide-right{animation:solaris-stepper-slide-in-right var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-stepper__content-panel--slide-left{animation:solaris-stepper-slide-in-left var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host([data-appearance=card]) .solaris-stepper__connector{display:none}:host([data-appearance=card]) .solaris-stepper__step{flex:1;text-align:center;align-items:center;flex-direction:column;padding:var(--solaris-spacing-4);border-radius:var(--solaris-radius-lg);box-shadow:var(--solaris-stepper-card-shadow);background:var(--solaris-stepper-card-background);border:.1rem solid var(--solaris-stepper-card-border-color);transition:box-shadow var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard),border-color var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}:host([data-appearance=card]) .solaris-stepper__step--active{border-color:var(--solaris-primary-base);box-shadow:var(--solaris-shadow-focus, 0 0 0 .1rem var(--solaris-primary-base))}:host([data-appearance=card]) .solaris-stepper__indicators{gap:var(--solaris-stepper-gap)}:host([data-appearance=dashed]){--solaris-stepper-gap: 0}:host([data-appearance=dashed]) .solaris-stepper__indicators{gap:var(--solaris-spacing-2)}:host([data-appearance=dashed]) .solaris-stepper__connector,:host([data-appearance=dashed]) .solaris-stepper__indicator-button,:host([data-appearance=dashed]) .solaris-stepper__indicator-static,:host([data-appearance=dashed]) .solaris-stepper__label-group,:host([data-appearance=dashed]) .solaris-stepper__status-badge{display:none}:host([data-appearance=dashed]) .solaris-stepper__step{flex:1;height:var(--solaris-spacing-2);min-width:var(--solaris-spacing-4);border-radius:var(--solaris-radius-full);background:var(--solaris-stepper-connector-color)}:host([data-appearance=dashed]) .solaris-stepper__step[data-status=completed]{background:var(--solaris-success-base)}:host([data-appearance=dashed]) .solaris-stepper__step[data-status=active]{background:var(--solaris-primary-base)}:host([data-appearance=dashed]) .solaris-stepper__step[data-status=error]{background:var(--solaris-danger-base)}:host([data-appearance=dashed]) .solaris-stepper__step--clickable{cursor:pointer}:host([data-appearance=dashed][data-orientation=vertical]) .solaris-stepper__indicators{gap:var(--solaris-spacing-2)}:host([data-appearance=dashed][data-orientation=vertical]) .solaris-stepper__step{flex:none;height:auto;min-width:auto;width:var(--solaris-spacing-2);min-height:var(--solaris-spacing-4)}:host([data-size=sm]){--solaris-stepper-gap: var(--solaris-spacing-3);--solaris-stepper-indicator-size: var(--solaris-spacing-6)}:host([data-size=sm]) .solaris-stepper__label{font-size:var(--solaris-font-size-xs)}:host([data-size=lg]){--solaris-stepper-gap: var(--solaris-spacing-6);--solaris-stepper-indicator-size: var(--solaris-spacing-10)}:host([data-size=lg]) .solaris-stepper__label{font-size:var(--solaris-font-size-md)}:host([data-density=compact]){--solaris-stepper-gap: var(--solaris-spacing-2);--solaris-stepper-indicator-size: var(--solaris-spacing-6)}:host([data-density=compact]) .solaris-stepper__label{font-size:var(--solaris-font-size-xs)}:host([data-density=compact]) .solaris-stepper__description{display:none}:host([data-density=compact]) .solaris-stepper__content-panel{padding-top:var(--solaris-spacing-3)}@media(prefers-reduced-motion:reduce){.solaris-stepper__content-panel--fade,.solaris-stepper__content-panel--slide-right,.solaris-stepper__content-panel--slide-left{animation:none}}@keyframes solaris-stepper-fade-in{0%{opacity:0}to{opacity:1}}@keyframes solaris-stepper-slide-in-right{0%{opacity:0;transform:translate(var(--solaris-spacing-4))}to{opacity:1;transform:translate(0)}}@keyframes solaris-stepper-slide-in-left{0%{opacity:0;transform:translate(calc(-1 * var(--solaris-spacing-4)))}to{opacity:1;transform:translate(0)}}\n"], dependencies: [{ kind: "component", type: SolarisIconComponent, selector: "solaris-icon", inputs: ["name", "ariaLabel", "decorative"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
81
- }
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisStepperComponent, decorators: [{
83
- type: Component,
84
- args: [{ selector: 'solaris-stepper', standalone: true, imports: [SolarisIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: {
85
- class: 'solaris-stepper',
86
- '[attr.data-size]': 'size()',
87
- '[attr.role]': '"navigation"',
88
- '[attr.data-density]': 'density()',
89
- '[attr.data-appearance]': 'appearance()',
90
- '[attr.data-orientation]': 'orientation()',
91
- '[attr.aria-label]': 'resolvedAriaLabel()',
92
- }, providers: [
93
- {
94
- provide: SOLARIS_STEPPER,
95
- useExisting: SolarisStepperComponent,
96
- },
97
- ], template: "<div class=\"solaris-stepper__indicators\">\n @for (step of steps(); track step; let i = $index) {\n @if (showConnectors() && i > 0) {\n <div\n class=\"solaris-stepper__connector\"\n [class.solaris-stepper__connector--active]=\"i <= activeIndex()\"\n ></div>\n }\n\n <div\n class=\"solaris-stepper__step\"\n [class.solaris-stepper__step--active]=\"i === activeIndex()\"\n [class.solaris-stepper__step--clickable]=\"isStepClickable(step)\"\n [attr.data-status]=\"step.computedStatus()\"\n >\n @if (isStepClickable(step)) {\n <button\n type=\"button\"\n class=\"solaris-stepper__indicator-button\"\n (click)=\"goToStep(i)\"\n [attr.aria-current]=\"i === activeIndex() ? 'step' : undefined\"\n [attr.aria-disabled]=\"step.computedStatus() === 'disabled'\"\n >\n @if (step.icon(); as iconName) {\n <solaris-icon [name]=\"iconName\" [decorative]=\"true\" />\n } @else if (step.showCheckIcon()) {\n <solaris-icon name=\"check\" [decorative]=\"true\" />\n } @else if (step.showErrorIcon()) {\n <solaris-icon name=\"danger\" [decorative]=\"true\" />\n } @else if (showStepNumbers()) {\n <span class=\"solaris-stepper__number\">{{ i + 1 }}</span>\n }\n </button>\n } @else {\n <span class=\"solaris-stepper__indicator-static\">\n @if (step.icon(); as iconName) {\n <solaris-icon [name]=\"iconName\" [decorative]=\"true\" />\n } @else if (step.showCheckIcon()) {\n <solaris-icon name=\"check\" [decorative]=\"true\" />\n } @else if (step.showErrorIcon()) {\n <solaris-icon name=\"danger\" [decorative]=\"true\" />\n } @else if (showStepNumbers()) {\n <span class=\"solaris-stepper__number\">{{ i + 1 }}</span>\n }\n </span>\n }\n\n <div class=\"solaris-stepper__label-group\">\n <span class=\"solaris-stepper__label\">{{ step.resolvedLabel() }}</span>\n @if (step.resolvedDescription(); as desc) {\n <span class=\"solaris-stepper__description\">{{ desc }}</span>\n }\n </div>\n\n @if (showStepStatus()) {\n <span class=\"solaris-stepper__status-badge\">\n @if (step.optional()) {\n <span class=\"solaris-stepper__optional-text\">Optional</span>\n <!-- SOLARIS_I18N_EXCEPTION: \"Optional\" is a short static label used as a visual badge. Translation support can be added in a future iteration. -->\n }\n </span>\n }\n </div>\n }\n</div>\n\n<div\n class=\"solaris-stepper__content-panel\"\n [class.solaris-stepper__content-panel--fade]=\"contentTransition() === 'fade'\"\n [class.solaris-stepper__content-panel--slide-right]=\"\n contentTransition() === 'slide' && stepTransitionDirection() === 'next'\n \"\n [class.solaris-stepper__content-panel--slide-left]=\"\n contentTransition() === 'slide' && stepTransitionDirection() === 'previous'\n \"\n>\n <ng-content select=\"solaris-step\" />\n</div>\n\n<ng-content select=\"solaris-stepper-actions\" />\n", styles: [":host{--solaris-stepper-gap: var(--solaris-spacing-4);--solaris-stepper-card-shadow: var(--solaris-shadow-sm);--solaris-stepper-indicator-size: var(--solaris-spacing-8);--solaris-stepper-label-color: var(--solaris-text-default);--solaris-stepper-indicator-color: var(--solaris-text-subtle);--solaris-stepper-description-color: var(--solaris-text-muted);--solaris-stepper-card-background: var(--solaris-surface-base);--solaris-stepper-connector-color: var(--solaris-border-subtle);--solaris-stepper-connector-size: var(--solaris-border-width-md);--solaris-stepper-card-border-color: var(--solaris-border-subtle);--solaris-stepper-indicator-background: var(--solaris-surface-muted);--solaris-stepper-connector-active-color: var(--solaris-primary-base);--solaris-stepper-dashed-connector-color: var(--solaris-border-subtle);display:block}.solaris-stepper__indicators{display:flex;align-items:flex-start;gap:var(--solaris-stepper-gap)}:host([data-orientation=vertical]) .solaris-stepper__indicators{flex-direction:column}.solaris-stepper__connector{flex:1;min-width:var(--solaris-spacing-6);border-radius:var(--solaris-radius-full);height:var(--solaris-stepper-connector-size);background:var(--solaris-stepper-connector-color);margin-top:calc(var(--solaris-stepper-indicator-size) / 2 - var(--solaris-stepper-connector-size) / 2);transition:background var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}:host([data-orientation=vertical]) .solaris-stepper__connector{flex:1;height:auto;margin-top:0;min-width:auto;min-height:var(--solaris-spacing-6);width:var(--solaris-stepper-connector-size);margin-left:calc(var(--solaris-stepper-indicator-size) / 2 - var(--solaris-stepper-connector-size) / 2)}.solaris-stepper__connector--active{background:var(--solaris-stepper-connector-active-color)}.solaris-stepper__step{display:flex;flex-shrink:0;align-items:center;gap:var(--solaris-spacing-3)}.solaris-stepper__step--clickable{cursor:pointer}.solaris-stepper__indicator-button,.solaris-stepper__indicator-static{padding:0;border:none;display:flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--solaris-radius-full);width:var(--solaris-stepper-indicator-size);height:var(--solaris-stepper-indicator-size);color:var(--solaris-stepper-indicator-color);background:var(--solaris-stepper-indicator-background);font:var(--solaris-font-weight-semibold) var(--solaris-font-size-sm)/1 var(--solaris-font-family-sans);transition:background var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard),color var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard),box-shadow var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}.solaris-stepper__indicator-button{cursor:pointer}.solaris-stepper__indicator-button:focus-visible{outline-offset:.2rem;outline:.2rem solid var(--solaris-primary-base)}.solaris-stepper__step[data-status=active] .solaris-stepper__indicator-button,.solaris-stepper__step[data-status=active] .solaris-stepper__indicator-static{color:var(--solaris-primary-text);background:var(--solaris-primary-base)}.solaris-stepper__step[data-status=completed] .solaris-stepper__indicator-button,.solaris-stepper__step[data-status=completed] .solaris-stepper__indicator-static{color:var(--solaris-success-on-solid);background:var(--solaris-success-base)}.solaris-stepper__step[data-status=error] .solaris-stepper__indicator-button,.solaris-stepper__step[data-status=error] .solaris-stepper__indicator-static{color:var(--solaris-danger-on-solid);background:var(--solaris-danger-base)}.solaris-stepper__step[data-status=disabled] .solaris-stepper__indicator-button,.solaris-stepper__step[data-status=disabled] .solaris-stepper__indicator-static{opacity:.5;cursor:not-allowed}.solaris-stepper__step[data-status=disabled] .solaris-stepper__label{opacity:.5}.solaris-stepper__number{font:var(--solaris-font-weight-semibold) var(--solaris-font-size-sm)/1 var(--solaris-font-family-sans)}.solaris-stepper__label-group{display:flex;flex-direction:column;gap:var(--solaris-spacing-1)}:host([data-orientation=vertical]) .solaris-stepper__label-group{flex:1}.solaris-stepper__label{white-space:nowrap;color:var(--solaris-stepper-label-color);font:var(--solaris-font-weight-medium) var(--solaris-font-size-sm)/var(--solaris-line-height-md) var(--solaris-font-family-sans)}.solaris-stepper__description{white-space:nowrap;color:var(--solaris-stepper-description-color);font:var(--solaris-font-weight-regular) var(--solaris-font-size-xs)/var(--solaris-line-height-md) var(--solaris-font-family-sans)}.solaris-stepper__status-badge{display:flex;align-items:center}.solaris-stepper__optional-text{color:var(--solaris-text-muted);border-radius:var(--solaris-radius-sm);background:var(--solaris-surface-subtle);padding:var(--solaris-spacing-1) var(--solaris-spacing-2);font:var(--solaris-font-weight-regular) var(--solaris-font-size-xs)/1 var(--solaris-font-family-sans)}.solaris-stepper__content-panel{padding-top:var(--solaris-spacing-6)}:host([data-orientation=horizontal]) .solaris-stepper__content-panel{max-width:100%}.solaris-stepper__content-panel--fade{animation:solaris-stepper-fade-in var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-stepper__content-panel--slide-right{animation:solaris-stepper-slide-in-right var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-stepper__content-panel--slide-left{animation:solaris-stepper-slide-in-left var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host([data-appearance=card]) .solaris-stepper__connector{display:none}:host([data-appearance=card]) .solaris-stepper__step{flex:1;text-align:center;align-items:center;flex-direction:column;padding:var(--solaris-spacing-4);border-radius:var(--solaris-radius-lg);box-shadow:var(--solaris-stepper-card-shadow);background:var(--solaris-stepper-card-background);border:.1rem solid var(--solaris-stepper-card-border-color);transition:box-shadow var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard),border-color var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}:host([data-appearance=card]) .solaris-stepper__step--active{border-color:var(--solaris-primary-base);box-shadow:var(--solaris-shadow-focus, 0 0 0 .1rem var(--solaris-primary-base))}:host([data-appearance=card]) .solaris-stepper__indicators{gap:var(--solaris-stepper-gap)}:host([data-appearance=dashed]){--solaris-stepper-gap: 0}:host([data-appearance=dashed]) .solaris-stepper__indicators{gap:var(--solaris-spacing-2)}:host([data-appearance=dashed]) .solaris-stepper__connector,:host([data-appearance=dashed]) .solaris-stepper__indicator-button,:host([data-appearance=dashed]) .solaris-stepper__indicator-static,:host([data-appearance=dashed]) .solaris-stepper__label-group,:host([data-appearance=dashed]) .solaris-stepper__status-badge{display:none}:host([data-appearance=dashed]) .solaris-stepper__step{flex:1;height:var(--solaris-spacing-2);min-width:var(--solaris-spacing-4);border-radius:var(--solaris-radius-full);background:var(--solaris-stepper-connector-color)}:host([data-appearance=dashed]) .solaris-stepper__step[data-status=completed]{background:var(--solaris-success-base)}:host([data-appearance=dashed]) .solaris-stepper__step[data-status=active]{background:var(--solaris-primary-base)}:host([data-appearance=dashed]) .solaris-stepper__step[data-status=error]{background:var(--solaris-danger-base)}:host([data-appearance=dashed]) .solaris-stepper__step--clickable{cursor:pointer}:host([data-appearance=dashed][data-orientation=vertical]) .solaris-stepper__indicators{gap:var(--solaris-spacing-2)}:host([data-appearance=dashed][data-orientation=vertical]) .solaris-stepper__step{flex:none;height:auto;min-width:auto;width:var(--solaris-spacing-2);min-height:var(--solaris-spacing-4)}:host([data-size=sm]){--solaris-stepper-gap: var(--solaris-spacing-3);--solaris-stepper-indicator-size: var(--solaris-spacing-6)}:host([data-size=sm]) .solaris-stepper__label{font-size:var(--solaris-font-size-xs)}:host([data-size=lg]){--solaris-stepper-gap: var(--solaris-spacing-6);--solaris-stepper-indicator-size: var(--solaris-spacing-10)}:host([data-size=lg]) .solaris-stepper__label{font-size:var(--solaris-font-size-md)}:host([data-density=compact]){--solaris-stepper-gap: var(--solaris-spacing-2);--solaris-stepper-indicator-size: var(--solaris-spacing-6)}:host([data-density=compact]) .solaris-stepper__label{font-size:var(--solaris-font-size-xs)}:host([data-density=compact]) .solaris-stepper__description{display:none}:host([data-density=compact]) .solaris-stepper__content-panel{padding-top:var(--solaris-spacing-3)}@media(prefers-reduced-motion:reduce){.solaris-stepper__content-panel--fade,.solaris-stepper__content-panel--slide-right,.solaris-stepper__content-panel--slide-left{animation:none}}@keyframes solaris-stepper-fade-in{0%{opacity:0}to{opacity:1}}@keyframes solaris-stepper-slide-in-right{0%{opacity:0;transform:translate(var(--solaris-spacing-4))}to{opacity:1;transform:translate(0)}}@keyframes solaris-stepper-slide-in-left{0%{opacity:0;transform:translate(calc(-1 * var(--solaris-spacing-4)))}to{opacity:1;transform:translate(0)}}\n"] }]
98
- }], ctorParameters: () => [], propDecorators: { steps: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SolarisStepComponent), { isSignal: true }] }], actions: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SolarisStepperActionsComponent), { isSignal: true }] }], activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }, { type: i0.Output, args: ["activeIndexChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], showConnectors: [{ type: i0.Input, args: [{ isSignal: true, alias: "showConnectors", required: false }] }], showStepStatus: [{ type: i0.Input, args: [{ isSignal: true, alias: "showStepStatus", required: false }] }], showStepNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showStepNumbers", required: false }] }], contentTransition: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTransition", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelKey", required: false }] }], activeIndexChange: [{ type: i0.Output, args: ["activeIndexChange"] }], stepChange: [{ type: i0.Output, args: ["stepChange"] }], stepClick: [{ type: i0.Output, args: ["stepClick"] }] } });
99
- //# sourceMappingURL=stepper.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepper.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/component/stepper.component.ts","../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/component/stepper.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,KAAK,EACL,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,MAAM,EACN,uBAAuB,EACvB,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,M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,KAAK,KAAK,IAAI,CAAC,WAAW,EAAE;YAE5B,OAAO;QAET,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAE5B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAClB,KAAK;YACL,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,eAAe,CAAC,IAA0B;QACxC,OAAO,IAAI,CAAC,cAAc,EAAE,KAAK,UAAU,CAAC;IAC9C,CAAC;wGA5EU,uBAAuB;4FAAvB,uBAAuB,2lEAPvB;YACT;gBACE,OAAO,EAAE,eAAe;gBACxB,WAAW,EAAE,uBAAuB;aACrC;SACF,gDAOgC,oBAAoB,uEACrB,8BAA8B,gEC3DhE,ynGAgFA,qkSD/CY,oBAAoB;;4FAoBnB,uBAAuB;kBAvBnC,SAAS;+BACE,iBAAiB,cACf,IAAI,WACP,CAAC,oBAAoB,CAAC,mBAGd,uBAAuB,CAAC,MAAM,QACzC;wBACJ,KAAK,EAAE,iBAAiB;wBACxB,kBAAkB,EAAE,QAAQ;wBAC5B,aAAa,EAAE,cAAc;wBAC7B,qBAAqB,EAAE,WAAW;wBAClC,wBAAwB,EAAE,cAAc;wBACxC,yBAAyB,EAAE,eAAe;wBAC1C,mBAAmB,EAAE,qBAAqB;qBAC3C,aACU;wBACT;4BACE,OAAO,EAAE,eAAe;4BACxB,WAAW,yBAAyB;yBACrC;qBACF;uHAOgC,oBAAoB,yFACrB,8BAA8B","sourcesContent":["import {\n Component,\n input,\n output,\n model,\n contentChildren,\n contentChild,\n computed,\n signal,\n inject,\n ChangeDetectionStrategy,\n effect,\n} from '@angular/core';\n\nimport { SolarisStepperActionsComponent } from '../actions/stepper-actions.component';\nimport { SolarisTranslateService } from '../../../../services/translation';\nimport type { SolarisStepperControl } from '../token/stepper.tokens';\nimport { SolarisStepComponent } from '../step/step.component';\nimport { SOLARIS_STEPPER } from '../token/stepper.tokens';\nimport { SolarisIconComponent } from '../../../icon';\n\nimport type {\n SolarisStepperOrientation,\n SolarisStepperAppearance,\n SolarisStepperSize,\n SolarisStepperDensity,\n SolarisStepperContentTransition,\n SolarisStepperChangeEvent,\n} from '../model/stepper.types';\n\n@Component({\n selector: 'solaris-stepper',\n standalone: true,\n imports: [SolarisIconComponent],\n templateUrl: './stepper.component.html',\n styleUrls: ['./stepper.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'solaris-stepper',\n '[attr.data-size]': 'size()',\n '[attr.role]': '\"navigation\"',\n '[attr.data-density]': 'density()',\n '[attr.data-appearance]': 'appearance()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n },\n providers: [\n {\n provide: SOLARIS_STEPPER,\n useExisting: SolarisStepperComponent,\n },\n ],\n})\nexport class SolarisStepperComponent implements SolarisStepperControl {\n private readonly translateService = inject(SolarisTranslateService, {\n optional: true,\n });\n\n readonly steps = contentChildren(SolarisStepComponent);\n readonly actions = contentChild(SolarisStepperActionsComponent);\n\n readonly activeIndex = model<number>(0);\n readonly orientation = input<SolarisStepperOrientation>('horizontal');\n readonly appearance = input<SolarisStepperAppearance>('default');\n readonly linear = input<boolean>(false);\n readonly size = input<SolarisStepperSize>('md');\n readonly density = input<SolarisStepperDensity>('comfortable');\n readonly showConnectors = input<boolean>(true);\n readonly showStepStatus = input<boolean>(true);\n readonly showStepNumbers = input<boolean>(true);\n readonly contentTransition = input<SolarisStepperContentTransition>('fade');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelKey = input<string | undefined>(undefined);\n\n readonly activeIndexChange = output<number>();\n readonly stepChange = output<SolarisStepperChangeEvent>();\n readonly stepClick = output<{ index: number; label: string | undefined }>();\n\n protected readonly stepTransitionDirection = signal<'next' | 'previous'>(\n 'next',\n );\n readonly previousIndex = signal<number>(0);\n\n 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 ?? 'Progress';\n });\n\n constructor() {\n effect(() => {\n const current = this.activeIndex();\n const prev = this.previousIndex();\n if (current !== prev) {\n this.activeIndexChange.emit(current);\n this.stepChange.emit({\n activeIndex: current,\n previousIndex: prev,\n });\n this.stepTransitionDirection.set(current > prev ? 'next' : 'previous');\n this.previousIndex.set(current);\n }\n });\n }\n\n goToStep(index: number): void {\n const step = this.steps()[index];\n if (!step) return;\n if (step.computedStatus() === 'disabled') return;\n if (\n this.linear() &&\n step.computedStatus() !== 'completed' &&\n index !== this.activeIndex()\n )\n return;\n\n this.activeIndex.set(index);\n\n this.stepClick.emit({\n index,\n label: step.resolvedLabel(),\n });\n }\n\n isStepClickable(step: SolarisStepComponent): boolean {\n return step.computedStatus() !== 'disabled';\n }\n}\n","<div class=\"solaris-stepper__indicators\">\n @for (step of steps(); track step; let i = $index) {\n @if (showConnectors() && i > 0) {\n <div\n class=\"solaris-stepper__connector\"\n [class.solaris-stepper__connector--active]=\"i <= activeIndex()\"\n ></div>\n }\n\n <div\n class=\"solaris-stepper__step\"\n [class.solaris-stepper__step--active]=\"i === activeIndex()\"\n [class.solaris-stepper__step--clickable]=\"isStepClickable(step)\"\n [attr.data-status]=\"step.computedStatus()\"\n >\n @if (isStepClickable(step)) {\n <button\n type=\"button\"\n class=\"solaris-stepper__indicator-button\"\n (click)=\"goToStep(i)\"\n [attr.aria-current]=\"i === activeIndex() ? 'step' : undefined\"\n [attr.aria-disabled]=\"step.computedStatus() === 'disabled'\"\n >\n @if (step.icon(); as iconName) {\n <solaris-icon [name]=\"iconName\" [decorative]=\"true\" />\n } @else if (step.showCheckIcon()) {\n <solaris-icon name=\"check\" [decorative]=\"true\" />\n } @else if (step.showErrorIcon()) {\n <solaris-icon name=\"danger\" [decorative]=\"true\" />\n } @else if (showStepNumbers()) {\n <span class=\"solaris-stepper__number\">{{ i + 1 }}</span>\n }\n </button>\n } @else {\n <span class=\"solaris-stepper__indicator-static\">\n @if (step.icon(); as iconName) {\n <solaris-icon [name]=\"iconName\" [decorative]=\"true\" />\n } @else if (step.showCheckIcon()) {\n <solaris-icon name=\"check\" [decorative]=\"true\" />\n } @else if (step.showErrorIcon()) {\n <solaris-icon name=\"danger\" [decorative]=\"true\" />\n } @else if (showStepNumbers()) {\n <span class=\"solaris-stepper__number\">{{ i + 1 }}</span>\n }\n </span>\n }\n\n <div class=\"solaris-stepper__label-group\">\n <span class=\"solaris-stepper__label\">{{ step.resolvedLabel() }}</span>\n @if (step.resolvedDescription(); as desc) {\n <span class=\"solaris-stepper__description\">{{ desc }}</span>\n }\n </div>\n\n @if (showStepStatus()) {\n <span class=\"solaris-stepper__status-badge\">\n @if (step.optional()) {\n <span class=\"solaris-stepper__optional-text\">Optional</span>\n <!-- SOLARIS_I18N_EXCEPTION: \"Optional\" is a short static label used as a visual badge. Translation support can be added in a future iteration. -->\n }\n </span>\n }\n </div>\n }\n</div>\n\n<div\n class=\"solaris-stepper__content-panel\"\n [class.solaris-stepper__content-panel--fade]=\"contentTransition() === 'fade'\"\n [class.solaris-stepper__content-panel--slide-right]=\"\n contentTransition() === 'slide' && stepTransitionDirection() === 'next'\n \"\n [class.solaris-stepper__content-panel--slide-left]=\"\n contentTransition() === 'slide' && stepTransitionDirection() === 'previous'\n \"\n>\n <ng-content select=\"solaris-step\" />\n</div>\n\n<ng-content select=\"solaris-stepper-actions\" />\n"]}
@@ -1,13 +0,0 @@
1
- import { Component, ChangeDetectionStrategy } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class SolarisStepperContentComponent {
4
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisStepperContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: SolarisStepperContentComponent, isStandalone: true, selector: "solaris-stepper-content", host: { classAttribute: "solaris-stepper-content" }, ngImport: i0, template: "<ng-content />\n", styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6
- }
7
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisStepperContentComponent, decorators: [{
8
- type: Component,
9
- args: [{ selector: 'solaris-stepper-content', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: {
10
- class: 'solaris-stepper-content',
11
- }, template: "<ng-content />\n", styles: [":host{display:block}\n"] }]
12
- }] });
13
- //# sourceMappingURL=stepper-content.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepper-content.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/content/stepper-content.component.ts","../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/content/stepper-content.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;;AAYnE,MAAM,OAAO,8BAA8B;wGAA9B,8BAA8B;4FAA9B,8BAA8B,wICZ3C,kBACA;;4FDWa,8BAA8B;kBAV1C,SAAS;+BACE,yBAAyB,cACvB,IAAI,mBAGC,uBAAuB,CAAC,MAAM,QACzC;wBACJ,KAAK,EAAE,yBAAyB;qBACjC","sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'solaris-stepper-content',\n standalone: true,\n templateUrl: './stepper-content.component.html',\n styleUrls: ['./stepper-content.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'solaris-stepper-content',\n },\n})\nexport class SolarisStepperContentComponent {}\n","<ng-content />\n"]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=stepper.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepper.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/model/stepper.types.ts"],"names":[],"mappings":"","sourcesContent":["export type SolarisStepperOrientation = 'horizontal' | 'vertical';\n\nexport type SolarisStepperAppearance = 'default' | 'card' | 'dashed';\n\nexport type SolarisStepperSize = 'sm' | 'md' | 'lg';\n\nexport type SolarisStepperDensity = 'compact' | 'comfortable';\n\nexport type SolarisStepperStatus =\n | 'pending'\n | 'active'\n | 'completed'\n | 'error'\n | 'disabled';\n\nexport type SolarisStepperContentTransition = 'none' | 'fade' | 'slide';\n\nexport type SolarisStepperActionsAlign =\n | 'start'\n | 'center'\n | 'end'\n | 'space-between';\n\nexport interface SolarisStepperChangeEvent {\n activeIndex: number;\n previousIndex: number;\n}\n\nexport interface SolarisStepClickEvent {\n index: number;\n label: string | undefined;\n}\n"]}