@provoly/hypervisor 0.0.46 → 0.0.48
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/src/lib/event/detail/event-detail.component.mjs +8 -4
- package/esm2022/src/lib/event/filters/event-filters.component.mjs +3 -3
- package/esm2022/src/lib/event/list/event-list.component.mjs +3 -3
- package/esm2022/src/lib/general/i18n/fr.translations.mjs +3 -2
- package/esm2022/src/lib/general/status-display/status-display.component.mjs +9 -9
- package/esm2022/src/lib/model/event/hyp-event-tooltip.interface.mjs +1 -1
- package/esm2022/src/lib/model/hyp-equipment.interface.mjs +1 -1
- package/esm2022/src/lib/store/event/event.actions.mjs +2 -2
- package/esm2022/src/lib/store/event/event.effects.mjs +5 -5
- package/fesm2022/provoly-hypervisor.mjs +26 -21
- package/fesm2022/provoly-hypervisor.mjs.map +1 -1
- package/package.json +2 -2
- package/src/lib/event/detail/event-detail.component.d.ts +1 -0
- package/src/lib/general/i18n/fr.translations.d.ts +1 -0
- package/src/lib/general/status-display/status-display.component.d.ts +8 -5
- package/src/lib/model/event/hyp-event-tooltip.interface.d.ts +28 -4
- package/src/lib/model/hyp-equipment.interface.d.ts +1 -0
- package/src/lib/store/event/event.actions.d.ts +7 -1
- package/src/lib/store/event/event.effects.d.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/hypervisor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "16.x || 17.x",
|
|
6
6
|
"@angular/common": "16.x || 17.x",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"rxjs": "^7.4.0",
|
|
15
15
|
"uuid": "^8.3.2 || ^9.0.0",
|
|
16
16
|
"zone.js": "~0.14.3",
|
|
17
|
-
"@provoly/dashboard": "^1.2.
|
|
17
|
+
"@provoly/dashboard": "^1.2.6"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"tslib": "^2.6.2"
|
|
@@ -54,6 +54,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
54
54
|
set cancelModifications(evt: any);
|
|
55
55
|
constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, snackBar: PrySnackbarService, i18nService: PryI18nService);
|
|
56
56
|
get events(): HypEventDetails[];
|
|
57
|
+
get canAssociateProcedure(): boolean;
|
|
57
58
|
get procedure(): HypProcedure | undefined;
|
|
58
59
|
toggle(i: number): void;
|
|
59
60
|
modifyEvent(index: number, prop: string, $event: Event | string): void;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
3
2
|
import { SubscriptionnerDirective } from '@provoly/dashboard';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class StatusDisplayComponent extends SubscriptionnerDirective {
|
|
6
5
|
static idCounter: number;
|
|
7
6
|
id: number;
|
|
8
7
|
modified: EventEmitter<string>;
|
|
9
|
-
private
|
|
8
|
+
private _item;
|
|
10
9
|
targetStatuses: string[];
|
|
11
10
|
targetsDisplayed: boolean;
|
|
12
11
|
_modifiable: boolean;
|
|
13
|
-
set
|
|
12
|
+
set item(item: {
|
|
13
|
+
status: string;
|
|
14
|
+
});
|
|
14
15
|
set modifiable(modifiable: boolean);
|
|
15
16
|
get modifiable(): boolean;
|
|
16
|
-
get
|
|
17
|
+
get item(): {
|
|
18
|
+
status: string;
|
|
19
|
+
};
|
|
17
20
|
trigger(status: string): void;
|
|
18
21
|
updateTargetStatuses(): void;
|
|
19
22
|
toggle(): void;
|
|
20
23
|
constructor();
|
|
21
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<StatusDisplayComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StatusDisplayComponent, "hvy-status-display", never, { "
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatusDisplayComponent, "hvy-status-display", never, { "item": { "alias": "item"; "required": false; }; "modifiable": { "alias": "modifiable"; "required": false; }; }, { "modified": "modified"; }, never, never, false, never>;
|
|
23
26
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { HypEquipment } from '../hyp-equipment.interface';
|
|
2
|
+
import { HypEventDetails } from './hyp-event-detail.interface';
|
|
3
|
+
export interface HypEventTooltipBase {
|
|
2
4
|
id: string;
|
|
3
5
|
externalId: string;
|
|
4
6
|
name: string;
|
|
@@ -6,12 +8,34 @@ export interface HypEventTooltip {
|
|
|
6
8
|
domain: string;
|
|
7
9
|
family: string;
|
|
8
10
|
entity: string;
|
|
9
|
-
parent:
|
|
11
|
+
parent: HypParentTooltip;
|
|
12
|
+
services: HypServiceTooltip[];
|
|
13
|
+
events: HypEventDetails[];
|
|
10
14
|
managed: number;
|
|
11
15
|
position: string;
|
|
12
|
-
|
|
16
|
+
installDate: string;
|
|
17
|
+
}
|
|
18
|
+
export interface HypEventTooltipARM extends HypEventTooltipBase {
|
|
19
|
+
activeEnergy?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface HypEventTooltipFL extends HypEventTooltipBase {
|
|
22
|
+
presenceSensor?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type HypEventTooltip = HypEventTooltipARM | HypEventTooltipFL;
|
|
25
|
+
export interface HypServiceTooltip {
|
|
26
|
+
id: string;
|
|
27
|
+
externalId: string;
|
|
28
|
+
description: any;
|
|
29
|
+
equipment: HypEquipment;
|
|
30
|
+
creationDate: string;
|
|
31
|
+
lastModificationDate: string;
|
|
32
|
+
startDate: string;
|
|
33
|
+
endDate: string;
|
|
34
|
+
domain: string;
|
|
35
|
+
status: string;
|
|
36
|
+
category: string;
|
|
13
37
|
}
|
|
14
|
-
export interface
|
|
38
|
+
export interface HypParentTooltip {
|
|
15
39
|
id: string;
|
|
16
40
|
externalId: string;
|
|
17
41
|
name: string;
|
|
@@ -107,7 +107,13 @@ export declare const EventActions: {
|
|
|
107
107
|
procedure?: HypProcedure | undefined;
|
|
108
108
|
comment: string;
|
|
109
109
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] Close Event or Procedure">>;
|
|
110
|
-
statusSuccess: import("@ngrx/store").ActionCreator<"[Event] Close success", (
|
|
110
|
+
statusSuccess: import("@ngrx/store").ActionCreator<"[Event] Close success", (props: {
|
|
111
|
+
event?: HypEventDetails | undefined;
|
|
112
|
+
procedure?: HypProcedure | undefined;
|
|
113
|
+
}) => {
|
|
114
|
+
event?: HypEventDetails | undefined;
|
|
115
|
+
procedure?: HypProcedure | undefined;
|
|
116
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Close success">>;
|
|
111
117
|
statusFailure: import("@ngrx/store").ActionCreator<"[Event] Close failure", (props: {
|
|
112
118
|
error: string;
|
|
113
119
|
}) => {
|
|
@@ -46,7 +46,12 @@ export declare class EventEffects {
|
|
|
46
46
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] Load specific Event">) | ({
|
|
47
47
|
id: string;
|
|
48
48
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] Load specific Event for procedure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
49
|
-
close$: import("rxjs").Observable<
|
|
49
|
+
close$: import("rxjs").Observable<({
|
|
50
|
+
next?: boolean | undefined;
|
|
51
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Load Events">) | ({
|
|
52
|
+
event?: import("@provoly/hypervisor").HypEventDetails | undefined;
|
|
53
|
+
procedure?: import("@provoly/hypervisor").HypProcedure | undefined;
|
|
54
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Close success">) | ({
|
|
50
55
|
error: string;
|
|
51
56
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] Close failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
52
57
|
sort$: import("rxjs").Observable<{
|