{"version":3,"file":"craftsjs-alert.mjs","sources":["../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/alert-success/alert-success.component.ts","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/alert-success/alert-success.component.html","../../../../projects/craftsjs/alert/src/lib/models/alert-enum.model.ts","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/alert-info/alert-info.component.ts","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/alert-info/alert-info.component.html","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/warning/warning.component.ts","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/warning/warning.component.html","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/error/error.component.ts","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/error/error.component.html","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/components.ts","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component.ts","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component.html","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component.ts","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component.html","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/dialog-alert.component.ts","../../../../projects/craftsjs/alert/src/lib/components/dialog-alert/dialog-alert.component.html","../../../../projects/craftsjs/alert/src/lib/services/alert.service.ts","../../../../projects/craftsjs/alert/src/lib/alert.module.ts","../../../../projects/craftsjs/alert/src/public-api.ts","../../../../projects/craftsjs/alert/src/craftsjs-alert.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\n\n@Component({\n  selector: 'alert-success',\n  templateUrl: './alert-success.component.html',\n  styleUrls: ['./alert-success.component.scss'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  encapsulation: ViewEncapsulation.None,\n  host: {\n    class: 'alert-icon alert-icon-success'\n  }\n})\nexport class AlertSuccessComponent { }\n","<span class=\"alert-icon-success-line alert-icon-success-line-long\"></span>\n<span class=\"alert-icon-success-line alert-icon-success-line-tip\"></span>\n<div class=\"alert-icon-success-ring\"></div>\n<div class=\"alert-icon-success-hide-corners\"></div>","export enum AlertEnum {\n    success = 'success',\n    error = 'error',\n    info = 'info',\n    warning = 'warning'\n}\n","import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\n\n@Component({\n  selector: 'alert-info',\n  templateUrl: './alert-info.component.html',\n  styleUrls: ['./alert-info.component.scss'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  encapsulation: ViewEncapsulation.None,\n  host: {\n    class: 'alert-icon alert-icon-info'\n  }\n})\nexport class AlertInfoComponent { }\n","","import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\n\n@Component({\n  selector: 'alert-warning',\n  templateUrl: './warning.component.html',\n  styleUrls: ['./warning.component.scss'],\n  host: {\n    class: 'alert-icon alert-icon-warning '\n  },\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  encapsulation: ViewEncapsulation.None\n})\nexport class WarningComponent { }\n","<span class=\"alert-icon-warning-body\">\n  <span class=\"alert-icon-warning-dot\"></span>\n</span>","import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n  selector: 'alert-error',\n  templateUrl: './error.component.html',\n  styleUrls: ['./error.component.scss'],\n  host: {\n    class: 'alert-icon alert-icon-error'\n  },\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ErrorComponent { }\n","<div class=\"alert-icon-error-x-mark\">\n  <span class=\"alert-icon-error-line alert-icon-error-line-left\"></span>\n  <span class=\"alert-icon-error-line alert-icon-error-line-right\"></span>\n</div>","import { AlertSuccessComponent } from './alert-success/alert-success.component';\nimport { AlertEnum } from '../../../models/alert-enum.model';\nimport { AlertInfoComponent } from './alert-info/alert-info.component';\nimport { WarningComponent } from './warning/warning.component';\nimport { ErrorComponent } from './error/error.component';\n\nexport const alertComponents = [\n    {\n        type: AlertEnum.success,\n        component: AlertSuccessComponent\n    },\n    {\n        type: AlertEnum.info,\n        component: AlertInfoComponent\n    },\n    {\n        type: AlertEnum.warning,\n        component: WarningComponent\n    },\n    {\n        type: AlertEnum.error,\n        component: ErrorComponent\n    }\n];\n","import { Component, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';\n\n@Component({\n  selector: 'alert-ok-button',\n  templateUrl: './alert-ok-button.component.html',\n  styleUrls: ['./alert-ok-button.component.scss'],\n  changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AlertOkButtonComponent {\n  @Output()\n  click = new EventEmitter();\n}\n","<button mat-raised-button color=\"primary\" (click)=\"click.emit($event)\">{{'general.ok' | translate}}</button>","import { Component, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';\n\n@Component({\n  selector: 'alert-cancel-button',\n  templateUrl: './alert-cancel-button.component.html',\n  styleUrls: ['./alert-cancel-button.component.scss'],\n  changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AlertCancelButtonComponent {\n  @Output()\n  click = new EventEmitter();\n}\n","<button mat-raised-button (click)=\"click.emit($event)\">{{'general.cancel' | translate}}</button>","import {\n  Component,\n  ChangeDetectionStrategy,\n  Inject,\n  ViewEncapsulation,\n  OnInit,\n  Injector,\n  InjectionToken,\n  Type,\n  ViewContainerRef,\n  QueryList,\n  ViewChildren,\n  AfterViewInit,\n  TemplateRef\n} from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { AlertModel } from '../../models/alert.model';\nimport { alertComponents } from './components/components';\nimport { DynamicDirective } from '@craftsjs/core';\n\nexport const CRAFTSJS_ALERT_DATA = new InjectionToken<any>('CraftsjsAlertData');\n\n@Component({\n  selector: 'dialog-alert',\n  templateUrl: './dialog-alert.component.html',\n  styleUrls: ['./dialog-alert.component.scss'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  encapsulation: ViewEncapsulation.None\n})\nexport class DialogAlertComponent implements OnInit, AfterViewInit {\n\n  @ViewChildren(DynamicDirective)\n  appDynamic: QueryList<DynamicDirective>;\n\n  constructor(\n    public dialogRef: MatDialogRef<DialogAlertComponent>,\n    @Inject(MAT_DIALOG_DATA) public data: AlertModel,\n  ) {\n  }\n\n  ngOnInit(): void {\n\n  }\n\n  ngAfterViewInit(): void {\n    this.loadComponents();\n  }\n\n  private loadComponents() {\n    const itemComponent = alertComponents.find(x => x.type === this.data.type);\n    const component = itemComponent && itemComponent.component;\n    this.resolveComponent(component, this.appDynamic.find(x => x.name === 'alert-icon').viewContainerRef);\n    this.resolveComponent(this.data.customBody, this.appDynamic.find(x => x.name === 'alert-body').viewContainerRef);\n    this.resolveComponent(this.data.customButtonComponent, this.appDynamic.find(x => x.name === 'alert-buttons').viewContainerRef);\n  }\n\n  private resolveComponent(component: Type<any> | TemplateRef<any>, viewContainerRef: ViewContainerRef) {\n    if (!component) { return; }\n    viewContainerRef.clear();\n    if (component instanceof TemplateRef) {\n      viewContainerRef.createEmbeddedView(component, { $implicit: this.data, dialogRef: this.dialogRef });\n    } else {\n      const injector = this.createInjector(viewContainerRef.injector);\n      viewContainerRef.createComponent(component, {\n        injector\n      });\n    }\n  }\n\n  private createInjector(injector: Injector) {\n    return Injector.create({\n      providers: [{\n        provide: CRAFTSJS_ALERT_DATA,\n        useValue: this.data\n      },\n      {\n        provide: MatDialogRef,\n        useValue: this.dialogRef\n      }],\n      parent: injector\n    })\n  }\n\n  buttonClick(result: string) {\n    this.dialogRef.close({ data: this.data, result });\n  }\n\n}\n","<ng-template craftsjsDynamic name=\"alert-icon\"></ng-template>\n<div *ngIf=\"data?.title\" class=\"alert-title\">\n    <span>\n        {{data.title | translate}}\n    </span>\n</div>\n<div *ngIf=\"data?.text\" class=\"alert-text\">\n    <span>\n        {{data.text | translate}}\n    </span>\n</div>\n<ng-template craftsjsDynamic name=\"alert-body\"></ng-template>\n<div class=\"alert-footer\" *ngIf=\"!data?.hiddenButtons\">\n    <alert-ok-button *ngIf=\"!data?.customButtonComponent\" (click)=\"buttonClick('ok')\">\n    </alert-ok-button>\n    <alert-cancel-button *ngIf=\"!data?.customButtonComponent && data?.showCancelButton\"\n        (click)=\"buttonClick('cancel')\">\n    </alert-cancel-button>\n</div>\n<ng-template craftsjsDynamic name=\"alert-buttons\"></ng-template>","import { Injectable } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { AlertModel } from '../models/alert.model';\nimport { AlertEnum } from '../models/alert-enum.model';\nimport { DialogAlertComponent } from '../components/dialog-alert/dialog-alert.component';\n\n@Injectable()\nexport class AlertService {\n\n  constructor(private _dialog: MatDialog) { }\n\n  showSimple(title: string, message: string) {\n    return this._open({\n      title,\n      text: message\n    } as AlertModel);\n  }\n\n  showSuccess(title: string, message: string) {\n    return this._open({\n      title,\n      text: message,\n      type: AlertEnum.success\n    });\n  }\n\n  showError(title: string, message: string) {\n    return this._open({\n      title,\n      text: message,\n      type: AlertEnum.error\n    });\n  }\n\n  showInfo(title: string, message: string) {\n    return this._open({\n      title,\n      text: message,\n      type: AlertEnum.info\n    });\n  }\n\n  showWarning(title: string, message: string) {\n    return this._open({\n      title,\n      text: message,\n      type: AlertEnum.warning\n    });\n  }\n\n  showConfirmation(title: string, message: string) {\n    return this._open({\n      title,\n      text: message,\n      type: AlertEnum.warning,\n      showCancelButton: true\n    });\n  }\n\n  private _open(alertModel: AlertModel) {\n    return this._dialog.open(DialogAlertComponent, {\n      width: '500px',\n      data: alertModel\n    });\n  }\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { CommonModule } from '@angular/common';\nimport { CoreModule } from '@craftsjs/core';\nimport { DialogAlertComponent } from './components/dialog-alert/dialog-alert.component';\nimport { AlertSuccessComponent } from './components/dialog-alert/components/alert-success/alert-success.component';\nimport { AlertInfoComponent } from './components/dialog-alert/components/alert-info/alert-info.component';\nimport { WarningComponent } from './components/dialog-alert/components/warning/warning.component';\nimport { ErrorComponent } from './components/dialog-alert/components/error/error.component';\nimport { AlertOkButtonComponent } from './components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component';\nimport {\n  AlertCancelButtonComponent\n} from './components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component';\nimport { AlertService } from './services/alert.service';\n\n@NgModule({\n    imports: [\n        CommonModule,\n        TranslateModule,\n        MatButtonModule,\n        CoreModule,\n        MatDialogModule\n    ],\n    declarations: [\n        DialogAlertComponent,\n        AlertSuccessComponent,\n        AlertInfoComponent,\n        WarningComponent,\n        ErrorComponent,\n        AlertOkButtonComponent,\n        AlertCancelButtonComponent\n    ],\n    exports: [\n        DialogAlertComponent\n    ]\n})\nexport class AlertModule {\n  static forRoot(): ModuleWithProviders<AlertModule> {\n    return {\n      ngModule: AlertModule,\n      providers: [\n        AlertService\n      ]\n    };\n  }\n}\n","/*\n * Public API Surface of alert\n */\n\nexport * from './lib/alert.module';\nexport * from './lib/components/dialog-alert/dialog-alert.component';\nexport * from './lib/components/dialog-alert/components/alert-info/alert-info.component';\nexport * from './lib/components/dialog-alert/components/alert-success/alert-success.component';\nexport * from './lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component';\nexport * from './lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component';\nexport * from './lib/components/dialog-alert/components/components';\nexport * from './lib/components/dialog-alert/components/error/error.component';\nexport * from './lib/components/dialog-alert/components/warning/warning.component';\nexport * from './lib/models/alert-enum.model';\nexport * from './lib/models/alert.model';\nexport * from './lib/services/alert.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i4.AlertOkButtonComponent","i5.AlertCancelButtonComponent","i6","i1"],"mappings":";;;;;;;;;;;;;MAYa,qBA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