{"version":3,"file":"realsoft-reusable-components-alert.mjs","sources":["../../../src/reusable-components/alert/src/alert.component.ts","../../../src/reusable-components/alert/src/alert.component.html","../../../src/reusable-components/alert/realsoft-reusable-components-alert.ts"],"sourcesContent":["import { Component, ElementRef, inject, input, InputSignal, output, ViewContainerRef, ViewEncapsulation } from \"@angular/core\";\r\n\r\nexport type RealsoftAlertType = 'info' | 'warning' | 'success' | 'danger';\r\n\r\n@Component({\r\n    selector: 'realsoft-alert',\r\n    standalone: true,\r\n    exportAs: 'realsoftAlert',\r\n    templateUrl: './alert.component.html',\r\n    styleUrl: './alert.component.scss',\r\n    encapsulation: ViewEncapsulation.None,\r\n    host: {\r\n        'class': 'realsoft-alert',\r\n        '[class.realsoft-alert--warning]': 'alertType() === \"warning\"',\r\n        '[class.realsoft-alert--info]': 'alertType() === \"info\"',\r\n        '[class.realsoft-alert--success]': 'alertType() === \"success\"',\r\n        '[class.realsoft-alert--danger]': 'alertType() === \"danger\"'\r\n    }\r\n})\r\nexport class RealsoftAlert {\r\n    private _elementRef = inject(ElementRef);\r\n\r\n    readonly alertType = input<RealsoftAlertType>('info');\r\n    readonly dismissable = input<boolean>(false);\r\n    \r\n    dismissed = output();\r\n\r\n    closeAlert() {\r\n        this._elementRef.nativeElement.remove();\r\n        this.dismissed.emit();\r\n    }\r\n}\r\n","<div class=\"realsoft-alert-container\">\r\n    <div class=\"content\">\r\n        <ng-content select=\"[alert-icon]\"></ng-content>\r\n        <ng-content select=\"[alert-content]\"></ng-content>\r\n    </div>\r\n\r\n    @if(dismissable()) {\r\n        <button (click)=\"closeAlert()\">\r\n            <span class=\"material-icons\">close</span>\r\n        </button>\r\n    }\r\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAmBa,aAAa,CAAA;AACd,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAEhC,IAAA,SAAS,GAAG,KAAK,CAAoB,MAAM,CAAC,CAAC;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