@craftsjs/alert 4.0.0 → 5.0.0

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.
Files changed (36) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +145 -144
  3. package/_craftsjs-alert.theme.scss +296 -296
  4. package/esm2020/craftsjs-alert.mjs +4 -4
  5. package/esm2020/lib/alert.module.mjs +67 -69
  6. package/esm2020/lib/components/dialog-alert/components/alert-info/alert-info.component.mjs +13 -13
  7. package/esm2020/lib/components/dialog-alert/components/alert-success/alert-success.component.mjs +13 -13
  8. package/esm2020/lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component.mjs +18 -18
  9. package/esm2020/lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component.mjs +18 -18
  10. package/esm2020/lib/components/dialog-alert/components/components.mjs +24 -24
  11. package/esm2020/lib/components/dialog-alert/components/error/error.component.mjs +13 -13
  12. package/esm2020/lib/components/dialog-alert/components/warning/warning.component.mjs +13 -13
  13. package/esm2020/lib/components/dialog-alert/dialog-alert.component.mjs +74 -74
  14. package/esm2020/lib/models/alert-enum.model.mjs +8 -8
  15. package/esm2020/lib/models/alert.model.mjs +2 -2
  16. package/esm2020/lib/services/alert.service.mjs +64 -64
  17. package/esm2020/public-api.mjs +16 -16
  18. package/fesm2015/craftsjs-alert.mjs +260 -261
  19. package/fesm2015/craftsjs-alert.mjs.map +1 -1
  20. package/fesm2020/craftsjs-alert.mjs +258 -259
  21. package/fesm2020/craftsjs-alert.mjs.map +1 -1
  22. package/{craftsjs-alert.d.ts → index.d.ts} +5 -5
  23. package/lib/alert.module.d.ts +20 -20
  24. package/lib/components/dialog-alert/components/alert-info/alert-info.component.d.ts +5 -5
  25. package/lib/components/dialog-alert/components/alert-success/alert-success.component.d.ts +5 -5
  26. package/lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component.d.ts +7 -7
  27. package/lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component.d.ts +7 -7
  28. package/lib/components/dialog-alert/components/components.d.ts +6 -6
  29. package/lib/components/dialog-alert/components/error/error.component.d.ts +5 -5
  30. package/lib/components/dialog-alert/components/warning/warning.component.d.ts +5 -5
  31. package/lib/components/dialog-alert/dialog-alert.component.d.ts +20 -20
  32. package/lib/models/alert-enum.model.d.ts +6 -6
  33. package/lib/models/alert.model.d.ts +12 -12
  34. package/lib/services/alert.service.d.ts +16 -16
  35. package/package.json +9 -9
  36. package/public-api.d.ts +12 -12
@@ -1 +1 @@
1
- {"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';\r\n\r\n@Component({\r\n selector: 'alert-success',\r\n templateUrl: './alert-success.component.html',\r\n styleUrls: ['./alert-success.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n host: {\r\n class: 'alert-icon alert-icon-success'\r\n }\r\n})\r\nexport class AlertSuccessComponent { }\r\n","<span class=\"alert-icon-success-line alert-icon-success-line-long\"></span>\r\n<span class=\"alert-icon-success-line alert-icon-success-line-tip\"></span>\r\n<div class=\"alert-icon-success-ring\"></div>\r\n<div class=\"alert-icon-success-hide-corners\"></div>","export enum AlertEnum {\r\n success = 'success',\r\n error = 'error',\r\n info = 'info',\r\n warning = 'warning'\r\n}\r\n","import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'alert-info',\r\n templateUrl: './alert-info.component.html',\r\n styleUrls: ['./alert-info.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n host: {\r\n class: 'alert-icon alert-icon-info'\r\n }\r\n})\r\nexport class AlertInfoComponent { }\r\n","","import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'alert-warning',\r\n templateUrl: './warning.component.html',\r\n styleUrls: ['./warning.component.scss'],\r\n host: {\r\n class: 'alert-icon alert-icon-warning '\r\n },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class WarningComponent { }\r\n","<span class=\"alert-icon-warning-body\">\r\n <span class=\"alert-icon-warning-dot\"></span>\r\n</span>","import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'alert-error',\r\n templateUrl: './error.component.html',\r\n styleUrls: ['./error.component.scss'],\r\n host: {\r\n class: 'alert-icon alert-icon-error'\r\n },\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ErrorComponent { }\r\n","<div class=\"alert-icon-error-x-mark\">\r\n <span class=\"alert-icon-error-line alert-icon-error-line-left\"></span>\r\n <span class=\"alert-icon-error-line alert-icon-error-line-right\"></span>\r\n</div>","import { AlertSuccessComponent } from './alert-success/alert-success.component';\r\nimport { AlertEnum } from '../../../models/alert-enum.model';\r\nimport { AlertInfoComponent } from './alert-info/alert-info.component';\r\nimport { WarningComponent } from './warning/warning.component';\r\nimport { ErrorComponent } from './error/error.component';\r\n\r\nexport const alertComponents = [\r\n {\r\n type: AlertEnum.success,\r\n component: AlertSuccessComponent\r\n },\r\n {\r\n type: AlertEnum.info,\r\n component: AlertInfoComponent\r\n },\r\n {\r\n type: AlertEnum.warning,\r\n component: WarningComponent\r\n },\r\n {\r\n type: AlertEnum.error,\r\n component: ErrorComponent\r\n }\r\n];\r\n","import { Component, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'alert-ok-button',\r\n templateUrl: './alert-ok-button.component.html',\r\n styleUrls: ['./alert-ok-button.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class AlertOkButtonComponent {\r\n @Output()\r\n click = new EventEmitter();\r\n}\r\n","<button mat-raised-button color=\"primary\" (click)=\"click.emit($event)\">{{'general.ok' | translate}}</button>","import { Component, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'alert-cancel-button',\r\n templateUrl: './alert-cancel-button.component.html',\r\n styleUrls: ['./alert-cancel-button.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class AlertCancelButtonComponent {\r\n @Output()\r\n click = new EventEmitter();\r\n}\r\n","<button mat-raised-button (click)=\"click.emit($event)\">{{'general.cancel' | translate}}</button>","import {\r\n Component,\r\n ChangeDetectionStrategy,\r\n Inject,\r\n ViewEncapsulation,\r\n OnInit,\r\n Injector,\r\n InjectionToken,\r\n Type,\r\n ViewContainerRef,\r\n QueryList,\r\n ViewChildren,\r\n AfterViewInit,\r\n TemplateRef\r\n} from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { AlertModel } from '../../models/alert.model';\r\nimport { alertComponents } from './components/components';\r\nimport { DynamicDirective } from '@craftsjs/core';\r\n\r\nexport const CRAFTSJS_ALERT_DATA = new InjectionToken<any>('CraftsjsAlertData');\r\n\r\n@Component({\r\n selector: 'dialog-alert',\r\n templateUrl: './dialog-alert.component.html',\r\n styleUrls: ['./dialog-alert.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class DialogAlertComponent implements OnInit, AfterViewInit {\r\n\r\n @ViewChildren(DynamicDirective)\r\n appDynamic: QueryList<DynamicDirective>;\r\n\r\n constructor(\r\n public dialogRef: MatDialogRef<DialogAlertComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: AlertModel,\r\n ) {\r\n }\r\n\r\n ngOnInit(): void {\r\n\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.loadComponents();\r\n }\r\n\r\n private loadComponents() {\r\n const itemComponent = alertComponents.find(x => x.type === this.data.type);\r\n const component = itemComponent && itemComponent.component;\r\n this.resolveComponent(component, this.appDynamic.find(x => x.name === 'alert-icon').viewContainerRef);\r\n this.resolveComponent(this.data.customBody, this.appDynamic.find(x => x.name === 'alert-body').viewContainerRef);\r\n this.resolveComponent(this.data.customButtonComponent, this.appDynamic.find(x => x.name === 'alert-buttons').viewContainerRef);\r\n }\r\n\r\n private resolveComponent(component: Type<any> | TemplateRef<any>, viewContainerRef: ViewContainerRef) {\r\n if (!component) { return; }\r\n viewContainerRef.clear();\r\n if (component instanceof TemplateRef) {\r\n viewContainerRef.createEmbeddedView(component, { $implicit: this.data, dialogRef: this.dialogRef });\r\n } else {\r\n const injector = this.createInjector(viewContainerRef.injector);\r\n viewContainerRef.createComponent(component, {\r\n injector\r\n });\r\n }\r\n }\r\n\r\n private createInjector(injector: Injector) {\r\n return Injector.create({\r\n providers: [{\r\n provide: CRAFTSJS_ALERT_DATA,\r\n useValue: this.data\r\n },\r\n {\r\n provide: MatDialogRef,\r\n useValue: this.dialogRef\r\n }],\r\n parent: injector\r\n })\r\n }\r\n\r\n buttonClick(result: string) {\r\n this.dialogRef.close({ data: this.data, result });\r\n }\r\n\r\n}\r\n","<ng-template craftsjsDynamic name=\"alert-icon\"></ng-template>\r\n<div *ngIf=\"data?.title\" class=\"alert-title\">\r\n <span>\r\n {{data.title | translate}}\r\n </span>\r\n</div>\r\n<div *ngIf=\"data?.text\" class=\"alert-text\">\r\n <span>\r\n {{data.text | translate}}\r\n </span>\r\n</div>\r\n<ng-template craftsjsDynamic name=\"alert-body\"></ng-template>\r\n<div class=\"alert-footer\" *ngIf=\"!data?.hiddenButtons\">\r\n <alert-ok-button *ngIf=\"!data?.customButtonComponent\" (click)=\"buttonClick('ok')\">\r\n </alert-ok-button>\r\n <alert-cancel-button *ngIf=\"!data?.customButtonComponent && data?.showCancelButton\"\r\n (click)=\"buttonClick('cancel')\">\r\n </alert-cancel-button>\r\n</div>\r\n<ng-template craftsjsDynamic name=\"alert-buttons\"></ng-template>","import { Injectable } from '@angular/core';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { AlertModel } from '../models/alert.model';\r\nimport { AlertEnum } from '../models/alert-enum.model';\r\nimport { DialogAlertComponent } from '../components/dialog-alert/dialog-alert.component';\r\n\r\n@Injectable()\r\nexport class AlertService {\r\n\r\n constructor(private _dialog: MatDialog) { }\r\n\r\n showSimple(title: string, message: string) {\r\n return this._open({\r\n title,\r\n text: message\r\n } as AlertModel);\r\n }\r\n\r\n showSuccess(title: string, message: string) {\r\n return this._open({\r\n title,\r\n text: message,\r\n type: AlertEnum.success\r\n });\r\n }\r\n\r\n showError(title: string, message: string) {\r\n return this._open({\r\n title,\r\n text: message,\r\n type: AlertEnum.error\r\n });\r\n }\r\n\r\n showInfo(title: string, message: string) {\r\n return this._open({\r\n title,\r\n text: message,\r\n type: AlertEnum.info\r\n });\r\n }\r\n\r\n showWarning(title: string, message: string) {\r\n return this._open({\r\n title,\r\n text: message,\r\n type: AlertEnum.warning\r\n });\r\n }\r\n\r\n showConfirmation(title: string, message: string) {\r\n return this._open({\r\n title,\r\n text: message,\r\n type: AlertEnum.warning,\r\n showCancelButton: true\r\n });\r\n }\r\n\r\n private _open(alertModel: AlertModel) {\r\n return this._dialog.open(DialogAlertComponent, {\r\n width: '500px',\r\n data: alertModel\r\n });\r\n }\r\n}\r\n","import { NgModule, ModuleWithProviders } from '@angular/core';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { CoreModule } from '@craftsjs/core';\r\nimport { DialogAlertComponent } from './components/dialog-alert/dialog-alert.component';\r\nimport { AlertSuccessComponent } from './components/dialog-alert/components/alert-success/alert-success.component';\r\nimport { AlertInfoComponent } from './components/dialog-alert/components/alert-info/alert-info.component';\r\nimport { WarningComponent } from './components/dialog-alert/components/warning/warning.component';\r\nimport { ErrorComponent } from './components/dialog-alert/components/error/error.component';\r\nimport { AlertOkButtonComponent } from './components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component';\r\nimport {\r\n AlertCancelButtonComponent\r\n} from './components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component';\r\nimport { AlertService } from './services/alert.service';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n TranslateModule,\r\n MatButtonModule,\r\n CoreModule,\r\n MatDialogModule\r\n ],\r\n declarations: [\r\n DialogAlertComponent,\r\n AlertSuccessComponent,\r\n AlertInfoComponent,\r\n WarningComponent,\r\n ErrorComponent,\r\n AlertOkButtonComponent,\r\n AlertCancelButtonComponent\r\n ],\r\n exports: [\r\n DialogAlertComponent\r\n ]\r\n})\r\nexport class AlertModule {\r\n static forRoot(): ModuleWithProviders<AlertModule> {\r\n return {\r\n ngModule: AlertModule,\r\n providers: [\r\n AlertService\r\n ]\r\n };\r\n }\r\n}\r\n","/*\r\n * Public API Surface of alert\r\n */\r\n\r\nexport * from './lib/alert.module';\r\nexport * from './lib/components/dialog-alert/dialog-alert.component';\r\nexport * from './lib/components/dialog-alert/components/alert-info/alert-info.component';\r\nexport * from './lib/components/dialog-alert/components/alert-success/alert-success.component';\r\nexport * from './lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component';\r\nexport * from './lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component';\r\nexport * from './lib/components/dialog-alert/components/components';\r\nexport * from './lib/components/dialog-alert/components/error/error.component';\r\nexport * from './lib/components/dialog-alert/components/warning/warning.component';\r\nexport * from './lib/models/alert-enum.model';\r\nexport * from './lib/models/alert.model';\r\nexport * from './lib/services/alert.service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAYa,qBAAqB;;kHAArB,qBAAqB;sGAArB,qBAAqB,gHCZlC,uQAGmD;2FDStC,qBAAqB;kBAVjC,SAAS;+BACE,eAAe,mBAGR,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,QAC/B;wBACJ,KAAK,EAAE,+BAA+B;qBACvC;;;IEVS;AAAZ,WAAY,SAAS;IACjB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,gCAAmB,CAAA;AACvB,CAAC,EALW,SAAS,KAAT,SAAS;;MCYR,kBAAkB;;+GA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qBAAqB;QACrB,kBAAkB;QAClB,gBAAgB;QAChB,cAAc;QACd,sBAAsB;QACtB,0BAA0B,aAb1B,YAAY;QACZ,eAAe;QACf,eAAe;QACf,UAAU;QACV,eAAe,aAYf,oBAAoB;yGAGf,WAAW,YApBX;YACL,YAAY;YACZ,eAAe;YACf,eAAe;YACf,UAAU;YACV,eAAe;SAClB;2FAcQ,WAAW;kBArBvB,QAAQ;mBAAC;oBACN,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,eAAe;wBACf,UAAU;wBACV,eAAe;qBAClB;oBACD,YAAY,EAAE;wBACV,oBAAoB;wBACpB,qBAAqB;wBACrB,kBAAkB;wBAClB,gBAAgB;wBAChB,cAAc;wBACd,sBAAsB;wBACtB,0BAA0B;qBAC7B;oBACD,OAAO,EAAE;wBACL,oBAAoB;qBACvB;iBACJ;;;ACrCD;;;;ACAA;;;;;;"}
1
+ {"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,qBAAqB,CAAA;;kHAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,gHCZlC,iQAGmD,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;2FDStC,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAVjC,SAAS;+BACE,eAAe,EAAA,eAAA,EAGR,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,EAC/B,IAAA,EAAA;AACJ,wBAAA,KAAK,EAAE,+BAA+B;AACvC,qBAAA,EAAA,QAAA,EAAA,iQAAA,EAAA,CAAA;;;IEVS,UAKX;AALD,CAAA,UAAY,SAAS,EAAA;AACjB,IAAA,SAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,SAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,SAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACvB,CAAC,EALW,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AAEG;;ACFH;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@craftsjs/alert" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@craftsjs/alert" />
5
+ export * from './public-api';
@@ -1,20 +1,20 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "./components/dialog-alert/dialog-alert.component";
4
- import * as i2 from "./components/dialog-alert/components/alert-success/alert-success.component";
5
- import * as i3 from "./components/dialog-alert/components/alert-info/alert-info.component";
6
- import * as i4 from "./components/dialog-alert/components/warning/warning.component";
7
- import * as i5 from "./components/dialog-alert/components/error/error.component";
8
- import * as i6 from "./components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component";
9
- import * as i7 from "./components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component";
10
- import * as i8 from "@angular/common";
11
- import * as i9 from "@ngx-translate/core";
12
- import * as i10 from "@angular/material/button";
13
- import * as i11 from "@craftsjs/core";
14
- import * as i12 from "@angular/material/dialog";
15
- export declare class AlertModule {
16
- static forRoot(): ModuleWithProviders<AlertModule>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.DialogAlertComponent, typeof i2.AlertSuccessComponent, typeof i3.AlertInfoComponent, typeof i4.WarningComponent, typeof i5.ErrorComponent, typeof i6.AlertOkButtonComponent, typeof i7.AlertCancelButtonComponent], [typeof i8.CommonModule, typeof i9.TranslateModule, typeof i10.MatButtonModule, typeof i11.CoreModule, typeof i12.MatDialogModule], [typeof i1.DialogAlertComponent]>;
19
- static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
20
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./components/dialog-alert/dialog-alert.component";
4
+ import * as i2 from "./components/dialog-alert/components/alert-success/alert-success.component";
5
+ import * as i3 from "./components/dialog-alert/components/alert-info/alert-info.component";
6
+ import * as i4 from "./components/dialog-alert/components/warning/warning.component";
7
+ import * as i5 from "./components/dialog-alert/components/error/error.component";
8
+ import * as i6 from "./components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component";
9
+ import * as i7 from "./components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component";
10
+ import * as i8 from "@angular/common";
11
+ import * as i9 from "@ngx-translate/core";
12
+ import * as i10 from "@angular/material/button";
13
+ import * as i11 from "@craftsjs/core";
14
+ import * as i12 from "@angular/material/dialog";
15
+ export declare class AlertModule {
16
+ static forRoot(): ModuleWithProviders<AlertModule>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.DialogAlertComponent, typeof i2.AlertSuccessComponent, typeof i3.AlertInfoComponent, typeof i4.WarningComponent, typeof i5.ErrorComponent, typeof i6.AlertOkButtonComponent, typeof i7.AlertCancelButtonComponent], [typeof i8.CommonModule, typeof i9.TranslateModule, typeof i10.MatButtonModule, typeof i11.CoreModule, typeof i12.MatDialogModule], [typeof i1.DialogAlertComponent]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
20
+ }
@@ -1,5 +1,5 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AlertInfoComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertInfoComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<AlertInfoComponent, "alert-info", never, {}, {}, never, never>;
5
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class AlertInfoComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertInfoComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertInfoComponent, "alert-info", never, {}, {}, never, never, false, never>;
5
+ }
@@ -1,5 +1,5 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AlertSuccessComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertSuccessComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<AlertSuccessComponent, "alert-success", never, {}, {}, never, never>;
5
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class AlertSuccessComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertSuccessComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertSuccessComponent, "alert-success", never, {}, {}, never, never, false, never>;
5
+ }
@@ -1,7 +1,7 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class AlertCancelButtonComponent {
4
- click: EventEmitter<any>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertCancelButtonComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<AlertCancelButtonComponent, "alert-cancel-button", never, {}, { "click": "click"; }, never, never>;
7
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AlertCancelButtonComponent {
4
+ click: EventEmitter<any>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertCancelButtonComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertCancelButtonComponent, "alert-cancel-button", never, {}, { "click": "click"; }, never, never, false, never>;
7
+ }
@@ -1,7 +1,7 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class AlertOkButtonComponent {
4
- click: EventEmitter<any>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertOkButtonComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<AlertOkButtonComponent, "alert-ok-button", never, {}, { "click": "click"; }, never, never>;
7
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AlertOkButtonComponent {
4
+ click: EventEmitter<any>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertOkButtonComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertOkButtonComponent, "alert-ok-button", never, {}, { "click": "click"; }, never, never, false, never>;
7
+ }
@@ -1,6 +1,6 @@
1
- import { AlertSuccessComponent } from './alert-success/alert-success.component';
2
- import { AlertEnum } from '../../../models/alert-enum.model';
3
- export declare const alertComponents: {
4
- type: AlertEnum;
5
- component: typeof AlertSuccessComponent;
6
- }[];
1
+ import { AlertSuccessComponent } from './alert-success/alert-success.component';
2
+ import { AlertEnum } from '../../../models/alert-enum.model';
3
+ export declare const alertComponents: {
4
+ type: AlertEnum;
5
+ component: typeof AlertSuccessComponent;
6
+ }[];
@@ -1,5 +1,5 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ErrorComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "alert-error", never, {}, {}, never, never>;
5
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class ErrorComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "alert-error", never, {}, {}, never, never, false, never>;
5
+ }
@@ -1,5 +1,5 @@
1
- import * as i0 from "@angular/core";
2
- export declare class WarningComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<WarningComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<WarningComponent, "alert-warning", never, {}, {}, never, never>;
5
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class WarningComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<WarningComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<WarningComponent, "alert-warning", never, {}, {}, never, never, false, never>;
5
+ }
@@ -1,20 +1,20 @@
1
- import { OnInit, InjectionToken, QueryList, AfterViewInit } from '@angular/core';
2
- import { MatDialogRef } from '@angular/material/dialog';
3
- import { AlertModel } from '../../models/alert.model';
4
- import { DynamicDirective } from '@craftsjs/core';
5
- import * as i0 from "@angular/core";
6
- export declare const CRAFTSJS_ALERT_DATA: InjectionToken<any>;
7
- export declare class DialogAlertComponent implements OnInit, AfterViewInit {
8
- dialogRef: MatDialogRef<DialogAlertComponent>;
9
- data: AlertModel;
10
- appDynamic: QueryList<DynamicDirective>;
11
- constructor(dialogRef: MatDialogRef<DialogAlertComponent>, data: AlertModel);
12
- ngOnInit(): void;
13
- ngAfterViewInit(): void;
14
- private loadComponents;
15
- private resolveComponent;
16
- private createInjector;
17
- buttonClick(result: string): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogAlertComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogAlertComponent, "dialog-alert", never, {}, {}, never, never>;
20
- }
1
+ import { OnInit, InjectionToken, QueryList, AfterViewInit } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { AlertModel } from '../../models/alert.model';
4
+ import { DynamicDirective } from '@craftsjs/core';
5
+ import * as i0 from "@angular/core";
6
+ export declare const CRAFTSJS_ALERT_DATA: InjectionToken<any>;
7
+ export declare class DialogAlertComponent implements OnInit, AfterViewInit {
8
+ dialogRef: MatDialogRef<DialogAlertComponent>;
9
+ data: AlertModel;
10
+ appDynamic: QueryList<DynamicDirective>;
11
+ constructor(dialogRef: MatDialogRef<DialogAlertComponent>, data: AlertModel);
12
+ ngOnInit(): void;
13
+ ngAfterViewInit(): void;
14
+ private loadComponents;
15
+ private resolveComponent;
16
+ private createInjector;
17
+ buttonClick(result: string): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogAlertComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogAlertComponent, "dialog-alert", never, {}, {}, never, never, false, never>;
20
+ }
@@ -1,6 +1,6 @@
1
- export declare enum AlertEnum {
2
- success = "success",
3
- error = "error",
4
- info = "info",
5
- warning = "warning"
6
- }
1
+ export declare enum AlertEnum {
2
+ success = "success",
3
+ error = "error",
4
+ info = "info",
5
+ warning = "warning"
6
+ }
@@ -1,12 +1,12 @@
1
- import { AlertEnum } from './alert-enum.model';
2
- import { Type, TemplateRef } from '@angular/core';
3
- export interface AlertModel {
4
- type: AlertEnum;
5
- title?: string;
6
- text?: string;
7
- customData?: any;
8
- hiddenButtons?: boolean;
9
- customButtonComponent?: Type<any> | TemplateRef<any>;
10
- customBody?: Type<any> | TemplateRef<any>;
11
- showCancelButton?: boolean;
12
- }
1
+ import { AlertEnum } from './alert-enum.model';
2
+ import { Type, TemplateRef } from '@angular/core';
3
+ export interface AlertModel {
4
+ type: AlertEnum;
5
+ title?: string;
6
+ text?: string;
7
+ customData?: any;
8
+ hiddenButtons?: boolean;
9
+ customButtonComponent?: Type<any> | TemplateRef<any>;
10
+ customBody?: Type<any> | TemplateRef<any>;
11
+ showCancelButton?: boolean;
12
+ }
@@ -1,16 +1,16 @@
1
- import { MatDialog } from '@angular/material/dialog';
2
- import { DialogAlertComponent } from '../components/dialog-alert/dialog-alert.component';
3
- import * as i0 from "@angular/core";
4
- export declare class AlertService {
5
- private _dialog;
6
- constructor(_dialog: MatDialog);
7
- showSimple(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
8
- showSuccess(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
9
- showError(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
10
- showInfo(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
11
- showWarning(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
12
- showConfirmation(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
13
- private _open;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;
16
- }
1
+ import { MatDialog } from '@angular/material/dialog';
2
+ import { DialogAlertComponent } from '../components/dialog-alert/dialog-alert.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AlertService {
5
+ private _dialog;
6
+ constructor(_dialog: MatDialog);
7
+ showSimple(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
8
+ showSuccess(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
9
+ showError(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
10
+ showInfo(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
11
+ showWarning(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
12
+ showConfirmation(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
13
+ private _open;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;
16
+ }
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@craftsjs/alert",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "author": "craftsjs",
5
5
  "description": "Material alert library for angular",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/addapptables/angular-miscellaneous",
8
8
  "peerDependencies": {
9
- "@angular/common": ">= 13.0.0 < 14.0.0",
10
- "@angular/core": ">= 13.0.0 < 14.0.0",
11
- "@angular/material": ">= 13.0.0 < 14.0.0",
12
- "@angular/cdk": ">= 13.0.0 < 14.0.0",
13
- "@angular/animations": ">= 13.0.0 < 14.0.0",
9
+ "@angular/common": ">= 15.0.0 < 16.0.0",
10
+ "@angular/core": ">= 15.0.0 < 16.0.0",
11
+ "@angular/material": ">= 15.0.0 < 16.0.0",
12
+ "@angular/cdk": ">= 15.0.0 < 16.0.0",
13
+ "@angular/animations": ">= 15.0.0 < 16.0.0",
14
14
  "@ngx-translate/core": ">= 14.0.0 < 17.0.0",
15
- "@craftsjs/core": ">=4.0.0 < 5.0.0"
15
+ "@craftsjs/core": ">=5.0.0 < 6.0.0"
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
@@ -36,13 +36,13 @@
36
36
  "esm2020": "esm2020/craftsjs-alert.mjs",
37
37
  "fesm2020": "fesm2020/craftsjs-alert.mjs",
38
38
  "fesm2015": "fesm2015/craftsjs-alert.mjs",
39
- "typings": "craftsjs-alert.d.ts",
39
+ "typings": "index.d.ts",
40
40
  "exports": {
41
41
  "./package.json": {
42
42
  "default": "./package.json"
43
43
  },
44
44
  ".": {
45
- "types": "./craftsjs-alert.d.ts",
45
+ "types": "./index.d.ts",
46
46
  "esm2020": "./esm2020/craftsjs-alert.mjs",
47
47
  "es2020": "./fesm2020/craftsjs-alert.mjs",
48
48
  "es2015": "./fesm2015/craftsjs-alert.mjs",
package/public-api.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export * from './lib/alert.module';
2
- export * from './lib/components/dialog-alert/dialog-alert.component';
3
- export * from './lib/components/dialog-alert/components/alert-info/alert-info.component';
4
- export * from './lib/components/dialog-alert/components/alert-success/alert-success.component';
5
- export * from './lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component';
6
- export * from './lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component';
7
- export * from './lib/components/dialog-alert/components/components';
8
- export * from './lib/components/dialog-alert/components/error/error.component';
9
- export * from './lib/components/dialog-alert/components/warning/warning.component';
10
- export * from './lib/models/alert-enum.model';
11
- export * from './lib/models/alert.model';
12
- export * from './lib/services/alert.service';
1
+ export * from './lib/alert.module';
2
+ export * from './lib/components/dialog-alert/dialog-alert.component';
3
+ export * from './lib/components/dialog-alert/components/alert-info/alert-info.component';
4
+ export * from './lib/components/dialog-alert/components/alert-success/alert-success.component';
5
+ export * from './lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component';
6
+ export * from './lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component';
7
+ export * from './lib/components/dialog-alert/components/components';
8
+ export * from './lib/components/dialog-alert/components/error/error.component';
9
+ export * from './lib/components/dialog-alert/components/warning/warning.component';
10
+ export * from './lib/models/alert-enum.model';
11
+ export * from './lib/models/alert.model';
12
+ export * from './lib/services/alert.service';