@educarehq/solaris-ui 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/educarehq-solaris-ui.mjs +12261 -0
- package/fesm2022/educarehq-solaris-ui.mjs.map +1 -0
- package/package.json +9 -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,23 +0,0 @@
|
|
|
1
|
-
import { Component, inject, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
3
|
-
import { SolarisIconComponent } from '../../../icon';
|
|
4
|
-
import { SOLARIS_TOOLTIP_PANEL_DATA, } from '../token/tooltip.tokens';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class SolarisTooltipPanelComponent {
|
|
7
|
-
data = inject(SOLARIS_TOOLTIP_PANEL_DATA);
|
|
8
|
-
cdr = inject(ChangeDetectorRef);
|
|
9
|
-
updatePlacement(placement, arrowClass) {
|
|
10
|
-
this.data.placement = placement;
|
|
11
|
-
this.data.arrowClass = arrowClass;
|
|
12
|
-
this.cdr.markForCheck();
|
|
13
|
-
}
|
|
14
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisTooltipPanelComponent, isStandalone: true, selector: "solaris-tooltip-panel", host: { classAttribute: "solaris-tooltip-panel" }, ngImport: i0, template: "<div\n class=\"solaris-tooltip-panel__container\"\n [attr.data-appearance]=\"data.appearance\"\n [attr.data-size]=\"data.size\"\n [attr.data-radius]=\"data.radius\"\n [attr.data-placement]=\"data.placement\"\n [id]=\"data.panelId\"\n [style.max-width]=\"data.maxWidth\"\n>\n @if (data.arrow) {\n <div class=\"solaris-tooltip-panel__arrow {{ data.arrowClass }}\"></div>\n }\n\n <div class=\"solaris-tooltip-panel__content\">\n @if (data.icon) {\n <solaris-icon\n [name]=\"data.icon\"\n [decorative]=\"data.iconDecorative\"\n class=\"solaris-tooltip-panel__icon\"\n />\n }\n\n <div class=\"solaris-tooltip-panel__text\">\n @if (data.title) {\n <div class=\"solaris-tooltip-panel__title\">{{ data.title }}</div>\n }\n\n @if (data.body) {\n <div class=\"solaris-tooltip-panel__body\">{{ data.body }}</div>\n }\n\n @if (data.contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"data.contentTemplate\" />\n }\n </div>\n </div>\n\n @if (data.closeable) {\n <button\n class=\"solaris-tooltip-panel__close\"\n type=\"button\"\n (click)=\"data.close()\"\n attr.aria-label=\"{{ data.closeLabel }}\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n</div>\n", styles: [".solaris-tooltip-panel{--solaris-tooltip-max-width: 32rem;--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;--solaris-tooltip-gap: var(--solaris-spacing-5);--solaris-tooltip-shadow: var(--solaris-shadow-sm);--solaris-tooltip-radius: var(--solaris-radius-md);--solaris-tooltip-color: var(--solaris-text-default);--solaris-tooltip-icon-size: var(--solaris-font-size-md);--solaris-tooltip-arrow-size: var(--solaris-font-size-xs);--solaris-tooltip-padding-block: var(--solaris-spacing-3);--solaris-tooltip-padding-inline: var(--solaris-spacing-5);--solaris-tooltip-background: var(--solaris-surface-raised);--solaris-tooltip-offset: calc(var(--solaris-spacing-1) / 2);outline:none;display:block}.solaris-tooltip-panel__container{--solaris-tooltip-background: var(--solaris-surface-raised);display:flex;outline:none;overflow:visible;position:relative;word-break:normal;white-space:normal;box-sizing:border-box;align-items:flex-start;gap:var(--solaris-tooltip-gap);color:var(--solaris-tooltip-color);box-shadow:var(--solaris-tooltip-shadow);line-height:var(--solaris-line-height-md);max-width:var(--solaris-tooltip-max-width);border-radius:var(--solaris-tooltip-radius);background:var(--solaris-tooltip-background);padding-block:var(--solaris-tooltip-padding-block);padding-inline:var(--solaris-tooltip-padding-inline);border:var(--solaris-tooltip-border-width) solid var(--solaris-tooltip-border-color)}.solaris-tooltip-panel__arrow{--solaris-tooltip-arrow-outer-size: calc( var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-border-width, 0px) + var(--solaris-tooltip-border-width, 0px) );width:0;height:0;position:absolute;pointer-events:none}.solaris-tooltip-panel__arrow:before,.solaris-tooltip-panel__arrow:after{width:0;height:0;content:\"\";position:absolute;border-style:solid}.solaris-tooltip-arrow--bottom{left:50%;transform:translate(-50%);bottom:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--bottom:before,.solaris-tooltip-arrow--bottom:after{left:50%;transform:translate(-50%);top:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--bottom:before{border-width:var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) 0;border-color:var(--solaris-tooltip-border-color) transparent transparent}.solaris-tooltip-arrow--bottom:after{border-width:var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) 0;border-color:var(--solaris-tooltip-background) transparent transparent}.solaris-tooltip-arrow--top{left:50%;transform:translate(-50%);top:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--top:before,.solaris-tooltip-arrow--top:after{left:50%;transform:translate(-50%);bottom:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--top:before{border-width:0 var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size);border-color:transparent transparent var(--solaris-tooltip-border-color)}.solaris-tooltip-arrow--top:after{border-width:0 var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size);border-color:transparent transparent var(--solaris-tooltip-background)}.solaris-tooltip-arrow--right{top:50%;transform:translateY(-50%);right:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--right:before,.solaris-tooltip-arrow--right:after{top:50%;transform:translateY(-50%);left:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--right:before{border-width:var(--solaris-tooltip-arrow-outer-size) 0 var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size);border-color:transparent transparent transparent var(--solaris-tooltip-border-color)}.solaris-tooltip-arrow--right:after{border-width:var(--solaris-tooltip-arrow-size) 0 var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size);border-color:transparent transparent transparent var(--solaris-tooltip-background)}.solaris-tooltip-arrow--left{top:50%;transform:translateY(-50%);left:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--left:before,.solaris-tooltip-arrow--left:after{top:50%;transform:translateY(-50%);right:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--left:before{border-width:var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) 0;border-color:transparent var(--solaris-tooltip-border-color) transparent transparent}.solaris-tooltip-arrow--left:after{border-width:var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) 0;border-color:transparent var(--solaris-tooltip-background) transparent transparent}.solaris-tooltip-panel__container[data-placement=top-start] .solaris-tooltip-arrow--bottom,.solaris-tooltip-panel__container[data-placement=bottom-start] .solaris-tooltip-arrow--top{left:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=top-end] .solaris-tooltip-arrow--bottom,.solaris-tooltip-panel__container[data-placement=bottom-end] .solaris-tooltip-arrow--top{left:auto;right:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=left-start] .solaris-tooltip-arrow--right,.solaris-tooltip-panel__container[data-placement=right-start] .solaris-tooltip-arrow--left{top:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=left-end] .solaris-tooltip-arrow--right,.solaris-tooltip-panel__container[data-placement=right-end] .solaris-tooltip-arrow--left{top:auto;bottom:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__content{flex:1;min-width:0;display:flex;align-items:flex-start;gap:var(--solaris-tooltip-gap)}.solaris-tooltip-panel__icon{flex-shrink:0;display:inline-flex;margin-top:var(--solaris-tooltip-offset);font-size:var(--solaris-tooltip-icon-size);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__text{min-width:0;display:flex;gap:var(--solaris-tooltip-offset);flex-direction:column}.solaris-tooltip-panel__title{overflow:hidden;font-weight:var(--solaris-font-weight-semibold);white-space:nowrap;text-overflow:ellipsis}.solaris-tooltip-panel__body{word-break:normal;white-space:normal}.solaris-tooltip-panel__close{opacity:.7;border:none;flex-shrink:0;color:inherit;cursor:pointer;background:none;padding:0;border-radius:50%;align-items:center;display:inline-flex;margin-top:var(--solaris-tooltip-offset);justify-content:center;font-size:var(--solaris-tooltip-icon-size);transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__close:hover,.solaris-tooltip-panel__close:focus-visible{opacity:1}.solaris-tooltip-panel__container[data-appearance=outline]{--solaris-tooltip-border-color: var(--solaris-border-default);--solaris-tooltip-border-width: var(--solaris-border-width-sm);background:var(--solaris-tooltip-background);border:var(--solaris-tooltip-border-width) solid var(--solaris-tooltip-border-color)}.solaris-tooltip-panel__container[data-appearance=surface]{--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;border:0;background:var(--solaris-tooltip-background)}.solaris-tooltip-panel__container[data-appearance=inverse]{--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;--solaris-tooltip-background: var(--solaris-text-default);border:0;color:var(--solaris-surface-raised);background:var(--solaris-tooltip-background)}.solaris-tooltip-panel__container[data-size=sm]{padding-block:var(--solaris-spacing-2);padding-inline:var(--solaris-spacing-5);font-size:var(--solaris-font-size-xs);--solaris-tooltip-arrow-size: var(--solaris-font-size-2xs)}.solaris-tooltip-panel__container[data-size=md]{padding-block:var(--solaris-spacing-3);padding-inline:var(--solaris-spacing-6);font-size:var(--solaris-font-size-sm);--solaris-tooltip-arrow-size: var(--solaris-font-size-xs)}.solaris-tooltip-panel__container[data-size=lg]{padding-block:var(--solaris-spacing-4);padding-inline:var(--solaris-spacing-8);font-size:var(--solaris-font-size-md);--solaris-tooltip-arrow-size: var(--solaris-font-size-md)}.solaris-tooltip-panel__container[data-size=sm] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=sm] .solaris-tooltip-panel__close{font-size:var(--solaris-tooltip-icon-size);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__container[data-size=md] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=md] .solaris-tooltip-panel__close{font-size:var(--solaris-font-size-xl);width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}.solaris-tooltip-panel__container[data-size=lg] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=lg] .solaris-tooltip-panel__close{font-size:var(--solaris-font-size-2xl);width:var(--solaris-font-size-2xl);height:var(--solaris-font-size-2xl)}.solaris-tooltip-panel__container[data-radius=sm]{border-radius:var(--solaris-radius-sm)}.solaris-tooltip-panel__container[data-radius=md]{border-radius:var(--solaris-radius-md)}.solaris-tooltip-panel__container[data-radius=lg]{border-radius:var(--solaris-radius-lg)}@media(prefers-reduced-motion:reduce){.solaris-tooltip-panel__close{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SolarisIconComponent, selector: "solaris-icon", inputs: ["name", "ariaLabel", "decorative"] }] });
|
|
16
|
-
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTooltipPanelComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: 'solaris-tooltip-panel', standalone: true, imports: [NgTemplateOutlet, SolarisIconComponent], host: {
|
|
20
|
-
class: 'solaris-tooltip-panel',
|
|
21
|
-
}, template: "<div\n class=\"solaris-tooltip-panel__container\"\n [attr.data-appearance]=\"data.appearance\"\n [attr.data-size]=\"data.size\"\n [attr.data-radius]=\"data.radius\"\n [attr.data-placement]=\"data.placement\"\n [id]=\"data.panelId\"\n [style.max-width]=\"data.maxWidth\"\n>\n @if (data.arrow) {\n <div class=\"solaris-tooltip-panel__arrow {{ data.arrowClass }}\"></div>\n }\n\n <div class=\"solaris-tooltip-panel__content\">\n @if (data.icon) {\n <solaris-icon\n [name]=\"data.icon\"\n [decorative]=\"data.iconDecorative\"\n class=\"solaris-tooltip-panel__icon\"\n />\n }\n\n <div class=\"solaris-tooltip-panel__text\">\n @if (data.title) {\n <div class=\"solaris-tooltip-panel__title\">{{ data.title }}</div>\n }\n\n @if (data.body) {\n <div class=\"solaris-tooltip-panel__body\">{{ data.body }}</div>\n }\n\n @if (data.contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"data.contentTemplate\" />\n }\n </div>\n </div>\n\n @if (data.closeable) {\n <button\n class=\"solaris-tooltip-panel__close\"\n type=\"button\"\n (click)=\"data.close()\"\n attr.aria-label=\"{{ data.closeLabel }}\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n</div>\n", styles: [".solaris-tooltip-panel{--solaris-tooltip-max-width: 32rem;--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;--solaris-tooltip-gap: var(--solaris-spacing-5);--solaris-tooltip-shadow: var(--solaris-shadow-sm);--solaris-tooltip-radius: var(--solaris-radius-md);--solaris-tooltip-color: var(--solaris-text-default);--solaris-tooltip-icon-size: var(--solaris-font-size-md);--solaris-tooltip-arrow-size: var(--solaris-font-size-xs);--solaris-tooltip-padding-block: var(--solaris-spacing-3);--solaris-tooltip-padding-inline: var(--solaris-spacing-5);--solaris-tooltip-background: var(--solaris-surface-raised);--solaris-tooltip-offset: calc(var(--solaris-spacing-1) / 2);outline:none;display:block}.solaris-tooltip-panel__container{--solaris-tooltip-background: var(--solaris-surface-raised);display:flex;outline:none;overflow:visible;position:relative;word-break:normal;white-space:normal;box-sizing:border-box;align-items:flex-start;gap:var(--solaris-tooltip-gap);color:var(--solaris-tooltip-color);box-shadow:var(--solaris-tooltip-shadow);line-height:var(--solaris-line-height-md);max-width:var(--solaris-tooltip-max-width);border-radius:var(--solaris-tooltip-radius);background:var(--solaris-tooltip-background);padding-block:var(--solaris-tooltip-padding-block);padding-inline:var(--solaris-tooltip-padding-inline);border:var(--solaris-tooltip-border-width) solid var(--solaris-tooltip-border-color)}.solaris-tooltip-panel__arrow{--solaris-tooltip-arrow-outer-size: calc( var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-border-width, 0px) + var(--solaris-tooltip-border-width, 0px) );width:0;height:0;position:absolute;pointer-events:none}.solaris-tooltip-panel__arrow:before,.solaris-tooltip-panel__arrow:after{width:0;height:0;content:\"\";position:absolute;border-style:solid}.solaris-tooltip-arrow--bottom{left:50%;transform:translate(-50%);bottom:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--bottom:before,.solaris-tooltip-arrow--bottom:after{left:50%;transform:translate(-50%);top:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--bottom:before{border-width:var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) 0;border-color:var(--solaris-tooltip-border-color) transparent transparent}.solaris-tooltip-arrow--bottom:after{border-width:var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) 0;border-color:var(--solaris-tooltip-background) transparent transparent}.solaris-tooltip-arrow--top{left:50%;transform:translate(-50%);top:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--top:before,.solaris-tooltip-arrow--top:after{left:50%;transform:translate(-50%);bottom:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--top:before{border-width:0 var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size);border-color:transparent transparent var(--solaris-tooltip-border-color)}.solaris-tooltip-arrow--top:after{border-width:0 var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size);border-color:transparent transparent var(--solaris-tooltip-background)}.solaris-tooltip-arrow--right{top:50%;transform:translateY(-50%);right:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--right:before,.solaris-tooltip-arrow--right:after{top:50%;transform:translateY(-50%);left:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--right:before{border-width:var(--solaris-tooltip-arrow-outer-size) 0 var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size);border-color:transparent transparent transparent var(--solaris-tooltip-border-color)}.solaris-tooltip-arrow--right:after{border-width:var(--solaris-tooltip-arrow-size) 0 var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size);border-color:transparent transparent transparent var(--solaris-tooltip-background)}.solaris-tooltip-arrow--left{top:50%;transform:translateY(-50%);left:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--left:before,.solaris-tooltip-arrow--left:after{top:50%;transform:translateY(-50%);right:calc(0px - var(--solaris-tooltip-border-width, 0px))}.solaris-tooltip-arrow--left:before{border-width:var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) var(--solaris-tooltip-arrow-outer-size) 0;border-color:transparent var(--solaris-tooltip-border-color) transparent transparent}.solaris-tooltip-arrow--left:after{border-width:var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) var(--solaris-tooltip-arrow-size) 0;border-color:transparent var(--solaris-tooltip-background) transparent transparent}.solaris-tooltip-panel__container[data-placement=top-start] .solaris-tooltip-arrow--bottom,.solaris-tooltip-panel__container[data-placement=bottom-start] .solaris-tooltip-arrow--top{left:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=top-end] .solaris-tooltip-arrow--bottom,.solaris-tooltip-panel__container[data-placement=bottom-end] .solaris-tooltip-arrow--top{left:auto;right:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=left-start] .solaris-tooltip-arrow--right,.solaris-tooltip-panel__container[data-placement=right-start] .solaris-tooltip-arrow--left{top:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__container[data-placement=left-end] .solaris-tooltip-arrow--right,.solaris-tooltip-panel__container[data-placement=right-end] .solaris-tooltip-arrow--left{top:auto;bottom:calc(var(--solaris-tooltip-arrow-size) + var(--solaris-tooltip-radius));transform:none}.solaris-tooltip-panel__content{flex:1;min-width:0;display:flex;align-items:flex-start;gap:var(--solaris-tooltip-gap)}.solaris-tooltip-panel__icon{flex-shrink:0;display:inline-flex;margin-top:var(--solaris-tooltip-offset);font-size:var(--solaris-tooltip-icon-size);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__text{min-width:0;display:flex;gap:var(--solaris-tooltip-offset);flex-direction:column}.solaris-tooltip-panel__title{overflow:hidden;font-weight:var(--solaris-font-weight-semibold);white-space:nowrap;text-overflow:ellipsis}.solaris-tooltip-panel__body{word-break:normal;white-space:normal}.solaris-tooltip-panel__close{opacity:.7;border:none;flex-shrink:0;color:inherit;cursor:pointer;background:none;padding:0;border-radius:50%;align-items:center;display:inline-flex;margin-top:var(--solaris-tooltip-offset);justify-content:center;font-size:var(--solaris-tooltip-icon-size);transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__close:hover,.solaris-tooltip-panel__close:focus-visible{opacity:1}.solaris-tooltip-panel__container[data-appearance=outline]{--solaris-tooltip-border-color: var(--solaris-border-default);--solaris-tooltip-border-width: var(--solaris-border-width-sm);background:var(--solaris-tooltip-background);border:var(--solaris-tooltip-border-width) solid var(--solaris-tooltip-border-color)}.solaris-tooltip-panel__container[data-appearance=surface]{--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;border:0;background:var(--solaris-tooltip-background)}.solaris-tooltip-panel__container[data-appearance=inverse]{--solaris-tooltip-border-width: 0px;--solaris-tooltip-border-color: transparent;--solaris-tooltip-background: var(--solaris-text-default);border:0;color:var(--solaris-surface-raised);background:var(--solaris-tooltip-background)}.solaris-tooltip-panel__container[data-size=sm]{padding-block:var(--solaris-spacing-2);padding-inline:var(--solaris-spacing-5);font-size:var(--solaris-font-size-xs);--solaris-tooltip-arrow-size: var(--solaris-font-size-2xs)}.solaris-tooltip-panel__container[data-size=md]{padding-block:var(--solaris-spacing-3);padding-inline:var(--solaris-spacing-6);font-size:var(--solaris-font-size-sm);--solaris-tooltip-arrow-size: var(--solaris-font-size-xs)}.solaris-tooltip-panel__container[data-size=lg]{padding-block:var(--solaris-spacing-4);padding-inline:var(--solaris-spacing-8);font-size:var(--solaris-font-size-md);--solaris-tooltip-arrow-size: var(--solaris-font-size-md)}.solaris-tooltip-panel__container[data-size=sm] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=sm] .solaris-tooltip-panel__close{font-size:var(--solaris-tooltip-icon-size);width:var(--solaris-tooltip-icon-size);height:var(--solaris-tooltip-icon-size)}.solaris-tooltip-panel__container[data-size=md] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=md] .solaris-tooltip-panel__close{font-size:var(--solaris-font-size-xl);width:var(--solaris-font-size-xl);height:var(--solaris-font-size-xl)}.solaris-tooltip-panel__container[data-size=lg] .solaris-tooltip-panel__icon,.solaris-tooltip-panel__container[data-size=lg] .solaris-tooltip-panel__close{font-size:var(--solaris-font-size-2xl);width:var(--solaris-font-size-2xl);height:var(--solaris-font-size-2xl)}.solaris-tooltip-panel__container[data-radius=sm]{border-radius:var(--solaris-radius-sm)}.solaris-tooltip-panel__container[data-radius=md]{border-radius:var(--solaris-radius-md)}.solaris-tooltip-panel__container[data-radius=lg]{border-radius:var(--solaris-radius-lg)}@media(prefers-reduced-motion:reduce){.solaris-tooltip-panel__close{transition:none}}\n"] }]
|
|
22
|
-
}] });
|
|
23
|
-
//# sourceMappingURL=tooltip-panel.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-panel.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/interaction/tooltip/component/tooltip-panel.component.ts","../../../../../../../../../packages/angular/src/lib/components/interaction/tooltip/component/tooltip-panel.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EACL,0BAA0B,GAE3B,MAAM,yBAAyB,CAAC;;AAYjC,MAAM,OAAO,4BAA4B;IAC9B,IAAI,GAA4B,MAAM,CAAC,0BAA0B,CAAC,CAAC;IAC3D,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAEjD,eAAe,CAAC,SAAiB,EAAE,UAAkB;QACnD,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAClC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;IAC1B,CAAC;wGARU,4BAA4B;4FAA5B,4BAA4B,oICpBzC,syCAgDA,wgTDnCY,gBAAgB,oJAAE,oBAAoB;;4FAOrC,4BAA4B;kBAVxC,SAAS;+BACE,uBAAuB,cACrB,IAAI,WACP,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,QAG3C;wBACJ,KAAK,EAAE,uBAAuB;qBAC/B","sourcesContent":["import { Component, inject, ChangeDetectorRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\nimport { SolarisIconComponent } from '../../../icon';\n\nimport {\n SOLARIS_TOOLTIP_PANEL_DATA,\n type SolarisTooltipPanelData,\n} from '../token/tooltip.tokens';\n\n@Component({\n selector: 'solaris-tooltip-panel',\n standalone: true,\n imports: [NgTemplateOutlet, SolarisIconComponent],\n templateUrl: './tooltip-panel.component.html',\n styleUrls: ['./tooltip-panel.component.scss'],\n host: {\n class: 'solaris-tooltip-panel',\n },\n})\nexport class SolarisTooltipPanelComponent {\n readonly data: SolarisTooltipPanelData = inject(SOLARIS_TOOLTIP_PANEL_DATA);\n private readonly cdr = inject(ChangeDetectorRef);\n\n updatePlacement(placement: string, arrowClass: string): void {\n this.data.placement = placement;\n this.data.arrowClass = arrowClass;\n this.cdr.markForCheck();\n }\n}\n","<div\n class=\"solaris-tooltip-panel__container\"\n [attr.data-appearance]=\"data.appearance\"\n [attr.data-size]=\"data.size\"\n [attr.data-radius]=\"data.radius\"\n [attr.data-placement]=\"data.placement\"\n [id]=\"data.panelId\"\n [style.max-width]=\"data.maxWidth\"\n>\n @if (data.arrow) {\n <div class=\"solaris-tooltip-panel__arrow {{ data.arrowClass }}\"></div>\n }\n\n <div class=\"solaris-tooltip-panel__content\">\n @if (data.icon) {\n <solaris-icon\n [name]=\"data.icon\"\n [decorative]=\"data.iconDecorative\"\n class=\"solaris-tooltip-panel__icon\"\n />\n }\n\n <div class=\"solaris-tooltip-panel__text\">\n @if (data.title) {\n <div class=\"solaris-tooltip-panel__title\">{{ data.title }}</div>\n }\n\n @if (data.body) {\n <div class=\"solaris-tooltip-panel__body\">{{ data.body }}</div>\n }\n\n @if (data.contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"data.contentTemplate\" />\n }\n </div>\n </div>\n\n @if (data.closeable) {\n <button\n class=\"solaris-tooltip-panel__close\"\n type=\"button\"\n (click)=\"data.close()\"\n attr.aria-label=\"{{ data.closeLabel }}\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n }\n</div>\n"]}
|
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import { Directive, ElementRef, Injector, ViewContainerRef, computed, effect, inject, input, output, signal, DestroyRef, HostListener, booleanAttribute, numberAttribute, NgZone, } from '@angular/core';
|
|
2
|
-
import { DOCUMENT } from '@angular/common';
|
|
3
|
-
import { Overlay, OverlayConfig, } from '@angular/cdk/overlay';
|
|
4
|
-
import { ComponentPortal } from '@angular/cdk/portal';
|
|
5
|
-
import { SolarisTranslateService } from '../../../../services/translation';
|
|
6
|
-
import { SolarisTooltipPanelComponent } from '../component/tooltip-panel.component';
|
|
7
|
-
import { SOLARIS_TOOLTIP_PANEL_DATA, } from '../token/tooltip.tokens';
|
|
8
|
-
import { getTooltipPositions, getTooltipArrowClass, derivePlacementFromConnectionPair, } from '../model/tooltip-position';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
let nextPanelId = 0;
|
|
11
|
-
const TOOLTIP_TRIGGER_GAP = 3;
|
|
12
|
-
const ARROW_SIZE_PX = {
|
|
13
|
-
sm: 12,
|
|
14
|
-
md: 20,
|
|
15
|
-
lg: 24,
|
|
16
|
-
};
|
|
17
|
-
export class SolarisTooltipDirective {
|
|
18
|
-
overlay = inject(Overlay);
|
|
19
|
-
elementRef = inject(ElementRef);
|
|
20
|
-
viewContainerRef = inject(ViewContainerRef);
|
|
21
|
-
injector = inject(Injector);
|
|
22
|
-
document = inject(DOCUMENT);
|
|
23
|
-
destroyRef = inject(DestroyRef);
|
|
24
|
-
translate = inject(SolarisTranslateService);
|
|
25
|
-
ngZone = inject(NgZone);
|
|
26
|
-
panelId = `solaris-tooltip-panel-${++nextPanelId}`;
|
|
27
|
-
isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
28
|
-
isClickTrigger = computed(() => this.solarisTooltipTrigger() === 'click', ...(ngDevMode ? [{ debugName: "isClickTrigger" }] : /* istanbul ignore next */ []));
|
|
29
|
-
overlayRef = null;
|
|
30
|
-
outsideClickCleanup = null;
|
|
31
|
-
previousActiveElement = null;
|
|
32
|
-
hoverTimeout = null;
|
|
33
|
-
isHovered = false;
|
|
34
|
-
isFocused = false;
|
|
35
|
-
tooltipComponentRef = null;
|
|
36
|
-
positionChangesSub = null;
|
|
37
|
-
currentPlacement = 'top';
|
|
38
|
-
solarisTooltip = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltip" } : /* istanbul ignore next */ {}), alias: 'solarisTooltip' });
|
|
39
|
-
solarisTooltipKey = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipKey" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipKey' });
|
|
40
|
-
solarisTooltipFor = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipFor" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipFor' });
|
|
41
|
-
solarisTooltipTitle = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipTitle" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipTitle' });
|
|
42
|
-
solarisTooltipTitleKey = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipTitleKey" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipTitleKey' });
|
|
43
|
-
solarisTooltipIcon = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipIcon" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipIcon' });
|
|
44
|
-
solarisTooltipIconDecorative = input(true, { ...(ngDevMode ? { debugName: "solarisTooltipIconDecorative" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipIconDecorative',
|
|
45
|
-
transform: booleanAttribute });
|
|
46
|
-
solarisTooltipTrigger = input('hover', { ...(ngDevMode ? { debugName: "solarisTooltipTrigger" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipTrigger' });
|
|
47
|
-
solarisTooltipPlacement = input('top', { ...(ngDevMode ? { debugName: "solarisTooltipPlacement" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipPlacement' });
|
|
48
|
-
solarisTooltipOffset = input(0, { ...(ngDevMode ? { debugName: "solarisTooltipOffset" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipOffset',
|
|
49
|
-
transform: numberAttribute });
|
|
50
|
-
solarisTooltipDisabled = input(false, { ...(ngDevMode ? { debugName: "solarisTooltipDisabled" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipDisabled',
|
|
51
|
-
transform: booleanAttribute });
|
|
52
|
-
solarisTooltipCloseable = input(false, { ...(ngDevMode ? { debugName: "solarisTooltipCloseable" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipCloseable',
|
|
53
|
-
transform: booleanAttribute });
|
|
54
|
-
solarisTooltipCloseLabel = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipCloseLabel" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipCloseLabel' });
|
|
55
|
-
solarisTooltipCloseLabelKey = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipCloseLabelKey" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipCloseLabelKey' });
|
|
56
|
-
solarisTooltipShowDelay = input(300, { ...(ngDevMode ? { debugName: "solarisTooltipShowDelay" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipShowDelay',
|
|
57
|
-
transform: numberAttribute });
|
|
58
|
-
solarisTooltipHideDelay = input(100, { ...(ngDevMode ? { debugName: "solarisTooltipHideDelay" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipHideDelay',
|
|
59
|
-
transform: numberAttribute });
|
|
60
|
-
solarisTooltipAppearance = input('outline', { ...(ngDevMode ? { debugName: "solarisTooltipAppearance" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipAppearance' });
|
|
61
|
-
solarisTooltipSize = input('sm', { ...(ngDevMode ? { debugName: "solarisTooltipSize" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipSize' });
|
|
62
|
-
solarisTooltipRadius = input('md', { ...(ngDevMode ? { debugName: "solarisTooltipRadius" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipRadius' });
|
|
63
|
-
solarisTooltipMaxWidth = input('20rem', { ...(ngDevMode ? { debugName: "solarisTooltipMaxWidth" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipMaxWidth' });
|
|
64
|
-
solarisTooltipArrow = input(true, { ...(ngDevMode ? { debugName: "solarisTooltipArrow" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipArrow',
|
|
65
|
-
transform: booleanAttribute });
|
|
66
|
-
solarisTooltipOpen = input(undefined, { ...(ngDevMode ? { debugName: "solarisTooltipOpen" } : /* istanbul ignore next */ {}), alias: 'solarisTooltipOpen' });
|
|
67
|
-
solarisTooltipOpened = output();
|
|
68
|
-
solarisTooltipClosed = output();
|
|
69
|
-
solarisTooltipOpenChange = output();
|
|
70
|
-
constructor() {
|
|
71
|
-
effect(() => {
|
|
72
|
-
const shouldBeOpen = this.solarisTooltipOpen();
|
|
73
|
-
if (shouldBeOpen === true && !this.isOpen()) {
|
|
74
|
-
this.open();
|
|
75
|
-
}
|
|
76
|
-
else if (shouldBeOpen === false && this.isOpen()) {
|
|
77
|
-
this.close();
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
this.destroyRef.onDestroy(() => {
|
|
81
|
-
this.disposeOverlay();
|
|
82
|
-
this.clearHoverTimeout();
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
ngAfterViewInit() {
|
|
86
|
-
if (!this.solarisTooltip() &&
|
|
87
|
-
!this.solarisTooltipKey() &&
|
|
88
|
-
!this.solarisTooltipFor()) {
|
|
89
|
-
console.warn('[SolarisTooltip] Tooltip requires solaris-tooltip, solarisTooltip, solarisTooltipKey, or solarisTooltipFor.');
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
onMouseEnter() {
|
|
93
|
-
this.isHovered = true;
|
|
94
|
-
if (this.solarisTooltipTrigger() === 'hover' &&
|
|
95
|
-
!this.solarisTooltipDisabled()) {
|
|
96
|
-
this.scheduleOpen(Number(this.solarisTooltipShowDelay()));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
onMouseLeave() {
|
|
100
|
-
this.isHovered = false;
|
|
101
|
-
if (this.solarisTooltipTrigger() === 'hover') {
|
|
102
|
-
this.scheduleClose(Number(this.solarisTooltipHideDelay()));
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
onFocusIn() {
|
|
106
|
-
this.isFocused = true;
|
|
107
|
-
if (this.solarisTooltipTrigger() === 'hover' &&
|
|
108
|
-
!this.solarisTooltipDisabled()) {
|
|
109
|
-
this.scheduleOpen(Number(this.solarisTooltipShowDelay()));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
onFocusOut() {
|
|
113
|
-
this.isFocused = false;
|
|
114
|
-
if (this.solarisTooltipTrigger() === 'hover') {
|
|
115
|
-
this.scheduleClose(Number(this.solarisTooltipHideDelay()));
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
onClick() {
|
|
119
|
-
if (this.solarisTooltipDisabled()) {
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
if (this.solarisTooltipTrigger() === 'click') {
|
|
123
|
-
this.toggle();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
onEscape() {
|
|
127
|
-
if (this.isOpen() && this.solarisTooltipTrigger() !== 'manual') {
|
|
128
|
-
this.close();
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
open() {
|
|
132
|
-
if (this.isOpen() || this.solarisTooltipDisabled()) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
this.clearHoverTimeout();
|
|
136
|
-
if (this.solarisTooltipTrigger() === 'click') {
|
|
137
|
-
// SECURITY_EXCEPTION: this.document.activeElement required for restoreFocus. SSR-safe via injected DOCUMENT.
|
|
138
|
-
this.previousActiveElement = this.document.activeElement;
|
|
139
|
-
}
|
|
140
|
-
this.createOverlay();
|
|
141
|
-
this.attachPanel();
|
|
142
|
-
this.addOutsideClickHandler();
|
|
143
|
-
this.isOpen.set(true);
|
|
144
|
-
this.solarisTooltipOpened.emit();
|
|
145
|
-
this.solarisTooltipOpenChange.emit(true);
|
|
146
|
-
}
|
|
147
|
-
close() {
|
|
148
|
-
if (!this.isOpen()) {
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
this.clearHoverTimeout();
|
|
152
|
-
this.detachPanel();
|
|
153
|
-
this.restoreFocus();
|
|
154
|
-
this.isOpen.set(false);
|
|
155
|
-
this.solarisTooltipClosed.emit();
|
|
156
|
-
this.solarisTooltipOpenChange.emit(false);
|
|
157
|
-
}
|
|
158
|
-
toggle() {
|
|
159
|
-
if (this.isOpen()) {
|
|
160
|
-
this.close();
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
this.open();
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
reposition() {
|
|
167
|
-
if (this.overlayRef) {
|
|
168
|
-
this.overlayRef.updatePosition();
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
getResolvedBody() {
|
|
172
|
-
const text = this.solarisTooltip();
|
|
173
|
-
if (text) {
|
|
174
|
-
return text;
|
|
175
|
-
}
|
|
176
|
-
const key = this.solarisTooltipKey();
|
|
177
|
-
if (key) {
|
|
178
|
-
return this.translate.translate(key);
|
|
179
|
-
}
|
|
180
|
-
return undefined;
|
|
181
|
-
}
|
|
182
|
-
getResolvedTitle() {
|
|
183
|
-
const title = this.solarisTooltipTitle();
|
|
184
|
-
if (title) {
|
|
185
|
-
return title;
|
|
186
|
-
}
|
|
187
|
-
const titleKey = this.solarisTooltipTitleKey();
|
|
188
|
-
if (titleKey) {
|
|
189
|
-
return this.translate.translate(titleKey);
|
|
190
|
-
}
|
|
191
|
-
return undefined;
|
|
192
|
-
}
|
|
193
|
-
getResolvedCloseLabel() {
|
|
194
|
-
const closeLabel = this.solarisTooltipCloseLabel();
|
|
195
|
-
if (closeLabel) {
|
|
196
|
-
return closeLabel;
|
|
197
|
-
}
|
|
198
|
-
const closeLabelKey = this.solarisTooltipCloseLabelKey();
|
|
199
|
-
if (closeLabelKey) {
|
|
200
|
-
return this.translate.translate(closeLabelKey);
|
|
201
|
-
}
|
|
202
|
-
return this.translate.translate('solaris.tooltip.close');
|
|
203
|
-
}
|
|
204
|
-
scheduleOpen(delay) {
|
|
205
|
-
this.clearHoverTimeout();
|
|
206
|
-
if (delay > 0) {
|
|
207
|
-
this.hoverTimeout = setTimeout(() => {
|
|
208
|
-
this.ngZone.run(() => {
|
|
209
|
-
if ((this.isHovered || this.isFocused) && !this.isOpen()) {
|
|
210
|
-
this.open();
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
}, delay);
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
this.open();
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
scheduleClose(delay) {
|
|
220
|
-
this.clearHoverTimeout();
|
|
221
|
-
if (this.solarisTooltipTrigger() !== 'hover') {
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
if (delay > 0) {
|
|
225
|
-
this.hoverTimeout = setTimeout(() => {
|
|
226
|
-
this.ngZone.run(() => {
|
|
227
|
-
if (!this.isHovered && !this.isFocused && this.isOpen()) {
|
|
228
|
-
this.close();
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
}, delay);
|
|
232
|
-
}
|
|
233
|
-
else if (!this.isHovered && !this.isFocused) {
|
|
234
|
-
this.close();
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
clearHoverTimeout() {
|
|
238
|
-
if (this.hoverTimeout !== null) {
|
|
239
|
-
clearTimeout(this.hoverTimeout);
|
|
240
|
-
this.hoverTimeout = null;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
createOverlay() {
|
|
244
|
-
this.disposeOverlay();
|
|
245
|
-
const positionStrategy = this.createPositionStrategy();
|
|
246
|
-
const scrollStrategy = this.overlay.scrollStrategies.reposition();
|
|
247
|
-
const config = new OverlayConfig({
|
|
248
|
-
positionStrategy,
|
|
249
|
-
scrollStrategy,
|
|
250
|
-
disposeOnNavigation: true,
|
|
251
|
-
panelClass: 'solaris-tooltip-panel-overlay',
|
|
252
|
-
});
|
|
253
|
-
this.overlayRef = this.overlay.create(config);
|
|
254
|
-
}
|
|
255
|
-
createPositionStrategy() {
|
|
256
|
-
const placement = this.solarisTooltipPlacement();
|
|
257
|
-
const userOffset = Number(this.solarisTooltipOffset());
|
|
258
|
-
const hasArrow = this.solarisTooltipArrow();
|
|
259
|
-
const size = this.solarisTooltipSize();
|
|
260
|
-
const arrowPx = hasArrow ? (ARROW_SIZE_PX[size] ?? 20) : 0;
|
|
261
|
-
const effectiveOffset = arrowPx + TOOLTIP_TRIGGER_GAP + userOffset;
|
|
262
|
-
const positions = getTooltipPositions(placement, effectiveOffset);
|
|
263
|
-
return this.overlay
|
|
264
|
-
.position()
|
|
265
|
-
.flexibleConnectedTo(this.elementRef)
|
|
266
|
-
.withPositions(positions)
|
|
267
|
-
.withFlexibleDimensions(true)
|
|
268
|
-
.withPush(true)
|
|
269
|
-
.withGrowAfterOpen(true);
|
|
270
|
-
}
|
|
271
|
-
attachPanel() {
|
|
272
|
-
if (!this.overlayRef) {
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
this.currentPlacement = this.solarisTooltipPlacement();
|
|
276
|
-
const trigger = this.solarisTooltipTrigger();
|
|
277
|
-
const effectiveCloseable = trigger === 'click' ? this.solarisTooltipCloseable() : false;
|
|
278
|
-
const closeFn = () => this.close();
|
|
279
|
-
const data = {
|
|
280
|
-
title: this.getResolvedTitle(),
|
|
281
|
-
body: this.getResolvedBody(),
|
|
282
|
-
icon: this.solarisTooltipIcon(),
|
|
283
|
-
iconDecorative: this.solarisTooltipIconDecorative(),
|
|
284
|
-
contentTemplate: this.solarisTooltipFor(),
|
|
285
|
-
appearance: this.solarisTooltipAppearance(),
|
|
286
|
-
size: this.solarisTooltipSize(),
|
|
287
|
-
radius: this.solarisTooltipRadius(),
|
|
288
|
-
maxWidth: this.solarisTooltipMaxWidth(),
|
|
289
|
-
arrow: this.solarisTooltipArrow(),
|
|
290
|
-
arrowClass: getTooltipArrowClass(this.currentPlacement),
|
|
291
|
-
closeable: effectiveCloseable,
|
|
292
|
-
closeLabel: this.getResolvedCloseLabel(),
|
|
293
|
-
panelId: this.panelId,
|
|
294
|
-
placement: this.currentPlacement,
|
|
295
|
-
trigger,
|
|
296
|
-
close: closeFn,
|
|
297
|
-
};
|
|
298
|
-
const panelInjector = Injector.create({
|
|
299
|
-
parent: this.injector,
|
|
300
|
-
providers: [{ provide: SOLARIS_TOOLTIP_PANEL_DATA, useValue: data }],
|
|
301
|
-
});
|
|
302
|
-
const portal = new ComponentPortal(SolarisTooltipPanelComponent, this.viewContainerRef, panelInjector);
|
|
303
|
-
this.tooltipComponentRef = this.overlayRef.attach(portal);
|
|
304
|
-
const strategy = this.overlayRef.getConfig()
|
|
305
|
-
.positionStrategy;
|
|
306
|
-
this.positionChangesSub = strategy.positionChanges.subscribe((change) => {
|
|
307
|
-
const actualPlacement = derivePlacementFromConnectionPair(change.connectionPair);
|
|
308
|
-
if (actualPlacement !== this.currentPlacement) {
|
|
309
|
-
this.currentPlacement = actualPlacement;
|
|
310
|
-
this.tooltipComponentRef?.instance.updatePlacement(actualPlacement, getTooltipArrowClass(actualPlacement));
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
detachPanel() {
|
|
315
|
-
if (this.overlayRef) {
|
|
316
|
-
this.overlayRef.detach();
|
|
317
|
-
this.disposeOverlay();
|
|
318
|
-
}
|
|
319
|
-
this.removeOutsideClickHandler();
|
|
320
|
-
}
|
|
321
|
-
disposeOverlay() {
|
|
322
|
-
this.positionChangesSub?.unsubscribe();
|
|
323
|
-
this.positionChangesSub = null;
|
|
324
|
-
this.tooltipComponentRef = null;
|
|
325
|
-
if (this.overlayRef) {
|
|
326
|
-
this.overlayRef.dispose();
|
|
327
|
-
this.overlayRef = null;
|
|
328
|
-
}
|
|
329
|
-
this.removeOutsideClickHandler();
|
|
330
|
-
}
|
|
331
|
-
addOutsideClickHandler() {
|
|
332
|
-
if (this.solarisTooltipTrigger() !== 'click') {
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
this.removeOutsideClickHandler();
|
|
336
|
-
this.outsideClickCleanup = this.rendererListen(this.document, 'click', this.handleOutsideClick);
|
|
337
|
-
}
|
|
338
|
-
removeOutsideClickHandler() {
|
|
339
|
-
if (this.outsideClickCleanup) {
|
|
340
|
-
this.outsideClickCleanup();
|
|
341
|
-
this.outsideClickCleanup = null;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
handleOutsideClick = (event) => {
|
|
345
|
-
if (!this.overlayRef) {
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
const overlayElement = this.overlayRef.overlayElement;
|
|
349
|
-
// SECURITY_EXCEPTION: nativeElement needed for outside-click containment check. ElementRef SSR-safe.
|
|
350
|
-
const triggerElement = this.elementRef.nativeElement;
|
|
351
|
-
const target = event.target;
|
|
352
|
-
if (target &&
|
|
353
|
-
!overlayElement.contains(target) &&
|
|
354
|
-
!triggerElement.contains(target)) {
|
|
355
|
-
this.close();
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
rendererListen(target, event, callback) {
|
|
359
|
-
target.addEventListener(event, callback);
|
|
360
|
-
return () => {
|
|
361
|
-
target.removeEventListener(event, callback);
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
restoreFocus() {
|
|
365
|
-
if (this.solarisTooltipTrigger() === 'click' &&
|
|
366
|
-
this.previousActiveElement &&
|
|
367
|
-
// SECURITY_EXCEPTION: this.document.contains() to safely verify trigger still exists before focus.
|
|
368
|
-
this.document.contains(this.previousActiveElement)) {
|
|
369
|
-
this.previousActiveElement.focus();
|
|
370
|
-
}
|
|
371
|
-
this.previousActiveElement = null;
|
|
372
|
-
}
|
|
373
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
374
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.17", type: SolarisTooltipDirective, isStandalone: true, selector: "[solaris-tooltip], [solarisTooltip], [solarisTooltipFor]", inputs: { solarisTooltip: { classPropertyName: "solarisTooltip", publicName: "solarisTooltip", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipKey: { classPropertyName: "solarisTooltipKey", publicName: "solarisTooltipKey", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipFor: { classPropertyName: "solarisTooltipFor", publicName: "solarisTooltipFor", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipTitle: { classPropertyName: "solarisTooltipTitle", publicName: "solarisTooltipTitle", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipTitleKey: { classPropertyName: "solarisTooltipTitleKey", publicName: "solarisTooltipTitleKey", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipIcon: { classPropertyName: "solarisTooltipIcon", publicName: "solarisTooltipIcon", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipIconDecorative: { classPropertyName: "solarisTooltipIconDecorative", publicName: "solarisTooltipIconDecorative", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipTrigger: { classPropertyName: "solarisTooltipTrigger", publicName: "solarisTooltipTrigger", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipPlacement: { classPropertyName: "solarisTooltipPlacement", publicName: "solarisTooltipPlacement", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipOffset: { classPropertyName: "solarisTooltipOffset", publicName: "solarisTooltipOffset", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipDisabled: { classPropertyName: "solarisTooltipDisabled", publicName: "solarisTooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipCloseable: { classPropertyName: "solarisTooltipCloseable", publicName: "solarisTooltipCloseable", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipCloseLabel: { classPropertyName: "solarisTooltipCloseLabel", publicName: "solarisTooltipCloseLabel", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipCloseLabelKey: { classPropertyName: "solarisTooltipCloseLabelKey", publicName: "solarisTooltipCloseLabelKey", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipShowDelay: { classPropertyName: "solarisTooltipShowDelay", publicName: "solarisTooltipShowDelay", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipHideDelay: { classPropertyName: "solarisTooltipHideDelay", publicName: "solarisTooltipHideDelay", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipAppearance: { classPropertyName: "solarisTooltipAppearance", publicName: "solarisTooltipAppearance", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipSize: { classPropertyName: "solarisTooltipSize", publicName: "solarisTooltipSize", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipRadius: { classPropertyName: "solarisTooltipRadius", publicName: "solarisTooltipRadius", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipMaxWidth: { classPropertyName: "solarisTooltipMaxWidth", publicName: "solarisTooltipMaxWidth", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipArrow: { classPropertyName: "solarisTooltipArrow", publicName: "solarisTooltipArrow", isSignal: true, isRequired: false, transformFunction: null }, solarisTooltipOpen: { classPropertyName: "solarisTooltipOpen", publicName: "solarisTooltipOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { solarisTooltipOpened: "solarisTooltipOpened", solarisTooltipClosed: "solarisTooltipClosed", solarisTooltipOpenChange: "solarisTooltipOpenChange" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "focusin": "onFocusIn()", "focusout": "onFocusOut()", "click": "onClick()", "keydown.escape": "onEscape()" }, properties: { "attr.aria-describedby": "isOpen() && !isClickTrigger() ? panelId : null" } }, exportAs: ["solarisTooltip"], ngImport: i0 });
|
|
375
|
-
}
|
|
376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTooltipDirective, decorators: [{
|
|
377
|
-
type: Directive,
|
|
378
|
-
args: [{
|
|
379
|
-
selector: '[solaris-tooltip], [solarisTooltip], [solarisTooltipFor]',
|
|
380
|
-
standalone: true,
|
|
381
|
-
exportAs: 'solarisTooltip',
|
|
382
|
-
host: {
|
|
383
|
-
'[attr.aria-describedby]': 'isOpen() && !isClickTrigger() ? panelId : null',
|
|
384
|
-
},
|
|
385
|
-
}]
|
|
386
|
-
}], ctorParameters: () => [], propDecorators: { solarisTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltip", required: false }] }], solarisTooltipKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipKey", required: false }] }], solarisTooltipFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipFor", required: false }] }], solarisTooltipTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipTitle", required: false }] }], solarisTooltipTitleKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipTitleKey", required: false }] }], solarisTooltipIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipIcon", required: false }] }], solarisTooltipIconDecorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipIconDecorative", required: false }] }], solarisTooltipTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipTrigger", required: false }] }], solarisTooltipPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipPlacement", required: false }] }], solarisTooltipOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipOffset", required: false }] }], solarisTooltipDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipDisabled", required: false }] }], solarisTooltipCloseable: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipCloseable", required: false }] }], solarisTooltipCloseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipCloseLabel", required: false }] }], solarisTooltipCloseLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipCloseLabelKey", required: false }] }], solarisTooltipShowDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipShowDelay", required: false }] }], solarisTooltipHideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipHideDelay", required: false }] }], solarisTooltipAppearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipAppearance", required: false }] }], solarisTooltipSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipSize", required: false }] }], solarisTooltipRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipRadius", required: false }] }], solarisTooltipMaxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipMaxWidth", required: false }] }], solarisTooltipArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipArrow", required: false }] }], solarisTooltipOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "solarisTooltipOpen", required: false }] }], solarisTooltipOpened: [{ type: i0.Output, args: ["solarisTooltipOpened"] }], solarisTooltipClosed: [{ type: i0.Output, args: ["solarisTooltipClosed"] }], solarisTooltipOpenChange: [{ type: i0.Output, args: ["solarisTooltipOpenChange"] }], onMouseEnter: [{
|
|
387
|
-
type: HostListener,
|
|
388
|
-
args: ['mouseenter']
|
|
389
|
-
}], onMouseLeave: [{
|
|
390
|
-
type: HostListener,
|
|
391
|
-
args: ['mouseleave']
|
|
392
|
-
}], onFocusIn: [{
|
|
393
|
-
type: HostListener,
|
|
394
|
-
args: ['focusin']
|
|
395
|
-
}], onFocusOut: [{
|
|
396
|
-
type: HostListener,
|
|
397
|
-
args: ['focusout']
|
|
398
|
-
}], onClick: [{
|
|
399
|
-
type: HostListener,
|
|
400
|
-
args: ['click']
|
|
401
|
-
}], onEscape: [{
|
|
402
|
-
type: HostListener,
|
|
403
|
-
args: ['keydown.escape']
|
|
404
|
-
}] } });
|
|
405
|
-
//# sourceMappingURL=tooltip.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.directive.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/interaction/tooltip/directive/tooltip.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,gBAAgB,EAEhB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,EACN,UAAU,EACV,YAAY,EAGZ,gBAAgB,EAChB,eAAe,EACf,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,OAAO,EAEP,aAAa,GAGd,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uBAAC,YAAY;;sBAQzB,YAAY;uBAAC,SAAS;;sBAWtB,YAAY;uBAAC,UAAU;;sBAQvB,YAAY;uBAAC,OAAO;;sBAWpB,YAAY;uBAAC,gBAAgB","sourcesContent":["import {\n Directive,\n ElementRef,\n Injector,\n ViewContainerRef,\n ComponentRef,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n DestroyRef,\n HostListener,\n TemplateRef,\n AfterViewInit,\n booleanAttribute,\n numberAttribute,\n NgZone,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport {\n Overlay,\n OverlayRef,\n OverlayConfig,\n FlexibleConnectedPositionStrategy,\n type ConnectedOverlayPositionChange,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { Subscription } from 'rxjs';\n\nimport { SolarisTranslateService } from '../../../../services/translation';\n\nimport { SolarisTooltipPanelComponent } from '../component/tooltip-panel.component';\nimport {\n SOLARIS_TOOLTIP_PANEL_DATA,\n type SolarisTooltipPanelData,\n} from '../token/tooltip.tokens';\nimport {\n getTooltipPositions,\n getTooltipArrowClass,\n derivePlacementFromConnectionPair,\n} from '../model/tooltip-position';\n\nimport type {\n SolarisTooltipPlacement,\n SolarisTooltipTrigger,\n SolarisTooltipAppearance,\n SolarisTooltipSize,\n SolarisTooltipRadius,\n} from '../model/tooltip.types';\n\nlet nextPanelId = 0;\n\nconst TOOLTIP_TRIGGER_GAP = 3;\n\nconst ARROW_SIZE_PX: Record<string, number> = {\n sm: 12,\n md: 20,\n lg: 24,\n};\n\n@Directive({\n selector: '[solaris-tooltip], [solarisTooltip], [solarisTooltipFor]',\n standalone: true,\n exportAs: 'solarisTooltip',\n host: {\n '[attr.aria-describedby]': 'isOpen() && !isClickTrigger() ? panelId : null',\n },\n})\nexport class SolarisTooltipDirective implements AfterViewInit {\n private readonly overlay = inject(Overlay);\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly injector = inject(Injector);\n private readonly document = inject(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly translate = inject(SolarisTranslateService);\n private readonly ngZone = inject(NgZone);\n\n protected readonly panelId = `solaris-tooltip-panel-${++nextPanelId}`;\n protected readonly isOpen = signal(false);\n protected readonly isClickTrigger = computed(\n () => this.solarisTooltipTrigger() === 'click',\n );\n\n private overlayRef: OverlayRef | null = null;\n private outsideClickCleanup: (() => void) | null = null;\n private previousActiveElement: HTMLElement | null = null;\n private hoverTimeout: ReturnType<typeof setTimeout> | null = null;\n private isHovered = false;\n private isFocused = false;\n private tooltipComponentRef: ComponentRef<SolarisTooltipPanelComponent> | null =\n null;\n private positionChangesSub: Subscription | null = null;\n private currentPlacement: SolarisTooltipPlacement = 'top';\n\n readonly solarisTooltip = input<string | undefined>(undefined, {\n alias: 'solarisTooltip',\n });\n\n readonly solarisTooltipKey = input<string | undefined>(undefined, {\n alias: 'solarisTooltipKey',\n });\n\n readonly solarisTooltipFor = input<TemplateRef<unknown> | undefined>(\n undefined,\n {\n alias: 'solarisTooltipFor',\n },\n );\n\n readonly solarisTooltipTitle = input<string | undefined>(undefined, {\n alias: 'solarisTooltipTitle',\n });\n\n readonly solarisTooltipTitleKey = input<string | undefined>(undefined, {\n alias: 'solarisTooltipTitleKey',\n });\n\n readonly solarisTooltipIcon = input<string | undefined>(undefined, {\n alias: 'solarisTooltipIcon',\n });\n\n readonly solarisTooltipIconDecorative = input<boolean, boolean>(true, {\n alias: 'solarisTooltipIconDecorative',\n transform: booleanAttribute,\n });\n\n readonly solarisTooltipTrigger = input<SolarisTooltipTrigger>('hover', {\n alias: 'solarisTooltipTrigger',\n });\n\n readonly solarisTooltipPlacement = input<SolarisTooltipPlacement>('top', {\n alias: 'solarisTooltipPlacement',\n });\n\n readonly solarisTooltipOffset = input<number, string | number>(0, {\n alias: 'solarisTooltipOffset',\n transform: numberAttribute,\n });\n\n readonly solarisTooltipDisabled = input<boolean, boolean>(false, {\n alias: 'solarisTooltipDisabled',\n transform: booleanAttribute,\n });\n\n readonly solarisTooltipCloseable = input<boolean, boolean>(false, {\n alias: 'solarisTooltipCloseable',\n transform: booleanAttribute,\n });\n\n readonly solarisTooltipCloseLabel = input<string | undefined>(undefined, {\n alias: 'solarisTooltipCloseLabel',\n });\n\n readonly solarisTooltipCloseLabelKey = input<string | undefined>(undefined, {\n alias: 'solarisTooltipCloseLabelKey',\n });\n\n readonly solarisTooltipShowDelay = input<number, string | number>(300, {\n alias: 'solarisTooltipShowDelay',\n transform: numberAttribute,\n });\n\n readonly solarisTooltipHideDelay = input<number, string | number>(100, {\n alias: 'solarisTooltipHideDelay',\n transform: numberAttribute,\n });\n\n readonly solarisTooltipAppearance = input<SolarisTooltipAppearance>(\n 'outline',\n {\n alias: 'solarisTooltipAppearance',\n },\n );\n\n readonly solarisTooltipSize = input<SolarisTooltipSize>('sm', {\n alias: 'solarisTooltipSize',\n });\n\n readonly solarisTooltipRadius = input<SolarisTooltipRadius>('md', {\n alias: 'solarisTooltipRadius',\n });\n\n readonly solarisTooltipMaxWidth = input<string | number>('20rem', {\n alias: 'solarisTooltipMaxWidth',\n });\n\n readonly solarisTooltipArrow = input<boolean, boolean>(true, {\n alias: 'solarisTooltipArrow',\n transform: booleanAttribute,\n });\n\n readonly solarisTooltipOpen = input<boolean | undefined>(undefined, {\n alias: 'solarisTooltipOpen',\n });\n\n readonly solarisTooltipOpened = output<void>();\n readonly solarisTooltipClosed = output<void>();\n readonly solarisTooltipOpenChange = output<boolean>();\n\n constructor() {\n effect(() => {\n const shouldBeOpen = this.solarisTooltipOpen();\n if (shouldBeOpen === true && !this.isOpen()) {\n this.open();\n } else if (shouldBeOpen === false && this.isOpen()) {\n this.close();\n }\n });\n\n this.destroyRef.onDestroy(() => {\n this.disposeOverlay();\n this.clearHoverTimeout();\n });\n }\n\n ngAfterViewInit(): void {\n if (\n !this.solarisTooltip() &&\n !this.solarisTooltipKey() &&\n !this.solarisTooltipFor()\n ) {\n console.warn(\n '[SolarisTooltip] Tooltip requires solaris-tooltip, solarisTooltip, solarisTooltipKey, or solarisTooltipFor.',\n );\n }\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n this.isHovered = true;\n if (\n this.solarisTooltipTrigger() === 'hover' &&\n !this.solarisTooltipDisabled()\n ) {\n this.scheduleOpen(Number(this.solarisTooltipShowDelay()));\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n this.isHovered = false;\n if (this.solarisTooltipTrigger() === 'hover') {\n this.scheduleClose(Number(this.solarisTooltipHideDelay()));\n }\n }\n\n @HostListener('focusin')\n onFocusIn(): void {\n this.isFocused = true;\n if (\n this.solarisTooltipTrigger() === 'hover' &&\n !this.solarisTooltipDisabled()\n ) {\n this.scheduleOpen(Number(this.solarisTooltipShowDelay()));\n }\n }\n\n @HostListener('focusout')\n onFocusOut(): void {\n this.isFocused = false;\n if (this.solarisTooltipTrigger() === 'hover') {\n this.scheduleClose(Number(this.solarisTooltipHideDelay()));\n }\n }\n\n @HostListener('click')\n onClick(): void {\n if (this.solarisTooltipDisabled()) {\n return;\n }\n\n if (this.solarisTooltipTrigger() === 'click') {\n this.toggle();\n }\n }\n\n @HostListener('keydown.escape')\n onEscape(): void {\n if (this.isOpen() && this.solarisTooltipTrigger() !== 'manual') {\n this.close();\n }\n }\n\n open(): void {\n if (this.isOpen() || this.solarisTooltipDisabled()) {\n return;\n }\n\n this.clearHoverTimeout();\n\n if (this.solarisTooltipTrigger() === 'click') {\n // SECURITY_EXCEPTION: this.document.activeElement required for restoreFocus. SSR-safe via injected DOCUMENT.\n this.previousActiveElement = this.document.activeElement as HTMLElement;\n }\n\n this.createOverlay();\n this.attachPanel();\n this.addOutsideClickHandler();\n this.isOpen.set(true);\n this.solarisTooltipOpened.emit();\n this.solarisTooltipOpenChange.emit(true);\n }\n\n close(): void {\n if (!this.isOpen()) {\n return;\n }\n\n this.clearHoverTimeout();\n this.detachPanel();\n this.restoreFocus();\n this.isOpen.set(false);\n this.solarisTooltipClosed.emit();\n this.solarisTooltipOpenChange.emit(false);\n }\n\n toggle(): void {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n reposition(): void {\n if (this.overlayRef) {\n this.overlayRef.updatePosition();\n }\n }\n\n private getResolvedBody(): string | undefined {\n const text = this.solarisTooltip();\n if (text) {\n return text;\n }\n\n const key = this.solarisTooltipKey();\n if (key) {\n return this.translate.translate(key);\n }\n\n return undefined;\n }\n\n private getResolvedTitle(): string | undefined {\n const title = this.solarisTooltipTitle();\n if (title) {\n return title;\n }\n\n const titleKey = this.solarisTooltipTitleKey();\n if (titleKey) {\n return this.translate.translate(titleKey);\n }\n\n return undefined;\n }\n\n private getResolvedCloseLabel(): string {\n const closeLabel = this.solarisTooltipCloseLabel();\n if (closeLabel) {\n return closeLabel;\n }\n\n const closeLabelKey = this.solarisTooltipCloseLabelKey();\n if (closeLabelKey) {\n return this.translate.translate(closeLabelKey);\n }\n\n return this.translate.translate('solaris.tooltip.close');\n }\n\n private scheduleOpen(delay: number): void {\n this.clearHoverTimeout();\n if (delay > 0) {\n this.hoverTimeout = setTimeout(() => {\n this.ngZone.run(() => {\n if ((this.isHovered || this.isFocused) && !this.isOpen()) {\n this.open();\n }\n });\n }, delay);\n } else {\n this.open();\n }\n }\n\n private scheduleClose(delay: number): void {\n this.clearHoverTimeout();\n\n if (this.solarisTooltipTrigger() !== 'hover') {\n return;\n }\n\n if (delay > 0) {\n this.hoverTimeout = setTimeout(() => {\n this.ngZone.run(() => {\n if (!this.isHovered && !this.isFocused && this.isOpen()) {\n this.close();\n }\n });\n }, delay);\n } else if (!this.isHovered && !this.isFocused) {\n this.close();\n }\n }\n\n private clearHoverTimeout(): void {\n if (this.hoverTimeout !== null) {\n clearTimeout(this.hoverTimeout);\n this.hoverTimeout = null;\n }\n }\n\n private createOverlay(): void {\n this.disposeOverlay();\n\n const positionStrategy = this.createPositionStrategy();\n const scrollStrategy = this.overlay.scrollStrategies.reposition();\n\n const config = new OverlayConfig({\n positionStrategy,\n scrollStrategy,\n disposeOnNavigation: true,\n panelClass: 'solaris-tooltip-panel-overlay',\n });\n\n this.overlayRef = this.overlay.create(config);\n }\n\n private createPositionStrategy(): FlexibleConnectedPositionStrategy {\n const placement = this.solarisTooltipPlacement();\n const userOffset = Number(this.solarisTooltipOffset());\n const hasArrow = this.solarisTooltipArrow();\n const size = this.solarisTooltipSize();\n const arrowPx = hasArrow ? (ARROW_SIZE_PX[size] ?? 20) : 0;\n const effectiveOffset = arrowPx + TOOLTIP_TRIGGER_GAP + userOffset;\n const positions = getTooltipPositions(placement, effectiveOffset);\n\n return this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef)\n .withPositions(positions)\n .withFlexibleDimensions(true)\n .withPush(true)\n .withGrowAfterOpen(true);\n }\n\n private attachPanel(): void {\n if (!this.overlayRef) {\n return;\n }\n\n this.currentPlacement = this.solarisTooltipPlacement();\n const trigger = this.solarisTooltipTrigger();\n const effectiveCloseable =\n trigger === 'click' ? this.solarisTooltipCloseable() : false;\n const closeFn = () => this.close();\n\n const data: SolarisTooltipPanelData = {\n title: this.getResolvedTitle(),\n body: this.getResolvedBody(),\n icon: this.solarisTooltipIcon(),\n iconDecorative: this.solarisTooltipIconDecorative(),\n contentTemplate: this.solarisTooltipFor(),\n appearance: this.solarisTooltipAppearance(),\n size: this.solarisTooltipSize(),\n radius: this.solarisTooltipRadius(),\n maxWidth: this.solarisTooltipMaxWidth(),\n arrow: this.solarisTooltipArrow(),\n arrowClass: getTooltipArrowClass(this.currentPlacement),\n closeable: effectiveCloseable,\n closeLabel: this.getResolvedCloseLabel(),\n panelId: this.panelId,\n placement: this.currentPlacement,\n trigger,\n close: closeFn,\n };\n\n const panelInjector = Injector.create({\n parent: this.injector,\n providers: [{ provide: SOLARIS_TOOLTIP_PANEL_DATA, useValue: data }],\n });\n\n const portal = new ComponentPortal(\n SolarisTooltipPanelComponent,\n this.viewContainerRef,\n panelInjector,\n );\n\n this.tooltipComponentRef = this.overlayRef.attach(portal);\n\n const strategy = this.overlayRef.getConfig()\n .positionStrategy as FlexibleConnectedPositionStrategy;\n this.positionChangesSub = strategy.positionChanges.subscribe(\n (change: ConnectedOverlayPositionChange) => {\n const actualPlacement = derivePlacementFromConnectionPair(\n change.connectionPair,\n );\n if (actualPlacement !== this.currentPlacement) {\n this.currentPlacement = actualPlacement;\n this.tooltipComponentRef?.instance.updatePlacement(\n actualPlacement,\n getTooltipArrowClass(actualPlacement),\n );\n }\n },\n );\n }\n\n private detachPanel(): void {\n if (this.overlayRef) {\n this.overlayRef.detach();\n this.disposeOverlay();\n }\n this.removeOutsideClickHandler();\n }\n\n private disposeOverlay(): void {\n this.positionChangesSub?.unsubscribe();\n this.positionChangesSub = null;\n this.tooltipComponentRef = null;\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n this.removeOutsideClickHandler();\n }\n\n private addOutsideClickHandler(): void {\n if (this.solarisTooltipTrigger() !== 'click') {\n return;\n }\n\n this.removeOutsideClickHandler();\n\n this.outsideClickCleanup = this.rendererListen(\n this.document,\n 'click',\n this.handleOutsideClick,\n );\n }\n\n private removeOutsideClickHandler(): void {\n if (this.outsideClickCleanup) {\n this.outsideClickCleanup();\n this.outsideClickCleanup = null;\n }\n }\n\n private readonly handleOutsideClick = (event: Event): void => {\n if (!this.overlayRef) {\n return;\n }\n\n const overlayElement = this.overlayRef.overlayElement;\n // SECURITY_EXCEPTION: nativeElement needed for outside-click containment check. ElementRef SSR-safe.\n const triggerElement = this.elementRef.nativeElement;\n const target = event.target as Node;\n\n if (\n target &&\n !overlayElement.contains(target) &&\n !triggerElement.contains(target)\n ) {\n this.close();\n }\n };\n\n private rendererListen(\n target: EventTarget,\n event: string,\n callback: (event: Event) => void,\n ): () => void {\n target.addEventListener(event, callback);\n return () => {\n target.removeEventListener(event, callback);\n };\n }\n\n private restoreFocus(): void {\n if (\n this.solarisTooltipTrigger() === 'click' &&\n this.previousActiveElement &&\n // SECURITY_EXCEPTION: this.document.contains() to safely verify trigger still exists before focus.\n this.document.contains(this.previousActiveElement)\n ) {\n this.previousActiveElement.focus();\n }\n this.previousActiveElement = null;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/components/interaction/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { SolarisTooltipDirective } from './directive/tooltip.directive';\nexport { SolarisTooltipPanelComponent } from './component/tooltip-panel.component';\n\nexport type {\n SolarisTooltipPlacement,\n SolarisTooltipTrigger,\n SolarisTooltipAppearance,\n SolarisTooltipSize,\n SolarisTooltipRadius,\n SolarisTooltipConfig,\n} from './model/tooltip.types';\n"]}
|