@bitblit/ngx-acute-common 5.1.598-alpha → 5.1.601-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.
- package/lib/components/process-monitor/process-monitor.component.d.ts +10 -0
- package/lib/components/process-monitor/process-monitor.component.js +158 -0
- package/lib/components/process-monitor/process-monitor.component.js.map +1 -0
- package/lib/index.d.ts +4 -1
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/lib/services/graphql-query.service.d.ts +6 -8
- package/lib/services/graphql-query.service.js +22 -42
- package/lib/services/graphql-query.service.js.map +1 -1
- package/lib/services/process-monitor/process-holder.d.ts +7 -0
- package/lib/services/process-monitor/process-holder.js +2 -0
- package/lib/services/process-monitor/process-holder.js.map +1 -0
- package/lib/services/process-monitor/process-monitor-service.d.ts +25 -0
- package/lib/services/process-monitor/process-monitor-service.js +132 -0
- package/lib/services/process-monitor/process-monitor-service.js.map +1 -0
- package/lib/services/process-monitor/process-monitor-state.d.ts +6 -0
- package/lib/services/process-monitor/process-monitor-state.js +2 -0
- package/lib/services/process-monitor/process-monitor-state.js.map +1 -0
- package/package.json +6 -6
- package/lib/components/dialogs/block-ui/block-ui.component.d.ts +0 -12
- package/lib/components/dialogs/block-ui/block-ui.component.js +0 -79
- package/lib/components/dialogs/block-ui/block-ui.component.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProcessMonitorService } from "../../services/process-monitor/process-monitor-service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProcessMonitorComponent {
|
|
4
|
+
processMonitorService: ProcessMonitorService;
|
|
5
|
+
modalHeader: string;
|
|
6
|
+
normalHeader: string;
|
|
7
|
+
constructor(processMonitorService: ProcessMonitorService);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProcessMonitorComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProcessMonitorComponent, "ngx-acute-process-monitor", never, { "modalHeader": { "alias": "modalHeader"; "required": false; }; "normalHeader": { "alias": "normalHeader"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|
3
|
+
import { ContextMenuModule } from "primeng/contextmenu";
|
|
4
|
+
import { CardModule } from "primeng/card";
|
|
5
|
+
import { MultiSelectModule } from "primeng/multiselect";
|
|
6
|
+
import { TableModule } from "primeng/table";
|
|
7
|
+
import { PanelModule } from "primeng/panel";
|
|
8
|
+
import { SidebarModule } from "primeng/sidebar";
|
|
9
|
+
import { InputGroupAddonModule } from "primeng/inputgroupaddon";
|
|
10
|
+
import { InputGroupModule } from "primeng/inputgroup";
|
|
11
|
+
import { InputSwitchModule } from "primeng/inputswitch";
|
|
12
|
+
import { AsyncPipe, NgForOf, NgIf } from "@angular/common";
|
|
13
|
+
import { ProgressBar } from "primeng/progressbar";
|
|
14
|
+
import { Dialog } from "primeng/dialog";
|
|
15
|
+
import { ProcessMonitorService } from "../../services/process-monitor/process-monitor-service";
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
import * as i1 from "../../services/process-monitor/process-monitor-service";
|
|
18
|
+
const _c0 = () => ({ width: "90rem" });
|
|
19
|
+
function ProcessMonitorComponent_div_1_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵelementStart(0, "div", 8);
|
|
21
|
+
i0.ɵɵelement(1, "p-progress-bar", 9);
|
|
22
|
+
i0.ɵɵpipe(2, "async");
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
} if (rf & 2) {
|
|
25
|
+
const pm_r1 = i0.ɵɵnextContext().$implicit;
|
|
26
|
+
i0.ɵɵadvance();
|
|
27
|
+
i0.ɵɵproperty("value", i0.ɵɵpipeBind1(2, 1, pm_r1).percentComplete);
|
|
28
|
+
} }
|
|
29
|
+
function ProcessMonitorComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "div", 4)(2, "div", 5);
|
|
31
|
+
i0.ɵɵtext(3);
|
|
32
|
+
i0.ɵɵpipe(4, "async");
|
|
33
|
+
i0.ɵɵelementEnd();
|
|
34
|
+
i0.ɵɵelementStart(5, "div", 6);
|
|
35
|
+
i0.ɵɵtext(6);
|
|
36
|
+
i0.ɵɵpipe(7, "async");
|
|
37
|
+
i0.ɵɵelementEnd()();
|
|
38
|
+
i0.ɵɵtemplate(8, ProcessMonitorComponent_div_1_div_8_Template, 3, 3, "div", 7);
|
|
39
|
+
i0.ɵɵpipe(9, "async");
|
|
40
|
+
i0.ɵɵelementEnd();
|
|
41
|
+
} if (rf & 2) {
|
|
42
|
+
const pm_r1 = ctx.$implicit;
|
|
43
|
+
i0.ɵɵadvance(3);
|
|
44
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, pm_r1).label);
|
|
45
|
+
i0.ɵɵadvance(3);
|
|
46
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 5, pm_r1).detail);
|
|
47
|
+
i0.ɵɵadvance(2);
|
|
48
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(9, 7, pm_r1).percentComplete);
|
|
49
|
+
} }
|
|
50
|
+
function ProcessMonitorComponent_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
52
|
+
i0.ɵɵtext(1);
|
|
53
|
+
i0.ɵɵpipe(2, "async");
|
|
54
|
+
i0.ɵɵelementEnd();
|
|
55
|
+
} if (rf & 2) {
|
|
56
|
+
const pm_r2 = i0.ɵɵnextContext().$implicit;
|
|
57
|
+
i0.ɵɵadvance();
|
|
58
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, pm_r2).detail);
|
|
59
|
+
} }
|
|
60
|
+
function ProcessMonitorComponent_div_3_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
61
|
+
i0.ɵɵelementStart(0, "div", 8);
|
|
62
|
+
i0.ɵɵelement(1, "p-progress-bar", 9);
|
|
63
|
+
i0.ɵɵpipe(2, "async");
|
|
64
|
+
i0.ɵɵelementEnd();
|
|
65
|
+
} if (rf & 2) {
|
|
66
|
+
const pm_r2 = i0.ɵɵnextContext().$implicit;
|
|
67
|
+
i0.ɵɵadvance();
|
|
68
|
+
i0.ɵɵproperty("value", i0.ɵɵpipeBind1(2, 1, pm_r2).percentComplete);
|
|
69
|
+
} }
|
|
70
|
+
function ProcessMonitorComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
71
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "div", 4)(2, "div", 5);
|
|
72
|
+
i0.ɵɵtext(3);
|
|
73
|
+
i0.ɵɵpipe(4, "async");
|
|
74
|
+
i0.ɵɵelementEnd();
|
|
75
|
+
i0.ɵɵtemplate(5, ProcessMonitorComponent_div_3_div_5_Template, 3, 3, "div", 10);
|
|
76
|
+
i0.ɵɵpipe(6, "async");
|
|
77
|
+
i0.ɵɵelementEnd();
|
|
78
|
+
i0.ɵɵtemplate(7, ProcessMonitorComponent_div_3_div_7_Template, 3, 3, "div", 7);
|
|
79
|
+
i0.ɵɵpipe(8, "async");
|
|
80
|
+
i0.ɵɵelementEnd();
|
|
81
|
+
} if (rf & 2) {
|
|
82
|
+
const pm_r2 = ctx.$implicit;
|
|
83
|
+
i0.ɵɵadvance(3);
|
|
84
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, pm_r2).label);
|
|
85
|
+
i0.ɵɵadvance(2);
|
|
86
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(6, 5, pm_r2).detail);
|
|
87
|
+
i0.ɵɵadvance(2);
|
|
88
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(8, 7, pm_r2).percentComplete);
|
|
89
|
+
} }
|
|
90
|
+
export class ProcessMonitorComponent {
|
|
91
|
+
processMonitorService;
|
|
92
|
+
modalHeader = null;
|
|
93
|
+
normalHeader = null;
|
|
94
|
+
constructor(processMonitorService) {
|
|
95
|
+
this.processMonitorService = processMonitorService;
|
|
96
|
+
}
|
|
97
|
+
static ɵfac = function ProcessMonitorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ProcessMonitorComponent)(i0.ɵɵdirectiveInject(i1.ProcessMonitorService)); };
|
|
98
|
+
static ɵcmp = i0.ɵɵdefineComponent({ type: ProcessMonitorComponent, selectors: [["ngx-acute-process-monitor"]], inputs: { modalHeader: "modalHeader", normalHeader: "normalHeader" }, decls: 4, vars: 16, consts: [["position", "bottom", 3, "header", "closable", "modal", "visible"], ["style", "display: flex; flex-direction: row; width: 100%", 4, "ngFor", "ngForOf"], ["position", "center", 3, "header", "modal", "closable", "visible"], [2, "display", "flex", "flex-direction", "row", "width", "100%"], [2, "display", "flex", "flex-direction", "column", "width", "50%", "gap", "2px"], [2, "font-weight", "bolder"], [2, "font-style", "italic", "margin-left", "15px"], ["style", "min-width: 50vw", 4, "ngIf"], [2, "min-width", "50vw"], [3, "value"], ["style", "font-style: italic; margin-left: 15px", 4, "ngIf"]], template: function ProcessMonitorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
99
|
+
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
100
|
+
i0.ɵɵtemplate(1, ProcessMonitorComponent_div_1_Template, 10, 9, "div", 1);
|
|
101
|
+
i0.ɵɵelementEnd();
|
|
102
|
+
i0.ɵɵelementStart(2, "p-dialog", 2);
|
|
103
|
+
i0.ɵɵtemplate(3, ProcessMonitorComponent_div_3_Template, 9, 9, "div", 1);
|
|
104
|
+
i0.ɵɵelementEnd();
|
|
105
|
+
} if (rf & 2) {
|
|
106
|
+
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(14, _c0));
|
|
107
|
+
i0.ɵɵproperty("header", ctx.normalHeader)("closable", false)("modal", false)("visible", ctx.processMonitorService.showDisplay);
|
|
108
|
+
i0.ɵɵadvance();
|
|
109
|
+
i0.ɵɵproperty("ngForOf", ctx.processMonitorService.processes);
|
|
110
|
+
i0.ɵɵadvance();
|
|
111
|
+
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(15, _c0));
|
|
112
|
+
i0.ɵɵproperty("header", ctx.modalHeader)("modal", true)("closable", false)("visible", ctx.processMonitorService.showModelDisplay);
|
|
113
|
+
i0.ɵɵadvance();
|
|
114
|
+
i0.ɵɵproperty("ngForOf", ctx.processMonitorService.modalProcesses);
|
|
115
|
+
} }, dependencies: [CardModule,
|
|
116
|
+
MultiSelectModule,
|
|
117
|
+
ContextMenuModule,
|
|
118
|
+
TableModule,
|
|
119
|
+
ReactiveFormsModule,
|
|
120
|
+
PanelModule,
|
|
121
|
+
SidebarModule,
|
|
122
|
+
InputGroupAddonModule,
|
|
123
|
+
InputGroupModule,
|
|
124
|
+
InputSwitchModule,
|
|
125
|
+
FormsModule,
|
|
126
|
+
NgForOf,
|
|
127
|
+
AsyncPipe,
|
|
128
|
+
ProgressBar,
|
|
129
|
+
NgIf,
|
|
130
|
+
Dialog], encapsulation: 2 });
|
|
131
|
+
}
|
|
132
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProcessMonitorComponent, [{
|
|
133
|
+
type: Component,
|
|
134
|
+
args: [{ selector: 'ngx-acute-process-monitor', imports: [
|
|
135
|
+
CardModule,
|
|
136
|
+
MultiSelectModule,
|
|
137
|
+
ContextMenuModule,
|
|
138
|
+
TableModule,
|
|
139
|
+
ReactiveFormsModule,
|
|
140
|
+
PanelModule,
|
|
141
|
+
SidebarModule,
|
|
142
|
+
InputGroupAddonModule,
|
|
143
|
+
InputGroupModule,
|
|
144
|
+
InputSwitchModule,
|
|
145
|
+
FormsModule,
|
|
146
|
+
NgForOf,
|
|
147
|
+
AsyncPipe,
|
|
148
|
+
ProgressBar,
|
|
149
|
+
NgIf,
|
|
150
|
+
Dialog
|
|
151
|
+
], standalone: true, template: "\n\n\n<p-dialog [header]=\"normalHeader\" [closable]=\"false\"\n [modal]=\"false\" [visible]=\"processMonitorService.showDisplay\" position=\"bottom\" [style]=\"{ width: '90rem' }\">\n\n <div style=\"display: flex; flex-direction: row; width: 100%\" *ngFor=\"let pm of processMonitorService.processes\">\n <div style=\"display: flex; flex-direction: column; width: 50%; gap: 2px\">\n <div style=\"font-weight: bolder\">{{(pm | async).label}}</div>\n <div style=\"font-style: italic; margin-left: 15px\">{{(pm | async).detail}}</div>\n </div>\n <div *ngIf=\"(pm | async).percentComplete\" style=\"min-width: 50vw\">\n <p-progress-bar [value]=\"(pm | async).percentComplete\" />\n </div>\n </div>\n\n</p-dialog>\n\n<p-dialog [header]=\"modalHeader\" [modal]=\"true\"\n [closable]=\"false\"\n [visible]=\"processMonitorService.showModelDisplay\" position=\"center\" [style]=\"{ width: '90rem' }\">\n <div style=\"display: flex; flex-direction: row; width: 100%\" *ngFor=\"let pm of processMonitorService.modalProcesses\">\n <div style=\"display: flex; flex-direction: column; width: 50%; gap: 2px\">\n <div style=\"font-weight: bolder\">{{(pm | async).label}}</div>\n <div style=\"font-style: italic; margin-left: 15px\" *ngIf=\"(pm | async).detail\">{{(pm | async).detail}}</div>\n </div>\n <div *ngIf=\"(pm | async).percentComplete\" style=\"min-width: 50vw\">\n <p-progress-bar [value]=\"(pm | async).percentComplete\" />\n </div>\n </div>\n\n</p-dialog>\n" }]
|
|
152
|
+
}], () => [{ type: i1.ProcessMonitorService }], { modalHeader: [{
|
|
153
|
+
type: Input
|
|
154
|
+
}], normalHeader: [{
|
|
155
|
+
type: Input
|
|
156
|
+
}] }); })();
|
|
157
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProcessMonitorComponent, { className: "ProcessMonitorComponent", filePath: "components/process-monitor/process-monitor.component.ts", lineNumber: 41 }); })();
|
|
158
|
+
//# sourceMappingURL=process-monitor.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-monitor.component.js","sourceRoot":"","sources":["../../../src/components/process-monitor/process-monitor.component.ts","../../../src/components/process-monitor/process-monitor.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;;;;;ICH3F,8BAAkE;IAChE,oCAAyD;;IAC3D,iBAAM;;;IADY,cAAsC;IAAtC,mEAAsC;;;IAJtD,AADF,AADF,8BAAgH,aACrC,aACtC;IAAA,YAAsB;;IAAA,iBAAM;IAC7D,8BAAmD;IAAA,YAAuB;;IAC5E,AAD4E,iBAAM,EAC5E;IACN,8EAAkE;;IAGpE,iBAAM;;;IAN+B,eAAsB;IAAtB,uDAAsB;IAC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oBACjB,WAAW;oBACX,mBAAmB;oBACnB,WAAW;oBACX,aAAa;oBACb,qBAAqB;oBACrB,gBAAgB;oBAChB,iBAAiB;oBACjB,WAAW;oBACX,OAAO;oBACP,SAAS;oBACT,WAAW;oBACX,IAAI;oBACJ,MAAM;iBACP,cACW,IAAI;sDAGA,WAAW;kBAA1B,KAAK;YACU,YAAY;kBAA3B,KAAK;;kFAFK,uBAAuB"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './build/ngx-acute-common-info';
|
|
2
2
|
export * from './components/log-display/log-display.component';
|
|
3
3
|
export * from './components/dialogs/alert/alert.component';
|
|
4
|
-
export * from './components/
|
|
4
|
+
export * from './components/process-monitor/process-monitor.component';
|
|
5
5
|
export * from './model/google-analytics-config';
|
|
6
6
|
export * from './pipes/capitalize.pipe';
|
|
7
7
|
export * from './pipes/dollar-formatted.pipe';
|
|
@@ -17,3 +17,6 @@ export * from './services/google-analytics.service';
|
|
|
17
17
|
export * from './services/graphql-query.service';
|
|
18
18
|
export * from './services/local-storage.service';
|
|
19
19
|
export * from './services/window-ref.service';
|
|
20
|
+
export * from './services/process-monitor/process-monitor-service';
|
|
21
|
+
export * from './services/process-monitor/process-holder';
|
|
22
|
+
export * from './services/process-monitor/process-monitor-state';
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './build/ngx-acute-common-info';
|
|
2
2
|
export * from './components/log-display/log-display.component';
|
|
3
3
|
export * from './components/dialogs/alert/alert.component';
|
|
4
|
-
export * from './components/
|
|
4
|
+
export * from './components/process-monitor/process-monitor.component';
|
|
5
5
|
export * from './model/google-analytics-config';
|
|
6
6
|
export * from './pipes/capitalize.pipe';
|
|
7
7
|
export * from './pipes/dollar-formatted.pipe';
|
|
@@ -17,4 +17,7 @@ export * from './services/google-analytics.service';
|
|
|
17
17
|
export * from './services/graphql-query.service';
|
|
18
18
|
export * from './services/local-storage.service';
|
|
19
19
|
export * from './services/window-ref.service';
|
|
20
|
+
export * from './services/process-monitor/process-monitor-service';
|
|
21
|
+
export * from './services/process-monitor/process-holder';
|
|
22
|
+
export * from './services/process-monitor/process-monitor-state';
|
|
20
23
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAE9C,cAAc,gDAAgD,CAAC;AAE/D,cAAc,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAE9C,cAAc,gDAAgD,CAAC;AAE/D,cAAc,4CAA4C,CAAC;AAE3D,cAAc,wDAAwD,CAAC;AAGvE,cAAc,iCAAiC,CAAC;AAEhD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AAEpC,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oDAAoD,CAAC;AACnE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ErrorHandlingApproach } from '@bitblit/ratchet-common/lang/error-handling-approach';
|
|
1
|
+
import { GraphqlRatchet } from "@bitblit/ratchet-graphql/graphql/graphql-ratchet";
|
|
2
|
+
import { AuthorizationStyle } from "@bitblit/ratchet-graphql/graphql/authorization-style";
|
|
3
|
+
import { ErrorHandlingApproach } from "@bitblit/ratchet-common/lang/error-handling-approach";
|
|
4
|
+
import { ProcessMonitorService } from "./process-monitor/process-monitor-service";
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class GraphqlQueryService {
|
|
8
7
|
private graphqlRatchet;
|
|
9
|
-
private
|
|
10
|
-
|
|
11
|
-
constructor(graphqlRatchet: GraphqlRatchet, dialogService: DialogService, messageService: MessageService);
|
|
8
|
+
private processMonitorService;
|
|
9
|
+
constructor(graphqlRatchet: GraphqlRatchet, processMonitorService: ProcessMonitorService);
|
|
12
10
|
executeQuery<T>(queryName: string, variables: any, authStyle?: AuthorizationStyle, errorHandling?: ErrorHandlingApproach): Promise<T | null>;
|
|
13
11
|
executeQueryWithBlock<T>(blockMessage: string, queryName: string, variables: any, authStyle?: AuthorizationStyle, errorHandling?: ErrorHandlingApproach): Promise<T | null>;
|
|
14
12
|
executeMutate<T>(queryName: string, variables: any, authStyle?: AuthorizationStyle, errorHandling?: ErrorHandlingApproach): Promise<T | null>;
|
|
@@ -1,90 +1,70 @@
|
|
|
1
|
-
import { Injectable } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { ErrorRatchet } from '@bitblit/ratchet-common/lang/error-ratchet';
|
|
10
|
-
import { LoggerLevelName } from '@bitblit/ratchet-common/logger/logger-level-name';
|
|
1
|
+
import { Injectable } from "@angular/core";
|
|
2
|
+
import { Logger } from "@bitblit/ratchet-common/logger/logger";
|
|
3
|
+
import { GraphqlRatchet } from "@bitblit/ratchet-graphql/graphql/graphql-ratchet";
|
|
4
|
+
import { AuthorizationStyle } from "@bitblit/ratchet-graphql/graphql/authorization-style";
|
|
5
|
+
import { ErrorHandlingApproach } from "@bitblit/ratchet-common/lang/error-handling-approach";
|
|
6
|
+
import { ErrorRatchet } from "@bitblit/ratchet-common/lang/error-ratchet";
|
|
7
|
+
import { LoggerLevelName } from "@bitblit/ratchet-common/logger/logger-level-name";
|
|
8
|
+
import { ProcessMonitorService } from "./process-monitor/process-monitor-service";
|
|
11
9
|
import * as i0 from "@angular/core";
|
|
12
10
|
import * as i1 from "@bitblit/ratchet-graphql/graphql/graphql-ratchet";
|
|
13
|
-
import * as i2 from "
|
|
14
|
-
import * as i3 from "primeng/api";
|
|
11
|
+
import * as i2 from "./process-monitor/process-monitor-service";
|
|
15
12
|
export class GraphqlQueryService {
|
|
16
13
|
graphqlRatchet;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
constructor(graphqlRatchet, dialogService, messageService) {
|
|
14
|
+
processMonitorService;
|
|
15
|
+
constructor(graphqlRatchet, processMonitorService) {
|
|
20
16
|
this.graphqlRatchet = graphqlRatchet;
|
|
21
|
-
this.
|
|
22
|
-
this.messageService = messageService;
|
|
17
|
+
this.processMonitorService = processMonitorService;
|
|
23
18
|
}
|
|
24
19
|
async executeQuery(queryName, variables, authStyle = AuthorizationStyle.TokenRequired, errorHandling = ErrorHandlingApproach.LogAndPassThru) {
|
|
25
20
|
let rval = null;
|
|
26
|
-
|
|
27
|
-
Logger.info('eq: %j -: %s --: %s ---: %j', queryName, variables);
|
|
21
|
+
Logger.debug('eq: %j -: %s --: %s ---: %j', queryName, variables);
|
|
28
22
|
try {
|
|
29
|
-
rval = await this.graphqlRatchet.executeQuery(queryName, variables, authStyle);
|
|
23
|
+
rval = await this.processMonitorService.monitorProcessSimple(this.graphqlRatchet.executeQuery(queryName, variables, authStyle), 'Running query', false);
|
|
30
24
|
}
|
|
31
25
|
catch (err) {
|
|
32
26
|
ErrorRatchet.handleErrorByApproach(err, errorHandling, LoggerLevelName.error, 'GraphQL Error : %s');
|
|
33
27
|
}
|
|
34
|
-
finally {
|
|
35
|
-
this.messageService.clear();
|
|
36
|
-
}
|
|
37
28
|
return rval;
|
|
38
29
|
}
|
|
39
30
|
async executeQueryWithBlock(blockMessage, queryName, variables, authStyle = AuthorizationStyle.TokenRequired, errorHandling = ErrorHandlingApproach.LogAndPassThru) {
|
|
40
31
|
let rval = null;
|
|
41
|
-
|
|
42
|
-
Logger.info('eqb: %j -: %s --: %s ---: %j', blockMessage, queryName, variables);
|
|
32
|
+
Logger.debug('eqb: %j -: %s --: %s ---: %j', blockMessage, queryName, variables);
|
|
43
33
|
try {
|
|
44
|
-
rval = await
|
|
34
|
+
rval = await this.processMonitorService.monitorProcessSimple(this.graphqlRatchet.executeQuery(queryName, variables, authStyle), blockMessage, true);
|
|
45
35
|
}
|
|
46
36
|
catch (err) {
|
|
47
37
|
ErrorRatchet.handleErrorByApproach(err, errorHandling, LoggerLevelName.error, 'GraphQL Error : %s');
|
|
48
38
|
}
|
|
49
|
-
finally {
|
|
50
|
-
this.messageService.clear();
|
|
51
|
-
}
|
|
52
39
|
return rval;
|
|
53
40
|
}
|
|
54
41
|
async executeMutate(queryName, variables, authStyle = AuthorizationStyle.TokenRequired, errorHandling = ErrorHandlingApproach.LogAndPassThru) {
|
|
55
42
|
let rval = null;
|
|
56
|
-
|
|
57
|
-
Logger.info('eq: %j -: %s --: %s ---: %j', queryName, variables);
|
|
43
|
+
Logger.debug('em: %j -: %s --: %s ---: %j', queryName, variables);
|
|
58
44
|
try {
|
|
59
|
-
rval = await this.graphqlRatchet.executeMutate(queryName, variables, authStyle);
|
|
45
|
+
rval = await this.processMonitorService.monitorProcessSimple(this.graphqlRatchet.executeMutate(queryName, variables, authStyle), 'Running change', false);
|
|
60
46
|
}
|
|
61
47
|
catch (err) {
|
|
62
48
|
ErrorRatchet.handleErrorByApproach(err, errorHandling, LoggerLevelName.error, 'GraphQL Error : %s');
|
|
63
49
|
}
|
|
64
|
-
finally {
|
|
65
|
-
this.messageService.clear();
|
|
66
|
-
}
|
|
67
50
|
return rval;
|
|
68
51
|
}
|
|
69
52
|
async executeMutateWithBlock(blockMessage, queryName, variables, authStyle = AuthorizationStyle.TokenRequired, errorHandling = ErrorHandlingApproach.LogAndPassThru) {
|
|
70
53
|
let rval = null;
|
|
71
|
-
|
|
54
|
+
Logger.debug('emb: %j -: %s --: %s ---: %j', queryName, variables);
|
|
72
55
|
try {
|
|
73
|
-
rval = await
|
|
56
|
+
rval = await this.processMonitorService.monitorProcessSimple(this.graphqlRatchet.executeMutate(queryName, variables, authStyle), blockMessage, true);
|
|
74
57
|
}
|
|
75
58
|
catch (err) {
|
|
76
59
|
ErrorRatchet.handleErrorByApproach(err, errorHandling, LoggerLevelName.error, 'GraphQL Error : %s');
|
|
77
60
|
}
|
|
78
|
-
finally {
|
|
79
|
-
this.messageService.clear();
|
|
80
|
-
}
|
|
81
61
|
return rval;
|
|
82
62
|
}
|
|
83
|
-
static ɵfac = function GraphqlQueryService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GraphqlQueryService)(i0.ɵɵinject(i1.GraphqlRatchet), i0.ɵɵinject(i2.
|
|
63
|
+
static ɵfac = function GraphqlQueryService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GraphqlQueryService)(i0.ɵɵinject(i1.GraphqlRatchet), i0.ɵɵinject(i2.ProcessMonitorService)); };
|
|
84
64
|
static ɵprov = i0.ɵɵdefineInjectable({ token: GraphqlQueryService, factory: GraphqlQueryService.ɵfac, providedIn: 'root' });
|
|
85
65
|
}
|
|
86
66
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GraphqlQueryService, [{
|
|
87
67
|
type: Injectable,
|
|
88
68
|
args: [{ providedIn: 'root' }]
|
|
89
|
-
}], () => [{ type: i1.GraphqlRatchet }, { type: i2.
|
|
69
|
+
}], () => [{ type: i1.GraphqlRatchet }, { type: i2.ProcessMonitorService }], null); })();
|
|
90
70
|
//# sourceMappingURL=graphql-query.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-query.service.js","sourceRoot":"","sources":["../../src/services/graphql-query.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"graphql-query.service.js","sourceRoot":"","sources":["../../src/services/graphql-query.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;;;;AAGlF,MAAM,OAAO,mBAAmB;IAEpB;IACA;IAFV,YACU,cAA8B,EAC9B,qBAA4C;QAD5C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,0BAAqB,GAArB,qBAAqB,CAAuB;IACnD,CAAC;IAEG,KAAK,CAAC,YAAY,CACvB,SAAiB,EACjB,SAAc,EACd,YAAgC,kBAAkB,CAAC,aAAa,EAChE,gBAAuC,qBAAqB,CAAC,cAAc;QAE3E,IAAI,IAAI,GAAa,IAAI,CAAC;QAC1B,MAAM,CAAC,KAAK,CAAC,6BAA6B,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QAElE,IAAI,CAAC;YACH,IAAI,GAAG,MACL,IAAI,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAC,YAAY,CAAI,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;QAClJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,Y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E,CAAC;YACb,YAAY,CAAC,qBAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,eAAe,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC;QACtG,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,sBAAsB,CACjC,YAAoB,EACpB,SAAiB,EACjB,SAAc,EACd,YAAgC,kBAAkB,CAAC,aAAa,EAChE,gBAAuC,qBAAqB,CAAC,cAAc;QAE3E,IAAI,IAAI,GAAa,IAAI,CAAC;QAE1B,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QACnE,IAAI,CAAC;YACH,IAAI,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,oBAAoB,CAC1D,IAAI,CAAC,cAAc,CAAC,aAAa,CAAI,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,EACrE,YAAY,EAAE,IAAI,CAAC,CAAC;QACxB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,YAAY,CAAC,qBAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,eAAe,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC;QACtG,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;6GApFU,mBAAmB;kDAAnB,mBAAmB,WAAnB,mBAAmB,mBADN,MAAM;;iFACnB,mBAAmB;cAD/B,UAAU;eAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-holder.js","sourceRoot":"","sources":["../../../src/services/process-monitor/process-holder.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ProcessMonitorState } from './process-monitor-state';
|
|
2
|
+
import { BehaviorSubject } from "rxjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ProcessMonitorService {
|
|
5
|
+
static readonly DEFAULT_GROUP: string;
|
|
6
|
+
private processMap;
|
|
7
|
+
private modalProcessMap;
|
|
8
|
+
get showDisplay(): boolean;
|
|
9
|
+
get showModelDisplay(): boolean;
|
|
10
|
+
fafMonitorProcessDefaultLabel<T>(promise: Promise<T>, modal?: boolean): void;
|
|
11
|
+
fafMonitorProcessSimple<T>(promise: Promise<T>, label: string | BehaviorSubject<string>, modal?: boolean): void;
|
|
12
|
+
fafMonitorProcess<T>(promise: Promise<T>, descriptor: ProcessMonitorState | BehaviorSubject<ProcessMonitorState>, modal?: boolean): void;
|
|
13
|
+
monitorProcessDefaultLabel<T>(promise: Promise<T>, modal?: boolean): Promise<T>;
|
|
14
|
+
monitorProcessSimple<T>(promise: Promise<T>, label: string | BehaviorSubject<string>, modal?: boolean): Promise<T>;
|
|
15
|
+
monitorProcess<T>(promise: Promise<T>, descriptor: ProcessMonitorState | BehaviorSubject<ProcessMonitorState>, modal?: boolean): Promise<T>;
|
|
16
|
+
private innerMonitorProcess;
|
|
17
|
+
private mapToGroupedProcessList;
|
|
18
|
+
get processes(): BehaviorSubject<ProcessMonitorState>[];
|
|
19
|
+
get modalProcesses(): BehaviorSubject<ProcessMonitorState>[];
|
|
20
|
+
static labelToProcessInput(label: string): ProcessMonitorState;
|
|
21
|
+
static labelSubjectToProcessInput(label: BehaviorSubject<string>): BehaviorSubject<ProcessMonitorState>;
|
|
22
|
+
private defaultInput;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProcessMonitorService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProcessMonitorService>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { RequireRatchet } from "@bitblit/ratchet-common/lang/require-ratchet";
|
|
3
|
+
import { BehaviorSubject } from "rxjs";
|
|
4
|
+
import { StringRatchet } from "@bitblit/ratchet-common/lang/string-ratchet";
|
|
5
|
+
import { No } from "@bitblit/ratchet-common/lang/no";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class ProcessMonitorService {
|
|
8
|
+
static DEFAULT_GROUP = 'Long-Running Process';
|
|
9
|
+
processMap = new Map();
|
|
10
|
+
modalProcessMap = new Map();
|
|
11
|
+
get showDisplay() {
|
|
12
|
+
return this.processMap.size > 0;
|
|
13
|
+
}
|
|
14
|
+
get showModelDisplay() {
|
|
15
|
+
return this.modalProcessMap.size > 0;
|
|
16
|
+
}
|
|
17
|
+
fafMonitorProcessDefaultLabel(promise, modal) {
|
|
18
|
+
this.monitorProcessSimple(promise, 'Processing...', modal).then(No.op);
|
|
19
|
+
}
|
|
20
|
+
fafMonitorProcessSimple(promise, label, modal) {
|
|
21
|
+
const descriptor = label instanceof BehaviorSubject ?
|
|
22
|
+
ProcessMonitorService.labelSubjectToProcessInput(label) :
|
|
23
|
+
new BehaviorSubject(ProcessMonitorService.labelToProcessInput(label));
|
|
24
|
+
this.monitorProcess(promise, descriptor, modal).then(No.op);
|
|
25
|
+
}
|
|
26
|
+
fafMonitorProcess(promise, descriptor, modal) {
|
|
27
|
+
const map = modal ? this.modalProcessMap : this.processMap;
|
|
28
|
+
this.innerMonitorProcess(promise, descriptor, map).then(No.op);
|
|
29
|
+
}
|
|
30
|
+
async monitorProcessDefaultLabel(promise, modal) {
|
|
31
|
+
return this.monitorProcessSimple(promise, 'Processing...', modal);
|
|
32
|
+
}
|
|
33
|
+
async monitorProcessSimple(promise, label, modal) {
|
|
34
|
+
const descriptor = label instanceof BehaviorSubject ?
|
|
35
|
+
ProcessMonitorService.labelSubjectToProcessInput(label) :
|
|
36
|
+
new BehaviorSubject(ProcessMonitorService.labelToProcessInput(label));
|
|
37
|
+
return this.monitorProcess(promise, descriptor, modal);
|
|
38
|
+
}
|
|
39
|
+
async monitorProcess(promise, descriptor, modal) {
|
|
40
|
+
const map = modal ? this.modalProcessMap : this.processMap;
|
|
41
|
+
return this.innerMonitorProcess(promise, descriptor, map);
|
|
42
|
+
}
|
|
43
|
+
async innerMonitorProcess(promise, descriptor, map) {
|
|
44
|
+
RequireRatchet.notNullOrUndefined(promise, 'promise');
|
|
45
|
+
RequireRatchet.notNullOrUndefined(descriptor, 'descriptor');
|
|
46
|
+
let bh;
|
|
47
|
+
if (descriptor instanceof BehaviorSubject) {
|
|
48
|
+
const init = Object.assign({}, this.defaultInput(), descriptor.value);
|
|
49
|
+
bh = descriptor;
|
|
50
|
+
bh.next(init);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
const init = Object.assign({}, this.defaultInput(), descriptor);
|
|
54
|
+
bh = new BehaviorSubject(init);
|
|
55
|
+
}
|
|
56
|
+
const holder = {
|
|
57
|
+
guid: StringRatchet.createRandomHexString(10),
|
|
58
|
+
proc: promise,
|
|
59
|
+
input: bh
|
|
60
|
+
};
|
|
61
|
+
map.set(holder.guid, holder);
|
|
62
|
+
const finished = holder.proc.finally(() => {
|
|
63
|
+
map.delete(holder.guid);
|
|
64
|
+
});
|
|
65
|
+
return finished;
|
|
66
|
+
}
|
|
67
|
+
mapToGroupedProcessList(map) {
|
|
68
|
+
if (map.size > 0) {
|
|
69
|
+
}
|
|
70
|
+
let tmp = Array.from(map.values()).map(v => v.input)
|
|
71
|
+
.filter(x => !!x?.value);
|
|
72
|
+
tmp = tmp.sort((a, b) => a.value.group.localeCompare(b.value.group));
|
|
73
|
+
const rval = [];
|
|
74
|
+
while (tmp.length > 1) {
|
|
75
|
+
let lastIdx = 1;
|
|
76
|
+
while (lastIdx < tmp.length && tmp[lastIdx].value.group === tmp[0].value.group) {
|
|
77
|
+
lastIdx++;
|
|
78
|
+
}
|
|
79
|
+
if (lastIdx > 1) {
|
|
80
|
+
rval.push(new BehaviorSubject({
|
|
81
|
+
label: tmp[0].value.group,
|
|
82
|
+
detail: lastIdx + ' running...',
|
|
83
|
+
group: tmp[0].value.group,
|
|
84
|
+
percentComplete: null
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
rval.push(tmp[0]);
|
|
89
|
+
}
|
|
90
|
+
tmp.splice(0, lastIdx);
|
|
91
|
+
}
|
|
92
|
+
if (tmp.length) {
|
|
93
|
+
rval.push(tmp[0]);
|
|
94
|
+
}
|
|
95
|
+
return rval;
|
|
96
|
+
}
|
|
97
|
+
get processes() {
|
|
98
|
+
return this.mapToGroupedProcessList(this.processMap);
|
|
99
|
+
}
|
|
100
|
+
get modalProcesses() {
|
|
101
|
+
return this.mapToGroupedProcessList(this.modalProcessMap);
|
|
102
|
+
}
|
|
103
|
+
static labelToProcessInput(label) {
|
|
104
|
+
return {
|
|
105
|
+
label: label,
|
|
106
|
+
detail: null,
|
|
107
|
+
group: ProcessMonitorService.DEFAULT_GROUP,
|
|
108
|
+
percentComplete: null
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
static labelSubjectToProcessInput(label) {
|
|
112
|
+
const val = ProcessMonitorService.labelToProcessInput(label.value);
|
|
113
|
+
const rval = new BehaviorSubject(val);
|
|
114
|
+
label.subscribe((val) => rval.next(ProcessMonitorService.labelToProcessInput(val)));
|
|
115
|
+
return rval;
|
|
116
|
+
}
|
|
117
|
+
defaultInput() {
|
|
118
|
+
return {
|
|
119
|
+
label: 'Process',
|
|
120
|
+
detail: null,
|
|
121
|
+
group: ProcessMonitorService.DEFAULT_GROUP,
|
|
122
|
+
percentComplete: null
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
static ɵfac = function ProcessMonitorService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ProcessMonitorService)(); };
|
|
126
|
+
static ɵprov = i0.ɵɵdefineInjectable({ token: ProcessMonitorService, factory: ProcessMonitorService.ɵfac, providedIn: 'root' });
|
|
127
|
+
}
|
|
128
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProcessMonitorService, [{
|
|
129
|
+
type: Injectable,
|
|
130
|
+
args: [{ providedIn: 'root' }]
|
|
131
|
+
}], null, null); })();
|
|
132
|
+
//# sourceMappingURL=process-monitor-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-monitor-service.js","sourceRoot":"","sources":["../../../src/services/process-monitor/process-monitor-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,cAAc,EAAC,MAAM,8CAA8C,CAAC;AAE5E,OAAO,EAAC,eAAe,EAAC,MAAM,MAAM,CAAC;AACrC,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,EAAE,EAAC,MAAM,iCAAiC,CAAC;;AAKnD,MAAM,OAAO,qBAAqB;IACzB,MAAM,CAAU,aAAa,GAAW,sBAAsB,CAAC;IAE9D,UAAU,GAAmC,IAAI,GAAG,EAA6B,CAAC;IAClF,eAAe,GAAmC,IAAI,GAAG,EAA6B,CAAC;IAE/F,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,GAAC,CAAC,CAAC;IAChC,CAAC;IAED,IAAW,gBAAgB;QACzB,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,GAAC,CAAC,CAAC;IACrC,CAAC;IAGM,6BAA6B,CAAI,OAAmB,EAAE,KAAe;QAC1E,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACzE,CAAC;IAEM,uBAAuB,CAAI,OAAmB,EAAE,KAAuC,EAAE,KAAe;QAC7G,MAAM,UAAU,GACd,KAAK,YAAY,eAAe,CAAC,CAAC;YAChC,qBAAqB,CAAC,0BAA0B,CAAC,KAAgC,CAAC,CAAA,CAAC;YACnF,IAAI,eAAe,CAAsB,qBAAqB,CAAC,mBAAmB,CAAC,KAAe,CAAC,CAAC,CAAE;QAC1G,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,CAA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,UAAU,CAAC,CAAC;IACvD,CAAC;IAED,IAAW,cAAc;QACvB,OAAO,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC5D,CAAC;IAGM,MAAM,CAAC,mBAAmB,CAAC,KAAa;QAC7C,OAAO;YACL,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,qBAAqB,CAAC,aAAa;YAC1C,eAAe,EAAE,IAAI;SACtB,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,0BAA0B,CAAC,KAA8B;QACrE,MAAM,GAAG,GAAwB,qBAAqB,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACxF,MAAM,IAAI,GAAyC,IAAI,eAAe,CAAsB,GAAG,CAAC,CAAC;QACjG,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,EAAC,EAAE,CAAA,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAClF,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,YAAY;QAClB,OAAO;YACL,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,qBAAqB,CAAC,aAAa;YAC1C,eAAe,EAAE,IAAI;SACtB,CAAC;IACJ,CAAC;+GApJU,qBAAqB;kDAArB,qBAAqB,WAArB,qBAAqB,mBADT,MAAM;;iFAClB,qBAAqB;cADjC,UAAU;eAAC,EAAC,UAAU,EAAE,MAAM,EAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-monitor-state.js","sourceRoot":"","sources":["../../../src/services/process-monitor/process-monitor-state.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitblit/ngx-acute-common",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.601-alpha",
|
|
4
4
|
"description": "Library for using angular",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@angular/platform-browser": "19.1.3",
|
|
45
45
|
"@angular/platform-browser-dynamic": "19.1.3",
|
|
46
46
|
"@angular/router": "19.1.3",
|
|
47
|
-
"@bitblit/ratchet-common": "5.1.
|
|
48
|
-
"@bitblit/ratchet-graphql": "5.1.
|
|
47
|
+
"@bitblit/ratchet-common": "5.1.601-alpha",
|
|
48
|
+
"@bitblit/ratchet-graphql": "5.1.601-alpha",
|
|
49
49
|
"primeflex": "3.3.1",
|
|
50
50
|
"primeicons": "7.0.0",
|
|
51
51
|
"primeng": "19.0.6",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@angular/platform-browser": "^19.1.3",
|
|
63
63
|
"@angular/platform-browser-dynamic": "^19.1.3",
|
|
64
64
|
"@angular/router": "^19.1.3",
|
|
65
|
-
"@bitblit/ratchet-common": "5.1.
|
|
66
|
-
"@bitblit/ratchet-graphql": "5.1.
|
|
65
|
+
"@bitblit/ratchet-common": "5.1.601-alpha",
|
|
66
|
+
"@bitblit/ratchet-graphql": "5.1.601-alpha",
|
|
67
67
|
"primeflex": "3.3.1",
|
|
68
68
|
"primeicons": "7.0.0",
|
|
69
69
|
"primeng": "19.0.6",
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@angular/compiler-cli": "19.1.3",
|
|
75
|
-
"@bitblit/ratchet-node-only": "5.1.
|
|
75
|
+
"@bitblit/ratchet-node-only": "5.1.601-alpha"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DialogService, DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BlockUiComponent {
|
|
5
|
-
private dialogService;
|
|
6
|
-
cfg: DynamicDialogConfig;
|
|
7
|
-
constructor(dialogService: DialogService, cfg: DynamicDialogConfig);
|
|
8
|
-
static createUiBlock(dialogService: DialogService, message?: BehaviorSubject<string> | string, subMessage?: string): DynamicDialogRef;
|
|
9
|
-
static runPromiseWithUiBlock<T>(dialogService: DialogService, prom: Promise<T>, message?: BehaviorSubject<string> | string, subMessage?: string): Promise<T>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BlockUiComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BlockUiComponent, "ngx-acute-common-block-ui", never, {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { DialogService, DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { Logger } from '@bitblit/ratchet-common/logger/logger';
|
|
5
|
-
import { AsyncPipe, NgIf } from '@angular/common';
|
|
6
|
-
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "primeng/dynamicdialog";
|
|
9
|
-
import * as i2 from "primeng/progressspinner";
|
|
10
|
-
function BlockUiComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
-
i0.ɵɵelementStart(0, "div");
|
|
12
|
-
i0.ɵɵtext(1);
|
|
13
|
-
i0.ɵɵelementEnd();
|
|
14
|
-
} if (rf & 2) {
|
|
15
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
|
-
i0.ɵɵadvance();
|
|
17
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.cfg.data.subMessage, " ");
|
|
18
|
-
} }
|
|
19
|
-
export class BlockUiComponent {
|
|
20
|
-
dialogService;
|
|
21
|
-
cfg;
|
|
22
|
-
constructor(dialogService, cfg) {
|
|
23
|
-
this.dialogService = dialogService;
|
|
24
|
-
this.cfg = cfg;
|
|
25
|
-
}
|
|
26
|
-
static createUiBlock(dialogService, message = 'Please wait...', subMessage) {
|
|
27
|
-
const dlg = dialogService.open(BlockUiComponent, {
|
|
28
|
-
closable: false,
|
|
29
|
-
modal: true,
|
|
30
|
-
data: {
|
|
31
|
-
message: message instanceof BehaviorSubject ? message : new BehaviorSubject(message),
|
|
32
|
-
subMessage: subMessage,
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
return dlg;
|
|
36
|
-
}
|
|
37
|
-
static async runPromiseWithUiBlock(dialogService, prom, message = 'Please wait...', subMessage) {
|
|
38
|
-
const dlg = dialogService.open(BlockUiComponent, {
|
|
39
|
-
closable: false,
|
|
40
|
-
modal: true,
|
|
41
|
-
data: {
|
|
42
|
-
message: message instanceof BehaviorSubject ? message : new BehaviorSubject(message),
|
|
43
|
-
subMessage: subMessage,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
try {
|
|
47
|
-
const rval = await prom;
|
|
48
|
-
dlg?.close(rval);
|
|
49
|
-
Logger.info('Blockui - Received %j - closing blocker ui and returning', rval);
|
|
50
|
-
return rval;
|
|
51
|
-
}
|
|
52
|
-
catch (err) {
|
|
53
|
-
Logger.error('Caught error inside block ui dialog : %s - rethrowing', err, err);
|
|
54
|
-
dlg?.close();
|
|
55
|
-
throw err;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
static ɵfac = function BlockUiComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BlockUiComponent)(i0.ɵɵdirectiveInject(i1.DialogService), i0.ɵɵdirectiveInject(i1.DynamicDialogConfig)); };
|
|
59
|
-
static ɵcmp = i0.ɵɵdefineComponent({ type: BlockUiComponent, selectors: [["ngx-acute-common-block-ui"]], decls: 7, vars: 4, consts: [[2, "display", "flex", "flex-direction", "column", "justify-content", "center"], ["styleClass", "w-2rem h-2rem", "strokeWidth", "5", "fill", "var(--surface-ground)", "animationDuration", ".8s"], [4, "ngIf"]], template: function BlockUiComponent_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
-
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h4");
|
|
61
|
-
i0.ɵɵtext(3);
|
|
62
|
-
i0.ɵɵpipe(4, "async");
|
|
63
|
-
i0.ɵɵelementEnd();
|
|
64
|
-
i0.ɵɵelement(5, "p-progressSpinner", 1);
|
|
65
|
-
i0.ɵɵtemplate(6, BlockUiComponent_div_6_Template, 2, 1, "div", 2);
|
|
66
|
-
i0.ɵɵelementEnd()();
|
|
67
|
-
} if (rf & 2) {
|
|
68
|
-
i0.ɵɵadvance(3);
|
|
69
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 2, ctx.cfg.data.message));
|
|
70
|
-
i0.ɵɵadvance(3);
|
|
71
|
-
i0.ɵɵproperty("ngIf", ctx.cfg.data.subMessage);
|
|
72
|
-
} }, dependencies: [NgIf, AsyncPipe, ProgressSpinnerModule, i2.ProgressSpinner], encapsulation: 2 });
|
|
73
|
-
}
|
|
74
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BlockUiComponent, [{
|
|
75
|
-
type: Component,
|
|
76
|
-
args: [{ selector: 'ngx-acute-common-block-ui', standalone: true, imports: [NgIf, AsyncPipe, ProgressSpinnerModule], template: "<div>\n <div style=\"display: flex; flex-direction: column; justify-content: center\">\n <h4>{{ cfg.data.message | async }}</h4>\n <p-progressSpinner styleClass=\"w-2rem h-2rem\" strokeWidth=\"5\" fill=\"var(--surface-ground)\" animationDuration=\".8s\"></p-progressSpinner>\n <div *ngIf=\"cfg.data.subMessage\">\n {{ cfg.data.subMessage }}\n </div>\n </div>\n</div>\n" }]
|
|
77
|
-
}], () => [{ type: i1.DialogService }, { type: i1.DynamicDialogConfig }], null); })();
|
|
78
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BlockUiComponent, { className: "BlockUiComponent", filePath: "components/dialogs/block-ui/block-ui.component.ts", lineNumber: 14 }); })();
|
|
79
|
-
//# sourceMappingURL=block-ui.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"block-ui.component.js","sourceRoot":"","sources":["../../../../src/components/dialogs/block-ui/block-ui.component.ts","../../../../src/components/dialogs/block-ui/block-ui.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAoB,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;;;;;ICD5D,2BAAiC;IAC/B,YACF;IAAA,iBAAM;;;IADJ,cACF;IADE,2DACF;;ADOJ,MAAM,OAAO,gBAAgB;IAEjB;IACD;IAFT,YACU,aAA4B,EAC7B,GAAwB;QADvB,kBAAa,GAAb,aAAa,CAAe;QAC7B,QAAG,GAAH,GAAG,CAAqB;IAC9B,CAAC;IAEG,MAAM,CAAC,aAAa,CACzB,aAA4B,EAC5B,UAA4C,gBAAgB,EAC5D,UAAmB;QAEnB,MAAM,GAAG,GAAqB,aAAa,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACjE,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,IAAI;YACX,IAAI,EAAE;gBACJ,OAAO,EAAE,OAAO,YAAY,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,eAAe,CAAS,OAAO,CAAC;gBAC5F,UAAU,EAAE,UAAU;aACvB;SACF,CAAC,CAAC;QACH,OAAO,GAAG,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,K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