@craftsjs/alert 5.1.0 → 6.1.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.
- package/LICENSE +21 -21
- package/README.md +160 -145
- package/_craftsjs-alert.theme.scss +414 -414
- package/esm2022/lib/alert.module.mjs +69 -0
- package/esm2022/lib/alert.providers.mjs +14 -0
- package/esm2022/lib/components/dialog-alert/components/alert-info/alert-info.component.mjs +13 -0
- package/esm2022/lib/components/dialog-alert/components/alert-success/alert-success.component.mjs +13 -0
- package/esm2022/lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component.mjs +20 -0
- package/esm2022/lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component.mjs +20 -0
- package/{esm2020 → esm2022}/lib/components/dialog-alert/components/components.mjs +1 -1
- package/esm2022/lib/components/dialog-alert/components/error/error.component.mjs +13 -0
- package/esm2022/lib/components/dialog-alert/components/warning/warning.component.mjs +13 -0
- package/esm2022/lib/components/dialog-alert/dialog-alert.component.mjs +78 -0
- package/{esm2020 → esm2022}/lib/models/alert-enum.model.mjs +1 -1
- package/esm2022/lib/models/alert.model.mjs +2 -0
- package/{esm2020 → esm2022}/lib/services/alert.service.mjs +5 -5
- package/{esm2020 → esm2022}/public-api.mjs +2 -1
- package/fesm2022/craftsjs-alert.mjs +313 -0
- package/fesm2022/craftsjs-alert.mjs.map +1 -0
- package/lib/alert.module.d.ts +12 -13
- package/lib/alert.providers.d.ts +6 -0
- package/lib/components/dialog-alert/components/alert-info/alert-info.component.d.ts +1 -1
- package/lib/components/dialog-alert/components/alert-success/alert-success.component.d.ts +1 -1
- package/lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component.d.ts +1 -1
- package/lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component.d.ts +1 -1
- package/lib/components/dialog-alert/components/error/error.component.d.ts +1 -1
- package/lib/components/dialog-alert/components/warning/warning.component.d.ts +1 -1
- package/lib/components/dialog-alert/dialog-alert.component.d.ts +1 -1
- package/package.json +12 -17
- package/public-api.d.ts +1 -0
- package/esm2020/lib/alert.module.mjs +0 -67
- package/esm2020/lib/components/dialog-alert/components/alert-info/alert-info.component.mjs +0 -13
- package/esm2020/lib/components/dialog-alert/components/alert-success/alert-success.component.mjs +0 -13
- package/esm2020/lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component.mjs +0 -18
- package/esm2020/lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component.mjs +0 -18
- package/esm2020/lib/components/dialog-alert/components/error/error.component.mjs +0 -13
- package/esm2020/lib/components/dialog-alert/components/warning/warning.component.mjs +0 -13
- package/esm2020/lib/components/dialog-alert/dialog-alert.component.mjs +0 -74
- package/esm2020/lib/models/alert.model.mjs +0 -2
- package/fesm2015/craftsjs-alert.mjs +0 -299
- package/fesm2015/craftsjs-alert.mjs.map +0 -1
- package/fesm2020/craftsjs-alert.mjs +0 -297
- package/fesm2020/craftsjs-alert.mjs.map +0 -1
- /package/{esm2020 → esm2022}/craftsjs-alert.mjs +0 -0
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
3
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
|
4
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
-
import { CommonModule } from '@angular/common';
|
|
6
|
-
import { CoreModule } from '@craftsjs/core';
|
|
7
|
-
import { DialogAlertComponent } from './components/dialog-alert/dialog-alert.component';
|
|
8
|
-
import { AlertSuccessComponent } from './components/dialog-alert/components/alert-success/alert-success.component';
|
|
9
|
-
import { AlertInfoComponent } from './components/dialog-alert/components/alert-info/alert-info.component';
|
|
10
|
-
import { WarningComponent } from './components/dialog-alert/components/warning/warning.component';
|
|
11
|
-
import { ErrorComponent } from './components/dialog-alert/components/error/error.component';
|
|
12
|
-
import { AlertOkButtonComponent } from './components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component';
|
|
13
|
-
import { AlertCancelButtonComponent } from './components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component';
|
|
14
|
-
import { AlertService } from './services/alert.service';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
export class AlertModule {
|
|
17
|
-
static forRoot() {
|
|
18
|
-
return {
|
|
19
|
-
ngModule: AlertModule,
|
|
20
|
-
providers: [
|
|
21
|
-
AlertService
|
|
22
|
-
]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
AlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
27
|
-
AlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: AlertModule, declarations: [DialogAlertComponent,
|
|
28
|
-
AlertSuccessComponent,
|
|
29
|
-
AlertInfoComponent,
|
|
30
|
-
WarningComponent,
|
|
31
|
-
ErrorComponent,
|
|
32
|
-
AlertOkButtonComponent,
|
|
33
|
-
AlertCancelButtonComponent], imports: [CommonModule,
|
|
34
|
-
TranslateModule,
|
|
35
|
-
MatButtonModule,
|
|
36
|
-
CoreModule,
|
|
37
|
-
MatDialogModule], exports: [DialogAlertComponent] });
|
|
38
|
-
AlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertModule, imports: [CommonModule,
|
|
39
|
-
TranslateModule,
|
|
40
|
-
MatButtonModule,
|
|
41
|
-
CoreModule,
|
|
42
|
-
MatDialogModule] });
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertModule, decorators: [{
|
|
44
|
-
type: NgModule,
|
|
45
|
-
args: [{
|
|
46
|
-
imports: [
|
|
47
|
-
CommonModule,
|
|
48
|
-
TranslateModule,
|
|
49
|
-
MatButtonModule,
|
|
50
|
-
CoreModule,
|
|
51
|
-
MatDialogModule
|
|
52
|
-
],
|
|
53
|
-
declarations: [
|
|
54
|
-
DialogAlertComponent,
|
|
55
|
-
AlertSuccessComponent,
|
|
56
|
-
AlertInfoComponent,
|
|
57
|
-
WarningComponent,
|
|
58
|
-
ErrorComponent,
|
|
59
|
-
AlertOkButtonComponent,
|
|
60
|
-
AlertCancelButtonComponent
|
|
61
|
-
],
|
|
62
|
-
exports: [
|
|
63
|
-
DialogAlertComponent
|
|
64
|
-
]
|
|
65
|
-
}]
|
|
66
|
-
}] });
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY3JhZnRzanMvYWxlcnQvc3JjL2xpYi9hbGVydC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBdUIsTUFBTSxlQUFlLENBQUM7QUFDOUQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM1QyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxrREFBa0QsQ0FBQztBQUN4RixPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSw0RUFBNEUsQ0FBQztBQUNuSCxPQUFPLEVBQUUsa0JBQ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9uZW50LFxuICAgICAgICBFcnJvckNvbXBvbmVudCxcbiAgICAgICAgQWxlcnRPa0J1dHRvbkNvbXBvbmVudCxcbiAgICAgICAgQWxlcnRDYW5jZWxCdXR0b25Db21wb25lbnRcbiAgICBdLFxuICAgIGV4cG9ydHM6IFtcbiAgICAgICAgRGlhbG9nQWxlcnRDb21wb25lbnRcbiAgICBdXG59KVxuZXhwb3J0IGNsYXNzIEFsZXJ0TW9kdWxlIHtcbiAgc3RhdGljIGZvclJvb3QoKTogTW9kdWxlV2l0aFByb3ZpZGVyczxBbGVydE1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogQWxlcnRNb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAgQWxlcnRTZXJ2aWNlXG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class AlertInfoComponent {
|
|
4
|
-
}
|
|
5
|
-
AlertInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
-
AlertInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AlertInfoComponent, selector: "alert-info", host: { classAttribute: "alert-icon alert-icon-info" }, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertInfoComponent, decorators: [{
|
|
8
|
-
type: Component,
|
|
9
|
-
args: [{ selector: 'alert-info', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
10
|
-
class: 'alert-icon alert-icon-info'
|
|
11
|
-
}, template: "" }]
|
|
12
|
-
}] });
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtaW5mby5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcmFmdHNqcy9hbGVydC9zcmMvbGliL2NvbXBvbmVudHMvZGlhbG9nLWFsZXJ0L2NvbXBvbmVudHMvYWxlcnQtaW5mby9hbGVydC1pbmZvLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL2FsZXJ0L3NyYy9saWIvY29tcG9uZW50cy9kaWFsb2ctYWxlcnQvY29tcG9uZW50cy9hbGVydC1pbmZvL2FsZXJ0LWluZm8uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFZdEYsTUFBTSxPQUFPLGtCQUFrQjs7K0dBQWxCLGtCQUFrQjttR0FBbEIsa0JBQWtCLDBHQ1ovQixFQUFBOzJGRFlhLGtCQUFrQjtrQkFWOUIsU0FBUzsrQkFDRSxZQUFZLG1CQUdMLHVCQUF1QixDQUFDLE1BQU0saUJBQ2hDLGlCQUFpQixDQUFDLElBQUksUUFDL0I7d0JBQ0osS0FBSyxFQUFFLDRCQUE0QjtxQkFDcEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIENoYW5nZURldGVjdGlvblN0cmF0ZWd5LCBWaWV3RW5jYXBzdWxhdGlvbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdhbGVydC1pbmZvJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2FsZXJ0LWluZm8uY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9hbGVydC1pbmZvLmNvbXBvbmVudC5zY3NzJ10sXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxuICBob3N0OiB7XG4gICAgY2xhc3M6ICdhbGVydC1pY29uIGFsZXJ0LWljb24taW5mbydcbiAgfVxufSlcbmV4cG9ydCBjbGFzcyBBbGVydEluZm9Db21wb25lbnQgeyB9XG4iLCIiXX0=
|
package/esm2020/lib/components/dialog-alert/components/alert-success/alert-success.component.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class AlertSuccessComponent {
|
|
4
|
-
}
|
|
5
|
-
AlertSuccessComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertSuccessComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
-
AlertSuccessComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AlertSuccessComponent, selector: "alert-success", host: { classAttribute: "alert-icon alert-icon-success" }, ngImport: i0, template: "<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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertSuccessComponent, decorators: [{
|
|
8
|
-
type: Component,
|
|
9
|
-
args: [{ selector: 'alert-success', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
10
|
-
class: 'alert-icon alert-icon-success'
|
|
11
|
-
}, template: "<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>" }]
|
|
12
|
-
}] });
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtc3VjY2Vzcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcmFmdHNqcy9hbGVydC9zcmMvbGliL2NvbXBvbmVudHMvZGlhbG9nLWFsZXJ0L2NvbXBvbmVudHMvYWxlcnQtc3VjY2Vzcy9hbGVydC1zdWNjZXNzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL2FsZXJ0L3NyYy9saWIvY29tcG9uZW50cy9kaWFsb2ctYWxlcnQvY29tcG9uZW50cy9hbGVydC1zdWNjZXNzL2FsZXJ0LXN1Y2Nlc3MuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFZdEYsTUFBTSxPQUFPLHFCQUFxQjs7a0hBQXJCLHFCQUFxQjtzR0FBckIscUJBQXFCLGdIQ1psQyxpUUFHbUQ7MkZEU3RDLH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VjY2Vzcy1oaWRlLWNvcm5lcnNcIj48L2Rpdj4iXX0=
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/material/button";
|
|
4
|
-
import * as i2 from "@ngx-translate/core";
|
|
5
|
-
export class AlertCancelButtonComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.click = new EventEmitter();
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
AlertCancelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertCancelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
-
AlertCancelButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AlertCancelButtonComponent, selector: "alert-cancel-button", outputs: { click: "click" }, ngImport: i0, template: "<button mat-raised-button (click)=\"click.emit($event)\">{{'general.cancel' | translate}}</button>", styles: [""], dependencies: [{ kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertCancelButtonComponent, decorators: [{
|
|
13
|
-
type: Component,
|
|
14
|
-
args: [{ selector: 'alert-cancel-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button mat-raised-button (click)=\"click.emit($event)\">{{'general.cancel' | translate}}</button>" }]
|
|
15
|
-
}], propDecorators: { click: [{
|
|
16
|
-
type: Output
|
|
17
|
-
}] } });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJza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jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnYWxlcnQtY2FuY2VsLWJ1dHRvbicsXG4gIHRlbXBsYXRlVXJsOiAnLi9hbGVydC1jYW5jZWwtYnV0dG9uLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vYWxlcnQtY2FuY2VsLWJ1dHRvbi5jb21wb25lbnQuc2NzcyddLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaFxufSlcbmV4cG9ydCBjbGFzcyBBbGVydENhbmNlbEJ1dHRvbkNvbXBvbmVudCB7XG4gIEBPdXRwdXQoKVxuICBjbGljayA9IG5ldyBFdmVudEVtaXR0ZXIoKTtcbn1cbiIsIjxidXR0b24gbWF0LXJhaXNlZC1idXR0b24gKGNsaWNrKT1cImNsaWNrLmVtaXQoJGV2ZW50KVwiPnt7J2dlbmVyYWwuY2FuY2VsJyB8IHRyYW5zbGF0ZX19PC9idXR0b24+Il19
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/material/button";
|
|
4
|
-
import * as i2 from "@ngx-translate/core";
|
|
5
|
-
export class AlertOkButtonComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.click = new EventEmitter();
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
AlertOkButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertOkButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
-
AlertOkButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AlertOkButtonComponent, selector: "alert-ok-button", outputs: { click: "click" }, ngImport: i0, template: "<button mat-raised-button color=\"primary\" (click)=\"click.emit($event)\">{{'general.ok' | translate}}</button>", styles: [""], dependencies: [{ kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertOkButtonComponent, decorators: [{
|
|
13
|
-
type: Component,
|
|
14
|
-
args: [{ selector: 'alert-ok-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button mat-raised-button color=\"primary\" (click)=\"click.emit($event)\">{{'general.ok' | translate}}</button>" }]
|
|
15
|
-
}], propDecorators: { click: [{
|
|
16
|
-
type: Output
|
|
17
|
-
}] } });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtb2stYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL2FsZXJ0L3NyYy9saWIvY29tcG9uZW50cy9kaWFsb2ctYWxlcnQvY29tcG9uZW50cy9idXR0b25zL2FsZXJ0LW9rLWJ1dHRvbi9hbGVydC1vay1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY3JhZnRzanMvYWxlcnQvc3JjL2xpYi9jb21wb25lbnRzL2RpYWxvZy1hbGVydC9jb21wb25lbnRzL2J1dHRvbnMvYWxlcnQtb2stYnV0dG9uL2FsZXJ0LW9rLWJ1dHRvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLE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|
|
1
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class ErrorComponent {
|
|
4
|
-
}
|
|
5
|
-
ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
-
ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ErrorComponent, selector: "alert-error", host: { classAttribute: "alert-icon alert-icon-error" }, ngImport: i0, template: "<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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ErrorComponent, decorators: [{
|
|
8
|
-
type: Component,
|
|
9
|
-
args: [{ selector: 'alert-error', host: {
|
|
10
|
-
class: 'alert-icon alert-icon-error'
|
|
11
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<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>" }]
|
|
12
|
-
}] });
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY3JhZnRzanMvYWxlcnQvc3JjL2xpYi9jb21wb25lbnRzL2RpYWxvZy1hbGVydC9jb21wb25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FxufSlcbmV4cG9ydCBjbGFzcyBFcnJvckNvbXBvbmVudCB7IH1cbiIsIjxkaXYgY2xhc3M9XCJhbGVydC1pY29uLWVycm9yLXgtbWFya1wiPlxuICA8c3BhbiBjbGFzcz1cImFsZXJ0LWljb24tZXJyb3ItbGluZSBhbGVydC1pY29uLWVycm9yLWxpbmUtbGVmdFwiPjwvc3Bhbj5cbiAgPHNwYW4gY2xhc3M9XCJhbGVydC1pY29uLWVycm9yLWxpbmUgYWxlcnQtaWNvbi1lcnJvci1saW5lLXJpZ2h0XCI+PC9zcGFuPlxuPC9kaXY+Il19
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class WarningComponent {
|
|
4
|
-
}
|
|
5
|
-
WarningComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WarningComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
-
WarningComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: WarningComponent, selector: "alert-warning", host: { classAttribute: "alert-icon alert-icon-warning " }, ngImport: i0, template: "<span class=\"alert-icon-warning-body\">\n <span class=\"alert-icon-warning-dot\"></span>\n</span>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WarningComponent, decorators: [{
|
|
8
|
-
type: Component,
|
|
9
|
-
args: [{ selector: 'alert-warning', host: {
|
|
10
|
-
class: 'alert-icon alert-icon-warning '
|
|
11
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<span class=\"alert-icon-warning-body\">\n <span class=\"alert-icon-warning-dot\"></span>\n</span>" }]
|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0ZVVybDogJy4vd2FybmluZy5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWycuL3dhcm5pbmcuY29tcG9uZW50LnNjc3MnXSxcbiAgaG9zdDoge1xuICAgIGNsYXNzOiAnYWxlcnQtaWNvbiBhbGVydC1pY29uLXdhcm5pbmcgJ1xuICB9LFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbiAgZW5jYXBzdWxhdGlvbjogVmlld0VuY2Fwc3VsYXRpb24uTm9uZVxufSlcbmV4cG9ydCBjbGFzcyBXYXJuaW5nQ29tcG9uZW50IHsgfVxuIiwiPHNwYW4gY2xhc3M9XCJhbGVydC1pY29uLXdhcm5pbmctYm9keVwiPlxuICA8c3BhbiBjbGFzcz1cImFsZXJ0LWljb24td2FybmluZy1kb3RcIj48L3NwYW4+XG48L3NwYW4+Il19
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject, ViewEncapsulation, Injector, InjectionToken, ViewChildren, TemplateRef } from '@angular/core';
|
|
2
|
-
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
3
|
-
import { alertComponents } from './components/components';
|
|
4
|
-
import { DynamicDirective } from '@craftsjs/core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/material/dialog";
|
|
7
|
-
import * as i2 from "@angular/common";
|
|
8
|
-
import * as i3 from "@craftsjs/core";
|
|
9
|
-
import * as i4 from "./components/buttons/alert-ok-button/alert-ok-button.component";
|
|
10
|
-
import * as i5 from "./components/buttons/alert-cancel-button/alert-cancel-button.component";
|
|
11
|
-
import * as i6 from "@ngx-translate/core";
|
|
12
|
-
export const CRAFTSJS_ALERT_DATA = new InjectionToken('CraftsjsAlertData');
|
|
13
|
-
export class DialogAlertComponent {
|
|
14
|
-
constructor(dialogRef, data) {
|
|
15
|
-
this.dialogRef = dialogRef;
|
|
16
|
-
this.data = data;
|
|
17
|
-
}
|
|
18
|
-
ngOnInit() {
|
|
19
|
-
}
|
|
20
|
-
ngAfterViewInit() {
|
|
21
|
-
this.loadComponents();
|
|
22
|
-
}
|
|
23
|
-
loadComponents() {
|
|
24
|
-
const itemComponent = alertComponents.find(x => x.type === this.data.type);
|
|
25
|
-
const component = itemComponent && itemComponent.component;
|
|
26
|
-
this.resolveComponent(component, this.appDynamic.find(x => x.name === 'alert-icon').viewContainerRef);
|
|
27
|
-
this.resolveComponent(this.data.customBody, this.appDynamic.find(x => x.name === 'alert-body').viewContainerRef);
|
|
28
|
-
this.resolveComponent(this.data.customButtonComponent, this.appDynamic.find(x => x.name === 'alert-buttons').viewContainerRef);
|
|
29
|
-
}
|
|
30
|
-
resolveComponent(component, viewContainerRef) {
|
|
31
|
-
if (!component) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
viewContainerRef.clear();
|
|
35
|
-
if (component instanceof TemplateRef) {
|
|
36
|
-
viewContainerRef.createEmbeddedView(component, { $implicit: this.data, dialogRef: this.dialogRef });
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
const injector = this.createInjector(viewContainerRef.injector);
|
|
40
|
-
viewContainerRef.createComponent(component, {
|
|
41
|
-
injector
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
createInjector(injector) {
|
|
46
|
-
return Injector.create({
|
|
47
|
-
providers: [{
|
|
48
|
-
provide: CRAFTSJS_ALERT_DATA,
|
|
49
|
-
useValue: this.data
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
provide: MatDialogRef,
|
|
53
|
-
useValue: this.dialogRef
|
|
54
|
-
}],
|
|
55
|
-
parent: injector
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
buttonClick(result) {
|
|
59
|
-
this.dialogRef.close({ data: this.data, result });
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
DialogAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DialogAlertComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
-
DialogAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: DialogAlertComponent, selector: "dialog-alert", viewQueries: [{ propertyName: "appDynamic", predicate: DynamicDirective, descendants: true }], ngImport: i0, template: "<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>", styles: [".alert-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.alert-icon-custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.alert-icon img{max-width:100%;max-height:100%}.alert-title{color:#000000a6;font-weight:600;text-transform:none;position:relative;display:block;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.alert-title:first-child{margin-top:26px}.alert-title:not(:first-child){padding-bottom:0}.alert-title:not(:last-child){margin-bottom:13px}.alert-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:center;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:#000000a3;overflow-wrap:break-word;box-sizing:border-box;width:100%}.alert-text:first-child{margin-top:45px}.alert-text:last-child{margin-bottom:45px}.alert-footer{text-align:right;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.alert-footer-button-container{margin:5px;display:inline-block;position:relative}.alert-footer>*{display:inline-block;margin-right:.5em}.alert-footer>:last-child{margin-right:inherit}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DynamicDirective, selector: "[craftsjsDynamic]", inputs: ["name"] }, { kind: "component", type: i4.AlertOkButtonComponent, selector: "alert-ok-button", outputs: ["click"] }, { kind: "component", type: i5.AlertCancelButtonComponent, selector: "alert-cancel-button", outputs: ["click"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DialogAlertComponent, decorators: [{
|
|
65
|
-
type: Component,
|
|
66
|
-
args: [{ selector: 'dialog-alert', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<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>", styles: [".alert-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.alert-icon-custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.alert-icon img{max-width:100%;max-height:100%}.alert-title{color:#000000a6;font-weight:600;text-transform:none;position:relative;display:block;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.alert-title:first-child{margin-top:26px}.alert-title:not(:first-child){padding-bottom:0}.alert-title:not(:last-child){margin-bottom:13px}.alert-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:center;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:#000000a3;overflow-wrap:break-word;box-sizing:border-box;width:100%}.alert-text:first-child{margin-top:45px}.alert-text:last-child{margin-bottom:45px}.alert-footer{text-align:right;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.alert-footer-button-container{margin:5px;display:inline-block;position:relative}.alert-footer>*{display:inline-block;margin-right:.5em}.alert-footer>:last-child{margin-right:inherit}\n"] }]
|
|
67
|
-
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
68
|
-
type: Inject,
|
|
69
|
-
args: [MAT_DIALOG_DATA]
|
|
70
|
-
}] }]; }, propDecorators: { appDynamic: [{
|
|
71
|
-
type: ViewChildren,
|
|
72
|
-
args: [DynamicDirective]
|
|
73
|
-
}] } });
|
|
74
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLWFsZXJ0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL2FsZXJ0L3NyYy9saWIvY29tcG9uZW50cy9kaWFsb2ctYWxlcnQvZGlhbG9nLWFsZXJ0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL2F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xpY2soJ2NhbmNlbCcpXCI+XG4gICAgPC9hbGVydC1jYW5jZWwtYnV0dG9uPlxuPC9kaXY+XG48bmctdGVtcGxhdGUgY3JhZnRzanNEeW5hbWljIG5hbWU9XCJhbGVydC1idXR0b25zXCI+PC9uZy10ZW1wbGF0ZT4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcmFmdHNqcy9hbGVydC9zcmMvbGliL21vZGVscy9hbGVydC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQWxlcnRFbnVtIH0gZnJvbSAnLi9hbGVydC1lbnVtLm1vZGVsJztcbmltcG9ydCB7IFR5cGUsIFRlbXBsYXRlUmVmIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQWxlcnRNb2RlbCB7XG4gICAgdHlwZTogQWxlcnRFbnVtO1xuICAgIHRpdGxlPzogc3RyaW5nO1xuICAgIHRleHQ/OiBzdHJpbmc7XG4gICAgY3VzdG9tRGF0YT86IGFueTtcbiAgICBoaWRkZW5CdXR0b25zPzogYm9vbGVhbjtcbiAgICBjdXN0b21CdXR0b25Db21wb25lbnQ/OiBUeXBlPGFueT4gfCBUZW1wbGF0ZVJlZjxhbnk+O1xuICAgIGN1c3RvbUJvZHk/OiBUeXBlPGFueT4gfCBUZW1wbGF0ZVJlZjxhbnk+O1xuICAgIHNob3dDYW5jZWxCdXR0b24/OiBib29sZWFuO1xufVxuIl19
|
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, ViewEncapsulation, EventEmitter, Output, InjectionToken, TemplateRef, Injector, Inject, ViewChildren, Injectable, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/material/button';
|
|
4
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
-
import * as i1$1 from '@angular/material/dialog';
|
|
6
|
-
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
7
|
-
import * as i2 from '@ngx-translate/core';
|
|
8
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
9
|
-
import * as i2$1 from '@angular/common';
|
|
10
|
-
import { CommonModule } from '@angular/common';
|
|
11
|
-
import * as i3 from '@craftsjs/core';
|
|
12
|
-
import { DynamicDirective, CoreModule } from '@craftsjs/core';
|
|
13
|
-
|
|
14
|
-
class AlertSuccessComponent {
|
|
15
|
-
}
|
|
16
|
-
AlertSuccessComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertSuccessComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
-
AlertSuccessComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AlertSuccessComponent, selector: "alert-success", host: { classAttribute: "alert-icon alert-icon-success" }, ngImport: i0, template: "<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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertSuccessComponent, decorators: [{
|
|
19
|
-
type: Component,
|
|
20
|
-
args: [{ selector: 'alert-success', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
21
|
-
class: 'alert-icon alert-icon-success'
|
|
22
|
-
}, template: "<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>" }]
|
|
23
|
-
}] });
|
|
24
|
-
|
|
25
|
-
var AlertEnum;
|
|
26
|
-
(function (AlertEnum) {
|
|
27
|
-
AlertEnum["success"] = "success";
|
|
28
|
-
AlertEnum["error"] = "error";
|
|
29
|
-
AlertEnum["info"] = "info";
|
|
30
|
-
AlertEnum["warning"] = "warning";
|
|
31
|
-
})(AlertEnum || (AlertEnum = {}));
|
|
32
|
-
|
|
33
|
-
class AlertInfoComponent {
|
|
34
|
-
}
|
|
35
|
-
AlertInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
AlertInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AlertInfoComponent, selector: "alert-info", host: { classAttribute: "alert-icon alert-icon-info" }, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertInfoComponent, decorators: [{
|
|
38
|
-
type: Component,
|
|
39
|
-
args: [{ selector: 'alert-info', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
40
|
-
class: 'alert-icon alert-icon-info'
|
|
41
|
-
}, template: "" }]
|
|
42
|
-
}] });
|
|
43
|
-
|
|
44
|
-
class WarningComponent {
|
|
45
|
-
}
|
|
46
|
-
WarningComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WarningComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
-
WarningComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: WarningComponent, selector: "alert-warning", host: { classAttribute: "alert-icon alert-icon-warning " }, ngImport: i0, template: "<span class=\"alert-icon-warning-body\">\n <span class=\"alert-icon-warning-dot\"></span>\n</span>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WarningComponent, decorators: [{
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{ selector: 'alert-warning', host: {
|
|
51
|
-
class: 'alert-icon alert-icon-warning '
|
|
52
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<span class=\"alert-icon-warning-body\">\n <span class=\"alert-icon-warning-dot\"></span>\n</span>" }]
|
|
53
|
-
}] });
|
|
54
|
-
|
|
55
|
-
class ErrorComponent {
|
|
56
|
-
}
|
|
57
|
-
ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
58
|
-
ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ErrorComponent, selector: "alert-error", host: { classAttribute: "alert-icon alert-icon-error" }, ngImport: i0, template: "<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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ErrorComponent, decorators: [{
|
|
60
|
-
type: Component,
|
|
61
|
-
args: [{ selector: 'alert-error', host: {
|
|
62
|
-
class: 'alert-icon alert-icon-error'
|
|
63
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<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>" }]
|
|
64
|
-
}] });
|
|
65
|
-
|
|
66
|
-
const alertComponents = [
|
|
67
|
-
{
|
|
68
|
-
type: AlertEnum.success,
|
|
69
|
-
component: AlertSuccessComponent
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
type: AlertEnum.info,
|
|
73
|
-
component: AlertInfoComponent
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
type: AlertEnum.warning,
|
|
77
|
-
component: WarningComponent
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
type: AlertEnum.error,
|
|
81
|
-
component: ErrorComponent
|
|
82
|
-
}
|
|
83
|
-
];
|
|
84
|
-
|
|
85
|
-
class AlertOkButtonComponent {
|
|
86
|
-
constructor() {
|
|
87
|
-
this.click = new EventEmitter();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
AlertOkButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertOkButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
91
|
-
AlertOkButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AlertOkButtonComponent, selector: "alert-ok-button", outputs: { click: "click" }, ngImport: i0, template: "<button mat-raised-button color=\"primary\" (click)=\"click.emit($event)\">{{'general.ok' | translate}}</button>", styles: [""], dependencies: [{ kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertOkButtonComponent, decorators: [{
|
|
93
|
-
type: Component,
|
|
94
|
-
args: [{ selector: 'alert-ok-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button mat-raised-button color=\"primary\" (click)=\"click.emit($event)\">{{'general.ok' | translate}}</button>" }]
|
|
95
|
-
}], propDecorators: { click: [{
|
|
96
|
-
type: Output
|
|
97
|
-
}] } });
|
|
98
|
-
|
|
99
|
-
class AlertCancelButtonComponent {
|
|
100
|
-
constructor() {
|
|
101
|
-
this.click = new EventEmitter();
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
AlertCancelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertCancelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
105
|
-
AlertCancelButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AlertCancelButtonComponent, selector: "alert-cancel-button", outputs: { click: "click" }, ngImport: i0, template: "<button mat-raised-button (click)=\"click.emit($event)\">{{'general.cancel' | translate}}</button>", styles: [""], dependencies: [{ kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertCancelButtonComponent, decorators: [{
|
|
107
|
-
type: Component,
|
|
108
|
-
args: [{ selector: 'alert-cancel-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button mat-raised-button (click)=\"click.emit($event)\">{{'general.cancel' | translate}}</button>" }]
|
|
109
|
-
}], propDecorators: { click: [{
|
|
110
|
-
type: Output
|
|
111
|
-
}] } });
|
|
112
|
-
|
|
113
|
-
const CRAFTSJS_ALERT_DATA = new InjectionToken('CraftsjsAlertData');
|
|
114
|
-
class DialogAlertComponent {
|
|
115
|
-
constructor(dialogRef, data) {
|
|
116
|
-
this.dialogRef = dialogRef;
|
|
117
|
-
this.data = data;
|
|
118
|
-
}
|
|
119
|
-
ngOnInit() {
|
|
120
|
-
}
|
|
121
|
-
ngAfterViewInit() {
|
|
122
|
-
this.loadComponents();
|
|
123
|
-
}
|
|
124
|
-
loadComponents() {
|
|
125
|
-
const itemComponent = alertComponents.find(x => x.type === this.data.type);
|
|
126
|
-
const component = itemComponent && itemComponent.component;
|
|
127
|
-
this.resolveComponent(component, this.appDynamic.find(x => x.name === 'alert-icon').viewContainerRef);
|
|
128
|
-
this.resolveComponent(this.data.customBody, this.appDynamic.find(x => x.name === 'alert-body').viewContainerRef);
|
|
129
|
-
this.resolveComponent(this.data.customButtonComponent, this.appDynamic.find(x => x.name === 'alert-buttons').viewContainerRef);
|
|
130
|
-
}
|
|
131
|
-
resolveComponent(component, viewContainerRef) {
|
|
132
|
-
if (!component) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
viewContainerRef.clear();
|
|
136
|
-
if (component instanceof TemplateRef) {
|
|
137
|
-
viewContainerRef.createEmbeddedView(component, { $implicit: this.data, dialogRef: this.dialogRef });
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
const injector = this.createInjector(viewContainerRef.injector);
|
|
141
|
-
viewContainerRef.createComponent(component, {
|
|
142
|
-
injector
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
createInjector(injector) {
|
|
147
|
-
return Injector.create({
|
|
148
|
-
providers: [{
|
|
149
|
-
provide: CRAFTSJS_ALERT_DATA,
|
|
150
|
-
useValue: this.data
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
provide: MatDialogRef,
|
|
154
|
-
useValue: this.dialogRef
|
|
155
|
-
}],
|
|
156
|
-
parent: injector
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
buttonClick(result) {
|
|
160
|
-
this.dialogRef.close({ data: this.data, result });
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
DialogAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DialogAlertComponent, deps: [{ token: i1$1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
164
|
-
DialogAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: DialogAlertComponent, selector: "dialog-alert", viewQueries: [{ propertyName: "appDynamic", predicate: DynamicDirective, descendants: true }], ngImport: i0, template: "<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>", styles: [".alert-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.alert-icon-custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.alert-icon img{max-width:100%;max-height:100%}.alert-title{color:#000000a6;font-weight:600;text-transform:none;position:relative;display:block;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.alert-title:first-child{margin-top:26px}.alert-title:not(:first-child){padding-bottom:0}.alert-title:not(:last-child){margin-bottom:13px}.alert-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:center;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:#000000a3;overflow-wrap:break-word;box-sizing:border-box;width:100%}.alert-text:first-child{margin-top:45px}.alert-text:last-child{margin-bottom:45px}.alert-footer{text-align:right;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.alert-footer-button-container{margin:5px;display:inline-block;position:relative}.alert-footer>*{display:inline-block;margin-right:.5em}.alert-footer>:last-child{margin-right:inherit}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DynamicDirective, selector: "[craftsjsDynamic]", inputs: ["name"] }, { kind: "component", type: AlertOkButtonComponent, selector: "alert-ok-button", outputs: ["click"] }, { kind: "component", type: AlertCancelButtonComponent, selector: "alert-cancel-button", outputs: ["click"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DialogAlertComponent, decorators: [{
|
|
166
|
-
type: Component,
|
|
167
|
-
args: [{ selector: 'dialog-alert', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<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>", styles: [".alert-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.alert-icon-custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.alert-icon img{max-width:100%;max-height:100%}.alert-title{color:#000000a6;font-weight:600;text-transform:none;position:relative;display:block;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.alert-title:first-child{margin-top:26px}.alert-title:not(:first-child){padding-bottom:0}.alert-title:not(:last-child){margin-bottom:13px}.alert-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:center;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:#000000a3;overflow-wrap:break-word;box-sizing:border-box;width:100%}.alert-text:first-child{margin-top:45px}.alert-text:last-child{margin-bottom:45px}.alert-footer{text-align:right;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.alert-footer-button-container{margin:5px;display:inline-block;position:relative}.alert-footer>*{display:inline-block;margin-right:.5em}.alert-footer>:last-child{margin-right:inherit}\n"] }]
|
|
168
|
-
}], ctorParameters: function () {
|
|
169
|
-
return [{ type: i1$1.MatDialogRef }, { type: undefined, decorators: [{
|
|
170
|
-
type: Inject,
|
|
171
|
-
args: [MAT_DIALOG_DATA]
|
|
172
|
-
}] }];
|
|
173
|
-
}, propDecorators: { appDynamic: [{
|
|
174
|
-
type: ViewChildren,
|
|
175
|
-
args: [DynamicDirective]
|
|
176
|
-
}] } });
|
|
177
|
-
|
|
178
|
-
class AlertService {
|
|
179
|
-
constructor(_dialog) {
|
|
180
|
-
this._dialog = _dialog;
|
|
181
|
-
}
|
|
182
|
-
showSimple(title, message) {
|
|
183
|
-
return this._open({
|
|
184
|
-
title,
|
|
185
|
-
text: message
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
showSuccess(title, message) {
|
|
189
|
-
return this._open({
|
|
190
|
-
title,
|
|
191
|
-
text: message,
|
|
192
|
-
type: AlertEnum.success
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
showError(title, message) {
|
|
196
|
-
return this._open({
|
|
197
|
-
title,
|
|
198
|
-
text: message,
|
|
199
|
-
type: AlertEnum.error
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
showInfo(title, message) {
|
|
203
|
-
return this._open({
|
|
204
|
-
title,
|
|
205
|
-
text: message,
|
|
206
|
-
type: AlertEnum.info
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
showWarning(title, message) {
|
|
210
|
-
return this._open({
|
|
211
|
-
title,
|
|
212
|
-
text: message,
|
|
213
|
-
type: AlertEnum.warning
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
showConfirmation(title, message) {
|
|
217
|
-
return this._open({
|
|
218
|
-
title,
|
|
219
|
-
text: message,
|
|
220
|
-
type: AlertEnum.warning,
|
|
221
|
-
showCancelButton: true
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
_open(alertModel) {
|
|
225
|
-
return this._dialog.open(DialogAlertComponent, {
|
|
226
|
-
width: '500px',
|
|
227
|
-
data: alertModel
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
AlertService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertService, deps: [{ token: i1$1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
232
|
-
AlertService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertService });
|
|
233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertService, decorators: [{
|
|
234
|
-
type: Injectable
|
|
235
|
-
}], ctorParameters: function () { return [{ type: i1$1.MatDialog }]; } });
|
|
236
|
-
|
|
237
|
-
class AlertModule {
|
|
238
|
-
static forRoot() {
|
|
239
|
-
return {
|
|
240
|
-
ngModule: AlertModule,
|
|
241
|
-
providers: [
|
|
242
|
-
AlertService
|
|
243
|
-
]
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
AlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
248
|
-
AlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: AlertModule, declarations: [DialogAlertComponent,
|
|
249
|
-
AlertSuccessComponent,
|
|
250
|
-
AlertInfoComponent,
|
|
251
|
-
WarningComponent,
|
|
252
|
-
ErrorComponent,
|
|
253
|
-
AlertOkButtonComponent,
|
|
254
|
-
AlertCancelButtonComponent], imports: [CommonModule,
|
|
255
|
-
TranslateModule,
|
|
256
|
-
MatButtonModule,
|
|
257
|
-
CoreModule,
|
|
258
|
-
MatDialogModule], exports: [DialogAlertComponent] });
|
|
259
|
-
AlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertModule, imports: [CommonModule,
|
|
260
|
-
TranslateModule,
|
|
261
|
-
MatButtonModule,
|
|
262
|
-
CoreModule,
|
|
263
|
-
MatDialogModule] });
|
|
264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AlertModule, decorators: [{
|
|
265
|
-
type: NgModule,
|
|
266
|
-
args: [{
|
|
267
|
-
imports: [
|
|
268
|
-
CommonModule,
|
|
269
|
-
TranslateModule,
|
|
270
|
-
MatButtonModule,
|
|
271
|
-
CoreModule,
|
|
272
|
-
MatDialogModule
|
|
273
|
-
],
|
|
274
|
-
declarations: [
|
|
275
|
-
DialogAlertComponent,
|
|
276
|
-
AlertSuccessComponent,
|
|
277
|
-
AlertInfoComponent,
|
|
278
|
-
WarningComponent,
|
|
279
|
-
ErrorComponent,
|
|
280
|
-
AlertOkButtonComponent,
|
|
281
|
-
AlertCancelButtonComponent
|
|
282
|
-
],
|
|
283
|
-
exports: [
|
|
284
|
-
DialogAlertComponent
|
|
285
|
-
]
|
|
286
|
-
}]
|
|
287
|
-
}] });
|
|
288
|
-
|
|
289
|
-
/*
|
|
290
|
-
* Public API Surface of alert
|
|
291
|
-
*/
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Generated bundle index. Do not edit.
|
|
295
|
-
*/
|
|
296
|
-
|
|
297
|
-
export { AlertCancelButtonComponent, AlertEnum, AlertInfoComponent, AlertModule, AlertOkButtonComponent, AlertService, AlertSuccessComponent, CRAFTSJS_ALERT_DATA, DialogAlertComponent, ErrorComponent, WarningComponent, alertComponents };
|
|
298
|
-
//# sourceMappingURL=craftsjs-alert.mjs.map
|
|
299
|
-
//# sourceMappingURL=craftsjs-alert.mjs.map
|