@provoly/hypervisor 0.0.8 → 0.0.10
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/esm2022/public-api.mjs +3 -1
- package/esm2022/src/lib/event/detail/event-detail.component.mjs +132 -10
- package/esm2022/src/lib/event/list/event-list.component.mjs +26 -10
- package/esm2022/src/lib/event-summary/item/event-summary-item.component.mjs +13 -13
- package/esm2022/src/lib/event-summary/list/event-summary-list.component.mjs +1 -1
- package/esm2022/src/lib/event-summary/page/event-summary-page.component.mjs +3 -3
- package/esm2022/src/lib/general/for-datetime-local-pipe/for-datetime-local.pipe.mjs +20 -0
- package/esm2022/src/lib/general/i18n/en.translations.mjs +46 -9
- package/esm2022/src/lib/general/i18n/fr.translations.mjs +56 -12
- package/esm2022/src/lib/general/icon-display/icon-display.component.mjs +1 -1
- package/esm2022/src/lib/general/icon-pipe/event-icon.pipe.mjs +2 -2
- package/esm2022/src/lib/general/progress-display/progress-display.component.mjs +16 -0
- package/esm2022/src/lib/general/public-api.mjs +5 -1
- package/esm2022/src/lib/general/status-display/status-display.component.mjs +48 -0
- package/esm2022/src/lib/hypervisor.module.mjs +26 -9
- package/esm2022/src/lib/model/event/hyp-event-category.type.mjs +2 -0
- package/esm2022/src/lib/model/event/hyp-event-criticality.type.mjs +2 -0
- package/esm2022/src/lib/model/event/hyp-event-detail.interface.mjs +2 -0
- package/esm2022/src/lib/model/event/hyp-event-status.type.mjs +2 -0
- package/esm2022/src/lib/model/event/hyp-event-summary.interface.mjs +2 -0
- package/esm2022/src/lib/model/event/hyp-event-type.mjs +7 -0
- package/esm2022/src/lib/model/event/hyp-event.interface.mjs +2 -0
- package/esm2022/src/lib/model/hyp-action.interface.mjs +1 -1
- package/esm2022/src/lib/model/hyp-equipment.interface.mjs +2 -0
- package/esm2022/src/lib/model/hyp-procedure.interface.mjs +1 -1
- package/esm2022/src/lib/model/public-api.mjs +9 -8
- package/esm2022/src/lib/store/equipment/equipment.service.mjs +31 -0
- package/esm2022/src/lib/store/equipment/public-api.mjs +2 -0
- package/esm2022/src/lib/store/event/event.actions.mjs +6 -2
- package/esm2022/src/lib/store/event/event.effects.mjs +11 -5
- package/esm2022/src/lib/store/event/event.reducer.mjs +17 -13
- package/esm2022/src/lib/store/event/event.selectors.mjs +4 -2
- package/esm2022/src/lib/store/event/event.service.mjs +19 -3
- package/esm2022/src/lib/store/event/public-api.mjs +2 -1
- package/esm2022/src/lib/store/event-summary/event-summary.actions.mjs +1 -1
- package/esm2022/src/lib/store/event-summary/event-summary.reducer.mjs +1 -1
- package/esm2022/src/lib/store/hypervisor/public-api.mjs +6 -0
- package/fesm2022/provoly-hypervisor.mjs +521 -176
- package/fesm2022/provoly-hypervisor.mjs.map +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +2 -0
- package/src/lib/event/detail/event-detail.component.d.ts +38 -5
- package/src/lib/event/list/event-list.component.d.ts +10 -5
- package/src/lib/event-summary/item/event-summary-item.component.d.ts +7 -3
- package/src/lib/event-summary/list/event-summary-list.component.d.ts +1 -1
- package/src/lib/event-summary/page/event-summary-page.component.d.ts +1 -1
- package/src/lib/general/for-datetime-local-pipe/for-datetime-local.pipe.d.ts +10 -0
- package/src/lib/general/i18n/en.translations.d.ts +39 -2
- package/src/lib/general/i18n/fr.translations.d.ts +47 -3
- package/src/lib/general/icon-display/icon-display.component.d.ts +1 -1
- package/src/lib/general/icon-pipe/event-icon.pipe.d.ts +5 -4
- package/src/lib/general/progress-display/progress-display.component.d.ts +6 -0
- package/src/lib/general/public-api.d.ts +4 -0
- package/src/lib/general/status-display/status-display.component.d.ts +19 -0
- package/src/lib/hypervisor.module.d.ts +12 -9
- package/src/lib/model/event/hyp-event-category.type.d.ts +1 -0
- package/src/lib/model/event/hyp-event-criticality.type.d.ts +1 -0
- package/src/lib/model/event/hyp-event-detail.interface.d.ts +22 -0
- package/src/lib/model/event/hyp-event-status.type.d.ts +1 -0
- package/src/lib/model/{hyp-event-summary.interface.d.ts → event/hyp-event-summary.interface.d.ts} +5 -4
- package/src/lib/model/event/hyp-event.interface.d.ts +6 -0
- package/src/lib/model/hyp-action.interface.d.ts +1 -1
- package/src/lib/model/hyp-equipment.interface.d.ts +5 -0
- package/src/lib/model/hyp-procedure.interface.d.ts +1 -1
- package/src/lib/model/public-api.d.ts +8 -7
- package/src/lib/store/equipment/equipment.service.d.ts +13 -0
- package/src/lib/store/equipment/public-api.d.ts +1 -0
- package/src/lib/store/event/event.actions.d.ts +30 -2
- package/src/lib/store/event/event.effects.d.ts +16 -1
- package/src/lib/store/event/event.reducer.d.ts +2 -1
- package/src/lib/store/event/event.selectors.d.ts +1 -0
- package/src/lib/store/event/event.service.d.ts +4 -2
- package/src/lib/store/event/public-api.d.ts +1 -0
- package/src/lib/store/event-summary/event-summary.actions.d.ts +1 -1
- package/src/lib/store/event-summary/event-summary.reducer.d.ts +1 -1
- package/src/lib/store/hypervisor/public-api.d.ts +5 -0
- package/styles/components/_a-chip-status.scss +46 -0
- package/styles/components/_index.scss +3 -0
- package/styles/components/_o-hvy-event-detail.scss +156 -0
- package/styles/components/_o-hvy-events-table.scss +39 -2
- package/styles/components/_o-progressbar.scss +46 -0
- package/esm2022/src/lib/model/hyp-event-category.type.mjs +0 -2
- package/esm2022/src/lib/model/hyp-event-criticality.type.mjs +0 -7
- package/esm2022/src/lib/model/hyp-event-detail.interface.mjs +0 -2
- package/esm2022/src/lib/model/hyp-event-status.type.mjs +0 -2
- package/esm2022/src/lib/model/hyp-event-summary.interface.mjs +0 -2
- package/esm2022/src/lib/model/hyp-event-type.mjs +0 -7
- package/esm2022/src/lib/model/hyp-event.interface.mjs +0 -2
- package/src/lib/model/hyp-event-category.type.d.ts +0 -2
- package/src/lib/model/hyp-event-criticality.type.d.ts +0 -5
- package/src/lib/model/hyp-event-detail.interface.d.ts +0 -14
- package/src/lib/model/hyp-event-status.type.d.ts +0 -1
- package/src/lib/model/hyp-event.interface.d.ts +0 -6
- /package/src/lib/model/{hyp-event-type.d.ts → event/hyp-event-type.d.ts} +0 -0
|
@@ -16,8 +16,42 @@ export declare const enTranslations: {
|
|
|
16
16
|
DONE: string;
|
|
17
17
|
};
|
|
18
18
|
address: string;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
source: string;
|
|
20
|
+
equipment: string;
|
|
21
|
+
equipmentEntity: string;
|
|
22
|
+
startDate: string;
|
|
23
|
+
endDate: string;
|
|
24
|
+
creationDate: string;
|
|
25
|
+
lastModificationDate: string;
|
|
26
|
+
closeDate: string;
|
|
27
|
+
log: {
|
|
28
|
+
name: string;
|
|
29
|
+
event: {
|
|
30
|
+
description: string;
|
|
31
|
+
address: string;
|
|
32
|
+
detail: string;
|
|
33
|
+
name: string;
|
|
34
|
+
category: string;
|
|
35
|
+
comments: {
|
|
36
|
+
name: string;
|
|
37
|
+
placeholder: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
procedure: {
|
|
41
|
+
delete: string;
|
|
42
|
+
progress: string;
|
|
43
|
+
noAction: string;
|
|
44
|
+
name: string;
|
|
45
|
+
addAction: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
category: {
|
|
49
|
+
ALERT: string;
|
|
50
|
+
REPORT: string;
|
|
51
|
+
OPERATOR_EVENT: string;
|
|
52
|
+
ALERT_LIMIT: string;
|
|
53
|
+
MANIFESTATION: string;
|
|
54
|
+
};
|
|
21
55
|
};
|
|
22
56
|
eventSummary: {
|
|
23
57
|
noContent: string;
|
|
@@ -35,9 +69,12 @@ export declare const enTranslations: {
|
|
|
35
69
|
};
|
|
36
70
|
procedure: {
|
|
37
71
|
name: string;
|
|
72
|
+
progress: string;
|
|
38
73
|
};
|
|
39
74
|
action: {
|
|
40
75
|
consult: string;
|
|
76
|
+
close: string;
|
|
77
|
+
send: string;
|
|
41
78
|
};
|
|
42
79
|
};
|
|
43
80
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const frTranslations: {
|
|
2
2
|
'@hvy': {
|
|
3
3
|
event: {
|
|
4
|
-
criticality: string;
|
|
5
4
|
name: string;
|
|
6
5
|
type: {
|
|
7
6
|
name: string;
|
|
@@ -16,8 +15,50 @@ export declare const frTranslations: {
|
|
|
16
15
|
DONE: string;
|
|
17
16
|
};
|
|
18
17
|
address: string;
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
source: string;
|
|
19
|
+
equipment: string;
|
|
20
|
+
equipmentEntity: string;
|
|
21
|
+
startDate: string;
|
|
22
|
+
endDate: string;
|
|
23
|
+
creationDate: string;
|
|
24
|
+
lastModificationDate: string;
|
|
25
|
+
closeDate: string;
|
|
26
|
+
log: {
|
|
27
|
+
name: string;
|
|
28
|
+
event: {
|
|
29
|
+
description: string;
|
|
30
|
+
address: string;
|
|
31
|
+
detail: string;
|
|
32
|
+
name: string;
|
|
33
|
+
category: string;
|
|
34
|
+
close: string;
|
|
35
|
+
comments: {
|
|
36
|
+
name: string;
|
|
37
|
+
placeholder: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
procedure: {
|
|
41
|
+
delete: string;
|
|
42
|
+
progress: string;
|
|
43
|
+
noAction: string;
|
|
44
|
+
name: string;
|
|
45
|
+
addAction: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
category: {
|
|
49
|
+
name: string;
|
|
50
|
+
ALERT_MALFUNCTION: string;
|
|
51
|
+
REPORT: string;
|
|
52
|
+
OPERATOR_EVENT: string;
|
|
53
|
+
ALERT_LIMIT: string;
|
|
54
|
+
MANIFESTATION: string;
|
|
55
|
+
};
|
|
56
|
+
criticality: {
|
|
57
|
+
name: string;
|
|
58
|
+
LOW: string;
|
|
59
|
+
MEDIUM: string;
|
|
60
|
+
HIGH: string;
|
|
61
|
+
};
|
|
21
62
|
};
|
|
22
63
|
eventSummary: {
|
|
23
64
|
noContent: string;
|
|
@@ -35,9 +76,12 @@ export declare const frTranslations: {
|
|
|
35
76
|
};
|
|
36
77
|
procedure: {
|
|
37
78
|
name: string;
|
|
79
|
+
progress: string;
|
|
38
80
|
};
|
|
39
81
|
action: {
|
|
40
82
|
consult: string;
|
|
83
|
+
close: string;
|
|
84
|
+
send: string;
|
|
41
85
|
};
|
|
42
86
|
};
|
|
43
87
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { HypEvent } from '../../model/hyp-event.interface';
|
|
3
|
+
import { HypEvent } from '../../model/event/hyp-event.interface';
|
|
4
4
|
import { Store } from '@ngrx/store';
|
|
5
|
-
import { HypEventSummary } from '../../model/hyp-event-summary.interface';
|
|
5
|
+
import { HypEventSummary } from '../../model/event/hyp-event-summary.interface';
|
|
6
|
+
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare const EVENT_TO_ICON: {
|
|
8
|
-
fn: (event: HypEvent | HypEventSummary, store: Store<any>) => Observable<string>;
|
|
9
|
+
fn: (event: HypEvent | HypEventSummary | HypEventDetails, store: Store<any>) => Observable<string>;
|
|
9
10
|
};
|
|
10
11
|
export declare class EventIconPipe implements PipeTransform {
|
|
11
12
|
private store;
|
|
12
13
|
constructor(store: Store<any>);
|
|
13
|
-
transform(value: HypEvent | HypEventSummary, ...args: unknown[]): Observable<string>;
|
|
14
|
+
transform(value: HypEvent | HypEventSummary | HypEventDetails, ...args: unknown[]): Observable<string>;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventIconPipe, never>;
|
|
15
16
|
static ɵpipe: i0.ɵɵPipeDeclaration<EventIconPipe, "eventIcon", false>;
|
|
16
17
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ProgressDisplayComponent {
|
|
3
|
+
progress: number;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressDisplayComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressDisplayComponent, "hvy-progress-display", never, { "progress": { "alias": "progress"; "required": false; }; }, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -2,4 +2,8 @@ export * from './base.token';
|
|
|
2
2
|
export * from './i18n/en.translations';
|
|
3
3
|
export * from './i18n/fr.translations';
|
|
4
4
|
export * from './icon-pipe/event-icon.pipe';
|
|
5
|
+
export * from './icon-pipe/event-icon.pipe';
|
|
6
|
+
export * from './for-datetime-local-pipe/for-datetime-local.pipe';
|
|
5
7
|
export * from './icon-display/icon-display.component';
|
|
8
|
+
export * from './status-display/status-display.component';
|
|
9
|
+
export * from './progress-display/progress-display.component';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class StatusDisplayComponent {
|
|
5
|
+
modified: EventEmitter<string>;
|
|
6
|
+
private _event;
|
|
7
|
+
targetStatuses: string[];
|
|
8
|
+
targetsDisplayed: boolean;
|
|
9
|
+
_modifiable: boolean;
|
|
10
|
+
set event(event: HypEventDetails);
|
|
11
|
+
set modifiable(modifiable: boolean);
|
|
12
|
+
get modifiable(): boolean;
|
|
13
|
+
get event(): HypEventDetails;
|
|
14
|
+
trigger(status: string): void;
|
|
15
|
+
updateTargetStatuses(): void;
|
|
16
|
+
toggle(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusDisplayComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatusDisplayComponent, "hvy-status-display", never, { "event": { "alias": "event"; "required": false; }; "modifiable": { "alias": "modifiable"; "required": false; }; }, { "modified": "modified"; }, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -9,14 +9,17 @@ import * as i4 from "./event-summary/item/event-summary-item.component";
|
|
|
9
9
|
import * as i5 from "./event-summary/list/event-summary-list.component";
|
|
10
10
|
import * as i6 from "./event-summary/page/event-summary-page.component";
|
|
11
11
|
import * as i7 from "./general/icon-pipe/event-icon.pipe";
|
|
12
|
-
import * as i8 from "
|
|
13
|
-
import * as i9 from "
|
|
14
|
-
import * as i10 from "
|
|
15
|
-
import * as i11 from "@
|
|
16
|
-
import * as i12 from "@
|
|
17
|
-
import * as i13 from "@angular/
|
|
18
|
-
import * as i14 from "@
|
|
19
|
-
import * as i15 from "@provoly/dashboard/components/
|
|
12
|
+
import * as i8 from "./general/for-datetime-local-pipe/for-datetime-local.pipe";
|
|
13
|
+
import * as i9 from "./general/status-display/status-display.component";
|
|
14
|
+
import * as i10 from "./general/progress-display/progress-display.component";
|
|
15
|
+
import * as i11 from "@ngrx/store";
|
|
16
|
+
import * as i12 from "@ngrx/effects";
|
|
17
|
+
import * as i13 from "@angular/common";
|
|
18
|
+
import * as i14 from "@provoly/dashboard";
|
|
19
|
+
import * as i15 from "@provoly/dashboard/components/checkbox";
|
|
20
|
+
import * as i16 from "@angular/forms";
|
|
21
|
+
import * as i17 from "@angular/router";
|
|
22
|
+
import * as i18 from "@provoly/dashboard/components/sinceDate";
|
|
20
23
|
export declare class PvyHypervisorModule {
|
|
21
24
|
private baseConfig;
|
|
22
25
|
private store;
|
|
@@ -28,6 +31,6 @@ export declare class PvyHypervisorModule {
|
|
|
28
31
|
url: string;
|
|
29
32
|
}, store: Store<any>, i18nService: PryI18nService);
|
|
30
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
|
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe], [typeof
|
|
34
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe, typeof i8.ForDatetimeLocalPipe, typeof i9.StatusDisplayComponent, typeof i10.ProgressDisplayComponent], [typeof i11.StoreFeatureModule, typeof i11.StoreFeatureModule, typeof i11.StoreFeatureModule, typeof i12.EffectsFeatureModule, typeof i13.NgForOf, typeof i13.AsyncPipe, typeof i14.PryI18nModule, typeof i14.PryCoreModule, typeof i13.AsyncPipe, typeof i14.PryCoreModule, typeof i13.NgStyle, typeof i15.PryCheckboxModule, typeof i16.FormsModule, typeof i17.RouterLink, typeof i18.PrySinceDateModule, typeof i13.DatePipe, typeof i14.PryIconModule, typeof i13.KeyValuePipe, typeof i14.PrySelectModule, typeof i16.FormsModule, typeof i13.JsonPipe, typeof i14.PryDatePickerModule], [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe, typeof i8.ForDatetimeLocalPipe, typeof i9.StatusDisplayComponent, typeof i10.ProgressDisplayComponent]>;
|
|
32
35
|
static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
|
|
33
36
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HypEventCategory: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HypEventCriticality: string[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HypEvent } from './hyp-event.interface';
|
|
2
|
+
export interface HypEventDetails extends HypEvent {
|
|
3
|
+
address: string;
|
|
4
|
+
description: string;
|
|
5
|
+
status: string;
|
|
6
|
+
lastModificationDate: string;
|
|
7
|
+
creationDate: string;
|
|
8
|
+
equipment?: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
entity: string;
|
|
13
|
+
};
|
|
14
|
+
externalSourceRef?: string;
|
|
15
|
+
category: string;
|
|
16
|
+
startDate: string;
|
|
17
|
+
endDate: string;
|
|
18
|
+
closeDate: string;
|
|
19
|
+
procedureId?: string;
|
|
20
|
+
linkedEvents: number;
|
|
21
|
+
procedureProgress?: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HypEventStatus: string[];
|
package/src/lib/model/{hyp-event-summary.interface.d.ts → event/hyp-event-summary.interface.d.ts}
RENAMED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { HypEvent } from './hyp-event.interface';
|
|
2
2
|
export interface HypEventSummary extends HypEvent {
|
|
3
3
|
interventionRequestCount: number;
|
|
4
|
-
lastModificationDate:
|
|
4
|
+
lastModificationDate: string;
|
|
5
5
|
manifestation?: {
|
|
6
|
-
startDate:
|
|
7
|
-
endDate:
|
|
6
|
+
startDate: string;
|
|
7
|
+
endDate: string;
|
|
8
8
|
};
|
|
9
9
|
interventionRequestTitle?: string;
|
|
10
|
-
category:
|
|
10
|
+
category: string;
|
|
11
|
+
procedureId?: string;
|
|
11
12
|
}
|
|
12
13
|
type HypStatus = 'NEW' | 'IN_PROGRESS' | 'DONE';
|
|
13
14
|
export type HypEventSummaries = {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from './hyp-event.interface';
|
|
2
|
-
export * from './hyp-event-category.type';
|
|
3
|
-
export * from './hyp-event-criticality.type';
|
|
4
|
-
export * from './hyp-event-detail.interface';
|
|
5
|
-
export * from './hyp-event-status.type';
|
|
6
|
-
export * from './hyp-event-summary.interface';
|
|
7
|
-
export * from './hyp-event-type';
|
|
1
|
+
export * from './event/hyp-event.interface';
|
|
2
|
+
export * from './event/hyp-event-category.type';
|
|
3
|
+
export * from './event/hyp-event-criticality.type';
|
|
4
|
+
export * from './event/hyp-event-detail.interface';
|
|
5
|
+
export * from './event/hyp-event-status.type';
|
|
6
|
+
export * from './event/hyp-event-summary.interface';
|
|
7
|
+
export * from './event/hyp-event-type';
|
|
8
8
|
export * from './hyp-procedure.interface';
|
|
9
|
+
export * from './hyp-equipment.interface';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Store } from '@ngrx/store';
|
|
4
|
+
import { HypEquipment } from '../../model/hyp-equipment.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class EquipmentService {
|
|
7
|
+
private httpClient;
|
|
8
|
+
private store;
|
|
9
|
+
constructor(httpClient: HttpClient, store: Store<any>);
|
|
10
|
+
findByName(name: string): Observable<HypEquipment>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EquipmentService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EquipmentService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './equipment.service';
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { HypEventDetails } from '../../model/hyp-event-detail.interface';
|
|
1
|
+
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
2
2
|
import { HypProcedure } from '../../model/hyp-procedure.interface';
|
|
3
3
|
export declare const EventActions: {
|
|
4
|
-
load: import("@ngrx/store").ActionCreator<"[Event] Load Events", (
|
|
4
|
+
load: import("@ngrx/store").ActionCreator<"[Event] Load Events", (props: {
|
|
5
|
+
next?: boolean | undefined;
|
|
6
|
+
}) => {
|
|
7
|
+
next?: boolean | undefined;
|
|
8
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Load Events">>;
|
|
5
9
|
loadSuccess: import("@ngrx/store").ActionCreator<"[Event Api] (bus) Load Events Success", (props: {
|
|
6
10
|
events: HypEventDetails[];
|
|
11
|
+
startingFrom?: number | undefined;
|
|
7
12
|
}) => {
|
|
8
13
|
events: HypEventDetails[];
|
|
14
|
+
startingFrom?: number | undefined;
|
|
9
15
|
} & import("@ngrx/store/src/models").TypedAction<"[Event Api] (bus) Load Events Success">>;
|
|
10
16
|
loadFailure: import("@ngrx/store").ActionCreator<"[Event Api] Load Events Failure", (props: {
|
|
11
17
|
error: string;
|
|
@@ -50,4 +56,26 @@ export declare const EventActions: {
|
|
|
50
56
|
}) => {
|
|
51
57
|
error: string;
|
|
52
58
|
} & import("@ngrx/store/src/models").TypedAction<"[Event Api] Get Events/Procedure Failure">>;
|
|
59
|
+
save: import("@ngrx/store").ActionCreator<"[Event] Save Event", (props: {
|
|
60
|
+
event: HypEventDetails;
|
|
61
|
+
}) => {
|
|
62
|
+
event: HypEventDetails;
|
|
63
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save Event">>;
|
|
64
|
+
saveProcedure: import("@ngrx/store").ActionCreator<"[Event] Save Procedure and linked Events", (props: {
|
|
65
|
+
procedure: HypProcedure;
|
|
66
|
+
}) => {
|
|
67
|
+
procedure: HypProcedure;
|
|
68
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save Procedure and linked Events">>;
|
|
69
|
+
saveSuccess: import("@ngrx/store").ActionCreator<"[Event] Save success", (props: {
|
|
70
|
+
event?: HypEventDetails | undefined;
|
|
71
|
+
procedure?: HypProcedure | undefined;
|
|
72
|
+
}) => {
|
|
73
|
+
event?: HypEventDetails | undefined;
|
|
74
|
+
procedure?: HypProcedure | undefined;
|
|
75
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save success">>;
|
|
76
|
+
saveFailure: import("@ngrx/store").ActionCreator<"[Event] Save failure", (props: {
|
|
77
|
+
error: string;
|
|
78
|
+
}) => {
|
|
79
|
+
error: string;
|
|
80
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save failure">>;
|
|
53
81
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Actions } from '@ngrx/effects';
|
|
2
2
|
import { EventService } from './event.service';
|
|
3
|
+
import { Store } from '@ngrx/store';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class EventEffects {
|
|
5
6
|
private actions$;
|
|
6
7
|
private eventService;
|
|
8
|
+
private store;
|
|
7
9
|
loadEvents$: import("rxjs").Observable<({
|
|
8
10
|
events: import("@provoly/hypervisor").HypEventDetails[];
|
|
11
|
+
startingFrom?: number | undefined;
|
|
9
12
|
} & import("@ngrx/store/src/models").TypedAction<"[Event Api] (bus) Load Events Success">) | ({
|
|
10
13
|
error: string;
|
|
11
14
|
} & import("@ngrx/store/src/models").TypedAction<"[Event Api] Load Events Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
@@ -21,7 +24,19 @@ export declare class EventEffects {
|
|
|
21
24
|
} & import("@ngrx/store/src/models").TypedAction<"[Event Api] (bus) Get Events/Procedure Success">) | ({
|
|
22
25
|
error: string;
|
|
23
26
|
} & import("@ngrx/store/src/models").TypedAction<"[Event Api] Get Events/Procedure Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
24
|
-
|
|
27
|
+
saveEvent$: import("rxjs").Observable<({
|
|
28
|
+
event?: import("@provoly/hypervisor").HypEventDetails | undefined;
|
|
29
|
+
procedure?: import("@provoly/hypervisor").HypProcedure | undefined;
|
|
30
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save success">) | ({
|
|
31
|
+
error: string;
|
|
32
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
33
|
+
saveProcedure$: import("rxjs").Observable<({
|
|
34
|
+
event?: import("@provoly/hypervisor").HypEventDetails | undefined;
|
|
35
|
+
procedure?: import("@provoly/hypervisor").HypProcedure | undefined;
|
|
36
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save success">) | ({
|
|
37
|
+
error: string;
|
|
38
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
39
|
+
constructor(actions$: Actions, eventService: EventService, store: Store);
|
|
25
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventEffects, never>;
|
|
26
41
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventEffects>;
|
|
27
42
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Action } from '@ngrx/store';
|
|
2
|
-
import { HypEventDetails } from '../../model/hyp-event-detail.interface';
|
|
2
|
+
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
3
3
|
import { HypProcedure } from '../../model/hyp-procedure.interface';
|
|
4
4
|
export declare const eventFeatureKey = "@hvy/event";
|
|
5
5
|
export interface EventState {
|
|
6
6
|
events: HypEventDetails[];
|
|
7
|
+
noMoreEvents: boolean;
|
|
7
8
|
loading: boolean;
|
|
8
9
|
filters: {
|
|
9
10
|
[key: string]: string[];
|
|
@@ -16,4 +16,5 @@ export declare const EventSelectors: {
|
|
|
16
16
|
event?: import("@provoly/hypervisor").HypEventDetails | undefined;
|
|
17
17
|
procedure?: import("@provoly/hypervisor").HypProcedure | undefined;
|
|
18
18
|
}>;
|
|
19
|
+
noMoreEvents: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EventState) => boolean>;
|
|
19
20
|
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
|
-
import { HypEventDetails } from '../../model/hyp-event-detail.interface';
|
|
4
|
+
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
5
5
|
import { HypProcedure } from '../../model/hyp-procedure.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class EventService {
|
|
8
8
|
private httpClient;
|
|
9
9
|
private store;
|
|
10
10
|
constructor(httpClient: HttpClient, store: Store<any>);
|
|
11
|
-
list(): Observable<Array<HypEventDetails>>;
|
|
11
|
+
list(startWith?: number): Observable<Array<HypEventDetails>>;
|
|
12
12
|
get(id: string): Observable<HypEventDetails>;
|
|
13
13
|
getProcedure(id: string): Observable<HypProcedure>;
|
|
14
|
+
save(event: HypEventDetails): Observable<HypEventDetails>;
|
|
15
|
+
saveProcedure(procedure: HypProcedure): Observable<HypProcedure>;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
|
|
15
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
|
|
16
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HypEventSummaries } from '../../model/hyp-event-summary.interface';
|
|
1
|
+
import { HypEventSummaries } from '../../model/event/hyp-event-summary.interface';
|
|
2
2
|
export declare const EventSummaryActions: {
|
|
3
3
|
load: import("@ngrx/store").ActionCreator<"[Event] Load Summaries", () => import("@ngrx/store/src/models").TypedAction<"[Event] Load Summaries">>;
|
|
4
4
|
loadSuccess: import("@ngrx/store").ActionCreator<"[Event Api] Load Summaries Success", (props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '@ngrx/store';
|
|
2
|
-
import { HypEventSummaries } from '../../model/hyp-event-summary.interface';
|
|
2
|
+
import { HypEventSummaries } from '../../model/event/hyp-event-summary.interface';
|
|
3
3
|
export declare const eventSummaryFeatureKey = "@hvy/event-summary";
|
|
4
4
|
export interface EventSummaryState {
|
|
5
5
|
summaries: HypEventSummaries;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use 'node_modules/@provoly/dashboard/styles/abstracts' as *;
|
|
2
|
+
@use 'node_modules/@provoly/dashboard/styles-theme/abstracts-theme/variables.theme' as *;
|
|
3
|
+
|
|
4
|
+
.a-chip-status {
|
|
5
|
+
width: fit-content;
|
|
6
|
+
|
|
7
|
+
&.-IN_PROGRESS {
|
|
8
|
+
color: themed($theme-map, 'color', 'graph', 'contrast', 07);
|
|
9
|
+
background-color: themed($theme-map, 'color', 'graph', 07);
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
@include changeBgColor(
|
|
13
|
+
$targetBgColor: themed($theme-map, 'color', 'graph', 06),
|
|
14
|
+
$targetTextColor: themed($theme-map, 'color', 'graph', 'contrast', 06)
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.-DONE {
|
|
20
|
+
color: themed($theme-map, 'color', 'graph', 'contrast', 05);
|
|
21
|
+
background-color: themed($theme-map, 'color', 'graph', 05);
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
@include changeBgColor(
|
|
25
|
+
$targetBgColor: themed($theme-map, 'color', 'graph', 04),
|
|
26
|
+
$targetTextColor: themed($theme-map, 'color', 'graph', 'contrast', 04)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__target {
|
|
32
|
+
box-shadow: themed($theme-map, 'decoration', 'shadow', 'card');
|
|
33
|
+
margin-top: toRem(-10);
|
|
34
|
+
|
|
35
|
+
&__filler {
|
|
36
|
+
height: toRem(10);
|
|
37
|
+
}
|
|
38
|
+
&__item {
|
|
39
|
+
padding: toRem(5);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
pry-icon {
|
|
44
|
+
margin-top: toRem(-7);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/* Atoms */
|
|
2
|
+
@use "./a-chip-status" as *;
|
|
2
3
|
|
|
3
4
|
/* Molecules */
|
|
4
5
|
@use "./m-hvy-event-summary-item" as *;
|
|
5
6
|
|
|
6
7
|
/* Organisms */
|
|
8
|
+
@use "./o-hvy-event-detail" as *;
|
|
7
9
|
@use "./o-hvy-event-summary-list" as *;
|
|
8
10
|
@use "./o-hvy-event-summary-page" as *;
|
|
9
11
|
@use "./o-hvy-events-table" as *;
|
|
12
|
+
@use "./o-progressbar" as *;
|