@educarehq/solaris-ui 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/educarehq-solaris-ui.d.ts +5 -0
- package/esm2022/educarehq-solaris-ui.js +5 -0
- package/esm2022/educarehq-solaris-ui.js.map +1 -0
- package/esm2022/index.js +109 -0
- package/esm2022/index.js.map +1 -0
- package/esm2022/lib/components/actions/button/directives/button-icon.directive.js +17 -0
- package/esm2022/lib/components/actions/button/directives/button-icon.directive.js.map +1 -0
- package/esm2022/lib/components/actions/button/directives/button.directive.js +60 -0
- package/esm2022/lib/components/actions/button/directives/button.directive.js.map +1 -0
- package/esm2022/lib/components/actions/button/index.js +3 -0
- package/esm2022/lib/components/actions/button/index.js.map +1 -0
- package/esm2022/lib/components/actions/button/model/button.types.js +1 -0
- package/esm2022/lib/components/actions/button/model/button.types.js.map +1 -0
- package/esm2022/lib/components/actions/button-group/component/button-group.component.js +21 -0
- package/esm2022/lib/components/actions/button-group/component/button-group.component.js.map +1 -0
- package/esm2022/lib/components/actions/button-group/model/button-group.types.js +1 -0
- package/esm2022/lib/components/actions/button-group/model/button-group.types.js.map +1 -0
- package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js +17 -0
- package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js.map +1 -0
- package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js +58 -0
- package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js.map +1 -0
- package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js +1 -0
- package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js.map +1 -0
- package/esm2022/lib/components/data-display/badge/component/badge.component.js +24 -0
- package/esm2022/lib/components/data-display/badge/component/badge.component.js.map +1 -0
- package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js +17 -0
- package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js.map +1 -0
- package/esm2022/lib/components/data-display/badge/index.js +3 -0
- package/esm2022/lib/components/data-display/badge/index.js.map +1 -0
- package/esm2022/lib/components/data-display/badge/model/badge.types.js +1 -0
- package/esm2022/lib/components/data-display/badge/model/badge.types.js.map +1 -0
- package/esm2022/lib/components/data-display/card/component/card.component.js +20 -0
- package/esm2022/lib/components/data-display/card/component/card.component.js.map +1 -0
- package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js +17 -0
- package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js.map +1 -0
- package/esm2022/lib/components/data-display/card/directives/card-content.directive.js +17 -0
- package/esm2022/lib/components/data-display/card/directives/card-content.directive.js.map +1 -0
- package/esm2022/lib/components/data-display/card/directives/card-description.directive.js +17 -0
- package/esm2022/lib/components/data-display/card/directives/card-description.directive.js.map +1 -0
- package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js +19 -0
- package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js.map +1 -0
- package/esm2022/lib/components/data-display/card/directives/card-header.directive.js +17 -0
- package/esm2022/lib/components/data-display/card/directives/card-header.directive.js.map +1 -0
- package/esm2022/lib/components/data-display/card/directives/card-media.directive.js +17 -0
- package/esm2022/lib/components/data-display/card/directives/card-media.directive.js.map +1 -0
- package/esm2022/lib/components/data-display/card/directives/card-title.directive.js +17 -0
- package/esm2022/lib/components/data-display/card/directives/card-title.directive.js.map +1 -0
- package/esm2022/lib/components/data-display/card/model/card.types.js +1 -0
- package/esm2022/lib/components/data-display/card/model/card.types.js.map +1 -0
- package/esm2022/lib/components/data-display/divider/component/divider.component.js +46 -0
- package/esm2022/lib/components/data-display/divider/component/divider.component.js.map +1 -0
- package/esm2022/lib/components/data-display/divider/index.js +2 -0
- package/esm2022/lib/components/data-display/divider/index.js.map +1 -0
- package/esm2022/lib/components/data-display/divider/model/divider.types.js +1 -0
- package/esm2022/lib/components/data-display/divider/model/divider.types.js.map +1 -0
- package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js +18 -0
- package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js.map +1 -0
- package/esm2022/lib/components/feedback/alert/component/alert.component.js +90 -0
- package/esm2022/lib/components/feedback/alert/component/alert.component.js.map +1 -0
- package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js +17 -0
- package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js.map +1 -0
- package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js +17 -0
- package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js.map +1 -0
- package/esm2022/lib/components/feedback/alert/model/alert.types.js +1 -0
- package/esm2022/lib/components/feedback/alert/model/alert.types.js.map +1 -0
- package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js +69 -0
- package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js.map +1 -0
- package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js +1 -0
- package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/component/toast.component.js +268 -0
- package/esm2022/lib/components/feedback/toast/component/toast.component.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/container/toast-container.component.js +24 -0
- package/esm2022/lib/components/feedback/toast/container/toast-container.component.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/model/toast.types.js +1 -0
- package/esm2022/lib/components/feedback/toast/model/toast.types.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js +17 -0
- package/esm2022/lib/components/feedback/toast/provider/provide-solaris-toast.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/service/toast.service.js +219 -0
- package/esm2022/lib/components/feedback/toast/service/toast.service.js.map +1 -0
- package/esm2022/lib/components/feedback/toast/token/toast.tokens.js +13 -0
- package/esm2022/lib/components/feedback/toast/token/toast.tokens.js.map +1 -0
- package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js +227 -0
- package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js.map +1 -0
- package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js +1 -0
- package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js.map +1 -0
- package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js +441 -0
- package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js.map +1 -0
- package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js +1 -0
- package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js.map +1 -0
- package/esm2022/lib/components/forms/email-field/component/email-field.component.js +215 -0
- package/esm2022/lib/components/forms/email-field/component/email-field.component.js.map +1 -0
- package/esm2022/lib/components/forms/email-field/model/email-field.types.js +1 -0
- package/esm2022/lib/components/forms/email-field/model/email-field.types.js.map +1 -0
- package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js +69 -0
- package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js.map +1 -0
- package/esm2022/lib/components/forms/form-field/component/form-error.component.js +19 -0
- package/esm2022/lib/components/forms/form-field/component/form-error.component.js.map +1 -0
- package/esm2022/lib/components/forms/form-field/component/form-field.component.js +442 -0
- package/esm2022/lib/components/forms/form-field/component/form-field.component.js.map +1 -0
- package/esm2022/lib/components/forms/form-field/component/form-hint.component.js +18 -0
- package/esm2022/lib/components/forms/form-field/component/form-hint.component.js.map +1 -0
- package/esm2022/lib/components/forms/form-field/component/form-label.component.js +18 -0
- package/esm2022/lib/components/forms/form-field/component/form-label.component.js.map +1 -0
- package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js +14 -0
- package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js.map +1 -0
- package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js +17 -0
- package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js.map +1 -0
- package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js +17 -0
- package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js.map +1 -0
- package/esm2022/lib/components/forms/form-field/index.js +8 -0
- package/esm2022/lib/components/forms/form-field/index.js.map +1 -0
- package/esm2022/lib/components/forms/form-field/model/form-control.contract.js +3 -0
- package/esm2022/lib/components/forms/form-field/model/form-control.contract.js.map +1 -0
- package/esm2022/lib/components/forms/form-field/model/form-field.types.js +1 -0
- package/esm2022/lib/components/forms/form-field/model/form-field.types.js.map +1 -0
- package/esm2022/lib/components/forms/input/directives/input.directive.js +148 -0
- package/esm2022/lib/components/forms/input/directives/input.directive.js.map +1 -0
- package/esm2022/lib/components/forms/input/index.js +2 -0
- package/esm2022/lib/components/forms/input/index.js.map +1 -0
- package/esm2022/lib/components/forms/input/model/input.defaults.js +27 -0
- package/esm2022/lib/components/forms/input/model/input.defaults.js.map +1 -0
- package/esm2022/lib/components/forms/input/model/input.types.js +1 -0
- package/esm2022/lib/components/forms/input/model/input.types.js.map +1 -0
- package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js +1102 -0
- package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js.map +1 -0
- package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js +1 -0
- package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js.map +1 -0
- package/esm2022/lib/components/forms/option/component/option.component.js +149 -0
- package/esm2022/lib/components/forms/option/component/option.component.js.map +1 -0
- package/esm2022/lib/components/forms/option/directives/option-slots.directive.js +58 -0
- package/esm2022/lib/components/forms/option/directives/option-slots.directive.js.map +1 -0
- package/esm2022/lib/components/forms/option/index.js +3 -0
- package/esm2022/lib/components/forms/option/index.js.map +1 -0
- package/esm2022/lib/components/forms/option/model/option.types.js +1 -0
- package/esm2022/lib/components/forms/option/model/option.types.js.map +1 -0
- package/esm2022/lib/components/forms/option-group/component/option-group.component.js +103 -0
- package/esm2022/lib/components/forms/option-group/component/option-group.component.js.map +1 -0
- package/esm2022/lib/components/forms/option-group/index.js +2 -0
- package/esm2022/lib/components/forms/option-group/index.js.map +1 -0
- package/esm2022/lib/components/forms/option-group/model/option-group.types.js +1 -0
- package/esm2022/lib/components/forms/option-group/model/option-group.types.js.map +1 -0
- package/esm2022/lib/components/forms/password-field/component/password-field.component.js +299 -0
- package/esm2022/lib/components/forms/password-field/component/password-field.component.js.map +1 -0
- package/esm2022/lib/components/forms/password-field/model/password-field-constants.js +5 -0
- package/esm2022/lib/components/forms/password-field/model/password-field-constants.js.map +1 -0
- package/esm2022/lib/components/forms/password-field/model/password-field.types.js +1 -0
- package/esm2022/lib/components/forms/password-field/model/password-field.types.js.map +1 -0
- package/esm2022/lib/components/forms/password-field/model/password-policy.types.js +1 -0
- package/esm2022/lib/components/forms/password-field/model/password-policy.types.js.map +1 -0
- package/esm2022/lib/components/forms/password-field/model/password-strength.js +67 -0
- package/esm2022/lib/components/forms/password-field/model/password-strength.js.map +1 -0
- package/esm2022/lib/components/forms/password-field/validators/password.validator.js +45 -0
- package/esm2022/lib/components/forms/password-field/validators/password.validator.js.map +1 -0
- package/esm2022/lib/components/forms/radio/component/radio.component.js +219 -0
- package/esm2022/lib/components/forms/radio/component/radio.component.js.map +1 -0
- package/esm2022/lib/components/forms/radio/model/radio.types.js +1 -0
- package/esm2022/lib/components/forms/radio/model/radio.types.js.map +1 -0
- package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js +348 -0
- package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js.map +1 -0
- package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js +3 -0
- package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js.map +1 -0
- package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js +1 -0
- package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js.map +1 -0
- package/esm2022/lib/components/forms/select/component/select.component.js +815 -0
- package/esm2022/lib/components/forms/select/component/select.component.js.map +1 -0
- package/esm2022/lib/components/forms/select/model/select.types.js +1 -0
- package/esm2022/lib/components/forms/select/model/select.types.js.map +1 -0
- package/esm2022/lib/components/forms/switch/component/switch.component.js +211 -0
- package/esm2022/lib/components/forms/switch/component/switch.component.js.map +1 -0
- package/esm2022/lib/components/forms/switch/index.js +2 -0
- package/esm2022/lib/components/forms/switch/index.js.map +1 -0
- package/esm2022/lib/components/forms/switch/model/switch.types.js +1 -0
- package/esm2022/lib/components/forms/switch/model/switch.types.js.map +1 -0
- package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js +369 -0
- package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js.map +1 -0
- package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js +1 -0
- package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js.map +1 -0
- package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js +137 -0
- package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js.map +1 -0
- package/esm2022/lib/components/forms/textarea/model/textarea.types.js +1 -0
- package/esm2022/lib/components/forms/textarea/model/textarea.types.js.map +1 -0
- package/esm2022/lib/components/icon/component/solaris-icon.component.js +20 -0
- package/esm2022/lib/components/icon/component/solaris-icon.component.js.map +1 -0
- package/esm2022/lib/components/icon/index.js +2 -0
- package/esm2022/lib/components/icon/index.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js +27 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js +96 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js +22 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js +105 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js +95 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js +631 -0
- package/esm2022/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js +365 -0
- package/esm2022/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/index.js +8 -0
- package/esm2022/lib/components/interaction/dropdown-menu/index.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js +3 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.js.map +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js +1 -0
- package/esm2022/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.js.map +1 -0
- package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js +29 -0
- package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js.map +1 -0
- package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js +325 -0
- package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js.map +1 -0
- package/esm2022/lib/components/interaction/popover/directives/popover.directive.js +16 -0
- package/esm2022/lib/components/interaction/popover/directives/popover.directive.js.map +1 -0
- package/esm2022/lib/components/interaction/popover/index.js +4 -0
- package/esm2022/lib/components/interaction/popover/index.js.map +1 -0
- package/esm2022/lib/components/interaction/popover/model/popover-position.js +145 -0
- package/esm2022/lib/components/interaction/popover/model/popover-position.js.map +1 -0
- package/esm2022/lib/components/interaction/popover/model/popover.types.js +1 -0
- package/esm2022/lib/components/interaction/popover/model/popover.types.js.map +1 -0
- package/esm2022/lib/components/interaction/popover/token/popover.tokens.js +3 -0
- package/esm2022/lib/components/interaction/popover/token/popover.tokens.js.map +1 -0
- package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js +23 -0
- package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js.map +1 -0
- package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js +405 -0
- package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js.map +1 -0
- package/esm2022/lib/components/interaction/tooltip/index.js +3 -0
- package/esm2022/lib/components/interaction/tooltip/index.js.map +1 -0
- package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js +209 -0
- package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js.map +1 -0
- package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js +1 -0
- package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js.map +1 -0
- package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js +3 -0
- package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js.map +1 -0
- package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js +323 -0
- package/esm2022/lib/components/navigation/editable-tabs/component/editable-tabs.component.js.map +1 -0
- package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js +34 -0
- package/esm2022/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.js.map +1 -0
- package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js +1 -0
- package/esm2022/lib/components/navigation/editable-tabs/model/editable-tabs.types.js.map +1 -0
- package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js +242 -0
- package/esm2022/lib/components/navigation/segmented-control/component/segmented-control.component.js.map +1 -0
- package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js +197 -0
- package/esm2022/lib/components/navigation/segmented-control/item/segmented-item.component.js.map +1 -0
- package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js +1 -0
- package/esm2022/lib/components/navigation/segmented-control/model/segmented-control.types.js.map +1 -0
- package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js +3 -0
- package/esm2022/lib/components/navigation/segmented-control/token/segmented-control.tokens.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js +15 -0
- package/esm2022/lib/components/navigation/stepper/actions/stepper-actions.component.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/component/stepper.component.js +99 -0
- package/esm2022/lib/components/navigation/stepper/component/stepper.component.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js +13 -0
- package/esm2022/lib/components/navigation/stepper/content/stepper-content.component.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/model/stepper.types.js +1 -0
- package/esm2022/lib/components/navigation/stepper/model/stepper.types.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/step/step.component.js +91 -0
- package/esm2022/lib/components/navigation/stepper/step/step.component.js.map +1 -0
- package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js +3 -0
- package/esm2022/lib/components/navigation/stepper/token/stepper.tokens.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/component/tabs.component.js +169 -0
- package/esm2022/lib/components/navigation/tabs/component/tabs.component.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/index.js +5 -0
- package/esm2022/lib/components/navigation/tabs/index.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/model/tabs.types.js +1 -0
- package/esm2022/lib/components/navigation/tabs/model/tabs.types.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/tab/tab.component.js +195 -0
- package/esm2022/lib/components/navigation/tabs/tab/tab.component.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js +55 -0
- package/esm2022/lib/components/navigation/tabs/tab-panel/tab-panel.component.js.map +1 -0
- package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js +3 -0
- package/esm2022/lib/components/navigation/tabs/token/tabs.tokens.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/component/dialog.component.js +49 -0
- package/esm2022/lib/components/overlay/dialog/component/dialog.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js +37 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-actions.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js +13 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-content.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js +32 -0
- package/esm2022/lib/components/overlay/dialog/components/dialog-header.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js +142 -0
- package/esm2022/lib/components/overlay/dialog/container/dialog-container.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js +56 -0
- package/esm2022/lib/components/overlay/dialog/flow/dialog-flow.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js +20 -0
- package/esm2022/lib/components/overlay/dialog/flow/dialog-step.component.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/model/dialog.types.js +1 -0
- package/esm2022/lib/components/overlay/dialog/model/dialog.types.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js +13 -0
- package/esm2022/lib/components/overlay/dialog/provider/provide-solaris-dialog.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js +23 -0
- package/esm2022/lib/components/overlay/dialog/service/dialog-ref.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/service/dialog.service.js +111 -0
- package/esm2022/lib/components/overlay/dialog/service/dialog.service.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js +4 -0
- package/esm2022/lib/components/overlay/dialog/token/dialog-data.token.js.map +1 -0
- package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js +15 -0
- package/esm2022/lib/components/overlay/dialog/token/dialog.tokens.js.map +1 -0
- package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js +25 -0
- package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js.map +1 -0
- package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js +1 -0
- package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js.map +1 -0
- package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js +1 -0
- package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js.map +1 -0
- package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js +10 -0
- package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js.map +1 -0
- package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js +60 -0
- package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js.map +1 -0
- package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js +10 -0
- package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js.map +1 -0
- package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js +3 -0
- package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/actions.js +242 -0
- package/esm2022/lib/services/icon/icons/groups/actions.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/data.js +129 -0
- package/esm2022/lib/services/icon/icons/groups/data.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/layout.js +50 -0
- package/esm2022/lib/services/icon/icons/groups/layout.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/navigation.js +354 -0
- package/esm2022/lib/services/icon/icons/groups/navigation.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/status.js +70 -0
- package/esm2022/lib/services/icon/icons/groups/status.js.map +1 -0
- package/esm2022/lib/services/icon/icons/groups/theme.js +49 -0
- package/esm2022/lib/services/icon/icons/groups/theme.js.map +1 -0
- package/esm2022/lib/services/icon/icons/index.js +2 -0
- package/esm2022/lib/services/icon/icons/index.js.map +1 -0
- package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js +15 -0
- package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js.map +1 -0
- package/esm2022/lib/services/icon/index.js +5 -0
- package/esm2022/lib/services/icon/index.js.map +1 -0
- package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js +1 -0
- package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js.map +1 -0
- package/esm2022/lib/services/icon/model/solaris-icon.types.js +1 -0
- package/esm2022/lib/services/icon/model/solaris-icon.types.js.map +1 -0
- package/esm2022/lib/services/icon/provider/provide-solaris-icons.js +10 -0
- package/esm2022/lib/services/icon/provider/provide-solaris-icons.js.map +1 -0
- package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js +43 -0
- package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js.map +1 -0
- package/esm2022/lib/services/icon/token/solaris-icon.tokens.js +3 -0
- package/esm2022/lib/services/icon/token/solaris-icon.tokens.js.map +1 -0
- package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js +1 -0
- package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js.map +1 -0
- package/esm2022/lib/services/theme/model/solaris-theme.types.js +1 -0
- package/esm2022/lib/services/theme/model/solaris-theme.types.js.map +1 -0
- package/esm2022/lib/services/theme/provider/provide-solaris-theme.js +10 -0
- package/esm2022/lib/services/theme/provider/provide-solaris-theme.js.map +1 -0
- package/esm2022/lib/services/theme/service/solaris-theme.service.js +22 -0
- package/esm2022/lib/services/theme/service/solaris-theme.service.js.map +1 -0
- package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js +10 -0
- package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js.map +1 -0
- package/esm2022/lib/services/theme/token/solaris-theme.tokens.js +3 -0
- package/esm2022/lib/services/theme/token/solaris-theme.tokens.js.map +1 -0
- package/esm2022/lib/services/translation/index.js +6 -0
- package/esm2022/lib/services/translation/index.js.map +1 -0
- package/esm2022/lib/services/translation/model/solaris-locale.types.js +1 -0
- package/esm2022/lib/services/translation/model/solaris-locale.types.js.map +1 -0
- package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js +1 -0
- package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js.map +1 -0
- package/esm2022/lib/services/translation/model/solaris-translate-defaults.js +96 -0
- package/esm2022/lib/services/translation/model/solaris-translate-defaults.js.map +1 -0
- package/esm2022/lib/services/translation/model/solaris-translation.types.js +1 -0
- package/esm2022/lib/services/translation/model/solaris-translation.types.js.map +1 -0
- package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js +20 -0
- package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js.map +1 -0
- package/esm2022/lib/services/translation/provider/provide-solaris-translate.js +10 -0
- package/esm2022/lib/services/translation/provider/provide-solaris-translate.js.map +1 -0
- package/esm2022/lib/services/translation/service/solaris-translate.service.js +87 -0
- package/esm2022/lib/services/translation/service/solaris-translate.service.js.map +1 -0
- package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js +32 -0
- package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js.map +1 -0
- package/esm2022/lib/services/translation/token/solaris-translate.tokens.js +3 -0
- package/esm2022/lib/services/translation/token/solaris-translate.tokens.js.map +1 -0
- package/esm2022/lib/testing/provide-solaris-testing.js +11 -0
- package/esm2022/lib/testing/provide-solaris-testing.js.map +1 -0
- package/esm2022/lib/testing/solaris-test-utilities.js +12 -0
- package/esm2022/lib/testing/solaris-test-utilities.js.map +1 -0
- package/index.d.ts +197 -0
- package/lib/components/actions/button/directives/button-icon.directive.d.ts +5 -0
- package/lib/components/actions/button/directives/button.directive.d.ts +22 -0
- package/lib/components/actions/button/index.d.ts +3 -0
- package/lib/components/actions/button/model/button.types.d.ts +5 -0
- package/lib/components/actions/button-group/component/button-group.component.d.ts +10 -0
- package/lib/components/actions/button-group/model/button-group.types.d.ts +2 -0
- package/lib/components/actions/icon-button/directives/icon-button-badge.directive.d.ts +5 -0
- package/lib/components/actions/icon-button/directives/icon-button.directive.d.ts +21 -0
- package/lib/components/actions/icon-button/model/icon-button.types.d.ts +5 -0
- package/lib/components/data-display/badge/component/badge.component.d.ts +12 -0
- package/lib/components/data-display/badge/directives/badge-icon.directive.d.ts +5 -0
- package/lib/components/data-display/badge/index.d.ts +3 -0
- package/lib/components/data-display/badge/model/badge.types.d.ts +6 -0
- package/lib/components/data-display/card/component/card.component.d.ts +10 -0
- package/lib/components/data-display/card/directives/card-actions.directive.d.ts +5 -0
- package/lib/components/data-display/card/directives/card-content.directive.d.ts +5 -0
- package/lib/components/data-display/card/directives/card-description.directive.d.ts +5 -0
- package/lib/components/data-display/card/directives/card-footer.directive.d.ts +6 -0
- package/lib/components/data-display/card/directives/card-header.directive.d.ts +5 -0
- package/lib/components/data-display/card/directives/card-media.directive.d.ts +5 -0
- package/lib/components/data-display/card/directives/card-title.directive.d.ts +5 -0
- package/lib/components/data-display/card/model/card.types.d.ts +4 -0
- package/lib/components/data-display/divider/component/divider.component.d.ts +17 -0
- package/lib/components/data-display/divider/index.d.ts +2 -0
- package/lib/components/data-display/divider/model/divider.types.d.ts +5 -0
- package/lib/components/feedback/alert/component/alert-actions.component.d.ts +5 -0
- package/lib/components/feedback/alert/component/alert.component.d.ts +26 -0
- package/lib/components/feedback/alert/directives/alert-description.directive.d.ts +5 -0
- package/lib/components/feedback/alert/directives/alert-title.directive.d.ts +5 -0
- package/lib/components/feedback/alert/model/alert.types.d.ts +5 -0
- package/lib/components/feedback/skeleton/component/skeleton.component.d.ts +17 -0
- package/lib/components/feedback/skeleton/model/skeleton.types.d.ts +5 -0
- package/lib/components/feedback/toast/component/toast.component.d.ts +62 -0
- package/lib/components/feedback/toast/container/toast-container.component.d.ts +10 -0
- package/lib/components/feedback/toast/model/toast.types.d.ts +106 -0
- package/lib/components/feedback/toast/provider/provide-solaris-toast.d.ts +3 -0
- package/lib/components/feedback/toast/service/toast.service.d.ts +36 -0
- package/lib/components/feedback/toast/token/toast.tokens.d.ts +5 -0
- package/lib/components/forms/checkbox/component/checkbox.component.d.ts +70 -0
- package/lib/components/forms/checkbox/model/checkbox.types.d.ts +5 -0
- package/lib/components/forms/checkbox-group/component/checkbox-group.component.d.ts +123 -0
- package/lib/components/forms/checkbox-group/model/checkbox-group.types.d.ts +5 -0
- package/lib/components/forms/email-field/component/email-field.component.d.ts +67 -0
- package/lib/components/forms/email-field/model/email-field.types.d.ts +6 -0
- package/lib/components/forms/email-field/validators/email-field.validators.d.ts +8 -0
- package/lib/components/forms/form-field/component/form-error.component.d.ts +5 -0
- package/lib/components/forms/form-field/component/form-field.component.d.ts +96 -0
- package/lib/components/forms/form-field/component/form-hint.component.d.ts +5 -0
- package/lib/components/forms/form-field/component/form-label.component.d.ts +5 -0
- package/lib/components/forms/form-field/directives/form-field-trigger.directive.d.ts +5 -0
- package/lib/components/forms/form-field/directives/form-prefix.directive.d.ts +5 -0
- package/lib/components/forms/form-field/directives/form-suffix.directive.d.ts +5 -0
- package/lib/components/forms/form-field/index.d.ts +8 -0
- package/lib/components/forms/form-field/model/form-control.contract.d.ts +11 -0
- package/lib/components/forms/form-field/model/form-field.types.d.ts +5 -0
- package/lib/components/forms/input/directives/input.directive.d.ts +37 -0
- package/lib/components/forms/input/index.d.ts +2 -0
- package/lib/components/forms/input/model/input.defaults.d.ts +2 -0
- package/lib/components/forms/input/model/input.types.d.ts +4 -0
- package/lib/components/forms/multi-select/component/multi-select.component.d.ts +199 -0
- package/lib/components/forms/multi-select/model/multi-select.types.d.ts +5 -0
- package/lib/components/forms/option/component/option.component.d.ts +58 -0
- package/lib/components/forms/option/directives/option-slots.directive.d.ts +21 -0
- package/lib/components/forms/option/index.d.ts +3 -0
- package/lib/components/forms/option/model/option.types.d.ts +3 -0
- package/lib/components/forms/option-group/component/option-group.component.d.ts +32 -0
- package/lib/components/forms/option-group/index.d.ts +2 -0
- package/lib/components/forms/option-group/model/option-group.types.d.ts +2 -0
- package/lib/components/forms/password-field/component/password-field.component.d.ts +81 -0
- package/lib/components/forms/password-field/model/password-field-constants.d.ts +4 -0
- package/lib/components/forms/password-field/model/password-field.types.d.ts +6 -0
- package/lib/components/forms/password-field/model/password-policy.types.d.ts +10 -0
- package/lib/components/forms/password-field/model/password-strength.d.ts +2 -0
- package/lib/components/forms/password-field/validators/password.validator.d.ts +3 -0
- package/lib/components/forms/radio/component/radio.component.d.ts +68 -0
- package/lib/components/forms/radio/model/radio.types.d.ts +4 -0
- package/lib/components/forms/radio-group/component/radio-group.component.d.ts +86 -0
- package/lib/components/forms/radio-group/model/radio-group.token.d.ts +2 -0
- package/lib/components/forms/radio-group/model/radio-group.types.d.ts +5 -0
- package/lib/components/forms/select/component/select.component.d.ts +158 -0
- package/lib/components/forms/select/model/select.types.d.ts +4 -0
- package/lib/components/forms/switch/component/switch.component.d.ts +66 -0
- package/lib/components/forms/switch/index.d.ts +2 -0
- package/lib/components/forms/switch/model/switch.types.d.ts +4 -0
- package/lib/components/forms/switch-group/component/switch-group.component.d.ts +91 -0
- package/lib/components/forms/switch-group/model/switch-group.types.d.ts +5 -0
- package/lib/components/forms/textarea/directives/textarea.directive.d.ts +37 -0
- package/lib/components/forms/textarea/model/textarea.types.d.ts +5 -0
- package/lib/components/icon/component/solaris-icon.component.d.ts +13 -0
- package/lib/components/icon/index.d.ts +1 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-group.component.d.ts +10 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-item.component.d.ts +28 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu-label.component.d.ts +7 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-menu.component.d.ts +21 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-submenu-trigger.component.d.ts +21 -0
- package/lib/components/interaction/dropdown-menu/component/dropdown-submenu.component.d.ts +68 -0
- package/lib/components/interaction/dropdown-menu/directives/dropdown-menu-trigger.directive.d.ts +61 -0
- package/lib/components/interaction/dropdown-menu/index.d.ts +9 -0
- package/lib/components/interaction/dropdown-menu/model/dropdown-menu-navigation.d.ts +8 -0
- package/lib/components/interaction/dropdown-menu/model/dropdown-menu.types.d.ts +11 -0
- package/lib/components/interaction/dropdown-menu/model/dropdown-submenu.types.d.ts +2 -0
- package/lib/components/interaction/popover/component/popover-panel.component.d.ts +10 -0
- package/lib/components/interaction/popover/directives/popover-trigger.directive.d.ts +65 -0
- package/lib/components/interaction/popover/directives/popover.directive.d.ts +7 -0
- package/lib/components/interaction/popover/index.d.ts +4 -0
- package/lib/components/interaction/popover/model/popover-position.d.ts +4 -0
- package/lib/components/interaction/popover/model/popover.types.d.ts +7 -0
- package/lib/components/interaction/popover/token/popover.tokens.d.ts +12 -0
- package/lib/components/interaction/tooltip/component/tooltip-panel.component.d.ts +9 -0
- package/lib/components/interaction/tooltip/directive/tooltip.directive.d.ts +80 -0
- package/lib/components/interaction/tooltip/index.d.ts +3 -0
- package/lib/components/interaction/tooltip/model/tooltip-position.d.ts +5 -0
- package/lib/components/interaction/tooltip/model/tooltip.types.d.ts +22 -0
- package/lib/components/interaction/tooltip/token/tooltip.tokens.d.ts +21 -0
- package/lib/components/navigation/editable-tabs/component/editable-tabs.component.d.ts +69 -0
- package/lib/components/navigation/editable-tabs/editable-tab/editable-tab.component.d.ts +20 -0
- package/lib/components/navigation/editable-tabs/model/editable-tabs.types.d.ts +60 -0
- package/lib/components/navigation/segmented-control/component/segmented-control.component.d.ts +64 -0
- package/lib/components/navigation/segmented-control/item/segmented-item.component.d.ts +35 -0
- package/lib/components/navigation/segmented-control/model/segmented-control.types.d.ts +12 -0
- package/lib/components/navigation/segmented-control/token/segmented-control.tokens.d.ts +22 -0
- package/lib/components/navigation/stepper/actions/stepper-actions.component.d.ts +7 -0
- package/lib/components/navigation/stepper/component/stepper.component.d.ts +36 -0
- package/lib/components/navigation/stepper/content/stepper-content.component.d.ts +5 -0
- package/lib/components/navigation/stepper/model/stepper.types.d.ts +15 -0
- package/lib/components/navigation/stepper/step/step.component.d.ts +27 -0
- package/lib/components/navigation/stepper/token/stepper.tokens.d.ts +13 -0
- package/lib/components/navigation/tabs/component/tabs.component.d.ts +47 -0
- package/lib/components/navigation/tabs/index.d.ts +6 -0
- package/lib/components/navigation/tabs/model/tabs.types.d.ts +17 -0
- package/lib/components/navigation/tabs/tab/tab.component.d.ts +38 -0
- package/lib/components/navigation/tabs/tab-panel/tab-panel.component.d.ts +15 -0
- package/lib/components/navigation/tabs/token/tabs.tokens.d.ts +19 -0
- package/lib/components/overlay/dialog/component/dialog.component.d.ts +29 -0
- package/lib/components/overlay/dialog/components/dialog-actions.component.d.ts +12 -0
- package/lib/components/overlay/dialog/components/dialog-content.component.d.ts +5 -0
- package/lib/components/overlay/dialog/components/dialog-header.component.d.ts +19 -0
- package/lib/components/overlay/dialog/container/dialog-container.component.d.ts +32 -0
- package/lib/components/overlay/dialog/flow/dialog-flow.component.d.ts +19 -0
- package/lib/components/overlay/dialog/flow/dialog-step.component.d.ts +7 -0
- package/lib/components/overlay/dialog/model/dialog.types.d.ts +87 -0
- package/lib/components/overlay/dialog/provider/provide-solaris-dialog.d.ts +3 -0
- package/lib/components/overlay/dialog/service/dialog-ref.d.ts +11 -0
- package/lib/components/overlay/dialog/service/dialog.service.d.ts +20 -0
- package/lib/components/overlay/dialog/token/dialog-data.token.d.ts +4 -0
- package/lib/components/overlay/dialog/token/dialog.tokens.d.ts +4 -0
- package/lib/services/accessibility/directives/visually-hidden.directive.d.ts +5 -0
- package/lib/services/accessibility/model/solaris-accessibility-config.interface.d.ts +4 -0
- package/lib/services/accessibility/model/solaris-accessibility.types.d.ts +5 -0
- package/lib/services/accessibility/provider/provide-solaris-accessibility.d.ts +3 -0
- package/lib/services/accessibility/service/solaris-accessibility.service.d.ts +15 -0
- package/lib/services/accessibility/testing/solaris-accessibility-testing.provider.d.ts +3 -0
- package/lib/services/accessibility/token/solaris-accessibility.tokens.d.ts +3 -0
- package/lib/services/icon/icons/groups/actions.d.ts +2 -0
- package/lib/services/icon/icons/groups/data.d.ts +2 -0
- package/lib/services/icon/icons/groups/layout.d.ts +2 -0
- package/lib/services/icon/icons/groups/navigation.d.ts +2 -0
- package/lib/services/icon/icons/groups/status.d.ts +2 -0
- package/lib/services/icon/icons/groups/theme.d.ts +2 -0
- package/lib/services/icon/icons/index.d.ts +1 -0
- package/lib/services/icon/icons/solaris-built-in-icons.d.ts +2 -0
- package/lib/services/icon/index.d.ts +8 -0
- package/lib/services/icon/model/solaris-icon-definition.interface.d.ts +45 -0
- package/lib/services/icon/model/solaris-icon.types.d.ts +4 -0
- package/lib/services/icon/provider/provide-solaris-icons.d.ts +3 -0
- package/lib/services/icon/service/solaris-icon-registry.service.d.ts +12 -0
- package/lib/services/icon/token/solaris-icon.tokens.d.ts +6 -0
- package/lib/services/theme/model/solaris-theme-config.interface.d.ts +5 -0
- package/lib/services/theme/model/solaris-theme.types.d.ts +3 -0
- package/lib/services/theme/provider/provide-solaris-theme.d.ts +3 -0
- package/lib/services/theme/service/solaris-theme.service.d.ts +9 -0
- package/lib/services/theme/testing/solaris-theme-testing.provider.d.ts +3 -0
- package/lib/services/theme/token/solaris-theme.tokens.d.ts +3 -0
- package/lib/services/translation/index.d.ts +8 -0
- package/lib/services/translation/model/solaris-locale.types.d.ts +4 -0
- package/lib/services/translation/model/solaris-translate-config.interface.d.ts +8 -0
- package/lib/services/translation/model/solaris-translate-defaults.d.ts +2 -0
- package/lib/services/translation/model/solaris-translation.types.d.ts +3 -0
- package/lib/services/translation/pipe/solaris-translate.pipe.d.ts +8 -0
- package/lib/services/translation/provider/provide-solaris-translate.d.ts +3 -0
- package/lib/services/translation/service/solaris-translate.service.d.ts +15 -0
- package/lib/services/translation/testing/solaris-translate-testing.provider.d.ts +3 -0
- package/lib/services/translation/token/solaris-translate.tokens.d.ts +3 -0
- package/lib/testing/provide-solaris-testing.d.ts +10 -0
- package/lib/testing/solaris-test-utilities.d.ts +3 -0
- package/package.json +9 -5
- package/styles/_button.scss +50 -220
- package/styles/_core.scss +37 -37
- package/styles/_dropdown-menu.scss +72 -0
- package/styles/_icon-button.scss +43 -219
- package/styles/_index.scss +19 -19
- package/styles/_input.scss +255 -0
- package/styles/_popover.scss +73 -0
- package/styles/_theme.scss +36 -36
- package/styles/_toast.scss +9 -0
- package/styles/_tooltip.scss +3 -0
- package/fesm2022/educarehq-solaris-ui.mjs +0 -1047
- package/fesm2022/educarehq-solaris-ui.mjs.map +0 -1
- package/types/educarehq-solaris-ui.d.ts +0 -408
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-icon-registry.service.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/icon/service/solaris-icon-registry.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;;AAGlD,MAAM,OAAO,0BAA0B;IACpB,QAAQ,GAAG,IAAI,GAAG,EAAiC,CAAC;IAErE;QACE,MAAM,MAAM,GAAG,MAAM,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAEhE,KAAK,MAAM,IAAI,IAAI,sBAAsB,EAAE,CAAC;YAC1C,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACrC,CAAC;QAED,IAAI,MAAM,EAAE,UAAU,EAAE,CAAC;YACvB,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;gBACrC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;oBAClC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBACrC,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,CAAC,IAAY;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,OAAO,CAAC,IAAY;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,YAAY,CAAC,IAA2B;QACtC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAClC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IAED,aAAa,CAAC,KAA8B;QAC1C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;wGArCU,0BAA0B;4GAA1B,0BAA0B,cADb,MAAM;;4FACnB,0BAA0B;kBADtC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["import { Injectable, inject } from '@angular/core';\r\n\r\nimport type { SolarisIconDefinition } from '../model/solaris-icon-definition.interface';\r\nimport { SOLARIS_ICONS_CONFIG } from '../token/solaris-icon.tokens';\r\nimport { SOLARIS_BUILT_IN_ICONS } from '../icons';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SolarisIconRegistryService {\r\n private readonly registry = new Map<string, SolarisIconDefinition>();\r\n\r\n constructor() {\r\n const config = inject(SOLARIS_ICONS_CONFIG, { optional: true });\r\n\r\n for (const icon of SOLARIS_BUILT_IN_ICONS) {\r\n this.registry.set(icon.name, icon);\r\n }\r\n\r\n if (config?.extraIcons) {\r\n for (const icon of config.extraIcons) {\r\n if (!this.registry.has(icon.name)) {\r\n this.registry.set(icon.name, icon);\r\n }\r\n }\r\n }\r\n }\r\n\r\n getIcon(name: string): SolarisIconDefinition | undefined {\r\n return this.registry.get(name);\r\n }\r\n\r\n hasIcon(name: string): boolean {\r\n return this.registry.has(name);\r\n }\r\n\r\n registerIcon(icon: SolarisIconDefinition): void {\r\n if (!this.registry.has(icon.name)) {\r\n this.registry.set(icon.name, icon);\r\n }\r\n }\r\n\r\n registerIcons(icons: SolarisIconDefinition[]): void {\r\n for (const icon of icons) {\r\n this.registerIcon(icon);\r\n }\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-icon.tokens.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/icon/token/solaris-icon.tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAQ/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,cAAc,CACpD,sBAAsB,CACvB,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nimport type { SolarisIconDefinition } from '../model/solaris-icon-definition.interface';\r\n\r\nexport interface SolarisIconsConfig {\r\n extraIcons?: SolarisIconDefinition[];\r\n}\r\n\r\nexport const SOLARIS_ICONS_CONFIG = new InjectionToken<SolarisIconsConfig>(\r\n 'SOLARIS_ICONS_CONFIG',\r\n);\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=solaris-theme-config.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-theme-config.interface.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/theme/model/solaris-theme-config.interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface SolarisThemeConfig {\r\n colorScheme?: 'light' | 'dark' | 'system';\r\n density?: 'compact' | 'comfortable';\r\n reducedMotion?: 'auto' | 'reduce' | 'no-preference';\r\n}\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=solaris-theme.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-theme.types.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/theme/model/solaris-theme.types.ts"],"names":[],"mappings":"","sourcesContent":["export type SolarisColorScheme = 'light' | 'dark' | 'system';\r\n\r\nexport type SolarisDensity = 'compact' | 'comfortable';\r\n\r\nexport type SolarisReducedMotionPreference =\r\n | 'auto'\r\n | 'reduce'\r\n | 'no-preference';\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provide-solaris-theme.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/theme/provider/provide-solaris-theme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,UAAU,mBAAmB,CAAC,MAA2B;IAC7D,OAAO;QACL;YACE,OAAO,EAAE,oBAAoB;YAC7B,QAAQ,EAAE,MAAM,IAAI,EAAE;SACvB;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { Provider } from '@angular/core';\r\n\r\nimport type { SolarisThemeConfig } from '../model/solaris-theme-config.interface';\r\nimport { SOLARIS_THEME_CONFIG } from '../token/solaris-theme.tokens';\r\n\r\nexport function provideSolarisTheme(config?: SolarisThemeConfig): Provider[] {\r\n return [\r\n {\r\n provide: SOLARIS_THEME_CONFIG,\r\n useValue: config ?? {},\r\n },\r\n ];\r\n}\r\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Injectable, inject } from '@angular/core';
|
|
2
|
+
import { SOLARIS_THEME_CONFIG } from '../token/solaris-theme.tokens';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class SolarisThemeService {
|
|
5
|
+
config = inject(SOLARIS_THEME_CONFIG, { optional: true });
|
|
6
|
+
get colorScheme() {
|
|
7
|
+
return this.config?.colorScheme ?? 'system';
|
|
8
|
+
}
|
|
9
|
+
get density() {
|
|
10
|
+
return this.config?.density ?? 'comfortable';
|
|
11
|
+
}
|
|
12
|
+
get reducedMotion() {
|
|
13
|
+
return this.config?.reducedMotion ?? 'auto';
|
|
14
|
+
}
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisThemeService, providedIn: 'root' });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisThemeService, decorators: [{
|
|
19
|
+
type: Injectable,
|
|
20
|
+
args: [{ providedIn: 'root' }]
|
|
21
|
+
}] });
|
|
22
|
+
//# sourceMappingURL=solaris-theme.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-theme.service.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/theme/service/solaris-theme.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAGrE,MAAM,OAAO,mBAAmB;IACb,MAAM,GAAG,MAAM,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAE3E,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,MAAM,EAAE,WAAW,IAAI,QAAQ,CAAC;IAC9C,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,MAAM,EAAE,OAAO,IAAI,aAAa,CAAC;IAC/C,CAAC;IAED,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,MAAM,EAAE,aAAa,IAAI,MAAM,CAAC;IAC9C,CAAC;wGAbU,mBAAmB;4GAAnB,mBAAmB,cADN,MAAM;;4FACnB,mBAAmB;kBAD/B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["import { Injectable, inject } from '@angular/core';\r\n\r\nimport { SOLARIS_THEME_CONFIG } from '../token/solaris-theme.tokens';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SolarisThemeService {\r\n private readonly config = inject(SOLARIS_THEME_CONFIG, { optional: true });\r\n\r\n get colorScheme(): string {\r\n return this.config?.colorScheme ?? 'system';\r\n }\r\n\r\n get density(): string {\r\n return this.config?.density ?? 'comfortable';\r\n }\r\n\r\n get reducedMotion(): string {\r\n return this.config?.reducedMotion ?? 'auto';\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SOLARIS_THEME_CONFIG } from '../token/solaris-theme.tokens';
|
|
2
|
+
export function provideSolarisThemeTesting(config) {
|
|
3
|
+
return [
|
|
4
|
+
{
|
|
5
|
+
provide: SOLARIS_THEME_CONFIG,
|
|
6
|
+
useValue: config ?? {},
|
|
7
|
+
},
|
|
8
|
+
];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=solaris-theme-testing.provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-theme-testing.provider.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/theme/testing/solaris-theme-testing.provider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,UAAU,0BAA0B,CACxC,MAAoC;IAEpC,OAAO;QACL;YACE,OAAO,EAAE,oBAAoB;YAC7B,QAAQ,EAAE,MAAM,IAAI,EAAE;SACvB;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { Provider } from '@angular/core';\r\n\r\nimport type { SolarisThemeConfig } from '../model/solaris-theme-config.interface';\r\nimport { SOLARIS_THEME_CONFIG } from '../token/solaris-theme.tokens';\r\n\r\nexport function provideSolarisThemeTesting(\r\n config?: Partial<SolarisThemeConfig>,\r\n): Provider[] {\r\n return [\r\n {\r\n provide: SOLARIS_THEME_CONFIG,\r\n useValue: config ?? {},\r\n },\r\n ];\r\n}\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-theme.tokens.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/theme/token/solaris-theme.tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAI/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,cAAc,CACpD,sBAAsB,CACvB,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nimport type { SolarisThemeConfig } from '../model/solaris-theme-config.interface';\r\n\r\nexport const SOLARIS_THEME_CONFIG = new InjectionToken<SolarisThemeConfig>(\r\n 'SOLARIS_THEME_CONFIG',\r\n);\r\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { provideSolarisTranslateTesting } from './testing/solaris-translate-testing.provider';
|
|
2
|
+
export { provideSolarisTranslate } from './provider/provide-solaris-translate';
|
|
3
|
+
export { SolarisTranslateService } from './service/solaris-translate.service';
|
|
4
|
+
export { SolarisTranslatePipe } from './pipe/solaris-translate.pipe';
|
|
5
|
+
export { SOLARIS_TRANSLATE_CONFIG } from './token/solaris-translate.tokens';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/lib/services/translation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC","sourcesContent":["export { provideSolarisTranslateTesting } from './testing/solaris-translate-testing.provider';\r\nexport { provideSolarisTranslate } from './provider/provide-solaris-translate';\r\nexport { SolarisTranslateService } from './service/solaris-translate.service';\r\nexport { SolarisTranslatePipe } from './pipe/solaris-translate.pipe';\r\nexport { SOLARIS_TRANSLATE_CONFIG } from './token/solaris-translate.tokens';\r\n\r\nexport type {\r\n SolarisTranslationMap,\r\n SolarisTranslations,\r\n SolarisTranslateParams,\r\n} from './model/solaris-translation.types';\r\nexport type { SolarisTranslateConfig } from './model/solaris-translate-config.interface';\r\nexport type {\r\n SolarisBuiltInLocale,\r\n SolarisLocale,\r\n} from './model/solaris-locale.types';\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=solaris-locale.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-locale.types.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/model/solaris-locale.types.ts"],"names":[],"mappings":"","sourcesContent":["type LiteralUnion<T extends U, U = string> = T | (U & {});\r\n\r\nexport type SolarisBuiltInLocale =\r\n | 'pt-BR'\r\n | 'en-US'\r\n | 'es'\r\n | 'zh'\r\n | 'ru'\r\n | 'de'\r\n | 'fr'\r\n | 'ja';\r\n\r\nexport type SolarisLocale = LiteralUnion<SolarisBuiltInLocale>;\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=solaris-translate-config.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-translate-config.interface.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/model/solaris-translate-config.interface.ts"],"names":[],"mappings":"","sourcesContent":["import type { SolarisTranslations } from './solaris-translation.types';\r\nimport type { SolarisLocale } from './solaris-locale.types';\r\n\r\nexport interface SolarisTranslateConfig {\r\n locale: SolarisLocale;\r\n fallbackLocale: SolarisLocale;\r\n translations: SolarisTranslations;\r\n useBrowserLocale?: boolean;\r\n}\r\n"]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export const SOLARIS_TRANSLATE_DEFAULT_CONFIG = {
|
|
2
|
+
locale: 'en-US',
|
|
3
|
+
fallbackLocale: 'en-US',
|
|
4
|
+
translations: {
|
|
5
|
+
'en-US': {
|
|
6
|
+
'solaris.select.search.placeholder': 'Search...',
|
|
7
|
+
'solaris.select.loading': 'Loading...',
|
|
8
|
+
'solaris.select.empty': 'No options available',
|
|
9
|
+
'solaris.select.noResults': 'No results found',
|
|
10
|
+
'solaris.select.clear': 'Clear selection',
|
|
11
|
+
'solaris.multiSelect.selectedCount.singular': '1 selected',
|
|
12
|
+
'solaris.multiSelect.selectedCount.plural': '{{ count }} selected',
|
|
13
|
+
'solaris.multiSelect.search.placeholder': 'Search...',
|
|
14
|
+
'solaris.multiSelect.loading': 'Loading...',
|
|
15
|
+
'solaris.multiSelect.empty': 'No options available',
|
|
16
|
+
'solaris.multiSelect.noResults': 'No results found',
|
|
17
|
+
'solaris.multiSelect.clear': 'Clear selection',
|
|
18
|
+
'solaris.multiSelect.selectAll': 'Select all',
|
|
19
|
+
'solaris.multiSelect.removeChip': 'Remove',
|
|
20
|
+
'solaris.toast.close': 'Close',
|
|
21
|
+
'solaris.toast.progress': 'Progress',
|
|
22
|
+
'solaris.toast.remaining': 'Remaining time',
|
|
23
|
+
'solaris.toast.closesIn': 'This message will close in {{seconds}} seconds.',
|
|
24
|
+
'solaris.toast.paused': 'Paused.',
|
|
25
|
+
'solaris.toast.pause': 'click to pause',
|
|
26
|
+
'solaris.toast.continue': 'click to continue',
|
|
27
|
+
'solaris.toast.expand': 'Expand',
|
|
28
|
+
'solaris.toast.collapse': 'Collapse',
|
|
29
|
+
'solaris.dialog.close': 'Close',
|
|
30
|
+
'solaris.dialog.confirm': 'Confirm',
|
|
31
|
+
'solaris.dialog.cancel': 'Cancel',
|
|
32
|
+
'solaris.dialog.discard': 'Discard',
|
|
33
|
+
'solaris.dialog.save': 'Save',
|
|
34
|
+
'solaris.dialog.continue': 'Continue',
|
|
35
|
+
'solaris.dialog.back': 'Back',
|
|
36
|
+
'solaris.dialog.next': 'Next',
|
|
37
|
+
'solaris.dialog.finish': 'Finish',
|
|
38
|
+
'solaris.editableTabs.tabActions': 'Tab actions',
|
|
39
|
+
'solaris.editableTabs.rename': 'Rename',
|
|
40
|
+
'solaris.editableTabs.moveLeft': 'Move left',
|
|
41
|
+
'solaris.editableTabs.moveRight': 'Move right',
|
|
42
|
+
'solaris.editableTabs.moveUp': 'Move up',
|
|
43
|
+
'solaris.editableTabs.moveDown': 'Move down',
|
|
44
|
+
'solaris.editableTabs.setAsDefault': 'Set as default',
|
|
45
|
+
'solaris.editableTabs.remove': 'Remove',
|
|
46
|
+
'solaris.editableTabs.confirmRename': 'Confirm rename',
|
|
47
|
+
'solaris.editableTabs.cancelRename': 'Cancel rename',
|
|
48
|
+
},
|
|
49
|
+
'pt-BR': {
|
|
50
|
+
'solaris.select.search.placeholder': 'Buscar...',
|
|
51
|
+
'solaris.select.loading': 'Carregando...',
|
|
52
|
+
'solaris.select.empty': 'Nenhuma opção disponível',
|
|
53
|
+
'solaris.select.noResults': 'Nenhum resultado encontrado',
|
|
54
|
+
'solaris.select.clear': 'Limpar seleção',
|
|
55
|
+
'solaris.multiSelect.selectedCount.singular': '1 selecionado',
|
|
56
|
+
'solaris.multiSelect.selectedCount.plural': '{{ count }} selecionados',
|
|
57
|
+
'solaris.multiSelect.search.placeholder': 'Buscar...',
|
|
58
|
+
'solaris.multiSelect.loading': 'Carregando...',
|
|
59
|
+
'solaris.multiSelect.empty': 'Nenhuma opção disponível',
|
|
60
|
+
'solaris.multiSelect.noResults': 'Nenhum resultado encontrado',
|
|
61
|
+
'solaris.multiSelect.clear': 'Limpar seleção',
|
|
62
|
+
'solaris.multiSelect.selectAll': 'Selecionar todos',
|
|
63
|
+
'solaris.multiSelect.removeChip': 'Remover',
|
|
64
|
+
'solaris.toast.close': 'Fechar',
|
|
65
|
+
'solaris.toast.progress': 'Progresso',
|
|
66
|
+
'solaris.toast.remaining': 'Tempo restante',
|
|
67
|
+
'solaris.toast.closesIn': 'Esta mensagem irá fechar em {{seconds}} segundos.',
|
|
68
|
+
'solaris.toast.paused': 'Pausado.',
|
|
69
|
+
'solaris.toast.pause': 'clique para pausar',
|
|
70
|
+
'solaris.toast.continue': 'clique para continuar',
|
|
71
|
+
'solaris.toast.expand': 'Expandir',
|
|
72
|
+
'solaris.toast.collapse': 'Recolher',
|
|
73
|
+
'solaris.dialog.close': 'Fechar',
|
|
74
|
+
'solaris.dialog.confirm': 'Confirmar',
|
|
75
|
+
'solaris.dialog.cancel': 'Cancelar',
|
|
76
|
+
'solaris.dialog.discard': 'Descartar',
|
|
77
|
+
'solaris.dialog.save': 'Salvar',
|
|
78
|
+
'solaris.dialog.continue': 'Continuar',
|
|
79
|
+
'solaris.dialog.back': 'Voltar',
|
|
80
|
+
'solaris.dialog.next': 'Próximo',
|
|
81
|
+
'solaris.dialog.finish': 'Finalizar',
|
|
82
|
+
'solaris.editableTabs.tabActions': 'Ações da aba',
|
|
83
|
+
'solaris.editableTabs.rename': 'Renomear',
|
|
84
|
+
'solaris.editableTabs.moveLeft': 'Mover para esquerda',
|
|
85
|
+
'solaris.editableTabs.moveRight': 'Mover para direita',
|
|
86
|
+
'solaris.editableTabs.moveUp': 'Mover para cima',
|
|
87
|
+
'solaris.editableTabs.moveDown': 'Mover para baixo',
|
|
88
|
+
'solaris.editableTabs.setAsDefault': 'Definir como padrão',
|
|
89
|
+
'solaris.editableTabs.remove': 'Remover',
|
|
90
|
+
'solaris.editableTabs.confirmRename': 'Confirmar renomeação',
|
|
91
|
+
'solaris.editableTabs.cancelRename': 'Cancelar renomeação',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
useBrowserLocale: true,
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=solaris-translate-defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-translate-defaults.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/model/solaris-translate-defaults.ts"],"names":[],"mappings":"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","sourcesContent":["import type { SolarisTranslateConfig } from './solaris-translate-config.interface';\n\nexport const SOLARIS_TRANSLATE_DEFAULT_CONFIG: SolarisTranslateConfig = {\n locale: 'en-US',\n fallbackLocale: 'en-US',\n translations: {\n 'en-US': {\n 'solaris.select.search.placeholder': 'Search...',\n 'solaris.select.loading': 'Loading...',\n 'solaris.select.empty': 'No options available',\n 'solaris.select.noResults': 'No results found',\n 'solaris.select.clear': 'Clear selection',\n\n 'solaris.multiSelect.selectedCount.singular': '1 selected',\n 'solaris.multiSelect.selectedCount.plural': '{{ count }} selected',\n 'solaris.multiSelect.search.placeholder': 'Search...',\n 'solaris.multiSelect.loading': 'Loading...',\n 'solaris.multiSelect.empty': 'No options available',\n 'solaris.multiSelect.noResults': 'No results found',\n 'solaris.multiSelect.clear': 'Clear selection',\n 'solaris.multiSelect.selectAll': 'Select all',\n 'solaris.multiSelect.removeChip': 'Remove',\n\n 'solaris.toast.close': 'Close',\n 'solaris.toast.progress': 'Progress',\n 'solaris.toast.remaining': 'Remaining time',\n 'solaris.toast.closesIn':\n 'This message will close in {{seconds}} seconds.',\n 'solaris.toast.paused': 'Paused.',\n 'solaris.toast.pause': 'click to pause',\n 'solaris.toast.continue': 'click to continue',\n 'solaris.toast.expand': 'Expand',\n 'solaris.toast.collapse': 'Collapse',\n\n 'solaris.dialog.close': 'Close',\n 'solaris.dialog.confirm': 'Confirm',\n 'solaris.dialog.cancel': 'Cancel',\n 'solaris.dialog.discard': 'Discard',\n 'solaris.dialog.save': 'Save',\n 'solaris.dialog.continue': 'Continue',\n 'solaris.dialog.back': 'Back',\n 'solaris.dialog.next': 'Next',\n 'solaris.dialog.finish': 'Finish',\n\n 'solaris.editableTabs.tabActions': 'Tab actions',\n 'solaris.editableTabs.rename': 'Rename',\n 'solaris.editableTabs.moveLeft': 'Move left',\n 'solaris.editableTabs.moveRight': 'Move right',\n 'solaris.editableTabs.moveUp': 'Move up',\n 'solaris.editableTabs.moveDown': 'Move down',\n 'solaris.editableTabs.setAsDefault': 'Set as default',\n 'solaris.editableTabs.remove': 'Remove',\n 'solaris.editableTabs.confirmRename': 'Confirm rename',\n 'solaris.editableTabs.cancelRename': 'Cancel rename',\n },\n 'pt-BR': {\n 'solaris.select.search.placeholder': 'Buscar...',\n 'solaris.select.loading': 'Carregando...',\n 'solaris.select.empty': 'Nenhuma opção disponível',\n 'solaris.select.noResults': 'Nenhum resultado encontrado',\n 'solaris.select.clear': 'Limpar seleção',\n\n 'solaris.multiSelect.selectedCount.singular': '1 selecionado',\n 'solaris.multiSelect.selectedCount.plural': '{{ count }} selecionados',\n 'solaris.multiSelect.search.placeholder': 'Buscar...',\n 'solaris.multiSelect.loading': 'Carregando...',\n 'solaris.multiSelect.empty': 'Nenhuma opção disponível',\n 'solaris.multiSelect.noResults': 'Nenhum resultado encontrado',\n 'solaris.multiSelect.clear': 'Limpar seleção',\n 'solaris.multiSelect.selectAll': 'Selecionar todos',\n 'solaris.multiSelect.removeChip': 'Remover',\n\n 'solaris.toast.close': 'Fechar',\n 'solaris.toast.progress': 'Progresso',\n 'solaris.toast.remaining': 'Tempo restante',\n 'solaris.toast.closesIn':\n 'Esta mensagem irá fechar em {{seconds}} segundos.',\n 'solaris.toast.paused': 'Pausado.',\n 'solaris.toast.pause': 'clique para pausar',\n 'solaris.toast.continue': 'clique para continuar',\n 'solaris.toast.expand': 'Expandir',\n 'solaris.toast.collapse': 'Recolher',\n\n 'solaris.dialog.close': 'Fechar',\n 'solaris.dialog.confirm': 'Confirmar',\n 'solaris.dialog.cancel': 'Cancelar',\n 'solaris.dialog.discard': 'Descartar',\n 'solaris.dialog.save': 'Salvar',\n 'solaris.dialog.continue': 'Continuar',\n 'solaris.dialog.back': 'Voltar',\n 'solaris.dialog.next': 'Próximo',\n 'solaris.dialog.finish': 'Finalizar',\n\n 'solaris.editableTabs.tabActions': 'Ações da aba',\n 'solaris.editableTabs.rename': 'Renomear',\n 'solaris.editableTabs.moveLeft': 'Mover para esquerda',\n 'solaris.editableTabs.moveRight': 'Mover para direita',\n 'solaris.editableTabs.moveUp': 'Mover para cima',\n 'solaris.editableTabs.moveDown': 'Mover para baixo',\n 'solaris.editableTabs.setAsDefault': 'Definir como padrão',\n 'solaris.editableTabs.remove': 'Remover',\n 'solaris.editableTabs.confirmRename': 'Confirmar renomeação',\n 'solaris.editableTabs.cancelRename': 'Cancelar renomeação',\n },\n },\n useBrowserLocale: true,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=solaris-translation.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-translation.types.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/model/solaris-translation.types.ts"],"names":[],"mappings":"","sourcesContent":["export type SolarisTranslateParams = Record<string, string | number | boolean>;\r\nexport type SolarisTranslations = Record<string, SolarisTranslationMap>;\r\nexport type SolarisTranslationMap = Record<string, string>;\r\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Pipe, inject } from '@angular/core';
|
|
2
|
+
import { SolarisTranslateService } from '../service/solaris-translate.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class SolarisTranslatePipe {
|
|
5
|
+
translateService = inject(SolarisTranslateService);
|
|
6
|
+
transform(key, params) {
|
|
7
|
+
return this.translateService.translate(key, params);
|
|
8
|
+
}
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTranslatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
10
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.17", ngImport: i0, type: SolarisTranslatePipe, isStandalone: true, name: "translate" });
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTranslatePipe, decorators: [{
|
|
13
|
+
type: Pipe,
|
|
14
|
+
args: [{
|
|
15
|
+
name: 'translate',
|
|
16
|
+
standalone: true,
|
|
17
|
+
pure: true,
|
|
18
|
+
}]
|
|
19
|
+
}] });
|
|
20
|
+
//# sourceMappingURL=solaris-translate.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-translate.pipe.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/pipe/solaris-translate.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAsB,MAAM,EAAE,MAAM,eAAe,CAAC;AAEjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;;AAO/E,MAAM,OAAO,oBAAoB;IACd,gBAAgB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAEpE,SAAS,CACP,GAAW,EACX,MAAkD;QAElD,OAAO,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;wGARU,oBAAoB;sGAApB,oBAAoB;;4FAApB,oBAAoB;kBALhC,IAAI;mBAAC;oBACJ,IAAI,EAAE,WAAW;oBACjB,UAAU,EAAE,IAAI;oBAChB,IAAI,EAAE,IAAI;iBACX","sourcesContent":["import { Pipe, type PipeTransform, inject } from '@angular/core';\r\n\r\nimport { SolarisTranslateService } from '../service/solaris-translate.service';\r\n\r\n@Pipe({\r\n name: 'translate',\r\n standalone: true,\r\n pure: true,\r\n})\r\nexport class SolarisTranslatePipe implements PipeTransform {\r\n private readonly translateService = inject(SolarisTranslateService);\r\n\r\n transform(\r\n key: string,\r\n params?: Record<string, string | number | boolean>,\r\n ): string {\r\n return this.translateService.translate(key, params);\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SOLARIS_TRANSLATE_CONFIG } from '../token/solaris-translate.tokens';
|
|
2
|
+
export function provideSolarisTranslate(config) {
|
|
3
|
+
return [
|
|
4
|
+
{
|
|
5
|
+
provide: SOLARIS_TRANSLATE_CONFIG,
|
|
6
|
+
useValue: config,
|
|
7
|
+
},
|
|
8
|
+
];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=provide-solaris-translate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provide-solaris-translate.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/provider/provide-solaris-translate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,MAAM,UAAU,uBAAuB,CACrC,MAA8B;IAE9B,OAAO;QACL;YACE,OAAO,EAAE,wBAAwB;YACjC,QAAQ,EAAE,MAAM;SACjB;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { Provider } from '@angular/core';\r\n\r\nimport type { SolarisTranslateConfig } from '../model/solaris-translate-config.interface';\r\nimport { SOLARIS_TRANSLATE_CONFIG } from '../token/solaris-translate.tokens';\r\n\r\nexport function provideSolarisTranslate(\r\n config: SolarisTranslateConfig,\r\n): Provider[] {\r\n return [\r\n {\r\n provide: SOLARIS_TRANSLATE_CONFIG,\r\n useValue: config,\r\n },\r\n ];\r\n}\r\n"]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Injectable, inject, PLATFORM_ID } from '@angular/core';
|
|
2
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
3
|
+
import { SOLARIS_TRANSLATE_DEFAULT_CONFIG } from '../model/solaris-translate-defaults';
|
|
4
|
+
import { SOLARIS_TRANSLATE_CONFIG } from '../token/solaris-translate.tokens';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
function mergeConfigs(injected) {
|
|
7
|
+
if (!injected)
|
|
8
|
+
return SOLARIS_TRANSLATE_DEFAULT_CONFIG;
|
|
9
|
+
const merged = {
|
|
10
|
+
...SOLARIS_TRANSLATE_DEFAULT_CONFIG,
|
|
11
|
+
...injected,
|
|
12
|
+
translations: {},
|
|
13
|
+
};
|
|
14
|
+
const allLocales = new Set([
|
|
15
|
+
...Object.keys(SOLARIS_TRANSLATE_DEFAULT_CONFIG.translations),
|
|
16
|
+
...Object.keys(injected.translations ?? {}),
|
|
17
|
+
]);
|
|
18
|
+
for (const locale of allLocales) {
|
|
19
|
+
merged.translations[locale] = {
|
|
20
|
+
...(SOLARIS_TRANSLATE_DEFAULT_CONFIG.translations[locale] ?? {}),
|
|
21
|
+
...(injected.translations?.[locale] ?? {}),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return merged;
|
|
25
|
+
}
|
|
26
|
+
export class SolarisTranslateService {
|
|
27
|
+
platformId = inject(PLATFORM_ID);
|
|
28
|
+
config = mergeConfigs(inject(SOLARIS_TRANSLATE_CONFIG, { optional: true }) ?? undefined);
|
|
29
|
+
get locale() {
|
|
30
|
+
return this.resolveLocale();
|
|
31
|
+
}
|
|
32
|
+
get fallbackLocale() {
|
|
33
|
+
return this.config.fallbackLocale;
|
|
34
|
+
}
|
|
35
|
+
translate(key, params) {
|
|
36
|
+
const translations = this.config.translations;
|
|
37
|
+
const locale = this.resolveLocale();
|
|
38
|
+
const fallbackLocale = this.config.fallbackLocale;
|
|
39
|
+
const localeMap = translations[locale];
|
|
40
|
+
if (localeMap && key in localeMap) {
|
|
41
|
+
return this.interpolate(localeMap[key], params);
|
|
42
|
+
}
|
|
43
|
+
if (fallbackLocale) {
|
|
44
|
+
const fallbackMap = translations[fallbackLocale];
|
|
45
|
+
if (fallbackMap && key in fallbackMap) {
|
|
46
|
+
return this.interpolate(fallbackMap[key], params);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const defaultMap = translations['en-US'];
|
|
50
|
+
if (defaultMap && key in defaultMap) {
|
|
51
|
+
return this.interpolate(defaultMap[key], params);
|
|
52
|
+
}
|
|
53
|
+
return key;
|
|
54
|
+
}
|
|
55
|
+
resolveLocale() {
|
|
56
|
+
if (this.config.useBrowserLocale && isPlatformBrowser(this.platformId)) {
|
|
57
|
+
const browserLocale = navigator.language;
|
|
58
|
+
if (browserLocale) {
|
|
59
|
+
return browserLocale;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return this.config.locale;
|
|
63
|
+
}
|
|
64
|
+
escapeRegExp(value) {
|
|
65
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
66
|
+
}
|
|
67
|
+
interpolate(value, params) {
|
|
68
|
+
if (!params) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
let result = value;
|
|
72
|
+
for (const [paramKey, paramValue] of Object.entries(params)) {
|
|
73
|
+
const escapedParamKey = this.escapeRegExp(paramKey);
|
|
74
|
+
result = result.replace(new RegExp(String.raw `\{\{\s*${escapedParamKey}\s*}}`, 'g'), String(paramValue));
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
79
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTranslateService, providedIn: 'root' });
|
|
80
|
+
}
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisTranslateService, decorators: [{
|
|
82
|
+
type: Injectable,
|
|
83
|
+
args: [{
|
|
84
|
+
providedIn: 'root',
|
|
85
|
+
}]
|
|
86
|
+
}] });
|
|
87
|
+
//# sourceMappingURL=solaris-translate.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-translate.service.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/service/solaris-translate.service.ts"],"names":[],"mappings":"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","sourcesContent":["import { Injectable, inject, PLATFORM_ID } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\n\nimport type { SolarisTranslateConfig } from '../model/solaris-translate-config.interface';\nimport { SOLARIS_TRANSLATE_DEFAULT_CONFIG } from '../model/solaris-translate-defaults';\nimport { SOLARIS_TRANSLATE_CONFIG } from '../token/solaris-translate.tokens';\nimport type { SolarisLocale } from '../model/solaris-locale.types';\nimport type { SolarisTranslateParams } from '../model/solaris-translation.types';\n\nfunction mergeConfigs(\n injected?: SolarisTranslateConfig,\n): SolarisTranslateConfig {\n if (!injected) return SOLARIS_TRANSLATE_DEFAULT_CONFIG;\n const merged: SolarisTranslateConfig = {\n ...SOLARIS_TRANSLATE_DEFAULT_CONFIG,\n ...injected,\n translations: {},\n };\n const allLocales = new Set([\n ...Object.keys(SOLARIS_TRANSLATE_DEFAULT_CONFIG.translations),\n ...Object.keys(injected.translations ?? {}),\n ]);\n for (const locale of allLocales) {\n merged.translations[locale] = {\n ...(SOLARIS_TRANSLATE_DEFAULT_CONFIG.translations[locale] ?? {}),\n ...(injected.translations?.[locale] ?? {}),\n };\n }\n return merged;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class SolarisTranslateService {\n private readonly platformId = inject(PLATFORM_ID);\n private readonly config: SolarisTranslateConfig = mergeConfigs(\n inject(SOLARIS_TRANSLATE_CONFIG, { optional: true }) ?? undefined,\n );\n\n get locale(): SolarisLocale {\n return this.resolveLocale();\n }\n\n get fallbackLocale(): SolarisLocale {\n return this.config.fallbackLocale;\n }\n\n translate(key: string, params?: SolarisTranslateParams): string {\n const translations = this.config.translations;\n const locale = this.resolveLocale() as string;\n const fallbackLocale = this.config.fallbackLocale as string;\n\n const localeMap = translations[locale];\n if (localeMap && key in localeMap) {\n return this.interpolate(localeMap[key], params);\n }\n\n if (fallbackLocale) {\n const fallbackMap = translations[fallbackLocale];\n if (fallbackMap && key in fallbackMap) {\n return this.interpolate(fallbackMap[key], params);\n }\n }\n\n const defaultMap = translations['en-US'];\n if (defaultMap && key in defaultMap) {\n return this.interpolate(defaultMap[key], params);\n }\n\n return key;\n }\n\n private resolveLocale(): SolarisLocale {\n if (this.config.useBrowserLocale && isPlatformBrowser(this.platformId)) {\n const browserLocale = navigator.language;\n if (browserLocale) {\n return browserLocale;\n }\n }\n return this.config.locale;\n }\n\n private escapeRegExp(value: string): string {\n return value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n private interpolate(value: string, params?: SolarisTranslateParams): string {\n if (!params) {\n return value;\n }\n\n let result = value;\n\n for (const [paramKey, paramValue] of Object.entries(params)) {\n const escapedParamKey = this.escapeRegExp(paramKey);\n\n result = result.replace(\n new RegExp(String.raw`\\{\\{\\s*${escapedParamKey}\\s*}}`, 'g'),\n String(paramValue),\n );\n }\n\n return result;\n }\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SOLARIS_TRANSLATE_CONFIG } from '../token/solaris-translate.tokens';
|
|
2
|
+
export function provideSolarisTranslateTesting(config) {
|
|
3
|
+
const defaults = {
|
|
4
|
+
locale: 'en-US',
|
|
5
|
+
fallbackLocale: 'pt-BR',
|
|
6
|
+
translations: {
|
|
7
|
+
'en-US': {
|
|
8
|
+
greeting: 'Hello, {{name}}',
|
|
9
|
+
farewell: 'Goodbye',
|
|
10
|
+
},
|
|
11
|
+
'pt-BR': {
|
|
12
|
+
greeting: 'Olá, {{name}}',
|
|
13
|
+
farewell: 'Adeus',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
useBrowserLocale: false,
|
|
17
|
+
};
|
|
18
|
+
return [
|
|
19
|
+
{
|
|
20
|
+
provide: SOLARIS_TRANSLATE_CONFIG,
|
|
21
|
+
useValue: {
|
|
22
|
+
...defaults,
|
|
23
|
+
...config,
|
|
24
|
+
translations: {
|
|
25
|
+
...defaults.translations,
|
|
26
|
+
...config?.translations,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=solaris-translate-testing.provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-translate-testing.provider.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/testing/solaris-translate-testing.provider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,MAAM,UAAU,8BAA8B,CAC5C,MAAwC;IAExC,MAAM,QAAQ,GAA2B;QACvC,MAAM,EAAE,OAAO;QACf,cAAc,EAAE,OAAO;QACvB,YAAY,EAAE;YACZ,OAAO,EAAE;gBACP,QAAQ,EAAE,iBAAiB;gBAC3B,QAAQ,EAAE,SAAS;aACpB;YACD,OAAO,EAAE;gBACP,QAAQ,EAAE,eAAe;gBACzB,QAAQ,EAAE,OAAO;aAClB;SACF;QACD,gBAAgB,EAAE,KAAK;KACxB,CAAC;IAEF,OAAO;QACL;YACE,OAAO,EAAE,wBAAwB;YACjC,QAAQ,EAAE;gBACR,GAAG,QAAQ;gBACX,GAAG,MAAM;gBACT,YAAY,EAAE;oBACZ,GAAG,QAAQ,CAAC,YAAY;oBACxB,GAAG,MAAM,EAAE,YAAY;iBACxB;aACF;SACF;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { Provider } from '@angular/core';\r\n\r\nimport type { SolarisTranslateConfig } from '../model/solaris-translate-config.interface';\r\nimport { SOLARIS_TRANSLATE_CONFIG } from '../token/solaris-translate.tokens';\r\n\r\nexport function provideSolarisTranslateTesting(\r\n config?: Partial<SolarisTranslateConfig>,\r\n): Provider[] {\r\n const defaults: SolarisTranslateConfig = {\r\n locale: 'en-US',\r\n fallbackLocale: 'pt-BR',\r\n translations: {\r\n 'en-US': {\r\n greeting: 'Hello, {{name}}',\r\n farewell: 'Goodbye',\r\n },\r\n 'pt-BR': {\r\n greeting: 'Olá, {{name}}',\r\n farewell: 'Adeus',\r\n },\r\n },\r\n useBrowserLocale: false,\r\n };\r\n\r\n return [\r\n {\r\n provide: SOLARIS_TRANSLATE_CONFIG,\r\n useValue: {\r\n ...defaults,\r\n ...config,\r\n translations: {\r\n ...defaults.translations,\r\n ...config?.translations,\r\n },\r\n },\r\n },\r\n ];\r\n}\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-translate.tokens.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/token/solaris-translate.tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAI/C,MAAM,CAAC,MAAM,wBAAwB,GACnC,IAAI,cAAc,CAAyB,0BAA0B,CAAC,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nimport type { SolarisTranslateConfig } from '../model/solaris-translate-config.interface';\r\n\r\nexport const SOLARIS_TRANSLATE_CONFIG =\r\n new InjectionToken<SolarisTranslateConfig>('SOLARIS_TRANSLATE_CONFIG');\r\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { provideSolarisAccessibilityTesting } from '../services/accessibility/testing/solaris-accessibility-testing.provider';
|
|
2
|
+
import { provideSolarisThemeTesting } from '../services/theme/testing/solaris-theme-testing.provider';
|
|
3
|
+
import { provideSolarisTranslateTesting } from '../services/translation/testing/solaris-translate-testing.provider';
|
|
4
|
+
export function provideSolarisTesting(options) {
|
|
5
|
+
return [
|
|
6
|
+
...provideSolarisAccessibilityTesting(options?.accessibility),
|
|
7
|
+
...provideSolarisThemeTesting(options?.theme),
|
|
8
|
+
...provideSolarisTranslateTesting(options?.translate),
|
|
9
|
+
];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=provide-solaris-testing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provide-solaris-testing.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/testing/provide-solaris-testing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,0EAA0E,CAAC;AAC9H,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,8BAA8B,EAAE,MAAM,oEAAoE,CAAC;AAWpH,MAAM,UAAU,qBAAqB,CACnC,OAA+B;IAE/B,OAAO;QACL,GAAG,kCAAkC,CAAC,OAAO,EAAE,aAAa,CAAC;QAC7D,GAAG,0BAA0B,CAAC,OAAO,EAAE,KAAK,CAAC;QAC7C,GAAG,8BAA8B,CAAC,OAAO,EAAE,SAAS,CAAC;KACtD,CAAC;AACJ,CAAC","sourcesContent":["import type { Provider } from '@angular/core';\r\n\r\nimport { provideSolarisAccessibilityTesting } from '../services/accessibility/testing/solaris-accessibility-testing.provider';\r\nimport { provideSolarisThemeTesting } from '../services/theme/testing/solaris-theme-testing.provider';\r\nimport { provideSolarisTranslateTesting } from '../services/translation/testing/solaris-translate-testing.provider';\r\nimport type { SolarisAccessibilityConfig } from '../services/accessibility/model/solaris-accessibility-config.interface';\r\nimport type { SolarisThemeConfig } from '../services/theme/model/solaris-theme-config.interface';\r\nimport type { SolarisTranslateConfig } from '../services/translation/model/solaris-translate-config.interface';\r\n\r\nexport interface SolarisTestingOptions {\r\n accessibility?: SolarisAccessibilityConfig;\r\n theme?: Partial<SolarisThemeConfig>;\r\n translate?: Partial<SolarisTranslateConfig>;\r\n}\r\n\r\nexport function provideSolarisTesting(\r\n options?: SolarisTestingOptions,\r\n): Provider[] {\r\n return [\r\n ...provideSolarisAccessibilityTesting(options?.accessibility),\r\n ...provideSolarisThemeTesting(options?.theme),\r\n ...provideSolarisTranslateTesting(options?.translate),\r\n ];\r\n}\r\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
import { provideSolarisTesting, } from './provide-solaris-testing';
|
|
3
|
+
export function configureSolarisTesting(options, extraConfig) {
|
|
4
|
+
TestBed.configureTestingModule({
|
|
5
|
+
...extraConfig,
|
|
6
|
+
providers: [
|
|
7
|
+
...provideSolarisTesting(options),
|
|
8
|
+
...(extraConfig?.providers ?? []),
|
|
9
|
+
],
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=solaris-test-utilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solaris-test-utilities.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/testing/solaris-test-utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EACL,qBAAqB,GAEtB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,UAAU,uBAAuB,CACrC,OAA+B,EAC/B,WAAyC;IAEzC,OAAO,CAAC,sBAAsB,CAAC;QAC7B,GAAG,WAAW;QACd,SAAS,EAAE;YACT,GAAG,qBAAqB,CAAC,OAAO,CAAC;YACjC,GAAG,CAAC,WAAW,EAAE,SAAS,IAAI,EAAE,CAAC;SAClC;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { type TestModuleMetadata, TestBed } from '@angular/core/testing';\r\n\r\nimport {\r\n provideSolarisTesting,\r\n type SolarisTestingOptions,\r\n} from './provide-solaris-testing';\r\n\r\nexport function configureSolarisTesting(\r\n options?: SolarisTestingOptions,\r\n extraConfig?: Partial<TestModuleMetadata>,\r\n): void {\r\n TestBed.configureTestingModule({\r\n ...extraConfig,\r\n providers: [\r\n ...provideSolarisTesting(options),\r\n ...(extraConfig?.providers ?? []),\r\n ],\r\n });\r\n}\r\n"]}
|