@bitblit/ngx-acute-common 5.0.562-alpha → 5.0.566-alpha
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.
|
@@ -3,15 +3,17 @@ import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
|
3
3
|
import { Logger } from '@bitblit/ratchet-common/logger/logger';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { AsyncPipe } from '@angular/common';
|
|
6
|
+
import { ButtonModule } from "primeng/button";
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
import * as i1 from "primeng/dynamicdialog";
|
|
9
|
+
import * as i2 from "primeng/button";
|
|
8
10
|
export class AlertComponent {
|
|
9
11
|
cfg;
|
|
10
12
|
ref;
|
|
11
13
|
constructor(cfg, ref) {
|
|
12
14
|
this.cfg = cfg;
|
|
13
15
|
this.ref = ref;
|
|
14
|
-
Logger.info('Creating with %j', this.cfg);
|
|
16
|
+
Logger.info('Creating AlertComponent with %j', this.cfg);
|
|
15
17
|
}
|
|
16
18
|
static showAlert(dialogSvc, message, title = 'Alert') {
|
|
17
19
|
const dlg = dialogSvc.open(AlertComponent, {
|
|
@@ -19,28 +21,38 @@ export class AlertComponent {
|
|
|
19
21
|
message: message instanceof BehaviorSubject ? message : new BehaviorSubject(message),
|
|
20
22
|
},
|
|
21
23
|
header: title,
|
|
24
|
+
modal: true,
|
|
25
|
+
maximizable: false,
|
|
26
|
+
position: 'top'
|
|
22
27
|
});
|
|
23
28
|
return dlg;
|
|
24
29
|
}
|
|
25
30
|
static ɵfac = function AlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertComponent)(i0.ɵɵdirectiveInject(i1.DynamicDialogConfig), i0.ɵɵdirectiveInject(i1.DynamicDialogRef)); };
|
|
26
|
-
static ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["ngx-acute-common-alert"]], decls:
|
|
27
|
-
i0.ɵɵelementStart(0, "div")(1, "pre");
|
|
31
|
+
static ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["ngx-acute-common-alert"]], decls: 6, vars: 3, consts: [[2, "display", "flex", "flex-direction", "column", "width", "33vw", "max-height", "25vh", "gap", "5px"], [2, "width", "30vw", "max-height", "80%", "white-space", "pre-wrap"], [2, "display", "flex", "flex-direction", "row", "justify-content", "flex-end"], ["label", "Ok", "severity", "primary", 3, "click"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "pre", 1);
|
|
28
33
|
i0.ɵɵtext(2);
|
|
29
34
|
i0.ɵɵpipe(3, "async");
|
|
30
|
-
i0.ɵɵelementEnd()
|
|
35
|
+
i0.ɵɵelementEnd();
|
|
36
|
+
i0.ɵɵelementStart(4, "div", 2)(5, "p-button", 3);
|
|
37
|
+
i0.ɵɵlistener("click", function AlertComponent_Template_p_button_click_5_listener() { return ctx.ref.close(); });
|
|
38
|
+
i0.ɵɵelementEnd()()();
|
|
31
39
|
} if (rf & 2) {
|
|
32
40
|
i0.ɵɵadvance(2);
|
|
33
41
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, ctx.cfg.data.message));
|
|
34
|
-
} }, dependencies: [AsyncPipe], encapsulation: 2 });
|
|
42
|
+
} }, dependencies: [AsyncPipe, ButtonModule, i2.Button], encapsulation: 2 });
|
|
35
43
|
}
|
|
36
44
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertComponent, [{
|
|
37
45
|
type: Component,
|
|
38
46
|
args: [{
|
|
39
47
|
selector: 'ngx-acute-common-alert',
|
|
40
|
-
template: '<div
|
|
48
|
+
template: '<div style="display: flex; flex-direction:column; width: 33vw; max-height: 25vh; gap: 5px">' +
|
|
49
|
+
'<pre style="width: 30vw; max-height: 80%;white-space: pre-wrap">{{cfg.data.message | async}}</pre>' +
|
|
50
|
+
'<div style="display:flex; flex-direction: row; justify-content: flex-end">' +
|
|
51
|
+
'<p-button label="Ok" severity="primary" (click)="ref.close()" />' +
|
|
52
|
+
'</div></div>',
|
|
41
53
|
standalone: true,
|
|
42
|
-
imports: [AsyncPipe],
|
|
54
|
+
imports: [AsyncPipe, ButtonModule],
|
|
43
55
|
}]
|
|
44
56
|
}], () => [{ type: i1.DynamicDialogConfig }, { type: i1.DynamicDialogRef }], null); })();
|
|
45
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertComponent, { className: "AlertComponent", filePath: "components/dialogs/alert/alert.component.ts", lineNumber:
|
|
57
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertComponent, { className: "AlertComponent", filePath: "components/dialogs/alert/alert.component.ts", lineNumber: 18 }); })();
|
|
46
58
|
//# sourceMappingURL=alert.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.component.js","sourceRoot":"","sources":["../../../../src/components/dialogs/alert/alert.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAiB,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC
|
|
1
|
+
{"version":3,"file":"alert.component.js","sourceRoot":"","sources":["../../../../src/components/dialogs/alert/alert.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAiB,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,eAAe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|
"description": "Library for using angular",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@angular/platform-browser": "19.0.6",
|
|
44
44
|
"@angular/platform-browser-dynamic": "19.0.6",
|
|
45
45
|
"@angular/router": "19.0.6",
|
|
46
|
-
"@bitblit/ratchet-common": "5.0.
|
|
47
|
-
"@bitblit/ratchet-graphql": "5.0.
|
|
46
|
+
"@bitblit/ratchet-common": "5.0.566-alpha",
|
|
47
|
+
"@bitblit/ratchet-graphql": "5.0.566-alpha",
|
|
48
48
|
"primeflex": "3.3.1",
|
|
49
49
|
"primeicons": "7.0.0",
|
|
50
|
-
"primeng": "19.0.
|
|
50
|
+
"primeng": "19.0.5",
|
|
51
51
|
"rxjs": "7.8.1",
|
|
52
52
|
"zone.js": "0.15.0"
|
|
53
53
|
},
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
"@angular/platform-browser": "^19.0.6",
|
|
61
61
|
"@angular/platform-browser-dynamic": "^19.0.6",
|
|
62
62
|
"@angular/router": "^19.0.6",
|
|
63
|
-
"@bitblit/ratchet-common": "5.0.
|
|
64
|
-
"@bitblit/ratchet-graphql": "5.0.
|
|
63
|
+
"@bitblit/ratchet-common": "5.0.566-alpha",
|
|
64
|
+
"@bitblit/ratchet-graphql": "5.0.566-alpha",
|
|
65
65
|
"primeflex": "3.3.1",
|
|
66
66
|
"primeicons": "7.0.0",
|
|
67
|
-
"primeng": "19.0.
|
|
67
|
+
"primeng": "19.0.5",
|
|
68
68
|
"rxjs": "7.8.1",
|
|
69
69
|
"zone.js": "0.15.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@angular/compiler-cli": "19.0.6",
|
|
73
|
-
"@bitblit/ratchet-node-only": "5.0.
|
|
73
|
+
"@bitblit/ratchet-node-only": "5.0.566-alpha"
|
|
74
74
|
}
|
|
75
75
|
}
|