@mozaic-ds/angular 0.23.2-beta.4 → 0.24.0-beta.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/adeo/README.md +0 -0
- package/adeo/assets/special-icons/checkbox-checked-disabled.svg +3 -0
- package/adeo/assets/special-icons/checkbox-checked.svg +3 -0
- package/adeo/assets/special-icons/checkbox-indeterminate-disabled.svg +3 -0
- package/adeo/assets/special-icons/checkbox-indeterminate.svg +3 -0
- package/adeo/assets/special-icons/invalid-cross.svg +3 -0
- package/adeo/assets/special-icons/layer-cross.svg +3 -0
- package/adeo/assets/special-icons/notification-danger-m.svg +4 -0
- package/adeo/assets/special-icons/notification-danger-s.svg +4 -0
- package/adeo/assets/special-icons/notification-information-m.svg +5 -0
- package/adeo/assets/special-icons/notification-information-s.svg +5 -0
- package/adeo/assets/special-icons/notification-success-m.svg +4 -0
- package/adeo/assets/special-icons/notification-success-s.svg +4 -0
- package/adeo/assets/special-icons/notification-warning-m.svg +5 -0
- package/adeo/assets/special-icons/notification-warning-s.svg +5 -0
- package/adeo/assets/special-icons/remove-tag.svg +3 -0
- package/adeo/assets/special-icons/toggle-checked-disabled.svg +3 -0
- package/adeo/assets/special-icons/toggle-checked.svg +3 -0
- package/adeo/assets/special-icons/toggle-cross-disabled.svg +3 -0
- package/adeo/assets/special-icons/toggle-cross.svg +3 -0
- package/adeo/assets/special-icons/tooltip-triangle.svg +3 -0
- package/adeo/assets/special-icons/valid-check-mark.svg +11 -0
- package/adeo/assets/tokens/adeo/android/colors.xml +491 -0
- package/adeo/assets/tokens/adeo/android/font_dimens.xml +18 -0
- package/adeo/assets/tokens/adeo/css/_variables.scss +635 -0
- package/adeo/assets/tokens/adeo/css/root.scss +487 -0
- package/adeo/assets/tokens/adeo/ios/StyleDictionaryColor.h +499 -0
- package/adeo/assets/tokens/adeo/ios/StyleDictionaryColor.m +511 -0
- package/adeo/assets/tokens/adeo/ios/StyleDictionaryColor.swift +494 -0
- package/adeo/assets/tokens/adeo/ios/StyleDictionarySize.h +69 -0
- package/adeo/assets/tokens/adeo/ios/StyleDictionarySize.m +70 -0
- package/adeo/assets/tokens/adeo/ios/StyleDictionarySize.swift +71 -0
- package/adeo/assets/tokens/adeo/js/tokens.js +583 -0
- package/adeo/assets/tokens/adeo/js/tokensObject.js +9787 -0
- package/adeo/assets/tokens/adeo/scss/_tokens.scss +1645 -0
- package/adeo/common/global-events/global-events.module.d.ts +6 -0
- package/adeo/common/global-events/global-events.service.d.ts +11 -0
- package/adeo/common/global-events/public-api.d.ts +2 -0
- package/adeo/common/index.d.ts +2 -0
- package/adeo/common/utils/boolean-property.d.ts +1 -0
- package/adeo/common/utils/generate-id.d.ts +1 -0
- package/adeo/common/utils/get-random-number.d.ts +1 -0
- package/adeo/common/utils/index.d.ts +4 -0
- package/adeo/common/utils/overwrite-style.d.ts +2 -0
- package/adeo/common/utils/public-api.d.ts +1 -0
- package/adeo/components/autocomplete/autocomplete.component.d.ts +60 -0
- package/adeo/components/autocomplete/autocomplete.module.d.ts +15 -0
- package/adeo/components/autocomplete/index.d.ts +2 -0
- package/adeo/components/autocomplete/public-api.d.ts +1 -0
- package/adeo/components/badge/badge.component.d.ts +8 -0
- package/adeo/components/badge/badge.d.ts +3 -0
- package/adeo/components/badge/badge.module.d.ts +8 -0
- package/adeo/components/badge/index.d.ts +2 -0
- package/adeo/components/badge/public-api.d.ts +1 -0
- package/adeo/components/built-it-menu/built-it-menu.component.d.ts +12 -0
- package/adeo/components/built-it-menu/built-it-menu.module.d.ts +9 -0
- package/adeo/components/built-it-menu/index.d.ts +2 -0
- package/adeo/components/built-it-menu/model/built-it-menu.d.ts +9 -0
- package/adeo/components/built-it-menu/public-api.d.ts +1 -0
- package/adeo/components/button/button.component.d.ts +16 -0
- package/adeo/components/button/button.d.ts +7 -0
- package/adeo/components/button/button.module.d.ts +8 -0
- package/adeo/components/button/index.d.ts +2 -0
- package/adeo/components/button/public-api.d.ts +1 -0
- package/adeo/components/checkbox/checkbox.component.d.ts +21 -0
- package/adeo/components/checkbox/checkbox.module.d.ts +8 -0
- package/adeo/components/checkbox/public-api.d.ts +2 -0
- package/adeo/components/datatable/components/caption/moz-datatable-caption.component.d.ts +11 -0
- package/adeo/components/datatable/components/content/moz-datatable-content-cell.component.d.ts +8 -0
- package/adeo/components/datatable/components/footer/moz-datatable-footer.component.d.ts +18 -0
- package/adeo/components/datatable/components/header/moz-datatable-header-cell.component.d.ts +8 -0
- package/adeo/components/datatable/components/row/moz-datatable-row-expansion-content.component.d.ts +7 -0
- package/adeo/components/datatable/components/selection/moz-datatable-selection.component.d.ts +26 -0
- package/adeo/components/datatable/directives/moz-datatable-sort.directive.d.ts +15 -0
- package/adeo/components/datatable/model/column-def.d.ts +11 -0
- package/adeo/components/datatable/model/datatable-settings.d.ts +29 -0
- package/adeo/components/datatable/model/footer-settings.d.ts +17 -0
- package/adeo/components/datatable/model/row-data.d.ts +5 -0
- package/adeo/components/datatable/model/selection-settings.d.ts +16 -0
- package/adeo/components/datatable/moz-datatable.component.d.ts +53 -0
- package/adeo/components/datatable/moz-datatable.module.d.ts +22 -0
- package/adeo/components/datatable/public-api.d.ts +13 -0
- package/adeo/components/datatable-management/components/moz-datatable-management-content/moz-datatable-management-content.component.d.ts +29 -0
- package/adeo/components/datatable-management/moz-datatable-management.component.d.ts +16 -0
- package/adeo/components/datatable-management/moz-datatable-management.module.d.ts +15 -0
- package/adeo/components/datatable-management/public-api.d.ts +3 -0
- package/adeo/components/dialog/classes/dialog-config.d.ts +9 -0
- package/adeo/components/dialog/classes/dialog-injector.d.ts +10 -0
- package/adeo/components/dialog/classes/dialog-ref.d.ts +25 -0
- package/adeo/components/dialog/classes/index.d.ts +3 -0
- package/adeo/components/dialog/dialog-animation.d.ts +1 -0
- package/adeo/components/dialog/dialog.component.d.ts +23 -0
- package/adeo/components/dialog/dialog.module.d.ts +8 -0
- package/adeo/components/dialog/dialog.service.d.ts +20 -0
- package/adeo/components/dialog/interfaces/dialog-config.d.ts +7 -0
- package/adeo/components/dialog/interfaces/dialog-di-params.d.ts +6 -0
- package/adeo/components/dialog/interfaces/dialog-ref.d.ts +18 -0
- package/adeo/components/dialog/interfaces/index.d.ts +3 -0
- package/adeo/components/dialog/public-api.d.ts +5 -0
- package/adeo/components/dialog/tokens/dialog-config.token.d.ts +2 -0
- package/adeo/components/dialog/tokens/dialog-data.token.d.ts +2 -0
- package/adeo/components/dialog/tokens/dialog-ref.token.d.ts +2 -0
- package/adeo/components/dialog/tokens/index.d.ts +3 -0
- package/adeo/components/dropdown/dropdown.component.d.ts +54 -0
- package/adeo/components/dropdown/dropdown.module.d.ts +14 -0
- package/adeo/components/dropdown/index.d.ts +2 -0
- package/adeo/components/dropdown/public-api.d.ts +1 -0
- package/adeo/components/field/directives/input-icon.directive.d.ts +7 -0
- package/adeo/components/field/field-error.component.d.ts +5 -0
- package/adeo/components/field/field.component.d.ts +16 -0
- package/adeo/components/field/field.module.d.ts +10 -0
- package/adeo/components/field/index.d.ts +4 -0
- package/adeo/components/field/public-api.d.ts +1 -0
- package/adeo/components/file-uploader/components/uploaded-files/uploaded-files.component.d.ts +17 -0
- package/adeo/components/file-uploader/directives/moz-drag-n-drop.directive.d.ts +11 -0
- package/adeo/components/file-uploader/file-uploader.component.d.ts +34 -0
- package/adeo/components/file-uploader/file-uploader.module.d.ts +11 -0
- package/adeo/components/file-uploader/index.d.ts +4 -0
- package/adeo/components/file-uploader/public-api.d.ts +1 -0
- package/adeo/components/heading/heading-alignment.d.ts +1 -0
- package/adeo/components/heading/heading-weight-type.d.ts +1 -0
- package/adeo/components/heading/heading.component.d.ts +14 -0
- package/adeo/components/heading/heading.module.d.ts +8 -0
- package/adeo/components/heading/index.d.ts +4 -0
- package/adeo/components/heading/public-api.d.ts +1 -0
- package/adeo/components/icon/icon-size.d.ts +6 -0
- package/adeo/components/icon/icon.component.d.ts +15 -0
- package/adeo/components/icon/icon.module.d.ts +8 -0
- package/adeo/components/icon/icon.service.d.ts +13 -0
- package/adeo/components/icon/index.d.ts +3 -0
- package/adeo/components/icon/public-api.d.ts +1 -0
- package/adeo/components/layer/classes/layer-injector.d.ts +10 -0
- package/adeo/components/layer/classes/layer-ref.d.ts +21 -0
- package/adeo/components/layer/index.d.ts +5 -0
- package/adeo/components/layer/interfaces/index.d.ts +3 -0
- package/adeo/components/layer/interfaces/layer-config.d.ts +5 -0
- package/adeo/components/layer/interfaces/layer-di-params.d.ts +6 -0
- package/adeo/components/layer/interfaces/layer-ref.d.ts +15 -0
- package/adeo/components/layer/layer-animation.d.ts +1 -0
- package/adeo/components/layer/layer.component.d.ts +20 -0
- package/adeo/components/layer/layer.module.d.ts +9 -0
- package/adeo/components/layer/layer.service.d.ts +19 -0
- package/adeo/components/layer/public-api.d.ts +1 -0
- package/adeo/components/layer/tokens/index.d.ts +3 -0
- package/adeo/components/layer/tokens/layer-config.token.d.ts +2 -0
- package/adeo/components/layer/tokens/layer-data.token.d.ts +2 -0
- package/adeo/components/layer/tokens/layer-ref.token.d.ts +2 -0
- package/adeo/components/listbox/index.d.ts +3 -0
- package/adeo/components/listbox/listbox.component.d.ts +18 -0
- package/adeo/components/listbox/listbox.module.d.ts +10 -0
- package/adeo/components/listbox/model/listbox-item.d.ts +6 -0
- package/adeo/components/listbox/public-api.d.ts +1 -0
- package/adeo/components/loader/index.d.ts +3 -0
- package/adeo/components/loader/loader.component.d.ts +25 -0
- package/adeo/components/loader/loader.d.ts +16 -0
- package/adeo/components/loader/loader.module.d.ts +8 -0
- package/adeo/components/loader/loader.service.d.ts +18 -0
- package/adeo/components/loader/public-api.d.ts +1 -0
- package/adeo/components/notification/index.d.ts +8 -0
- package/adeo/components/notification/notification-animation.d.ts +1 -0
- package/adeo/components/notification/notification-container.component.d.ts +12 -0
- package/adeo/components/notification/notification-footer.d.ts +5 -0
- package/adeo/components/notification/notification-message.d.ts +5 -0
- package/adeo/components/notification/notification-title.d.ts +5 -0
- package/adeo/components/notification/notification.component.d.ts +9 -0
- package/adeo/components/notification/notification.d.ts +15 -0
- package/adeo/components/notification/notification.module.d.ts +15 -0
- package/adeo/components/notification/notification.service.d.ts +16 -0
- package/adeo/components/notification/public-api.d.ts +1 -0
- package/adeo/components/pagination/index.d.ts +2 -0
- package/adeo/components/pagination/pagination.component.d.ts +48 -0
- package/adeo/components/pagination/pagination.d.ts +7 -0
- package/adeo/components/pagination/pagination.module.d.ts +13 -0
- package/adeo/components/pagination/public-api.d.ts +1 -0
- package/adeo/components/progress-bar/index.d.ts +2 -0
- package/adeo/components/progress-bar/progress-bar-size.d.ts +1 -0
- package/adeo/components/progress-bar/progress-bar-theme.d.ts +1 -0
- package/adeo/components/progress-bar/progress-bar.component.d.ts +15 -0
- package/adeo/components/progress-bar/progress-bar.module.d.ts +8 -0
- package/adeo/components/progress-bar/public-api.d.ts +1 -0
- package/adeo/components/public-api.d.ts +28 -0
- package/adeo/components/select/index.d.ts +2 -0
- package/adeo/components/select/public-api.d.ts +1 -0
- package/adeo/components/select/select-size.d.ts +5 -0
- package/adeo/components/select/select.component.d.ts +8 -0
- package/adeo/components/select/select.module.d.ts +8 -0
- package/adeo/components/stepper/index.d.ts +3 -0
- package/adeo/components/stepper/public-api.d.ts +1 -0
- package/adeo/components/stepper/step-state.d.ts +1 -0
- package/adeo/components/stepper/step.component.d.ts +20 -0
- package/adeo/components/stepper/stepper.component.d.ts +20 -0
- package/adeo/components/stepper/stepper.module.d.ts +10 -0
- package/adeo/components/tabs/index.d.ts +3 -0
- package/adeo/components/tabs/public-api.d.ts +1 -0
- package/adeo/components/tabs/tab-selectors.d.ts +2 -0
- package/adeo/components/tabs/tab.component.d.ts +16 -0
- package/adeo/components/tabs/tabs.component.d.ts +36 -0
- package/adeo/components/tabs/tabs.module.d.ts +9 -0
- package/adeo/components/tag/index.d.ts +2 -0
- package/adeo/components/tag/public-api.d.ts +1 -0
- package/adeo/components/tag/tag-type.d.ts +5 -0
- package/adeo/components/tag/tag.component.d.ts +23 -0
- package/adeo/components/tag/tag.module.d.ts +9 -0
- package/adeo/components/taglist/components/taglist-layer-content/taglist-layer-content.component.d.ts +14 -0
- package/adeo/components/taglist/index.d.ts +3 -0
- package/adeo/components/taglist/public-api.d.ts +1 -0
- package/adeo/components/taglist/taglist.component.d.ts +26 -0
- package/adeo/components/taglist/taglist.module.d.ts +11 -0
- package/adeo/components/text-area/index.d.ts +2 -0
- package/adeo/components/text-area/public-api.d.ts +1 -0
- package/adeo/components/text-area/text-area.component.d.ts +12 -0
- package/adeo/components/text-area/text-area.module.d.ts +7 -0
- package/adeo/components/text-input/public-api.d.ts +2 -0
- package/adeo/components/text-input/text-input.component.d.ts +21 -0
- package/adeo/components/text-input/text-input.d.ts +1 -0
- package/adeo/components/text-input/text-input.module.d.ts +10 -0
- package/adeo/components/toggle/index.d.ts +2 -0
- package/adeo/components/toggle/public-api.d.ts +1 -0
- package/adeo/components/toggle/toggle-size.d.ts +1 -0
- package/adeo/components/toggle/toggle.component.d.ts +22 -0
- package/adeo/components/toggle/toggle.module.d.ts +8 -0
- package/adeo/components/tooltip/directive/tooltip.directive.d.ts +18 -0
- package/adeo/components/tooltip/index.d.ts +3 -0
- package/adeo/components/tooltip/public-api.d.ts +1 -0
- package/adeo/components/tooltip/tooltip-position.d.ts +1 -0
- package/adeo/components/tooltip/tooltip.component.d.ts +8 -0
- package/adeo/components/tooltip/tooltip.module.d.ts +9 -0
- package/adeo/esm2020/common/global-events/global-events.module.mjs +15 -0
- package/adeo/esm2020/common/global-events/global-events.service.mjs +30 -0
- package/adeo/esm2020/common/global-events/public-api.mjs +3 -0
- package/adeo/esm2020/common/index.mjs +3 -0
- package/adeo/esm2020/common/utils/boolean-property.mjs +4 -0
- package/adeo/esm2020/common/utils/generate-id.mjs +7 -0
- package/adeo/esm2020/common/utils/get-random-number.mjs +6 -0
- package/adeo/esm2020/common/utils/index.mjs +5 -0
- package/adeo/esm2020/common/utils/overwrite-style.mjs +5 -0
- package/adeo/esm2020/common/utils/public-api.mjs +2 -0
- package/adeo/esm2020/components/autocomplete/autocomplete.component.mjs +261 -0
- package/adeo/esm2020/components/autocomplete/autocomplete.module.mjs +48 -0
- package/adeo/esm2020/components/autocomplete/index.mjs +3 -0
- package/adeo/esm2020/components/autocomplete/public-api.mjs +2 -0
- package/adeo/esm2020/components/badge/badge.component.mjs +30 -0
- package/adeo/esm2020/components/badge/badge.mjs +2 -0
- package/adeo/esm2020/components/badge/badge.module.mjs +18 -0
- package/adeo/esm2020/components/badge/index.mjs +3 -0
- package/adeo/esm2020/components/badge/public-api.mjs +2 -0
- package/adeo/esm2020/components/built-it-menu/built-it-menu.component.mjs +34 -0
- package/adeo/esm2020/components/built-it-menu/built-it-menu.module.mjs +19 -0
- package/adeo/esm2020/components/built-it-menu/index.mjs +3 -0
- package/adeo/esm2020/components/built-it-menu/model/built-it-menu.mjs +2 -0
- package/adeo/esm2020/components/built-it-menu/public-api.mjs +2 -0
- package/adeo/esm2020/components/button/button.component.mjs +53 -0
- package/adeo/esm2020/components/button/button.mjs +2 -0
- package/adeo/esm2020/components/button/button.module.mjs +18 -0
- package/adeo/esm2020/components/button/index.mjs +3 -0
- package/adeo/esm2020/components/button/public-api.mjs +2 -0
- package/adeo/esm2020/components/checkbox/checkbox.component.mjs +58 -0
- package/adeo/esm2020/components/checkbox/checkbox.module.mjs +21 -0
- package/adeo/esm2020/components/checkbox/public-api.mjs +3 -0
- package/adeo/esm2020/components/datatable/components/caption/moz-datatable-caption.component.mjs +26 -0
- package/adeo/esm2020/components/datatable/components/content/moz-datatable-content-cell.component.mjs +16 -0
- package/adeo/esm2020/components/datatable/components/footer/moz-datatable-footer.component.mjs +58 -0
- package/adeo/esm2020/components/datatable/components/header/moz-datatable-header-cell.component.mjs +16 -0
- package/adeo/esm2020/components/datatable/components/row/moz-datatable-row-expansion-content.component.mjs +14 -0
- package/adeo/esm2020/components/datatable/components/selection/moz-datatable-selection.component.mjs +289 -0
- package/adeo/esm2020/components/datatable/directives/moz-datatable-sort.directive.mjs +65 -0
- package/adeo/esm2020/components/datatable/model/column-def.mjs +2 -0
- package/adeo/esm2020/components/datatable/model/datatable-settings.mjs +2 -0
- package/adeo/esm2020/components/datatable/model/footer-settings.mjs +2 -0
- package/adeo/esm2020/components/datatable/model/row-data.mjs +2 -0
- package/adeo/esm2020/components/datatable/model/selection-settings.mjs +2 -0
- package/adeo/esm2020/components/datatable/moz-datatable.component.mjs +161 -0
- package/adeo/esm2020/components/datatable/moz-datatable.module.mjs +87 -0
- package/adeo/esm2020/components/datatable/public-api.mjs +14 -0
- package/adeo/esm2020/components/datatable-management/components/moz-datatable-management-content/moz-datatable-management-content.component.mjs +80 -0
- package/adeo/esm2020/components/datatable-management/moz-datatable-management.component.mjs +45 -0
- package/adeo/esm2020/components/datatable-management/moz-datatable-management.module.mjs +45 -0
- package/adeo/esm2020/components/datatable-management/public-api.mjs +4 -0
- package/adeo/esm2020/components/dialog/classes/dialog-config.mjs +9 -0
- package/adeo/esm2020/components/dialog/classes/dialog-injector.mjs +22 -0
- package/adeo/esm2020/components/dialog/classes/dialog-ref.mjs +49 -0
- package/adeo/esm2020/components/dialog/classes/index.mjs +4 -0
- package/adeo/esm2020/components/dialog/dialog-animation.mjs +18 -0
- package/adeo/esm2020/components/dialog/dialog.component.mjs +57 -0
- package/adeo/esm2020/components/dialog/dialog.module.mjs +20 -0
- package/adeo/esm2020/components/dialog/dialog.service.mjs +67 -0
- package/adeo/esm2020/components/dialog/interfaces/dialog-config.mjs +2 -0
- package/adeo/esm2020/components/dialog/interfaces/dialog-di-params.mjs +2 -0
- package/adeo/esm2020/components/dialog/interfaces/dialog-ref.mjs +2 -0
- package/adeo/esm2020/components/dialog/interfaces/index.mjs +4 -0
- package/adeo/esm2020/components/dialog/public-api.mjs +6 -0
- package/adeo/esm2020/components/dialog/tokens/dialog-config.token.mjs +3 -0
- package/adeo/esm2020/components/dialog/tokens/dialog-data.token.mjs +3 -0
- package/adeo/esm2020/components/dialog/tokens/dialog-ref.token.mjs +3 -0
- package/adeo/esm2020/components/dialog/tokens/index.mjs +4 -0
- package/adeo/esm2020/components/dropdown/dropdown.component.mjs +217 -0
- package/adeo/esm2020/components/dropdown/dropdown.module.mjs +44 -0
- package/adeo/esm2020/components/dropdown/index.mjs +3 -0
- package/adeo/esm2020/components/dropdown/public-api.mjs +2 -0
- package/adeo/esm2020/components/field/directives/input-icon.directive.mjs +15 -0
- package/adeo/esm2020/components/field/field-error.component.mjs +13 -0
- package/adeo/esm2020/components/field/field.component.mjs +40 -0
- package/adeo/esm2020/components/field/field.module.mjs +20 -0
- package/adeo/esm2020/components/field/index.mjs +5 -0
- package/adeo/esm2020/components/field/public-api.mjs +2 -0
- package/adeo/esm2020/components/file-uploader/components/uploaded-files/uploaded-files.component.mjs +50 -0
- package/adeo/esm2020/components/file-uploader/directives/moz-drag-n-drop.directive.mjs +53 -0
- package/adeo/esm2020/components/file-uploader/file-uploader.component.mjs +106 -0
- package/adeo/esm2020/components/file-uploader/file-uploader.module.mjs +21 -0
- package/adeo/esm2020/components/file-uploader/index.mjs +5 -0
- package/adeo/esm2020/components/file-uploader/public-api.mjs +2 -0
- package/adeo/esm2020/components/heading/heading-alignment.mjs +2 -0
- package/adeo/esm2020/components/heading/heading-weight-type.mjs +2 -0
- package/adeo/esm2020/components/heading/heading.component.mjs +32 -0
- package/adeo/esm2020/components/heading/heading.module.mjs +18 -0
- package/adeo/esm2020/components/heading/index.mjs +5 -0
- package/adeo/esm2020/components/heading/public-api.mjs +2 -0
- package/adeo/esm2020/components/icon/icon-size.mjs +8 -0
- package/adeo/esm2020/components/icon/icon.component.mjs +49 -0
- package/adeo/esm2020/components/icon/icon.module.mjs +18 -0
- package/adeo/esm2020/components/icon/icon.service.mjs +42 -0
- package/adeo/esm2020/components/icon/index.mjs +4 -0
- package/adeo/esm2020/components/icon/public-api.mjs +2 -0
- package/adeo/esm2020/components/layer/classes/layer-injector.mjs +22 -0
- package/adeo/esm2020/components/layer/classes/layer-ref.mjs +38 -0
- package/adeo/esm2020/components/layer/index.mjs +6 -0
- package/adeo/esm2020/components/layer/interfaces/index.mjs +4 -0
- package/adeo/esm2020/components/layer/interfaces/layer-config.mjs +2 -0
- package/adeo/esm2020/components/layer/interfaces/layer-di-params.mjs +2 -0
- package/adeo/esm2020/components/layer/interfaces/layer-ref.mjs +2 -0
- package/adeo/esm2020/components/layer/layer-animation.mjs +18 -0
- package/adeo/esm2020/components/layer/layer.component.mjs +45 -0
- package/adeo/esm2020/components/layer/layer.module.mjs +21 -0
- package/adeo/esm2020/components/layer/layer.service.mjs +56 -0
- package/adeo/esm2020/components/layer/public-api.mjs +2 -0
- package/adeo/esm2020/components/layer/tokens/index.mjs +4 -0
- package/adeo/esm2020/components/layer/tokens/layer-config.token.mjs +3 -0
- package/adeo/esm2020/components/layer/tokens/layer-data.token.mjs +3 -0
- package/adeo/esm2020/components/layer/tokens/layer-ref.token.mjs +3 -0
- package/adeo/esm2020/components/listbox/index.mjs +4 -0
- package/adeo/esm2020/components/listbox/listbox.component.mjs +68 -0
- package/adeo/esm2020/components/listbox/listbox.module.mjs +20 -0
- package/adeo/esm2020/components/listbox/model/listbox-item.mjs +2 -0
- package/adeo/esm2020/components/listbox/public-api.mjs +2 -0
- package/adeo/esm2020/components/loader/index.mjs +4 -0
- package/adeo/esm2020/components/loader/loader.component.mjs +53 -0
- package/adeo/esm2020/components/loader/loader.mjs +11 -0
- package/adeo/esm2020/components/loader/loader.module.mjs +20 -0
- package/adeo/esm2020/components/loader/loader.service.mjs +53 -0
- package/adeo/esm2020/components/loader/public-api.mjs +2 -0
- package/adeo/esm2020/components/notification/index.mjs +9 -0
- package/adeo/esm2020/components/notification/notification-animation.mjs +21 -0
- package/adeo/esm2020/components/notification/notification-container.component.mjs +38 -0
- package/adeo/esm2020/components/notification/notification-footer.mjs +11 -0
- package/adeo/esm2020/components/notification/notification-message.mjs +11 -0
- package/adeo/esm2020/components/notification/notification-title.mjs +11 -0
- package/adeo/esm2020/components/notification/notification.component.mjs +29 -0
- package/adeo/esm2020/components/notification/notification.mjs +8 -0
- package/adeo/esm2020/components/notification/notification.module.mjs +66 -0
- package/adeo/esm2020/components/notification/notification.service.mjs +40 -0
- package/adeo/esm2020/components/notification/public-api.mjs +2 -0
- package/adeo/esm2020/components/pagination/index.mjs +3 -0
- package/adeo/esm2020/components/pagination/pagination.component.mjs +140 -0
- package/adeo/esm2020/components/pagination/pagination.mjs +4 -0
- package/adeo/esm2020/components/pagination/pagination.module.mjs +23 -0
- package/adeo/esm2020/components/pagination/public-api.mjs +2 -0
- package/adeo/esm2020/components/progress-bar/index.mjs +3 -0
- package/adeo/esm2020/components/progress-bar/progress-bar-size.mjs +2 -0
- package/adeo/esm2020/components/progress-bar/progress-bar-theme.mjs +2 -0
- package/adeo/esm2020/components/progress-bar/progress-bar.component.mjs +38 -0
- package/adeo/esm2020/components/progress-bar/progress-bar.module.mjs +18 -0
- package/adeo/esm2020/components/progress-bar/public-api.mjs +2 -0
- package/adeo/esm2020/components/public-api.mjs +29 -0
- package/adeo/esm2020/components/select/index.mjs +3 -0
- package/adeo/esm2020/components/select/public-api.mjs +2 -0
- package/adeo/esm2020/components/select/select-size.mjs +6 -0
- package/adeo/esm2020/components/select/select.component.mjs +25 -0
- package/adeo/esm2020/components/select/select.module.mjs +18 -0
- package/adeo/esm2020/components/stepper/index.mjs +4 -0
- package/adeo/esm2020/components/stepper/public-api.mjs +2 -0
- package/adeo/esm2020/components/stepper/step-state.mjs +2 -0
- package/adeo/esm2020/components/stepper/step.component.mjs +51 -0
- package/adeo/esm2020/components/stepper/stepper.component.mjs +79 -0
- package/adeo/esm2020/components/stepper/stepper.module.mjs +20 -0
- package/adeo/esm2020/components/tabs/index.mjs +4 -0
- package/adeo/esm2020/components/tabs/public-api.mjs +2 -0
- package/adeo/esm2020/components/tabs/tab-selectors.mjs +3 -0
- package/adeo/esm2020/components/tabs/tab.component.mjs +53 -0
- package/adeo/esm2020/components/tabs/tabs.component.mjs +128 -0
- package/adeo/esm2020/components/tabs/tabs.module.mjs +19 -0
- package/adeo/esm2020/components/tag/index.mjs +3 -0
- package/adeo/esm2020/components/tag/public-api.mjs +2 -0
- package/adeo/esm2020/components/tag/tag-type.mjs +2 -0
- package/adeo/esm2020/components/tag/tag.component.mjs +61 -0
- package/adeo/esm2020/components/tag/tag.module.mjs +19 -0
- package/adeo/esm2020/components/taglist/components/taglist-layer-content/taglist-layer-content.component.mjs +35 -0
- package/adeo/esm2020/components/taglist/index.mjs +4 -0
- package/adeo/esm2020/components/taglist/public-api.mjs +2 -0
- package/adeo/esm2020/components/taglist/taglist.component.mjs +76 -0
- package/adeo/esm2020/components/taglist/taglist.module.mjs +21 -0
- package/adeo/esm2020/components/text-area/index.mjs +3 -0
- package/adeo/esm2020/components/text-area/public-api.mjs +2 -0
- package/adeo/esm2020/components/text-area/text-area.component.mjs +43 -0
- package/adeo/esm2020/components/text-area/text-area.module.mjs +16 -0
- package/adeo/esm2020/components/text-input/public-api.mjs +3 -0
- package/adeo/esm2020/components/text-input/text-input.component.mjs +64 -0
- package/adeo/esm2020/components/text-input/text-input.mjs +2 -0
- package/adeo/esm2020/components/text-input/text-input.module.mjs +20 -0
- package/adeo/esm2020/components/toggle/index.mjs +3 -0
- package/adeo/esm2020/components/toggle/public-api.mjs +2 -0
- package/adeo/esm2020/components/toggle/toggle-size.mjs +2 -0
- package/adeo/esm2020/components/toggle/toggle.component.mjs +59 -0
- package/adeo/esm2020/components/toggle/toggle.module.mjs +18 -0
- package/adeo/esm2020/components/tooltip/directive/tooltip.directive.mjs +85 -0
- package/adeo/esm2020/components/tooltip/index.mjs +4 -0
- package/adeo/esm2020/components/tooltip/public-api.mjs +2 -0
- package/adeo/esm2020/components/tooltip/tooltip-position.mjs +2 -0
- package/adeo/esm2020/components/tooltip/tooltip.component.mjs +20 -0
- package/adeo/esm2020/components/tooltip/tooltip.module.mjs +19 -0
- package/adeo/esm2020/mozaic-ds-angular.mjs +5 -0
- package/adeo/esm2020/public-api.mjs +3 -0
- package/adeo/fesm2015/mozaic-ds-angular.mjs +4001 -0
- package/adeo/fesm2015/mozaic-ds-angular.mjs.map +1 -0
- package/adeo/fesm2020/mozaic-ds-angular.mjs +3954 -0
- package/adeo/fesm2020/mozaic-ds-angular.mjs.map +1 -0
- package/adeo/index.d.ts +5 -0
- package/adeo/package.json +40 -0
- package/adeo/public-api.d.ts +2 -0
- package/assets/tokens/adeo/android/colors.xml +11 -2
- package/assets/tokens/adeo/css/_variables.scss +11 -2
- package/assets/tokens/adeo/css/root.scss +12 -3
- package/assets/tokens/adeo/ios/StyleDictionaryColor.h +10 -1
- package/assets/tokens/adeo/ios/StyleDictionaryColor.m +11 -2
- package/assets/tokens/adeo/ios/StyleDictionaryColor.swift +11 -2
- package/assets/tokens/adeo/js/tokens.js +11 -2
- package/assets/tokens/adeo/js/tokensObject.js +165 -15
- package/assets/tokens/adeo/scss/_tokens.scss +31 -3
- package/components/autocomplete/autocomplete.component.d.ts +5 -4
- package/components/badge/public-api.d.ts +1 -0
- package/components/built-it-menu/built-it-menu.component.d.ts +12 -0
- package/components/built-it-menu/built-it-menu.module.d.ts +9 -0
- package/components/built-it-menu/index.d.ts +2 -0
- package/components/built-it-menu/model/built-it-menu.d.ts +9 -0
- package/components/built-it-menu/public-api.d.ts +1 -0
- package/components/button/public-api.d.ts +1 -0
- package/components/datatable/components/footer/moz-datatable-footer.component.d.ts +3 -3
- package/components/dropdown/dropdown.component.d.ts +1 -1
- package/components/field/index.d.ts +4 -0
- package/components/field/public-api.d.ts +1 -4
- package/components/file-uploader/components/uploaded-files/uploaded-files.component.d.ts +17 -0
- package/components/file-uploader/directives/moz-drag-n-drop.directive.d.ts +11 -0
- package/components/file-uploader/file-uploader.component.d.ts +34 -0
- package/components/file-uploader/file-uploader.module.d.ts +11 -0
- package/components/file-uploader/index.d.ts +4 -0
- package/components/file-uploader/public-api.d.ts +1 -0
- package/components/heading/heading-alignment.d.ts +1 -0
- package/components/heading/heading-weight-type.d.ts +1 -0
- package/components/heading/heading.component.d.ts +14 -0
- package/components/heading/heading.module.d.ts +8 -0
- package/components/heading/index.d.ts +4 -0
- package/components/heading/public-api.d.ts +1 -0
- package/components/icon/index.d.ts +3 -0
- package/components/icon/public-api.d.ts +1 -3
- package/components/layer/index.d.ts +5 -0
- package/components/layer/public-api.d.ts +1 -5
- package/components/loader/index.d.ts +3 -0
- package/components/loader/loader.component.d.ts +2 -2
- package/components/loader/public-api.d.ts +1 -3
- package/components/notification/index.d.ts +8 -0
- package/components/notification/public-api.d.ts +1 -8
- package/components/pagination/index.d.ts +2 -0
- package/components/pagination/public-api.d.ts +1 -2
- package/components/progress-bar/index.d.ts +2 -0
- package/components/progress-bar/public-api.d.ts +1 -2
- package/components/public-api.d.ts +5 -2
- package/components/select/index.d.ts +2 -0
- package/components/select/public-api.d.ts +1 -2
- package/components/stepper/index.d.ts +3 -0
- package/components/stepper/public-api.d.ts +1 -3
- package/components/tabs/index.d.ts +3 -0
- package/components/tabs/public-api.d.ts +1 -3
- package/components/tag/index.d.ts +2 -0
- package/components/tag/public-api.d.ts +1 -2
- package/components/text-area/index.d.ts +2 -0
- package/components/text-area/public-api.d.ts +1 -2
- package/components/toggle/index.d.ts +2 -0
- package/components/toggle/public-api.d.ts +1 -2
- package/esm2020/components/autocomplete/autocomplete.component.mjs +45 -36
- package/esm2020/components/badge/public-api.mjs +2 -0
- package/esm2020/components/built-it-menu/built-it-menu.component.mjs +34 -0
- package/esm2020/components/built-it-menu/built-it-menu.module.mjs +19 -0
- package/esm2020/components/built-it-menu/index.mjs +3 -0
- package/esm2020/components/built-it-menu/model/built-it-menu.mjs +2 -0
- package/esm2020/components/built-it-menu/public-api.mjs +2 -0
- package/esm2020/components/button/public-api.mjs +2 -0
- package/esm2020/components/datatable/components/footer/moz-datatable-footer.component.mjs +8 -6
- package/esm2020/components/dropdown/dropdown.component.mjs +6 -6
- package/esm2020/components/dropdown/dropdown.module.mjs +1 -1
- package/esm2020/components/field/index.mjs +5 -0
- package/esm2020/components/field/public-api.mjs +2 -5
- package/esm2020/components/file-uploader/components/uploaded-files/uploaded-files.component.mjs +50 -0
- package/esm2020/components/file-uploader/directives/moz-drag-n-drop.directive.mjs +53 -0
- package/esm2020/components/file-uploader/file-uploader.component.mjs +106 -0
- package/esm2020/components/file-uploader/file-uploader.module.mjs +21 -0
- package/esm2020/components/file-uploader/index.mjs +5 -0
- package/esm2020/components/file-uploader/public-api.mjs +2 -0
- package/esm2020/components/heading/heading-alignment.mjs +2 -0
- package/esm2020/components/heading/heading-weight-type.mjs +2 -0
- package/esm2020/components/heading/heading.component.mjs +32 -0
- package/esm2020/components/heading/heading.module.mjs +18 -0
- package/esm2020/components/heading/index.mjs +5 -0
- package/esm2020/components/heading/public-api.mjs +2 -0
- package/esm2020/components/icon/icon.service.mjs +1 -1
- package/esm2020/components/icon/index.mjs +4 -0
- package/esm2020/components/icon/public-api.mjs +2 -4
- package/esm2020/components/layer/index.mjs +6 -0
- package/esm2020/components/layer/layer.module.mjs +2 -2
- package/esm2020/components/layer/public-api.mjs +2 -6
- package/esm2020/components/listbox/listbox.component.mjs +2 -2
- package/esm2020/components/loader/index.mjs +4 -0
- package/esm2020/components/loader/loader.component.mjs +9 -3
- package/esm2020/components/loader/public-api.mjs +2 -4
- package/esm2020/components/notification/index.mjs +9 -0
- package/esm2020/components/notification/public-api.mjs +2 -9
- package/esm2020/components/pagination/index.mjs +3 -0
- package/esm2020/components/pagination/public-api.mjs +2 -3
- package/esm2020/components/progress-bar/index.mjs +3 -0
- package/esm2020/components/progress-bar/public-api.mjs +2 -3
- package/esm2020/components/public-api.mjs +6 -3
- package/esm2020/components/select/index.mjs +3 -0
- package/esm2020/components/select/public-api.mjs +2 -3
- package/esm2020/components/select/select.component.mjs +2 -2
- package/esm2020/components/stepper/index.mjs +4 -0
- package/esm2020/components/stepper/public-api.mjs +2 -4
- package/esm2020/components/stepper/stepper.module.mjs +2 -2
- package/esm2020/components/tabs/index.mjs +4 -0
- package/esm2020/components/tabs/public-api.mjs +2 -4
- package/esm2020/components/tag/index.mjs +3 -0
- package/esm2020/components/tag/public-api.mjs +2 -3
- package/esm2020/components/tag/tag.component.mjs +2 -2
- package/esm2020/components/text-area/index.mjs +3 -0
- package/esm2020/components/text-area/public-api.mjs +2 -3
- package/esm2020/components/text-input/text-input.module.mjs +2 -2
- package/esm2020/components/toggle/index.mjs +3 -0
- package/esm2020/components/toggle/public-api.mjs +2 -3
- package/esm2020/components/tooltip/tooltip.component.mjs +2 -2
- package/fesm2015/mozaic-ds-angular.mjs +378 -56
- package/fesm2015/mozaic-ds-angular.mjs.map +1 -1
- package/fesm2020/mozaic-ds-angular.mjs +372 -56
- package/fesm2020/mozaic-ds-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { LoaderComponent } from './loader.component';
|
|
4
|
+
import { LoaderService } from './loader.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class LoaderModule {
|
|
7
|
+
}
|
|
8
|
+
LoaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
+
LoaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LoaderModule, declarations: [LoaderComponent], imports: [CommonModule], exports: [LoaderComponent] });
|
|
10
|
+
LoaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoaderModule, providers: [LoaderService], imports: [CommonModule] });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoaderModule, decorators: [{
|
|
12
|
+
type: NgModule,
|
|
13
|
+
args: [{
|
|
14
|
+
imports: [CommonModule],
|
|
15
|
+
declarations: [LoaderComponent],
|
|
16
|
+
providers: [LoaderService],
|
|
17
|
+
exports: [LoaderComponent],
|
|
18
|
+
}]
|
|
19
|
+
}] });
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGVyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL2xvYWRlci9sb2FkZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7O0FBUWpELE1BQU0sT0FBTyxZQUFZOzt5R0FBWixZQUFZOzBHQUFaLFlBQVksaUJBSlIsZUFBZSxhQURwQixZQUFZLGFBR1osZUFBZTswR0FFZCxZQUFZLGFBSFosQ0FBQyxhQUFhLENBQUMsWUFGaEIsWUFBWTsyRkFLWCxZQUFZO2tCQU54QixRQUFRO21CQUFDO29CQUNSLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQztvQkFDdkIsWUFBWSxFQUFFLENBQUMsZUFBZSxDQUFDO29CQUMvQixTQUFTLEVBQUUsQ0FBQyxhQUFhLENBQUM7b0JBQzFCLE9BQU8sRUFBRSxDQUFDLGVBQWUsQ0FBQztpQkFDM0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IExvYWRlckNvbXBvbmVudCB9IGZyb20gJy4vbG9hZGVyLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBMb2FkZXJTZXJ2aWNlIH0gZnJvbSAnLi9sb2FkZXIuc2VydmljZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBkZWNsYXJhdGlvbnM6IFtMb2FkZXJDb21wb25lbnRdLFxuICBwcm92aWRlcnM6IFtMb2FkZXJTZXJ2aWNlXSxcbiAgZXhwb3J0czogW0xvYWRlckNvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIExvYWRlck1vZHVsZSB7fVxuIl19
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import { Inject, Injectable, } from '@angular/core';
|
|
3
|
+
import { LoaderComponent } from './loader.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class LoaderService {
|
|
6
|
+
get _loaderComponent() {
|
|
7
|
+
return this._loaderRef.instance;
|
|
8
|
+
}
|
|
9
|
+
constructor(applicationRef, componentFactoryResolver, injector, document) {
|
|
10
|
+
this.applicationRef = applicationRef;
|
|
11
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
12
|
+
this.injector = injector;
|
|
13
|
+
this.document = document;
|
|
14
|
+
this._loaderRef = this.createComponentRef();
|
|
15
|
+
this._loaderComponent.isOverlay = true;
|
|
16
|
+
this._loaderComponent.theme = 'light';
|
|
17
|
+
this.appendLoaderToBody(this._loaderRef);
|
|
18
|
+
}
|
|
19
|
+
startLoad(config) {
|
|
20
|
+
const { size = 'l', text = '' } = config || {};
|
|
21
|
+
this._loaderComponent.size = size;
|
|
22
|
+
this._loaderComponent.text = text;
|
|
23
|
+
this._loaderComponent.hideOverlay = false;
|
|
24
|
+
this._loaderComponent.cd.markForCheck();
|
|
25
|
+
}
|
|
26
|
+
stopLoad() {
|
|
27
|
+
this._loaderComponent.hideOverlay = true;
|
|
28
|
+
this._loaderComponent.cd.markForCheck();
|
|
29
|
+
}
|
|
30
|
+
createComponentRef() {
|
|
31
|
+
return this.componentFactoryResolver
|
|
32
|
+
.resolveComponentFactory(LoaderComponent)
|
|
33
|
+
.create(this.injector);
|
|
34
|
+
}
|
|
35
|
+
appendLoaderToBody(componentRef) {
|
|
36
|
+
const componentHostView = componentRef.hostView;
|
|
37
|
+
const componentHtmlElement = componentHostView.rootNodes[0];
|
|
38
|
+
this.applicationRef.attachView(componentHostView);
|
|
39
|
+
this.document.body.appendChild(componentHtmlElement);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
LoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoaderService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
43
|
+
LoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoaderService, providedIn: 'root' });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoaderService, decorators: [{
|
|
45
|
+
type: Injectable,
|
|
46
|
+
args: [{
|
|
47
|
+
providedIn: 'root',
|
|
48
|
+
}]
|
|
49
|
+
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: Document, decorators: [{
|
|
50
|
+
type: Inject,
|
|
51
|
+
args: [DOCUMENT]
|
|
52
|
+
}] }]; } });
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZ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biAgcHJpdmF0ZSBhcHBlbmRMb2FkZXJUb0JvZHkoY29tcG9uZW50UmVmOiBDb21wb25lbnRSZWY8TG9hZGVyQ29tcG9uZW50Pik6IHZvaWQge1xuICAgIGNvbnN0IGNvbXBvbmVudEhvc3RWaWV3ID0gY29tcG9uZW50UmVmLmhvc3RWaWV3IGFzIEVtYmVkZGVkVmlld1JlZjx1bmtub3duPjtcbiAgICBjb25zdCBjb21wb25lbnRIdG1sRWxlbWVudCA9IGNvbXBvbmVudEhvc3RWaWV3LnJvb3ROb2Rlc1swXSBhcyBIVE1MRWxlbWVudDtcbiAgICB0aGlzLmFwcGxpY2F0aW9uUmVmLmF0dGFjaFZpZXcoY29tcG9uZW50SG9zdFZpZXcpO1xuICAgIHRoaXMuZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZChjb21wb25lbnRIdG1sRWxlbWVudCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './index';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL2xvYWRlci9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './notification';
|
|
2
|
+
export * from './notification-container.component';
|
|
3
|
+
export * from './notification-footer';
|
|
4
|
+
export * from './notification-message';
|
|
5
|
+
export * from './notification-title';
|
|
6
|
+
export * from './notification.component';
|
|
7
|
+
export * from './notification.module';
|
|
8
|
+
export * from './notification.service';
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9ub3RpZmljYXRpb24vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLG9DQUFvQyxDQUFDO0FBQ25ELGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLHdCQUF3QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9ub3RpZmljYXRpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9ub3RpZmljYXRpb24tY29udGFpbmVyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL25vdGlmaWNhdGlvbi1mb290ZXInO1xuZXhwb3J0ICogZnJvbSAnLi9ub3RpZmljYXRpb24tbWVzc2FnZSc7XG5leHBvcnQgKiBmcm9tICcuL25vdGlmaWNhdGlvbi10aXRsZSc7XG5leHBvcnQgKiBmcm9tICcuL25vdGlmaWNhdGlvbi5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9ub3RpZmljYXRpb24ubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbm90aWZpY2F0aW9uLnNlcnZpY2UnO1xuIl19
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { animate, group, query, style, transition, trigger } from '@angular/animations';
|
|
2
|
+
export const NotificationAnimation = trigger('fadeIn', [
|
|
3
|
+
transition(':enter', [
|
|
4
|
+
style({ opacity: 1, transform: 'translateY(50%)' }),
|
|
5
|
+
animate('300ms ease-out', style({ transform: 'translateY(0)' })),
|
|
6
|
+
]),
|
|
7
|
+
transition(':leave', [
|
|
8
|
+
group([
|
|
9
|
+
query('.mc-notification__title', [animate('200ms', style({ opacity: 0, height: 0 }))], {
|
|
10
|
+
optional: true,
|
|
11
|
+
}),
|
|
12
|
+
query('.mc-notification__message', [animate('200ms', style({ opacity: 0, height: 0 }))], {
|
|
13
|
+
optional: true,
|
|
14
|
+
}),
|
|
15
|
+
query(':self', [
|
|
16
|
+
animate('300ms', style({ opacity: 0, height: 0, padding: 0, transform: 'translateY(-200%)' })),
|
|
17
|
+
]),
|
|
18
|
+
]),
|
|
19
|
+
]),
|
|
20
|
+
]);
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLWFuaW1hdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL25vdGlmaWNhdGlvbi9ub3RpZmljYXRpb24tYW5pbWF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsVUFBVSxFQUFFLE9BQU8sRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRXhGLE1BQU0sQ0FBQyxNQUFNLHFCQUFxQixHQUFHLE9BQU8sQ0FBQyxRQUFRLEVBQUU7SUFDckQsVUFBVSxDQUFDLFFBQVEsRUFBRTtRQUNuQixLQUFLLENBQUMsRUFBRSxPQUFPLEVBQUUsQ0FBQyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxDQUFDO1FBQ25ELE9BQU8sQ0FBQyxnQkFBZ0IsRUFBRSxLQUFLLENBQUMsRUFBRSxTQUFTLEVBQUUsZUFBZSxFQUF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Sh7IG9wYWNpdHk6IDEsIHRyYW5zZm9ybTogJ3RyYW5zbGF0ZVkoNTAlKScgfSksXG4gICAgYW5pbWF0ZSgnMzAwbXMgZWFzZS1vdXQnLCBzdHlsZSh7IHRyYW5zZm9ybTogJ3RyYW5zbGF0ZVkoMCknIH0pKSxcbiAgXSksXG4gIHRyYW5zaXRpb24oJzpsZWF2ZScsIFtcbiAgICBncm91cChbXG4gICAgICBxdWVyeSgnLm1jLW5vdGlmaWNhdGlvbl9fdGl0bGUnLCBbYW5pbWF0ZSgnMjAwbXMnLCBzdHlsZSh7IG9wYWNpdHk6IDAsIGhlaWdodDogMCB9KSldLCB7XG4gICAgICAgIG9wdGlvbmFsOiB0cnVlLFxuICAgICAgfSksXG4gICAgICBxdWVyeSgnLm1jLW5vdGlmaWNhdGlvbl9fbWVzc2FnZScsIFthbmltYXRlKCcyMDBtcycsIHN0eWxlKHsgb3BhY2l0eTogMCwgaGVpZ2h0OiAwIH0pKV0sIHtcbiAgICAgICAgb3B0aW9uYWw6IHRydWUsXG4gICAgICB9KSxcbiAgICAgIHF1ZXJ5KCc6c2VsZicsIFtcbiAgICAgICAgYW5pbWF0ZShcbiAgICAgICAgICAnMzAwbXMnLFxuICAgICAgICAgIHN0eWxlKHsgb3BhY2l0eTogMCwgaGVpZ2h0OiAwLCBwYWRkaW5nOiAwLCB0cmFuc2Zvcm06ICd0cmFuc2xhdGVZKC0yMDAlKScgfSlcbiAgICAgICAgKSxcbiAgICAgIF0pLFxuICAgIF0pLFxuICBdKSxcbl0pO1xuIl19
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { NOTIFICATION_CONFIG } from './notification';
|
|
4
|
+
import { NotificationAnimation } from './notification-animation';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "./notification.component";
|
|
8
|
+
import * as i3 from "./notification-title";
|
|
9
|
+
import * as i4 from "./notification-message";
|
|
10
|
+
export class NotificationContainerComponent {
|
|
11
|
+
constructor(notificationConfig) {
|
|
12
|
+
this.notificationConfig = notificationConfig;
|
|
13
|
+
this._notifications = new BehaviorSubject([]);
|
|
14
|
+
}
|
|
15
|
+
get notifications() {
|
|
16
|
+
return this._notifications.asObservable();
|
|
17
|
+
}
|
|
18
|
+
add(notification) {
|
|
19
|
+
this._notifications.next([...this._notifications.value, notification]);
|
|
20
|
+
this.autoremove(notification);
|
|
21
|
+
}
|
|
22
|
+
autoremove(notification) {
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
const newState = this._notifications.value.filter((n) => n !== notification);
|
|
25
|
+
this._notifications.next(newState);
|
|
26
|
+
}, this.notificationConfig.duration);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: NOTIFICATION_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NotificationContainerComponent, selector: "moz-notification-container", ngImport: i0, template: "<ng-container *ngFor=\"let notification of notifications | async\">\n <moz-notification size=\"s\" [type]=\"notification.type\" @fadeIn>\n <h3 mozNotificationTitle *ngIf=\"notification.title\">{{ notification.title }}</h3>\n <p mozNotificationMessage *ngIf=\"notification.message\">{{ notification.message }}</p>\n </moz-notification>\n</ng-container>\n", styles: [":host{position:fixed;top:1rem;opacity:.9;display:flex;flex-direction:column;gap:1rem;width:20rem;right:1rem}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.NotificationComponent, selector: "moz-notification", inputs: ["type", "size"] }, { kind: "component", type: i3.NotificationTitleComponent, selector: "[mozNotificationTitle]" }, { kind: "component", type: i4.NotificationMessageComponent, selector: "[mozNotificationMessage]" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [NotificationAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationContainerComponent, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{ selector: 'moz-notification-container', changeDetection: ChangeDetectionStrategy.OnPush, animations: [NotificationAnimation], template: "<ng-container *ngFor=\"let notification of notifications | async\">\n <moz-notification size=\"s\" [type]=\"notification.type\" @fadeIn>\n <h3 mozNotificationTitle *ngIf=\"notification.title\">{{ notification.title }}</h3>\n <p mozNotificationMessage *ngIf=\"notification.message\">{{ notification.message }}</p>\n </moz-notification>\n</ng-container>\n", styles: [":host{position:fixed;top:1rem;opacity:.9;display:flex;flex-direction:column;gap:1rem;width:20rem;right:1rem}\n"] }]
|
|
34
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
35
|
+
type: Inject,
|
|
36
|
+
args: [NOTIFICATION_CONFIG]
|
|
37
|
+
}] }]; } });
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLWNvbnRhaW5lci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9ub3RpZmljYXRpb24vbm90aWZpY2F0aW9uLWNvbnRhaW5lci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9ub3RpZmljYXRpb24vb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7XG4gIH1cbn1cbiIsIjxuZy1jb250YWluZXIgKm5nRm9yPVwibGV0IG5vdGlmaWNhdGlvbiBvZiBub3RpZmljYXRpb25zIHwgYXN5bmNcIj5cbiAgPG1vei1ub3RpZmljYXRpb24gc2l6ZT1cInNcIiBbdHlwZV09XCJub3RpZmljYXRpb24udHlwZVwiIEBmYWRlSW4+XG4gICAgPGgzIG1vek5vdGlmaWNhdGlvblRpdGxlICpuZ0lmPVwibm90aWZpY2F0aW9uLnRpdGxlXCI+e3sgbm90aWZpY2F0aW9uLnRpdGxlIH19PC9oMz5cbiAgICA8cCBtb3pOb3RpZmljYXRpb25NZXNzYWdlICpuZ0lmPVwibm90aWZpY2F0aW9uLm1lc3NhZ2VcIj57eyBub3RpZmljYXRpb24ubWVzc2FnZSB9fTwvcD5cbiAgPC9tb3otbm90aWZpY2F0aW9uPlxuPC9uZy1jb250YWluZXI+XG4iXX0=
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class NotificationFooterComponent {
|
|
4
|
+
}
|
|
5
|
+
NotificationFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
NotificationFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NotificationFooterComponent, selector: "[mozNotificationFooter]", host: { properties: { "class.mc-notification__footer": "true" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".mc-notification{font-family:Roboto,sans-serif;font-weight:400;border-radius:4px;display:flex;flex-flow:row wrap;align-items:flex-start;padding:1rem 1.5rem 1.5rem 1rem;background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc;box-sizing:border-box;color:#000}.mc-notification:before{background-size:2rem;flex:0 0 2rem;height:2rem;margin-right:1rem;width:2rem}.mc-notification .mc-notification__content{padding-top:.25rem}.mc-notification .mc-notification__title+.mc-notification__message{margin-top:.5rem}.mc-notification:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification:before{background-color:transparent;background-repeat:no-repeat;content:\"\";display:block}.mc-notification__content{flex:1 1 0}.mc-notification__title,.mc-notification__message{margin-bottom:0;margin-top:0}.mc-notification__title{font-family:Roboto,sans-serif;font-weight:700;font-size:1rem;line-height:1.5}.mc-notification__message{font-size:.875rem;line-height:1.5714285714}.mc-notification__footer{align-items:flex-start;display:flex;flex-direction:column;margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification__footer{flex-direction:row}}.mc-notification__link{font-size:.875rem;line-height:1.2857142857;margin-top:.5rem}.mc-notification .mc-button:not(:first-child){margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification .mc-button:not(:first-child){margin-top:0;margin-left:1rem}}.mc-notification--information{background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc}.mc-notification--information:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification--success{background:#ebf5de;box-shadow:inset 0 0 0 1px #46a610}.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' fill='%23188803' viewBox='0 0 32 32'%3E%3Cpath d='M16,5A11,11,0,1,1,5,16,11,11,0,0,1,16,5m0-2A13,13,0,1,0,29,16,13,13,0,0,0,16,3Z'/%3E%3Cpath d='M14.2,21.45,8.5,16.18a1,1,0,1,1,1.35-1.47l4.28,4,8-8.09a1,1,0,0,1,1.42,0,1,1,0,0,1,0,1.41Z'/%3E%3C/svg%3E\")}.mc-notification--warning{background:#fdf1e8;box-shadow:inset 0 0 0 1px #ea7315}.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c65200'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,18.13a1,1,0,0,1-1-1V11.3a1,1,0,0,1,2,0v5.83A1,1,0,0,1,16,18.13Z'/%3E%3Ccircle cx='16' cy='20.7' r='1'/%3E%3C/svg%3E\")}.mc-notification--danger{background:#fdeaea;box-shadow:inset 0 0 0 1px #ea302d}.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c61112'%3E%3Cpath d='M16,3A13,13,0,1,0,29,16,13,13,0,0,0,16,3Zm0,24A11,11,0,1,1,27,16,11,11,0,0,1,16,27Z'/%3E%3Cpath d='M20.71,11.29a1,1,0,0,0-1.42,0L16,14.59l-3.29-3.3a1,1,0,0,0-1.42,1.42L14.59,16l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L16,17.41l3.29,3.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L17.41,16l3.3-3.29A1,1,0,0,0,20.71,11.29Z'/%3E%3C/svg%3E\")}.mc-notification--s{padding:.75rem .75rem 1.5rem}.mc-notification--s:before{background-size:1.5rem;flex:0 0 1.5rem;height:1.5rem;margin-right:.5rem;width:1.5rem}.mc-notification--s .mc-notification__content{padding-top:0}.mc-notification--s .mc-notification__title+.mc-notification__message{margin-top:.25rem}.mc-notification--s:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23007bb4'%3E%3Cpath d='M12 22a10 10 0 1110-10 10 10 0 01-10 10zm0-18a8 8 0 108 8 8 8 0 00-8-8z'/%3E%3Cpath d='M12 17a1 1 0 01-1-1v-4.39a1 1 0 012 0V16a1 1 0 01-1 1z'/%3E%3Ccircle cx='12' cy='8' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23188803'%3E%3Cpath d='M12 4a8 8 0 11-8 8 8 8 0 018-8m0-2a10 10 0 1010 10A10 10 0 0012 2z'/%3E%3Cpath d='M10.73 15.75a1 1 0 01-.68-.26l-3-2.74a1 1 0 011.36-1.47l2.25 2.08 4.36-4.42a1 1 0 111.42 1.41l-5 5.1a1 1 0 01-.71.3z'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c65200'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M12 7a1 1 0 00-1 1v4.38a1 1 0 002 0V8a1 1 0 00-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c61112'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M16.21 7.88a1 1 0 00-1.42 0l-2.74 2.74-2.84-2.83a1 1 0 10-1.42 1.42L10.63 12l-2.77 2.79a1 1 0 001.41 1.42l2.78-2.77 2.68 2.68a1 1 0 001.41-1.42L13.46 12l2.75-2.7a1 1 0 000-1.42z'/%3E%3C/svg%3E\")}.mc-notification-closable{position:relative}.mc-notification-closable__close{position:relative;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M9.41 8l3.3-3.29a1 1 0 10-1.42-1.42L8 6.59l-3.29-3.3a1 1 0 00-1.42 1.42L6.59 8l-3.3 3.29a1 1 0 000 1.42 1 1 0 001.42 0L8 9.41l3.29 3.3a1 1 0 001.42 0 1 1 0 000-1.42z'/%3E%3C/svg%3E\") no-repeat;background-size:1rem;border:0;cursor:pointer;display:block;height:1rem;padding:0;position:absolute;outline:0;right:1rem;top:1rem;width:1rem}.mc-notification-closable__close:after{border-radius:2px;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;inset:0;transition:box-shadow .2s ease}.mc-notification-closable__close:focus:after{box-shadow:0 0 0 .125rem #fff,0 0 0 .25rem #758992;box-shadow:0 0 0 .125rem #758992}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationFooterComponent, decorators: [{
|
|
8
|
+
type: Component,
|
|
9
|
+
args: [{ template: '<ng-content></ng-content>', selector: '[mozNotificationFooter]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { '[class.mc-notification__footer]': 'true' }, styles: [".mc-notification{font-family:Roboto,sans-serif;font-weight:400;border-radius:4px;display:flex;flex-flow:row wrap;align-items:flex-start;padding:1rem 1.5rem 1.5rem 1rem;background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc;box-sizing:border-box;color:#000}.mc-notification:before{background-size:2rem;flex:0 0 2rem;height:2rem;margin-right:1rem;width:2rem}.mc-notification .mc-notification__content{padding-top:.25rem}.mc-notification .mc-notification__title+.mc-notification__message{margin-top:.5rem}.mc-notification:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification:before{background-color:transparent;background-repeat:no-repeat;content:\"\";display:block}.mc-notification__content{flex:1 1 0}.mc-notification__title,.mc-notification__message{margin-bottom:0;margin-top:0}.mc-notification__title{font-family:Roboto,sans-serif;font-weight:700;font-size:1rem;line-height:1.5}.mc-notification__message{font-size:.875rem;line-height:1.5714285714}.mc-notification__footer{align-items:flex-start;display:flex;flex-direction:column;margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification__footer{flex-direction:row}}.mc-notification__link{font-size:.875rem;line-height:1.2857142857;margin-top:.5rem}.mc-notification .mc-button:not(:first-child){margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification .mc-button:not(:first-child){margin-top:0;margin-left:1rem}}.mc-notification--information{background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc}.mc-notification--information:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification--success{background:#ebf5de;box-shadow:inset 0 0 0 1px #46a610}.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' fill='%23188803' viewBox='0 0 32 32'%3E%3Cpath d='M16,5A11,11,0,1,1,5,16,11,11,0,0,1,16,5m0-2A13,13,0,1,0,29,16,13,13,0,0,0,16,3Z'/%3E%3Cpath d='M14.2,21.45,8.5,16.18a1,1,0,1,1,1.35-1.47l4.28,4,8-8.09a1,1,0,0,1,1.42,0,1,1,0,0,1,0,1.41Z'/%3E%3C/svg%3E\")}.mc-notification--warning{background:#fdf1e8;box-shadow:inset 0 0 0 1px #ea7315}.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c65200'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,18.13a1,1,0,0,1-1-1V11.3a1,1,0,0,1,2,0v5.83A1,1,0,0,1,16,18.13Z'/%3E%3Ccircle cx='16' cy='20.7' r='1'/%3E%3C/svg%3E\")}.mc-notification--danger{background:#fdeaea;box-shadow:inset 0 0 0 1px #ea302d}.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c61112'%3E%3Cpath d='M16,3A13,13,0,1,0,29,16,13,13,0,0,0,16,3Zm0,24A11,11,0,1,1,27,16,11,11,0,0,1,16,27Z'/%3E%3Cpath d='M20.71,11.29a1,1,0,0,0-1.42,0L16,14.59l-3.29-3.3a1,1,0,0,0-1.42,1.42L14.59,16l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L16,17.41l3.29,3.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L17.41,16l3.3-3.29A1,1,0,0,0,20.71,11.29Z'/%3E%3C/svg%3E\")}.mc-notification--s{padding:.75rem .75rem 1.5rem}.mc-notification--s:before{background-size:1.5rem;flex:0 0 1.5rem;height:1.5rem;margin-right:.5rem;width:1.5rem}.mc-notification--s .mc-notification__content{padding-top:0}.mc-notification--s .mc-notification__title+.mc-notification__message{margin-top:.25rem}.mc-notification--s:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23007bb4'%3E%3Cpath d='M12 22a10 10 0 1110-10 10 10 0 01-10 10zm0-18a8 8 0 108 8 8 8 0 00-8-8z'/%3E%3Cpath d='M12 17a1 1 0 01-1-1v-4.39a1 1 0 012 0V16a1 1 0 01-1 1z'/%3E%3Ccircle cx='12' cy='8' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23188803'%3E%3Cpath d='M12 4a8 8 0 11-8 8 8 8 0 018-8m0-2a10 10 0 1010 10A10 10 0 0012 2z'/%3E%3Cpath d='M10.73 15.75a1 1 0 01-.68-.26l-3-2.74a1 1 0 011.36-1.47l2.25 2.08 4.36-4.42a1 1 0 111.42 1.41l-5 5.1a1 1 0 01-.71.3z'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c65200'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M12 7a1 1 0 00-1 1v4.38a1 1 0 002 0V8a1 1 0 00-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c61112'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M16.21 7.88a1 1 0 00-1.42 0l-2.74 2.74-2.84-2.83a1 1 0 10-1.42 1.42L10.63 12l-2.77 2.79a1 1 0 001.41 1.42l2.78-2.77 2.68 2.68a1 1 0 001.41-1.42L13.46 12l2.75-2.7a1 1 0 000-1.42z'/%3E%3C/svg%3E\")}.mc-notification-closable{position:relative}.mc-notification-closable__close{position:relative;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M9.41 8l3.3-3.29a1 1 0 10-1.42-1.42L8 6.59l-3.29-3.3a1 1 0 00-1.42 1.42L6.59 8l-3.3 3.29a1 1 0 000 1.42 1 1 0 001.42 0L8 9.41l3.29 3.3a1 1 0 001.42 0 1 1 0 000-1.42z'/%3E%3C/svg%3E\") no-repeat;background-size:1rem;border:0;cursor:pointer;display:block;height:1rem;padding:0;position:absolute;outline:0;right:1rem;top:1rem;width:1rem}.mc-notification-closable__close:after{border-radius:2px;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;inset:0;transition:box-shadow .2s ease}.mc-notification-closable__close:focus:after{box-shadow:0 0 0 .125rem #fff,0 0 0 .25rem #758992;box-shadow:0 0 0 .125rem #758992}\n"] }]
|
|
10
|
+
}] });
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLWZvb3Rlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL25vdGlmaWNhdGlvbi9ub3RpZmljYXRpb24tZm9vdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBVXRGLE1BQU0sT0FBTywyQkFBMkI7O3dIQUEzQiwyQkFBMkI7NEdBQTNCLDJCQUEyQixrSUFQNUIsMkJBQTJCOzJGQU8xQiwyQkFBMkI7a0JBUnZDLFNBQVM7K0JBQ0UsMkJBQTJCLFlBQzNCLHlCQUF5QixtQkFFbEIsdUJBQXVCLENBQUMsTUFBTSxpQkFDaEMsaUJBQWlCLENBQUMsSUFBSSxRQUMvQixFQUFFLGlDQUFpQyxFQUFFLE1BQU0sRUFBRSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENoYW5nZURldGVjdGlvblN0cmF0ZWd5LCBDb21wb25lbnQsIFZpZXdFbmNhcHN1bGF0aW9uIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLFxuICBzZWxlY3RvcjogJ1ttb3pOb3RpZmljYXRpb25Gb290ZXJdJyxcbiAgc3R5bGVVcmxzOiBbJy4vbm90aWZpY2F0aW9uLmNvbXBvbmVudC5zY3NzJ10sXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxuICBob3N0OiB7ICdbY2xhc3MubWMtbm90aWZpY2F0aW9uX19mb290ZXJdJzogJ3RydWUnIH0sXG59KVxuZXhwb3J0IGNsYXNzIE5vdGlmaWNhdGlvbkZvb3RlckNvbXBvbmVudCB7fVxuIl19
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class NotificationMessageComponent {
|
|
4
|
+
}
|
|
5
|
+
NotificationMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
NotificationMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NotificationMessageComponent, selector: "[mozNotificationMessage]", host: { properties: { "class.mc-notification__message": "true" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".mc-notification{font-family:Roboto,sans-serif;font-weight:400;border-radius:4px;display:flex;flex-flow:row wrap;align-items:flex-start;padding:1rem 1.5rem 1.5rem 1rem;background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc;box-sizing:border-box;color:#000}.mc-notification:before{background-size:2rem;flex:0 0 2rem;height:2rem;margin-right:1rem;width:2rem}.mc-notification .mc-notification__content{padding-top:.25rem}.mc-notification .mc-notification__title+.mc-notification__message{margin-top:.5rem}.mc-notification:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification:before{background-color:transparent;background-repeat:no-repeat;content:\"\";display:block}.mc-notification__content{flex:1 1 0}.mc-notification__title,.mc-notification__message{margin-bottom:0;margin-top:0}.mc-notification__title{font-family:Roboto,sans-serif;font-weight:700;font-size:1rem;line-height:1.5}.mc-notification__message{font-size:.875rem;line-height:1.5714285714}.mc-notification__footer{align-items:flex-start;display:flex;flex-direction:column;margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification__footer{flex-direction:row}}.mc-notification__link{font-size:.875rem;line-height:1.2857142857;margin-top:.5rem}.mc-notification .mc-button:not(:first-child){margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification .mc-button:not(:first-child){margin-top:0;margin-left:1rem}}.mc-notification--information{background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc}.mc-notification--information:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification--success{background:#ebf5de;box-shadow:inset 0 0 0 1px #46a610}.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' fill='%23188803' viewBox='0 0 32 32'%3E%3Cpath d='M16,5A11,11,0,1,1,5,16,11,11,0,0,1,16,5m0-2A13,13,0,1,0,29,16,13,13,0,0,0,16,3Z'/%3E%3Cpath d='M14.2,21.45,8.5,16.18a1,1,0,1,1,1.35-1.47l4.28,4,8-8.09a1,1,0,0,1,1.42,0,1,1,0,0,1,0,1.41Z'/%3E%3C/svg%3E\")}.mc-notification--warning{background:#fdf1e8;box-shadow:inset 0 0 0 1px #ea7315}.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c65200'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,18.13a1,1,0,0,1-1-1V11.3a1,1,0,0,1,2,0v5.83A1,1,0,0,1,16,18.13Z'/%3E%3Ccircle cx='16' cy='20.7' r='1'/%3E%3C/svg%3E\")}.mc-notification--danger{background:#fdeaea;box-shadow:inset 0 0 0 1px #ea302d}.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c61112'%3E%3Cpath d='M16,3A13,13,0,1,0,29,16,13,13,0,0,0,16,3Zm0,24A11,11,0,1,1,27,16,11,11,0,0,1,16,27Z'/%3E%3Cpath d='M20.71,11.29a1,1,0,0,0-1.42,0L16,14.59l-3.29-3.3a1,1,0,0,0-1.42,1.42L14.59,16l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L16,17.41l3.29,3.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L17.41,16l3.3-3.29A1,1,0,0,0,20.71,11.29Z'/%3E%3C/svg%3E\")}.mc-notification--s{padding:.75rem .75rem 1.5rem}.mc-notification--s:before{background-size:1.5rem;flex:0 0 1.5rem;height:1.5rem;margin-right:.5rem;width:1.5rem}.mc-notification--s .mc-notification__content{padding-top:0}.mc-notification--s .mc-notification__title+.mc-notification__message{margin-top:.25rem}.mc-notification--s:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23007bb4'%3E%3Cpath d='M12 22a10 10 0 1110-10 10 10 0 01-10 10zm0-18a8 8 0 108 8 8 8 0 00-8-8z'/%3E%3Cpath d='M12 17a1 1 0 01-1-1v-4.39a1 1 0 012 0V16a1 1 0 01-1 1z'/%3E%3Ccircle cx='12' cy='8' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23188803'%3E%3Cpath d='M12 4a8 8 0 11-8 8 8 8 0 018-8m0-2a10 10 0 1010 10A10 10 0 0012 2z'/%3E%3Cpath d='M10.73 15.75a1 1 0 01-.68-.26l-3-2.74a1 1 0 011.36-1.47l2.25 2.08 4.36-4.42a1 1 0 111.42 1.41l-5 5.1a1 1 0 01-.71.3z'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c65200'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M12 7a1 1 0 00-1 1v4.38a1 1 0 002 0V8a1 1 0 00-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c61112'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M16.21 7.88a1 1 0 00-1.42 0l-2.74 2.74-2.84-2.83a1 1 0 10-1.42 1.42L10.63 12l-2.77 2.79a1 1 0 001.41 1.42l2.78-2.77 2.68 2.68a1 1 0 001.41-1.42L13.46 12l2.75-2.7a1 1 0 000-1.42z'/%3E%3C/svg%3E\")}.mc-notification-closable{position:relative}.mc-notification-closable__close{position:relative;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M9.41 8l3.3-3.29a1 1 0 10-1.42-1.42L8 6.59l-3.29-3.3a1 1 0 00-1.42 1.42L6.59 8l-3.3 3.29a1 1 0 000 1.42 1 1 0 001.42 0L8 9.41l3.29 3.3a1 1 0 001.42 0 1 1 0 000-1.42z'/%3E%3C/svg%3E\") no-repeat;background-size:1rem;border:0;cursor:pointer;display:block;height:1rem;padding:0;position:absolute;outline:0;right:1rem;top:1rem;width:1rem}.mc-notification-closable__close:after{border-radius:2px;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;inset:0;transition:box-shadow .2s ease}.mc-notification-closable__close:focus:after{box-shadow:0 0 0 .125rem #fff,0 0 0 .25rem #758992;box-shadow:0 0 0 .125rem #758992}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationMessageComponent, decorators: [{
|
|
8
|
+
type: Component,
|
|
9
|
+
args: [{ template: '<ng-content></ng-content>', selector: '[mozNotificationMessage]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { '[class.mc-notification__message]': 'true' }, styles: [".mc-notification{font-family:Roboto,sans-serif;font-weight:400;border-radius:4px;display:flex;flex-flow:row wrap;align-items:flex-start;padding:1rem 1.5rem 1.5rem 1rem;background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc;box-sizing:border-box;color:#000}.mc-notification:before{background-size:2rem;flex:0 0 2rem;height:2rem;margin-right:1rem;width:2rem}.mc-notification .mc-notification__content{padding-top:.25rem}.mc-notification .mc-notification__title+.mc-notification__message{margin-top:.5rem}.mc-notification:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification:before{background-color:transparent;background-repeat:no-repeat;content:\"\";display:block}.mc-notification__content{flex:1 1 0}.mc-notification__title,.mc-notification__message{margin-bottom:0;margin-top:0}.mc-notification__title{font-family:Roboto,sans-serif;font-weight:700;font-size:1rem;line-height:1.5}.mc-notification__message{font-size:.875rem;line-height:1.5714285714}.mc-notification__footer{align-items:flex-start;display:flex;flex-direction:column;margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification__footer{flex-direction:row}}.mc-notification__link{font-size:.875rem;line-height:1.2857142857;margin-top:.5rem}.mc-notification .mc-button:not(:first-child){margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification .mc-button:not(:first-child){margin-top:0;margin-left:1rem}}.mc-notification--information{background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc}.mc-notification--information:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification--success{background:#ebf5de;box-shadow:inset 0 0 0 1px #46a610}.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' fill='%23188803' viewBox='0 0 32 32'%3E%3Cpath d='M16,5A11,11,0,1,1,5,16,11,11,0,0,1,16,5m0-2A13,13,0,1,0,29,16,13,13,0,0,0,16,3Z'/%3E%3Cpath d='M14.2,21.45,8.5,16.18a1,1,0,1,1,1.35-1.47l4.28,4,8-8.09a1,1,0,0,1,1.42,0,1,1,0,0,1,0,1.41Z'/%3E%3C/svg%3E\")}.mc-notification--warning{background:#fdf1e8;box-shadow:inset 0 0 0 1px #ea7315}.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c65200'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,18.13a1,1,0,0,1-1-1V11.3a1,1,0,0,1,2,0v5.83A1,1,0,0,1,16,18.13Z'/%3E%3Ccircle cx='16' cy='20.7' r='1'/%3E%3C/svg%3E\")}.mc-notification--danger{background:#fdeaea;box-shadow:inset 0 0 0 1px #ea302d}.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c61112'%3E%3Cpath d='M16,3A13,13,0,1,0,29,16,13,13,0,0,0,16,3Zm0,24A11,11,0,1,1,27,16,11,11,0,0,1,16,27Z'/%3E%3Cpath d='M20.71,11.29a1,1,0,0,0-1.42,0L16,14.59l-3.29-3.3a1,1,0,0,0-1.42,1.42L14.59,16l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L16,17.41l3.29,3.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L17.41,16l3.3-3.29A1,1,0,0,0,20.71,11.29Z'/%3E%3C/svg%3E\")}.mc-notification--s{padding:.75rem .75rem 1.5rem}.mc-notification--s:before{background-size:1.5rem;flex:0 0 1.5rem;height:1.5rem;margin-right:.5rem;width:1.5rem}.mc-notification--s .mc-notification__content{padding-top:0}.mc-notification--s .mc-notification__title+.mc-notification__message{margin-top:.25rem}.mc-notification--s:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23007bb4'%3E%3Cpath d='M12 22a10 10 0 1110-10 10 10 0 01-10 10zm0-18a8 8 0 108 8 8 8 0 00-8-8z'/%3E%3Cpath d='M12 17a1 1 0 01-1-1v-4.39a1 1 0 012 0V16a1 1 0 01-1 1z'/%3E%3Ccircle cx='12' cy='8' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23188803'%3E%3Cpath d='M12 4a8 8 0 11-8 8 8 8 0 018-8m0-2a10 10 0 1010 10A10 10 0 0012 2z'/%3E%3Cpath d='M10.73 15.75a1 1 0 01-.68-.26l-3-2.74a1 1 0 011.36-1.47l2.25 2.08 4.36-4.42a1 1 0 111.42 1.41l-5 5.1a1 1 0 01-.71.3z'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c65200'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M12 7a1 1 0 00-1 1v4.38a1 1 0 002 0V8a1 1 0 00-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c61112'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M16.21 7.88a1 1 0 00-1.42 0l-2.74 2.74-2.84-2.83a1 1 0 10-1.42 1.42L10.63 12l-2.77 2.79a1 1 0 001.41 1.42l2.78-2.77 2.68 2.68a1 1 0 001.41-1.42L13.46 12l2.75-2.7a1 1 0 000-1.42z'/%3E%3C/svg%3E\")}.mc-notification-closable{position:relative}.mc-notification-closable__close{position:relative;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M9.41 8l3.3-3.29a1 1 0 10-1.42-1.42L8 6.59l-3.29-3.3a1 1 0 00-1.42 1.42L6.59 8l-3.3 3.29a1 1 0 000 1.42 1 1 0 001.42 0L8 9.41l3.29 3.3a1 1 0 001.42 0 1 1 0 000-1.42z'/%3E%3C/svg%3E\") no-repeat;background-size:1rem;border:0;cursor:pointer;display:block;height:1rem;padding:0;position:absolute;outline:0;right:1rem;top:1rem;width:1rem}.mc-notification-closable__close:after{border-radius:2px;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;inset:0;transition:box-shadow .2s ease}.mc-notification-closable__close:focus:after{box-shadow:0 0 0 .125rem #fff,0 0 0 .25rem #758992;box-shadow:0 0 0 .125rem #758992}\n"] }]
|
|
10
|
+
}] });
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLW1lc3NhZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6W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bGFzcyBOb3RpZmljYXRpb25NZXNzYWdlQ29tcG9uZW50IHt9XG4iXX0=
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class NotificationTitleComponent {
|
|
4
|
+
}
|
|
5
|
+
NotificationTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
NotificationTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NotificationTitleComponent, selector: "[mozNotificationTitle]", host: { properties: { "class.mc-notification__title": "true" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".mc-notification{font-family:Roboto,sans-serif;font-weight:400;border-radius:4px;display:flex;flex-flow:row wrap;align-items:flex-start;padding:1rem 1.5rem 1.5rem 1rem;background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc;box-sizing:border-box;color:#000}.mc-notification:before{background-size:2rem;flex:0 0 2rem;height:2rem;margin-right:1rem;width:2rem}.mc-notification .mc-notification__content{padding-top:.25rem}.mc-notification .mc-notification__title+.mc-notification__message{margin-top:.5rem}.mc-notification:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification:before{background-color:transparent;background-repeat:no-repeat;content:\"\";display:block}.mc-notification__content{flex:1 1 0}.mc-notification__title,.mc-notification__message{margin-bottom:0;margin-top:0}.mc-notification__title{font-family:Roboto,sans-serif;font-weight:700;font-size:1rem;line-height:1.5}.mc-notification__message{font-size:.875rem;line-height:1.5714285714}.mc-notification__footer{align-items:flex-start;display:flex;flex-direction:column;margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification__footer{flex-direction:row}}.mc-notification__link{font-size:.875rem;line-height:1.2857142857;margin-top:.5rem}.mc-notification .mc-button:not(:first-child){margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification .mc-button:not(:first-child){margin-top:0;margin-left:1rem}}.mc-notification--information{background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc}.mc-notification--information:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification--success{background:#ebf5de;box-shadow:inset 0 0 0 1px #46a610}.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' fill='%23188803' viewBox='0 0 32 32'%3E%3Cpath d='M16,5A11,11,0,1,1,5,16,11,11,0,0,1,16,5m0-2A13,13,0,1,0,29,16,13,13,0,0,0,16,3Z'/%3E%3Cpath d='M14.2,21.45,8.5,16.18a1,1,0,1,1,1.35-1.47l4.28,4,8-8.09a1,1,0,0,1,1.42,0,1,1,0,0,1,0,1.41Z'/%3E%3C/svg%3E\")}.mc-notification--warning{background:#fdf1e8;box-shadow:inset 0 0 0 1px #ea7315}.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c65200'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,18.13a1,1,0,0,1-1-1V11.3a1,1,0,0,1,2,0v5.83A1,1,0,0,1,16,18.13Z'/%3E%3Ccircle cx='16' cy='20.7' r='1'/%3E%3C/svg%3E\")}.mc-notification--danger{background:#fdeaea;box-shadow:inset 0 0 0 1px #ea302d}.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c61112'%3E%3Cpath d='M16,3A13,13,0,1,0,29,16,13,13,0,0,0,16,3Zm0,24A11,11,0,1,1,27,16,11,11,0,0,1,16,27Z'/%3E%3Cpath d='M20.71,11.29a1,1,0,0,0-1.42,0L16,14.59l-3.29-3.3a1,1,0,0,0-1.42,1.42L14.59,16l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L16,17.41l3.29,3.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L17.41,16l3.3-3.29A1,1,0,0,0,20.71,11.29Z'/%3E%3C/svg%3E\")}.mc-notification--s{padding:.75rem .75rem 1.5rem}.mc-notification--s:before{background-size:1.5rem;flex:0 0 1.5rem;height:1.5rem;margin-right:.5rem;width:1.5rem}.mc-notification--s .mc-notification__content{padding-top:0}.mc-notification--s .mc-notification__title+.mc-notification__message{margin-top:.25rem}.mc-notification--s:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23007bb4'%3E%3Cpath d='M12 22a10 10 0 1110-10 10 10 0 01-10 10zm0-18a8 8 0 108 8 8 8 0 00-8-8z'/%3E%3Cpath d='M12 17a1 1 0 01-1-1v-4.39a1 1 0 012 0V16a1 1 0 01-1 1z'/%3E%3Ccircle cx='12' cy='8' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23188803'%3E%3Cpath d='M12 4a8 8 0 11-8 8 8 8 0 018-8m0-2a10 10 0 1010 10A10 10 0 0012 2z'/%3E%3Cpath d='M10.73 15.75a1 1 0 01-.68-.26l-3-2.74a1 1 0 011.36-1.47l2.25 2.08 4.36-4.42a1 1 0 111.42 1.41l-5 5.1a1 1 0 01-.71.3z'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c65200'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M12 7a1 1 0 00-1 1v4.38a1 1 0 002 0V8a1 1 0 00-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c61112'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M16.21 7.88a1 1 0 00-1.42 0l-2.74 2.74-2.84-2.83a1 1 0 10-1.42 1.42L10.63 12l-2.77 2.79a1 1 0 001.41 1.42l2.78-2.77 2.68 2.68a1 1 0 001.41-1.42L13.46 12l2.75-2.7a1 1 0 000-1.42z'/%3E%3C/svg%3E\")}.mc-notification-closable{position:relative}.mc-notification-closable__close{position:relative;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M9.41 8l3.3-3.29a1 1 0 10-1.42-1.42L8 6.59l-3.29-3.3a1 1 0 00-1.42 1.42L6.59 8l-3.3 3.29a1 1 0 000 1.42 1 1 0 001.42 0L8 9.41l3.29 3.3a1 1 0 001.42 0 1 1 0 000-1.42z'/%3E%3C/svg%3E\") no-repeat;background-size:1rem;border:0;cursor:pointer;display:block;height:1rem;padding:0;position:absolute;outline:0;right:1rem;top:1rem;width:1rem}.mc-notification-closable__close:after{border-radius:2px;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;inset:0;transition:box-shadow .2s ease}.mc-notification-closable__close:focus:after{box-shadow:0 0 0 .125rem #fff,0 0 0 .25rem #758992;box-shadow:0 0 0 .125rem #758992}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationTitleComponent, decorators: [{
|
|
8
|
+
type: Component,
|
|
9
|
+
args: [{ template: '<ng-content></ng-content>', selector: '[mozNotificationTitle]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { '[class.mc-notification__title]': 'true' }, styles: [".mc-notification{font-family:Roboto,sans-serif;font-weight:400;border-radius:4px;display:flex;flex-flow:row wrap;align-items:flex-start;padding:1rem 1.5rem 1.5rem 1rem;background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc;box-sizing:border-box;color:#000}.mc-notification:before{background-size:2rem;flex:0 0 2rem;height:2rem;margin-right:1rem;width:2rem}.mc-notification .mc-notification__content{padding-top:.25rem}.mc-notification .mc-notification__title+.mc-notification__message{margin-top:.5rem}.mc-notification:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification:before{background-color:transparent;background-repeat:no-repeat;content:\"\";display:block}.mc-notification__content{flex:1 1 0}.mc-notification__title,.mc-notification__message{margin-bottom:0;margin-top:0}.mc-notification__title{font-family:Roboto,sans-serif;font-weight:700;font-size:1rem;line-height:1.5}.mc-notification__message{font-size:.875rem;line-height:1.5714285714}.mc-notification__footer{align-items:flex-start;display:flex;flex-direction:column;margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification__footer{flex-direction:row}}.mc-notification__link{font-size:.875rem;line-height:1.2857142857;margin-top:.5rem}.mc-notification .mc-button:not(:first-child){margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification .mc-button:not(:first-child){margin-top:0;margin-left:1rem}}.mc-notification--information{background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc}.mc-notification--information:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification--success{background:#ebf5de;box-shadow:inset 0 0 0 1px #46a610}.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' fill='%23188803' viewBox='0 0 32 32'%3E%3Cpath d='M16,5A11,11,0,1,1,5,16,11,11,0,0,1,16,5m0-2A13,13,0,1,0,29,16,13,13,0,0,0,16,3Z'/%3E%3Cpath d='M14.2,21.45,8.5,16.18a1,1,0,1,1,1.35-1.47l4.28,4,8-8.09a1,1,0,0,1,1.42,0,1,1,0,0,1,0,1.41Z'/%3E%3C/svg%3E\")}.mc-notification--warning{background:#fdf1e8;box-shadow:inset 0 0 0 1px #ea7315}.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c65200'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,18.13a1,1,0,0,1-1-1V11.3a1,1,0,0,1,2,0v5.83A1,1,0,0,1,16,18.13Z'/%3E%3Ccircle cx='16' cy='20.7' r='1'/%3E%3C/svg%3E\")}.mc-notification--danger{background:#fdeaea;box-shadow:inset 0 0 0 1px #ea302d}.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c61112'%3E%3Cpath d='M16,3A13,13,0,1,0,29,16,13,13,0,0,0,16,3Zm0,24A11,11,0,1,1,27,16,11,11,0,0,1,16,27Z'/%3E%3Cpath d='M20.71,11.29a1,1,0,0,0-1.42,0L16,14.59l-3.29-3.3a1,1,0,0,0-1.42,1.42L14.59,16l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L16,17.41l3.29,3.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L17.41,16l3.3-3.29A1,1,0,0,0,20.71,11.29Z'/%3E%3C/svg%3E\")}.mc-notification--s{padding:.75rem .75rem 1.5rem}.mc-notification--s:before{background-size:1.5rem;flex:0 0 1.5rem;height:1.5rem;margin-right:.5rem;width:1.5rem}.mc-notification--s .mc-notification__content{padding-top:0}.mc-notification--s .mc-notification__title+.mc-notification__message{margin-top:.25rem}.mc-notification--s:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23007bb4'%3E%3Cpath d='M12 22a10 10 0 1110-10 10 10 0 01-10 10zm0-18a8 8 0 108 8 8 8 0 00-8-8z'/%3E%3Cpath d='M12 17a1 1 0 01-1-1v-4.39a1 1 0 012 0V16a1 1 0 01-1 1z'/%3E%3Ccircle cx='12' cy='8' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23188803'%3E%3Cpath d='M12 4a8 8 0 11-8 8 8 8 0 018-8m0-2a10 10 0 1010 10A10 10 0 0012 2z'/%3E%3Cpath d='M10.73 15.75a1 1 0 01-.68-.26l-3-2.74a1 1 0 011.36-1.47l2.25 2.08 4.36-4.42a1 1 0 111.42 1.41l-5 5.1a1 1 0 01-.71.3z'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c65200'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M12 7a1 1 0 00-1 1v4.38a1 1 0 002 0V8a1 1 0 00-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c61112'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M16.21 7.88a1 1 0 00-1.42 0l-2.74 2.74-2.84-2.83a1 1 0 10-1.42 1.42L10.63 12l-2.77 2.79a1 1 0 001.41 1.42l2.78-2.77 2.68 2.68a1 1 0 001.41-1.42L13.46 12l2.75-2.7a1 1 0 000-1.42z'/%3E%3C/svg%3E\")}.mc-notification-closable{position:relative}.mc-notification-closable__close{position:relative;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M9.41 8l3.3-3.29a1 1 0 10-1.42-1.42L8 6.59l-3.29-3.3a1 1 0 00-1.42 1.42L6.59 8l-3.3 3.29a1 1 0 000 1.42 1 1 0 001.42 0L8 9.41l3.29 3.3a1 1 0 001.42 0 1 1 0 000-1.42z'/%3E%3C/svg%3E\") no-repeat;background-size:1rem;border:0;cursor:pointer;display:block;height:1rem;padding:0;position:absolute;outline:0;right:1rem;top:1rem;width:1rem}.mc-notification-closable__close:after{border-radius:2px;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;inset:0;transition:box-shadow .2s ease}.mc-notification-closable__close:focus:after{box-shadow:0 0 0 .125rem #fff,0 0 0 .25rem #758992;box-shadow:0 0 0 .125rem #758992}\n"] }]
|
|
10
|
+
}] });
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLXRpdGxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvbm90aWZpY2F0aW9uL25vdGlmaWNhdGlvbi10aXRsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDOztBQVV0RixNQUFNLE9BQU8sMEJBQTBCOzt1SEFBMUIsMEJBQTBCOzJHQUExQiwwQkFBMEIsZ0lBUDNCLDJCQUEyQjsyRkFPMUIsMEJBQTBCO2tCQVJ0QyxTQUFTOytCQUNFLDJCQUEyQixZQUMzQix3QkFBd0IsbUJBRWpCLHVCQUF1QixDQUFDLE1BQU0saUJBQ2hDLGlCQUFpQixDQUFDLElBQUksUUFDL0IsRUFBRSxnQ0FBZ0MsRUFBRSxNQUFNLEVBQUUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSwgQ29tcG9uZW50LCBWaWV3RW5jYXBzdWxhdGlvbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JyxcbiAgc2VsZWN0b3I6ICdbbW96Tm90aWZpY2F0aW9uVGl0bGVdJyxcbiAgc3R5bGVVcmxzOiBbJy4vbm90aWZpY2F0aW9uLmNvbXBvbmVudC5zY3NzJ10sXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxuICBob3N0OiB7ICdbY2xhc3MubWMtbm90aWZpY2F0aW9uX190aXRsZV0nOiAndHJ1ZScgfSxcbn0pXG5leHBvcnQgY2xhc3MgTm90aWZpY2F0aW9uVGl0bGVDb21wb25lbnQge31cbiJdfQ==
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulation, } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class NotificationComponent {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.type = 'information';
|
|
6
|
+
this.size = 'm';
|
|
7
|
+
}
|
|
8
|
+
get hostCssClasses() {
|
|
9
|
+
const staticClasses = 'mc-notification';
|
|
10
|
+
const sizeCssClass = `mc-notification--${this.size}`;
|
|
11
|
+
const typeCssClass = `mc-notification--${this.type}`;
|
|
12
|
+
const dynamicClasses = `${sizeCssClass} ${typeCssClass}`;
|
|
13
|
+
return `${staticClasses} ${dynamicClasses}`;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NotificationComponent, selector: "moz-notification", inputs: { type: "type", size: "size" }, host: { properties: { "class.mc-notification": "true", "class": "this.hostCssClasses" } }, ngImport: i0, template: "<div class=\"mc-notification__content\">\n <ng-content select=\"[mozNotificationTitle]\"></ng-content>\n <ng-content select=\"[mozNotificationMessage]\"></ng-content>\n <ng-content select=\"[mozNotificationFooter]\"></ng-content>\n</div>\n", styles: [".mc-notification{font-family:Roboto,sans-serif;font-weight:400;border-radius:4px;display:flex;flex-flow:row wrap;align-items:flex-start;padding:1rem 1.5rem 1.5rem 1rem;background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc;box-sizing:border-box;color:#000}.mc-notification:before{background-size:2rem;flex:0 0 2rem;height:2rem;margin-right:1rem;width:2rem}.mc-notification .mc-notification__content{padding-top:.25rem}.mc-notification .mc-notification__title+.mc-notification__message{margin-top:.5rem}.mc-notification:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification:before{background-color:transparent;background-repeat:no-repeat;content:\"\";display:block}.mc-notification__content{flex:1 1 0}.mc-notification__title,.mc-notification__message{margin-bottom:0;margin-top:0}.mc-notification__title{font-family:Roboto,sans-serif;font-weight:700;font-size:1rem;line-height:1.5}.mc-notification__message{font-size:.875rem;line-height:1.5714285714}.mc-notification__footer{align-items:flex-start;display:flex;flex-direction:column;margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification__footer{flex-direction:row}}.mc-notification__link{font-size:.875rem;line-height:1.2857142857;margin-top:.5rem}.mc-notification .mc-button:not(:first-child){margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification .mc-button:not(:first-child){margin-top:0;margin-left:1rem}}.mc-notification--information{background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc}.mc-notification--information:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification--success{background:#ebf5de;box-shadow:inset 0 0 0 1px #46a610}.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' fill='%23188803' viewBox='0 0 32 32'%3E%3Cpath d='M16,5A11,11,0,1,1,5,16,11,11,0,0,1,16,5m0-2A13,13,0,1,0,29,16,13,13,0,0,0,16,3Z'/%3E%3Cpath d='M14.2,21.45,8.5,16.18a1,1,0,1,1,1.35-1.47l4.28,4,8-8.09a1,1,0,0,1,1.42,0,1,1,0,0,1,0,1.41Z'/%3E%3C/svg%3E\")}.mc-notification--warning{background:#fdf1e8;box-shadow:inset 0 0 0 1px #ea7315}.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c65200'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,18.13a1,1,0,0,1-1-1V11.3a1,1,0,0,1,2,0v5.83A1,1,0,0,1,16,18.13Z'/%3E%3Ccircle cx='16' cy='20.7' r='1'/%3E%3C/svg%3E\")}.mc-notification--danger{background:#fdeaea;box-shadow:inset 0 0 0 1px #ea302d}.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c61112'%3E%3Cpath d='M16,3A13,13,0,1,0,29,16,13,13,0,0,0,16,3Zm0,24A11,11,0,1,1,27,16,11,11,0,0,1,16,27Z'/%3E%3Cpath d='M20.71,11.29a1,1,0,0,0-1.42,0L16,14.59l-3.29-3.3a1,1,0,0,0-1.42,1.42L14.59,16l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L16,17.41l3.29,3.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L17.41,16l3.3-3.29A1,1,0,0,0,20.71,11.29Z'/%3E%3C/svg%3E\")}.mc-notification--s{padding:.75rem .75rem 1.5rem}.mc-notification--s:before{background-size:1.5rem;flex:0 0 1.5rem;height:1.5rem;margin-right:.5rem;width:1.5rem}.mc-notification--s .mc-notification__content{padding-top:0}.mc-notification--s .mc-notification__title+.mc-notification__message{margin-top:.25rem}.mc-notification--s:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23007bb4'%3E%3Cpath d='M12 22a10 10 0 1110-10 10 10 0 01-10 10zm0-18a8 8 0 108 8 8 8 0 00-8-8z'/%3E%3Cpath d='M12 17a1 1 0 01-1-1v-4.39a1 1 0 012 0V16a1 1 0 01-1 1z'/%3E%3Ccircle cx='12' cy='8' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23188803'%3E%3Cpath d='M12 4a8 8 0 11-8 8 8 8 0 018-8m0-2a10 10 0 1010 10A10 10 0 0012 2z'/%3E%3Cpath d='M10.73 15.75a1 1 0 01-.68-.26l-3-2.74a1 1 0 011.36-1.47l2.25 2.08 4.36-4.42a1 1 0 111.42 1.41l-5 5.1a1 1 0 01-.71.3z'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c65200'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M12 7a1 1 0 00-1 1v4.38a1 1 0 002 0V8a1 1 0 00-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c61112'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M16.21 7.88a1 1 0 00-1.42 0l-2.74 2.74-2.84-2.83a1 1 0 10-1.42 1.42L10.63 12l-2.77 2.79a1 1 0 001.41 1.42l2.78-2.77 2.68 2.68a1 1 0 001.41-1.42L13.46 12l2.75-2.7a1 1 0 000-1.42z'/%3E%3C/svg%3E\")}.mc-notification-closable{position:relative}.mc-notification-closable__close{position:relative;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M9.41 8l3.3-3.29a1 1 0 10-1.42-1.42L8 6.59l-3.29-3.3a1 1 0 00-1.42 1.42L6.59 8l-3.3 3.29a1 1 0 000 1.42 1 1 0 001.42 0L8 9.41l3.29 3.3a1 1 0 001.42 0 1 1 0 000-1.42z'/%3E%3C/svg%3E\") no-repeat;background-size:1rem;border:0;cursor:pointer;display:block;height:1rem;padding:0;position:absolute;outline:0;right:1rem;top:1rem;width:1rem}.mc-notification-closable__close:after{border-radius:2px;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;inset:0;transition:box-shadow .2s ease}.mc-notification-closable__close:focus:after{box-shadow:0 0 0 .125rem #fff,0 0 0 .25rem #758992;box-shadow:0 0 0 .125rem #758992}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ selector: 'moz-notification', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { '[class.mc-notification]': 'true' }, template: "<div class=\"mc-notification__content\">\n <ng-content select=\"[mozNotificationTitle]\"></ng-content>\n <ng-content select=\"[mozNotificationMessage]\"></ng-content>\n <ng-content select=\"[mozNotificationFooter]\"></ng-content>\n</div>\n", styles: [".mc-notification{font-family:Roboto,sans-serif;font-weight:400;border-radius:4px;display:flex;flex-flow:row wrap;align-items:flex-start;padding:1rem 1.5rem 1.5rem 1rem;background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc;box-sizing:border-box;color:#000}.mc-notification:before{background-size:2rem;flex:0 0 2rem;height:2rem;margin-right:1rem;width:2rem}.mc-notification .mc-notification__content{padding-top:.25rem}.mc-notification .mc-notification__title+.mc-notification__message{margin-top:.5rem}.mc-notification:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification:before{background-color:transparent;background-repeat:no-repeat;content:\"\";display:block}.mc-notification__content{flex:1 1 0}.mc-notification__title,.mc-notification__message{margin-bottom:0;margin-top:0}.mc-notification__title{font-family:Roboto,sans-serif;font-weight:700;font-size:1rem;line-height:1.5}.mc-notification__message{font-size:.875rem;line-height:1.5714285714}.mc-notification__footer{align-items:flex-start;display:flex;flex-direction:column;margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification__footer{flex-direction:row}}.mc-notification__link{font-size:.875rem;line-height:1.2857142857;margin-top:.5rem}.mc-notification .mc-button:not(:first-child){margin-top:1rem}@media screen and (min-width: 1024px){.mc-notification .mc-button:not(:first-child){margin-top:0;margin-left:1rem}}.mc-notification--information{background:#daeff7;box-shadow:inset 0 0 0 1px #0b96cc}.mc-notification--information:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23007bb4'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,21.7a1,1,0,0,1-1-1V14.87a1,1,0,1,1,2,0V20.7A1,1,0,0,1,16,21.7Z'/%3E%3Ccircle cx='16' cy='11.3' r='1'/%3E%3C/svg%3E\")}.mc-notification--success{background:#ebf5de;box-shadow:inset 0 0 0 1px #46a610}.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' fill='%23188803' viewBox='0 0 32 32'%3E%3Cpath d='M16,5A11,11,0,1,1,5,16,11,11,0,0,1,16,5m0-2A13,13,0,1,0,29,16,13,13,0,0,0,16,3Z'/%3E%3Cpath d='M14.2,21.45,8.5,16.18a1,1,0,1,1,1.35-1.47l4.28,4,8-8.09a1,1,0,0,1,1.42,0,1,1,0,0,1,0,1.41Z'/%3E%3C/svg%3E\")}.mc-notification--warning{background:#fdf1e8;box-shadow:inset 0 0 0 1px #ea7315}.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c65200'%3E%3Cpath d='M16,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29ZM16,5A11,11,0,1,0,27,16,11,11,0,0,0,16,5Z'/%3E%3Cpath d='M16,18.13a1,1,0,0,1-1-1V11.3a1,1,0,0,1,2,0v5.83A1,1,0,0,1,16,18.13Z'/%3E%3Ccircle cx='16' cy='20.7' r='1'/%3E%3C/svg%3E\")}.mc-notification--danger{background:#fdeaea;box-shadow:inset 0 0 0 1px #ea302d}.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='2rem' width='2rem' viewBox='0 0 32 32' fill='%23c61112'%3E%3Cpath d='M16,3A13,13,0,1,0,29,16,13,13,0,0,0,16,3Zm0,24A11,11,0,1,1,27,16,11,11,0,0,1,16,27Z'/%3E%3Cpath d='M20.71,11.29a1,1,0,0,0-1.42,0L16,14.59l-3.29-3.3a1,1,0,0,0-1.42,1.42L14.59,16l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L16,17.41l3.29,3.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L17.41,16l3.3-3.29A1,1,0,0,0,20.71,11.29Z'/%3E%3C/svg%3E\")}.mc-notification--s{padding:.75rem .75rem 1.5rem}.mc-notification--s:before{background-size:1.5rem;flex:0 0 1.5rem;height:1.5rem;margin-right:.5rem;width:1.5rem}.mc-notification--s .mc-notification__content{padding-top:0}.mc-notification--s .mc-notification__title+.mc-notification__message{margin-top:.25rem}.mc-notification--s:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23007bb4'%3E%3Cpath d='M12 22a10 10 0 1110-10 10 10 0 01-10 10zm0-18a8 8 0 108 8 8 8 0 00-8-8z'/%3E%3Cpath d='M12 17a1 1 0 01-1-1v-4.39a1 1 0 012 0V16a1 1 0 01-1 1z'/%3E%3Ccircle cx='12' cy='8' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--success:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23188803'%3E%3Cpath d='M12 4a8 8 0 11-8 8 8 8 0 018-8m0-2a10 10 0 1010 10A10 10 0 0012 2z'/%3E%3Cpath d='M10.73 15.75a1 1 0 01-.68-.26l-3-2.74a1 1 0 011.36-1.47l2.25 2.08 4.36-4.42a1 1 0 111.42 1.41l-5 5.1a1 1 0 01-.71.3z'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--warning:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c65200'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M12 7a1 1 0 00-1 1v4.38a1 1 0 002 0V8a1 1 0 00-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-notification--s.mc-notification--danger:before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' viewBox='0 0 24 24' fill='%23c61112'%3E%3Cpath d='M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z'/%3E%3Cpath d='M16.21 7.88a1 1 0 00-1.42 0l-2.74 2.74-2.84-2.83a1 1 0 10-1.42 1.42L10.63 12l-2.77 2.79a1 1 0 001.41 1.42l2.78-2.77 2.68 2.68a1 1 0 001.41-1.42L13.46 12l2.75-2.7a1 1 0 000-1.42z'/%3E%3C/svg%3E\")}.mc-notification-closable{position:relative}.mc-notification-closable__close{position:relative;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M9.41 8l3.3-3.29a1 1 0 10-1.42-1.42L8 6.59l-3.29-3.3a1 1 0 00-1.42 1.42L6.59 8l-3.3 3.29a1 1 0 000 1.42 1 1 0 001.42 0L8 9.41l3.29 3.3a1 1 0 001.42 0 1 1 0 000-1.42z'/%3E%3C/svg%3E\") no-repeat;background-size:1rem;border:0;cursor:pointer;display:block;height:1rem;padding:0;position:absolute;outline:0;right:1rem;top:1rem;width:1rem}.mc-notification-closable__close:after{border-radius:2px;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;inset:0;transition:box-shadow .2s ease}.mc-notification-closable__close:focus:after{box-shadow:0 0 0 .125rem #fff,0 0 0 .25rem #758992;box-shadow:0 0 0 .125rem #758992}\n"] }]
|
|
21
|
+
}], propDecorators: { type: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}], size: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}],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UeXBlID0gJ2luZm9ybWF0aW9uJztcbiAgQElucHV0KCkgc2l6ZTogTm90aWZpY2F0aW9uU2l6ZSA9ICdtJztcblxuICBASG9zdEJpbmRpbmcoJ2NsYXNzJylcbiAgcHVibGljIGdldCBob3N0Q3NzQ2xhc3NlcygpIHtcbiAgICBjb25zdCBzdGF0aWNDbGFzc2VzID0gJ21jLW5vdGlmaWNhdGlvbic7XG4gICAgY29uc3Qgc2l6ZUNzc0NsYXNzID0gYG1jLW5vdGlmaWNhdGlvbi0tJHt0aGlzLnNpemV9YDtcbiAgICBjb25zdCB0eXBlQ3NzQ2xhc3MgPSBgbWMtbm90aWZpY2F0aW9uLS0ke3RoaXMudHlwZX1gO1xuICAgIGNvbnN0IGR5bmFtaWNDbGFzc2VzID0gYCR7c2l6ZUNzc0NsYXNzfSAke3R5cGVDc3NDbGFzc31gO1xuICAgIHJldHVybiBgJHtzdGF0aWNDbGFzc2VzfSAke2R5bmFtaWNDbGFzc2VzfWA7XG4gIH1cbn1cbiIsIjxkaXYgY2xhc3M9XCJtYy1ub3RpZmljYXRpb25fX2NvbnRlbnRcIj5cbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW21vek5vdGlmaWNhdGlvblRpdGxlXVwiPjwvbmctY29udGVudD5cbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW21vek5vdGlmaWNhdGlvbk1lc3NhZ2VdXCI+PC9uZy1jb250ZW50PlxuICA8bmctY29udGVudCBzZWxlY3Q9XCJbbW96Tm90aWZpY2F0aW9uRm9vdGVyXVwiPjwvbmctY29udGVudD5cbjwvZGl2PlxuIl19
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export const NOTIFICATION_CONFIG = new InjectionToken('NOTIFICATION_CONFIG');
|
|
3
|
+
export class NotificationConfigFactory {
|
|
4
|
+
static create(config = {}) {
|
|
5
|
+
return { duration: 3000, ...config };
|
|
6
|
+
}
|
|
7
|
+
}
|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JQ0FUSU9OX0NPTkZJRyA9IG5ldyBJbmplY3Rpb25Ub2tlbjxOb3RpZmljYXRpb25Db25maWc+KCdOT1RJRklDQVRJT05fQ09ORklHJyk7XG5cbmV4cG9ydCBjbGFzcyBOb3RpZmljYXRpb25Db25maWdGYWN0b3J5IHtcbiAgc3RhdGljIGNyZWF0ZShjb25maWc6IFBhcnRpYWw8Tm90aWZpY2F0aW9uQ29uZmlnPiA9IHt9KTogTm90aWZpY2F0aW9uQ29uZmlnIHtcbiAgICByZXR1cm4geyBkdXJhdGlvbjogMzAwMCwgLi4uY29uZmlnIH07XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { NotificationConfigFactory, NOTIFICATION_CONFIG } from './notification';
|
|
4
|
+
import { NotificationContainerComponent } from './notification-container.component';
|
|
5
|
+
import { NotificationFooterComponent } from './notification-footer';
|
|
6
|
+
import { NotificationMessageComponent } from './notification-message';
|
|
7
|
+
import { NotificationTitleComponent } from './notification-title';
|
|
8
|
+
import { NotificationComponent } from './notification.component';
|
|
9
|
+
import { NotificationService } from './notification.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export class NotificationModule {
|
|
12
|
+
static forRoot(config = {}) {
|
|
13
|
+
return {
|
|
14
|
+
ngModule: NotificationModule,
|
|
15
|
+
providers: [
|
|
16
|
+
{
|
|
17
|
+
provide: NOTIFICATION_CONFIG,
|
|
18
|
+
useValue: NotificationConfigFactory.create(config),
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
25
|
+
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NotificationModule, declarations: [NotificationComponent,
|
|
26
|
+
NotificationTitleComponent,
|
|
27
|
+
NotificationMessageComponent,
|
|
28
|
+
NotificationFooterComponent,
|
|
29
|
+
NotificationContainerComponent], imports: [CommonModule], exports: [NotificationComponent,
|
|
30
|
+
NotificationTitleComponent,
|
|
31
|
+
NotificationMessageComponent,
|
|
32
|
+
NotificationFooterComponent] });
|
|
33
|
+
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationModule, providers: [
|
|
34
|
+
NotificationService,
|
|
35
|
+
{
|
|
36
|
+
provide: NOTIFICATION_CONFIG,
|
|
37
|
+
useValue: NotificationConfigFactory.create(),
|
|
38
|
+
},
|
|
39
|
+
], imports: [CommonModule] });
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationModule, decorators: [{
|
|
41
|
+
type: NgModule,
|
|
42
|
+
args: [{
|
|
43
|
+
imports: [CommonModule],
|
|
44
|
+
declarations: [
|
|
45
|
+
NotificationComponent,
|
|
46
|
+
NotificationTitleComponent,
|
|
47
|
+
NotificationMessageComponent,
|
|
48
|
+
NotificationFooterComponent,
|
|
49
|
+
NotificationContainerComponent,
|
|
50
|
+
],
|
|
51
|
+
providers: [
|
|
52
|
+
NotificationService,
|
|
53
|
+
{
|
|
54
|
+
provide: NOTIFICATION_CONFIG,
|
|
55
|
+
useValue: NotificationConfigFactory.create(),
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
exports: [
|
|
59
|
+
NotificationComponent,
|
|
60
|
+
NotificationTitleComponent,
|
|
61
|
+
NotificationMessageComponent,
|
|
62
|
+
NotificationFooterComponent,
|
|
63
|
+
],
|
|
64
|
+
}]
|
|
65
|
+
}] });
|
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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DQVRJT05fQ09ORklHLFxuICAgICAgdXNlVmFsdWU6IE5vdGlmaWNhdGlvbkNvbmZpZ0ZhY3RvcnkuY3JlYXRlKCksXG4gICAgfSxcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIE5vdGlmaWNhdGlvbkNvbXBvbmVudCxcbiAgICBOb3RpZmljYXRpb25UaXRsZUNvbXBvbmVudCxcbiAgICBOb3RpZmljYXRpb25NZXNzYWdlQ29tcG9uZW50LFxuICAgIE5vdGlmaWNhdGlvbkZvb3RlckNvbXBvbmVudCxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgTm90aWZpY2F0aW9uTW9kdWxlIHtcbiAgc3RhdGljIGZvclJvb3QoXG4gICAgY29uZmlnOiBQYXJ0aWFsPE5vdGlmaWNhdGlvbkNvbmZpZz4gPSB7fVxuICApOiBNb2R1bGVXaXRoUHJvdmlkZXJzPE5vdGlmaWNhdGlvbk1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogTm90aWZpY2F0aW9uTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBOT1RJRklDQVRJT05fQ09ORklHLFxuICAgICAgICAgIHVzZVZhbHVlOiBOb3RpZmljYXRpb25Db25maWdGYWN0b3J5LmNyZWF0ZShjb25maWcpLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICB9O1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import { Inject, Injectable, } from '@angular/core';
|
|
3
|
+
import { NotificationContainerComponent } from './notification-container.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class NotificationService {
|
|
6
|
+
constructor(applicationRef, componentFactoryResolver, injector, document) {
|
|
7
|
+
this.applicationRef = applicationRef;
|
|
8
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
9
|
+
this.injector = injector;
|
|
10
|
+
this.document = document;
|
|
11
|
+
this.container = this.createContainer();
|
|
12
|
+
this.appendNotificationContainerToBody(this.container);
|
|
13
|
+
}
|
|
14
|
+
add(notification) {
|
|
15
|
+
this.container.instance.add(notification);
|
|
16
|
+
}
|
|
17
|
+
createContainer() {
|
|
18
|
+
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(NotificationContainerComponent);
|
|
19
|
+
const componentRef = componentFactory.create(this.injector);
|
|
20
|
+
return componentRef;
|
|
21
|
+
}
|
|
22
|
+
appendNotificationContainerToBody(componentRef) {
|
|
23
|
+
const componentHostView = componentRef.hostView;
|
|
24
|
+
const componentHtmlElement = componentHostView.rootNodes[0];
|
|
25
|
+
this.applicationRef.attachView(componentHostView);
|
|
26
|
+
this.document.body.appendChild(componentHtmlElement);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
+
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationService, providedIn: 'root' });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationService, decorators: [{
|
|
32
|
+
type: Injectable,
|
|
33
|
+
args: [{
|
|
34
|
+
providedIn: 'root',
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: Document, decorators: [{
|
|
37
|
+
type: Inject,
|
|
38
|
+
args: [DOCUMENT]
|
|
39
|
+
}] }]; } });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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RpZmljYXRpb25Db250YWluZXJDb21wb25lbnRcbiAgICApO1xuICAgIGNvbnN0IGNvbXBvbmVudFJlZiA9IGNvbXBvbmVudEZhY3RvcnkuY3JlYXRlKHRoaXMuaW5qZWN0b3IpO1xuICAgIHJldHVybiBjb21wb25lbnRSZWY7XG4gIH1cblxuICBwcml2YXRlIGFwcGVuZE5vdGlmaWNhdGlvbkNvbnRhaW5lclRvQm9keShcbiAgICBjb21wb25lbnRSZWY6IENvbXBvbmVudFJlZjxOb3RpZmljYXRpb25Db250YWluZXJDb21wb25lbnQ+XG4gICk6IHZvaWQge1xuICAgIGNvbnN0IGNvbXBvbmVudEhvc3RWaWV3ID0gY29tcG9uZW50UmVmLmhvc3RWaWV3IGFzIEVtYmVkZGVkVmlld1JlZjx1bmtub3duPjtcbiAgICBjb25zdCBjb21wb25lbnRIdG1sRWxlbWVudCA9IGNvbXBvbmVudEhvc3RWaWV3LnJvb3ROb2Rlc1swXSBhcyBIVE1MRWxlbWVudDtcbiAgICB0aGlzLmFwcGxpY2F0aW9uUmVmLmF0dGFjaFZpZXcoY29tcG9uZW50SG9zdFZpZXcpO1xuICAgIHRoaXMuZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZChjb21wb25lbnRIdG1sRWxlbWVudCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './index';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL25vdGlmaWNhdGlvbi9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './pagination.component';
|
|
2
|
+
export * from './pagination.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9wYWdpbmF0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcGFnaW5hdGlvbi5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9wYWdpbmF0aW9uLm1vZHVsZSc7XG4iXX0=
|