@educarehq/solaris-ui 0.2.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 -0
- package/styles/_icon-button.scss +481 -481
- package/styles/_input.scss +255 -255
- package/styles/_popover.scss +73 -68
- package/styles/_theme.scss +46 -36
- package/styles/_toast.scss +9 -0
- 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 -70
- 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/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/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/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/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 -214
- 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 -394
- 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 -1119
- 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 -819
- 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/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 -317
- 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/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/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 -207
- 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 -40
- 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 -106
- 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/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/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/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/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 -66
- 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 -90
- 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 -202
- 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/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/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/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 -36
- 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":"solaris-built-in-icons.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/icon/icons/solaris-built-in-icons.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,sBAAsB,GAA4B;IAC7D;QACE,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE;YACR,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE;YACjC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE;SAClC;KACF;IACD;QACE,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,WAAW;QACpB,WAAW,EAAE,CAAC;QACd,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC;KACnD;IACD;QACE,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC;KAChD;IACD;QACE,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,gBAAgB,EAAE,CAAC;KAClD;IACD;QACE,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC;KACjD;IACD;QACE,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,gBAAgB,EAAE,CAAC;KAClD;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE;YACR,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,eAAe,EAAE;YACpC,EAAE,IAAI,EAAE,MAAM,EAAE,CA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AE,EAAE,KAAK,EAAE;SACvD;KACF;IACD;QACE,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE;YACR,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,8CAA8C,EAAE;YACnE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE;SACzC;KACF;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,MAAM;gBACZ,CAAC,EAAE,8KAA8K;aAClL;YACD,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;SAC/C;KACF;IACD;QACE,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE;YACR,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,yBAAyB,EAAE;YAC9C;gBACE,IAAI,EAAE,MAAM;gBACZ,CAAC,EAAE,4DAA4D;aAChE;YACD,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,iDAAiD,EAAE;YACtE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;SAC1C;KACF;CACF,CAAC","sourcesContent":["import type { SolarisIconDefinition } from '../model/solaris-icon-definition.interface';\r\n\r\nexport const SOLARIS_BUILT_IN_ICONS: SolarisIconDefinition[] = [\r\n {\r\n name: 'x',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'path', d: 'M18 6 6 18' },\r\n { type: 'path', d: 'm6 6 12 12' },\r\n ],\r\n },\r\n {\r\n name: 'check',\r\n viewBox: '0 0 24 24',\r\n strokeWidth: 3,\r\n elements: [{ type: 'path', d: 'M20 6 9 17l-5-5' }],\r\n },\r\n {\r\n name: 'chevron-down',\r\n viewBox: '0 0 24 24',\r\n elements: [{ type: 'path', d: 'm6 9 6 6 6-6' }],\r\n },\r\n {\r\n name: 'chevron-left',\r\n viewBox: '0 0 24 24',\r\n elements: [{ type: 'path', d: 'm15 18-6-6 6-6' }],\r\n },\r\n {\r\n name: 'chevron-right',\r\n viewBox: '0 0 24 24',\r\n elements: [{ type: 'path', d: 'm9 18 6-6-6-6' }],\r\n },\r\n {\r\n name: 'chevron-up',\r\n viewBox: '0 0 24 24',\r\n elements: [{ type: 'path', d: 'm18 15-6-6-6 6' }],\r\n },\r\n {\r\n name: 'chevron-forward',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'path', d: 'm9 18 6-6-6-6' },\r\n { type: 'path', d: 'm15 18 6-6-6-6' },\r\n ],\r\n },\r\n {\r\n name: 'chevron-backward',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'path', d: 'm15 18-6-6 6-6' },\r\n { type: 'path', d: 'm9 18-6-6 6-6' },\r\n ],\r\n },\r\n {\r\n name: 'chevron-first',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'path', d: 'm15 18-6-6 6-6' },\r\n { type: 'path', d: 'M7 6v12' },\r\n ],\r\n },\r\n {\r\n name: 'chevron-last',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'path', d: 'm9 18 6-6-6-6' },\r\n { type: 'path', d: 'M17 6v12' },\r\n ],\r\n },\r\n {\r\n name: 'info',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'circle', cx: 12, cy: 12, r: 10 },\r\n { type: 'path', d: 'M12 16v-4' },\r\n { type: 'path', d: 'M12 8h.01' },\r\n ],\r\n },\r\n {\r\n name: 'warning',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n {\r\n type: 'path',\r\n d: 'M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z',\r\n },\r\n { type: 'path', d: 'M12 9v4' },\r\n { type: 'path', d: 'M12 17h.01' },\r\n ],\r\n },\r\n {\r\n name: 'danger',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n {\r\n type: 'polygon',\r\n points:\r\n '7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86',\r\n },\r\n { type: 'path', d: 'm15 9-6 6' },\r\n { type: 'path', d: 'm9 9 6 6' },\r\n ],\r\n },\r\n {\r\n name: 'caution',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n {\r\n type: 'polygon',\r\n points:\r\n '7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86',\r\n },\r\n { type: 'path', d: 'M12 8v4' },\r\n { type: 'path', d: 'M12 16h.01' },\r\n ],\r\n },\r\n {\r\n name: 'success',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'circle', cx: 12, cy: 12, r: 10 },\r\n { type: 'path', d: 'm9 12 2 2 4-4' },\r\n ],\r\n },\r\n {\r\n name: 'shield-check',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'path', d: 'M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10' },\r\n { type: 'path', d: 'm9 12 2 2 4-4' },\r\n ],\r\n },\r\n {\r\n name: 'loader',\r\n viewBox: '0 0 24 24',\r\n elements: [{ type: 'path', d: 'M12 2a10 10 0 0 1 10 10' }],\r\n },\r\n {\r\n name: 'sun',\r\n viewBox: '0 0 24 24',\r\n fill: 'none',\r\n stroke: 'currentColor',\r\n strokeWidth: 2,\r\n strokeLinecap: 'round',\r\n strokeLinejoin: 'round',\r\n elements: [\r\n { type: 'circle', cx: 12, cy: 12, r: 4 },\r\n { type: 'path', d: 'M12 2v2' },\r\n { type: 'path', d: 'M12 20v2' },\r\n { type: 'path', d: 'M5 5l1.5 1.5' },\r\n { type: 'path', d: 'M17.5 17.5L19 19' },\r\n { type: 'path', d: 'M2 12h2' },\r\n { type: 'path', d: 'M20 12h2' },\r\n { type: 'path', d: 'M5 19l1.5-1.5' },\r\n { type: 'path', d: 'M17.5 6.5L19 5' },\r\n ],\r\n },\r\n {\r\n name: 'moon',\r\n viewBox: '0 0 24 24',\r\n fill: 'none',\r\n stroke: 'currentColor',\r\n strokeWidth: 2,\r\n strokeLinecap: 'round',\r\n strokeLinejoin: 'round',\r\n elements: [\r\n { type: 'path', d: 'M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z' },\r\n ],\r\n },\r\n {\r\n name: 'search',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'circle', cx: 11, cy: 11, r: 8 },\r\n { type: 'line', x1: 21, y1: 21, x2: 16.65, y2: 16.65 },\r\n ],\r\n },\r\n {\r\n name: 'eye',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'path', d: 'M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z' },\r\n { type: 'circle', cx: 12, cy: 12, r: 3 },\r\n ],\r\n },\r\n {\r\n name: 'eye-off',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n {\r\n type: 'path',\r\n d: 'M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24',\r\n },\r\n { type: 'line', x1: 1, y1: 1, x2: 23, y2: 23 },\r\n ],\r\n },\r\n {\r\n name: 'globe',\r\n viewBox: '0 0 24 24',\r\n elements: [\r\n { type: 'path', d: 'M15 21v-4a2 2 0 012-2h4' },\r\n {\r\n type: 'path',\r\n d: 'M7 4v2a3 3 0 003 2h0a2 2 0 012 2 2 2 0 004 0 2 2 0 012-2h3',\r\n },\r\n { type: 'path', d: 'M3 11h2a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v4' },\r\n { type: 'circle', cx: 12, cy: 12, r: 10 },\r\n ],\r\n },\r\n];\r\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { SolarisIconRegistryService } from './service/solaris-icon-registry.service';
|
|
2
|
-
export { SOLARIS_BUILT_IN_ICONS } from './icons/solaris-built-in-icons';
|
|
3
|
-
export { provideSolarisIcons } from './provider/provide-solaris-icons';
|
|
4
|
-
export { SOLARIS_ICONS_CONFIG } from './token/solaris-icon.tokens';
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/lib/services/icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export { SolarisIconRegistryService } from './service/solaris-icon-registry.service';\r\nexport { SOLARIS_BUILT_IN_ICONS } from './icons/solaris-built-in-icons';\r\nexport { provideSolarisIcons } from './provider/provide-solaris-icons';\r\nexport { SOLARIS_ICONS_CONFIG } from './token/solaris-icon.tokens';\r\n\r\nexport type { SolarisIconDefinition } from './model/solaris-icon-definition.interface';\r\nexport type {\r\n SvgElement,\r\n SvgPathElement,\r\n SvgLineElement,\r\n SvgPolylineElement,\r\n SvgPolygonElement,\r\n SvgCircleElement,\r\n} from './model/solaris-icon-definition.interface';\r\nexport type {\r\n SolarisIconName,\r\n SolarisBuiltInIcon,\r\n} from './model/solaris-icon.types';\r\nexport type { SolarisIconsConfig } from './token/solaris-icon.tokens';\r\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=solaris-icon-definition.interface.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solaris-icon-definition.interface.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/icon/model/solaris-icon-definition.interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface SvgPathElement {\r\n type: 'path';\r\n d: string;\r\n}\r\n\r\nexport interface SvgLineElement {\r\n type: 'line';\r\n x1: number;\r\n y1: number;\r\n x2: number;\r\n y2: number;\r\n}\r\n\r\nexport interface SvgPolylineElement {\r\n type: 'polyline';\r\n points: string;\r\n}\r\n\r\nexport interface SvgPolygonElement {\r\n type: 'polygon';\r\n points: string;\r\n}\r\n\r\nexport interface SvgCircleElement {\r\n type: 'circle';\r\n cx: number;\r\n cy: number;\r\n r: number;\r\n}\r\n\r\nexport type SvgElement =\r\n | SvgPathElement\r\n | SvgLineElement\r\n | SvgPolylineElement\r\n | SvgPolygonElement\r\n | SvgCircleElement;\r\n\r\nexport interface SolarisIconDefinition {\r\n name: string;\r\n viewBox: string;\r\n fill?: string;\r\n stroke?: string;\r\n strokeWidth?: number;\r\n strokeLinecap?: string;\r\n strokeLinejoin?: string;\r\n elements: SvgElement[];\r\n}\r\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=solaris-icon.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solaris-icon.types.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/icon/model/solaris-icon.types.ts"],"names":[],"mappings":"","sourcesContent":["export type SolarisBuiltInIcon =\r\n | 'check'\r\n | 'x'\r\n | 'chevron-down'\r\n | 'chevron-left'\r\n | 'chevron-right'\r\n | 'chevron-up'\r\n | 'chevron-forward'\r\n | 'chevron-backward'\r\n | 'chevron-first'\r\n | 'chevron-last'\r\n | 'info'\r\n | 'warning'\r\n | 'danger'\r\n | 'caution'\r\n | 'success'\r\n | 'shield-check'\r\n | 'sun'\r\n | 'moon'\r\n | 'globe';\r\n\r\nexport type SolarisIconName = string & { __brand?: never };\r\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provide-solaris-icons.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/icon/provider/provide-solaris-icons.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,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 { SolarisIconsConfig } from '../token/solaris-icon.tokens';\r\nimport { SOLARIS_ICONS_CONFIG } from '../token/solaris-icon.tokens';\r\n\r\nexport function provideSolarisIcons(config?: SolarisIconsConfig): Provider[] {\r\n return [\r\n {\r\n provide: SOLARIS_ICONS_CONFIG,\r\n useValue: config ?? {},\r\n },\r\n ];\r\n}\r\n"]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Injectable, inject } from '@angular/core';
|
|
2
|
-
import { SOLARIS_ICONS_CONFIG } from '../token/solaris-icon.tokens';
|
|
3
|
-
import { SOLARIS_BUILT_IN_ICONS } from '../icons';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class SolarisIconRegistryService {
|
|
6
|
-
registry = new Map();
|
|
7
|
-
constructor() {
|
|
8
|
-
const config = inject(SOLARIS_ICONS_CONFIG, { optional: true });
|
|
9
|
-
for (const icon of SOLARIS_BUILT_IN_ICONS) {
|
|
10
|
-
this.registry.set(icon.name, icon);
|
|
11
|
-
}
|
|
12
|
-
if (config?.extraIcons) {
|
|
13
|
-
for (const icon of config.extraIcons) {
|
|
14
|
-
if (!this.registry.has(icon.name)) {
|
|
15
|
-
this.registry.set(icon.name, icon);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
getIcon(name) {
|
|
21
|
-
return this.registry.get(name);
|
|
22
|
-
}
|
|
23
|
-
hasIcon(name) {
|
|
24
|
-
return this.registry.has(name);
|
|
25
|
-
}
|
|
26
|
-
registerIcon(icon) {
|
|
27
|
-
if (!this.registry.has(icon.name)) {
|
|
28
|
-
this.registry.set(icon.name, icon);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
registerIcons(icons) {
|
|
32
|
-
for (const icon of icons) {
|
|
33
|
-
this.registerIcon(icon);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisIconRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
37
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisIconRegistryService, providedIn: 'root' });
|
|
38
|
-
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SolarisIconRegistryService, decorators: [{
|
|
40
|
-
type: Injectable,
|
|
41
|
-
args: [{ providedIn: 'root' }]
|
|
42
|
-
}], ctorParameters: () => [] });
|
|
43
|
-
//# sourceMappingURL=solaris-icon-registry.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,GA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E","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"]}
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=solaris-theme-config.interface.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=solaris-theme.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=solaris-locale.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=solaris-translate-config.interface.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
},
|
|
21
|
-
'pt-BR': {
|
|
22
|
-
'solaris.select.search.placeholder': 'Buscar...',
|
|
23
|
-
'solaris.select.loading': 'Carregando...',
|
|
24
|
-
'solaris.select.empty': 'Nenhuma opção disponível',
|
|
25
|
-
'solaris.select.noResults': 'Nenhum resultado encontrado',
|
|
26
|
-
'solaris.select.clear': 'Limpar seleção',
|
|
27
|
-
'solaris.multiSelect.selectedCount.singular': '1 selecionado',
|
|
28
|
-
'solaris.multiSelect.selectedCount.plural': '{{ count }} selecionados',
|
|
29
|
-
'solaris.multiSelect.search.placeholder': 'Buscar...',
|
|
30
|
-
'solaris.multiSelect.loading': 'Carregando...',
|
|
31
|
-
'solaris.multiSelect.empty': 'Nenhuma opção disponível',
|
|
32
|
-
'solaris.multiSelect.noResults': 'Nenhum resultado encontrado',
|
|
33
|
-
'solaris.multiSelect.clear': 'Limpar seleção',
|
|
34
|
-
'solaris.multiSelect.selectAll': 'Selecionar todos',
|
|
35
|
-
'solaris.multiSelect.removeChip': 'Remover',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
useBrowserLocale: true,
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=solaris-translate-defaults.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solaris-translate-defaults.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/model/solaris-translate-defaults.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gCAAgC,GAA2B;IACtE,MAAM,EAAE,OAAO;IACf,cAAc,EAAE,OAAO;IACvB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,mCAAmC,EAAE,WAAW;YAChD,wBAAwB,EAAE,YAAY;YACtC,sBAAsB,EAAE,sBAAsB;YAC9C,0BAA0B,EAAE,kBAAkB;YAC9C,sBAAsB,EAAE,iBAAiB;YAEzC,4CAA4C,EAAE,YAAY;YAC1D,0CAA0C,EAAE,sBAAsB;YAClE,wCAAwC,EAAE,WAAW;YACrD,6BAA6B,EAAE,YAAY;YAC3C,2BAA2B,EAAE,sBAAsB;YACnD,+BAA+B,EAAE,kBAAkB;YACnD,2BAA2B,EAAE,iBAAiB;YAC9C,+BAA+B,EAAE,YAAY;YAC7C,gCAAgC,EAAE,QAAQ;SAC3C;QACD,OAAO,EAAE;YACP,mCAAmC,EAAE,WAAW;YAChD,wBAAwB,EAAE,eAAe;YACzC,sBAAsB,EAAE,0BAA0B;YAClD,0BAA0B,EAAE,6BAA6B;YACzD,sBAAsB,EAAE,gBAAgB;YAExC,4CAA4C,EAAE,eAAe;YAC7D,0CAA0C,EAAE,0BAA0B;YACtE,wCAAwC,EAAE,WAAW;YACrD,6BAA6B,EAAE,eAAe;YAC9C,2BAA2B,EAAE,0BAA0B;YACvD,+BAA+B,EAAE,6BAA6B;YAC9D,2BAA2B,EAAE,gBAAgB;YAC7C,+BAA+B,EAAE,kBAAkB;YACnD,gCAAgC,EAAE,SAAS;SAC5C;KACF;IACD,gBAAgB,EAAE,IAAI;CACvB,CAAC","sourcesContent":["import type { SolarisTranslateConfig } from './solaris-translate-config.interface';\r\n\r\nexport const SOLARIS_TRANSLATE_DEFAULT_CONFIG: SolarisTranslateConfig = {\r\n locale: 'en-US',\r\n fallbackLocale: 'en-US',\r\n translations: {\r\n 'en-US': {\r\n 'solaris.select.search.placeholder': 'Search...',\r\n 'solaris.select.loading': 'Loading...',\r\n 'solaris.select.empty': 'No options available',\r\n 'solaris.select.noResults': 'No results found',\r\n 'solaris.select.clear': 'Clear selection',\r\n\r\n 'solaris.multiSelect.selectedCount.singular': '1 selected',\r\n 'solaris.multiSelect.selectedCount.plural': '{{ count }} selected',\r\n 'solaris.multiSelect.search.placeholder': 'Search...',\r\n 'solaris.multiSelect.loading': 'Loading...',\r\n 'solaris.multiSelect.empty': 'No options available',\r\n 'solaris.multiSelect.noResults': 'No results found',\r\n 'solaris.multiSelect.clear': 'Clear selection',\r\n 'solaris.multiSelect.selectAll': 'Select all',\r\n 'solaris.multiSelect.removeChip': 'Remove',\r\n },\r\n 'pt-BR': {\r\n 'solaris.select.search.placeholder': 'Buscar...',\r\n 'solaris.select.loading': 'Carregando...',\r\n 'solaris.select.empty': 'Nenhuma opção disponível',\r\n 'solaris.select.noResults': 'Nenhum resultado encontrado',\r\n 'solaris.select.clear': 'Limpar seleção',\r\n\r\n 'solaris.multiSelect.selectedCount.singular': '1 selecionado',\r\n 'solaris.multiSelect.selectedCount.plural': '{{ count }} selecionados',\r\n 'solaris.multiSelect.search.placeholder': 'Buscar...',\r\n 'solaris.multiSelect.loading': 'Carregando...',\r\n 'solaris.multiSelect.empty': 'Nenhuma opção disponível',\r\n 'solaris.multiSelect.noResults': 'Nenhum resultado encontrado',\r\n 'solaris.multiSelect.clear': 'Limpar seleção',\r\n 'solaris.multiSelect.selectAll': 'Selecionar todos',\r\n 'solaris.multiSelect.removeChip': 'Remover',\r\n },\r\n },\r\n useBrowserLocale: true,\r\n};\r\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=solaris-translation.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,87 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solaris-translate.service.js","sourceRoot":"","sources":["../../../../../../../../packages/angular/src/lib/services/translation/service/solaris-translate.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;;AAI7E,SAAS,YAAY,CACnB,QAAiC;IAEjC,IAAI,CAAC,QAAQ;QAAE,OAAO,gCAAgC,CAAC;IACvD,MAAM,MAAM,GAA2B;QACrC,GAAG,gCAAgC;QACnC,GAAG,QAAQ;QACX,YAAY,EAAE,EAAE;KACjB,CAAC;IACF,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC;QACzB,GAAG,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,YAAY,CAAC;QAC7D,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,IAAI,EAAE,CAAC;KAC5C,CAAC,CAAC;IACH,KAAK,MAAM,MAAM,IAAI,UAAU,EAAE,CAAC;QAChC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG;YAC5B,GAAG,CAAC,gCAAgC,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YAChE,GAAG,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;SAC3C,CAAC;IACJ,CAAC;IACD,OAAO,M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AC;QAED,OAAO,GAAG,CAAC;IACb,CAAC;IAEO,aAAa;QACnB,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,IAAI,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YACvE,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC;YACzC,IAAI,aAAa,EAAE,CAAC;gBAClB,OAAO,aAAa,CAAC;YACvB,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5B,CAAC;IAEO,YAAY,CAAC,KAAa;QAChC,OAAO,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;IAEO,WAAW,CAAC,KAAa,EAAE,MAA+B;QAChE,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,MAAM,GAAG,KAAK,CAAC;QAEnB,KAAK,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAC5D,MAAM,eAAe,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YAEpD,MAAM,GAAG,MAAM,CAAC,OAAO,CACrB,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,CAAA,UAAU,eAAe,OAAO,EAAE,GAAG,CAAC,EAC3D,MAAM,CAAC,UAAU,CAAC,CACnB,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;wGAtEU,uBAAuB;4GAAvB,uBAAuB,cAFtB,MAAM;;4FAEP,uBAAuB;kBAHnC,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","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"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|