@educarehq/solaris-ui 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/educarehq-solaris-ui.mjs +12261 -0
- package/fesm2022/educarehq-solaris-ui.mjs.map +1 -0
- package/package.json +5 -5
- package/styles/_button.scss +510 -510
- package/styles/_dropdown-menu.scss +72 -72
- package/styles/_icon-button.scss +481 -481
- package/styles/_input.scss +255 -255
- package/styles/_popover.scss +73 -73
- package/styles/_theme.scss +46 -36
- package/styles/_toast.scss +9 -9
- package/styles/_tooltip.scss +3 -3
- package/styles/token/border/_border.scss +5 -0
- package/styles/token/border/_index.scss +1 -0
- package/styles/token/color/_dark.scss +78 -0
- package/styles/token/color/_high-contrast.scss +27 -0
- package/styles/token/color/_index.scss +3 -0
- package/styles/token/color/_light.scss +69 -0
- package/styles/token/density/_comfortable.scss +15 -0
- package/styles/token/density/_compact.scss +15 -0
- package/styles/token/density/_index.scss +2 -0
- package/styles/token/motion/_index.scss +2 -0
- package/styles/token/motion/_motion.scss +15 -0
- package/styles/token/motion/_reduced-motion.scss +15 -0
- package/styles/token/opacity/_index.scss +1 -0
- package/styles/token/opacity/_opacity.scss +4 -0
- package/styles/token/radius/_index.scss +1 -0
- package/styles/token/radius/_radius.scss +8 -0
- package/styles/token/shadow/_index.scss +1 -0
- package/styles/token/shadow/_shadow.scss +26 -0
- package/styles/token/spacing/_index.scss +1 -0
- package/styles/token/spacing/_spacing.scss +15 -0
- package/styles/token/typography/_font-family.scss +13 -0
- package/styles/token/typography/_index.scss +2 -0
- package/styles/token/typography/_typography.scss +25 -0
- package/styles/token/z-index/_index.scss +1 -0
- package/styles/token/z-index/_z-index.scss +10 -0
- package/types/educarehq-solaris-ui.d.ts +3201 -0
- package/educarehq-solaris-ui.d.ts +0 -5
- package/esm2022/educarehq-solaris-ui.js +0 -5
- package/esm2022/educarehq-solaris-ui.js.map +0 -1
- package/esm2022/index.js +0 -109
- package/esm2022/index.js.map +0 -1
- package/esm2022/lib/components/actions/button/directives/button-icon.directive.js +0 -17
- package/esm2022/lib/components/actions/button/directives/button-icon.directive.js.map +0 -1
- package/esm2022/lib/components/actions/button/directives/button.directive.js +0 -60
- package/esm2022/lib/components/actions/button/directives/button.directive.js.map +0 -1
- package/esm2022/lib/components/actions/button/index.js +0 -3
- package/esm2022/lib/components/actions/button/index.js.map +0 -1
- package/esm2022/lib/components/actions/button/model/button.types.js +0 -1
- package/esm2022/lib/components/actions/button/model/button.types.js.map +0 -1
- package/esm2022/lib/components/actions/button-group/component/button-group.component.js +0 -21
- package/esm2022/lib/components/actions/button-group/component/button-group.component.js.map +0 -1
- package/esm2022/lib/components/actions/button-group/model/button-group.types.js +0 -1
- package/esm2022/lib/components/actions/button-group/model/button-group.types.js.map +0 -1
- package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js +0 -17
- package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js.map +0 -1
- package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js +0 -58
- package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js.map +0 -1
- package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js +0 -1
- package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js.map +0 -1
- package/esm2022/lib/components/data-display/badge/component/badge.component.js +0 -24
- package/esm2022/lib/components/data-display/badge/component/badge.component.js.map +0 -1
- package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js +0 -17
- package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/badge/index.js +0 -3
- package/esm2022/lib/components/data-display/badge/index.js.map +0 -1
- package/esm2022/lib/components/data-display/badge/model/badge.types.js +0 -1
- package/esm2022/lib/components/data-display/badge/model/badge.types.js.map +0 -1
- package/esm2022/lib/components/data-display/card/component/card.component.js +0 -20
- package/esm2022/lib/components/data-display/card/component/card.component.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-content.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-content.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-description.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-description.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js +0 -19
- package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-header.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-header.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-media.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-media.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-title.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-title.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/model/card.types.js +0 -1
- package/esm2022/lib/components/data-display/card/model/card.types.js.map +0 -1
- package/esm2022/lib/components/data-display/divider/component/divider.component.js +0 -46
- package/esm2022/lib/components/data-display/divider/component/divider.component.js.map +0 -1
- package/esm2022/lib/components/data-display/divider/index.js +0 -2
- package/esm2022/lib/components/data-display/divider/index.js.map +0 -1
- package/esm2022/lib/components/data-display/divider/model/divider.types.js +0 -1
- package/esm2022/lib/components/data-display/divider/model/divider.types.js.map +0 -1
- package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js +0 -18
- package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js.map +0 -1
- package/esm2022/lib/components/feedback/alert/component/alert.component.js +0 -90
- package/esm2022/lib/components/feedback/alert/component/alert.component.js.map +0 -1
- package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js +0 -17
- package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js.map +0 -1
- package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js +0 -17
- package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js.map +0 -1
- package/esm2022/lib/components/feedback/alert/model/alert.types.js +0 -1
- package/esm2022/lib/components/feedback/alert/model/alert.types.js.map +0 -1
- package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js +0 -69
- package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js.map +0 -1
- package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js +0 -1
- package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/component/toast.component.js +0 -268
- package/esm2022/lib/components/feedback/toast/component/toast.component.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/container/toast-container.component.js +0 -24
- package/esm2022/lib/components/feedback/toast/container/toast-container.component.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/model/toast.types.js +0 -1
- package/esm2022/lib/components/feedback/toast/model/toast.types.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js +0 -17
- package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/service/toast.service.js +0 -219
- package/esm2022/lib/components/feedback/toast/service/toast.service.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/token/toast.tokens.js +0 -13
- package/esm2022/lib/components/feedback/toast/token/toast.tokens.js.map +0 -1
- package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js +0 -227
- package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js.map +0 -1
- package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js +0 -1
- package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js.map +0 -1
- package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js +0 -441
- package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js.map +0 -1
- package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js +0 -1
- package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js.map +0 -1
- package/esm2022/lib/components/forms/email-field/component/email-field.component.js +0 -215
- package/esm2022/lib/components/forms/email-field/component/email-field.component.js.map +0 -1
- package/esm2022/lib/components/forms/email-field/model/email-field.types.js +0 -1
- package/esm2022/lib/components/forms/email-field/model/email-field.types.js.map +0 -1
- package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js +0 -69
- package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/component/form-error.component.js +0 -19
- package/esm2022/lib/components/forms/form-field/component/form-error.component.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/component/form-field.component.js +0 -442
- package/esm2022/lib/components/forms/form-field/component/form-field.component.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/component/form-hint.component.js +0 -18
- package/esm2022/lib/components/forms/form-field/component/form-hint.component.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/component/form-label.component.js +0 -18
- package/esm2022/lib/components/forms/form-field/component/form-label.component.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js +0 -14
- package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js +0 -17
- package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js +0 -17
- package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/index.js +0 -8
- package/esm2022/lib/components/forms/form-field/index.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/model/form-control.contract.js +0 -3
- package/esm2022/lib/components/forms/form-field/model/form-control.contract.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/model/form-field.types.js +0 -1
- package/esm2022/lib/components/forms/form-field/model/form-field.types.js.map +0 -1
- package/esm2022/lib/components/forms/input/directives/input.directive.js +0 -148
- package/esm2022/lib/components/forms/input/directives/input.directive.js.map +0 -1
- package/esm2022/lib/components/forms/input/index.js +0 -2
- package/esm2022/lib/components/forms/input/index.js.map +0 -1
- package/esm2022/lib/components/forms/input/model/input.defaults.js +0 -27
- package/esm2022/lib/components/forms/input/model/input.defaults.js.map +0 -1
- package/esm2022/lib/components/forms/input/model/input.types.js +0 -1
- package/esm2022/lib/components/forms/input/model/input.types.js.map +0 -1
- package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js +0 -1102
- package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js.map +0 -1
- package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js +0 -1
- package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js.map +0 -1
- package/esm2022/lib/components/forms/option/component/option.component.js +0 -149
- package/esm2022/lib/components/forms/option/component/option.component.js.map +0 -1
- package/esm2022/lib/components/forms/option/directives/option-slots.directive.js +0 -58
- package/esm2022/lib/components/forms/option/directives/option-slots.directive.js.map +0 -1
- package/esm2022/lib/components/forms/option/index.js +0 -3
- package/esm2022/lib/components/forms/option/index.js.map +0 -1
- package/esm2022/lib/components/forms/option/model/option.types.js +0 -1
- package/esm2022/lib/components/forms/option/model/option.types.js.map +0 -1
- package/esm2022/lib/components/forms/option-group/component/option-group.component.js +0 -103
- package/esm2022/lib/components/forms/option-group/component/option-group.component.js.map +0 -1
- package/esm2022/lib/components/forms/option-group/index.js +0 -2
- package/esm2022/lib/components/forms/option-group/index.js.map +0 -1
- package/esm2022/lib/components/forms/option-group/model/option-group.types.js +0 -1
- package/esm2022/lib/components/forms/option-group/model/option-group.types.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/component/password-field.component.js +0 -299
- package/esm2022/lib/components/forms/password-field/component/password-field.component.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-field-constants.js +0 -5
- package/esm2022/lib/components/forms/password-field/model/password-field-constants.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-field.types.js +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-field.types.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-policy.types.js +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-policy.types.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-strength.js +0 -67
- package/esm2022/lib/components/forms/password-field/model/password-strength.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/validators/password.validator.js +0 -45
- package/esm2022/lib/components/forms/password-field/validators/password.validator.js.map +0 -1
- package/esm2022/lib/components/forms/radio/component/radio.component.js +0 -219
- package/esm2022/lib/components/forms/radio/component/radio.component.js.map +0 -1
- package/esm2022/lib/components/forms/radio/model/radio.types.js +0 -1
- package/esm2022/lib/components/forms/radio/model/radio.types.js.map +0 -1
- package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js +0 -348
- package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js.map +0 -1
- package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js +0 -3
- package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js.map +0 -1
- package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js +0 -1
- package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js.map +0 -1
- package/esm2022/lib/components/forms/select/component/select.component.js +0 -815
- package/esm2022/lib/components/forms/select/component/select.component.js.map +0 -1
- package/esm2022/lib/components/forms/select/model/select.types.js +0 -1
- package/esm2022/lib/components/forms/select/model/select.types.js.map +0 -1
- package/esm2022/lib/components/forms/switch/component/switch.component.js +0 -211
- package/esm2022/lib/components/forms/switch/component/switch.component.js.map +0 -1
- package/esm2022/lib/components/forms/switch/index.js +0 -2
- package/esm2022/lib/components/forms/switch/index.js.map +0 -1
- package/esm2022/lib/components/forms/switch/model/switch.types.js +0 -1
- package/esm2022/lib/components/forms/switch/model/switch.types.js.map +0 -1
- package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js +0 -369
- package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js.map +0 -1
- package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js +0 -1
- package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js.map +0 -1
- package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js +0 -137
- package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js.map +0 -1
- package/esm2022/lib/components/forms/textarea/model/textarea.types.js +0 -1
- package/esm2022/lib/components/forms/textarea/model/textarea.types.js.map +0 -1
- package/esm2022/lib/components/icon/component/solaris-icon.component.js +0 -20
- package/esm2022/lib/components/icon/component/solaris-icon.component.js.map +0 -1
- package/esm2022/lib/components/icon/index.js +0 -2
- package/esm2022/lib/components/icon/index.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js +0 -27
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js +0 -96
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js +0 -22
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js +0 -105
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js +0 -95
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js +0 -631
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js +0 -365
- package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/index.js +0 -8
- package/esm2022/lib/components/interaction/dropdown-menu/index.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js +0 -3
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js +0 -29
- package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js +0 -325
- package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/directives/popover.directive.js +0 -16
- package/esm2022/lib/components/interaction/popover/directives/popover.directive.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/index.js +0 -4
- package/esm2022/lib/components/interaction/popover/index.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/model/popover-position.js +0 -145
- package/esm2022/lib/components/interaction/popover/model/popover-position.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/model/popover.types.js +0 -1
- package/esm2022/lib/components/interaction/popover/model/popover.types.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/token/popover.tokens.js +0 -3
- package/esm2022/lib/components/interaction/popover/token/popover.tokens.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js +0 -23
- package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js +0 -405
- package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/index.js +0 -3
- package/esm2022/lib/components/interaction/tooltip/index.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js +0 -209
- package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js +0 -1
- package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js +0 -3
- package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js.map +0 -1
- package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js +0 -323
- package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js.map +0 -1
- package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js +0 -34
- package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js.map +0 -1
- package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js +0 -1
- package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js.map +0 -1
- package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js +0 -242
- package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js.map +0 -1
- package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js +0 -197
- package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js.map +0 -1
- package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js +0 -1
- package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js.map +0 -1
- package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js +0 -3
- package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js +0 -15
- package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/component/stepper.component.js +0 -99
- package/esm2022/lib/components/navigation/stepper/component/stepper.component.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js +0 -13
- package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/model/stepper.types.js +0 -1
- package/esm2022/lib/components/navigation/stepper/model/stepper.types.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/step/step.component.js +0 -91
- package/esm2022/lib/components/navigation/stepper/step/step.component.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js +0 -3
- package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/component/tabs.component.js +0 -169
- package/esm2022/lib/components/navigation/tabs/component/tabs.component.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/index.js +0 -5
- package/esm2022/lib/components/navigation/tabs/index.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/model/tabs.types.js +0 -1
- package/esm2022/lib/components/navigation/tabs/model/tabs.types.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/tab/tab.component.js +0 -195
- package/esm2022/lib/components/navigation/tabs/tab/tab.component.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js +0 -55
- package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js +0 -3
- package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/component/dialog.component.js +0 -49
- package/esm2022/lib/components/overlay/dialog/component/dialog.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js +0 -37
- package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js +0 -13
- package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js +0 -32
- package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js +0 -142
- package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js +0 -56
- package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js +0 -20
- package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/model/dialog.types.js +0 -1
- package/esm2022/lib/components/overlay/dialog/model/dialog.types.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js +0 -13
- package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js +0 -23
- package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/service/dialog.service.js +0 -111
- package/esm2022/lib/components/overlay/dialog/service/dialog.service.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js +0 -4
- package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js +0 -15
- package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js.map +0 -1
- package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js +0 -25
- package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js.map +0 -1
- package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js +0 -1
- package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js.map +0 -1
- package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js +0 -1
- package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js.map +0 -1
- package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js +0 -10
- package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js.map +0 -1
- package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js +0 -60
- package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js.map +0 -1
- package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js +0 -10
- package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js.map +0 -1
- package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js +0 -3
- package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/actions.js +0 -242
- package/esm2022/lib/services/icon/icons/groups/actions.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/data.js +0 -129
- package/esm2022/lib/services/icon/icons/groups/data.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/layout.js +0 -50
- package/esm2022/lib/services/icon/icons/groups/layout.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/navigation.js +0 -354
- package/esm2022/lib/services/icon/icons/groups/navigation.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/status.js +0 -70
- package/esm2022/lib/services/icon/icons/groups/status.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/theme.js +0 -49
- package/esm2022/lib/services/icon/icons/groups/theme.js.map +0 -1
- package/esm2022/lib/services/icon/icons/index.js +0 -2
- package/esm2022/lib/services/icon/icons/index.js.map +0 -1
- package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js +0 -15
- package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js.map +0 -1
- package/esm2022/lib/services/icon/index.js +0 -5
- package/esm2022/lib/services/icon/index.js.map +0 -1
- package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js +0 -1
- package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js.map +0 -1
- package/esm2022/lib/services/icon/model/solaris-icon.types.js +0 -1
- package/esm2022/lib/services/icon/model/solaris-icon.types.js.map +0 -1
- package/esm2022/lib/services/icon/provider/provide-solaris-icons.js +0 -10
- package/esm2022/lib/services/icon/provider/provide-solaris-icons.js.map +0 -1
- package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js +0 -43
- package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js.map +0 -1
- package/esm2022/lib/services/icon/token/solaris-icon.tokens.js +0 -3
- package/esm2022/lib/services/icon/token/solaris-icon.tokens.js.map +0 -1
- package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js +0 -1
- package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js.map +0 -1
- package/esm2022/lib/services/theme/model/solaris-theme.types.js +0 -1
- package/esm2022/lib/services/theme/model/solaris-theme.types.js.map +0 -1
- package/esm2022/lib/services/theme/provider/provide-solaris-theme.js +0 -10
- package/esm2022/lib/services/theme/provider/provide-solaris-theme.js.map +0 -1
- package/esm2022/lib/services/theme/service/solaris-theme.service.js +0 -22
- package/esm2022/lib/services/theme/service/solaris-theme.service.js.map +0 -1
- package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js +0 -10
- package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js.map +0 -1
- package/esm2022/lib/services/theme/token/solaris-theme.tokens.js +0 -3
- package/esm2022/lib/services/theme/token/solaris-theme.tokens.js.map +0 -1
- package/esm2022/lib/services/translation/index.js +0 -6
- package/esm2022/lib/services/translation/index.js.map +0 -1
- package/esm2022/lib/services/translation/model/solaris-locale.types.js +0 -1
- package/esm2022/lib/services/translation/model/solaris-locale.types.js.map +0 -1
- package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js +0 -1
- package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js.map +0 -1
- package/esm2022/lib/services/translation/model/solaris-translate-defaults.js +0 -96
- package/esm2022/lib/services/translation/model/solaris-translate-defaults.js.map +0 -1
- package/esm2022/lib/services/translation/model/solaris-translation.types.js +0 -1
- package/esm2022/lib/services/translation/model/solaris-translation.types.js.map +0 -1
- package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js +0 -20
- package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js.map +0 -1
- package/esm2022/lib/services/translation/provider/provide-solaris-translate.js +0 -10
- package/esm2022/lib/services/translation/provider/provide-solaris-translate.js.map +0 -1
- package/esm2022/lib/services/translation/service/solaris-translate.service.js +0 -87
- package/esm2022/lib/services/translation/service/solaris-translate.service.js.map +0 -1
- package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js +0 -32
- package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js.map +0 -1
- package/esm2022/lib/services/translation/token/solaris-translate.tokens.js +0 -3
- package/esm2022/lib/services/translation/token/solaris-translate.tokens.js.map +0 -1
- package/esm2022/lib/testing/provide-solaris-testing.js +0 -11
- package/esm2022/lib/testing/provide-solaris-testing.js.map +0 -1
- package/esm2022/lib/testing/solaris-test-utilities.js +0 -12
- package/esm2022/lib/testing/solaris-test-utilities.js.map +0 -1
- package/index.d.ts +0 -197
- package/lib/components/actions/button/directives/button-icon.directive.d.ts +0 -5
- package/lib/components/actions/button/directives/button.directive.d.ts +0 -22
- package/lib/components/actions/button/index.d.ts +0 -3
- package/lib/components/actions/button/model/button.types.d.ts +0 -5
- package/lib/components/actions/button-group/component/button-group.component.d.ts +0 -10
- package/lib/components/actions/button-group/model/button-group.types.d.ts +0 -2
- package/lib/components/actions/icon-button/directives/icon-button-badge.directive.d.ts +0 -5
- package/lib/components/actions/icon-button/directives/icon-button.directive.d.ts +0 -21
- package/lib/components/actions/icon-button/model/icon-button.types.d.ts +0 -5
- package/lib/components/data-display/badge/component/badge.component.d.ts +0 -12
- package/lib/components/data-display/badge/directives/badge-icon.directive.d.ts +0 -5
- package/lib/components/data-display/badge/index.d.ts +0 -3
- package/lib/components/data-display/badge/model/badge.types.d.ts +0 -6
- package/lib/components/data-display/card/component/card.component.d.ts +0 -10
- package/lib/components/data-display/card/directives/card-actions.directive.d.ts +0 -5
- package/lib/components/data-display/card/directives/card-content.directive.d.ts +0 -5
- package/lib/components/data-display/card/directives/card-description.directive.d.ts +0 -5
- package/lib/components/data-display/card/directives/card-footer.directive.d.ts +0 -6
- package/lib/components/data-display/card/directives/card-header.directive.d.ts +0 -5
- package/lib/components/data-display/card/directives/card-media.directive.d.ts +0 -5
- package/lib/components/data-display/card/directives/card-title.directive.d.ts +0 -5
- package/lib/components/data-display/card/model/card.types.d.ts +0 -4
- package/lib/components/data-display/divider/component/divider.component.d.ts +0 -17
- package/lib/components/data-display/divider/index.d.ts +0 -2
- package/lib/components/data-display/divider/model/divider.types.d.ts +0 -5
- package/lib/components/feedback/alert/component/alert-actions.component.d.ts +0 -5
- package/lib/components/feedback/alert/component/alert.component.d.ts +0 -26
- package/lib/components/feedback/alert/directives/alert-description.directive.d.ts +0 -5
- package/lib/components/feedback/alert/directives/alert-title.directive.d.ts +0 -5
- package/lib/components/feedback/alert/model/alert.types.d.ts +0 -5
- package/lib/components/feedback/skeleton/component/skeleton.component.d.ts +0 -17
- package/lib/components/feedback/skeleton/model/skeleton.types.d.ts +0 -5
- package/lib/components/feedback/toast/component/toast.component.d.ts +0 -62
- package/lib/components/feedback/toast/container/toast-container.component.d.ts +0 -10
- package/lib/components/feedback/toast/model/toast.types.d.ts +0 -106
- package/lib/components/feedback/toast/provider/provide-solaris-toast.d.ts +0 -3
- package/lib/components/feedback/toast/service/toast.service.d.ts +0 -36
- package/lib/components/feedback/toast/token/toast.tokens.d.ts +0 -5
- package/lib/components/forms/checkbox/component/checkbox.component.d.ts +0 -70
- package/lib/components/forms/checkbox/model/checkbox.types.d.ts +0 -5
- package/lib/components/forms/checkbox-group/component/checkbox-group.component.d.ts +0 -123
- package/lib/components/forms/checkbox-group/model/checkbox-group.types.d.ts +0 -5
- package/lib/components/forms/email-field/component/email-field.component.d.ts +0 -67
- package/lib/components/forms/email-field/model/email-field.types.d.ts +0 -6
- package/lib/components/forms/email-field/validators/email-field.validators.d.ts +0 -8
- package/lib/components/forms/form-field/component/form-error.component.d.ts +0 -5
- package/lib/components/forms/form-field/component/form-field.component.d.ts +0 -96
- package/lib/components/forms/form-field/component/form-hint.component.d.ts +0 -5
- package/lib/components/forms/form-field/component/form-label.component.d.ts +0 -5
- package/lib/components/forms/form-field/directives/form-field-trigger.directive.d.ts +0 -5
- package/lib/components/forms/form-field/directives/form-prefix.directive.d.ts +0 -5
- package/lib/components/forms/form-field/directives/form-suffix.directive.d.ts +0 -5
- package/lib/components/forms/form-field/index.d.ts +0 -8
- package/lib/components/forms/form-field/model/form-control.contract.d.ts +0 -11
- package/lib/components/forms/form-field/model/form-field.types.d.ts +0 -5
- package/lib/components/forms/input/directives/input.directive.d.ts +0 -37
- package/lib/components/forms/input/index.d.ts +0 -2
- package/lib/components/forms/input/model/input.defaults.d.ts +0 -2
- package/lib/components/forms/input/model/input.types.d.ts +0 -4
- package/lib/components/forms/multi-select/component/multi-select.component.d.ts +0 -199
- package/lib/components/forms/multi-select/model/multi-select.types.d.ts +0 -5
- package/lib/components/forms/option/component/option.component.d.ts +0 -58
- package/lib/components/forms/option/directives/option-slots.directive.d.ts +0 -21
- package/lib/components/forms/option/index.d.ts +0 -3
- package/lib/components/forms/option/model/option.types.d.ts +0 -3
- package/lib/components/forms/option-group/component/option-group.component.d.ts +0 -32
- package/lib/components/forms/option-group/index.d.ts +0 -2
- package/lib/components/forms/option-group/model/option-group.types.d.ts +0 -2
- package/lib/components/forms/password-field/component/password-field.component.d.ts +0 -81
- package/lib/components/forms/password-field/model/password-field-constants.d.ts +0 -4
- package/lib/components/forms/password-field/model/password-field.types.d.ts +0 -6
- package/lib/components/forms/password-field/model/password-policy.types.d.ts +0 -10
- package/lib/components/forms/password-field/model/password-strength.d.ts +0 -2
- package/lib/components/forms/password-field/validators/password.validator.d.ts +0 -3
- package/lib/components/forms/radio/component/radio.component.d.ts +0 -68
- package/lib/components/forms/radio/model/radio.types.d.ts +0 -4
- package/lib/components/forms/radio-group/component/radio-group.component.d.ts +0 -86
- package/lib/components/forms/radio-group/model/radio-group.token.d.ts +0 -2
- package/lib/components/forms/radio-group/model/radio-group.types.d.ts +0 -5
- package/lib/components/forms/select/component/select.component.d.ts +0 -158
- package/lib/components/forms/select/model/select.types.d.ts +0 -4
- package/lib/components/forms/switch/component/switch.component.d.ts +0 -66
- package/lib/components/forms/switch/index.d.ts +0 -2
- package/lib/components/forms/switch/model/switch.types.d.ts +0 -4
- package/lib/components/forms/switch-group/component/switch-group.component.d.ts +0 -91
- package/lib/components/forms/switch-group/model/switch-group.types.d.ts +0 -5
- package/lib/components/forms/textarea/directives/textarea.directive.d.ts +0 -37
- package/lib/components/forms/textarea/model/textarea.types.d.ts +0 -5
- package/lib/components/icon/component/solaris-icon.component.d.ts +0 -13
- package/lib/components/icon/index.d.ts +0 -1
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.d.ts +0 -10
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.d.ts +0 -28
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.d.ts +0 -7
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.d.ts +0 -21
- package/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.d.ts +0 -21
- package/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.d.ts +0 -68
- package/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.d.ts +0 -61
- package/lib/components/interaction/dropdown-menu/index.d.ts +0 -9
- package/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.d.ts +0 -8
- package/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.d.ts +0 -11
- package/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.d.ts +0 -2
- package/lib/components/interaction/popover/component/popover-panel.component.d.ts +0 -10
- package/lib/components/interaction/popover/directives/popover-trigger.directive.d.ts +0 -65
- package/lib/components/interaction/popover/directives/popover.directive.d.ts +0 -7
- package/lib/components/interaction/popover/index.d.ts +0 -4
- package/lib/components/interaction/popover/model/popover-position.d.ts +0 -4
- package/lib/components/interaction/popover/model/popover.types.d.ts +0 -7
- package/lib/components/interaction/popover/token/popover.tokens.d.ts +0 -12
- package/lib/components/interaction/tooltip/component/tooltip-panel.component.d.ts +0 -9
- package/lib/components/interaction/tooltip/directive/tooltip.directive.d.ts +0 -80
- package/lib/components/interaction/tooltip/index.d.ts +0 -3
- package/lib/components/interaction/tooltip/model/tooltip-position.d.ts +0 -5
- package/lib/components/interaction/tooltip/model/tooltip.types.d.ts +0 -22
- package/lib/components/interaction/tooltip/token/tooltip.tokens.d.ts +0 -21
- package/lib/components/navigation/editable-tabs/component/editable-tabs.component.d.ts +0 -69
- package/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.d.ts +0 -20
- package/lib/components/navigation/editable-tabs/model/editable-tabs.types.d.ts +0 -60
- package/lib/components/navigation/segmented-control/component/segmented-control.component.d.ts +0 -64
- package/lib/components/navigation/segmented-control/item/segmented-item.component.d.ts +0 -35
- package/lib/components/navigation/segmented-control/model/segmented-control.types.d.ts +0 -12
- package/lib/components/navigation/segmented-control/token/segmented-control.tokens.d.ts +0 -22
- package/lib/components/navigation/stepper/actions/stepper-actions.component.d.ts +0 -7
- package/lib/components/navigation/stepper/component/stepper.component.d.ts +0 -36
- package/lib/components/navigation/stepper/content/stepper-content.component.d.ts +0 -5
- package/lib/components/navigation/stepper/model/stepper.types.d.ts +0 -15
- package/lib/components/navigation/stepper/step/step.component.d.ts +0 -27
- package/lib/components/navigation/stepper/token/stepper.tokens.d.ts +0 -13
- package/lib/components/navigation/tabs/component/tabs.component.d.ts +0 -47
- package/lib/components/navigation/tabs/index.d.ts +0 -6
- package/lib/components/navigation/tabs/model/tabs.types.d.ts +0 -17
- package/lib/components/navigation/tabs/tab/tab.component.d.ts +0 -38
- package/lib/components/navigation/tabs/tab-panel/tab-panel.component.d.ts +0 -15
- package/lib/components/navigation/tabs/token/tabs.tokens.d.ts +0 -19
- package/lib/components/overlay/dialog/component/dialog.component.d.ts +0 -29
- package/lib/components/overlay/dialog/components/dialog-actions.component.d.ts +0 -12
- package/lib/components/overlay/dialog/components/dialog-content.component.d.ts +0 -5
- package/lib/components/overlay/dialog/components/dialog-header.component.d.ts +0 -19
- package/lib/components/overlay/dialog/container/dialog-container.component.d.ts +0 -32
- package/lib/components/overlay/dialog/flow/dialog-flow.component.d.ts +0 -19
- package/lib/components/overlay/dialog/flow/dialog-step.component.d.ts +0 -7
- package/lib/components/overlay/dialog/model/dialog.types.d.ts +0 -87
- package/lib/components/overlay/dialog/provider/provide-solaris-dialog.d.ts +0 -3
- package/lib/components/overlay/dialog/service/dialog-ref.d.ts +0 -11
- package/lib/components/overlay/dialog/service/dialog.service.d.ts +0 -20
- package/lib/components/overlay/dialog/token/dialog-data.token.d.ts +0 -4
- package/lib/components/overlay/dialog/token/dialog.tokens.d.ts +0 -4
- package/lib/services/accessibility/directives/visually-hidden.directive.d.ts +0 -5
- package/lib/services/accessibility/model/solaris-accessibility-config.interface.d.ts +0 -4
- package/lib/services/accessibility/model/solaris-accessibility.types.d.ts +0 -5
- package/lib/services/accessibility/provider/provide-solaris-accessibility.d.ts +0 -3
- package/lib/services/accessibility/service/solaris-accessibility.service.d.ts +0 -15
- package/lib/services/accessibility/testing/solaris-accessibility-testing.provider.d.ts +0 -3
- package/lib/services/accessibility/token/solaris-accessibility.tokens.d.ts +0 -3
- package/lib/services/icon/icons/groups/actions.d.ts +0 -2
- package/lib/services/icon/icons/groups/data.d.ts +0 -2
- package/lib/services/icon/icons/groups/layout.d.ts +0 -2
- package/lib/services/icon/icons/groups/navigation.d.ts +0 -2
- package/lib/services/icon/icons/groups/status.d.ts +0 -2
- package/lib/services/icon/icons/groups/theme.d.ts +0 -2
- package/lib/services/icon/icons/index.d.ts +0 -1
- package/lib/services/icon/icons/solaris-built-in-icons.d.ts +0 -2
- package/lib/services/icon/index.d.ts +0 -8
- package/lib/services/icon/model/solaris-icon-definition.interface.d.ts +0 -45
- package/lib/services/icon/model/solaris-icon.types.d.ts +0 -4
- package/lib/services/icon/provider/provide-solaris-icons.d.ts +0 -3
- package/lib/services/icon/service/solaris-icon-registry.service.d.ts +0 -12
- package/lib/services/icon/token/solaris-icon.tokens.d.ts +0 -6
- package/lib/services/theme/model/solaris-theme-config.interface.d.ts +0 -5
- package/lib/services/theme/model/solaris-theme.types.d.ts +0 -3
- package/lib/services/theme/provider/provide-solaris-theme.d.ts +0 -3
- package/lib/services/theme/service/solaris-theme.service.d.ts +0 -9
- package/lib/services/theme/testing/solaris-theme-testing.provider.d.ts +0 -3
- package/lib/services/theme/token/solaris-theme.tokens.d.ts +0 -3
- package/lib/services/translation/index.d.ts +0 -8
- package/lib/services/translation/model/solaris-locale.types.d.ts +0 -4
- package/lib/services/translation/model/solaris-translate-config.interface.d.ts +0 -8
- package/lib/services/translation/model/solaris-translate-defaults.d.ts +0 -2
- package/lib/services/translation/model/solaris-translation.types.d.ts +0 -3
- package/lib/services/translation/pipe/solaris-translate.pipe.d.ts +0 -8
- package/lib/services/translation/provider/provide-solaris-translate.d.ts +0 -3
- package/lib/services/translation/service/solaris-translate.service.d.ts +0 -15
- package/lib/services/translation/testing/solaris-translate-testing.provider.d.ts +0 -3
- package/lib/services/translation/token/solaris-translate.tokens.d.ts +0 -3
- package/lib/testing/provide-solaris-testing.d.ts +0 -10
- package/lib/testing/solaris-test-utilities.d.ts +0 -3
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { Component, input, inject, computed, ChangeDetectionStrategy, } from '@angular/core';
|
|
2
|
-
import { SolarisTranslateService } from '../../../../services/translation';
|
|
3
|
-
import { SOLARIS_STEPPER } from '../token/stepper.tokens';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class SolarisStepComponent {
|
|
6
|
-
translateService = inject(SolarisTranslateService, {
|
|
7
|
-
optional: true,
|
|
8
|
-
});
|
|
9
|
-
stepper = inject(SOLARIS_STEPPER, { optional: true });
|
|
10
|
-
error = input(false, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
11
|
-
optional = input(false, ...(ngDevMode ? [{ debugName: "optional" }] : /* istanbul ignore next */ []));
|
|
12
|
-
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
13
|
-
completed = input(false, ...(ngDevMode ? [{ debugName: "completed" }] : /* istanbul ignore next */ []));
|
|
14
|
-
icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
15
|
-
label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
16
|
-
labelKey = input(undefined, ...(ngDevMode ? [{ debugName: "labelKey" }] : /* istanbul ignore next */ []));
|
|
17
|
-
status = input('pending', ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
18
|
-
description = input(undefined, ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
|
|
19
|
-
descriptionKey = input(undefined, ...(ngDevMode ? [{ debugName: "descriptionKey" }] : /* istanbul ignore next */ []));
|
|
20
|
-
index = computed(() => {
|
|
21
|
-
if (this.stepper) {
|
|
22
|
-
return this.stepper.steps().indexOf(this);
|
|
23
|
-
}
|
|
24
|
-
return -1;
|
|
25
|
-
}, ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
26
|
-
isActive = computed(() => {
|
|
27
|
-
if (this.stepper) {
|
|
28
|
-
return this.stepper.activeIndex() === this.index();
|
|
29
|
-
}
|
|
30
|
-
return false;
|
|
31
|
-
}, ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
|
|
32
|
-
computedStatus = computed(() => {
|
|
33
|
-
if (this.disabled())
|
|
34
|
-
return 'disabled';
|
|
35
|
-
if (this.error())
|
|
36
|
-
return 'error';
|
|
37
|
-
if (this.isActive())
|
|
38
|
-
return 'active';
|
|
39
|
-
if (this.completed())
|
|
40
|
-
return 'completed';
|
|
41
|
-
return this.status();
|
|
42
|
-
}, ...(ngDevMode ? [{ debugName: "computedStatus" }] : /* istanbul ignore next */ []));
|
|
43
|
-
isInteractive = computed(() => {
|
|
44
|
-
if (this.computedStatus() === 'disabled')
|
|
45
|
-
return false;
|
|
46
|
-
if (!this.stepper)
|
|
47
|
-
return false;
|
|
48
|
-
return !(this.stepper.linear() &&
|
|
49
|
-
this.computedStatus() !== 'completed' &&
|
|
50
|
-
!this.isActive());
|
|
51
|
-
}, ...(ngDevMode ? [{ debugName: "isInteractive" }] : /* istanbul ignore next */ []));
|
|
52
|
-
showContent = computed(() => {
|
|
53
|
-
if (!this.stepper)
|
|
54
|
-
return true;
|
|
55
|
-
return this.isActive();
|
|
56
|
-
}, ...(ngDevMode ? [{ debugName: "showContent" }] : /* istanbul ignore next */ []));
|
|
57
|
-
resolvedLabel = computed(() => {
|
|
58
|
-
if (this.label())
|
|
59
|
-
return this.label();
|
|
60
|
-
const labelKey = this.labelKey();
|
|
61
|
-
if (labelKey && this.translateService) {
|
|
62
|
-
return this.translateService.translate(labelKey);
|
|
63
|
-
}
|
|
64
|
-
return labelKey ?? '';
|
|
65
|
-
}, ...(ngDevMode ? [{ debugName: "resolvedLabel" }] : /* istanbul ignore next */ []));
|
|
66
|
-
resolvedDescription = computed(() => {
|
|
67
|
-
if (this.description())
|
|
68
|
-
return this.description();
|
|
69
|
-
const descriptionKey = this.descriptionKey();
|
|
70
|
-
if (descriptionKey && this.translateService) {
|
|
71
|
-
return this.translateService.translate(descriptionKey);
|
|
72
|
-
}
|
|
73
|
-
return descriptionKey ?? '';
|
|
74
|
-
}, ...(ngDevMode ? [{ debugName: "resolvedDescription" }] : /* istanbul ignore next */ []));
|
|
75
|
-
showCheckIcon = computed(() => this.computedStatus() === 'completed' && !this.icon(), ...(ngDevMode ? [{ debugName: "showCheckIcon" }] : /* istanbul ignore next */ []));
|
|
76
|
-
showErrorIcon = computed(() => this.computedStatus() === 'error' && !this.icon(), ...(ngDevMode ? [{ debugName: "showErrorIcon" }] : /* istanbul ignore next */ []));
|
|
77
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
78
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisStepComponent, isStandalone: true, selector: "solaris-step", inputs: { error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, completed: { classPropertyName: "completed", publicName: "completed", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, descriptionKey: { classPropertyName: "descriptionKey", publicName: "descriptionKey", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "listitem" }, properties: { "attr.data-active": "isActive()", "attr.data-status": "computedStatus()", "attr.aria-current": "isActive() ? \"step\" : undefined", "attr.aria-disabled": "computedStatus() === \"disabled\"" }, classAttribute: "solaris-step" }, ngImport: i0, template: "@if (showContent()) {\n <div class=\"solaris-step__content-wrapper\">\n <ng-content select=\"solaris-stepper-content\" />\n </div>\n}\n", styles: [":host{display:block}.solaris-step__content-wrapper{padding-top:var(--solaris-spacing-4)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
79
|
-
}
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisStepComponent, decorators: [{
|
|
81
|
-
type: Component,
|
|
82
|
-
args: [{ selector: 'solaris-step', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
83
|
-
role: 'listitem',
|
|
84
|
-
class: 'solaris-step',
|
|
85
|
-
'[attr.data-active]': 'isActive()',
|
|
86
|
-
'[attr.data-status]': 'computedStatus()',
|
|
87
|
-
'[attr.aria-current]': 'isActive() ? "step" : undefined',
|
|
88
|
-
'[attr.aria-disabled]': 'computedStatus() === "disabled"',
|
|
89
|
-
}, template: "@if (showContent()) {\n <div class=\"solaris-step__content-wrapper\">\n <ng-content select=\"solaris-stepper-content\" />\n </div>\n}\n", styles: [":host{display:block}.solaris-step__content-wrapper{padding-top:var(--solaris-spacing-4)}\n"] }]
|
|
90
|
-
}], propDecorators: { error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], completed: [{ type: i0.Input, args: [{ isSignal: true, alias: "completed", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelKey", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], descriptionKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "descriptionKey", required: false }] }] } });
|
|
91
|
-
//# sourceMappingURL=step.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"step.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/step/step.component.ts","../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/step/step.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,QAAQ,EACR,uBAAuB,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C,SAAS,CAAC,QAAQ,CAAC,CAAC;QACnD,CAAC;QACD,OAAO,QAAQ,IAAI,EAAE,CAAC;IACxB,CAAC,oFAAC,CAAC;IAEM,mBAAmB,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC3C,IAAI,IAAI,CAAC,WAAW,EAAE;YAAE,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;QAClD,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC7C,IAAI,cAAc,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACzD,CAAC;QACD,OAAO,cAAc,IAAI,EAAE,CAAC;IAC9B,CAAC,0FAAC,CAAC;IAEM,aAAa,GAAG,QAAQ,CAC/B,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,WAAW,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,oFAC5D,CAAC;IACO,aAAa,GAAG,QAAQ,CAC/B,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,oFACxD,CAAC;wGA7ES,oBAAoB;4FAApB,oBAAoB,qnDC5BjC,8IAKA;;4FDuBa,oBAAoB;kBAhBhC,SAAS;+BACE,cAAc,cACZ,IAAI,WACP,EAAE,mBAGM,uBAAuB,CAAC,MAAM,QACzC;wBACJ,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE,cAAc;wBACrB,oBAAoB,EAAE,YAAY;wBAClC,oBAAoB,EAAE,kBAAkB;wBACxC,qBAAqB,EAAE,iCAAiC;wBACxD,sBAAsB,EAAE,iCAAiC;qBAC1D","sourcesContent":["import {\n Component,\n input,\n inject,\n computed,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { SolarisTranslateService } from '../../../../services/translation';\nimport type { SolarisStepperStatus } from '../model/stepper.types';\nimport { SOLARIS_STEPPER } from '../token/stepper.tokens';\n\n@Component({\n selector: 'solaris-step',\n standalone: true,\n imports: [],\n templateUrl: './step.component.html',\n styleUrls: ['./step.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'listitem',\n class: 'solaris-step',\n '[attr.data-active]': 'isActive()',\n '[attr.data-status]': 'computedStatus()',\n '[attr.aria-current]': 'isActive() ? \"step\" : undefined',\n '[attr.aria-disabled]': 'computedStatus() === \"disabled\"',\n },\n})\nexport class SolarisStepComponent {\n private readonly translateService = inject(SolarisTranslateService, {\n optional: true,\n });\n readonly stepper = inject(SOLARIS_STEPPER, { optional: true });\n\n readonly error = input<boolean>(false);\n readonly optional = input<boolean>(false);\n readonly disabled = input<boolean>(false);\n readonly completed = input<boolean>(false);\n readonly icon = input<string | undefined>(undefined);\n readonly label = input<string | undefined>(undefined);\n readonly labelKey = input<string | undefined>(undefined);\n readonly status = input<SolarisStepperStatus>('pending');\n readonly description = input<string | undefined>(undefined);\n readonly descriptionKey = input<string | undefined>(undefined);\n\n readonly index = computed(() => {\n if (this.stepper) {\n return this.stepper.steps().indexOf(this);\n }\n return -1;\n });\n\n readonly isActive = computed(() => {\n if (this.stepper) {\n return this.stepper.activeIndex() === this.index();\n }\n return false;\n });\n\n readonly computedStatus = computed<SolarisStepperStatus>(() => {\n if (this.disabled()) return 'disabled';\n if (this.error()) return 'error';\n if (this.isActive()) return 'active';\n if (this.completed()) return 'completed';\n return this.status();\n });\n\n readonly isInteractive = computed(() => {\n if (this.computedStatus() === 'disabled') return false;\n if (!this.stepper) return false;\n return !(\n this.stepper.linear() &&\n this.computedStatus() !== 'completed' &&\n !this.isActive()\n );\n });\n\n readonly showContent = computed(() => {\n if (!this.stepper) return true;\n return this.isActive();\n });\n\n readonly resolvedLabel = computed(() => {\n if (this.label()) return this.label();\n const labelKey = this.labelKey();\n if (labelKey && this.translateService) {\n return this.translateService.translate(labelKey);\n }\n return labelKey ?? '';\n });\n\n readonly resolvedDescription = computed(() => {\n if (this.description()) return this.description();\n const descriptionKey = this.descriptionKey();\n if (descriptionKey && this.translateService) {\n return this.translateService.translate(descriptionKey);\n }\n return descriptionKey ?? '';\n });\n\n readonly showCheckIcon = computed(\n () => this.computedStatus() === 'completed' && !this.icon(),\n );\n readonly showErrorIcon = computed(\n () => this.computedStatus() === 'error' && !this.icon(),\n );\n}\n","@if (showContent()) {\n <div class=\"solaris-step__content-wrapper\">\n <ng-content select=\"solaris-stepper-content\" />\n </div>\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.tokens.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/stepper/token/stepper.tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAoB/C,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,cAAc,CAC/C,gBAAgB,CACjB,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\n\nimport type {\n SolarisStepperOrientation,\n SolarisStepperAppearance,\n SolarisStepperSize,\n SolarisStepperDensity,\n} from '../model/stepper.types';\n\nexport interface SolarisStepperControl {\n activeIndex: () => number;\n steps: () => ReadonlyArray<unknown>;\n orientation: () => SolarisStepperOrientation;\n appearance: () => SolarisStepperAppearance;\n linear: () => boolean;\n size: () => SolarisStepperSize;\n density: () => SolarisStepperDensity;\n goToStep: (index: number) => void;\n}\n\nexport const SOLARIS_STEPPER = new InjectionToken<SolarisStepperControl>(\n 'SolarisStepper',\n);\n"]}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { Component, input, output, model, contentChildren, computed, signal, inject, ChangeDetectionStrategy, effect, ElementRef, NgZone, } from '@angular/core';
|
|
2
|
-
import { SolarisTranslateService } from '../../../../services/translation';
|
|
3
|
-
import { SolarisTabComponent } from '../tab/tab.component';
|
|
4
|
-
import { SolarisTabPanelComponent } from '../tab-panel/tab-panel.component';
|
|
5
|
-
import { SOLARIS_TABS } from '../token/tabs.tokens';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
let nextInstanceId = 0;
|
|
8
|
-
export class SolarisTabsComponent {
|
|
9
|
-
translateService = inject(SolarisTranslateService, {
|
|
10
|
-
optional: true,
|
|
11
|
-
});
|
|
12
|
-
elementRef = inject(ElementRef);
|
|
13
|
-
ngZone = inject(NgZone);
|
|
14
|
-
tabs = contentChildren(SolarisTabComponent, ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
|
|
15
|
-
panels = contentChildren(SolarisTabPanelComponent, ...(ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []));
|
|
16
|
-
value = model(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
17
|
-
defaultValue = input(undefined, ...(ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []));
|
|
18
|
-
orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
19
|
-
appearance = input('underline', ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
|
|
20
|
-
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
21
|
-
density = input('comfortable', ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
|
|
22
|
-
activationMode = input('automatic', ...(ngDevMode ? [{ debugName: "activationMode" }] : /* istanbul ignore next */ []));
|
|
23
|
-
contentTransition = input('fade', ...(ngDevMode ? [{ debugName: "contentTransition" }] : /* istanbul ignore next */ []));
|
|
24
|
-
fullWidth = input(false, ...(ngDevMode ? [{ debugName: "fullWidth" }] : /* istanbul ignore next */ []));
|
|
25
|
-
fitContent = input(true, ...(ngDevMode ? [{ debugName: "fitContent" }] : /* istanbul ignore next */ []));
|
|
26
|
-
scrollable = input(true, ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
|
|
27
|
-
showIndicator = input(true, ...(ngDevMode ? [{ debugName: "showIndicator" }] : /* istanbul ignore next */ []));
|
|
28
|
-
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
29
|
-
ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
30
|
-
ariaLabelKey = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabelKey" }] : /* istanbul ignore next */ []));
|
|
31
|
-
valueChange = output();
|
|
32
|
-
tabChange = output();
|
|
33
|
-
tabClick = output();
|
|
34
|
-
previousValue = signal(undefined, ...(ngDevMode ? [{ debugName: "previousValue" }] : /* istanbul ignore next */ []));
|
|
35
|
-
slideDirection = signal('right', ...(ngDevMode ? [{ debugName: "slideDirection" }] : /* istanbul ignore next */ []));
|
|
36
|
-
instanceId = `solaris-tabs-${nextInstanceId++}`;
|
|
37
|
-
indicatorReady = signal(false, ...(ngDevMode ? [{ debugName: "indicatorReady" }] : /* istanbul ignore next */ []));
|
|
38
|
-
indicatorTransformX = signal('translateX(0)', ...(ngDevMode ? [{ debugName: "indicatorTransformX" }] : /* istanbul ignore next */ []));
|
|
39
|
-
indicatorTransformY = signal('translateY(0)', ...(ngDevMode ? [{ debugName: "indicatorTransformY" }] : /* istanbul ignore next */ []));
|
|
40
|
-
indicatorSize = signal('0', ...(ngDevMode ? [{ debugName: "indicatorSize" }] : /* istanbul ignore next */ []));
|
|
41
|
-
resolvedAriaLabel = computed(() => {
|
|
42
|
-
if (this.ariaLabel())
|
|
43
|
-
return this.ariaLabel();
|
|
44
|
-
const ariaLabelKey = this.ariaLabelKey();
|
|
45
|
-
if (ariaLabelKey && this.translateService) {
|
|
46
|
-
return this.translateService.translate(ariaLabelKey);
|
|
47
|
-
}
|
|
48
|
-
return ariaLabelKey ?? 'Tabs';
|
|
49
|
-
}, ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
|
|
50
|
-
constructor() {
|
|
51
|
-
effect(() => {
|
|
52
|
-
const defaultValue = this.defaultValue();
|
|
53
|
-
const currentValue = this.value();
|
|
54
|
-
if (currentValue === undefined && defaultValue !== undefined) {
|
|
55
|
-
this.value.set(defaultValue);
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
effect(() => {
|
|
59
|
-
const current = this.value();
|
|
60
|
-
const previous = this.previousValue();
|
|
61
|
-
if (current !== previous && previous !== undefined) {
|
|
62
|
-
this.valueChange.emit(current);
|
|
63
|
-
this.tabChange.emit({
|
|
64
|
-
value: current,
|
|
65
|
-
previousValue: previous,
|
|
66
|
-
});
|
|
67
|
-
this.updateSlideDirection(current, previous);
|
|
68
|
-
}
|
|
69
|
-
this.previousValue.set(current);
|
|
70
|
-
});
|
|
71
|
-
this.ngZone.runOutsideAngular(() => {
|
|
72
|
-
setTimeout(() => this.measureIndicator());
|
|
73
|
-
});
|
|
74
|
-
effect(() => {
|
|
75
|
-
this.value();
|
|
76
|
-
this.appearance();
|
|
77
|
-
this.orientation();
|
|
78
|
-
this.tabs();
|
|
79
|
-
this.ngZone.runOutsideAngular(() => {
|
|
80
|
-
setTimeout(() => this.measureIndicator());
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
activateTab(tab) {
|
|
85
|
-
if (tab.isComputedDisabled())
|
|
86
|
-
return;
|
|
87
|
-
if (this.disabled())
|
|
88
|
-
return;
|
|
89
|
-
this.value.set(tab.value());
|
|
90
|
-
const label = tab.resolvedLabel();
|
|
91
|
-
this.tabClick.emit({
|
|
92
|
-
value: tab.value(),
|
|
93
|
-
label,
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
focusTab(tab) {
|
|
97
|
-
// SECURITY_EXCEPTION: nativeElement required to query tab elements for programmatic focus. Read-only, SSR-safe.
|
|
98
|
-
const nativeElement = this.elementRef.nativeElement;
|
|
99
|
-
const tabElements = nativeElement.querySelectorAll('solaris-tab');
|
|
100
|
-
const tabArray = this.tabs();
|
|
101
|
-
const index = tabArray.indexOf(tab);
|
|
102
|
-
if (index >= 0 && tabElements[index]) {
|
|
103
|
-
tabElements[index].focus();
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
generateTabId(value) {
|
|
107
|
-
return `${this.instanceId}-tab-${value}`;
|
|
108
|
-
}
|
|
109
|
-
generatePanelId(value) {
|
|
110
|
-
return `${this.instanceId}-panel-${value}`;
|
|
111
|
-
}
|
|
112
|
-
measureIndicator() {
|
|
113
|
-
// SECURITY_EXCEPTION: nativeElement required to query tablist for indicator measurement. Read-only, SSR-safe.
|
|
114
|
-
const nativeEl = this.elementRef.nativeElement;
|
|
115
|
-
const tablist = nativeEl.querySelector('.solaris-tabs__tablist');
|
|
116
|
-
if (!tablist)
|
|
117
|
-
return;
|
|
118
|
-
const activeTab = tablist.querySelector('solaris-tab[data-active="true"]');
|
|
119
|
-
if (!activeTab)
|
|
120
|
-
return;
|
|
121
|
-
const isVertical = this.orientation() === 'vertical';
|
|
122
|
-
if (isVertical) {
|
|
123
|
-
this.indicatorTransformY.set(`translateY(${activeTab.offsetTop}px)`);
|
|
124
|
-
this.indicatorSize.set(`${activeTab.offsetHeight}px`);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
this.indicatorTransformX.set(`translateX(${activeTab.offsetLeft}px)`);
|
|
128
|
-
this.indicatorSize.set(`${activeTab.offsetWidth}px`);
|
|
129
|
-
}
|
|
130
|
-
if (!this.indicatorReady()) {
|
|
131
|
-
setTimeout(() => this.indicatorReady.set(true));
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
updateSlideDirection(current, previous) {
|
|
135
|
-
const tabs = this.tabs();
|
|
136
|
-
const currentIndex = tabs.findIndex((t) => t.value() === current);
|
|
137
|
-
const previousIndex = tabs.findIndex((t) => t.value() === previous);
|
|
138
|
-
if (currentIndex >= 0 && previousIndex >= 0) {
|
|
139
|
-
this.slideDirection.set(currentIndex > previousIndex ? 'right' : 'left');
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
143
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisTabsComponent, isStandalone: true, selector: "solaris-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, activationMode: { classPropertyName: "activationMode", publicName: "activationMode", isSignal: true, isRequired: false, transformFunction: null }, contentTransition: { classPropertyName: "contentTransition", publicName: "contentTransition", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, fitContent: { classPropertyName: "fitContent", publicName: "fitContent", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelKey: { classPropertyName: "ariaLabelKey", publicName: "ariaLabelKey", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChange: "valueChange", tabChange: "tabChange", tabClick: "tabClick" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-appearance": "appearance()", "attr.data-size": "size()", "attr.data-density": "density()", "attr.data-full-width": "fullWidth()", "attr.data-scrollable": "scrollable()", "attr.data-show-indicator": "showIndicator()", "attr.data-content-transition": "contentTransition()" }, classAttribute: "solaris-tabs" }, providers: [
|
|
144
|
-
{
|
|
145
|
-
provide: SOLARIS_TABS,
|
|
146
|
-
useExisting: SolarisTabsComponent,
|
|
147
|
-
},
|
|
148
|
-
], queries: [{ propertyName: "tabs", predicate: SolarisTabComponent, isSignal: true }, { propertyName: "panels", predicate: SolarisTabPanelComponent, isSignal: true }], ngImport: i0, template: "<div\n class=\"solaris-tabs__tablist\"\n #tablist\n role=\"tablist\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n>\n <ng-content select=\"solaris-tab\" />\n\n @if (showIndicator() && appearance() === 'underline') {\n <div\n class=\"solaris-tabs__indicator\"\n [class.solaris-tabs__indicator--animate]=\"indicatorReady()\"\n [class.solaris-tabs__indicator--vertical]=\"orientation() === 'vertical'\"\n [style.transform]=\"\n orientation() === 'vertical'\n ? indicatorTransformY()\n : indicatorTransformX()\n \"\n [style.width]=\"orientation() === 'vertical' ? '' : indicatorSize()\"\n [style.height]=\"orientation() === 'vertical' ? indicatorSize() : ''\"\n ></div>\n }\n</div>\n\n@if (panels().length > 0) {\n <div\n class=\"solaris-tabs__panels\"\n [class.solaris-tabs__panels--fade]=\"contentTransition() === 'fade'\"\n [class.solaris-tabs__panels--slide]=\"contentTransition() === 'slide'\"\n [class.solaris-tabs__panels--slide-from-right]=\"\n contentTransition() === 'slide' && slideDirection() === 'right'\n \"\n [class.solaris-tabs__panels--slide-from-left]=\"\n contentTransition() === 'slide' && slideDirection() === 'left'\n \"\n >\n <ng-content select=\"solaris-tab-panel\" />\n </div>\n}\n", styles: [":host{--solaris-tabs-gap: 0;--solaris-tabs-padding: 0;--solaris-tabs-tab-height: auto;--solaris-tabs-badge-gap: var(--solaris-spacing-2);--solaris-tabs-tab-radius: var(--solaris-radius-sm);--solaris-tabs-tab-color: var(--solaris-text-default);--solaris-tabs-tab-padding-y: var(--solaris-spacing-2);--solaris-tabs-tab-padding-x: var(--solaris-spacing-3);--solaris-tabs-panel-padding: var(--solaris-spacing-4);--solaris-tabs-border-color: var(--solaris-border-subtle);--solaris-tabs-indicator-color: var(--solaris-primary-base);--solaris-tabs-tab-active-color: var(--solaris-primary-text);--solaris-tabs-indicator-size: var(--solaris-border-width-md);--solaris-tabs-tab-hover-background: var(--solaris-surface-subtle);--solaris-tabs-tab-active-background: var(--solaris-primary-surface);width:100%;display:block}:host([data-orientation=vertical]){display:flex;gap:var(--solaris-spacing-4)}.solaris-tabs__tablist{display:flex;position:relative;align-items:stretch;gap:var(--solaris-tabs-gap)}:host([data-orientation=horizontal]) .solaris-tabs__tablist{overflow-x:auto;overflow-y:hidden;flex-direction:row;scrollbar-width:thin;border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-orientation=vertical]) .solaris-tabs__tablist{flex-shrink:0;flex-direction:column;border-right:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-scrollable=false][data-orientation=horizontal]) .solaris-tabs__tablist{overflow:visible}:host([data-full-width=true][data-orientation=horizontal]) .solaris-tabs__tablist{display:flex}:host([data-appearance=pills][data-orientation=horizontal]) .solaris-tabs__tablist{border-bottom:none;gap:var(--solaris-spacing-1)}:host([data-appearance=underline][data-orientation=horizontal]) .solaris-tabs__tablist{border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-appearance=enclosed][data-orientation=horizontal]) .solaris-tabs__tablist{margin-bottom:0;border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-appearance=enclosed][data-orientation=horizontal]) .solaris-tabs__panels{border:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color);border-top:none;border-radius:0 0 var(--solaris-radius-sm) var(--solaris-radius-sm)}.solaris-tabs__panels{position:relative;overflow:hidden}:host([data-orientation=vertical]) .solaris-tabs__panels{flex:1;min-width:0}.solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true]{animation:solaris-tabs-fade-in var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:solaris-tabs-slide-in-right var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-tabs__panels--slide-from-left>::ng-deep solaris-tab-panel[data-active=true]{animation-name:solaris-tabs-slide-in-left}@keyframes solaris-tabs-fade-in{0%{opacity:0}to{opacity:1}}@keyframes solaris-tabs-slide-in-right{0%{opacity:0;transform:translate(var(--solaris-spacing-4))}to{opacity:1;transform:translate(0)}}@keyframes solaris-tabs-slide-in-left{0%{opacity:0;transform:translate(calc(-1 * var(--solaris-spacing-4)))}to{opacity:1;transform:translate(0)}}.solaris-tabs__indicator{position:absolute;bottom:0;left:0;height:var(--solaris-tabs-indicator-size);background:var(--solaris-tabs-indicator-color);border-radius:var(--solaris-radius-sm) var(--solaris-radius-sm) 0 0;transition:none;pointer-events:none;z-index:1}.solaris-tabs__indicator--vertical{inset:0 0 auto auto;width:var(--solaris-tabs-indicator-size);height:0;border-radius:var(--solaris-radius-sm) 0 0 var(--solaris-radius-sm)}.solaris-tabs__indicator--animate{transition:transform var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),width var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),height var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}@media(prefers-reduced-motion:reduce){.solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true],.solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:none}.solaris-tabs__indicator{transition:none}}:host-context([data-reduced-motion=true]) .solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true],:host-context([data-reduced-motion=true]) .solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:none}:host-context([data-reduced-motion=true]) .solaris-tabs__indicator{transition:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
149
|
-
}
|
|
150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTabsComponent, decorators: [{
|
|
151
|
-
type: Component,
|
|
152
|
-
args: [{ selector: 'solaris-tabs', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
153
|
-
class: 'solaris-tabs',
|
|
154
|
-
'[attr.data-orientation]': 'orientation()',
|
|
155
|
-
'[attr.data-appearance]': 'appearance()',
|
|
156
|
-
'[attr.data-size]': 'size()',
|
|
157
|
-
'[attr.data-density]': 'density()',
|
|
158
|
-
'[attr.data-full-width]': 'fullWidth()',
|
|
159
|
-
'[attr.data-scrollable]': 'scrollable()',
|
|
160
|
-
'[attr.data-show-indicator]': 'showIndicator()',
|
|
161
|
-
'[attr.data-content-transition]': 'contentTransition()',
|
|
162
|
-
}, providers: [
|
|
163
|
-
{
|
|
164
|
-
provide: SOLARIS_TABS,
|
|
165
|
-
useExisting: SolarisTabsComponent,
|
|
166
|
-
},
|
|
167
|
-
], template: "<div\n class=\"solaris-tabs__tablist\"\n #tablist\n role=\"tablist\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n>\n <ng-content select=\"solaris-tab\" />\n\n @if (showIndicator() && appearance() === 'underline') {\n <div\n class=\"solaris-tabs__indicator\"\n [class.solaris-tabs__indicator--animate]=\"indicatorReady()\"\n [class.solaris-tabs__indicator--vertical]=\"orientation() === 'vertical'\"\n [style.transform]=\"\n orientation() === 'vertical'\n ? indicatorTransformY()\n : indicatorTransformX()\n \"\n [style.width]=\"orientation() === 'vertical' ? '' : indicatorSize()\"\n [style.height]=\"orientation() === 'vertical' ? indicatorSize() : ''\"\n ></div>\n }\n</div>\n\n@if (panels().length > 0) {\n <div\n class=\"solaris-tabs__panels\"\n [class.solaris-tabs__panels--fade]=\"contentTransition() === 'fade'\"\n [class.solaris-tabs__panels--slide]=\"contentTransition() === 'slide'\"\n [class.solaris-tabs__panels--slide-from-right]=\"\n contentTransition() === 'slide' && slideDirection() === 'right'\n \"\n [class.solaris-tabs__panels--slide-from-left]=\"\n contentTransition() === 'slide' && slideDirection() === 'left'\n \"\n >\n <ng-content select=\"solaris-tab-panel\" />\n </div>\n}\n", styles: [":host{--solaris-tabs-gap: 0;--solaris-tabs-padding: 0;--solaris-tabs-tab-height: auto;--solaris-tabs-badge-gap: var(--solaris-spacing-2);--solaris-tabs-tab-radius: var(--solaris-radius-sm);--solaris-tabs-tab-color: var(--solaris-text-default);--solaris-tabs-tab-padding-y: var(--solaris-spacing-2);--solaris-tabs-tab-padding-x: var(--solaris-spacing-3);--solaris-tabs-panel-padding: var(--solaris-spacing-4);--solaris-tabs-border-color: var(--solaris-border-subtle);--solaris-tabs-indicator-color: var(--solaris-primary-base);--solaris-tabs-tab-active-color: var(--solaris-primary-text);--solaris-tabs-indicator-size: var(--solaris-border-width-md);--solaris-tabs-tab-hover-background: var(--solaris-surface-subtle);--solaris-tabs-tab-active-background: var(--solaris-primary-surface);width:100%;display:block}:host([data-orientation=vertical]){display:flex;gap:var(--solaris-spacing-4)}.solaris-tabs__tablist{display:flex;position:relative;align-items:stretch;gap:var(--solaris-tabs-gap)}:host([data-orientation=horizontal]) .solaris-tabs__tablist{overflow-x:auto;overflow-y:hidden;flex-direction:row;scrollbar-width:thin;border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-orientation=vertical]) .solaris-tabs__tablist{flex-shrink:0;flex-direction:column;border-right:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-scrollable=false][data-orientation=horizontal]) .solaris-tabs__tablist{overflow:visible}:host([data-full-width=true][data-orientation=horizontal]) .solaris-tabs__tablist{display:flex}:host([data-appearance=pills][data-orientation=horizontal]) .solaris-tabs__tablist{border-bottom:none;gap:var(--solaris-spacing-1)}:host([data-appearance=underline][data-orientation=horizontal]) .solaris-tabs__tablist{border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-appearance=enclosed][data-orientation=horizontal]) .solaris-tabs__tablist{margin-bottom:0;border-bottom:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color)}:host([data-appearance=enclosed][data-orientation=horizontal]) .solaris-tabs__panels{border:var(--solaris-border-width-sm) solid var(--solaris-tabs-border-color);border-top:none;border-radius:0 0 var(--solaris-radius-sm) var(--solaris-radius-sm)}.solaris-tabs__panels{position:relative;overflow:hidden}:host([data-orientation=vertical]) .solaris-tabs__panels{flex:1;min-width:0}.solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true]{animation:solaris-tabs-fade-in var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:solaris-tabs-slide-in-right var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-tabs__panels--slide-from-left>::ng-deep solaris-tab-panel[data-active=true]{animation-name:solaris-tabs-slide-in-left}@keyframes solaris-tabs-fade-in{0%{opacity:0}to{opacity:1}}@keyframes solaris-tabs-slide-in-right{0%{opacity:0;transform:translate(var(--solaris-spacing-4))}to{opacity:1;transform:translate(0)}}@keyframes solaris-tabs-slide-in-left{0%{opacity:0;transform:translate(calc(-1 * var(--solaris-spacing-4)))}to{opacity:1;transform:translate(0)}}.solaris-tabs__indicator{position:absolute;bottom:0;left:0;height:var(--solaris-tabs-indicator-size);background:var(--solaris-tabs-indicator-color);border-radius:var(--solaris-radius-sm) var(--solaris-radius-sm) 0 0;transition:none;pointer-events:none;z-index:1}.solaris-tabs__indicator--vertical{inset:0 0 auto auto;width:var(--solaris-tabs-indicator-size);height:0;border-radius:var(--solaris-radius-sm) 0 0 var(--solaris-radius-sm)}.solaris-tabs__indicator--animate{transition:transform var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),width var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),height var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}@media(prefers-reduced-motion:reduce){.solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true],.solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:none}.solaris-tabs__indicator{transition:none}}:host-context([data-reduced-motion=true]) .solaris-tabs__panels--fade>::ng-deep solaris-tab-panel[data-active=true],:host-context([data-reduced-motion=true]) .solaris-tabs__panels--slide>::ng-deep solaris-tab-panel[data-active=true]{animation:none}:host-context([data-reduced-motion=true]) .solaris-tabs__indicator{transition:none}\n"] }]
|
|
168
|
-
}], ctorParameters: () => [], propDecorators: { tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SolarisTabComponent), { isSignal: true }] }], panels: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SolarisTabPanelComponent), { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], activationMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "activationMode", required: false }] }], contentTransition: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTransition", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], fitContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "fitContent", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], showIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIndicator", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelKey", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], tabChange: [{ type: i0.Output, args: ["tabChange"] }], tabClick: [{ type: i0.Output, args: ["tabClick"] }] } });
|
|
169
|
-
//# sourceMappingURL=tabs.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/component/tabs.component.ts","../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/component/tabs.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,KAAK,EACL,eAAe,EACf,QAAQ,EACR,MAAM,EACN,MAAM,EACN,uBAAuB,EACvB,MAAM,EACN,UAAU,EACV,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAA2B,MAAM,sBAAsB,CAAC;;AAa7E,IAAI,cAAc,GAAG,CAAC,CAAC;AA2BvB,MAAM,OAAO,oBAAoB;IACd,gBAAgB,GAAG,MAAM,CAAC,uBAAuB,EAAE;QAClE,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;IACc,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAChC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAEhC,IAAI,GAAG,eAAe,CAAC,mBAAmB,2EAAC,CAAC;IAC5C,MAAM,GAAG,eAAe,CAAC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B,wBAAwB","sourcesContent":["import {\n Component,\n input,\n output,\n model,\n contentChildren,\n computed,\n signal,\n inject,\n ChangeDetectionStrategy,\n effect,\n ElementRef,\n NgZone,\n} from '@angular/core';\n\nimport { SolarisTranslateService } from '../../../../services/translation';\nimport { SolarisTabComponent } from '../tab/tab.component';\nimport { SolarisTabPanelComponent } from '../tab-panel/tab-panel.component';\nimport { SOLARIS_TABS, type SolarisTabsControl } from '../token/tabs.tokens';\n\nimport type {\n SolarisTabsOrientation,\n SolarisTabsAppearance,\n SolarisTabsSize,\n SolarisTabsDensity,\n SolarisTabsActivationMode,\n SolarisTabsContentTransition,\n SolarisTabsChangeEvent,\n SolarisTabClickEvent,\n} from '../model/tabs.types';\n\nlet nextInstanceId = 0;\n\n@Component({\n selector: 'solaris-tabs',\n standalone: true,\n imports: [],\n templateUrl: './tabs.component.html',\n styleUrls: ['./tabs.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'solaris-tabs',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-appearance]': 'appearance()',\n '[attr.data-size]': 'size()',\n '[attr.data-density]': 'density()',\n '[attr.data-full-width]': 'fullWidth()',\n '[attr.data-scrollable]': 'scrollable()',\n '[attr.data-show-indicator]': 'showIndicator()',\n '[attr.data-content-transition]': 'contentTransition()',\n },\n providers: [\n {\n provide: SOLARIS_TABS,\n useExisting: SolarisTabsComponent,\n },\n ],\n})\nexport class SolarisTabsComponent implements SolarisTabsControl {\n private readonly translateService = inject(SolarisTranslateService, {\n optional: true,\n });\n private readonly elementRef = inject(ElementRef);\n private readonly ngZone = inject(NgZone);\n\n readonly tabs = contentChildren(SolarisTabComponent);\n readonly panels = contentChildren(SolarisTabPanelComponent);\n\n readonly value = model<string | number | undefined>(undefined);\n readonly defaultValue = input<string | number | undefined>(undefined);\n readonly orientation = input<SolarisTabsOrientation>('horizontal');\n readonly appearance = input<SolarisTabsAppearance>('underline');\n readonly size = input<SolarisTabsSize>('md');\n readonly density = input<SolarisTabsDensity>('comfortable');\n readonly activationMode = input<SolarisTabsActivationMode>('automatic');\n readonly contentTransition = input<SolarisTabsContentTransition>('fade');\n readonly fullWidth = input<boolean>(false);\n readonly fitContent = input<boolean>(true);\n readonly scrollable = input<boolean>(true);\n readonly showIndicator = input<boolean>(true);\n readonly disabled = input<boolean>(false);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelKey = input<string | undefined>(undefined);\n\n readonly valueChange = output<string | number | undefined>();\n readonly tabChange = output<SolarisTabsChangeEvent>();\n readonly tabClick = output<SolarisTabClickEvent>();\n\n protected readonly previousValue = signal<string | number | undefined>(\n undefined,\n );\n protected readonly slideDirection = signal<'left' | 'right'>('right');\n\n protected readonly instanceId = `solaris-tabs-${nextInstanceId++}`;\n\n protected readonly indicatorReady = signal(false);\n protected readonly indicatorTransformX = signal('translateX(0)');\n protected readonly indicatorTransformY = signal('translateY(0)');\n protected readonly indicatorSize = signal('0');\n\n protected readonly resolvedAriaLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel();\n const ariaLabelKey = this.ariaLabelKey();\n if (ariaLabelKey && this.translateService) {\n return this.translateService.translate(ariaLabelKey);\n }\n return ariaLabelKey ?? 'Tabs';\n });\n\n constructor() {\n effect(() => {\n const defaultValue = this.defaultValue();\n const currentValue = this.value();\n if (currentValue === undefined && defaultValue !== undefined) {\n this.value.set(defaultValue);\n }\n });\n\n effect(() => {\n const current = this.value();\n const previous = this.previousValue();\n if (current !== previous && previous !== undefined) {\n this.valueChange.emit(current);\n this.tabChange.emit({\n value: current,\n previousValue: previous,\n });\n this.updateSlideDirection(current, previous);\n }\n this.previousValue.set(current);\n });\n\n this.ngZone.runOutsideAngular(() => {\n setTimeout(() => this.measureIndicator());\n });\n\n effect(() => {\n this.value();\n this.appearance();\n this.orientation();\n this.tabs();\n this.ngZone.runOutsideAngular(() => {\n setTimeout(() => this.measureIndicator());\n });\n });\n }\n\n activateTab(tab: SolarisTabComponent): void {\n if (tab.isComputedDisabled()) return;\n if (this.disabled()) return;\n this.value.set(tab.value());\n const label = tab.resolvedLabel();\n this.tabClick.emit({\n value: tab.value(),\n label,\n });\n }\n\n focusTab(tab: SolarisTabComponent): void {\n // SECURITY_EXCEPTION: nativeElement required to query tab elements for programmatic focus. Read-only, SSR-safe.\n const nativeElement = this.elementRef.nativeElement as HTMLElement;\n const tabElements = nativeElement.querySelectorAll(\n 'solaris-tab',\n ) as NodeListOf<HTMLElement>;\n const tabArray = this.tabs();\n const index = tabArray.indexOf(tab);\n if (index >= 0 && tabElements[index]) {\n tabElements[index].focus();\n }\n }\n\n generateTabId(value: string | number): string {\n return `${this.instanceId}-tab-${value}`;\n }\n\n generatePanelId(value: string | number): string {\n return `${this.instanceId}-panel-${value}`;\n }\n\n private measureIndicator(): void {\n // SECURITY_EXCEPTION: nativeElement required to query tablist for indicator measurement. Read-only, SSR-safe.\n const nativeEl = this.elementRef.nativeElement as HTMLElement;\n const tablist = nativeEl.querySelector(\n '.solaris-tabs__tablist',\n ) as HTMLElement | null;\n if (!tablist) return;\n\n const activeTab = tablist.querySelector(\n 'solaris-tab[data-active=\"true\"]',\n ) as HTMLElement | null;\n if (!activeTab) return;\n\n const isVertical = this.orientation() === 'vertical';\n\n if (isVertical) {\n this.indicatorTransformY.set(`translateY(${activeTab.offsetTop}px)`);\n this.indicatorSize.set(`${activeTab.offsetHeight}px`);\n } else {\n this.indicatorTransformX.set(`translateX(${activeTab.offsetLeft}px)`);\n this.indicatorSize.set(`${activeTab.offsetWidth}px`);\n }\n\n if (!this.indicatorReady()) {\n setTimeout(() => this.indicatorReady.set(true));\n }\n }\n\n private updateSlideDirection(\n current: string | number | undefined,\n previous: string | number | undefined,\n ): void {\n const tabs = this.tabs();\n const currentIndex = tabs.findIndex((t) => t.value() === current);\n const previousIndex = tabs.findIndex((t) => t.value() === previous);\n if (currentIndex >= 0 && previousIndex >= 0) {\n this.slideDirection.set(currentIndex > previousIndex ? 'right' : 'left');\n }\n }\n}\n","<div\n class=\"solaris-tabs__tablist\"\n #tablist\n role=\"tablist\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n>\n <ng-content select=\"solaris-tab\" />\n\n @if (showIndicator() && appearance() === 'underline') {\n <div\n class=\"solaris-tabs__indicator\"\n [class.solaris-tabs__indicator--animate]=\"indicatorReady()\"\n [class.solaris-tabs__indicator--vertical]=\"orientation() === 'vertical'\"\n [style.transform]=\"\n orientation() === 'vertical'\n ? indicatorTransformY()\n : indicatorTransformX()\n \"\n [style.width]=\"orientation() === 'vertical' ? '' : indicatorSize()\"\n [style.height]=\"orientation() === 'vertical' ? indicatorSize() : ''\"\n ></div>\n }\n</div>\n\n@if (panels().length > 0) {\n <div\n class=\"solaris-tabs__panels\"\n [class.solaris-tabs__panels--fade]=\"contentTransition() === 'fade'\"\n [class.solaris-tabs__panels--slide]=\"contentTransition() === 'slide'\"\n [class.solaris-tabs__panels--slide-from-right]=\"\n contentTransition() === 'slide' && slideDirection() === 'right'\n \"\n [class.solaris-tabs__panels--slide-from-left]=\"\n contentTransition() === 'slide' && slideDirection() === 'left'\n \"\n >\n <ng-content select=\"solaris-tab-panel\" />\n </div>\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { SolarisTabsComponent } from './component/tabs.component';
|
|
2
|
-
export { SolarisTabComponent } from './tab/tab.component';
|
|
3
|
-
export { SolarisTabPanelComponent } from './tab-panel/tab-panel.component';
|
|
4
|
-
export { SOLARIS_TABS } from './token/tabs.tokens';
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/components/navigation/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { SolarisTabsComponent } from './component/tabs.component';\nexport { SolarisTabComponent } from './tab/tab.component';\nexport { SolarisTabPanelComponent } from './tab-panel/tab-panel.component';\nexport { SOLARIS_TABS } from './token/tabs.tokens';\n\nexport type { SolarisTabsControl } from './token/tabs.tokens';\nexport type {\n SolarisTabsOrientation,\n SolarisTabsAppearance,\n SolarisTabsSize,\n SolarisTabsDensity,\n SolarisTabsActivationMode,\n SolarisTabsContentTransition,\n SolarisTabsValueChangeEvent,\n SolarisTabsChangeEvent,\n SolarisTabClickEvent,\n} from './model/tabs.types';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=tabs.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/model/tabs.types.ts"],"names":[],"mappings":"","sourcesContent":["export type SolarisTabsOrientation = 'horizontal' | 'vertical';\n\nexport type SolarisTabsAppearance = 'underline' | 'pills' | 'enclosed';\n\nexport type SolarisTabsSize = 'sm' | 'md' | 'lg';\n\nexport type SolarisTabsDensity = 'compact' | 'comfortable';\n\nexport type SolarisTabsActivationMode = 'automatic' | 'manual';\n\nexport type SolarisTabsContentTransition = 'none' | 'fade' | 'slide';\n\nexport interface SolarisTabsValueChangeEvent {\n value: string | number | undefined;\n}\n\nexport interface SolarisTabsChangeEvent {\n value: string | number | undefined;\n previousValue: string | number | undefined;\n}\n\nexport interface SolarisTabClickEvent {\n value: string | number;\n label: string | undefined;\n}\n"]}
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { input, inject, computed, Component, ChangeDetectionStrategy, } from '@angular/core';
|
|
2
|
-
import { SolarisTranslateService } from '../../../../services/translation';
|
|
3
|
-
import { SolarisBadgeComponent } from '../../../data-display/badge';
|
|
4
|
-
import { SolarisIconComponent } from '../../../icon';
|
|
5
|
-
import { SOLARIS_TABS } from '../token/tabs.tokens';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
let nextId = 0;
|
|
8
|
-
export class SolarisTabComponent {
|
|
9
|
-
translateService = inject(SolarisTranslateService, {
|
|
10
|
-
optional: true,
|
|
11
|
-
});
|
|
12
|
-
tabsControl = inject(SOLARIS_TABS, { optional: true });
|
|
13
|
-
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
14
|
-
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
15
|
-
iconDecorative = input(true, ...(ngDevMode ? [{ debugName: "iconDecorative" }] : /* istanbul ignore next */ []));
|
|
16
|
-
icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
17
|
-
label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
18
|
-
labelKey = input(undefined, ...(ngDevMode ? [{ debugName: "labelKey" }] : /* istanbul ignore next */ []));
|
|
19
|
-
ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
20
|
-
badgeLabel = input(undefined, ...(ngDevMode ? [{ debugName: "badgeLabel" }] : /* istanbul ignore next */ []));
|
|
21
|
-
ariaLabelKey = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabelKey" }] : /* istanbul ignore next */ []));
|
|
22
|
-
badgeLabelKey = input(undefined, ...(ngDevMode ? [{ debugName: "badgeLabelKey" }] : /* istanbul ignore next */ []));
|
|
23
|
-
badge = input(undefined, ...(ngDevMode ? [{ debugName: "badge" }] : /* istanbul ignore next */ []));
|
|
24
|
-
instanceId = `solaris-tab-${nextId++}`;
|
|
25
|
-
tabId = computed(() => {
|
|
26
|
-
if (this.tabsControl) {
|
|
27
|
-
return this.tabsControl.generateTabId(this.value());
|
|
28
|
-
}
|
|
29
|
-
return `${this.instanceId}-tab`;
|
|
30
|
-
}, ...(ngDevMode ? [{ debugName: "tabId" }] : /* istanbul ignore next */ []));
|
|
31
|
-
panelId = computed(() => {
|
|
32
|
-
if (this.tabsControl) {
|
|
33
|
-
return this.tabsControl.generatePanelId(this.value());
|
|
34
|
-
}
|
|
35
|
-
return `${this.instanceId}-panel`;
|
|
36
|
-
}, ...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
|
|
37
|
-
orientation = computed(() => {
|
|
38
|
-
return this.tabsControl?.orientation() ?? 'horizontal';
|
|
39
|
-
}, ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
40
|
-
size = computed(() => {
|
|
41
|
-
return this.tabsControl?.size() ?? 'md';
|
|
42
|
-
}, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
43
|
-
density = computed(() => {
|
|
44
|
-
return this.tabsControl?.density() ?? 'comfortable';
|
|
45
|
-
}, ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
|
|
46
|
-
appearance = computed(() => {
|
|
47
|
-
return this.tabsControl?.appearance() ?? 'underline';
|
|
48
|
-
}, ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
|
|
49
|
-
isActive = computed(() => {
|
|
50
|
-
if (!this.tabsControl)
|
|
51
|
-
return false;
|
|
52
|
-
return this.tabsControl.value() === this.value();
|
|
53
|
-
}, ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
|
|
54
|
-
isComputedDisabled = computed(() => {
|
|
55
|
-
return this.disabled() || (this.tabsControl?.disabled() ?? false);
|
|
56
|
-
}, ...(ngDevMode ? [{ debugName: "isComputedDisabled" }] : /* istanbul ignore next */ []));
|
|
57
|
-
computedBadge = computed(() => {
|
|
58
|
-
const b = this.badge();
|
|
59
|
-
if (b === undefined || b === null)
|
|
60
|
-
return null;
|
|
61
|
-
return b;
|
|
62
|
-
}, ...(ngDevMode ? [{ debugName: "computedBadge" }] : /* istanbul ignore next */ []));
|
|
63
|
-
index = computed(() => {
|
|
64
|
-
if (!this.tabsControl)
|
|
65
|
-
return -1;
|
|
66
|
-
return this.tabsControl.tabs().indexOf(this);
|
|
67
|
-
}, ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
68
|
-
resolvedLabel = computed(() => {
|
|
69
|
-
if (this.label())
|
|
70
|
-
return this.label();
|
|
71
|
-
const labelKey = this.labelKey();
|
|
72
|
-
if (labelKey && this.translateService) {
|
|
73
|
-
return this.translateService.translate(labelKey);
|
|
74
|
-
}
|
|
75
|
-
return labelKey ?? undefined;
|
|
76
|
-
}, ...(ngDevMode ? [{ debugName: "resolvedLabel" }] : /* istanbul ignore next */ []));
|
|
77
|
-
resolvedBadgeLabel = computed(() => {
|
|
78
|
-
if (this.badgeLabel())
|
|
79
|
-
return this.badgeLabel();
|
|
80
|
-
const badgeLabelKey = this.badgeLabelKey();
|
|
81
|
-
if (badgeLabelKey && this.translateService) {
|
|
82
|
-
return this.translateService.translate(badgeLabelKey);
|
|
83
|
-
}
|
|
84
|
-
return badgeLabelKey ?? undefined;
|
|
85
|
-
}, ...(ngDevMode ? [{ debugName: "resolvedBadgeLabel" }] : /* istanbul ignore next */ []));
|
|
86
|
-
resolvedAriaLabel = computed(() => {
|
|
87
|
-
if (this.ariaLabel())
|
|
88
|
-
return this.ariaLabel();
|
|
89
|
-
const ariaLabelKey = this.ariaLabelKey();
|
|
90
|
-
if (ariaLabelKey && this.translateService) {
|
|
91
|
-
return this.translateService.translate(ariaLabelKey);
|
|
92
|
-
}
|
|
93
|
-
return undefined;
|
|
94
|
-
}, ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
|
|
95
|
-
onClick() {
|
|
96
|
-
if (this.isComputedDisabled())
|
|
97
|
-
return;
|
|
98
|
-
this.tabsControl?.activateTab(this);
|
|
99
|
-
this.tabsControl?.focusTab(this);
|
|
100
|
-
}
|
|
101
|
-
onKeydown(event) {
|
|
102
|
-
if (this.isComputedDisabled())
|
|
103
|
-
return;
|
|
104
|
-
const tabs = this.tabsControl?.tabs() ?? [];
|
|
105
|
-
const currentIndex = this.index();
|
|
106
|
-
if (event.key === 'Enter' || event.key === ' ') {
|
|
107
|
-
event.preventDefault();
|
|
108
|
-
if (this.tabsControl?.activationMode() === 'manual') {
|
|
109
|
-
this.tabsControl.activateTab(this);
|
|
110
|
-
}
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
const nextIndex = this.getNextIndex(event.key, tabs, currentIndex);
|
|
114
|
-
if (nextIndex === null || nextIndex === currentIndex)
|
|
115
|
-
return;
|
|
116
|
-
event.preventDefault();
|
|
117
|
-
const nextTab = tabs[nextIndex];
|
|
118
|
-
if (this.tabsControl?.activationMode() === 'automatic') {
|
|
119
|
-
this.tabsControl.activateTab(nextTab);
|
|
120
|
-
}
|
|
121
|
-
this.tabsControl?.focusTab(nextTab);
|
|
122
|
-
}
|
|
123
|
-
getNextIndex(key, tabs, currentIndex) {
|
|
124
|
-
switch (key) {
|
|
125
|
-
case 'ArrowRight':
|
|
126
|
-
return this.orientation() === 'horizontal'
|
|
127
|
-
? this.findNextEnabled(tabs, currentIndex, 1)
|
|
128
|
-
: null;
|
|
129
|
-
case 'ArrowLeft':
|
|
130
|
-
return this.orientation() === 'horizontal'
|
|
131
|
-
? this.findNextEnabled(tabs, currentIndex, -1)
|
|
132
|
-
: null;
|
|
133
|
-
case 'ArrowDown':
|
|
134
|
-
return this.orientation() === 'vertical'
|
|
135
|
-
? this.findNextEnabled(tabs, currentIndex, 1)
|
|
136
|
-
: null;
|
|
137
|
-
case 'ArrowUp':
|
|
138
|
-
return this.orientation() === 'vertical'
|
|
139
|
-
? this.findNextEnabled(tabs, currentIndex, -1)
|
|
140
|
-
: null;
|
|
141
|
-
case 'Home':
|
|
142
|
-
return this.findFirstEnabled(tabs);
|
|
143
|
-
case 'End':
|
|
144
|
-
return this.findLastEnabled(tabs);
|
|
145
|
-
default:
|
|
146
|
-
return null;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
findNextEnabled(tabs, fromIndex, direction) {
|
|
150
|
-
let i = fromIndex + direction;
|
|
151
|
-
while (i >= 0 && i < tabs.length) {
|
|
152
|
-
if (!tabs[i].isComputedDisabled())
|
|
153
|
-
return i;
|
|
154
|
-
i += direction;
|
|
155
|
-
}
|
|
156
|
-
return null;
|
|
157
|
-
}
|
|
158
|
-
findFirstEnabled(tabs) {
|
|
159
|
-
for (let i = 0; i < tabs.length; i++) {
|
|
160
|
-
if (!tabs[i].isComputedDisabled())
|
|
161
|
-
return i;
|
|
162
|
-
}
|
|
163
|
-
return null;
|
|
164
|
-
}
|
|
165
|
-
findLastEnabled(tabs) {
|
|
166
|
-
for (let i = tabs.length - 1; i >= 0; i--) {
|
|
167
|
-
if (!tabs[i].isComputedDisabled())
|
|
168
|
-
return i;
|
|
169
|
-
}
|
|
170
|
-
return null;
|
|
171
|
-
}
|
|
172
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
173
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisTabComponent, isStandalone: true, selector: "solaris-tab", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, iconDecorative: { classPropertyName: "iconDecorative", publicName: "iconDecorative", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, badgeLabel: { classPropertyName: "badgeLabel", publicName: "badgeLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelKey: { classPropertyName: "ariaLabelKey", publicName: "ariaLabelKey", isSignal: true, isRequired: false, transformFunction: null }, badgeLabelKey: { classPropertyName: "badgeLabelKey", publicName: "badgeLabelKey", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tab" }, listeners: { "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "attr.id": "tabId()", "attr.data-size": "size()", "attr.data-density": "density()", "attr.data-active": "isActive()", "attr.aria-controls": "panelId()", "attr.aria-selected": "isActive()", "attr.data-appearance": "appearance()", "attr.aria-label": "resolvedAriaLabel()", "attr.data-orientation": "orientation()", "attr.tabindex": "isActive() ? \"0\" : \"-1\"", "attr.data-disabled": "isComputedDisabled()", "attr.aria-disabled": "isComputedDisabled() || undefined" } }, ngImport: i0, template: "<span class=\"solaris-tab__inner\">\n @if (icon(); as iconName) {\n <solaris-icon\n class=\"solaris-tab__icon\"\n [name]=\"iconName\"\n [decorative]=\"iconDecorative()\"\n />\n }\n @if (resolvedLabel(); as labelText) {\n <span class=\"solaris-tab__label\">{{ labelText }}</span>\n }\n <ng-content />\n @if (computedBadge(); as badgeValue) {\n <solaris-badge\n class=\"solaris-tab__badge\"\n variant=\"count\"\n size=\"sm\"\n [attr.aria-label]=\"resolvedBadgeLabel()\"\n >\n {{ badgeValue }}\n </solaris-badge>\n }\n</span>\n", styles: [":host{--solaris-tab-gap: var(--solaris-spacing-2);--solaris-tab-padding-x: var(--solaris-spacing-3);--solaris-tab-padding-y: var(--solaris-spacing-2);--solaris-tab-color: var(--solaris-text-default);--solaris-tab-active-color: var(--solaris-primary-text);--solaris-tab-hover-background: var(--solaris-surface-subtle);--solaris-tab-active-background: var(--solaris-surface-base);--solaris-tab-radius: var(--solaris-radius-sm);--solaris-tab-font-size: var(--solaris-font-size-sm);--solaris-tab-font-weight: var(--solaris-font-weight-medium);--solaris-tab-icon-size: var(--solaris-spacing-4);--solaris-tab-badge-gap: var(--solaris-spacing-2);--solaris-tabs-indicator-color: var(--solaris-primary-base);--solaris-tabs-border-color: var(--solaris-border-subtle);--solaris-tabs-tab-active-background: var(--solaris-primary-surface);border:none;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;align-items:center;white-space:nowrap;display:inline-flex;text-decoration:none;background:transparent;gap:var(--solaris-tab-gap);color:var(--solaris-tab-color);padding:var(--solaris-tab-padding-y) var(--solaris-tab-padding-x);font:var(--solaris-tab-font-weight) var(--solaris-tab-font-size)/1 var(--solaris-font-family-sans);transition:color var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),background var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),box-shadow var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host(:hover:not([data-disabled=true]):not([data-active=true])){background:var(--solaris-tab-hover-background)}:host(:focus-visible){outline-offset:var(--solaris-border-width-md);outline:var(--solaris-border-width-md) solid var(--solaris-primary-base)}:host([data-active=true]){color:var(--solaris-tab-active-color)}:host([data-disabled=true]){opacity:.5;cursor:not-allowed}:host([data-orientation=vertical]){width:100%;display:flex;max-width:100%;box-sizing:border-box}.solaris-tab__inner{align-items:center;display:inline-flex;gap:var(--solaris-tab-gap)}.solaris-tab__icon{flex-shrink:0;width:var(--solaris-tab-icon-size);height:var(--solaris-tab-icon-size)}.solaris-tab__label{line-height:var(--solaris-line-height-md)}.solaris-tab__badge{flex-shrink:0}:host([data-size=sm]){--solaris-tab-padding-y: var(--solaris-spacing-1);--solaris-tab-padding-x: var(--solaris-spacing-2);--solaris-tab-icon-size: var(--solaris-spacing-3);--solaris-tab-font-size: var(--solaris-font-size-xs)}:host([data-size=lg]){--solaris-tab-padding-y: var(--solaris-spacing-3);--solaris-tab-padding-x: var(--solaris-spacing-4);--solaris-tab-icon-size: var(--solaris-spacing-5);--solaris-tab-font-size: var(--solaris-font-size-md)}:host([data-density=compact]){--solaris-tab-gap: var(--solaris-spacing-1);--solaris-tab-padding-y: var(--solaris-spacing-1);--solaris-tab-padding-x: var(--solaris-spacing-2)}:host([data-appearance=underline]){--solaris-tab-radius: 0}:host([data-appearance=pills]){border-radius:var(--solaris-tab-radius);--solaris-tab-radius: var(--solaris-radius-full)}:host([data-appearance=pills]:hover:not([data-disabled=true]):not([data-active=true])){background:var(--solaris-tab-hover-background)}:host([data-appearance=pills][data-active=true]){color:var(--solaris-tab-active-color);background:var(--solaris-tabs-tab-active-background)}:host([data-appearance=enclosed]){margin-bottom:0;border:var(--solaris-border-width-sm) solid transparent;border-bottom:none;border-radius:var(--solaris-radius-sm) var(--solaris-radius-sm) 0 0}:host([data-appearance=enclosed][data-active=true]){background:var(--solaris-surface-base);border-color:var(--solaris-tabs-border-color)}:host-context([data-full-width=true]){flex:1;justify-content:center}@media(prefers-reduced-motion:reduce){:host{transition:none}}:host-context([data-reduced-motion=true]){transition:none}\n"], dependencies: [{ kind: "component", type: SolarisIconComponent, selector: "solaris-icon", inputs: ["name", "ariaLabel", "decorative"] }, { kind: "component", type: SolarisBadgeComponent, selector: "solaris-badge", inputs: ["appearance", "variant", "color", "radius", "density", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
174
|
-
}
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTabComponent, decorators: [{
|
|
176
|
-
type: Component,
|
|
177
|
-
args: [{ selector: 'solaris-tab', standalone: true, imports: [SolarisIconComponent, SolarisBadgeComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
178
|
-
role: 'tab',
|
|
179
|
-
'[attr.id]': 'tabId()',
|
|
180
|
-
'(click)': 'onClick()',
|
|
181
|
-
'[attr.data-size]': 'size()',
|
|
182
|
-
'(keydown)': 'onKeydown($event)',
|
|
183
|
-
'[attr.data-density]': 'density()',
|
|
184
|
-
'[attr.data-active]': 'isActive()',
|
|
185
|
-
'[attr.aria-controls]': 'panelId()',
|
|
186
|
-
'[attr.aria-selected]': 'isActive()',
|
|
187
|
-
'[attr.data-appearance]': 'appearance()',
|
|
188
|
-
'[attr.aria-label]': 'resolvedAriaLabel()',
|
|
189
|
-
'[attr.data-orientation]': 'orientation()',
|
|
190
|
-
'[attr.tabindex]': 'isActive() ? "0" : "-1"',
|
|
191
|
-
'[attr.data-disabled]': 'isComputedDisabled()',
|
|
192
|
-
'[attr.aria-disabled]': 'isComputedDisabled() || undefined',
|
|
193
|
-
}, template: "<span class=\"solaris-tab__inner\">\n @if (icon(); as iconName) {\n <solaris-icon\n class=\"solaris-tab__icon\"\n [name]=\"iconName\"\n [decorative]=\"iconDecorative()\"\n />\n }\n @if (resolvedLabel(); as labelText) {\n <span class=\"solaris-tab__label\">{{ labelText }}</span>\n }\n <ng-content />\n @if (computedBadge(); as badgeValue) {\n <solaris-badge\n class=\"solaris-tab__badge\"\n variant=\"count\"\n size=\"sm\"\n [attr.aria-label]=\"resolvedBadgeLabel()\"\n >\n {{ badgeValue }}\n </solaris-badge>\n }\n</span>\n", styles: [":host{--solaris-tab-gap: var(--solaris-spacing-2);--solaris-tab-padding-x: var(--solaris-spacing-3);--solaris-tab-padding-y: var(--solaris-spacing-2);--solaris-tab-color: var(--solaris-text-default);--solaris-tab-active-color: var(--solaris-primary-text);--solaris-tab-hover-background: var(--solaris-surface-subtle);--solaris-tab-active-background: var(--solaris-surface-base);--solaris-tab-radius: var(--solaris-radius-sm);--solaris-tab-font-size: var(--solaris-font-size-sm);--solaris-tab-font-weight: var(--solaris-font-weight-medium);--solaris-tab-icon-size: var(--solaris-spacing-4);--solaris-tab-badge-gap: var(--solaris-spacing-2);--solaris-tabs-indicator-color: var(--solaris-primary-base);--solaris-tabs-border-color: var(--solaris-border-subtle);--solaris-tabs-tab-active-background: var(--solaris-primary-surface);border:none;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;align-items:center;white-space:nowrap;display:inline-flex;text-decoration:none;background:transparent;gap:var(--solaris-tab-gap);color:var(--solaris-tab-color);padding:var(--solaris-tab-padding-y) var(--solaris-tab-padding-x);font:var(--solaris-tab-font-weight) var(--solaris-tab-font-size)/1 var(--solaris-font-family-sans);transition:color var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),background var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard),box-shadow var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host(:hover:not([data-disabled=true]):not([data-active=true])){background:var(--solaris-tab-hover-background)}:host(:focus-visible){outline-offset:var(--solaris-border-width-md);outline:var(--solaris-border-width-md) solid var(--solaris-primary-base)}:host([data-active=true]){color:var(--solaris-tab-active-color)}:host([data-disabled=true]){opacity:.5;cursor:not-allowed}:host([data-orientation=vertical]){width:100%;display:flex;max-width:100%;box-sizing:border-box}.solaris-tab__inner{align-items:center;display:inline-flex;gap:var(--solaris-tab-gap)}.solaris-tab__icon{flex-shrink:0;width:var(--solaris-tab-icon-size);height:var(--solaris-tab-icon-size)}.solaris-tab__label{line-height:var(--solaris-line-height-md)}.solaris-tab__badge{flex-shrink:0}:host([data-size=sm]){--solaris-tab-padding-y: var(--solaris-spacing-1);--solaris-tab-padding-x: var(--solaris-spacing-2);--solaris-tab-icon-size: var(--solaris-spacing-3);--solaris-tab-font-size: var(--solaris-font-size-xs)}:host([data-size=lg]){--solaris-tab-padding-y: var(--solaris-spacing-3);--solaris-tab-padding-x: var(--solaris-spacing-4);--solaris-tab-icon-size: var(--solaris-spacing-5);--solaris-tab-font-size: var(--solaris-font-size-md)}:host([data-density=compact]){--solaris-tab-gap: var(--solaris-spacing-1);--solaris-tab-padding-y: var(--solaris-spacing-1);--solaris-tab-padding-x: var(--solaris-spacing-2)}:host([data-appearance=underline]){--solaris-tab-radius: 0}:host([data-appearance=pills]){border-radius:var(--solaris-tab-radius);--solaris-tab-radius: var(--solaris-radius-full)}:host([data-appearance=pills]:hover:not([data-disabled=true]):not([data-active=true])){background:var(--solaris-tab-hover-background)}:host([data-appearance=pills][data-active=true]){color:var(--solaris-tab-active-color);background:var(--solaris-tabs-tab-active-background)}:host([data-appearance=enclosed]){margin-bottom:0;border:var(--solaris-border-width-sm) solid transparent;border-bottom:none;border-radius:var(--solaris-radius-sm) var(--solaris-radius-sm) 0 0}:host([data-appearance=enclosed][data-active=true]){background:var(--solaris-surface-base);border-color:var(--solaris-tabs-border-color)}:host-context([data-full-width=true]){flex:1;justify-content:center}@media(prefers-reduced-motion:reduce){:host{transition:none}}:host-context([data-reduced-motion=true]){transition:none}\n"] }]
|
|
194
|
-
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], iconDecorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconDecorative", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelKey", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], badgeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeLabel", required: false }] }], ariaLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelKey", required: false }] }], badgeLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeLabelKey", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }] } });
|
|
195
|
-
//# sourceMappingURL=tab.component.js.map
|