{ "version": 3, "sources": ["libs/galaxy/alert/src/alert.component.ts", "libs/galaxy/alert/src/alert.component.html", "libs/galaxy/alert/src/directives/alert-extended.directive.ts", "libs/galaxy/alert/src/alert.module.ts", "libs/galaxy/alert/public_api.ts", "libs/galaxy/alert/index.ts"], "sourcesContent": ["import { Component, EventEmitter, HostBinding, Input, Output, booleanAttribute } from '@angular/core';\n\nexport type AlertTypes = 'tip' | 'info' | 'warning' | 'success' | 'error' | 'important';\n\nexport type AlertSizes = 'large' | 'small';\n\nconst alertTypeIcons: { [key: string]: string } = {\n tip: 'info_outline',\n info: 'info',\n warning: 'warning',\n success: 'check',\n error: 'error',\n important: 'info_outline',\n};\n\n@Component({\n selector: 'glxy-alert',\n templateUrl: './alert.component.html',\n styleUrls: ['./alert.component.scss', './alert-type-colors.scss'],\n})\nexport class AlertComponent {\n @HostBinding('class.glxy-alert') public true = 1;\n\n // Choose the alert appearance and icon (optional)\n @Input() type: AlertTypes = 'info';\n\n // solid color alert appearance for more impact (optional)\n @Input() solidColor = false;\n\n // use a custom mat-icon (optional)\n @Input() icon: string | null = null;\n\n // select the size of the alert\n @Input() size: AlertSizes = 'large';\n\n // show or hide close button (optional)\n @Input() showClose = false;\n // show or hide icon (optional)\n @Input() showIcon = true;\n // custom close button text (optional)\n @Input() closeTitle = 'Dismiss';\n // event emitted when clicking the close button\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() close: EventEmitter = new EventEmitter();\n\n // show or hide action button (optional)\n @Input({ transform: booleanAttribute }) showAction = false;\n // action button title text\n @Input() actionTitle = 'Action Button';\n // event emmited when action button clicked\n @Output() actionClick: EventEmitter = new EventEmitter();\n // router link to navigate to when button clicked\n @Input() actionRouterLink: string | undefined;\n // external url to open in new tab when button clicked\n @Input() actionExternalLink = '';\n // show or hide mobile view\n @Input() stackedView = false;\n\n // Hide or show the border on regular alert appearance (optional)\n @HostBinding('class.has-border')\n @Input()\n border = true;\n\n // Enable or disable the border-radius on the alert (optional)\n @HostBinding('class.has-border-radius')\n @Input()\n borderRadius = true;\n\n // Hide or show the border on regular alert appearance (optional)\n @HostBinding('class.extended-has-border')\n @Input()\n extendedBorder = true;\n\n // add class for alert type and appearance\n @HostBinding('class') get alertType(): string {\n const classIsSolid = this.solidColor ? '-solid' : '';\n return 'alert-' + this.type + classIsSolid + ' alert-size-' + this.size;\n }\n\n onCloseAlert(): void {\n this.close.emit();\n }\n\n onActionClicked(): void {\n this.actionClick.emit();\n }\n\n // if user specifies custom mat-icon, use that.\n // If no custom icon, show icons that matches alert type.\n getIcon(): string {\n if (this.icon) {\n return this.icon;\n } else {\n return alertTypeIcons[this.type];\n }\n }\n}\n", "
\n
\n \n {{ this.getIcon() }}\n \n
\n\n
\n \n
\n\n \n
\n \n \n {{ this.actionTitle }}\n \n \n\n \n \n \n
\n
\n\n \n
\n \n
\n
\n
\n\n
\n \n
\n\n\n
\n \n \n {{ this.actionTitle }}\n \n \n\n \n \n \n
\n
\n\n\n
\n \n
\n
\n", "import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n selector: 'glxy-alert-extended, [glxyAlertExtended]',\n})\nexport class AlertExtendedDirective {\n @HostBinding('class') class = 'glxy-alert-extended';\n}\n", "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { RouterModule } from '@angular/router';\nimport { AlertComponent } from './alert.component';\nexport { AlertComponent, AlertTypes } from './alert.component';\nexport { AlertExtendedDirective } from './directives/alert-extended.directive';\n\nimport { AlertExtendedDirective } from './directives/alert-extended.directive';\n\nexport const MODULE_IMPORTS = [CommonModule, MatIconModule, MatButtonModule, RouterModule];\n\nexport const MODULE_DECLARATIONS = [AlertComponent, AlertExtendedDirective];\n\n@NgModule({\n declarations: MODULE_DECLARATIONS,\n exports: [AlertComponent, AlertExtendedDirective],\n imports: MODULE_IMPORTS,\n})\nexport class GalaxyAlertModule {}\n", "export * from './src/alert.module';\n", "// Export things like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AA,ICpB9B,IAAAY,GAAAC,EAAA,KAAAC,MCAA,IAAAC,GAAAC,EAAA,KACAC", "names": ["\u0275\u0275elementStart", "\u0275\u0275text", "\u0275\u0275elementEnd", "\u0275\u0275advance", "\u0275\u0275textInterpolate1", "ctx_r0", "getIcon", "\u0275\u0275elementContainerStart", "\u0275\u0275listener", "\u0275\u0275restoreView", "_r2", "\u0275\u0275nextContext", "\u0275\u0275resetView", "onActionClicked", "\u0275\u0275property", "actionExternalLink", "\u0275\u0275sanitizeUrl", "actionTitle", "_r3", "actionRouterLink", "\u0275\u0275template", "AlertComponent_ng_container_4_ng_container_2_Template", "AlertComponent_ng_container_4_ng_template_3_Template", "\u0275\u0275templateRefExtractor", "\u0275\u0275classProp", "showClose", "stackedView", "buttonNotLink_r4", "_r5", "onCloseAlert", "showAction", "_r6", "_r7", "AlertComponent_ng_container_8_ng_container_2_Template", "AlertComponent_ng_container_8_ng_template_3_Template", "buttonNotLink_r8", "_r9", "closeTitle", "alertTypeIcons", "AlertComponent", "init_alert_component", "__esmMin", "init_core", "tip", "info", "warning", "success", "error", "important", "constructor", "true", "type", "solidColor", "icon", "size", "showIcon", "close", "EventEmitter", "actionClick", "border", "borderRadius", "extendedBorder", "alertType", "classIsSolid", "emit", "selectors", "hostVars", "hostBindings", "rf", "ctx", "\u0275\u0275classMap", "booleanAttribute", "outputs", "features", "\u0275\u0275InputTransformsFeature", "ngContentSelectors", "_c1", "decls", "vars", "consts", "template", "AlertComponent_div_1_Template", "\u0275\u0275projection", "AlertComponent_ng_container_4_Template", "AlertComponent_ng_container_5_Template", "AlertComponent_ng_container_8_Template", "AlertComponent_ng_container_9_Template", "_AlertComponent", "AlertExtendedDirective", "init_alert_extended_directive", "__esmMin", "constructor", "class", "selectors", "hostVars", "hostBindings", "rf", "ctx", "\u0275\u0275classMap", "_AlertExtendedDirective", "MODULE_IMPORTS", "GalaxyAlertModule", "init_alert_module", "__esmMin", "init_common", "init_button", "init_icon", "init_router", "CommonModule", "MatIconModule", "MatButtonModule", "RouterModule", "_GalaxyAlertModule", "init_public_api", "__esmMin", "init_alert_module", "init_alert", "__esmMin", "init_public_api"] }