@craftsjs/alert 6.0.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/README.md +69 -55
- package/esm2022/lib/alert.module.mjs +16 -14
- package/esm2022/lib/alert.providers.mjs +14 -0
- package/esm2022/lib/components/dialog-alert/components/alert-info/alert-info.component.mjs +3 -3
- package/esm2022/lib/components/dialog-alert/components/alert-success/alert-success.component.mjs +3 -3
- package/esm2022/lib/components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component.mjs +5 -3
- package/esm2022/lib/components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component.mjs +5 -3
- package/esm2022/lib/components/dialog-alert/components/error/error.component.mjs +3 -3
- package/esm2022/lib/components/dialog-alert/components/warning/warning.component.mjs +3 -3
- package/esm2022/lib/components/dialog-alert/dialog-alert.component.mjs +12 -8
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/craftsjs-alert.mjs +48 -31
- package/fesm2022/craftsjs-alert.mjs.map +1 -1
- 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 +3 -3
- package/public-api.d.ts +1 -0
package/README.md
CHANGED
|
@@ -23,68 +23,65 @@ Choose the version corresponding to your Angular version:
|
|
|
23
23
|
npm i @craftsjs/alert --S
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
## Compatibility
|
|
27
|
+
|
|
28
|
+
Current version: 6.1.0 (Compatible with Angular v18)
|
|
29
|
+
|
|
26
30
|
Install peer dependencies
|
|
27
31
|
|
|
28
32
|
```
|
|
29
|
-
npm i
|
|
30
|
-
@craftsjs/core
|
|
31
|
-
@ngx-translate/core
|
|
32
|
-
@angular/material
|
|
33
|
-
@angular/cdk
|
|
34
|
-
@angular/animations --S
|
|
33
|
+
npm i @craftsjs/core @ngx-translate/core @angular/material @angular/cdk @angular/animations --S
|
|
35
34
|
```
|
|
36
35
|
|
|
37
|
-
## Configuration
|
|
36
|
+
## Configuration (i18n optional)
|
|
38
37
|
|
|
39
|
-
-
|
|
38
|
+
- If you want translations, configure `@ngx-translate/core` in your app. Example (standalone):
|
|
40
39
|
|
|
41
40
|
The library is configured as follows:
|
|
42
41
|
|
|
43
42
|
```typescript
|
|
43
|
+
// main.ts
|
|
44
|
+
import { bootstrapApplication, importProvidersFrom } from '@angular/platform-browser';
|
|
45
|
+
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
46
|
+
import { provideCraftsjsAlert } from '@craftsjs/alert';
|
|
44
47
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
45
48
|
import { HttpClient, HttpClientModule } from '@angular/common/http';
|
|
46
|
-
Version 6: Compatible with Angular v18.
|
|
47
49
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
50
|
+
import { AppComponent } from './app/app.component';
|
|
51
|
+
|
|
48
52
|
export function createTranslateLoader(http: HttpClient) {
|
|
49
|
-
|
|
53
|
+
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
|
50
54
|
}
|
|
51
|
-
@NgModule({
|
|
52
|
-
imports: [
|
|
53
|
-
HttpClientModule,
|
|
54
|
-
TranslateModule.forRoot({
|
|
55
|
-
loader: {
|
|
56
|
-
provide: TranslateLoader,
|
|
57
|
-
useFactory: (createTranslateLoader),
|
|
58
|
-
deps: [HttpClient]
|
|
59
|
-
}
|
|
60
|
-
})
|
|
61
|
-
]
|
|
62
|
-
})
|
|
63
|
-
export class AppModule { }
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## How to use
|
|
67
|
-
|
|
68
|
-
- Import the module AlertModule into the AppModule
|
|
69
55
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
56
|
+
bootstrapApplication(AppComponent, {
|
|
57
|
+
providers: [
|
|
58
|
+
provideAnimations(),
|
|
59
|
+
provideCraftsjsAlert(),
|
|
60
|
+
importProvidersFrom(
|
|
61
|
+
HttpClientModule,
|
|
62
|
+
TranslateModule.forRoot({
|
|
63
|
+
loader: { provide: TranslateLoader, useFactory: createTranslateLoader, deps: [HttpClient] }
|
|
64
|
+
})
|
|
65
|
+
)
|
|
78
66
|
]
|
|
79
|
-
})
|
|
80
|
-
export class AppModule { }
|
|
67
|
+
});
|
|
81
68
|
```
|
|
82
69
|
|
|
70
|
+
## How to use (standalone service)
|
|
71
|
+
|
|
72
|
+
- Inject `AlertService` anywhere and call the helpers. The dialog component is standalone and provided by the service.
|
|
73
|
+
|
|
83
74
|
```typescript
|
|
84
|
-
@
|
|
85
|
-
|
|
75
|
+
import { Component } from '@angular/core';
|
|
76
|
+
import { AlertService } from '@craftsjs/alert';
|
|
86
77
|
|
|
87
|
-
|
|
78
|
+
@Component({
|
|
79
|
+
selector: 'app-alert-demo',
|
|
80
|
+
standalone: true,
|
|
81
|
+
template: `<button type="button" mat-raised-button color="primary" (click)="openDialog()">Alert warning</button>`
|
|
82
|
+
})
|
|
83
|
+
export class AlertDemoComponent {
|
|
84
|
+
constructor(private _alertService: AlertService) {}
|
|
88
85
|
|
|
89
86
|
openDialog() {
|
|
90
87
|
this._alertService.showSimple('Alert', 'Simple alert');
|
|
@@ -93,22 +90,23 @@ export class AlertComponent {
|
|
|
93
90
|
// this._alertService.showInfo('Info', 'Information');
|
|
94
91
|
// this._alertService.showError('Error', 'Error');
|
|
95
92
|
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
96
95
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
});
|
|
96
|
+
```typescript
|
|
97
|
+
// Confirmation example
|
|
98
|
+
const dialog = this._alertService.showConfirmation('Confirmation', 'Are you sure delete alert?');
|
|
99
|
+
dialog.beforeClose().subscribe((result) => {
|
|
100
|
+
if (!result) { return; }
|
|
101
|
+
switch (result.result) {
|
|
102
|
+
case 'ok':
|
|
103
|
+
console.log('ok');
|
|
104
|
+
break;
|
|
105
|
+
case 'cancel':
|
|
106
|
+
console.log('cancel');
|
|
107
|
+
break;
|
|
110
108
|
}
|
|
111
|
-
}
|
|
109
|
+
});
|
|
112
110
|
```
|
|
113
111
|
|
|
114
112
|
```html
|
|
@@ -140,6 +138,22 @@ body.theme-default{
|
|
|
140
138
|
```
|
|
141
139
|
|
|
142
140
|
- Don't forget to put the theme-default class in the html body
|
|
141
|
+
and ensure Angular Material animations are provided (e.g., `provideAnimations()` in main.ts).
|
|
142
|
+
|
|
143
|
+
## NgModule (compatibility)
|
|
144
|
+
|
|
145
|
+
```ts
|
|
146
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
147
|
+
import { AlertModule } from '@craftsjs/alert';
|
|
148
|
+
|
|
149
|
+
@NgModule({
|
|
150
|
+
imports: [
|
|
151
|
+
BrowserAnimationsModule,
|
|
152
|
+
AlertModule.forRoot()
|
|
153
|
+
]
|
|
154
|
+
})
|
|
155
|
+
export class AppModule {}
|
|
156
|
+
```
|
|
143
157
|
|
|
144
158
|
```html
|
|
145
159
|
<body class="theme-default"></body>
|
|
@@ -3,7 +3,6 @@ import { MatButtonModule } from '@angular/material/button';
|
|
|
3
3
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
4
4
|
import { TranslateModule } from '@ngx-translate/core';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
6
|
-
import { CoreModule } from '@craftsjs/core';
|
|
7
6
|
import { DialogAlertComponent } from './components/dialog-alert/dialog-alert.component';
|
|
8
7
|
import { AlertSuccessComponent } from './components/dialog-alert/components/alert-success/alert-success.component';
|
|
9
8
|
import { AlertInfoComponent } from './components/dialog-alert/components/alert-info/alert-info.component';
|
|
@@ -23,22 +22,26 @@ export class AlertModule {
|
|
|
23
22
|
};
|
|
24
23
|
}
|
|
25
24
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
26
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: AlertModule,
|
|
25
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: AlertModule, imports: [CommonModule,
|
|
26
|
+
TranslateModule,
|
|
27
|
+
MatButtonModule,
|
|
28
|
+
MatDialogModule,
|
|
29
|
+
// standalone components used by consumers or inside the dialog
|
|
30
|
+
DialogAlertComponent,
|
|
27
31
|
AlertSuccessComponent,
|
|
28
32
|
AlertInfoComponent,
|
|
29
33
|
WarningComponent,
|
|
30
34
|
ErrorComponent,
|
|
31
35
|
AlertOkButtonComponent,
|
|
32
|
-
AlertCancelButtonComponent],
|
|
33
|
-
TranslateModule,
|
|
34
|
-
MatButtonModule,
|
|
35
|
-
CoreModule,
|
|
36
|
-
MatDialogModule], exports: [DialogAlertComponent] }); }
|
|
36
|
+
AlertCancelButtonComponent], exports: [DialogAlertComponent] }); }
|
|
37
37
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertModule, imports: [CommonModule,
|
|
38
38
|
TranslateModule,
|
|
39
39
|
MatButtonModule,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
MatDialogModule,
|
|
41
|
+
// standalone components used by consumers or inside the dialog
|
|
42
|
+
DialogAlertComponent,
|
|
43
|
+
AlertOkButtonComponent,
|
|
44
|
+
AlertCancelButtonComponent] }); }
|
|
42
45
|
}
|
|
43
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertModule, decorators: [{
|
|
44
47
|
type: NgModule,
|
|
@@ -47,10 +50,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
47
50
|
CommonModule,
|
|
48
51
|
TranslateModule,
|
|
49
52
|
MatButtonModule,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
],
|
|
53
|
-
declarations: [
|
|
53
|
+
MatDialogModule,
|
|
54
|
+
// standalone components used by consumers or inside the dialog
|
|
54
55
|
DialogAlertComponent,
|
|
55
56
|
AlertSuccessComponent,
|
|
56
57
|
AlertInfoComponent,
|
|
@@ -59,9 +60,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
59
60
|
AlertOkButtonComponent,
|
|
60
61
|
AlertCancelButtonComponent
|
|
61
62
|
],
|
|
63
|
+
declarations: [],
|
|
62
64
|
exports: [
|
|
63
65
|
DialogAlertComponent
|
|
64
66
|
]
|
|
65
67
|
}]
|
|
66
68
|
}] });
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
69
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY3JhZnRzanMvYWxlcnQvc3JjL2xpYi9hbGVydC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBdUIsTU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cuL3NlcnZpY2VzL2FsZXJ0LnNlcnZpY2UnO1xyXG5cclxuQE5nTW9kdWxlKHtcclxuICAgIGltcG9ydHM6IFtcclxuICAgICAgICBDb21tb25Nb2R1bGUsXHJcbiAgICAgICAgVHJhbnNsYXRlTW9kdWxlLFxyXG4gICAgICAgIE1hdEJ1dHRvbk1vZHVsZSxcclxuICAgIE1hdERpYWxvZ01vZHVsZSxcclxuICAgIC8vIHN0YW5kYWxvbmUgY29tcG9uZW50cyB1c2VkIGJ5IGNvbnN1bWVycyBvciBpbnNpZGUgdGhlIGRpYWxvZ1xyXG4gICAgRGlhbG9nQWxlcnRDb21wb25lbnQsXHJcbiAgICBBbGVydFN1Y2Nlc3NDb21wb25lbnQsXHJcbiAgICBBbGVydEluZm9Db21wb25lbnQsXHJcbiAgICBXYXJuaW5nQ29tcG9uZW50LFxyXG4gICAgRXJyb3JDb21wb25lbnQsXHJcbiAgICBBbGVydE9rQnV0dG9uQ29tcG9uZW50LFxyXG4gICAgQWxlcnRDYW5jZWxCdXR0b25Db21wb25lbnRcclxuICAgIF0sXHJcbiAgZGVjbGFyYXRpb25zOiBbXSxcclxuICAgIGV4cG9ydHM6IFtcclxuICAgICAgICBEaWFsb2dBbGVydENvbXBvbmVudFxyXG4gICAgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgQWxlcnRNb2R1bGUge1xyXG4gIHN0YXRpYyBmb3JSb290KCk6IE1vZHVsZVdpdGhQcm92aWRlcnM8QWxlcnRNb2R1bGU+IHtcclxuICAgIHJldHVybiB7XHJcbiAgICAgIG5nTW9kdWxlOiBBbGVydE1vZHVsZSxcclxuICAgICAgcHJvdmlkZXJzOiBbXHJcbiAgICAgICAgQWxlcnRTZXJ2aWNlXHJcbiAgICAgIF1cclxuICAgIH07XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { importProvidersFrom, makeEnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { MatDialogModule } from '@angular/material/dialog';
|
|
3
|
+
import { AlertService } from './services/alert.service';
|
|
4
|
+
/**
|
|
5
|
+
* Standalone provider for CraftsJS Alert.
|
|
6
|
+
* - Provides MatDialog infrastructure and AlertService.
|
|
7
|
+
*/
|
|
8
|
+
export function provideCraftsjsAlert() {
|
|
9
|
+
return makeEnvironmentProviders([
|
|
10
|
+
importProvidersFrom(MatDialogModule),
|
|
11
|
+
AlertService
|
|
12
|
+
]);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQucHJvdmlkZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY3JhZnRzanMvYWxlcnQvc3JjL2xpYi9hbGVydC5wcm92aWRlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUF3QixtQkFBbUIsRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDM0QsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBRXhEOzs7R0FHRztBQUNILE1BQU0sVUFBVSxvQkFBb0I7SUFDbEMsT0FBTyx3QkFBd0IsQ0FBQztRQUM5QixtQkFBbUIsQ0FBQyxlQUFlLENBQUM7UUFDcEMsWUFBWTtLQUNiLENBQUMsQ0FBQztBQUNMLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFbnZpcm9ubWVudFByb3ZpZGVycywgaW1wb3J0UHJvdmlkZXJzRnJvbSwgbWFrZUVudmlyb25tZW50UHJvdmlkZXJzIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcbmltcG9ydCB7IE1hdERpYWxvZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL2RpYWxvZyc7XHJcbmltcG9ydCB7IEFsZXJ0U2VydmljZSB9IGZyb20gJy4vc2VydmljZXMvYWxlcnQuc2VydmljZSc7XHJcblxyXG4vKipcclxuICogU3RhbmRhbG9uZSBwcm92aWRlciBmb3IgQ3JhZnRzSlMgQWxlcnQuXHJcbiAqIC0gUHJvdmlkZXMgTWF0RGlhbG9nIGluZnJhc3RydWN0dXJlIGFuZCBBbGVydFNlcnZpY2UuXHJcbiAqL1xyXG5leHBvcnQgZnVuY3Rpb24gcHJvdmlkZUNyYWZ0c2pzQWxlcnQoKTogRW52aXJvbm1lbnRQcm92aWRlcnMge1xyXG4gIHJldHVybiBtYWtlRW52aXJvbm1lbnRQcm92aWRlcnMoW1xyXG4gICAgaW1wb3J0UHJvdmlkZXJzRnJvbShNYXREaWFsb2dNb2R1bGUpLFxyXG4gICAgQWxlcnRTZXJ2aWNlXHJcbiAgXSk7XHJcbn1cclxuIl19
|
|
@@ -2,12 +2,12 @@ import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class AlertInfoComponent {
|
|
4
4
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertInfoComponent, selector: "alert-info", host: { classAttribute: "alert-icon alert-icon-info" }, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
5
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertInfoComponent, isStandalone: true, selector: "alert-info", host: { classAttribute: "alert-icon alert-icon-info" }, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
6
6
|
}
|
|
7
7
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertInfoComponent, decorators: [{
|
|
8
8
|
type: Component,
|
|
9
9
|
args: [{ selector: 'alert-info', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
10
10
|
class: 'alert-icon alert-icon-info'
|
|
11
|
-
}, template: "" }]
|
|
11
|
+
}, standalone: true, template: "" }]
|
|
12
12
|
}] });
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtaW5mby5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcmFmdHNqcy9hbGVydC9zcmMvbGliL2NvbXBvbmVudHMvZGlhbG9nLWFsZXJ0L2NvbXBvbmVudHMvYWxlcnQtaW5mby9hbGVydC1pbmZvLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL2FsZXJ0L3NyYy9saWIvY29tcG9uZW50cy9kaWFsb2ctYWxlcnQvY29tcG9uZW50cy9hbGVydC1pbmZvL2FsZXJ0LWluZm8uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFhdEYsTUFBTSxPQUFPLGtCQUFrQjsrR0FBbEIsa0JBQWtCO21HQUFsQixrQkFBa0IsOEhDYi9CLEVBQUE7OzRGRGFhLGtCQUFrQjtrQkFYOUIsU0FBUzsrQkFDRSxZQUFZLG1CQUdMLHVCQUF1QixDQUFDLE1BQU0saUJBQ2hDLGlCQUFpQixDQUFDLElBQUksUUFDL0I7d0JBQ0osS0FBSyxFQUFFLDRCQUE0QjtxQkFDcEMsY0FDVyxJQUFJIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSwgVmlld0VuY2Fwc3VsYXRpb24gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBDb21wb25lbnQoe1xyXG4gIHNlbGVjdG9yOiAnYWxlcnQtaW5mbycsXHJcbiAgdGVtcGxhdGVVcmw6ICcuL2FsZXJ0LWluZm8uY29tcG9uZW50Lmh0bWwnLFxyXG4gIHN0eWxlVXJsczogWycuL2FsZXJ0LWluZm8uY29tcG9uZW50LnNjc3MnXSxcclxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcclxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxyXG4gIGhvc3Q6IHtcclxuICAgIGNsYXNzOiAnYWxlcnQtaWNvbiBhbGVydC1pY29uLWluZm8nXHJcbiAgfSxcclxuICBzdGFuZGFsb25lOiB0cnVlXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBBbGVydEluZm9Db21wb25lbnQgeyB9XHJcbiIsIiJdfQ==
|
package/esm2022/lib/components/dialog-alert/components/alert-success/alert-success.component.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class AlertSuccessComponent {
|
|
4
4
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertSuccessComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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>\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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
5
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertSuccessComponent, isStandalone: true, 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>\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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
6
6
|
}
|
|
7
7
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertSuccessComponent, decorators: [{
|
|
8
8
|
type: Component,
|
|
9
9
|
args: [{ selector: 'alert-success', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
10
10
|
class: 'alert-icon alert-icon-success'
|
|
11
|
-
}, template: "<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>" }]
|
|
11
|
+
}, standalone: true, template: "<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>" }]
|
|
12
12
|
}] });
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtc3VjY2Vzcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcmFmdHNqcy9hbGVydC9zcmMvbGliL2NvbXBvbmVudHMvZGlhbG9nLWFsZXJ0L2NvbXBvbmVudHMvYWxlcnQtc3VjY2Vzcy9hbGVydC1zdWNjZXNzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL2FsZXJ0L3NyYy9saWIvY29tcG9uZW50cy9kaWFsb2ctYWxlcnQvY29tcG9uZW50cy9hbGVydC1zdWNjZXNzL2FsZXJ0LXN1Y2Nlc3MuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFhdEYsTUFBTSxPQUFPLHFCQUFxQjsrR0FBckIscUJBQXFCO21HQUFyQixxQkFBcUIsb0lDYmxDLHVRQUdtRDs7NEZEVXRDLHFCQUFxQjtrQkFYakMsU0FBUzsrQkFDRSxlQUFlLG1CQUdSLHVCQUF1QixDQUFDLE1BQU0saUJBQ2hDLGlCQUFpQixDQUFDLElBQUksUUFDL0I7d0JBQ0osS0FBSyxFQUFFLCtCQUErQjtxQkFDdkMsY0FDVyxJQUFJIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBDa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|
+
import { MatButtonModule } from '@angular/material/button';
|
|
3
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
import * as i1 from "@angular/material/button";
|
|
4
6
|
import * as i2 from "@ngx-translate/core";
|
|
@@ -7,12 +9,12 @@ export class AlertCancelButtonComponent {
|
|
|
7
9
|
this.click = new EventEmitter();
|
|
8
10
|
}
|
|
9
11
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertCancelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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] ", exportAs: ["matButton"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertCancelButtonComponent, isStandalone: true, 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: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11
13
|
}
|
|
12
14
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertCancelButtonComponent, decorators: [{
|
|
13
15
|
type: Component,
|
|
14
|
-
args: [{ selector: 'alert-cancel-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button mat-raised-button (click)=\"click.emit($event)\">{{'general.cancel' | translate}}</button>" }]
|
|
16
|
+
args: [{ selector: 'alert-cancel-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, TranslateModule], template: "<button mat-raised-button (click)=\"click.emit($event)\">{{'general.cancel' | translate}}</button>" }]
|
|
15
17
|
}], propDecorators: { click: [{
|
|
16
18
|
type: Output
|
|
17
19
|
}] } });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtY2FuY2VsLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcmFmdHNqcy9hbGVydC9zcmMvbGliL2NvbXBvbmVudHMvZGlhbG9nLWFsZXJ0L2NvbXBvbmVudHMvYnV0dG9ucy9hbGVydC1jYW5jZWwtYnV0dG9uL2FsZXJ0LWNhbmNlbC1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY3JhZnRzanMvYWxlcnQvc3JjL2xpYi9jb21wb25lbnRzL2RpYWxvZy1hbGVydC9jb21wb25lbnRzL2J1dHRvbnMvYWxlcnQtY2FuY2VsLWJ1dHRvbi9hbGVydC1jYW5jZWwtYnV0dG9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBR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aGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXHJcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcclxuICBpbXBvcnRzOiBbTWF0QnV0dG9uTW9kdWxlLCBUcmFuc2xhdGVNb2R1bGVdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBBbGVydENhbmNlbEJ1dHRvbkNvbXBvbmVudCB7XHJcbiAgQE91dHB1dCgpXHJcbiAgY2xpY2sgPSBuZXcgRXZlbnRFbWl0dGVyKCk7XHJcbn1cclxuIiwiPGJ1dHRvbiBtYXQtcmFpc2VkLWJ1dHRvbiAoY2xpY2spPVwiY2xpY2suZW1pdCgkZXZlbnQpXCI+e3snZ2VuZXJhbC5jYW5jZWwnIHwgdHJhbnNsYXRlfX08L2J1dHRvbj4iXX0=
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Component, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
3
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
import * as i1 from "@angular/material/button";
|
|
4
6
|
import * as i2 from "@ngx-translate/core";
|
|
@@ -7,12 +9,12 @@ export class AlertOkButtonComponent {
|
|
|
7
9
|
this.click = new EventEmitter();
|
|
8
10
|
}
|
|
9
11
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertOkButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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] ", exportAs: ["matButton"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertOkButtonComponent, isStandalone: true, 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: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11
13
|
}
|
|
12
14
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertOkButtonComponent, decorators: [{
|
|
13
15
|
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>" }]
|
|
16
|
+
args: [{ selector: 'alert-ok-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, TranslateModule], template: "<button mat-raised-button color=\"primary\" (click)=\"click.emit($event)\">{{'general.ok' | translate}}</button>" }]
|
|
15
17
|
}], propDecorators: { click: [{
|
|
16
18
|
type: Output
|
|
17
19
|
}] } });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtb2stYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4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3RyYXRlZ3ksIE91dHB1dCwgRXZlbnRFbWl0dGVyIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcbmltcG9ydCB7IE1hdEJ1dHRvbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL2J1dHRvbic7XHJcbmltcG9ydCB7IFRyYW5zbGF0ZU1vZHVsZSB9IGZyb20gJ0BuZ3gtdHJhbnNsYXRlL2NvcmUnO1xyXG5cclxuQENvbXBvbmVudCh7XHJcbiAgc2VsZWN0b3I6ICdhbGVydC1vay1idXR0b24nLFxyXG4gIHRlbXBsYXRlVXJsOiAnLi9hbGVydC1vay1idXR0b24uY29tcG9uZW50Lmh0bWwnLFxyXG4gIHN0eWxlVXJsczogWycuL2FsZXJ0LW9rLWJ1dHRvbi5jb21wb25lbnQuc2NzcyddLFxyXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxyXG4gIHN0YW5kYWxvbmU6IHRydWUsXHJcbiAgaW1wb3J0czogW01hdEJ1dHRvbk1vZHVsZSwgVHJhbnNsYXRlTW9kdWxlXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgQWxlcnRPa0J1dHRvbkNvbXBvbmVudCB7XHJcbiAgQE91dHB1dCgpXHJcbiAgY2xpY2sgPSBuZXcgRXZlbnRFbWl0dGVyKCk7XHJcbn1cclxuIiwiPGJ1dHRvbiBtYXQtcmFpc2VkLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIiAoY2xpY2spPVwiY2xpY2suZW1pdCgkZXZlbnQpXCI+e3snZ2VuZXJhbC5vaycgfCB0cmFuc2xhdGV9fTwvYnV0dG9uPiJdfQ==
|
|
@@ -2,12 +2,12 @@ import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class ErrorComponent {
|
|
4
4
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ErrorComponent, selector: "alert-error", host: { classAttribute: "alert-icon alert-icon-error" }, ngImport: i0, template: "<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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
5
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ErrorComponent, isStandalone: true, selector: "alert-error", host: { classAttribute: "alert-icon alert-icon-error" }, ngImport: i0, template: "<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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
6
6
|
}
|
|
7
7
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ErrorComponent, decorators: [{
|
|
8
8
|
type: Component,
|
|
9
9
|
args: [{ selector: 'alert-error', host: {
|
|
10
10
|
class: 'alert-icon alert-icon-error'
|
|
11
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<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>" }]
|
|
11
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<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>" }]
|
|
12
12
|
}] });
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY3JhZnRzanMvYWxlcnQvc3JjL2xpYi9jb21wb25lbnRzL2RpYWxvZy1hbGVydC9jb21wb25lbnRzL2Vycm9yL2Vycm9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL2FsZXJ0L3NyYy9saWIvY29tcG9uZW50cy9kaWFsb2ctYWxlcnQvY29tcG9uZW50cy9lcnJvci9lcnJvci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLGlCQUFpQixFQUFFLHVCQUF1QixFQUFFLE1BQU0sZUFBZSxDQUFDOztBQWF0RixNQUFNLE9BQU8sY0FBYzsrR0FBZCxjQUFjO21HQUFkLGNBQWMsZ0lDYjNCLGdOQUdNOzs0RkRVTyxjQUFjO2tCQVgxQixTQUFTOytCQUNFLGFBQWEsUUFHakI7d0JBQ0osS0FBSyxFQUFFLDZCQUE2QjtxQkFDckMsaUJBQ2MsaUJBQWlCLENBQUMsSUFBSSxtQkFDcEIsdUJBQXVCLENBQUMsTUFBTSxjQUNuQyxJQUFJIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBWaWV3RW5jYXBzdWxhdGlvbiwgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBDb21wb25lbnQoe1xyXG4gIHNlbGVjdG9yOiAnYWxlcnQtZXJyb3InLFxyXG4gIHRlbXBsYXRlVXJsOiAnLi9lcnJvci5jb21wb25lbnQuaHRtbCcsXHJcbiAgc3R5bGVVcmxzOiBbJy4vZXJyb3IuY29tcG9uZW50LnNjc3MnXSxcclxuICBob3N0OiB7XHJcbiAgICBjbGFzczogJ2FsZXJ0LWljb24gYWxlcnQtaWNvbi1lcnJvcidcclxuICB9LFxyXG4gIGVuY2Fwc3VsYXRpb246IFZpZXdFbmNhcHN1bGF0aW9uLk5vbmUsXHJcbiAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXHJcbiAgc3RhbmRhbG9uZTogdHJ1ZVxyXG59KVxyXG5leHBvcnQgY2xhc3MgRXJyb3JDb21wb25lbnQgeyB9XHJcbiIsIjxkaXYgY2xhc3M9XCJhbGVydC1pY29uLWVycm9yLXgtbWFya1wiPlxyXG4gIDxzcGFuIGNsYXNzPVwiYWxlcnQtaWNvbi1lcnJvci1saW5lIGFsZXJ0LWljb24tZXJyb3ItbGluZS1sZWZ0XCI+PC9zcGFuPlxyXG4gIDxzcGFuIGNsYXNzPVwiYWxlcnQtaWNvbi1lcnJvci1saW5lIGFsZXJ0LWljb24tZXJyb3ItbGluZS1yaWdodFwiPjwvc3Bhbj5cclxuPC9kaXY+Il19
|
|
@@ -2,12 +2,12 @@ import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class WarningComponent {
|
|
4
4
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: WarningComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: WarningComponent, selector: "alert-warning", host: { classAttribute: "alert-icon alert-icon-warning " }, ngImport: i0, template: "<span class=\"alert-icon-warning-body\">\r\n <span class=\"alert-icon-warning-dot\"></span>\r\n</span>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
5
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: WarningComponent, isStandalone: true, selector: "alert-warning", host: { classAttribute: "alert-icon alert-icon-warning " }, ngImport: i0, template: "<span class=\"alert-icon-warning-body\">\r\n <span class=\"alert-icon-warning-dot\"></span>\r\n</span>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
6
6
|
}
|
|
7
7
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: WarningComponent, decorators: [{
|
|
8
8
|
type: Component,
|
|
9
9
|
args: [{ selector: 'alert-warning', host: {
|
|
10
10
|
class: 'alert-icon alert-icon-warning '
|
|
11
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<span class=\"alert-icon-warning-body\">\r\n <span class=\"alert-icon-warning-dot\"></span>\r\n</span>" }]
|
|
11
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, template: "<span class=\"alert-icon-warning-body\">\r\n <span class=\"alert-icon-warning-dot\"></span>\r\n</span>" }]
|
|
12
12
|
}] });
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FybmluZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcmFmdHNqcy9hbGVydC9zcmMv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4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxyXG4gIGVuY2Fwc3VsYXRpb246IFZpZXdFbmNhcHN1bGF0aW9uLk5vbmUsXHJcbiAgc3RhbmRhbG9uZTogdHJ1ZVxyXG59KVxyXG5leHBvcnQgY2xhc3MgV2FybmluZ0NvbXBvbmVudCB7IH1cclxuIiwiPHNwYW4gY2xhc3M9XCJhbGVydC1pY29uLXdhcm5pbmctYm9keVwiPlxyXG4gIDxzcGFuIGNsYXNzPVwiYWxlcnQtaWNvbi13YXJuaW5nLWRvdFwiPjwvc3Bhbj5cclxuPC9zcGFuPiJdfQ==
|
|
@@ -2,13 +2,12 @@ import { Component, ChangeDetectionStrategy, Inject, ViewEncapsulation, Injector
|
|
|
2
2
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
3
3
|
import { alertComponents } from './components/components';
|
|
4
4
|
import { DynamicDirective } from '@craftsjs/core';
|
|
5
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
6
|
+
import { AlertOkButtonComponent } from './components/buttons/alert-ok-button/alert-ok-button.component';
|
|
7
|
+
import { AlertCancelButtonComponent } from './components/buttons/alert-cancel-button/alert-cancel-button.component';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
6
9
|
import * as i1 from "@angular/material/dialog";
|
|
7
|
-
import * as i2 from "@
|
|
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";
|
|
10
|
+
import * as i2 from "@ngx-translate/core";
|
|
12
11
|
export const CRAFTSJS_ALERT_DATA = new InjectionToken('CraftsjsAlertData');
|
|
13
12
|
export class DialogAlertComponent {
|
|
14
13
|
constructor(dialogRef, data) {
|
|
@@ -59,11 +58,16 @@ export class DialogAlertComponent {
|
|
|
59
58
|
this.dialogRef.close({ data: this.data, result });
|
|
60
59
|
}
|
|
61
60
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogAlertComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
62
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
61
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DialogAlertComponent, isStandalone: true, selector: "dialog-alert", viewQueries: [{ propertyName: "appDynamic", predicate: DynamicDirective, descendants: true }], ngImport: i0, template: "<ng-template craftsjsDynamic name=\"alert-icon\"></ng-template>\r\n@if (data?.title) {\r\n <div class=\"alert-title\">\r\n <span>\r\n {{data.title | translate}}\r\n </span>\r\n </div>\r\n}\r\n@if (data?.text) {\r\n <div class=\"alert-text\">\r\n <span>\r\n {{data.text | translate}}\r\n </span>\r\n </div>\r\n}\r\n<ng-template craftsjsDynamic name=\"alert-body\"></ng-template>\r\n@if (!data?.hiddenButtons) {\r\n <div class=\"alert-footer\">\r\n @if (!data?.customButtonComponent) {\r\n <alert-ok-button (click)=\"buttonClick('ok')\">\r\n </alert-ok-button>\r\n }\r\n @if (!data?.customButtonComponent && data?.showCancelButton) {\r\n <alert-cancel-button\r\n (click)=\"buttonClick('cancel')\">\r\n </alert-cancel-button>\r\n }\r\n </div>\r\n}\r\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: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "directive", type: 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
63
62
|
}
|
|
64
63
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogAlertComponent, decorators: [{
|
|
65
64
|
type: Component,
|
|
66
|
-
args: [{ selector: 'dialog-alert', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None,
|
|
65
|
+
args: [{ selector: 'dialog-alert', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [
|
|
66
|
+
TranslateModule,
|
|
67
|
+
DynamicDirective,
|
|
68
|
+
AlertOkButtonComponent,
|
|
69
|
+
AlertCancelButtonComponent
|
|
70
|
+
], template: "<ng-template craftsjsDynamic name=\"alert-icon\"></ng-template>\r\n@if (data?.title) {\r\n <div class=\"alert-title\">\r\n <span>\r\n {{data.title | translate}}\r\n </span>\r\n </div>\r\n}\r\n@if (data?.text) {\r\n <div class=\"alert-text\">\r\n <span>\r\n {{data.text | translate}}\r\n </span>\r\n </div>\r\n}\r\n<ng-template craftsjsDynamic name=\"alert-body\"></ng-template>\r\n@if (!data?.hiddenButtons) {\r\n <div class=\"alert-footer\">\r\n @if (!data?.customButtonComponent) {\r\n <alert-ok-button (click)=\"buttonClick('ok')\">\r\n </alert-ok-button>\r\n }\r\n @if (!data?.customButtonComponent && data?.showCancelButton) {\r\n <alert-cancel-button\r\n (click)=\"buttonClick('cancel')\">\r\n </alert-cancel-button>\r\n }\r\n </div>\r\n}\r\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
71
|
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
68
72
|
type: Inject,
|
|
69
73
|
args: [MAT_DIALOG_DATA]
|
|
@@ -71,4 +75,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
71
75
|
type: ViewChildren,
|
|
72
76
|
args: [DynamicDirective]
|
|
73
77
|
}] } });
|
|
74
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLWFsZXJ0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL2FsZXJ0L3NyYy9saWIvY29tcG9uZW50cy9kaWFsb2ctYWxlcnQvZGlhbG9nLWFsZXJ0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL2FsZXJ0L3NyYy9saWIvY29tcG9uZW50cy9kaWFsb2ctYWxlcnQvZGlhbG9nLWFsZXJ0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBQ3ZCLE1BQU0sRUFDTixpQkFBaUIsRUFFakIsUUFBUSxFQUNSLGNBQWMsRUFJZCxZQUFZLEVBRVosV0FBVyxFQUNaLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxZQUFZLEVBQUUsZUFBZSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFekUsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQzFELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRWxELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxnRUFBZ0UsQ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Jcbn1cclxuQGlmIChkYXRhPy50ZXh0KSB7XHJcbiAgPGRpdiBjbGFzcz1cImFsZXJ0LXRleHRcIj5cclxuICAgIDxzcGFuPlxyXG4gICAgICB7e2RhdGEudGV4dCB8IHRyYW5zbGF0ZX19XHJcbiAgICA8L3NwYW4+XHJcbiAgPC9kaXY+XHJcbn1cclxuPG5nLXRlbXBsYXRlIGNyYWZ0c2pzRHluYW1pYyBuYW1lPVwiYWxlcnQtYm9keVwiPjwvbmctdGVtcGxhdGU+XHJcbkBpZiAoIWRhdGE/LmhpZGRlbkJ1dHRvbnMpIHtcclxuICA8ZGl2IGNsYXNzPVwiYWxlcnQtZm9vdGVyXCI+XHJcbiAgICBAaWYgKCFkYXRhPy5jdXN0b21CdXR0b25Db21wb25lbnQpIHtcclxuICAgICAgPGFsZXJ0LW9rLWJ1dHRvbiAoY2xpY2spPVwiYnV0dG9uQ2xpY2soJ29rJylcIj5cclxuICAgICAgPC9hbGVydC1vay1idXR0b24+XHJcbiAgICB9XHJcbiAgICBAaWYgKCFkYXRhPy5jdXN0b21CdXR0b25Db21wb25lbnQgJiYgZGF0YT8uc2hvd0NhbmNlbEJ1dHRvbikge1xyXG4gICAgICA8YWxlcnQtY2FuY2VsLWJ1dHRvblxyXG4gICAgICAgIChjbGljayk9XCJidXR0b25DbGljaygnY2FuY2VsJylcIj5cclxuICAgICAgPC9hbGVydC1jYW5jZWwtYnV0dG9uPlxyXG4gICAgfVxyXG4gIDwvZGl2PlxyXG59XHJcbjxuZy10ZW1wbGF0ZSBjcmFmdHNqc0R5bmFtaWMgbmFtZT1cImFsZXJ0LWJ1dHRvbnNcIj48L25nLXRlbXBsYXRlPiJdfQ==
|
package/esm2022/public-api.mjs
CHANGED
|
@@ -13,4 +13,5 @@ export * from './lib/components/dialog-alert/components/warning/warning.componen
|
|
|
13
13
|
export * from './lib/models/alert-enum.model';
|
|
14
14
|
export * from './lib/models/alert.model';
|
|
15
15
|
export * from './lib/services/alert.service';
|
|
16
|
-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wb25lbnRzL2RpYWxvZy1hbGVydC9jb21wb25lbnRzL2FsZXJ0LXN1Y2Nlc3MvYWxlcnQtc3VjY2Vzcy5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL2RpYWxvZy1hbGVydC9jb21wb25lbnRzL2J1dHRvbnMvYWxlcnQtY2FuY2VsLWJ1dHRvbi9hbGVydC1jYW5jZWwtYnV0dG9uLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvZGlhbG9nLWFsZXJ0L2NvbXBvbmVudHMvYnV0dG9ucy9hbGVydC1vay1idXR0b24vYWxlcnQtb2stYnV0dG9uLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvZGlhbG9nLWFsZXJ0L2NvbXBvbmVudHMvY29tcG9uZW50cyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvZGlhbG9nLWFsZXJ0L2NvbXBvbmVudHMvZXJyb3IvZXJyb3IuY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy9kaWFsb2ctYWxlcnQvY29tcG9uZW50cy93YXJuaW5nL3dhcm5pbmcuY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9kZWxzL2FsZXJ0LWVudW0ubW9kZWwnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2RlbHMvYWxlcnQubW9kZWwnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlcy9hbGVydC5zZXJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvYWxlcnQucHJvdmlkZXJzJztcclxuIl19
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ViewEncapsulation, ChangeDetectionStrategy, Component, EventEmitter, Output, InjectionToken, TemplateRef, Injector, ViewChildren, Inject, Injectable, NgModule } from '@angular/core';
|
|
2
|
+
import { ViewEncapsulation, ChangeDetectionStrategy, Component, EventEmitter, Output, InjectionToken, TemplateRef, Injector, ViewChildren, Inject, Injectable, NgModule, makeEnvironmentProviders, importProvidersFrom } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/material/button';
|
|
4
4
|
import { MatButtonModule } from '@angular/material/button';
|
|
5
5
|
import * as i1$1 from '@angular/material/dialog';
|
|
6
6
|
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
7
7
|
import * as i2 from '@ngx-translate/core';
|
|
8
8
|
import { TranslateModule } from '@ngx-translate/core';
|
|
9
|
-
import * as i2$1 from '@angular/common';
|
|
10
9
|
import { CommonModule } from '@angular/common';
|
|
11
|
-
import
|
|
12
|
-
import { DynamicDirective, CoreModule } from '@craftsjs/core';
|
|
10
|
+
import { DynamicDirective } from '@craftsjs/core';
|
|
13
11
|
|
|
14
12
|
class AlertSuccessComponent {
|
|
15
13
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertSuccessComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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>\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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertSuccessComponent, isStandalone: true, 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>\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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
17
15
|
}
|
|
18
16
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertSuccessComponent, decorators: [{
|
|
19
17
|
type: Component,
|
|
20
18
|
args: [{ selector: 'alert-success', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
21
19
|
class: 'alert-icon alert-icon-success'
|
|
22
|
-
}, template: "<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>" }]
|
|
20
|
+
}, standalone: true, template: "<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>" }]
|
|
23
21
|
}] });
|
|
24
22
|
|
|
25
23
|
var AlertEnum;
|
|
@@ -32,35 +30,35 @@ var AlertEnum;
|
|
|
32
30
|
|
|
33
31
|
class AlertInfoComponent {
|
|
34
32
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertInfoComponent, selector: "alert-info", host: { classAttribute: "alert-icon alert-icon-info" }, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
33
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertInfoComponent, isStandalone: true, selector: "alert-info", host: { classAttribute: "alert-icon alert-icon-info" }, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
36
34
|
}
|
|
37
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertInfoComponent, decorators: [{
|
|
38
36
|
type: Component,
|
|
39
37
|
args: [{ selector: 'alert-info', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
40
38
|
class: 'alert-icon alert-icon-info'
|
|
41
|
-
}, template: "" }]
|
|
39
|
+
}, standalone: true, template: "" }]
|
|
42
40
|
}] });
|
|
43
41
|
|
|
44
42
|
class WarningComponent {
|
|
45
43
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: WarningComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
46
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: WarningComponent, selector: "alert-warning", host: { classAttribute: "alert-icon alert-icon-warning " }, ngImport: i0, template: "<span class=\"alert-icon-warning-body\">\r\n <span class=\"alert-icon-warning-dot\"></span>\r\n</span>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: WarningComponent, isStandalone: true, selector: "alert-warning", host: { classAttribute: "alert-icon alert-icon-warning " }, ngImport: i0, template: "<span class=\"alert-icon-warning-body\">\r\n <span class=\"alert-icon-warning-dot\"></span>\r\n</span>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
47
45
|
}
|
|
48
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: WarningComponent, decorators: [{
|
|
49
47
|
type: Component,
|
|
50
48
|
args: [{ selector: 'alert-warning', host: {
|
|
51
49
|
class: 'alert-icon alert-icon-warning '
|
|
52
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<span class=\"alert-icon-warning-body\">\r\n <span class=\"alert-icon-warning-dot\"></span>\r\n</span>" }]
|
|
50
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, template: "<span class=\"alert-icon-warning-body\">\r\n <span class=\"alert-icon-warning-dot\"></span>\r\n</span>" }]
|
|
53
51
|
}] });
|
|
54
52
|
|
|
55
53
|
class ErrorComponent {
|
|
56
54
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ErrorComponent, selector: "alert-error", host: { classAttribute: "alert-icon alert-icon-error" }, ngImport: i0, template: "<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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
55
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ErrorComponent, isStandalone: true, selector: "alert-error", host: { classAttribute: "alert-icon alert-icon-error" }, ngImport: i0, template: "<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>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
58
56
|
}
|
|
59
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ErrorComponent, decorators: [{
|
|
60
58
|
type: Component,
|
|
61
59
|
args: [{ selector: 'alert-error', host: {
|
|
62
60
|
class: 'alert-icon alert-icon-error'
|
|
63
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<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>" }]
|
|
61
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<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>" }]
|
|
64
62
|
}] });
|
|
65
63
|
|
|
66
64
|
const alertComponents = [
|
|
@@ -87,11 +85,11 @@ class AlertOkButtonComponent {
|
|
|
87
85
|
this.click = new EventEmitter();
|
|
88
86
|
}
|
|
89
87
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertOkButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
90
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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] ", exportAs: ["matButton"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
88
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertOkButtonComponent, isStandalone: true, 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: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
91
89
|
}
|
|
92
90
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertOkButtonComponent, decorators: [{
|
|
93
91
|
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>" }]
|
|
92
|
+
args: [{ selector: 'alert-ok-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, TranslateModule], template: "<button mat-raised-button color=\"primary\" (click)=\"click.emit($event)\">{{'general.ok' | translate}}</button>" }]
|
|
95
93
|
}], propDecorators: { click: [{
|
|
96
94
|
type: Output
|
|
97
95
|
}] } });
|
|
@@ -101,11 +99,11 @@ class AlertCancelButtonComponent {
|
|
|
101
99
|
this.click = new EventEmitter();
|
|
102
100
|
}
|
|
103
101
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertCancelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
104
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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] ", exportAs: ["matButton"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
102
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertCancelButtonComponent, isStandalone: true, 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: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
105
103
|
}
|
|
106
104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertCancelButtonComponent, decorators: [{
|
|
107
105
|
type: Component,
|
|
108
|
-
args: [{ selector: 'alert-cancel-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button mat-raised-button (click)=\"click.emit($event)\">{{'general.cancel' | translate}}</button>" }]
|
|
106
|
+
args: [{ selector: 'alert-cancel-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, TranslateModule], template: "<button mat-raised-button (click)=\"click.emit($event)\">{{'general.cancel' | translate}}</button>" }]
|
|
109
107
|
}], propDecorators: { click: [{
|
|
110
108
|
type: Output
|
|
111
109
|
}] } });
|
|
@@ -160,11 +158,16 @@ class DialogAlertComponent {
|
|
|
160
158
|
this.dialogRef.close({ data: this.data, result });
|
|
161
159
|
}
|
|
162
160
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogAlertComponent, deps: [{ token: i1$1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
163
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
161
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DialogAlertComponent, isStandalone: true, selector: "dialog-alert", viewQueries: [{ propertyName: "appDynamic", predicate: DynamicDirective, descendants: true }], ngImport: i0, template: "<ng-template craftsjsDynamic name=\"alert-icon\"></ng-template>\r\n@if (data?.title) {\r\n <div class=\"alert-title\">\r\n <span>\r\n {{data.title | translate}}\r\n </span>\r\n </div>\r\n}\r\n@if (data?.text) {\r\n <div class=\"alert-text\">\r\n <span>\r\n {{data.text | translate}}\r\n </span>\r\n </div>\r\n}\r\n<ng-template craftsjsDynamic name=\"alert-body\"></ng-template>\r\n@if (!data?.hiddenButtons) {\r\n <div class=\"alert-footer\">\r\n @if (!data?.customButtonComponent) {\r\n <alert-ok-button (click)=\"buttonClick('ok')\">\r\n </alert-ok-button>\r\n }\r\n @if (!data?.customButtonComponent && data?.showCancelButton) {\r\n <alert-cancel-button\r\n (click)=\"buttonClick('cancel')\">\r\n </alert-cancel-button>\r\n }\r\n </div>\r\n}\r\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: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "directive", type: 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
164
162
|
}
|
|
165
163
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogAlertComponent, decorators: [{
|
|
166
164
|
type: Component,
|
|
167
|
-
args: [{ selector: 'dialog-alert', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None,
|
|
165
|
+
args: [{ selector: 'dialog-alert', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [
|
|
166
|
+
TranslateModule,
|
|
167
|
+
DynamicDirective,
|
|
168
|
+
AlertOkButtonComponent,
|
|
169
|
+
AlertCancelButtonComponent
|
|
170
|
+
], template: "<ng-template craftsjsDynamic name=\"alert-icon\"></ng-template>\r\n@if (data?.title) {\r\n <div class=\"alert-title\">\r\n <span>\r\n {{data.title | translate}}\r\n </span>\r\n </div>\r\n}\r\n@if (data?.text) {\r\n <div class=\"alert-text\">\r\n <span>\r\n {{data.text | translate}}\r\n </span>\r\n </div>\r\n}\r\n<ng-template craftsjsDynamic name=\"alert-body\"></ng-template>\r\n@if (!data?.hiddenButtons) {\r\n <div class=\"alert-footer\">\r\n @if (!data?.customButtonComponent) {\r\n <alert-ok-button (click)=\"buttonClick('ok')\">\r\n </alert-ok-button>\r\n }\r\n @if (!data?.customButtonComponent && data?.showCancelButton) {\r\n <alert-cancel-button\r\n (click)=\"buttonClick('cancel')\">\r\n </alert-cancel-button>\r\n }\r\n </div>\r\n}\r\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
171
|
}], ctorParameters: () => [{ type: i1$1.MatDialogRef }, { type: undefined, decorators: [{
|
|
169
172
|
type: Inject,
|
|
170
173
|
args: [MAT_DIALOG_DATA]
|
|
@@ -242,22 +245,26 @@ class AlertModule {
|
|
|
242
245
|
};
|
|
243
246
|
}
|
|
244
247
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
245
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: AlertModule,
|
|
248
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: AlertModule, imports: [CommonModule,
|
|
249
|
+
TranslateModule,
|
|
250
|
+
MatButtonModule,
|
|
251
|
+
MatDialogModule,
|
|
252
|
+
// standalone components used by consumers or inside the dialog
|
|
253
|
+
DialogAlertComponent,
|
|
246
254
|
AlertSuccessComponent,
|
|
247
255
|
AlertInfoComponent,
|
|
248
256
|
WarningComponent,
|
|
249
257
|
ErrorComponent,
|
|
250
258
|
AlertOkButtonComponent,
|
|
251
|
-
AlertCancelButtonComponent],
|
|
252
|
-
TranslateModule,
|
|
253
|
-
MatButtonModule,
|
|
254
|
-
CoreModule,
|
|
255
|
-
MatDialogModule], exports: [DialogAlertComponent] }); }
|
|
259
|
+
AlertCancelButtonComponent], exports: [DialogAlertComponent] }); }
|
|
256
260
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertModule, imports: [CommonModule,
|
|
257
261
|
TranslateModule,
|
|
258
262
|
MatButtonModule,
|
|
259
|
-
|
|
260
|
-
|
|
263
|
+
MatDialogModule,
|
|
264
|
+
// standalone components used by consumers or inside the dialog
|
|
265
|
+
DialogAlertComponent,
|
|
266
|
+
AlertOkButtonComponent,
|
|
267
|
+
AlertCancelButtonComponent] }); }
|
|
261
268
|
}
|
|
262
269
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertModule, decorators: [{
|
|
263
270
|
type: NgModule,
|
|
@@ -266,10 +273,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
266
273
|
CommonModule,
|
|
267
274
|
TranslateModule,
|
|
268
275
|
MatButtonModule,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
],
|
|
272
|
-
declarations: [
|
|
276
|
+
MatDialogModule,
|
|
277
|
+
// standalone components used by consumers or inside the dialog
|
|
273
278
|
DialogAlertComponent,
|
|
274
279
|
AlertSuccessComponent,
|
|
275
280
|
AlertInfoComponent,
|
|
@@ -278,12 +283,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
278
283
|
AlertOkButtonComponent,
|
|
279
284
|
AlertCancelButtonComponent
|
|
280
285
|
],
|
|
286
|
+
declarations: [],
|
|
281
287
|
exports: [
|
|
282
288
|
DialogAlertComponent
|
|
283
289
|
]
|
|
284
290
|
}]
|
|
285
291
|
}] });
|
|
286
292
|
|
|
293
|
+
/**
|
|
294
|
+
* Standalone provider for CraftsJS Alert.
|
|
295
|
+
* - Provides MatDialog infrastructure and AlertService.
|
|
296
|
+
*/
|
|
297
|
+
function provideCraftsjsAlert() {
|
|
298
|
+
return makeEnvironmentProviders([
|
|
299
|
+
importProvidersFrom(MatDialogModule),
|
|
300
|
+
AlertService
|
|
301
|
+
]);
|
|
302
|
+
}
|
|
303
|
+
|
|
287
304
|
/*
|
|
288
305
|
* Public API Surface of alert
|
|
289
306
|
*/
|
|
@@ -292,5 +309,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
292
309
|
* Generated bundle index. Do not edit.
|
|
293
310
|
*/
|
|
294
311
|
|
|
295
|
-
export { AlertCancelButtonComponent, AlertEnum, AlertInfoComponent, AlertModule, AlertOkButtonComponent, AlertService, AlertSuccessComponent, CRAFTSJS_ALERT_DATA, DialogAlertComponent, ErrorComponent, WarningComponent, alertComponents };
|
|
312
|
+
export { AlertCancelButtonComponent, AlertEnum, AlertInfoComponent, AlertModule, AlertOkButtonComponent, AlertService, AlertSuccessComponent, CRAFTSJS_ALERT_DATA, DialogAlertComponent, ErrorComponent, WarningComponent, alertComponents, provideCraftsjsAlert };
|
|
296
313
|
//# sourceMappingURL=craftsjs-alert.mjs.map
|
|
@@ -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":["i2","i4.AlertOkButtonComponent","i5.AlertCancelButtonComponent","i6","i1"],"mappings":";;;;;;;;;;;;;MAYa,qBAAqB,CAAA;+GAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,qBAAqB,gHCZlC,uQAGmD,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ACV,oBAAoB;wBACpB,qBAAqB;wBACrB,kBAAkB;wBAClB,gBAAgB;wBAChB,cAAc;wBACd,sBAAsB;wBACtB;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL;AACH;AACJ,iBAAA;;;ACrCD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
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/lib/alert.providers.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 standalone: true\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 standalone: true\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 standalone: true\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 standalone: true\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\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { TranslateModule } from '@ngx-translate/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 standalone: true,\r\n imports: [MatButtonModule, TranslateModule]\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\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { TranslateModule } from '@ngx-translate/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 standalone: true,\r\n imports: [MatButtonModule, TranslateModule]\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\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { AlertOkButtonComponent } from './components/buttons/alert-ok-button/alert-ok-button.component';\r\nimport { AlertCancelButtonComponent } from './components/buttons/alert-cancel-button/alert-cancel-button.component';\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 standalone: true,\r\n imports: [\r\n TranslateModule,\r\n DynamicDirective,\r\n AlertOkButtonComponent,\r\n AlertCancelButtonComponent\r\n]\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@if (data?.title) {\r\n <div class=\"alert-title\">\r\n <span>\r\n {{data.title | translate}}\r\n </span>\r\n </div>\r\n}\r\n@if (data?.text) {\r\n <div class=\"alert-text\">\r\n <span>\r\n {{data.text | translate}}\r\n </span>\r\n </div>\r\n}\r\n<ng-template craftsjsDynamic name=\"alert-body\"></ng-template>\r\n@if (!data?.hiddenButtons) {\r\n <div class=\"alert-footer\">\r\n @if (!data?.customButtonComponent) {\r\n <alert-ok-button (click)=\"buttonClick('ok')\">\r\n </alert-ok-button>\r\n }\r\n @if (!data?.customButtonComponent && data?.showCancelButton) {\r\n <alert-cancel-button\r\n (click)=\"buttonClick('cancel')\">\r\n </alert-cancel-button>\r\n }\r\n </div>\r\n}\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 { 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 MatDialogModule,\r\n // standalone components used by consumers or inside the dialog\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 declarations: [],\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","import { EnvironmentProviders, importProvidersFrom, makeEnvironmentProviders } from '@angular/core';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { AlertService } from './services/alert.service';\r\n\r\n/**\r\n * Standalone provider for CraftsJS Alert.\r\n * - Provides MatDialog infrastructure and AlertService.\r\n */\r\nexport function provideCraftsjsAlert(): EnvironmentProviders {\r\n return makeEnvironmentProviders([\r\n importProvidersFrom(MatDialogModule),\r\n AlertService\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\nexport * from './lib/alert.providers';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;MAaa,qBAAqB,CAAA;+GAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,qBAAqB,oICblC,uQAGmD,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;;4FDUtC,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAXjC,SAAS;+BACE,eAAe,EAAA,eAAA,EAGR,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,KAAK,EAAE;AACR,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,QAAA,EAAA,uQAAA,EAAA;;;IEXN;AAAZ,CAAA,UAAY,SAAS,EAAA;AACjB,IAAA,SAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,SAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,SAAA,CAAA,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,KAAA,CAAC;AACJ;;ACbA;;AAEG;;ACFH;;AAEG;;;;"}
|
package/lib/alert.module.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "
|
|
4
|
-
import * as i2 from "
|
|
5
|
-
import * as i3 from "
|
|
6
|
-
import * as i4 from "
|
|
7
|
-
import * as i5 from "./components/dialog-alert/
|
|
8
|
-
import * as i6 from "./components/dialog-alert/components/
|
|
9
|
-
import * as i7 from "./components/dialog-alert/components/
|
|
10
|
-
import * as i8 from "
|
|
11
|
-
import * as i9 from "
|
|
12
|
-
import * as i10 from "
|
|
13
|
-
import * as i11 from "
|
|
14
|
-
import * as i12 from "@angular/material/dialog";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@ngx-translate/core";
|
|
5
|
+
import * as i3 from "@angular/material/button";
|
|
6
|
+
import * as i4 from "@angular/material/dialog";
|
|
7
|
+
import * as i5 from "./components/dialog-alert/dialog-alert.component";
|
|
8
|
+
import * as i6 from "./components/dialog-alert/components/alert-success/alert-success.component";
|
|
9
|
+
import * as i7 from "./components/dialog-alert/components/alert-info/alert-info.component";
|
|
10
|
+
import * as i8 from "./components/dialog-alert/components/warning/warning.component";
|
|
11
|
+
import * as i9 from "./components/dialog-alert/components/error/error.component";
|
|
12
|
+
import * as i10 from "./components/dialog-alert/components/buttons/alert-ok-button/alert-ok-button.component";
|
|
13
|
+
import * as i11 from "./components/dialog-alert/components/buttons/alert-cancel-button/alert-cancel-button.component";
|
|
15
14
|
export declare class AlertModule {
|
|
16
15
|
static forRoot(): ModuleWithProviders<AlertModule>;
|
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, never, [typeof i1.CommonModule, typeof i2.TranslateModule, typeof i3.MatButtonModule, typeof i4.MatDialogModule, typeof i5.DialogAlertComponent, typeof i6.AlertSuccessComponent, typeof i7.AlertInfoComponent, typeof i8.WarningComponent, typeof i9.ErrorComponent, typeof i10.AlertOkButtonComponent, typeof i11.AlertCancelButtonComponent], [typeof i5.DialogAlertComponent]>;
|
|
19
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
|
|
20
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class AlertInfoComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertInfoComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertInfoComponent, "alert-info", never, {}, {}, never, never,
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertInfoComponent, "alert-info", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class AlertSuccessComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertSuccessComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertSuccessComponent, "alert-success", never, {}, {}, never, never,
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertSuccessComponent, "alert-success", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class AlertCancelButtonComponent {
|
|
4
4
|
click: EventEmitter<any>;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertCancelButtonComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertCancelButtonComponent, "alert-cancel-button", never, {}, { "click": "click"; }, never, never,
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertCancelButtonComponent, "alert-cancel-button", never, {}, { "click": "click"; }, never, never, true, never>;
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class AlertOkButtonComponent {
|
|
4
4
|
click: EventEmitter<any>;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertOkButtonComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertOkButtonComponent, "alert-ok-button", never, {}, { "click": "click"; }, never, never,
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertOkButtonComponent, "alert-ok-button", never, {}, { "click": "click"; }, never, never, true, never>;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ErrorComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "alert-error", never, {}, {}, never, never,
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "alert-error", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class WarningComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<WarningComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WarningComponent, "alert-warning", never, {}, {}, never, never,
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WarningComponent, "alert-warning", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|
|
@@ -16,5 +16,5 @@ export declare class DialogAlertComponent implements OnInit, AfterViewInit {
|
|
|
16
16
|
private createInjector;
|
|
17
17
|
buttonClick(result: string): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogAlertComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogAlertComponent, "dialog-alert", never, {}, {}, never, never,
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogAlertComponent, "dialog-alert", never, {}, {}, never, never, true, never>;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@craftsjs/alert",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"author": "craftsjs",
|
|
5
5
|
"description": "Material alert library for angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"@angular/cdk": ">= 18.0.0 < 19.0.0",
|
|
13
13
|
"@angular/animations": ">= 18.0.0 < 19.0.0",
|
|
14
14
|
"@ngx-translate/core": ">= 14.0.0 < 17.0.0",
|
|
15
|
-
"@craftsjs/core": ">=6.
|
|
16
|
-
"rxjs": "
|
|
15
|
+
"@craftsjs/core": ">=6.1.0 < 7.0.0",
|
|
16
|
+
"rxjs": "6.6.3"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
package/public-api.d.ts
CHANGED