@educarehq/solaris-ui 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/educarehq-solaris-ui.mjs +12261 -0
- package/fesm2022/educarehq-solaris-ui.mjs.map +1 -0
- package/package.json +5 -5
- package/styles/_button.scss +510 -510
- package/styles/_dropdown-menu.scss +72 -72
- package/styles/_icon-button.scss +481 -481
- package/styles/_input.scss +255 -255
- package/styles/_popover.scss +73 -73
- package/styles/_theme.scss +46 -36
- package/styles/_toast.scss +9 -9
- package/styles/_tooltip.scss +3 -3
- package/styles/token/border/_border.scss +5 -0
- package/styles/token/border/_index.scss +1 -0
- package/styles/token/color/_dark.scss +78 -0
- package/styles/token/color/_high-contrast.scss +27 -0
- package/styles/token/color/_index.scss +3 -0
- package/styles/token/color/_light.scss +69 -0
- package/styles/token/density/_comfortable.scss +15 -0
- package/styles/token/density/_compact.scss +15 -0
- package/styles/token/density/_index.scss +2 -0
- package/styles/token/motion/_index.scss +2 -0
- package/styles/token/motion/_motion.scss +15 -0
- package/styles/token/motion/_reduced-motion.scss +15 -0
- package/styles/token/opacity/_index.scss +1 -0
- package/styles/token/opacity/_opacity.scss +4 -0
- package/styles/token/radius/_index.scss +1 -0
- package/styles/token/radius/_radius.scss +8 -0
- package/styles/token/shadow/_index.scss +1 -0
- package/styles/token/shadow/_shadow.scss +26 -0
- package/styles/token/spacing/_index.scss +1 -0
- package/styles/token/spacing/_spacing.scss +15 -0
- package/styles/token/typography/_font-family.scss +13 -0
- package/styles/token/typography/_index.scss +2 -0
- package/styles/token/typography/_typography.scss +25 -0
- package/styles/token/z-index/_index.scss +1 -0
- package/styles/token/z-index/_z-index.scss +10 -0
- package/types/educarehq-solaris-ui.d.ts +3201 -0
- package/educarehq-solaris-ui.d.ts +0 -5
- package/esm2022/educarehq-solaris-ui.js +0 -5
- package/esm2022/educarehq-solaris-ui.js.map +0 -1
- package/esm2022/index.js +0 -109
- package/esm2022/index.js.map +0 -1
- package/esm2022/lib/components/actions/button/directives/button-icon.directive.js +0 -17
- package/esm2022/lib/components/actions/button/directives/button-icon.directive.js.map +0 -1
- package/esm2022/lib/components/actions/button/directives/button.directive.js +0 -60
- package/esm2022/lib/components/actions/button/directives/button.directive.js.map +0 -1
- package/esm2022/lib/components/actions/button/index.js +0 -3
- package/esm2022/lib/components/actions/button/index.js.map +0 -1
- package/esm2022/lib/components/actions/button/model/button.types.js +0 -1
- package/esm2022/lib/components/actions/button/model/button.types.js.map +0 -1
- package/esm2022/lib/components/actions/button-group/component/button-group.component.js +0 -21
- package/esm2022/lib/components/actions/button-group/component/button-group.component.js.map +0 -1
- package/esm2022/lib/components/actions/button-group/model/button-group.types.js +0 -1
- package/esm2022/lib/components/actions/button-group/model/button-group.types.js.map +0 -1
- package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js +0 -17
- package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js.map +0 -1
- package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js +0 -58
- package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js.map +0 -1
- package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js +0 -1
- package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js.map +0 -1
- package/esm2022/lib/components/data-display/badge/component/badge.component.js +0 -24
- package/esm2022/lib/components/data-display/badge/component/badge.component.js.map +0 -1
- package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js +0 -17
- package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/badge/index.js +0 -3
- package/esm2022/lib/components/data-display/badge/index.js.map +0 -1
- package/esm2022/lib/components/data-display/badge/model/badge.types.js +0 -1
- package/esm2022/lib/components/data-display/badge/model/badge.types.js.map +0 -1
- package/esm2022/lib/components/data-display/card/component/card.component.js +0 -20
- package/esm2022/lib/components/data-display/card/component/card.component.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-content.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-content.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-description.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-description.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js +0 -19
- package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-header.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-header.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-media.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-media.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/directives/card-title.directive.js +0 -17
- package/esm2022/lib/components/data-display/card/directives/card-title.directive.js.map +0 -1
- package/esm2022/lib/components/data-display/card/model/card.types.js +0 -1
- package/esm2022/lib/components/data-display/card/model/card.types.js.map +0 -1
- package/esm2022/lib/components/data-display/divider/component/divider.component.js +0 -46
- package/esm2022/lib/components/data-display/divider/component/divider.component.js.map +0 -1
- package/esm2022/lib/components/data-display/divider/index.js +0 -2
- package/esm2022/lib/components/data-display/divider/index.js.map +0 -1
- package/esm2022/lib/components/data-display/divider/model/divider.types.js +0 -1
- package/esm2022/lib/components/data-display/divider/model/divider.types.js.map +0 -1
- package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js +0 -18
- package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js.map +0 -1
- package/esm2022/lib/components/feedback/alert/component/alert.component.js +0 -90
- package/esm2022/lib/components/feedback/alert/component/alert.component.js.map +0 -1
- package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js +0 -17
- package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js.map +0 -1
- package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js +0 -17
- package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js.map +0 -1
- package/esm2022/lib/components/feedback/alert/model/alert.types.js +0 -1
- package/esm2022/lib/components/feedback/alert/model/alert.types.js.map +0 -1
- package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js +0 -69
- package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js.map +0 -1
- package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js +0 -1
- package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/component/toast.component.js +0 -268
- package/esm2022/lib/components/feedback/toast/component/toast.component.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/container/toast-container.component.js +0 -24
- package/esm2022/lib/components/feedback/toast/container/toast-container.component.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/model/toast.types.js +0 -1
- package/esm2022/lib/components/feedback/toast/model/toast.types.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js +0 -17
- package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/service/toast.service.js +0 -219
- package/esm2022/lib/components/feedback/toast/service/toast.service.js.map +0 -1
- package/esm2022/lib/components/feedback/toast/token/toast.tokens.js +0 -13
- package/esm2022/lib/components/feedback/toast/token/toast.tokens.js.map +0 -1
- package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js +0 -227
- package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js.map +0 -1
- package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js +0 -1
- package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js.map +0 -1
- package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js +0 -441
- package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js.map +0 -1
- package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js +0 -1
- package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js.map +0 -1
- package/esm2022/lib/components/forms/email-field/component/email-field.component.js +0 -215
- package/esm2022/lib/components/forms/email-field/component/email-field.component.js.map +0 -1
- package/esm2022/lib/components/forms/email-field/model/email-field.types.js +0 -1
- package/esm2022/lib/components/forms/email-field/model/email-field.types.js.map +0 -1
- package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js +0 -69
- package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/component/form-error.component.js +0 -19
- package/esm2022/lib/components/forms/form-field/component/form-error.component.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/component/form-field.component.js +0 -442
- package/esm2022/lib/components/forms/form-field/component/form-field.component.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/component/form-hint.component.js +0 -18
- package/esm2022/lib/components/forms/form-field/component/form-hint.component.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/component/form-label.component.js +0 -18
- package/esm2022/lib/components/forms/form-field/component/form-label.component.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js +0 -14
- package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js +0 -17
- package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js +0 -17
- package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/index.js +0 -8
- package/esm2022/lib/components/forms/form-field/index.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/model/form-control.contract.js +0 -3
- package/esm2022/lib/components/forms/form-field/model/form-control.contract.js.map +0 -1
- package/esm2022/lib/components/forms/form-field/model/form-field.types.js +0 -1
- package/esm2022/lib/components/forms/form-field/model/form-field.types.js.map +0 -1
- package/esm2022/lib/components/forms/input/directives/input.directive.js +0 -148
- package/esm2022/lib/components/forms/input/directives/input.directive.js.map +0 -1
- package/esm2022/lib/components/forms/input/index.js +0 -2
- package/esm2022/lib/components/forms/input/index.js.map +0 -1
- package/esm2022/lib/components/forms/input/model/input.defaults.js +0 -27
- package/esm2022/lib/components/forms/input/model/input.defaults.js.map +0 -1
- package/esm2022/lib/components/forms/input/model/input.types.js +0 -1
- package/esm2022/lib/components/forms/input/model/input.types.js.map +0 -1
- package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js +0 -1102
- package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js.map +0 -1
- package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js +0 -1
- package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js.map +0 -1
- package/esm2022/lib/components/forms/option/component/option.component.js +0 -149
- package/esm2022/lib/components/forms/option/component/option.component.js.map +0 -1
- package/esm2022/lib/components/forms/option/directives/option-slots.directive.js +0 -58
- package/esm2022/lib/components/forms/option/directives/option-slots.directive.js.map +0 -1
- package/esm2022/lib/components/forms/option/index.js +0 -3
- package/esm2022/lib/components/forms/option/index.js.map +0 -1
- package/esm2022/lib/components/forms/option/model/option.types.js +0 -1
- package/esm2022/lib/components/forms/option/model/option.types.js.map +0 -1
- package/esm2022/lib/components/forms/option-group/component/option-group.component.js +0 -103
- package/esm2022/lib/components/forms/option-group/component/option-group.component.js.map +0 -1
- package/esm2022/lib/components/forms/option-group/index.js +0 -2
- package/esm2022/lib/components/forms/option-group/index.js.map +0 -1
- package/esm2022/lib/components/forms/option-group/model/option-group.types.js +0 -1
- package/esm2022/lib/components/forms/option-group/model/option-group.types.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/component/password-field.component.js +0 -299
- package/esm2022/lib/components/forms/password-field/component/password-field.component.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-field-constants.js +0 -5
- package/esm2022/lib/components/forms/password-field/model/password-field-constants.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-field.types.js +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-field.types.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-policy.types.js +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-policy.types.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/model/password-strength.js +0 -67
- package/esm2022/lib/components/forms/password-field/model/password-strength.js.map +0 -1
- package/esm2022/lib/components/forms/password-field/validators/password.validator.js +0 -45
- package/esm2022/lib/components/forms/password-field/validators/password.validator.js.map +0 -1
- package/esm2022/lib/components/forms/radio/component/radio.component.js +0 -219
- package/esm2022/lib/components/forms/radio/component/radio.component.js.map +0 -1
- package/esm2022/lib/components/forms/radio/model/radio.types.js +0 -1
- package/esm2022/lib/components/forms/radio/model/radio.types.js.map +0 -1
- package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js +0 -348
- package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js.map +0 -1
- package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js +0 -3
- package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js.map +0 -1
- package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js +0 -1
- package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js.map +0 -1
- package/esm2022/lib/components/forms/select/component/select.component.js +0 -815
- package/esm2022/lib/components/forms/select/component/select.component.js.map +0 -1
- package/esm2022/lib/components/forms/select/model/select.types.js +0 -1
- package/esm2022/lib/components/forms/select/model/select.types.js.map +0 -1
- package/esm2022/lib/components/forms/switch/component/switch.component.js +0 -211
- package/esm2022/lib/components/forms/switch/component/switch.component.js.map +0 -1
- package/esm2022/lib/components/forms/switch/index.js +0 -2
- package/esm2022/lib/components/forms/switch/index.js.map +0 -1
- package/esm2022/lib/components/forms/switch/model/switch.types.js +0 -1
- package/esm2022/lib/components/forms/switch/model/switch.types.js.map +0 -1
- package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js +0 -369
- package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js.map +0 -1
- package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js +0 -1
- package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js.map +0 -1
- package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js +0 -137
- package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js.map +0 -1
- package/esm2022/lib/components/forms/textarea/model/textarea.types.js +0 -1
- package/esm2022/lib/components/forms/textarea/model/textarea.types.js.map +0 -1
- package/esm2022/lib/components/icon/component/solaris-icon.component.js +0 -20
- package/esm2022/lib/components/icon/component/solaris-icon.component.js.map +0 -1
- package/esm2022/lib/components/icon/index.js +0 -2
- package/esm2022/lib/components/icon/index.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js +0 -27
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js +0 -96
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js +0 -22
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js +0 -105
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js +0 -95
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js +0 -631
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js +0 -365
- package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/index.js +0 -8
- package/esm2022/lib/components/interaction/dropdown-menu/index.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js +0 -3
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js.map +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js +0 -1
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js +0 -29
- package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js +0 -325
- package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/directives/popover.directive.js +0 -16
- package/esm2022/lib/components/interaction/popover/directives/popover.directive.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/index.js +0 -4
- package/esm2022/lib/components/interaction/popover/index.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/model/popover-position.js +0 -145
- package/esm2022/lib/components/interaction/popover/model/popover-position.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/model/popover.types.js +0 -1
- package/esm2022/lib/components/interaction/popover/model/popover.types.js.map +0 -1
- package/esm2022/lib/components/interaction/popover/token/popover.tokens.js +0 -3
- package/esm2022/lib/components/interaction/popover/token/popover.tokens.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js +0 -23
- package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js +0 -405
- package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/index.js +0 -3
- package/esm2022/lib/components/interaction/tooltip/index.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js +0 -209
- package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js +0 -1
- package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js.map +0 -1
- package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js +0 -3
- package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js.map +0 -1
- package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js +0 -323
- package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js.map +0 -1
- package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js +0 -34
- package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js.map +0 -1
- package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js +0 -1
- package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js.map +0 -1
- package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js +0 -242
- package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js.map +0 -1
- package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js +0 -197
- package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js.map +0 -1
- package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js +0 -1
- package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js.map +0 -1
- package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js +0 -3
- package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js +0 -15
- package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/component/stepper.component.js +0 -99
- package/esm2022/lib/components/navigation/stepper/component/stepper.component.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js +0 -13
- package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/model/stepper.types.js +0 -1
- package/esm2022/lib/components/navigation/stepper/model/stepper.types.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/step/step.component.js +0 -91
- package/esm2022/lib/components/navigation/stepper/step/step.component.js.map +0 -1
- package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js +0 -3
- package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/component/tabs.component.js +0 -169
- package/esm2022/lib/components/navigation/tabs/component/tabs.component.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/index.js +0 -5
- package/esm2022/lib/components/navigation/tabs/index.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/model/tabs.types.js +0 -1
- package/esm2022/lib/components/navigation/tabs/model/tabs.types.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/tab/tab.component.js +0 -195
- package/esm2022/lib/components/navigation/tabs/tab/tab.component.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js +0 -55
- package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js.map +0 -1
- package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js +0 -3
- package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/component/dialog.component.js +0 -49
- package/esm2022/lib/components/overlay/dialog/component/dialog.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js +0 -37
- package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js +0 -13
- package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js +0 -32
- package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js +0 -142
- package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js +0 -56
- package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js +0 -20
- package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/model/dialog.types.js +0 -1
- package/esm2022/lib/components/overlay/dialog/model/dialog.types.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js +0 -13
- package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js +0 -23
- package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/service/dialog.service.js +0 -111
- package/esm2022/lib/components/overlay/dialog/service/dialog.service.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js +0 -4
- package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js.map +0 -1
- package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js +0 -15
- package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js.map +0 -1
- package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js +0 -25
- package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js.map +0 -1
- package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js +0 -1
- package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js.map +0 -1
- package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js +0 -1
- package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js.map +0 -1
- package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js +0 -10
- package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js.map +0 -1
- package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js +0 -60
- package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js.map +0 -1
- package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js +0 -10
- package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js.map +0 -1
- package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js +0 -3
- package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/actions.js +0 -242
- package/esm2022/lib/services/icon/icons/groups/actions.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/data.js +0 -129
- package/esm2022/lib/services/icon/icons/groups/data.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/layout.js +0 -50
- package/esm2022/lib/services/icon/icons/groups/layout.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/navigation.js +0 -354
- package/esm2022/lib/services/icon/icons/groups/navigation.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/status.js +0 -70
- package/esm2022/lib/services/icon/icons/groups/status.js.map +0 -1
- package/esm2022/lib/services/icon/icons/groups/theme.js +0 -49
- package/esm2022/lib/services/icon/icons/groups/theme.js.map +0 -1
- package/esm2022/lib/services/icon/icons/index.js +0 -2
- package/esm2022/lib/services/icon/icons/index.js.map +0 -1
- package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js +0 -15
- package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js.map +0 -1
- package/esm2022/lib/services/icon/index.js +0 -5
- package/esm2022/lib/services/icon/index.js.map +0 -1
- package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js +0 -1
- package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js.map +0 -1
- package/esm2022/lib/services/icon/model/solaris-icon.types.js +0 -1
- package/esm2022/lib/services/icon/model/solaris-icon.types.js.map +0 -1
- package/esm2022/lib/services/icon/provider/provide-solaris-icons.js +0 -10
- package/esm2022/lib/services/icon/provider/provide-solaris-icons.js.map +0 -1
- package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js +0 -43
- package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js.map +0 -1
- package/esm2022/lib/services/icon/token/solaris-icon.tokens.js +0 -3
- package/esm2022/lib/services/icon/token/solaris-icon.tokens.js.map +0 -1
- package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js +0 -1
- package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js.map +0 -1
- package/esm2022/lib/services/theme/model/solaris-theme.types.js +0 -1
- package/esm2022/lib/services/theme/model/solaris-theme.types.js.map +0 -1
- package/esm2022/lib/services/theme/provider/provide-solaris-theme.js +0 -10
- package/esm2022/lib/services/theme/provider/provide-solaris-theme.js.map +0 -1
- package/esm2022/lib/services/theme/service/solaris-theme.service.js +0 -22
- package/esm2022/lib/services/theme/service/solaris-theme.service.js.map +0 -1
- package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js +0 -10
- package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js.map +0 -1
- package/esm2022/lib/services/theme/token/solaris-theme.tokens.js +0 -3
- package/esm2022/lib/services/theme/token/solaris-theme.tokens.js.map +0 -1
- package/esm2022/lib/services/translation/index.js +0 -6
- package/esm2022/lib/services/translation/index.js.map +0 -1
- package/esm2022/lib/services/translation/model/solaris-locale.types.js +0 -1
- package/esm2022/lib/services/translation/model/solaris-locale.types.js.map +0 -1
- package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js +0 -1
- package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js.map +0 -1
- package/esm2022/lib/services/translation/model/solaris-translate-defaults.js +0 -96
- package/esm2022/lib/services/translation/model/solaris-translate-defaults.js.map +0 -1
- package/esm2022/lib/services/translation/model/solaris-translation.types.js +0 -1
- package/esm2022/lib/services/translation/model/solaris-translation.types.js.map +0 -1
- package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js +0 -20
- package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js.map +0 -1
- package/esm2022/lib/services/translation/provider/provide-solaris-translate.js +0 -10
- package/esm2022/lib/services/translation/provider/provide-solaris-translate.js.map +0 -1
- package/esm2022/lib/services/translation/service/solaris-translate.service.js +0 -87
- package/esm2022/lib/services/translation/service/solaris-translate.service.js.map +0 -1
- package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js +0 -32
- package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js.map +0 -1
- package/esm2022/lib/services/translation/token/solaris-translate.tokens.js +0 -3
- package/esm2022/lib/services/translation/token/solaris-translate.tokens.js.map +0 -1
- package/esm2022/lib/testing/provide-solaris-testing.js +0 -11
- package/esm2022/lib/testing/provide-solaris-testing.js.map +0 -1
- package/esm2022/lib/testing/solaris-test-utilities.js +0 -12
- package/esm2022/lib/testing/solaris-test-utilities.js.map +0 -1
- package/index.d.ts +0 -197
- package/lib/components/actions/button/directives/button-icon.directive.d.ts +0 -5
- package/lib/components/actions/button/directives/button.directive.d.ts +0 -22
- package/lib/components/actions/button/index.d.ts +0 -3
- package/lib/components/actions/button/model/button.types.d.ts +0 -5
- package/lib/components/actions/button-group/component/button-group.component.d.ts +0 -10
- package/lib/components/actions/button-group/model/button-group.types.d.ts +0 -2
- package/lib/components/actions/icon-button/directives/icon-button-badge.directive.d.ts +0 -5
- package/lib/components/actions/icon-button/directives/icon-button.directive.d.ts +0 -21
- package/lib/components/actions/icon-button/model/icon-button.types.d.ts +0 -5
- package/lib/components/data-display/badge/component/badge.component.d.ts +0 -12
- package/lib/components/data-display/badge/directives/badge-icon.directive.d.ts +0 -5
- package/lib/components/data-display/badge/index.d.ts +0 -3
- package/lib/components/data-display/badge/model/badge.types.d.ts +0 -6
- package/lib/components/data-display/card/component/card.component.d.ts +0 -10
- package/lib/components/data-display/card/directives/card-actions.directive.d.ts +0 -5
- package/lib/components/data-display/card/directives/card-content.directive.d.ts +0 -5
- package/lib/components/data-display/card/directives/card-description.directive.d.ts +0 -5
- package/lib/components/data-display/card/directives/card-footer.directive.d.ts +0 -6
- package/lib/components/data-display/card/directives/card-header.directive.d.ts +0 -5
- package/lib/components/data-display/card/directives/card-media.directive.d.ts +0 -5
- package/lib/components/data-display/card/directives/card-title.directive.d.ts +0 -5
- package/lib/components/data-display/card/model/card.types.d.ts +0 -4
- package/lib/components/data-display/divider/component/divider.component.d.ts +0 -17
- package/lib/components/data-display/divider/index.d.ts +0 -2
- package/lib/components/data-display/divider/model/divider.types.d.ts +0 -5
- package/lib/components/feedback/alert/component/alert-actions.component.d.ts +0 -5
- package/lib/components/feedback/alert/component/alert.component.d.ts +0 -26
- package/lib/components/feedback/alert/directives/alert-description.directive.d.ts +0 -5
- package/lib/components/feedback/alert/directives/alert-title.directive.d.ts +0 -5
- package/lib/components/feedback/alert/model/alert.types.d.ts +0 -5
- package/lib/components/feedback/skeleton/component/skeleton.component.d.ts +0 -17
- package/lib/components/feedback/skeleton/model/skeleton.types.d.ts +0 -5
- package/lib/components/feedback/toast/component/toast.component.d.ts +0 -62
- package/lib/components/feedback/toast/container/toast-container.component.d.ts +0 -10
- package/lib/components/feedback/toast/model/toast.types.d.ts +0 -106
- package/lib/components/feedback/toast/provider/provide-solaris-toast.d.ts +0 -3
- package/lib/components/feedback/toast/service/toast.service.d.ts +0 -36
- package/lib/components/feedback/toast/token/toast.tokens.d.ts +0 -5
- package/lib/components/forms/checkbox/component/checkbox.component.d.ts +0 -70
- package/lib/components/forms/checkbox/model/checkbox.types.d.ts +0 -5
- package/lib/components/forms/checkbox-group/component/checkbox-group.component.d.ts +0 -123
- package/lib/components/forms/checkbox-group/model/checkbox-group.types.d.ts +0 -5
- package/lib/components/forms/email-field/component/email-field.component.d.ts +0 -67
- package/lib/components/forms/email-field/model/email-field.types.d.ts +0 -6
- package/lib/components/forms/email-field/validators/email-field.validators.d.ts +0 -8
- package/lib/components/forms/form-field/component/form-error.component.d.ts +0 -5
- package/lib/components/forms/form-field/component/form-field.component.d.ts +0 -96
- package/lib/components/forms/form-field/component/form-hint.component.d.ts +0 -5
- package/lib/components/forms/form-field/component/form-label.component.d.ts +0 -5
- package/lib/components/forms/form-field/directives/form-field-trigger.directive.d.ts +0 -5
- package/lib/components/forms/form-field/directives/form-prefix.directive.d.ts +0 -5
- package/lib/components/forms/form-field/directives/form-suffix.directive.d.ts +0 -5
- package/lib/components/forms/form-field/index.d.ts +0 -8
- package/lib/components/forms/form-field/model/form-control.contract.d.ts +0 -11
- package/lib/components/forms/form-field/model/form-field.types.d.ts +0 -5
- package/lib/components/forms/input/directives/input.directive.d.ts +0 -37
- package/lib/components/forms/input/index.d.ts +0 -2
- package/lib/components/forms/input/model/input.defaults.d.ts +0 -2
- package/lib/components/forms/input/model/input.types.d.ts +0 -4
- package/lib/components/forms/multi-select/component/multi-select.component.d.ts +0 -199
- package/lib/components/forms/multi-select/model/multi-select.types.d.ts +0 -5
- package/lib/components/forms/option/component/option.component.d.ts +0 -58
- package/lib/components/forms/option/directives/option-slots.directive.d.ts +0 -21
- package/lib/components/forms/option/index.d.ts +0 -3
- package/lib/components/forms/option/model/option.types.d.ts +0 -3
- package/lib/components/forms/option-group/component/option-group.component.d.ts +0 -32
- package/lib/components/forms/option-group/index.d.ts +0 -2
- package/lib/components/forms/option-group/model/option-group.types.d.ts +0 -2
- package/lib/components/forms/password-field/component/password-field.component.d.ts +0 -81
- package/lib/components/forms/password-field/model/password-field-constants.d.ts +0 -4
- package/lib/components/forms/password-field/model/password-field.types.d.ts +0 -6
- package/lib/components/forms/password-field/model/password-policy.types.d.ts +0 -10
- package/lib/components/forms/password-field/model/password-strength.d.ts +0 -2
- package/lib/components/forms/password-field/validators/password.validator.d.ts +0 -3
- package/lib/components/forms/radio/component/radio.component.d.ts +0 -68
- package/lib/components/forms/radio/model/radio.types.d.ts +0 -4
- package/lib/components/forms/radio-group/component/radio-group.component.d.ts +0 -86
- package/lib/components/forms/radio-group/model/radio-group.token.d.ts +0 -2
- package/lib/components/forms/radio-group/model/radio-group.types.d.ts +0 -5
- package/lib/components/forms/select/component/select.component.d.ts +0 -158
- package/lib/components/forms/select/model/select.types.d.ts +0 -4
- package/lib/components/forms/switch/component/switch.component.d.ts +0 -66
- package/lib/components/forms/switch/index.d.ts +0 -2
- package/lib/components/forms/switch/model/switch.types.d.ts +0 -4
- package/lib/components/forms/switch-group/component/switch-group.component.d.ts +0 -91
- package/lib/components/forms/switch-group/model/switch-group.types.d.ts +0 -5
- package/lib/components/forms/textarea/directives/textarea.directive.d.ts +0 -37
- package/lib/components/forms/textarea/model/textarea.types.d.ts +0 -5
- package/lib/components/icon/component/solaris-icon.component.d.ts +0 -13
- package/lib/components/icon/index.d.ts +0 -1
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.d.ts +0 -10
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.d.ts +0 -28
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.d.ts +0 -7
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.d.ts +0 -21
- package/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.d.ts +0 -21
- package/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.d.ts +0 -68
- package/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.d.ts +0 -61
- package/lib/components/interaction/dropdown-menu/index.d.ts +0 -9
- package/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.d.ts +0 -8
- package/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.d.ts +0 -11
- package/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.d.ts +0 -2
- package/lib/components/interaction/popover/component/popover-panel.component.d.ts +0 -10
- package/lib/components/interaction/popover/directives/popover-trigger.directive.d.ts +0 -65
- package/lib/components/interaction/popover/directives/popover.directive.d.ts +0 -7
- package/lib/components/interaction/popover/index.d.ts +0 -4
- package/lib/components/interaction/popover/model/popover-position.d.ts +0 -4
- package/lib/components/interaction/popover/model/popover.types.d.ts +0 -7
- package/lib/components/interaction/popover/token/popover.tokens.d.ts +0 -12
- package/lib/components/interaction/tooltip/component/tooltip-panel.component.d.ts +0 -9
- package/lib/components/interaction/tooltip/directive/tooltip.directive.d.ts +0 -80
- package/lib/components/interaction/tooltip/index.d.ts +0 -3
- package/lib/components/interaction/tooltip/model/tooltip-position.d.ts +0 -5
- package/lib/components/interaction/tooltip/model/tooltip.types.d.ts +0 -22
- package/lib/components/interaction/tooltip/token/tooltip.tokens.d.ts +0 -21
- package/lib/components/navigation/editable-tabs/component/editable-tabs.component.d.ts +0 -69
- package/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.d.ts +0 -20
- package/lib/components/navigation/editable-tabs/model/editable-tabs.types.d.ts +0 -60
- package/lib/components/navigation/segmented-control/component/segmented-control.component.d.ts +0 -64
- package/lib/components/navigation/segmented-control/item/segmented-item.component.d.ts +0 -35
- package/lib/components/navigation/segmented-control/model/segmented-control.types.d.ts +0 -12
- package/lib/components/navigation/segmented-control/token/segmented-control.tokens.d.ts +0 -22
- package/lib/components/navigation/stepper/actions/stepper-actions.component.d.ts +0 -7
- package/lib/components/navigation/stepper/component/stepper.component.d.ts +0 -36
- package/lib/components/navigation/stepper/content/stepper-content.component.d.ts +0 -5
- package/lib/components/navigation/stepper/model/stepper.types.d.ts +0 -15
- package/lib/components/navigation/stepper/step/step.component.d.ts +0 -27
- package/lib/components/navigation/stepper/token/stepper.tokens.d.ts +0 -13
- package/lib/components/navigation/tabs/component/tabs.component.d.ts +0 -47
- package/lib/components/navigation/tabs/index.d.ts +0 -6
- package/lib/components/navigation/tabs/model/tabs.types.d.ts +0 -17
- package/lib/components/navigation/tabs/tab/tab.component.d.ts +0 -38
- package/lib/components/navigation/tabs/tab-panel/tab-panel.component.d.ts +0 -15
- package/lib/components/navigation/tabs/token/tabs.tokens.d.ts +0 -19
- package/lib/components/overlay/dialog/component/dialog.component.d.ts +0 -29
- package/lib/components/overlay/dialog/components/dialog-actions.component.d.ts +0 -12
- package/lib/components/overlay/dialog/components/dialog-content.component.d.ts +0 -5
- package/lib/components/overlay/dialog/components/dialog-header.component.d.ts +0 -19
- package/lib/components/overlay/dialog/container/dialog-container.component.d.ts +0 -32
- package/lib/components/overlay/dialog/flow/dialog-flow.component.d.ts +0 -19
- package/lib/components/overlay/dialog/flow/dialog-step.component.d.ts +0 -7
- package/lib/components/overlay/dialog/model/dialog.types.d.ts +0 -87
- package/lib/components/overlay/dialog/provider/provide-solaris-dialog.d.ts +0 -3
- package/lib/components/overlay/dialog/service/dialog-ref.d.ts +0 -11
- package/lib/components/overlay/dialog/service/dialog.service.d.ts +0 -20
- package/lib/components/overlay/dialog/token/dialog-data.token.d.ts +0 -4
- package/lib/components/overlay/dialog/token/dialog.tokens.d.ts +0 -4
- package/lib/services/accessibility/directives/visually-hidden.directive.d.ts +0 -5
- package/lib/services/accessibility/model/solaris-accessibility-config.interface.d.ts +0 -4
- package/lib/services/accessibility/model/solaris-accessibility.types.d.ts +0 -5
- package/lib/services/accessibility/provider/provide-solaris-accessibility.d.ts +0 -3
- package/lib/services/accessibility/service/solaris-accessibility.service.d.ts +0 -15
- package/lib/services/accessibility/testing/solaris-accessibility-testing.provider.d.ts +0 -3
- package/lib/services/accessibility/token/solaris-accessibility.tokens.d.ts +0 -3
- package/lib/services/icon/icons/groups/actions.d.ts +0 -2
- package/lib/services/icon/icons/groups/data.d.ts +0 -2
- package/lib/services/icon/icons/groups/layout.d.ts +0 -2
- package/lib/services/icon/icons/groups/navigation.d.ts +0 -2
- package/lib/services/icon/icons/groups/status.d.ts +0 -2
- package/lib/services/icon/icons/groups/theme.d.ts +0 -2
- package/lib/services/icon/icons/index.d.ts +0 -1
- package/lib/services/icon/icons/solaris-built-in-icons.d.ts +0 -2
- package/lib/services/icon/index.d.ts +0 -8
- package/lib/services/icon/model/solaris-icon-definition.interface.d.ts +0 -45
- package/lib/services/icon/model/solaris-icon.types.d.ts +0 -4
- package/lib/services/icon/provider/provide-solaris-icons.d.ts +0 -3
- package/lib/services/icon/service/solaris-icon-registry.service.d.ts +0 -12
- package/lib/services/icon/token/solaris-icon.tokens.d.ts +0 -6
- package/lib/services/theme/model/solaris-theme-config.interface.d.ts +0 -5
- package/lib/services/theme/model/solaris-theme.types.d.ts +0 -3
- package/lib/services/theme/provider/provide-solaris-theme.d.ts +0 -3
- package/lib/services/theme/service/solaris-theme.service.d.ts +0 -9
- package/lib/services/theme/testing/solaris-theme-testing.provider.d.ts +0 -3
- package/lib/services/theme/token/solaris-theme.tokens.d.ts +0 -3
- package/lib/services/translation/index.d.ts +0 -8
- package/lib/services/translation/model/solaris-locale.types.d.ts +0 -4
- package/lib/services/translation/model/solaris-translate-config.interface.d.ts +0 -8
- package/lib/services/translation/model/solaris-translate-defaults.d.ts +0 -2
- package/lib/services/translation/model/solaris-translation.types.d.ts +0 -3
- package/lib/services/translation/pipe/solaris-translate.pipe.d.ts +0 -8
- package/lib/services/translation/provider/provide-solaris-translate.d.ts +0 -3
- package/lib/services/translation/service/solaris-translate.service.d.ts +0 -15
- package/lib/services/translation/testing/solaris-translate-testing.provider.d.ts +0 -3
- package/lib/services/translation/token/solaris-translate.tokens.d.ts +0 -3
- package/lib/testing/provide-solaris-testing.d.ts +0 -10
- package/lib/testing/solaris-test-utilities.d.ts +0 -3
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tab.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/tab/tab.component.ts","../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/tab/tab.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,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,EAAE,YAAY;wBAClC,sBAAsB,EAAE,WAAW;wBACnC,sBAAsB,EAAE,YAAY;wBACpC,wBAAwB,EAAE,cAAc;wBACxC,mBAAmB,EAAE,qBAAqB;wBAC1C,yBAAyB,EAAE,eAAe;wBAC1C,iBAAiB,EAAE,yBAAyB;wBAC5C,sBAAsB,EAAE,sBAAsB;wBAC9C,sBAAsB,EAAE,mCAAmC;qBAC5D","sourcesContent":["import {\n input,\n inject,\n computed,\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { SolarisTranslateService } from '../../../../services/translation';\nimport { SolarisBadgeComponent } from '../../../data-display/badge';\nimport { SolarisIconComponent } from '../../../icon';\nimport { SOLARIS_TABS } from '../token/tabs.tokens';\n\nlet nextId = 0;\n\n@Component({\n selector: 'solaris-tab',\n standalone: true,\n imports: [SolarisIconComponent, SolarisBadgeComponent],\n templateUrl: './tab.component.html',\n styleUrls: ['./tab.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'tab',\n '[attr.id]': 'tabId()',\n '(click)': 'onClick()',\n '[attr.data-size]': 'size()',\n '(keydown)': 'onKeydown($event)',\n '[attr.data-density]': 'density()',\n '[attr.data-active]': 'isActive()',\n '[attr.aria-controls]': 'panelId()',\n '[attr.aria-selected]': 'isActive()',\n '[attr.data-appearance]': 'appearance()',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.tabindex]': 'isActive() ? \"0\" : \"-1\"',\n '[attr.data-disabled]': 'isComputedDisabled()',\n '[attr.aria-disabled]': 'isComputedDisabled() || undefined',\n },\n})\nexport class SolarisTabComponent {\n private readonly translateService = inject(SolarisTranslateService, {\n optional: true,\n });\n private readonly tabsControl = inject(SOLARIS_TABS, { optional: true });\n\n readonly disabled = input<boolean>(false);\n readonly value = input.required<string | number>();\n readonly iconDecorative = input<boolean>(true);\n readonly icon = input<string | undefined>(undefined);\n readonly label = input<string | undefined>(undefined);\n readonly labelKey = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly badgeLabel = input<string | undefined>(undefined);\n readonly ariaLabelKey = input<string | undefined>(undefined);\n readonly badgeLabelKey = input<string | undefined>(undefined);\n readonly badge = input<string | number | undefined>(undefined);\n\n protected readonly instanceId = `solaris-tab-${nextId++}`;\n\n protected readonly tabId = computed(() => {\n if (this.tabsControl) {\n return this.tabsControl.generateTabId(this.value());\n }\n return `${this.instanceId}-tab`;\n });\n\n protected readonly panelId = computed(() => {\n if (this.tabsControl) {\n return this.tabsControl.generatePanelId(this.value());\n }\n return `${this.instanceId}-panel`;\n });\n\n protected readonly orientation = computed(() => {\n return this.tabsControl?.orientation() ?? 'horizontal';\n });\n\n protected readonly size = computed(() => {\n return this.tabsControl?.size() ?? 'md';\n });\n\n protected readonly density = computed(() => {\n return this.tabsControl?.density() ?? 'comfortable';\n });\n\n protected readonly appearance = computed(() => {\n return this.tabsControl?.appearance() ?? 'underline';\n });\n\n protected readonly isActive = computed(() => {\n if (!this.tabsControl) return false;\n return this.tabsControl.value() === this.value();\n });\n\n readonly isComputedDisabled = computed(() => {\n return this.disabled() || (this.tabsControl?.disabled() ?? false);\n });\n\n protected readonly computedBadge = computed(() => {\n const b = this.badge();\n if (b === undefined || b === null) return null;\n return b;\n });\n\n protected readonly index = computed(() => {\n if (!this.tabsControl) return -1;\n return this.tabsControl.tabs().indexOf(this);\n });\n\n readonly resolvedLabel = computed(() => {\n if (this.label()) return this.label();\n const labelKey = this.labelKey();\n if (labelKey && this.translateService) {\n return this.translateService.translate(labelKey);\n }\n return labelKey ?? undefined;\n });\n\n protected readonly resolvedBadgeLabel = computed(() => {\n if (this.badgeLabel()) return this.badgeLabel();\n const badgeLabelKey = this.badgeLabelKey();\n if (badgeLabelKey && this.translateService) {\n return this.translateService.translate(badgeLabelKey);\n }\n return badgeLabelKey ?? undefined;\n });\n\n protected readonly resolvedAriaLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel();\n const ariaLabelKey = this.ariaLabelKey();\n if (ariaLabelKey && this.translateService) {\n return this.translateService.translate(ariaLabelKey);\n }\n return undefined;\n });\n\n protected onClick(): void {\n if (this.isComputedDisabled()) return;\n this.tabsControl?.activateTab(this);\n this.tabsControl?.focusTab(this);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.isComputedDisabled()) return;\n\n const tabs = this.tabsControl?.tabs() ?? [];\n const currentIndex = this.index();\n\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n\n if (this.tabsControl?.activationMode() === 'manual') {\n this.tabsControl.activateTab(this);\n }\n\n return;\n }\n\n const nextIndex = this.getNextIndex(event.key, tabs, currentIndex);\n\n if (nextIndex === null || nextIndex === currentIndex) return;\n\n event.preventDefault();\n\n const nextTab = tabs[nextIndex];\n\n if (this.tabsControl?.activationMode() === 'automatic') {\n this.tabsControl.activateTab(nextTab);\n }\n\n this.tabsControl?.focusTab(nextTab);\n }\n\n private getNextIndex(\n key: string,\n tabs: ReadonlyArray<SolarisTabComponent>,\n currentIndex: number,\n ): number | null {\n switch (key) {\n case 'ArrowRight':\n return this.orientation() === 'horizontal'\n ? this.findNextEnabled(tabs, currentIndex, 1)\n : null;\n\n case 'ArrowLeft':\n return this.orientation() === 'horizontal'\n ? this.findNextEnabled(tabs, currentIndex, -1)\n : null;\n\n case 'ArrowDown':\n return this.orientation() === 'vertical'\n ? this.findNextEnabled(tabs, currentIndex, 1)\n : null;\n\n case 'ArrowUp':\n return this.orientation() === 'vertical'\n ? this.findNextEnabled(tabs, currentIndex, -1)\n : null;\n\n case 'Home':\n return this.findFirstEnabled(tabs);\n\n case 'End':\n return this.findLastEnabled(tabs);\n\n default:\n return null;\n }\n }\n\n private findNextEnabled(\n tabs: ReadonlyArray<SolarisTabComponent>,\n fromIndex: number,\n direction: 1 | -1,\n ): number | null {\n let i = fromIndex + direction;\n while (i >= 0 && i < tabs.length) {\n if (!tabs[i].isComputedDisabled()) return i;\n i += direction;\n }\n return null;\n }\n\n private findFirstEnabled(\n tabs: ReadonlyArray<SolarisTabComponent>,\n ): number | null {\n for (let i = 0; i < tabs.length; i++) {\n if (!tabs[i].isComputedDisabled()) return i;\n }\n return null;\n }\n\n private findLastEnabled(\n tabs: ReadonlyArray<SolarisTabComponent>,\n ): number | null {\n for (let i = tabs.length - 1; i >= 0; i--) {\n if (!tabs[i].isComputedDisabled()) return i;\n }\n return null;\n }\n}\n","<span class=\"solaris-tab__inner\">\n @if (icon(); as iconName) {\n <solaris-icon\n class=\"solaris-tab__icon\"\n [name]=\"iconName\"\n [decorative]=\"iconDecorative()\"\n />\n }\n @if (resolvedLabel(); as labelText) {\n <span class=\"solaris-tab__label\">{{ labelText }}</span>\n }\n <ng-content />\n @if (computedBadge(); as badgeValue) {\n <solaris-badge\n class=\"solaris-tab__badge\"\n variant=\"count\"\n size=\"sm\"\n [attr.aria-label]=\"resolvedBadgeLabel()\"\n >\n {{ badgeValue }}\n </solaris-badge>\n }\n</span>\n"]}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Component, input, computed, signal, inject, effect, ChangeDetectionStrategy, } from '@angular/core';
|
|
2
|
-
import { SOLARIS_TABS } from '../token/tabs.tokens';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
let nextId = 0;
|
|
5
|
-
export class SolarisTabPanelComponent {
|
|
6
|
-
tabsControl = inject(SOLARIS_TABS, { optional: true });
|
|
7
|
-
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
8
|
-
lazy = input(false, ...(ngDevMode ? [{ debugName: "lazy" }] : /* istanbul ignore next */ []));
|
|
9
|
-
instanceId = `solaris-tab-panel-${nextId++}`;
|
|
10
|
-
panelId = computed(() => {
|
|
11
|
-
if (this.tabsControl) {
|
|
12
|
-
return this.tabsControl.generatePanelId(this.value());
|
|
13
|
-
}
|
|
14
|
-
return `${this.instanceId}-panel`;
|
|
15
|
-
}, ...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
|
|
16
|
-
tabId = computed(() => {
|
|
17
|
-
if (this.tabsControl) {
|
|
18
|
-
return this.tabsControl.generateTabId(this.value());
|
|
19
|
-
}
|
|
20
|
-
return `${this.instanceId}-tab`;
|
|
21
|
-
}, ...(ngDevMode ? [{ debugName: "tabId" }] : /* istanbul ignore next */ []));
|
|
22
|
-
isActive = computed(() => {
|
|
23
|
-
if (!this.tabsControl)
|
|
24
|
-
return false;
|
|
25
|
-
return this.tabsControl.value() === this.value();
|
|
26
|
-
}, ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
|
|
27
|
-
hasBeenActivated = signal(false, ...(ngDevMode ? [{ debugName: "hasBeenActivated" }] : /* istanbul ignore next */ []));
|
|
28
|
-
constructor() {
|
|
29
|
-
effect(() => {
|
|
30
|
-
if (this.isActive()) {
|
|
31
|
-
this.hasBeenActivated.set(true);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
showContent = computed(() => {
|
|
36
|
-
if (!this.lazy())
|
|
37
|
-
return true;
|
|
38
|
-
if (this.isActive())
|
|
39
|
-
return true;
|
|
40
|
-
return this.hasBeenActivated();
|
|
41
|
-
}, ...(ngDevMode ? [{ debugName: "showContent" }] : /* istanbul ignore next */ []));
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTabPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisTabPanelComponent, isStandalone: true, selector: "solaris-tab-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tabpanel" }, properties: { "attr.id": "panelId()", "hidden": "!isActive()", "attr.data-active": "isActive()", "attr.aria-labelledby": "tabId()" } }, ngImport: i0, template: "@if (showContent()) {\n <ng-content />\n}\n", styles: [":host{--solaris-tab-panel-padding: var(--solaris-spacing-4);display:block;padding:var(--solaris-tab-panel-padding)}:host([hidden]){display:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44
|
-
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTabPanelComponent, decorators: [{
|
|
46
|
-
type: Component,
|
|
47
|
-
args: [{ selector: 'solaris-tab-panel', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
48
|
-
role: 'tabpanel',
|
|
49
|
-
'[attr.id]': 'panelId()',
|
|
50
|
-
'[hidden]': '!isActive()',
|
|
51
|
-
'[attr.data-active]': 'isActive()',
|
|
52
|
-
'[attr.aria-labelledby]': 'tabId()',
|
|
53
|
-
}, template: "@if (showContent()) {\n <ng-content />\n}\n", styles: [":host{--solaris-tab-panel-padding: var(--solaris-spacing-4);display:block;padding:var(--solaris-tab-panel-padding)}:host([hidden]){display:none}\n"] }]
|
|
54
|
-
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }] } });
|
|
55
|
-
//# sourceMappingURL=tab-panel.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tab-panel.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/tab-panel/tab-panel.component.ts","../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/tab-panel/tab-panel.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,MAAM,EACN,MAAM,EACN,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,YAAY,EAAE,MA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AC,IAAI,CAAC,CAAC;YAClC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAEkB,WAAW,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC7C,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YAAE,OAAO,IAAI,CAAC;QAC9B,IAAI,IAAI,CAAC,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC;QACjC,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC,kFAAC,CAAC;wGAzCQ,wBAAwB;4FAAxB,wBAAwB,yfC7BrC,8CAGA;;4FD0Ba,wBAAwB;kBAfpC,SAAS;+BACE,mBAAmB,cACjB,IAAI,WACP,EAAE,mBAGM,uBAAuB,CAAC,MAAM,QACzC;wBACJ,IAAI,EAAE,UAAU;wBAChB,WAAW,EAAE,WAAW;wBACxB,UAAU,EAAE,aAAa;wBACzB,oBAAoB,EAAE,YAAY;wBAClC,wBAAwB,EAAE,SAAS;qBACpC","sourcesContent":["import {\n Component,\n input,\n computed,\n signal,\n inject,\n effect,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { SOLARIS_TABS } from '../token/tabs.tokens';\n\nlet nextId = 0;\n\n@Component({\n selector: 'solaris-tab-panel',\n standalone: true,\n imports: [],\n templateUrl: './tab-panel.component.html',\n styleUrls: ['./tab-panel.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'tabpanel',\n '[attr.id]': 'panelId()',\n '[hidden]': '!isActive()',\n '[attr.data-active]': 'isActive()',\n '[attr.aria-labelledby]': 'tabId()',\n },\n})\nexport class SolarisTabPanelComponent {\n private readonly tabsControl = inject(SOLARIS_TABS, { optional: true });\n\n readonly value = input.required<string | number>();\n readonly lazy = input<boolean>(false);\n\n protected readonly instanceId = `solaris-tab-panel-${nextId++}`;\n\n protected readonly panelId = computed(() => {\n if (this.tabsControl) {\n return this.tabsControl.generatePanelId(this.value());\n }\n return `${this.instanceId}-panel`;\n });\n\n protected readonly tabId = computed(() => {\n if (this.tabsControl) {\n return this.tabsControl.generateTabId(this.value());\n }\n return `${this.instanceId}-tab`;\n });\n\n protected readonly isActive = computed(() => {\n if (!this.tabsControl) return false;\n return this.tabsControl.value() === this.value();\n });\n\n protected readonly hasBeenActivated = signal(false);\n\n constructor() {\n effect(() => {\n if (this.isActive()) {\n this.hasBeenActivated.set(true);\n }\n });\n }\n\n protected readonly showContent = computed(() => {\n if (!this.lazy()) return true;\n if (this.isActive()) return true;\n return this.hasBeenActivated();\n });\n}\n","@if (showContent()) {\n <ng-content />\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.tokens.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/navigation/tabs/token/tabs.tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,eAAe,CAAC;AA4B5D,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,cAAc,CAC5C,aAAa,CACd,CAAC","sourcesContent":["import { InjectionToken, type Signal } from '@angular/core';\n\nimport type { SolarisTabComponent } from '../tab/tab.component';\nimport type {\n SolarisTabsOrientation,\n SolarisTabsAppearance,\n SolarisTabsSize,\n SolarisTabsDensity,\n SolarisTabsActivationMode,\n SolarisTabsContentTransition,\n} from '../model/tabs.types';\n\nexport interface SolarisTabsControl {\n value: Signal<string | number | undefined>;\n tabs: Signal<ReadonlyArray<SolarisTabComponent>>;\n orientation: Signal<SolarisTabsOrientation>;\n appearance: Signal<SolarisTabsAppearance>;\n size: Signal<SolarisTabsSize>;\n density: Signal<SolarisTabsDensity>;\n disabled: Signal<boolean>;\n activationMode: Signal<SolarisTabsActivationMode>;\n contentTransition: Signal<SolarisTabsContentTransition>;\n activateTab: (tab: SolarisTabComponent) => void;\n focusTab: (tab: SolarisTabComponent) => void;\n generateTabId: (value: string | number) => string;\n generatePanelId: (value: string | number) => string;\n}\n\nexport const SOLARIS_TABS = new InjectionToken<SolarisTabsControl>(\n 'SolarisTabs',\n);\n"]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Component, input, ChangeDetectionStrategy, computed, } from '@angular/core';
|
|
2
|
-
import { SolarisDialogContentComponent } from '../components/dialog-content.component';
|
|
3
|
-
import { SolarisDialogActionsComponent } from '../components/dialog-actions.component';
|
|
4
|
-
import { SolarisDialogHeaderComponent } from '../components/dialog-header.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class SolarisDialogComponent {
|
|
7
|
-
options = input.required(...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
8
|
-
hasActions = computed(() => {
|
|
9
|
-
const actions = this.options().actions;
|
|
10
|
-
return actions && actions.length > 0;
|
|
11
|
-
}, ...(ngDevMode ? [{ debugName: "hasActions" }] : /* istanbul ignore next */ []));
|
|
12
|
-
actionsAlign = computed(() => this.options().actionsAlign ?? 'end', ...(ngDevMode ? [{ debugName: "actionsAlign" }] : /* istanbul ignore next */ []));
|
|
13
|
-
actionsStack = computed(() => this.options().actionsStack ?? 'auto', ...(ngDevMode ? [{ debugName: "actionsStack" }] : /* istanbul ignore next */ []));
|
|
14
|
-
iconDecorative = computed(() => this.options().iconDecorative ?? false, ...(ngDevMode ? [{ debugName: "iconDecorative" }] : /* istanbul ignore next */ []));
|
|
15
|
-
closeable = computed(() => this.options().closeable ?? true, ...(ngDevMode ? [{ debugName: "closeable" }] : /* istanbul ignore next */ []));
|
|
16
|
-
closeLabel = computed(() => this.options().closeLabel ?? 'Close', ...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
|
|
17
|
-
size = computed(() => this.options().size ?? 'md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
18
|
-
variant = computed(() => this.options().variant ?? 'neutral', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
19
|
-
description = computed(() => this.options().description, ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
|
|
20
|
-
title = computed(() => this.options().title, ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
21
|
-
icon = computed(() => this.options().icon, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
22
|
-
actions = computed(() => {
|
|
23
|
-
const variant = this.variant();
|
|
24
|
-
return (this.options().actions ?? []).map((action) => {
|
|
25
|
-
const appearance = action.appearance ?? 'solid';
|
|
26
|
-
const hasExplicitColor = action.color !== undefined;
|
|
27
|
-
const color = hasExplicitColor
|
|
28
|
-
? action.color
|
|
29
|
-
: appearance === 'solid'
|
|
30
|
-
? variant
|
|
31
|
-
: undefined;
|
|
32
|
-
return { ...action, color };
|
|
33
|
-
});
|
|
34
|
-
}, ...(ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []));
|
|
35
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisDialogComponent, isStandalone: true, selector: "solaris-dialog", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "attr.role": "null" }, classAttribute: "solaris-dialog" }, ngImport: i0, template: "<solaris-dialog-header\n [icon]=\"icon()\"\n [iconDecorative]=\"iconDecorative()\"\n [title]=\"title()\"\n [description]=\"description()\"\n [closeable]=\"closeable()\"\n [closeLabel]=\"closeLabel()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n/>\n\n@if (description() && !hasActions()) {\n <solaris-dialog-content>\n <p class=\"solaris-dialog__description-text\">{{ description() }}</p>\n </solaris-dialog-content>\n}\n\n@if (hasActions()) {\n <div class=\"solaris-dialog__body\"></div>\n <solaris-dialog-actions\n [actions]=\"actions()\"\n [align]=\"actionsAlign()\"\n [stack]=\"actionsStack()\"\n />\n}\n", styles: [":host{display:flex;flex-direction:column;height:100%;max-height:100%}.solaris-dialog__description-text{margin:0;font:var(--solaris-font-weight-regular) var(--solaris-font-size-sm)/var(--solaris-line-height-md) var(--solaris-font-family-sans);color:var(--solaris-text-muted, inherit)}.solaris-dialog__body{flex:1;min-height:0;overflow-y:auto}\n"], dependencies: [{ kind: "component", type: SolarisDialogHeaderComponent, selector: "solaris-dialog-header", inputs: ["icon", "title", "description", "closeable", "closeLabel", "iconDecorative", "size", "variant"] }, { kind: "component", type: SolarisDialogContentComponent, selector: "solaris-dialog-content" }, { kind: "component", type: SolarisDialogActionsComponent, selector: "solaris-dialog-actions", inputs: ["actions", "align", "stack"], outputs: ["actionExecuted"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
|
-
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogComponent, decorators: [{
|
|
39
|
-
type: Component,
|
|
40
|
-
args: [{ selector: 'solaris-dialog', standalone: true, imports: [
|
|
41
|
-
SolarisDialogHeaderComponent,
|
|
42
|
-
SolarisDialogContentComponent,
|
|
43
|
-
SolarisDialogActionsComponent,
|
|
44
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
45
|
-
class: 'solaris-dialog',
|
|
46
|
-
'[attr.role]': 'null',
|
|
47
|
-
}, template: "<solaris-dialog-header\n [icon]=\"icon()\"\n [iconDecorative]=\"iconDecorative()\"\n [title]=\"title()\"\n [description]=\"description()\"\n [closeable]=\"closeable()\"\n [closeLabel]=\"closeLabel()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n/>\n\n@if (description() && !hasActions()) {\n <solaris-dialog-content>\n <p class=\"solaris-dialog__description-text\">{{ description() }}</p>\n </solaris-dialog-content>\n}\n\n@if (hasActions()) {\n <div class=\"solaris-dialog__body\"></div>\n <solaris-dialog-actions\n [actions]=\"actions()\"\n [align]=\"actionsAlign()\"\n [stack]=\"actionsStack()\"\n />\n}\n", styles: [":host{display:flex;flex-direction:column;height:100%;max-height:100%}.solaris-dialog__description-text{margin:0;font:var(--solaris-font-weight-regular) var(--solaris-font-size-sm)/var(--solaris-line-height-md) var(--solaris-font-family-sans);color:var(--solaris-text-muted, inherit)}.solaris-dialog__body{flex:1;min-height:0;overflow-y:auto}\n"] }]
|
|
48
|
-
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }] } });
|
|
49
|
-
//# sourceMappingURL=dialog.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/overlay/dialog/component/dialog.component.ts","../../../../../../../../../packages/angular/src/lib/components/overlay/dialog/component/dialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,uBAAuB,EACvB,QAAQ,GACT,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;;AAsBrF,MAAM,OAAO,sBAAsB;IACxB,OAAO,GAAG,KAAK,CAAC,QAAQ,6EAAiC,CAAC;IAEhD,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvC,OAAO,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;IACvC,CAAC,iFAAC,CAAC;IACgB,YAAY,GAAG,QAAQ,CACxC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,YAAY,IAAI,KAAK,mFAC3C,CAAC;IACiB,YAAY,GAAG,QAAQ,CACxC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE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YACpD,MAAM,KAAK,GAAG,gBAAgB;gBAC5B,CAAC,CAAC,MAAM,CAAC,KAAK;gBACd,CAAC,CAAC,UAAU,KAAK,OAAO;oBACtB,CAAC,CAAC,OAAO;oBACT,CAAC,CAAC,SAAS,CAAC;YAChB,OAAO,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC,8EAAC,CAAC;wGA1CQ,sBAAsB;4FAAtB,sBAAsB,oSC/BnC,8nBAyBA,iZDNI,4BAA4B,4KAC5B,6BAA6B,mEAC7B,6BAA6B;;4FAUpB,sBAAsB;kBAhBlC,SAAS;+BACE,gBAAgB,cACd,IAAI,WACP;wBACP,4BAA4B;wBAC5B,6BAA6B;wBAC7B,6BAA6B;qBAC9B,mBAGgB,uBAAuB,CAAC,MAAM,QACzC;wBACJ,KAAK,EAAE,gBAAgB;wBACvB,aAAa,EAAE,MAAM;qBACtB","sourcesContent":["import {\n Component,\n input,\n ChangeDetectionStrategy,\n computed,\n} from '@angular/core';\n\nimport { SolarisDialogContentComponent } from '../components/dialog-content.component';\nimport { SolarisDialogActionsComponent } from '../components/dialog-actions.component';\nimport { SolarisDialogHeaderComponent } from '../components/dialog-header.component';\nimport type {\n SolarisDialogOptions,\n SolarisDialogButtonColor,\n} from '../model/dialog.types';\n\n@Component({\n selector: 'solaris-dialog',\n standalone: true,\n imports: [\n SolarisDialogHeaderComponent,\n SolarisDialogContentComponent,\n SolarisDialogActionsComponent,\n ],\n templateUrl: './dialog.component.html',\n styleUrls: ['./dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'solaris-dialog',\n '[attr.role]': 'null',\n },\n})\nexport class SolarisDialogComponent<TResult = unknown> {\n readonly options = input.required<SolarisDialogOptions<TResult>>();\n\n protected readonly hasActions = computed(() => {\n const actions = this.options().actions;\n return actions && actions.length > 0;\n });\n protected readonly actionsAlign = computed(\n () => this.options().actionsAlign ?? 'end',\n );\n protected readonly actionsStack = computed(\n () => this.options().actionsStack ?? 'auto',\n );\n protected readonly iconDecorative = computed(\n () => this.options().iconDecorative ?? false,\n );\n protected readonly closeable = computed(\n () => this.options().closeable ?? true,\n );\n protected readonly closeLabel = computed(\n () => this.options().closeLabel ?? 'Close',\n );\n protected readonly size = computed(() => this.options().size ?? 'md');\n protected readonly variant = computed(\n () => this.options().variant ?? 'neutral',\n );\n protected readonly description = computed(() => this.options().description);\n protected readonly title = computed(() => this.options().title);\n protected readonly icon = computed(() => this.options().icon);\n\n protected readonly actions = computed(() => {\n const variant = this.variant();\n return (this.options().actions ?? []).map((action) => {\n const appearance = action.appearance ?? 'solid';\n const hasExplicitColor = action.color !== undefined;\n const color = hasExplicitColor\n ? action.color\n : appearance === 'solid'\n ? variant\n : undefined;\n return { ...action, color };\n });\n });\n}\n","<solaris-dialog-header\n [icon]=\"icon()\"\n [iconDecorative]=\"iconDecorative()\"\n [title]=\"title()\"\n [description]=\"description()\"\n [closeable]=\"closeable()\"\n [closeLabel]=\"closeLabel()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n/>\n\n@if (description() && !hasActions()) {\n <solaris-dialog-content>\n <p class=\"solaris-dialog__description-text\">{{ description() }}</p>\n </solaris-dialog-content>\n}\n\n@if (hasActions()) {\n <div class=\"solaris-dialog__body\"></div>\n <solaris-dialog-actions\n [actions]=\"actions()\"\n [align]=\"actionsAlign()\"\n [stack]=\"actionsStack()\"\n />\n}\n"]}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Component, input, output, inject, ChangeDetectionStrategy, } from '@angular/core';
|
|
2
|
-
import { SolarisButtonDirective } from '../../../actions/button';
|
|
3
|
-
import { SOLARIS_DIALOG_REF } from '../token/dialog-data.token';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class SolarisDialogActionsComponent {
|
|
6
|
-
dialogRef = inject(SOLARIS_DIALOG_REF);
|
|
7
|
-
actions = input([], ...(ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []));
|
|
8
|
-
align = input('end', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
9
|
-
stack = input('auto', ...(ngDevMode ? [{ debugName: "stack" }] : /* istanbul ignore next */ []));
|
|
10
|
-
actionExecuted = output();
|
|
11
|
-
handleAction(action) {
|
|
12
|
-
const executeAction = () => {
|
|
13
|
-
if (action.action) {
|
|
14
|
-
const result = action.action(this.dialogRef);
|
|
15
|
-
if (result instanceof Promise) {
|
|
16
|
-
void result.catch(() => undefined);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
if (action.close) {
|
|
20
|
-
this.dialogRef.close(action.result);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
executeAction();
|
|
24
|
-
this.actionExecuted.emit(action);
|
|
25
|
-
}
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisDialogActionsComponent, isStandalone: true, selector: "solaris-dialog-actions", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, stack: { classPropertyName: "stack", publicName: "stack", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionExecuted: "actionExecuted" }, host: { properties: { "attr.data-align": "align()", "attr.data-stack": "stack()" }, classAttribute: "solaris-dialog-actions" }, ngImport: i0, template: "<div class=\"solaris-dialog-actions__inner\">\n @for (action of actions(); track $index) {\n <button\n type=\"button\"\n solaris-button\n (click)=\"handleAction(action)\"\n [color]=\"action.color ?? 'neutral'\"\n [disabled]=\"action.disabled ?? false\"\n [appearance]=\"action.appearance ?? 'solid'\"\n >\n {{ action.label }}\n </button>\n }\n</div>\n", styles: [":host{display:block;padding:var(--solaris-spacing-3) var(--solaris-spacing-4)}.solaris-dialog-actions__inner{display:flex;flex-wrap:wrap;gap:var(--solaris-spacing-2)}:host([data-align=start]) .solaris-dialog-actions__inner{justify-content:flex-start}:host([data-align=center]) .solaris-dialog-actions__inner{justify-content:center}:host([data-align=end]) .solaris-dialog-actions__inner{justify-content:flex-end}:host([data-align=space-between]) .solaris-dialog-actions__inner{justify-content:space-between}:host([data-stack=vertical]) .solaris-dialog-actions__inner{flex-direction:column}:host([data-stack=horizontal]) .solaris-dialog-actions__inner{flex-direction:row}\n"], dependencies: [{ kind: "directive", type: SolarisButtonDirective, selector: "[solaris-button]", inputs: ["appearance", "color", "radius", "size", "density", "loading", "disabled", "fullWidth", "loadingLabelKey", "loadingLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28
|
-
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogActionsComponent, decorators: [{
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{ selector: 'solaris-dialog-actions', standalone: true, imports: [SolarisButtonDirective], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
32
|
-
'[attr.data-align]': 'align()',
|
|
33
|
-
'[attr.data-stack]': 'stack()',
|
|
34
|
-
class: 'solaris-dialog-actions',
|
|
35
|
-
}, template: "<div class=\"solaris-dialog-actions__inner\">\n @for (action of actions(); track $index) {\n <button\n type=\"button\"\n solaris-button\n (click)=\"handleAction(action)\"\n [color]=\"action.color ?? 'neutral'\"\n [disabled]=\"action.disabled ?? false\"\n [appearance]=\"action.appearance ?? 'solid'\"\n >\n {{ action.label }}\n </button>\n }\n</div>\n", styles: [":host{display:block;padding:var(--solaris-spacing-3) var(--solaris-spacing-4)}.solaris-dialog-actions__inner{display:flex;flex-wrap:wrap;gap:var(--solaris-spacing-2)}:host([data-align=start]) .solaris-dialog-actions__inner{justify-content:flex-start}:host([data-align=center]) .solaris-dialog-actions__inner{justify-content:center}:host([data-align=end]) .solaris-dialog-actions__inner{justify-content:flex-end}:host([data-align=space-between]) .solaris-dialog-actions__inner{justify-content:space-between}:host([data-stack=vertical]) .solaris-dialog-actions__inner{flex-direction:column}:host([data-stack=horizontal]) .solaris-dialog-actions__inner{flex-direction:row}\n"] }]
|
|
36
|
-
}], propDecorators: { actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], stack: [{ type: i0.Input, args: [{ isSignal: true, alias: "stack", required: false }] }], actionExecuted: [{ type: i0.Output, args: ["actionExecuted"] }] } });
|
|
37
|
-
//# sourceMappingURL=dialog-actions.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-actions.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/overlay/dialog/components/dialog-actions.component.ts","../../../../../../../../../packages/angular/src/lib/components/overlay/dialog/components/dialog-actions.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,EACN,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;;AAoBhE,MAAM,OAAO,6BAA6B;IACvB,SAAS,GAAG,MAAM,CACjC,kBAAkB,CACU,CAAC;IAEtB,OAAO,GAAG,KAAK,CAAiC,EAAE,8EAAC,CAAC;IACpD,KAAK,GAAG,KAAK,CAA4B,KAAK,4EAAC,CAAC;IAChD,KAAK,GAAG,KAAK,CAA4B,MAAM,4EAAC,CAAC;IAEjD,cAAc,GAAG,MAAM,EAAgC,CAAC;IAEvD,YAAY,CAAC,MAAoC;QACzD,MAAM,aAAa,GAAG,GAAS,EAAE;YAC/B,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;gBAClB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAC7C,IAAI,MAAM,YAAY,OAAO,EAAE,CAAC;oBAC9B,KAAK,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;gBACrC,CAAC;YACH,CAAC;YAED,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;gBACjB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACtC,CAAC;QACH,CAAC,CAAC;QAEF,aAAa,EAAE,CAAC;QAChB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;wGA3BU,6BAA6B;4FAA7B,6BAA6B,2nBC7B1C,+YAcA,ytBDKY,sBAAsB;;4FAUrB,6BAA6B;kBAbzC,SAAS;+BACE,wBAAwB,cACtB,IAAI,WACP,CAAC,sBAAsB,CAAC,mBAGhB,uBAAuB,CAAC,MAAM,QACzC;wBACJ,mBAAmB,EAAE,SAAS;wBAC9B,mBAAmB,EAAE,SAAS;wBAC9B,KAAK,EAAE,wBAAwB;qBAChC","sourcesContent":["import {\n Component,\n input,\n output,\n inject,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { SolarisButtonDirective } from '../../../actions/button';\nimport { SolarisDialogRef } from '../service/dialog-ref';\nimport { SOLARIS_DIALOG_REF } from '../token/dialog-data.token';\nimport type {\n SolarisDialogAction,\n SolarisDialogActionsAlign,\n SolarisDialogActionsStack,\n} from '../model/dialog.types';\n\n@Component({\n selector: 'solaris-dialog-actions',\n standalone: true,\n imports: [SolarisButtonDirective],\n templateUrl: './dialog-actions.component.html',\n styleUrls: ['./dialog-actions.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-align]': 'align()',\n '[attr.data-stack]': 'stack()',\n class: 'solaris-dialog-actions',\n },\n})\nexport class SolarisDialogActionsComponent<TResult = unknown> {\n private readonly dialogRef = inject(\n SOLARIS_DIALOG_REF,\n ) as SolarisDialogRef<TResult>;\n\n readonly actions = input<SolarisDialogAction<TResult>[]>([]);\n readonly align = input<SolarisDialogActionsAlign>('end');\n readonly stack = input<SolarisDialogActionsStack>('auto');\n\n readonly actionExecuted = output<SolarisDialogAction<TResult>>();\n\n protected handleAction(action: SolarisDialogAction<TResult>): void {\n const executeAction = (): void => {\n if (action.action) {\n const result = action.action(this.dialogRef);\n if (result instanceof Promise) {\n void result.catch(() => undefined);\n }\n }\n\n if (action.close) {\n this.dialogRef.close(action.result);\n }\n };\n\n executeAction();\n this.actionExecuted.emit(action);\n }\n}\n","<div class=\"solaris-dialog-actions__inner\">\n @for (action of actions(); track $index) {\n <button\n type=\"button\"\n solaris-button\n (click)=\"handleAction(action)\"\n [color]=\"action.color ?? 'neutral'\"\n [disabled]=\"action.disabled ?? false\"\n [appearance]=\"action.appearance ?? 'solid'\"\n >\n {{ action.label }}\n </button>\n }\n</div>\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class SolarisDialogContentComponent {
|
|
4
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: SolarisDialogContentComponent, isStandalone: true, selector: "solaris-dialog-content", host: { classAttribute: "solaris-dialog-content" }, ngImport: i0, template: "<div class=\"solaris-dialog-content__inner\">\n <ng-content />\n</div>\n", styles: [":host{display:block;flex:1;overflow-y:auto;padding:var(--solaris-spacing-4, 16px);min-height:0}.solaris-dialog-content__inner{height:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6
|
-
}
|
|
7
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogContentComponent, decorators: [{
|
|
8
|
-
type: Component,
|
|
9
|
-
args: [{ selector: 'solaris-dialog-content', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
10
|
-
class: 'solaris-dialog-content',
|
|
11
|
-
}, template: "<div class=\"solaris-dialog-content__inner\">\n <ng-content />\n</div>\n", styles: [":host{display:block;flex:1;overflow-y:auto;padding:var(--solaris-spacing-4, 16px);min-height:0}.solaris-dialog-content__inner{height:100%}\n"] }]
|
|
12
|
-
}] });
|
|
13
|
-
//# sourceMappingURL=dialog-content.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-content.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/overlay/dialog/components/dialog-content.component.ts","../../../../../../../../../packages/angular/src/lib/components/overlay/dialog/components/dialog-content.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;;AAYnE,MAAM,OAAO,6BAA6B;wGAA7B,6BAA6B;4FAA7B,6BAA6B,sICZ1C,2EAGA;;4FDSa,6BAA6B;kBAVzC,SAAS;+BACE,wBAAwB,cACtB,IAAI,mBAGC,uBAAuB,CAAC,MAAM,QACzC;wBACJ,KAAK,EAAE,wBAAwB;qBAChC","sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'solaris-dialog-content',\n standalone: true,\n templateUrl: './dialog-content.component.html',\n styleUrls: ['./dialog-content.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'solaris-dialog-content',\n },\n})\nexport class SolarisDialogContentComponent {}\n","<div class=\"solaris-dialog-content__inner\">\n <ng-content />\n</div>\n"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Component, input, inject, ChangeDetectionStrategy, } from '@angular/core';
|
|
2
|
-
import { SOLARIS_DIALOG_REF } from '../token/dialog-data.token';
|
|
3
|
-
import { SolarisIconComponent } from '../../../icon';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class SolarisDialogHeaderComponent {
|
|
6
|
-
dialogRef = inject(SOLARIS_DIALOG_REF);
|
|
7
|
-
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
8
|
-
title = input(...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
|
|
9
|
-
description = input(...(ngDevMode ? [undefined, { debugName: "description" }] : /* istanbul ignore next */ []));
|
|
10
|
-
closeable = input(true, ...(ngDevMode ? [{ debugName: "closeable" }] : /* istanbul ignore next */ []));
|
|
11
|
-
closeLabel = input('Close', ...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
|
|
12
|
-
iconDecorative = input(false, ...(ngDevMode ? [{ debugName: "iconDecorative" }] : /* istanbul ignore next */ []));
|
|
13
|
-
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
14
|
-
variant = input('neutral', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
15
|
-
showCloseButton = () => this.closeable();
|
|
16
|
-
hasTitle = () => !!this.title();
|
|
17
|
-
hasDescription = () => !!this.description();
|
|
18
|
-
hasIcon = () => !!this.icon();
|
|
19
|
-
close() {
|
|
20
|
-
this.dialogRef.close();
|
|
21
|
-
}
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisDialogHeaderComponent, isStandalone: true, selector: "solaris-dialog-header", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null }, iconDecorative: { classPropertyName: "iconDecorative", publicName: "iconDecorative", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-variant": "variant()" }, classAttribute: "solaris-dialog-header" }, ngImport: i0, template: "<div class=\"solaris-dialog-header__start\">\n @if (hasIcon()) {\n <div class=\"solaris-dialog-header__icon\">\n <solaris-icon [name]=\"icon()!\" [decorative]=\"iconDecorative()\" />\n </div>\n }\n\n <div class=\"solaris-dialog-header__text\">\n @if (hasTitle()) {\n <h2 class=\"solaris-dialog-header__title\" id=\"solaris-dialog-title\">\n {{ title() }}\n </h2>\n }\n\n @if (hasDescription()) {\n <p\n class=\"solaris-dialog-header__description\"\n id=\"solaris-dialog-description\"\n >\n {{ description() }}\n </p>\n }\n </div>\n</div>\n\n@if (showCloseButton()) {\n <div class=\"solaris-dialog-header__end\">\n <button\n type=\"button\"\n class=\"solaris-dialog-header__close\"\n [attr.data-size]=\"size()\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n </div>\n}\n", styles: [":host{display:flex;align-items:flex-start;gap:var(--solaris-spacing-3);padding:var(--solaris-spacing-4) var(--solaris-spacing-4) 0;--solaris-dialog-close-size: var(--solaris-font-size-lg);--solaris-dialog-close-icon-size: var(--solaris-font-size-lg);--solaris-dialog-icon-color: var(--solaris-text-muted);--solaris-dialog-media-size: var(--solaris-spacing-8);--solaris-dialog-icon-size: var(--solaris-font-size-2xl)}:host([data-variant=info]){--solaris-dialog-icon-color: var(--solaris-info-base)}:host([data-variant=success]){--solaris-dialog-icon-color: var(--solaris-success-base)}:host([data-variant=warning]){--solaris-dialog-icon-color: var(--solaris-warning-base)}:host([data-variant=danger]){--solaris-dialog-icon-color: var(--solaris-danger-base)}.solaris-dialog-header__start{display:flex;align-items:flex-start;gap:var(--solaris-spacing-3);flex:1;min-width:0}.solaris-dialog-header__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:var(--solaris-dialog-media-size);height:var(--solaris-dialog-media-size);color:var(--solaris-dialog-icon-color)}.solaris-dialog-header__icon solaris-icon,.solaris-dialog-header__icon svg{display:block;width:var(--solaris-dialog-icon-size);height:var(--solaris-dialog-icon-size)}.solaris-dialog-header__text{flex:1;min-width:0}.solaris-dialog-header__title{margin:0;font:var(--solaris-font-weight-semibold) var(--solaris-font-size-lg)/var(--solaris-line-height-sm) var(--solaris-font-family-sans);color:var(--solaris-text-strong)}.solaris-dialog-header__description{margin:var(--solaris-spacing-1) 0 0;font:var(--solaris-font-weight-regular) var(--solaris-font-size-sm)/var(--solaris-line-height-md) var(--solaris-font-family-sans);color:var(--solaris-text-muted)}.solaris-dialog-header__end{flex-shrink:0;display:flex;align-items:center}.solaris-dialog-header__close{all:unset;display:grid;flex-shrink:0;cursor:pointer;place-items:center;box-sizing:border-box;background:transparent;color:var(--solaris-text-muted);width:var(--solaris-dialog-close-size);height:var(--solaris-dialog-close-size);border-radius:var(--solaris-radius-sm);transition:color var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-dialog-header__close:hover{color:var(--solaris-text-default)}.solaris-dialog-header__close:focus-visible{outline-offset:2px;outline:2px solid var(--solaris-primary-base)}.solaris-dialog-header__close solaris-icon,.solaris-dialog-header__close svg{display:block;width:var(--solaris-dialog-close-icon-size);height:var(--solaris-dialog-close-icon-size)}\n"], dependencies: [{ kind: "component", type: SolarisIconComponent, selector: "solaris-icon", inputs: ["name", "ariaLabel", "decorative"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24
|
-
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogHeaderComponent, decorators: [{
|
|
26
|
-
type: Component,
|
|
27
|
-
args: [{ selector: 'solaris-dialog-header', standalone: true, imports: [SolarisIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
28
|
-
class: 'solaris-dialog-header',
|
|
29
|
-
'[attr.data-variant]': 'variant()',
|
|
30
|
-
}, template: "<div class=\"solaris-dialog-header__start\">\n @if (hasIcon()) {\n <div class=\"solaris-dialog-header__icon\">\n <solaris-icon [name]=\"icon()!\" [decorative]=\"iconDecorative()\" />\n </div>\n }\n\n <div class=\"solaris-dialog-header__text\">\n @if (hasTitle()) {\n <h2 class=\"solaris-dialog-header__title\" id=\"solaris-dialog-title\">\n {{ title() }}\n </h2>\n }\n\n @if (hasDescription()) {\n <p\n class=\"solaris-dialog-header__description\"\n id=\"solaris-dialog-description\"\n >\n {{ description() }}\n </p>\n }\n </div>\n</div>\n\n@if (showCloseButton()) {\n <div class=\"solaris-dialog-header__end\">\n <button\n type=\"button\"\n class=\"solaris-dialog-header__close\"\n [attr.data-size]=\"size()\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n </div>\n}\n", styles: [":host{display:flex;align-items:flex-start;gap:var(--solaris-spacing-3);padding:var(--solaris-spacing-4) var(--solaris-spacing-4) 0;--solaris-dialog-close-size: var(--solaris-font-size-lg);--solaris-dialog-close-icon-size: var(--solaris-font-size-lg);--solaris-dialog-icon-color: var(--solaris-text-muted);--solaris-dialog-media-size: var(--solaris-spacing-8);--solaris-dialog-icon-size: var(--solaris-font-size-2xl)}:host([data-variant=info]){--solaris-dialog-icon-color: var(--solaris-info-base)}:host([data-variant=success]){--solaris-dialog-icon-color: var(--solaris-success-base)}:host([data-variant=warning]){--solaris-dialog-icon-color: var(--solaris-warning-base)}:host([data-variant=danger]){--solaris-dialog-icon-color: var(--solaris-danger-base)}.solaris-dialog-header__start{display:flex;align-items:flex-start;gap:var(--solaris-spacing-3);flex:1;min-width:0}.solaris-dialog-header__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:var(--solaris-dialog-media-size);height:var(--solaris-dialog-media-size);color:var(--solaris-dialog-icon-color)}.solaris-dialog-header__icon solaris-icon,.solaris-dialog-header__icon svg{display:block;width:var(--solaris-dialog-icon-size);height:var(--solaris-dialog-icon-size)}.solaris-dialog-header__text{flex:1;min-width:0}.solaris-dialog-header__title{margin:0;font:var(--solaris-font-weight-semibold) var(--solaris-font-size-lg)/var(--solaris-line-height-sm) var(--solaris-font-family-sans);color:var(--solaris-text-strong)}.solaris-dialog-header__description{margin:var(--solaris-spacing-1) 0 0;font:var(--solaris-font-weight-regular) var(--solaris-font-size-sm)/var(--solaris-line-height-md) var(--solaris-font-family-sans);color:var(--solaris-text-muted)}.solaris-dialog-header__end{flex-shrink:0;display:flex;align-items:center}.solaris-dialog-header__close{all:unset;display:grid;flex-shrink:0;cursor:pointer;place-items:center;box-sizing:border-box;background:transparent;color:var(--solaris-text-muted);width:var(--solaris-dialog-close-size);height:var(--solaris-dialog-close-size);border-radius:var(--solaris-radius-sm);transition:color var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}.solaris-dialog-header__close:hover{color:var(--solaris-text-default)}.solaris-dialog-header__close:focus-visible{outline-offset:2px;outline:2px solid var(--solaris-primary-base)}.solaris-dialog-header__close solaris-icon,.solaris-dialog-header__close svg{display:block;width:var(--solaris-dialog-close-icon-size);height:var(--solaris-dialog-close-icon-size)}\n"] }]
|
|
31
|
-
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }], iconDecorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconDecorative", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
|
|
32
|
-
//# sourceMappingURL=dialog-header.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-header.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/overlay/dialog/components/dialog-header.component.ts","../../../../../../../../../packages/angular/src/lib/components/overlay/dialog/components/dialog-header.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;;AAcrD,MAAM,OAAO,4BAA4B;IACtB,SAAS,GAAG,MAAM,CAAC,kBAAkB,CAAqB,CAAC;IAEnE,IAAI,GAAG,KAAK,qFAAU,CAAC;IACvB,KAAK,GAAG,KAAK,sFAAU,CAAC;IACxB,WAAW,GAAG,KAAK,4FAAU,CAAC;IAC9B,SAAS,GAAG,KAAK,CAAU,IAAI,gFAAC,CAAC;IACjC,UAAU,GAAG,KAAK,CAAS,OAAO,iFAAC,CAAC;IACpC,cAAc,GAAG,KAAK,CAAU,KAAK,qFAAC,CAAC;IACvC,IAAI,GAAG,KAAK,CAAS,IAAI,2EAAC,CAAC;IAC3B,OAAO,GAAG,KAAK,CAAS,SAAS,8EAAC,CAAC;IAEzB,eAAe,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IACzC,QAAQ,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IAChC,cAAc,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5C,OAAO,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAEvC,KAAK;QACb,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;wGAnBU,4BAA4B;4FAA5B,4BAA4B,0sCCvBzC,88BAsCA,2jFDxBY,oBAAoB;;4FASnB,4BAA4B;kBAZxC,SAAS;+BACE,uBAAuB,cACrB,IAAI,WACP,CAAC,oBAAoB,CAAC,mBAGd,uBAAuB,CAAC,MAAM,QACzC;wBACJ,KAAK,EAAE,uBAAuB;wBAC9B,qBAAqB,EAAE,WAAW;qBACnC","sourcesContent":["import {\n Component,\n input,\n inject,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { SOLARIS_DIALOG_REF } from '../token/dialog-data.token';\nimport { SolarisDialogRef } from '../service/dialog-ref';\nimport { SolarisIconComponent } from '../../../icon';\n\n@Component({\n selector: 'solaris-dialog-header',\n standalone: true,\n imports: [SolarisIconComponent],\n templateUrl: './dialog-header.component.html',\n styleUrls: ['./dialog-header.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'solaris-dialog-header',\n '[attr.data-variant]': 'variant()',\n },\n})\nexport class SolarisDialogHeaderComponent {\n private readonly dialogRef = inject(SOLARIS_DIALOG_REF) as SolarisDialogRef;\n\n readonly icon = input<string>();\n readonly title = input<string>();\n readonly description = input<string>();\n readonly closeable = input<boolean>(true);\n readonly closeLabel = input<string>('Close');\n readonly iconDecorative = input<boolean>(false);\n readonly size = input<string>('md');\n readonly variant = input<string>('neutral');\n\n protected readonly showCloseButton = () => this.closeable();\n protected readonly hasTitle = () => !!this.title();\n protected readonly hasDescription = () => !!this.description();\n protected readonly hasIcon = () => !!this.icon();\n\n protected close(): void {\n this.dialogRef.close();\n }\n}\n","<div class=\"solaris-dialog-header__start\">\n @if (hasIcon()) {\n <div class=\"solaris-dialog-header__icon\">\n <solaris-icon [name]=\"icon()!\" [decorative]=\"iconDecorative()\" />\n </div>\n }\n\n <div class=\"solaris-dialog-header__text\">\n @if (hasTitle()) {\n <h2 class=\"solaris-dialog-header__title\" id=\"solaris-dialog-title\">\n {{ title() }}\n </h2>\n }\n\n @if (hasDescription()) {\n <p\n class=\"solaris-dialog-header__description\"\n id=\"solaris-dialog-description\"\n >\n {{ description() }}\n </p>\n }\n </div>\n</div>\n\n@if (showCloseButton()) {\n <div class=\"solaris-dialog-header__end\">\n <button\n type=\"button\"\n class=\"solaris-dialog-header__close\"\n [attr.data-size]=\"size()\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <solaris-icon name=\"x\" [decorative]=\"true\" />\n </button>\n </div>\n}\n"]}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { Component, input, effect, signal, ViewChild, ViewContainerRef, inject, HostListener, ChangeDetectionStrategy, Injector, } from '@angular/core';
|
|
2
|
-
import { CdkTrapFocus } from '@angular/cdk/a11y';
|
|
3
|
-
import { SOLARIS_DIALOG_REF, SOLARIS_DIALOG_DATA, } from '../token/dialog-data.token';
|
|
4
|
-
import { SolarisDialogComponent } from '../component/dialog.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class SolarisDialogContainerComponent {
|
|
7
|
-
dialogRef = inject(SOLARIS_DIALOG_REF);
|
|
8
|
-
injector = inject(Injector);
|
|
9
|
-
externalComponent = input(null, ...(ngDevMode ? [{ debugName: "externalComponent" }] : /* istanbul ignore next */ []));
|
|
10
|
-
simpleOptions = input(null, ...(ngDevMode ? [{ debugName: "simpleOptions" }] : /* istanbul ignore next */ []));
|
|
11
|
-
externalComponentConfig = input(null, ...(ngDevMode ? [{ debugName: "externalComponentConfig" }] : /* istanbul ignore next */ []));
|
|
12
|
-
set componentHostRef(vcr) {
|
|
13
|
-
this._componentHost.set(vcr);
|
|
14
|
-
}
|
|
15
|
-
_componentHost = signal(undefined, ...(ngDevMode ? [{ debugName: "_componentHost" }] : /* istanbul ignore next */ []));
|
|
16
|
-
componentRef = null;
|
|
17
|
-
get hostAppearance() {
|
|
18
|
-
if (this.simpleOptions())
|
|
19
|
-
return this.simpleOptions()?.appearance ?? 'surface';
|
|
20
|
-
return this.externalComponentConfig()?.appearance ?? 'surface';
|
|
21
|
-
}
|
|
22
|
-
get hostSize() {
|
|
23
|
-
if (this.simpleOptions())
|
|
24
|
-
return this.simpleOptions()?.size ?? 'md';
|
|
25
|
-
return this.externalComponentConfig()?.size ?? 'md';
|
|
26
|
-
}
|
|
27
|
-
get hostVariant() {
|
|
28
|
-
if (this.simpleOptions())
|
|
29
|
-
return this.simpleOptions()?.variant ?? 'neutral';
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
get panelWidth() {
|
|
33
|
-
if (this.simpleOptions())
|
|
34
|
-
return this.simpleOptions()?.width ?? '';
|
|
35
|
-
return this.externalComponentConfig()?.width ?? '';
|
|
36
|
-
}
|
|
37
|
-
get panelHeight() {
|
|
38
|
-
if (this.simpleOptions())
|
|
39
|
-
return this.simpleOptions()?.height ?? '';
|
|
40
|
-
return this.externalComponentConfig()?.height ?? '';
|
|
41
|
-
}
|
|
42
|
-
get panelMinWidth() {
|
|
43
|
-
if (this.simpleOptions())
|
|
44
|
-
return this.simpleOptions()?.minWidth ?? '';
|
|
45
|
-
return this.externalComponentConfig()?.minWidth ?? '';
|
|
46
|
-
}
|
|
47
|
-
get panelMaxWidth() {
|
|
48
|
-
if (this.simpleOptions())
|
|
49
|
-
return this.simpleOptions()?.maxWidth ?? '';
|
|
50
|
-
return this.externalComponentConfig()?.maxWidth ?? '';
|
|
51
|
-
}
|
|
52
|
-
get panelMinHeight() {
|
|
53
|
-
if (this.simpleOptions())
|
|
54
|
-
return this.simpleOptions()?.minHeight ?? '';
|
|
55
|
-
return this.externalComponentConfig()?.minHeight ?? '';
|
|
56
|
-
}
|
|
57
|
-
get panelMaxHeight() {
|
|
58
|
-
if (this.simpleOptions())
|
|
59
|
-
return this.simpleOptions()?.maxHeight ?? '';
|
|
60
|
-
return this.externalComponentConfig()?.maxHeight ?? '';
|
|
61
|
-
}
|
|
62
|
-
get isSimpleMode() {
|
|
63
|
-
return this.simpleOptions() !== null;
|
|
64
|
-
}
|
|
65
|
-
get closeOnBackdrop() {
|
|
66
|
-
if (this.simpleOptions()) {
|
|
67
|
-
return this.simpleOptions()?.closeOnBackdropClick ?? true;
|
|
68
|
-
}
|
|
69
|
-
return this.externalComponentConfig()?.closeOnBackdropClick ?? true;
|
|
70
|
-
}
|
|
71
|
-
get closeOnEscapeEnabled() {
|
|
72
|
-
if (this.simpleOptions()) {
|
|
73
|
-
return this.simpleOptions()?.closeOnEscape ?? true;
|
|
74
|
-
}
|
|
75
|
-
return this.externalComponentConfig()?.closeOnEscape ?? true;
|
|
76
|
-
}
|
|
77
|
-
get dialogRole() {
|
|
78
|
-
if (this.simpleOptions())
|
|
79
|
-
return this.simpleOptions()?.role ?? 'dialog';
|
|
80
|
-
return this.externalComponentConfig()?.role ?? 'dialog';
|
|
81
|
-
}
|
|
82
|
-
constructor() {
|
|
83
|
-
effect(() => {
|
|
84
|
-
const comp = this.externalComponent();
|
|
85
|
-
const host = this._componentHost();
|
|
86
|
-
if (comp && host) {
|
|
87
|
-
this.createComponentInHost(comp);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
createComponentInHost(compType) {
|
|
92
|
-
const host = this._componentHost();
|
|
93
|
-
if (!host)
|
|
94
|
-
return;
|
|
95
|
-
host.clear();
|
|
96
|
-
const providers = [
|
|
97
|
-
{ provide: SOLARIS_DIALOG_REF, useValue: this.dialogRef },
|
|
98
|
-
];
|
|
99
|
-
const data = this.externalComponentConfig()?.data;
|
|
100
|
-
if (data !== undefined) {
|
|
101
|
-
providers.push({ provide: SOLARIS_DIALOG_DATA, useValue: data });
|
|
102
|
-
}
|
|
103
|
-
const injector = Injector.create({
|
|
104
|
-
providers,
|
|
105
|
-
parent: this.injector,
|
|
106
|
-
});
|
|
107
|
-
this.componentRef = host.createComponent(compType, {
|
|
108
|
-
injector,
|
|
109
|
-
});
|
|
110
|
-
this.dialogRef.componentInstance = this.componentRef.instance;
|
|
111
|
-
}
|
|
112
|
-
onEscapePress() {
|
|
113
|
-
if (this.closeOnEscapeEnabled) {
|
|
114
|
-
this.dialogRef.close();
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
onBackdropClick(event) {
|
|
118
|
-
const target = event.target;
|
|
119
|
-
if (this.closeOnBackdrop &&
|
|
120
|
-
target.classList.contains('solaris-dialog-backdrop')) {
|
|
121
|
-
this.dialogRef.close();
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
125
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisDialogContainerComponent, isStandalone: true, selector: "solaris-dialog-container", inputs: { externalComponent: { classPropertyName: "externalComponent", publicName: "externalComponent", isSignal: true, isRequired: false, transformFunction: null }, simpleOptions: { classPropertyName: "simpleOptions", publicName: "simpleOptions", isSignal: true, isRequired: false, transformFunction: null }, externalComponentConfig: { classPropertyName: "externalComponentConfig", publicName: "externalComponentConfig", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown.escape": "onEscapePress()" }, properties: { "attr.data-size": "hostSize", "attr.data-variant": "hostVariant", "attr.data-appearance": "hostAppearance" }, classAttribute: "solaris-dialog-container" }, viewQueries: [{ propertyName: "componentHostRef", first: true, predicate: ["componentHost"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div\n class=\"solaris-dialog-backdrop\"\n tabindex=\"-1\"\n (click)=\"onBackdropClick($event)\"\n (keydown.escape)=\"onBackdropClick($event)\"\n>\n <div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [attr.aria-modal]=\"true\"\n [attr.role]=\"dialogRole\"\n [style.width]=\"panelWidth\"\n class=\"solaris-dialog-panel\"\n [style.height]=\"panelHeight\"\n [style.min-width]=\"panelMinWidth\"\n [style.max-width]=\"panelMaxWidth\"\n [style.min-height]=\"panelMinHeight\"\n [style.max-height]=\"panelMaxHeight\"\n >\n @if (isSimpleMode) {\n <solaris-dialog [options]=\"simpleOptions()!\" />\n } @else {\n <ng-template #componentHost></ng-template>\n }\n </div>\n</div>\n", styles: [":host{--solaris-dialog-panel-padding: 0;--solaris-dialog-panel-min-width: 28rem;--solaris-dialog-backdrop-bg: var(--solaris-backdrop);--solaris-dialog-z-index: var(--solaris-z-index-modal);--solaris-dialog-panel-shadow: var(--solaris-shadow-lg);--solaris-dialog-panel-radius: var(--solaris-radius-lg);--solaris-dialog-panel-border: var(--solaris-border-default);--solaris-dialog-panel-bg: var( --solaris-surface-raised, var(--solaris-surface-base) );--solaris-dialog-panel-max-height: calc(100dvh - var(--solaris-spacing-8));--solaris-dialog-panel-max-width: calc(100vw - var(--solaris-spacing-8));inset:0;display:flex;overflow:hidden;position:fixed;align-items:center;justify-content:center;z-index:var(--solaris-dialog-z-index)}.solaris-dialog-backdrop{inset:0;display:flex;position:fixed;align-items:center;justify-content:center;background:var(--solaris-dialog-backdrop-bg)}.solaris-dialog-panel{display:flex;overflow:hidden;position:relative;flex-direction:column;box-sizing:border-box;background:var(--solaris-dialog-panel-bg);animation:solaris-dialog-enter .2s ease-out;box-shadow:var(--solaris-dialog-panel-shadow);max-width:var(--solaris-dialog-panel-max-width);min-width:var(--solaris-dialog-panel-min-width);border-radius:var(--solaris-dialog-panel-radius);max-height:var(--solaris-dialog-panel-max-height)}:host([data-appearance=outline]) .solaris-dialog-panel{border:1px solid var(--solaris-dialog-panel-border)}:host([data-size=sm]) .solaris-dialog-panel{width:56rem}:host([data-size=md]) .solaris-dialog-panel{width:72rem}:host([data-size=lg]) .solaris-dialog-panel{width:96rem}:host([data-size=xl]) .solaris-dialog-panel{width:128rem}:host([data-size=fullscreen]) .solaris-dialog-panel{width:100vw;height:100dvh;max-width:100vw;border-radius:0;max-height:100dvh}@keyframes solaris-dialog-enter{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.solaris-dialog-panel{animation:none}}:host-context([data-reduced-motion=true]) .solaris-dialog-panel{animation:none}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: SolarisDialogComponent, selector: "solaris-dialog", inputs: ["options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
126
|
-
}
|
|
127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogContainerComponent, decorators: [{
|
|
128
|
-
type: Component,
|
|
129
|
-
args: [{ selector: 'solaris-dialog-container', standalone: true, imports: [CdkTrapFocus, SolarisDialogComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
130
|
-
'[attr.data-size]': 'hostSize',
|
|
131
|
-
class: 'solaris-dialog-container',
|
|
132
|
-
'[attr.data-variant]': 'hostVariant',
|
|
133
|
-
'[attr.data-appearance]': 'hostAppearance',
|
|
134
|
-
}, template: "<div\n class=\"solaris-dialog-backdrop\"\n tabindex=\"-1\"\n (click)=\"onBackdropClick($event)\"\n (keydown.escape)=\"onBackdropClick($event)\"\n>\n <div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [attr.aria-modal]=\"true\"\n [attr.role]=\"dialogRole\"\n [style.width]=\"panelWidth\"\n class=\"solaris-dialog-panel\"\n [style.height]=\"panelHeight\"\n [style.min-width]=\"panelMinWidth\"\n [style.max-width]=\"panelMaxWidth\"\n [style.min-height]=\"panelMinHeight\"\n [style.max-height]=\"panelMaxHeight\"\n >\n @if (isSimpleMode) {\n <solaris-dialog [options]=\"simpleOptions()!\" />\n } @else {\n <ng-template #componentHost></ng-template>\n }\n </div>\n</div>\n", styles: [":host{--solaris-dialog-panel-padding: 0;--solaris-dialog-panel-min-width: 28rem;--solaris-dialog-backdrop-bg: var(--solaris-backdrop);--solaris-dialog-z-index: var(--solaris-z-index-modal);--solaris-dialog-panel-shadow: var(--solaris-shadow-lg);--solaris-dialog-panel-radius: var(--solaris-radius-lg);--solaris-dialog-panel-border: var(--solaris-border-default);--solaris-dialog-panel-bg: var( --solaris-surface-raised, var(--solaris-surface-base) );--solaris-dialog-panel-max-height: calc(100dvh - var(--solaris-spacing-8));--solaris-dialog-panel-max-width: calc(100vw - var(--solaris-spacing-8));inset:0;display:flex;overflow:hidden;position:fixed;align-items:center;justify-content:center;z-index:var(--solaris-dialog-z-index)}.solaris-dialog-backdrop{inset:0;display:flex;position:fixed;align-items:center;justify-content:center;background:var(--solaris-dialog-backdrop-bg)}.solaris-dialog-panel{display:flex;overflow:hidden;position:relative;flex-direction:column;box-sizing:border-box;background:var(--solaris-dialog-panel-bg);animation:solaris-dialog-enter .2s ease-out;box-shadow:var(--solaris-dialog-panel-shadow);max-width:var(--solaris-dialog-panel-max-width);min-width:var(--solaris-dialog-panel-min-width);border-radius:var(--solaris-dialog-panel-radius);max-height:var(--solaris-dialog-panel-max-height)}:host([data-appearance=outline]) .solaris-dialog-panel{border:1px solid var(--solaris-dialog-panel-border)}:host([data-size=sm]) .solaris-dialog-panel{width:56rem}:host([data-size=md]) .solaris-dialog-panel{width:72rem}:host([data-size=lg]) .solaris-dialog-panel{width:96rem}:host([data-size=xl]) .solaris-dialog-panel{width:128rem}:host([data-size=fullscreen]) .solaris-dialog-panel{width:100vw;height:100dvh;max-width:100vw;border-radius:0;max-height:100dvh}@keyframes solaris-dialog-enter{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.solaris-dialog-panel{animation:none}}:host-context([data-reduced-motion=true]) .solaris-dialog-panel{animation:none}\n"] }]
|
|
135
|
-
}], ctorParameters: () => [], propDecorators: { externalComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "externalComponent", required: false }] }], simpleOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "simpleOptions", required: false }] }], externalComponentConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "externalComponentConfig", required: false }] }], componentHostRef: [{
|
|
136
|
-
type: ViewChild,
|
|
137
|
-
args: ['componentHost', { read: ViewContainerRef }]
|
|
138
|
-
}], onEscapePress: [{
|
|
139
|
-
type: HostListener,
|
|
140
|
-
args: ['document:keydown.escape']
|
|
141
|
-
}] } });
|
|
142
|
-
//# sourceMappingURL=dialog-container.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-container.component.js","sourceRoot":"","sources":["../../../../../../../../../packages/angular/src/lib/components/overlay/dialog/container/dialog-container.component.ts","../../../../../../../../../packages/angular/src/lib/components/overlay/dialog/container/dialog-container.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,uBAAuB,EAGvB,QAAQ,GAET,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AAKpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;;AAiBvE,MAAM,OAAO,+BAA+B;IACzB,SAAS,GAAG,MAAM,CAAC,kBAAkB,CAAqB,CAAC;IAC3D,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEpC,iBAAiB,GAAG,KAAK,CAAuB,IA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AAC;QAEH,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE;YACjD,QAAQ;SACT,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;IAChE,CAAC;IAGS,aAAa;QACrB,IAAI,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC9B,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;IAES,eAAe,CAAC,KAAY;QACpC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;QAC3C,IACE,IAAI,CAAC,eAAe;YACpB,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,yBAAyB,CAAC,EACpD,CAAC;YACD,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;wGA5IU,+BAA+B;4FAA/B,+BAA+B,u4BAUN,gBAAgB,6BCpDtD,qtBA0BA,4iEDKY,YAAY,4IAAE,sBAAsB;;4FAWnC,+BAA+B;kBAd3C,SAAS;+BACE,0BAA0B,cACxB,IAAI,WACP,CAAC,YAAY,EAAE,sBAAsB,CAAC,mBAG9B,uBAAuB,CAAC,MAAM,QACzC;wBACJ,kBAAkB,EAAE,UAAU;wBAC9B,KAAK,EAAE,0BAA0B;wBACjC,qBAAqB,EAAE,aAAa;wBACpC,wBAAwB,EAAE,gBAAgB;qBAC3C;;sBAYA,SAAS;uBAAC,eAAe,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;;sBAmHrD,YAAY;uBAAC,yBAAyB","sourcesContent":["import {\n Component,\n input,\n effect,\n signal,\n ViewChild,\n ViewContainerRef,\n inject,\n HostListener,\n ChangeDetectionStrategy,\n type Type,\n type ComponentRef,\n Injector,\n type Provider,\n} from '@angular/core';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\n\nimport {\n SOLARIS_DIALOG_REF,\n SOLARIS_DIALOG_DATA,\n} from '../token/dialog-data.token';\nimport type {\n SolarisDialogOptions,\n SolarisDialogComponentConfig,\n} from '../model/dialog.types';\nimport { SolarisDialogComponent } from '../component/dialog.component';\nimport { SolarisDialogRef } from '../service/dialog-ref';\n\n@Component({\n selector: 'solaris-dialog-container',\n standalone: true,\n imports: [CdkTrapFocus, SolarisDialogComponent],\n templateUrl: './dialog-container.component.html',\n styleUrls: ['./dialog-container.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-size]': 'hostSize',\n class: 'solaris-dialog-container',\n '[attr.data-variant]': 'hostVariant',\n '[attr.data-appearance]': 'hostAppearance',\n },\n})\nexport class SolarisDialogContainerComponent {\n private readonly dialogRef = inject(SOLARIS_DIALOG_REF) as SolarisDialogRef;\n private readonly injector = inject(Injector);\n\n readonly externalComponent = input<Type<unknown> | null>(null);\n readonly simpleOptions = input<SolarisDialogOptions | null>(null);\n readonly externalComponentConfig = input<SolarisDialogComponentConfig | null>(\n null,\n );\n\n @ViewChild('componentHost', { read: ViewContainerRef })\n set componentHostRef(vcr: ViewContainerRef | undefined) {\n this._componentHost.set(vcr);\n }\n\n private readonly _componentHost = signal<ViewContainerRef | undefined>(\n undefined,\n );\n\n private componentRef: ComponentRef<unknown> | null = null;\n\n protected get hostAppearance(): string {\n if (this.simpleOptions())\n return this.simpleOptions()?.appearance ?? 'surface';\n return this.externalComponentConfig()?.appearance ?? 'surface';\n }\n\n protected get hostSize(): string {\n if (this.simpleOptions()) return this.simpleOptions()?.size ?? 'md';\n return this.externalComponentConfig()?.size ?? 'md';\n }\n\n protected get hostVariant(): string | undefined | null {\n if (this.simpleOptions()) return this.simpleOptions()?.variant ?? 'neutral';\n return null;\n }\n\n protected get panelWidth(): string {\n if (this.simpleOptions()) return this.simpleOptions()?.width ?? '';\n return this.externalComponentConfig()?.width ?? '';\n }\n\n protected get panelHeight(): string {\n if (this.simpleOptions()) return this.simpleOptions()?.height ?? '';\n return this.externalComponentConfig()?.height ?? '';\n }\n\n protected get panelMinWidth(): string {\n if (this.simpleOptions()) return this.simpleOptions()?.minWidth ?? '';\n return this.externalComponentConfig()?.minWidth ?? '';\n }\n\n protected get panelMaxWidth(): string {\n if (this.simpleOptions()) return this.simpleOptions()?.maxWidth ?? '';\n return this.externalComponentConfig()?.maxWidth ?? '';\n }\n\n protected get panelMinHeight(): string {\n if (this.simpleOptions()) return this.simpleOptions()?.minHeight ?? '';\n return this.externalComponentConfig()?.minHeight ?? '';\n }\n\n protected get panelMaxHeight(): string {\n if (this.simpleOptions()) return this.simpleOptions()?.maxHeight ?? '';\n return this.externalComponentConfig()?.maxHeight ?? '';\n }\n\n protected get isSimpleMode(): boolean {\n return this.simpleOptions() !== null;\n }\n\n protected get closeOnBackdrop(): boolean {\n if (this.simpleOptions()) {\n return this.simpleOptions()?.closeOnBackdropClick ?? true;\n }\n return this.externalComponentConfig()?.closeOnBackdropClick ?? true;\n }\n\n protected get closeOnEscapeEnabled(): boolean {\n if (this.simpleOptions()) {\n return this.simpleOptions()?.closeOnEscape ?? true;\n }\n return this.externalComponentConfig()?.closeOnEscape ?? true;\n }\n\n protected get dialogRole(): string {\n if (this.simpleOptions()) return this.simpleOptions()?.role ?? 'dialog';\n return this.externalComponentConfig()?.role ?? 'dialog';\n }\n\n constructor() {\n effect(() => {\n const comp = this.externalComponent();\n const host = this._componentHost();\n if (comp && host) {\n this.createComponentInHost(comp);\n }\n });\n }\n\n private createComponentInHost(compType: Type<unknown>): void {\n const host = this._componentHost();\n if (!host) return;\n host.clear();\n\n const providers: Provider[] = [\n { provide: SOLARIS_DIALOG_REF, useValue: this.dialogRef },\n ];\n const data = this.externalComponentConfig()?.data;\n if (data !== undefined) {\n providers.push({ provide: SOLARIS_DIALOG_DATA, useValue: data });\n }\n\n const injector = Injector.create({\n providers,\n parent: this.injector,\n });\n\n this.componentRef = host.createComponent(compType, {\n injector,\n });\n\n this.dialogRef.componentInstance = this.componentRef.instance;\n }\n\n @HostListener('document:keydown.escape')\n protected onEscapePress(): void {\n if (this.closeOnEscapeEnabled) {\n this.dialogRef.close();\n }\n }\n\n protected onBackdropClick(event: Event): void {\n const target = event.target as HTMLElement;\n if (\n this.closeOnBackdrop &&\n target.classList.contains('solaris-dialog-backdrop')\n ) {\n this.dialogRef.close();\n }\n }\n}\n","<div\n class=\"solaris-dialog-backdrop\"\n tabindex=\"-1\"\n (click)=\"onBackdropClick($event)\"\n (keydown.escape)=\"onBackdropClick($event)\"\n>\n <div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [attr.aria-modal]=\"true\"\n [attr.role]=\"dialogRole\"\n [style.width]=\"panelWidth\"\n class=\"solaris-dialog-panel\"\n [style.height]=\"panelHeight\"\n [style.min-width]=\"panelMinWidth\"\n [style.max-width]=\"panelMaxWidth\"\n [style.min-height]=\"panelMinHeight\"\n [style.max-height]=\"panelMaxHeight\"\n >\n @if (isSimpleMode) {\n <solaris-dialog [options]=\"simpleOptions()!\" />\n } @else {\n <ng-template #componentHost></ng-template>\n }\n </div>\n</div>\n"]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Component, input, model, ContentChildren, effect, signal, ChangeDetectionStrategy, } from '@angular/core';
|
|
2
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
3
|
-
import { SolarisDialogStepComponent } from './dialog-step.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class SolarisDialogFlowComponent {
|
|
6
|
-
activeIndex = model(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
7
|
-
transition = input('slide', ...(ngDevMode ? [{ debugName: "transition" }] : /* istanbul ignore next */ []));
|
|
8
|
-
steps;
|
|
9
|
-
stepTemplates = signal([], ...(ngDevMode ? [{ debugName: "stepTemplates" }] : /* istanbul ignore next */ []));
|
|
10
|
-
animationDirection = signal(null, ...(ngDevMode ? [{ debugName: "animationDirection" }] : /* istanbul ignore next */ []));
|
|
11
|
-
previousIndex = 0;
|
|
12
|
-
hasNavigated = false;
|
|
13
|
-
constructor() {
|
|
14
|
-
effect(() => {
|
|
15
|
-
const current = this.activeIndex();
|
|
16
|
-
if (this.hasNavigated) {
|
|
17
|
-
if (current > this.previousIndex) {
|
|
18
|
-
this.animationDirection.set('forward');
|
|
19
|
-
}
|
|
20
|
-
else if (current < this.previousIndex) {
|
|
21
|
-
this.animationDirection.set('backward');
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
this.previousIndex = current;
|
|
25
|
-
this.hasNavigated = true;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
ngAfterContentInit() {
|
|
29
|
-
if (this.steps) {
|
|
30
|
-
this.stepTemplates.set(this.steps.toArray().map((s, i) => ({
|
|
31
|
-
template: s.templateRef,
|
|
32
|
-
index: i,
|
|
33
|
-
})));
|
|
34
|
-
this.steps.changes.subscribe(() => {
|
|
35
|
-
this.stepTemplates.set((this.steps?.toArray() ?? []).map((s, i) => ({
|
|
36
|
-
template: s.templateRef,
|
|
37
|
-
index: i,
|
|
38
|
-
})));
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogFlowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SolarisDialogFlowComponent, isStandalone: true, selector: "solaris-dialog-flow", inputs: { activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null }, transition: { classPropertyName: "transition", publicName: "transition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeIndex: "activeIndexChange" }, host: { properties: { "attr.data-transition": "transition()", "attr.data-direction": "animationDirection()" }, classAttribute: "solaris-dialog-flow" }, queries: [{ propertyName: "steps", predicate: SolarisDialogStepComponent }], ngImport: i0, template: "<div class=\"solaris-dialog-flow__stage\">\n <div class=\"solaris-dialog-flow__steps\">\n @for (step of stepTemplates(); track step.index) {\n <div\n class=\"solaris-dialog-flow__step\"\n [class.solaris-dialog-flow__step--active]=\"step.index === activeIndex()\"\n [class.solaris-dialog-flow__step--exit]=\"step.index !== activeIndex()\"\n >\n <ng-container [ngTemplateOutlet]=\"step.template\" />\n </div>\n }\n </div>\n\n <div class=\"solaris-dialog-flow__footer\">\n <ng-content select=\"[solaris-dialog-flow-footer]\" />\n </div>\n</div>\n", styles: ["@keyframes slide-in-forward{0%{opacity:0;transform:translate(var(--solaris-spacing-20))}to{opacity:1;transform:translate(0)}}@keyframes slide-out-forward{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(calc(var(--solaris-spacing-20) * -1))}}@keyframes slide-in-backward{0%{opacity:0;transform:translate(calc(var(--solaris-spacing-20) * -1))}to{opacity:1;transform:translate(0)}}@keyframes slide-out-backward{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(var(--solaris-spacing-20))}}:host{flex:1;min-height:0;display:flex;flex-direction:column}.solaris-dialog-flow__stage{flex:1;min-height:0;display:flex;flex-direction:column}.solaris-dialog-flow__steps{flex:1;min-height:0;position:relative}.solaris-dialog-flow__step{inset:0;opacity:0;position:absolute;pointer-events:none}.solaris-dialog-flow__step--active{opacity:1;pointer-events:auto}:host([data-direction=forward]) .solaris-dialog-flow__step--active{animation:slide-in-forward var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard) both}:host([data-direction=backward]) .solaris-dialog-flow__step--active{animation:slide-in-backward var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard) both}:host([data-direction=forward]) .solaris-dialog-flow__step--exit{animation:slide-out-forward var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard) both}:host([data-direction=backward]) .solaris-dialog-flow__step--exit{animation:slide-out-backward var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard) both}.solaris-dialog-flow__footer{opacity:1;transform:none}:host([data-transition=fade]) .solaris-dialog-flow__step--active,:host([data-transition=fade]) .solaris-dialog-flow__step--exit{animation-name:none}:host([data-transition=fade]) .solaris-dialog-flow__step--active{opacity:1;transition:opacity var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host([data-transition=fade]) .solaris-dialog-flow__step--exit{opacity:0;transition:opacity var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host([data-transition=none]) .solaris-dialog-flow__step--active,:host([data-transition=none]) .solaris-dialog-flow__step--exit{animation:none;transition:none}@media(prefers-reduced-motion:reduce){.solaris-dialog-flow__step--active,.solaris-dialog-flow__step--exit{animation-name:none}.solaris-dialog-flow__step--active{opacity:1;transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}.solaris-dialog-flow__step--exit{opacity:0;transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}}:host-context([data-reduced-motion=true]) .solaris-dialog-flow__step--active,:host-context([data-reduced-motion=true]) .solaris-dialog-flow__step--exit{animation-name:none}:host-context([data-reduced-motion=true]) .solaris-dialog-flow__step--active{opacity:1;transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}:host-context([data-reduced-motion=true]) .solaris-dialog-flow__step--exit{opacity:0;transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44
|
-
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisDialogFlowComponent, decorators: [{
|
|
46
|
-
type: Component,
|
|
47
|
-
args: [{ selector: 'solaris-dialog-flow', standalone: true, imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
48
|
-
class: 'solaris-dialog-flow',
|
|
49
|
-
'[attr.data-transition]': 'transition()',
|
|
50
|
-
'[attr.data-direction]': 'animationDirection()',
|
|
51
|
-
}, template: "<div class=\"solaris-dialog-flow__stage\">\n <div class=\"solaris-dialog-flow__steps\">\n @for (step of stepTemplates(); track step.index) {\n <div\n class=\"solaris-dialog-flow__step\"\n [class.solaris-dialog-flow__step--active]=\"step.index === activeIndex()\"\n [class.solaris-dialog-flow__step--exit]=\"step.index !== activeIndex()\"\n >\n <ng-container [ngTemplateOutlet]=\"step.template\" />\n </div>\n }\n </div>\n\n <div class=\"solaris-dialog-flow__footer\">\n <ng-content select=\"[solaris-dialog-flow-footer]\" />\n </div>\n</div>\n", styles: ["@keyframes slide-in-forward{0%{opacity:0;transform:translate(var(--solaris-spacing-20))}to{opacity:1;transform:translate(0)}}@keyframes slide-out-forward{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(calc(var(--solaris-spacing-20) * -1))}}@keyframes slide-in-backward{0%{opacity:0;transform:translate(calc(var(--solaris-spacing-20) * -1))}to{opacity:1;transform:translate(0)}}@keyframes slide-out-backward{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(var(--solaris-spacing-20))}}:host{flex:1;min-height:0;display:flex;flex-direction:column}.solaris-dialog-flow__stage{flex:1;min-height:0;display:flex;flex-direction:column}.solaris-dialog-flow__steps{flex:1;min-height:0;position:relative}.solaris-dialog-flow__step{inset:0;opacity:0;position:absolute;pointer-events:none}.solaris-dialog-flow__step--active{opacity:1;pointer-events:auto}:host([data-direction=forward]) .solaris-dialog-flow__step--active{animation:slide-in-forward var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard) both}:host([data-direction=backward]) .solaris-dialog-flow__step--active{animation:slide-in-backward var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard) both}:host([data-direction=forward]) .solaris-dialog-flow__step--exit{animation:slide-out-forward var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard) both}:host([data-direction=backward]) .solaris-dialog-flow__step--exit{animation:slide-out-backward var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard) both}.solaris-dialog-flow__footer{opacity:1;transform:none}:host([data-transition=fade]) .solaris-dialog-flow__step--active,:host([data-transition=fade]) .solaris-dialog-flow__step--exit{animation-name:none}:host([data-transition=fade]) .solaris-dialog-flow__step--active{opacity:1;transition:opacity var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host([data-transition=fade]) .solaris-dialog-flow__step--exit{opacity:0;transition:opacity var(--solaris-motion-duration-normal) var(--solaris-motion-easing-standard)}:host([data-transition=none]) .solaris-dialog-flow__step--active,:host([data-transition=none]) .solaris-dialog-flow__step--exit{animation:none;transition:none}@media(prefers-reduced-motion:reduce){.solaris-dialog-flow__step--active,.solaris-dialog-flow__step--exit{animation-name:none}.solaris-dialog-flow__step--active{opacity:1;transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}.solaris-dialog-flow__step--exit{opacity:0;transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}}:host-context([data-reduced-motion=true]) .solaris-dialog-flow__step--active,:host-context([data-reduced-motion=true]) .solaris-dialog-flow__step--exit{animation-name:none}:host-context([data-reduced-motion=true]) .solaris-dialog-flow__step--active{opacity:1;transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}:host-context([data-reduced-motion=true]) .solaris-dialog-flow__step--exit{opacity:0;transition:opacity var(--solaris-motion-duration-fast) var(--solaris-motion-easing-standard)}\n"] }]
|
|
52
|
-
}], ctorParameters: () => [], propDecorators: { activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }, { type: i0.Output, args: ["activeIndexChange"] }], transition: [{ type: i0.Input, args: [{ isSignal: true, alias: "transition", required: false }] }], steps: [{
|
|
53
|
-
type: ContentChildren,
|
|
54
|
-
args: [SolarisDialogStepComponent]
|
|
55
|
-
}] } });
|
|
56
|
-
//# sourceMappingURL=dialog-flow.component.js.map
|