@provoly/hypervisor 0.0.117 → 0.0.119
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/add-event/add-event.component.mjs +59 -0
- package/esm2022/src/lib/event/detail/event-detail.component.mjs +155 -48
- package/esm2022/src/lib/event/detail/event-details-tooltip.component.mjs +19 -0
- package/esm2022/src/lib/event/procedure-association-modal/procedure-association-modal.component.mjs +2 -2
- package/esm2022/src/lib/event/public-api.mjs +3 -1
- package/esm2022/src/lib/general/display-date.function.mjs +4 -0
- package/esm2022/src/lib/general/i18n/fr.translations.mjs +14 -2
- package/esm2022/src/lib/general/last-events/last-events.component.mjs +26 -0
- package/esm2022/src/lib/general/public-api.mjs +3 -1
- package/esm2022/src/lib/hypervisor.module.mjs +16 -4
- package/esm2022/src/lib/model/event/hyp-event-detail.interface.mjs +3 -2
- package/esm2022/src/lib/model/event/hyp-event.interface.mjs +1 -1
- package/esm2022/src/lib/procedure/model-list/procedure-list.component.mjs +3 -3
- package/esm2022/src/lib/store/equipment/equipment.service.mjs +1 -1
- package/esm2022/src/lib/store/event/event.actions.mjs +4 -2
- package/esm2022/src/lib/store/event/event.effects.mjs +2 -1
- package/esm2022/src/lib/store/event/event.service.mjs +23 -1
- package/fesm2022/provoly-hypervisor.mjs +445 -207
- package/fesm2022/provoly-hypervisor.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/event/detail/add-event/add-event.component.d.ts +21 -0
- package/src/lib/event/detail/event-detail.component.d.ts +28 -6
- package/src/lib/event/detail/event-details-tooltip.component.d.ts +15 -0
- package/src/lib/event/procedure-association-modal/procedure-association-modal.component.d.ts +1 -1
- package/src/lib/event/public-api.d.ts +2 -0
- package/src/lib/general/display-date.function.d.ts +1 -0
- package/src/lib/general/i18n/fr.translations.d.ts +12 -0
- package/src/lib/general/last-events/last-events.component.d.ts +11 -0
- package/src/lib/general/public-api.d.ts +2 -0
- package/src/lib/hypervisor.module.d.ts +12 -9
- package/src/lib/model/event/hyp-event-detail.interface.d.ts +1 -0
- package/src/lib/model/event/hyp-event.interface.d.ts +4 -0
- package/src/lib/model/procedure/hyp-procedure.interface.d.ts +1 -0
- package/src/lib/store/equipment/equipment.service.d.ts +2 -1
- package/src/lib/store/event/event.actions.d.ts +12 -0
- package/src/lib/store/event/event.effects.d.ts +7 -0
- package/src/lib/store/event/event.service.d.ts +3 -0
- package/styles/components/_index.scss +2 -0
- package/styles/components/_o-hvy-event-detail-add.scss +34 -0
- package/styles/components/_o-hvy-event-detail.scss +36 -0
- package/styles/components/_o-hvy-event-summary-list.scss +4 -0
- package/styles/components/_o-hvy-last-events.scss +74 -0
- package/styles/components/_o-hvy-procedure-list.scss +4 -3
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PryDialogRef } from '@provoly/dashboard';
|
|
2
|
+
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { HypEventDetails } from '../../../model/event/hyp-event-detail.interface';
|
|
4
|
+
import { HypEventDetailsWithMatching } from '../event-detail.component';
|
|
5
|
+
import { EventService } from '../../../store/event/event.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class HvyEventAddEventComponent {
|
|
8
|
+
private dialog;
|
|
9
|
+
data: {};
|
|
10
|
+
private eventService;
|
|
11
|
+
onEventSearch$: Subject<void>;
|
|
12
|
+
eventSelectValue: string | HypEventDetails | undefined;
|
|
13
|
+
events$: Observable<HypEventDetailsWithMatching[]>;
|
|
14
|
+
eventToAdd?: HypEventDetails;
|
|
15
|
+
constructor(dialog: PryDialogRef<HvyEventAddEventComponent>, data: {}, eventService: EventService);
|
|
16
|
+
selectedEventChange($event: any): void;
|
|
17
|
+
closeModal(): void;
|
|
18
|
+
add(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HvyEventAddEventComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HvyEventAddEventComponent, "hvy-add-event", never, {}, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, QueryList, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { HypProcedure } from '../../model/procedure/hyp-procedure.interface';
|
|
3
3
|
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
4
|
-
import { PryDialogService, PryI18nService, SubscriptionnerDirective } from '@provoly/dashboard';
|
|
4
|
+
import { PryDialogRef, PryDialogService, PryI18nService, PryIconComponent, SubscriptionnerDirective } from '@provoly/dashboard';
|
|
5
5
|
import { HypEquipment } from '../../model/hyp-equipment.interface';
|
|
6
6
|
import { EquipmentService } from '../../store/equipment/equipment.service';
|
|
7
7
|
import { Store } from '@ngrx/store';
|
|
@@ -9,6 +9,9 @@ import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
|
9
9
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
10
10
|
import { HypCommentsService } from '../../store/comments/comments.service';
|
|
11
11
|
import { HypComment } from '../../model/comment.interface';
|
|
12
|
+
import { HypServiceTooltip } from '../../model/event/hyp-event-tooltip.interface';
|
|
13
|
+
import { HvyEventDetailsTooltipComponent } from './event-details-tooltip.component';
|
|
14
|
+
import { EventService } from '../../store/event/event.service';
|
|
12
15
|
import * as i0 from "@angular/core";
|
|
13
16
|
export type ChangeStatusContext = {
|
|
14
17
|
comment: string;
|
|
@@ -19,6 +22,9 @@ export type ChangeStatusContext = {
|
|
|
19
22
|
export interface HypEquipmentWithMatching extends HypEquipment {
|
|
20
23
|
html: string;
|
|
21
24
|
}
|
|
25
|
+
export interface HypEventDetailsWithMatching extends HypEventDetails {
|
|
26
|
+
html: string;
|
|
27
|
+
}
|
|
22
28
|
export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
23
29
|
private equipmentService;
|
|
24
30
|
private store;
|
|
@@ -27,6 +33,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
27
33
|
private i18nService;
|
|
28
34
|
private pryDialog;
|
|
29
35
|
private commentsService;
|
|
36
|
+
private eventService;
|
|
30
37
|
opened: boolean[];
|
|
31
38
|
criticalities: string[];
|
|
32
39
|
_events: HypEventDetails[];
|
|
@@ -40,6 +47,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
40
47
|
field: string;
|
|
41
48
|
code: string;
|
|
42
49
|
}[][]>;
|
|
50
|
+
addedEvent: EventEmitter<HypEventDetails>;
|
|
43
51
|
errors: {
|
|
44
52
|
field: string;
|
|
45
53
|
code: string;
|
|
@@ -58,9 +66,13 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
58
66
|
comments$?: Observable<{
|
|
59
67
|
[p: number]: HypComment[];
|
|
60
68
|
}>;
|
|
61
|
-
onEquipmentSearch$: Subject<
|
|
62
|
-
equipmentSelectValue
|
|
69
|
+
onEquipmentSearch$: Subject<number>;
|
|
70
|
+
equipmentSelectValue: (string | HypEquipment | undefined)[];
|
|
63
71
|
equipments$: Observable<HypEquipmentWithMatching[]>;
|
|
72
|
+
detailHoverIcon: QueryList<ElementRef<PryIconComponent>>;
|
|
73
|
+
onEventSearch$: Subject<number>;
|
|
74
|
+
eventSelectValue: (string | HypEventDetails | undefined)[];
|
|
75
|
+
events$: Observable<HypEventDetailsWithMatching[]>;
|
|
64
76
|
set events(events: HypEventDetails[]);
|
|
65
77
|
set procedure(procedure: HypProcedure);
|
|
66
78
|
set cancelModifications(evt: any);
|
|
@@ -68,7 +80,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
68
80
|
index: number;
|
|
69
81
|
equipmentName?: string;
|
|
70
82
|
});
|
|
71
|
-
constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, i18nService: PryI18nService, pryDialog: PryDialogService, commentsService: HypCommentsService);
|
|
83
|
+
constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, i18nService: PryI18nService, pryDialog: PryDialogService, commentsService: HypCommentsService, eventService: EventService);
|
|
72
84
|
get events(): HypEventDetails[];
|
|
73
85
|
get canAssociateProcedure(): boolean;
|
|
74
86
|
get procedure(): HypProcedure | undefined;
|
|
@@ -88,6 +100,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
88
100
|
eqEntity: boolean;
|
|
89
101
|
startDate: boolean;
|
|
90
102
|
endDate: boolean;
|
|
103
|
+
parent: boolean;
|
|
91
104
|
};
|
|
92
105
|
_outputModifications(): void;
|
|
93
106
|
validateEvents(events: HypEventDetails[]): void;
|
|
@@ -115,6 +128,15 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
115
128
|
message: string;
|
|
116
129
|
}): void;
|
|
117
130
|
selectedEquipmentChange($event: string | HypEquipment, index: number): void;
|
|
131
|
+
equipmentsEvents: {
|
|
132
|
+
events?: HypEventDetails[];
|
|
133
|
+
services?: HypServiceTooltip[];
|
|
134
|
+
}[];
|
|
135
|
+
private populateEquipment;
|
|
136
|
+
tooltipRef?: PryDialogRef<HvyEventDetailsTooltipComponent>;
|
|
137
|
+
toggleDetailsTooltip(idx: number): void;
|
|
138
|
+
selectedParentChange($event: string | HypEventDetails, index: number): void;
|
|
139
|
+
addOneEvent(): void;
|
|
118
140
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventDetailComponent, never>;
|
|
119
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EventDetailComponent, "hvy-event-detail", never, { "title": { "alias": "title"; "required": false; }; "me": { "alias": "me"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "readonlyProcedure": { "alias": "readonlyProcedure"; "required": false; }; "enableEditActions": { "alias": "enableEditActions"; "required": false; }; "events": { "alias": "events"; "required": false; }; "procedure": { "alias": "procedure"; "required": false; }; "cancelModifications": { "alias": "cancelModifications"; "required": false; }; "equipmentName": { "alias": "equipmentName"; "required": false; }; }, { "modifiedEvents": "modifiedEvents"; "modifiedProcedure": "modifiedProcedure"; "eventErrors": "eventErrors"; "comfirmDialogOpened": "comfirmDialogOpened"; }, never, never, false, never>;
|
|
141
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EventDetailComponent, "hvy-event-detail", never, { "title": { "alias": "title"; "required": false; }; "me": { "alias": "me"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "readonlyProcedure": { "alias": "readonlyProcedure"; "required": false; }; "enableEditActions": { "alias": "enableEditActions"; "required": false; }; "events": { "alias": "events"; "required": false; }; "procedure": { "alias": "procedure"; "required": false; }; "cancelModifications": { "alias": "cancelModifications"; "required": false; }; "equipmentName": { "alias": "equipmentName"; "required": false; }; }, { "modifiedEvents": "modifiedEvents"; "modifiedProcedure": "modifiedProcedure"; "eventErrors": "eventErrors"; "addedEvent": "addedEvent"; "comfirmDialogOpened": "comfirmDialogOpened"; }, never, never, false, never>;
|
|
120
142
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HypServiceTooltip } from '../../model/event/hyp-event-tooltip.interface';
|
|
2
|
+
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class HvyEventDetailsTooltipComponent {
|
|
5
|
+
data: {
|
|
6
|
+
events: HypEventDetails[];
|
|
7
|
+
services: HypServiceTooltip[];
|
|
8
|
+
};
|
|
9
|
+
constructor(data: {
|
|
10
|
+
events: HypEventDetails[];
|
|
11
|
+
services: HypServiceTooltip[];
|
|
12
|
+
});
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HvyEventDetailsTooltipComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HvyEventDetailsTooltipComponent, "hvy-event-detail-tooltip", never, {}, {}, never, never, false, never>;
|
|
15
|
+
}
|
package/src/lib/event/procedure-association-modal/procedure-association-modal.component.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class ProcedureAssociationModalComponent extends SubscriptionnerD
|
|
|
14
14
|
private dialog;
|
|
15
15
|
selectedEvents$: Observable<HypEventDetails[]>;
|
|
16
16
|
selectedDomain?: string;
|
|
17
|
-
onDomainSelect$:
|
|
17
|
+
onDomainSelect$: BehaviorSubject<void>;
|
|
18
18
|
procedureSelectValue?: string | HypProcedureModel;
|
|
19
19
|
onProcedureSearch$: Subject<void>;
|
|
20
20
|
procedures$: Observable<HypProcedureModelWithMatching[]>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './detail/event-detail.component';
|
|
2
|
+
export * from './detail/event-details-tooltip.component';
|
|
3
|
+
export * from './detail/add-event/add-event.component';
|
|
2
4
|
export * from './list/event-list.component';
|
|
3
5
|
export * from './list/event-column-order.component';
|
|
4
6
|
export * from './filters/on/click/event-filters.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const displayDate: (endDate: string) => string;
|
|
@@ -91,6 +91,10 @@ export declare const frTranslations: {
|
|
|
91
91
|
prm: string;
|
|
92
92
|
presenceSensor: string;
|
|
93
93
|
parent: string;
|
|
94
|
+
parentEvent: {
|
|
95
|
+
name: string;
|
|
96
|
+
placeholder: string;
|
|
97
|
+
};
|
|
94
98
|
consult: string;
|
|
95
99
|
entity: {
|
|
96
100
|
NOTFOUND: string;
|
|
@@ -104,6 +108,14 @@ export declare const frTranslations: {
|
|
|
104
108
|
heads: string;
|
|
105
109
|
};
|
|
106
110
|
equipmentPlaceholder: string;
|
|
111
|
+
export: {
|
|
112
|
+
filename: string;
|
|
113
|
+
};
|
|
114
|
+
add: {
|
|
115
|
+
title: string;
|
|
116
|
+
description: string;
|
|
117
|
+
search: string;
|
|
118
|
+
};
|
|
107
119
|
};
|
|
108
120
|
eventSummary: {
|
|
109
121
|
from: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SubscriptionnerDirective } from '@provoly/dashboard';
|
|
2
|
+
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
3
|
+
import { HypServiceTooltip } from '../../model/event/hyp-event-tooltip.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LastEventsComponent extends SubscriptionnerDirective {
|
|
6
|
+
protected readonly displayDate: (endDate: string) => string;
|
|
7
|
+
services: HypServiceTooltip[];
|
|
8
|
+
events: HypEventDetails[];
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LastEventsComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LastEventsComponent, "hvy-last-events", never, { "services": { "alias": "services"; "required": false; }; "events": { "alias": "events"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -11,6 +11,7 @@ export * from './progress-display/progress-display.component';
|
|
|
11
11
|
export * from './column-order/column-order.component';
|
|
12
12
|
export * from './comments/comments.component';
|
|
13
13
|
export * from './pad-id.function';
|
|
14
|
+
export * from './last-events/last-events.component';
|
|
14
15
|
export * from './procedure-actions/actions-types.constant';
|
|
15
16
|
export * from './procedure-actions/action-menu.component';
|
|
16
17
|
export * from './procedure-actions/procedure-actions.component';
|
|
@@ -26,3 +27,4 @@ export * from './procedure-actions/action-parameters/email/email-action-display.
|
|
|
26
27
|
export * from './procedure-actions/action-parameters/service/service-action-parameter.component';
|
|
27
28
|
export * from './procedure-actions/action-parameters/service/service-action-display.component';
|
|
28
29
|
export * from './procedure-actions/action-parameters/service/create-service.component';
|
|
30
|
+
export * from './display-date.function';
|
|
@@ -38,14 +38,17 @@ import * as i33 from "./general/procedure-actions/action-parameters/service/serv
|
|
|
38
38
|
import * as i34 from "./general/procedure-actions/action-parameters/service/service-action-display.component";
|
|
39
39
|
import * as i35 from "./general/display-locale-datetime/display-locale-datetime.pipe";
|
|
40
40
|
import * as i36 from "./general/comments/comments.component";
|
|
41
|
-
import * as i37 from "./general/
|
|
42
|
-
import * as i38 from "
|
|
43
|
-
import * as i39 from "
|
|
44
|
-
import * as i40 from "
|
|
45
|
-
import * as i41 from "@
|
|
46
|
-
import * as i42 from "@
|
|
47
|
-
import * as i43 from "@angular/
|
|
48
|
-
import * as i44 from "@
|
|
41
|
+
import * as i37 from "./general/last-events/last-events.component";
|
|
42
|
+
import * as i38 from "./event/detail/event-details-tooltip.component";
|
|
43
|
+
import * as i39 from "./event/detail/add-event/add-event.component";
|
|
44
|
+
import * as i40 from "./general/procedure-actions/procedure-actions.component";
|
|
45
|
+
import * as i41 from "@ngrx/store";
|
|
46
|
+
import * as i42 from "@ngrx/effects";
|
|
47
|
+
import * as i43 from "@angular/common";
|
|
48
|
+
import * as i44 from "@provoly/dashboard";
|
|
49
|
+
import * as i45 from "@provoly/dashboard/components/checkbox";
|
|
50
|
+
import * as i46 from "@angular/forms";
|
|
51
|
+
import * as i47 from "@angular/router";
|
|
49
52
|
export declare class PvyHypervisorModule {
|
|
50
53
|
private baseConfig;
|
|
51
54
|
private store;
|
|
@@ -57,6 +60,6 @@ export declare class PvyHypervisorModule {
|
|
|
57
60
|
url: string;
|
|
58
61
|
}, store: Store<any>, i18nService: PryI18nService);
|
|
59
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
|
|
60
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventColumnOrderComponent, typeof i4.IconDisplayComponent, typeof i5.EventSummaryItemComponent, typeof i6.EventSummaryListComponent, typeof i7.EventSummaryPageComponent, typeof i8.EventIconPipe, typeof i9.ForDatetimeLocalPipe, typeof i10.StatusDisplayComponent, typeof i11.ProgressDisplayComponent, typeof i12.ColumnOrderComponent, typeof i13.EventFiltersComponent, typeof i14.DateFilterComponent, typeof i15.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent, typeof i22.HvyActionMenuComponent, typeof i23.HvyCreateServiceComponent, typeof i24.HvyActionParameterComponent, typeof i25.HvyBaseParameterActionComponent, typeof i26.HvyOtherActionParameterComponent, typeof i27.HvyOtherActionDisplayComponent, typeof i28.HvyNoParamsActionDisplayComponent, typeof i29.HvyPhoneActionParameterComponent, typeof i30.HvyPhoneActionDisplayComponent, typeof i31.HvyEmailActionDisplayComponent, typeof i32.HvyEmailActionParameterComponent, typeof i33.HvyServiceActionParameterComponent, typeof i34.HvyServiceActionDisplayComponent, typeof i35.DisplayLocaleDateTime, typeof i36.HvyCommentsComponent, typeof i37.ProcedureActionsComponent], [typeof
|
|
63
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventColumnOrderComponent, typeof i4.IconDisplayComponent, typeof i5.EventSummaryItemComponent, typeof i6.EventSummaryListComponent, typeof i7.EventSummaryPageComponent, typeof i8.EventIconPipe, typeof i9.ForDatetimeLocalPipe, typeof i10.StatusDisplayComponent, typeof i11.ProgressDisplayComponent, typeof i12.ColumnOrderComponent, typeof i13.EventFiltersComponent, typeof i14.DateFilterComponent, typeof i15.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent, typeof i22.HvyActionMenuComponent, typeof i23.HvyCreateServiceComponent, typeof i24.HvyActionParameterComponent, typeof i25.HvyBaseParameterActionComponent, typeof i26.HvyOtherActionParameterComponent, typeof i27.HvyOtherActionDisplayComponent, typeof i28.HvyNoParamsActionDisplayComponent, typeof i29.HvyPhoneActionParameterComponent, typeof i30.HvyPhoneActionDisplayComponent, typeof i31.HvyEmailActionDisplayComponent, typeof i32.HvyEmailActionParameterComponent, typeof i33.HvyServiceActionParameterComponent, typeof i34.HvyServiceActionDisplayComponent, typeof i35.DisplayLocaleDateTime, typeof i36.HvyCommentsComponent, typeof i37.LastEventsComponent, typeof i38.HvyEventDetailsTooltipComponent, typeof i39.HvyEventAddEventComponent, typeof i40.ProcedureActionsComponent], [typeof i41.StoreFeatureModule, typeof i41.StoreFeatureModule, typeof i41.StoreFeatureModule, typeof i41.StoreFeatureModule, typeof i42.EffectsFeatureModule, typeof i43.NgForOf, typeof i43.AsyncPipe, typeof i44.PryI18nModule, typeof i44.PryCoreModule, typeof i43.NgStyle, typeof i45.PryCheckboxModule, typeof i46.FormsModule, typeof i47.RouterLink, typeof i44.PrySinceDateModule, typeof i43.DatePipe, typeof i44.PryIconModule, typeof i43.KeyValuePipe, typeof i44.PrySelectModule, typeof i43.JsonPipe, typeof i44.PryDatePickerModule, typeof i43.NgIf, typeof i44.PryCoreModule, typeof i44.PryI18nModule, typeof i46.FormsModule], [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventColumnOrderComponent, typeof i4.IconDisplayComponent, typeof i5.EventSummaryItemComponent, typeof i6.EventSummaryListComponent, typeof i7.EventSummaryPageComponent, typeof i8.EventIconPipe, typeof i9.ForDatetimeLocalPipe, typeof i10.StatusDisplayComponent, typeof i11.ProgressDisplayComponent, typeof i12.ColumnOrderComponent, typeof i13.EventFiltersComponent, typeof i14.DateFilterComponent, typeof i15.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent, typeof i22.HvyActionMenuComponent, typeof i23.HvyCreateServiceComponent, typeof i24.HvyActionParameterComponent, typeof i25.HvyBaseParameterActionComponent, typeof i26.HvyOtherActionParameterComponent, typeof i27.HvyOtherActionDisplayComponent, typeof i28.HvyNoParamsActionDisplayComponent, typeof i29.HvyPhoneActionParameterComponent, typeof i30.HvyPhoneActionDisplayComponent, typeof i31.HvyEmailActionDisplayComponent, typeof i32.HvyEmailActionParameterComponent, typeof i33.HvyServiceActionParameterComponent, typeof i34.HvyServiceActionDisplayComponent, typeof i35.DisplayLocaleDateTime, typeof i36.HvyCommentsComponent, typeof i37.LastEventsComponent, typeof i38.HvyEventDetailsTooltipComponent, typeof i39.HvyEventAddEventComponent]>;
|
|
61
64
|
static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
|
|
62
65
|
}
|
|
@@ -2,12 +2,13 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
4
|
import { HypEquipment } from '../../model/hyp-equipment.interface';
|
|
5
|
+
import { HypEventTooltipBase } from '../../model/event/hyp-event-tooltip.interface';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class EquipmentService {
|
|
7
8
|
private httpClient;
|
|
8
9
|
private store;
|
|
9
10
|
constructor(httpClient: HttpClient, store: Store<any>);
|
|
10
|
-
findByName(name: string): Observable<
|
|
11
|
+
findByName(name: string): Observable<HypEventTooltipBase>;
|
|
11
12
|
list(): Observable<HypEquipment[]>;
|
|
12
13
|
search(search: string | undefined): Observable<HypEquipment[]>;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<EquipmentService, never>;
|
|
@@ -84,6 +84,13 @@ export declare const EventActions: {
|
|
|
84
84
|
}) => {
|
|
85
85
|
procedure: HypProcedure;
|
|
86
86
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save Procedure and linked Events">>;
|
|
87
|
+
addEventToProcedure: import("@ngrx/store").ActionCreator<"[Event] Add event to procedure", (props: {
|
|
88
|
+
eventId: number;
|
|
89
|
+
procedure: HypProcedure;
|
|
90
|
+
}) => {
|
|
91
|
+
eventId: number;
|
|
92
|
+
procedure: HypProcedure;
|
|
93
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Add event to procedure">>;
|
|
87
94
|
saveSuccess: import("@ngrx/store").ActionCreator<"[Event] Save success", (props: {
|
|
88
95
|
event?: HypEventDetails | undefined;
|
|
89
96
|
procedure?: HypProcedure | undefined;
|
|
@@ -145,4 +152,9 @@ export declare const EventActions: {
|
|
|
145
152
|
}) => {
|
|
146
153
|
error: string;
|
|
147
154
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] Associate Procedure to Event Failure">>;
|
|
155
|
+
export: import("@ngrx/store").ActionCreator<"[Event] Export events", (props: {
|
|
156
|
+
archived: boolean;
|
|
157
|
+
}) => {
|
|
158
|
+
archived: boolean;
|
|
159
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Export events">>;
|
|
148
160
|
};
|
|
@@ -43,6 +43,13 @@ export declare class EventEffects {
|
|
|
43
43
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save success">) | ({
|
|
44
44
|
error: any;
|
|
45
45
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
46
|
+
addEventToProcedure$: import("rxjs").Observable<({
|
|
47
|
+
event?: import("@provoly/hypervisor").HypEventDetails | undefined;
|
|
48
|
+
procedure?: import("@provoly/hypervisor").HypProcedure | undefined;
|
|
49
|
+
creation: boolean;
|
|
50
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save success">) | ({
|
|
51
|
+
error: any;
|
|
52
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Save failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
46
53
|
refreshAfterSave$: import("rxjs").Observable<({
|
|
47
54
|
id: number;
|
|
48
55
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] Load specific Event">) | ({
|
|
@@ -22,9 +22,12 @@ export declare class EventService {
|
|
|
22
22
|
getProcedure(id: number): Observable<HypProcedure>;
|
|
23
23
|
save(event: HypEventDetails): Observable<HypEventDetails>;
|
|
24
24
|
saveProcedure(procedure: HypProcedure): Observable<void>;
|
|
25
|
+
addEventToProcedure(eventId: number, procedure: HypProcedure): Observable<void>;
|
|
25
26
|
status(event: HypEventDetails, status: string, comment: string): Observable<void>;
|
|
26
27
|
statusProcedure(procedure: HypProcedure, status: string, comment: string): Observable<void>;
|
|
27
28
|
associateProcedure(procedureId: number, eventIds: number[]): Observable<HypProcedure>;
|
|
29
|
+
export(archived: boolean): Observable<import("@angular/common/http").HttpResponse<ArrayBuffer>>;
|
|
30
|
+
search(search: string | undefined): Observable<HypEventDetails[]>;
|
|
28
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
|
|
29
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
|
|
30
33
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use 'node_modules/@provoly/dashboard/styles/abstracts' as *;
|
|
2
|
+
@use 'node_modules/@provoly/dashboard/styles-theme/abstracts-theme/variables.theme' as *;
|
|
3
|
+
|
|
4
|
+
.o-hvy-event-detail-add {
|
|
5
|
+
background-color: white;
|
|
6
|
+
padding: toRem(15);
|
|
7
|
+
border-radius: toRem(15);
|
|
8
|
+
width: toRem(900);
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: toRem(10);
|
|
12
|
+
|
|
13
|
+
h3, p {
|
|
14
|
+
margin: auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__container {
|
|
18
|
+
padding: toRem(10) toRem(100);
|
|
19
|
+
|
|
20
|
+
.a-pry-select__content {
|
|
21
|
+
input {
|
|
22
|
+
width: toRem(500);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__buttons {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
gap: toRem(10);
|
|
31
|
+
justify-content: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
@@ -38,6 +38,20 @@
|
|
|
38
38
|
margin-right: toRem(20);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
.add-button {
|
|
43
|
+
color: themed($theme-map, 'color', 'primary', 'contrast', 200);
|
|
44
|
+
background-color: themed($theme-map, 'color', 'primary', 750);
|
|
45
|
+
padding: 0;
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
margin: 0;
|
|
48
|
+
transform: translateY(toRem(5));
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
|
|
51
|
+
pry-icon {
|
|
52
|
+
display: block;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
41
55
|
}
|
|
42
56
|
}
|
|
43
57
|
|
|
@@ -136,6 +150,20 @@
|
|
|
136
150
|
}
|
|
137
151
|
}
|
|
138
152
|
}
|
|
153
|
+
|
|
154
|
+
&__tooltip {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: row;
|
|
157
|
+
|
|
158
|
+
*:first-child {
|
|
159
|
+
flex: 1;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
pry-icon {
|
|
163
|
+
position: relative;
|
|
164
|
+
width: 0;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
139
167
|
}
|
|
140
168
|
}
|
|
141
169
|
}
|
|
@@ -252,3 +280,11 @@
|
|
|
252
280
|
.a-pry-select__options__option {
|
|
253
281
|
min-height: toRem(35);
|
|
254
282
|
}
|
|
283
|
+
|
|
284
|
+
.o-hvy-event-detail-tooltip {
|
|
285
|
+
background-color: white;
|
|
286
|
+
padding: toRem(15);
|
|
287
|
+
border-radius: toRem(5);
|
|
288
|
+
box-shadow: 1px 3px 6px #DDDDDD, -1px 3px 6px #DDDDDD;
|
|
289
|
+
width: toRem(400);
|
|
290
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@use 'node_modules/@provoly/dashboard/styles/abstracts' as *;
|
|
2
|
+
@use 'node_modules/@provoly/dashboard/styles-theme/abstracts-theme/variables.theme' as *;
|
|
3
|
+
|
|
4
|
+
.o-hvy-last-events {
|
|
5
|
+
&__events {
|
|
6
|
+
&__item {
|
|
7
|
+
font-size: toRem(12);
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-areas: "icon title status"
|
|
10
|
+
"icon descr status";
|
|
11
|
+
grid-template-columns: toRem(40) auto toRem(80);
|
|
12
|
+
|
|
13
|
+
&__icon {
|
|
14
|
+
grid-area: icon;
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__title {
|
|
19
|
+
grid-area: title;
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__status {
|
|
24
|
+
grid-area: status;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__descr {
|
|
28
|
+
grid-area: descr;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__services {
|
|
34
|
+
&__item {
|
|
35
|
+
font-size: toRem(12);
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-areas: "icon title status"
|
|
38
|
+
"icon descr status"
|
|
39
|
+
"icon date status";
|
|
40
|
+
grid-template-columns: toRem(40) auto toRem(80);
|
|
41
|
+
padding: toRem(5);
|
|
42
|
+
|
|
43
|
+
&__icon {
|
|
44
|
+
grid-area: icon;
|
|
45
|
+
display: flex;
|
|
46
|
+
|
|
47
|
+
pry-icon {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
background-color: #71E4EB;
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
width: toRem(25);
|
|
52
|
+
height: toRem(25);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__title {
|
|
57
|
+
grid-area: title;
|
|
58
|
+
font-weight: bold;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__status {
|
|
62
|
+
grid-area: status;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__descr {
|
|
66
|
+
grid-area: descr;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__date {
|
|
70
|
+
grid-area: date;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -17,16 +17,17 @@
|
|
|
17
17
|
text-align: left;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
.o-hvy-events-table__line__cell:nth-child(1),
|
|
20
21
|
.o-hvy-events-table__line__cell:nth-child(3),
|
|
21
|
-
.o-hvy-events-table__line__cell:nth-child(4),
|
|
22
22
|
.o-hvy-events-table__line__cell:nth-child(5),
|
|
23
23
|
.o-hvy-events-table__line__cell:nth-child(6),
|
|
24
24
|
.o-hvy-events-table__line__cell:nth-child(7) {
|
|
25
25
|
width: 14%;
|
|
26
26
|
text-align: left;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
.o-hvy-events-table__line__cell:nth-child(
|
|
28
|
+
|
|
29
|
+
.o-hvy-events-table__line__cell:nth-child(4),
|
|
30
|
+
.o-hvy-events-table__line__cell:nth-child(8) {
|
|
30
31
|
width: toRem(100);
|
|
31
32
|
text-align: center;
|
|
32
33
|
}
|