@provoly/hypervisor 1.5.4 → 1.5.6
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 +92 -188
- package/esm2022/src/lib/event/list/event-list.component.mjs +3 -3
- package/esm2022/src/lib/hypervisor.module.mjs +17 -5
- package/esm2022/src/lib/model/hyp-equipment.interface.mjs +1 -1
- package/esm2022/src/lib/store/equipment/equipment.service.mjs +1 -1
- package/fesm2022/provoly-hypervisor.mjs +102 -187
- package/fesm2022/provoly-hypervisor.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/event/detail/event-detail.component.d.ts +16 -18
- package/src/lib/hypervisor.module.d.ts +2 -1
- package/src/lib/model/hyp-equipment.interface.d.ts +4 -0
- package/src/lib/store/equipment/equipment.service.d.ts +2 -2
- package/styles/components/_o-hvy-event-detail.scss +32 -0
- package/styles/components/_o-hvy-events-table.scss +1 -1
package/package.json
CHANGED
|
@@ -2,18 +2,19 @@ import { ElementRef, EventEmitter, QueryList, TemplateRef, ViewContainerRef } fr
|
|
|
2
2
|
import { HypProcedure } from '../../model/procedure/hyp-procedure.interface';
|
|
3
3
|
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
4
4
|
import { PryDialogRef, PryDialogService, PryI18nService, PryIconComponent, SubscriptionnerDirective } from '@provoly/dashboard';
|
|
5
|
-
import { HypEquipment } from '../../model/hyp-equipment.interface';
|
|
5
|
+
import { EquipmentForEvent, HypEquipment } from '../../model/hyp-equipment.interface';
|
|
6
6
|
import { EquipmentService } from '../../store/equipment/equipment.service';
|
|
7
7
|
import { Store } from '@ngrx/store';
|
|
8
8
|
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
9
9
|
import { Observable, Subject } from 'rxjs';
|
|
10
10
|
import { HypCommentsService } from '../../store/comments/comments.service';
|
|
11
|
-
import {
|
|
11
|
+
import { HypServiceTooltip } from '../../model/event/hyp-event-tooltip.interface';
|
|
12
12
|
import { HvyEventDetailsTooltipComponent } from './event-details-tooltip.component';
|
|
13
13
|
import { EventService } from '../../store/event/event.service';
|
|
14
14
|
import { HypAction } from '../../model/procedure/hyp-action.interface';
|
|
15
15
|
import { HypComment } from '../../model/comment.interface';
|
|
16
16
|
import { Actions } from '@ngrx/effects';
|
|
17
|
+
import { FormArray, FormBuilder, FormControl } from "@angular/forms";
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
export type ChangeStatusContext = {
|
|
19
20
|
comment: string;
|
|
@@ -21,10 +22,6 @@ export type ChangeStatusContext = {
|
|
|
21
22
|
status: string;
|
|
22
23
|
all: boolean;
|
|
23
24
|
};
|
|
24
|
-
export interface HypEquipmentWithMatching extends HypEquipment {
|
|
25
|
-
html: string;
|
|
26
|
-
displayName: string;
|
|
27
|
-
}
|
|
28
25
|
export interface HypEventDetailsWithMatching extends HypEventDetails {
|
|
29
26
|
html: string;
|
|
30
27
|
displayName: string;
|
|
@@ -51,11 +48,16 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
51
48
|
private store;
|
|
52
49
|
private overlay;
|
|
53
50
|
private viewContainerRef;
|
|
54
|
-
|
|
51
|
+
i18nService: PryI18nService;
|
|
55
52
|
private pryDialog;
|
|
56
53
|
private commentsService;
|
|
57
54
|
private eventService;
|
|
58
55
|
private actions$;
|
|
56
|
+
private formBuilder;
|
|
57
|
+
eventForm: import("@angular/forms").FormGroup<{
|
|
58
|
+
equips: FormArray<FormControl<unknown>>;
|
|
59
|
+
}>;
|
|
60
|
+
get equipControls(): FormArray;
|
|
59
61
|
placesChoices: ({
|
|
60
62
|
key: string;
|
|
61
63
|
display: string;
|
|
@@ -88,9 +90,8 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
88
90
|
overlayRef?: OverlayRef;
|
|
89
91
|
confirmDialog: TemplateRef<any>;
|
|
90
92
|
comfirmDialogOpened: EventEmitter<ChangeStatusContext>;
|
|
91
|
-
onEquipmentSearch$: Subject<number>;
|
|
92
93
|
equipmentSelectValue: (string | HypEquipment | undefined)[];
|
|
93
|
-
equipments$: Observable<
|
|
94
|
+
equipments$: Observable<EquipmentForEvent[]>[];
|
|
94
95
|
detailHoverIcon: QueryList<ElementRef<PryIconComponent>>;
|
|
95
96
|
onEventSearch$: Subject<number>;
|
|
96
97
|
eventSelectValue: (string | HypEventDetails | undefined)[];
|
|
@@ -113,18 +114,13 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
113
114
|
set events(events: HypEventDetails[]);
|
|
114
115
|
set procedure(procedure: HypProcedure);
|
|
115
116
|
set cancelModifications(evt: any);
|
|
116
|
-
|
|
117
|
-
index: number;
|
|
118
|
-
equipmentName?: string;
|
|
119
|
-
});
|
|
120
|
-
selectedEquipment: boolean;
|
|
117
|
+
selectedEquipment: boolean[];
|
|
121
118
|
adressDisabled: boolean[];
|
|
122
|
-
constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, i18nService: PryI18nService, pryDialog: PryDialogService, commentsService: HypCommentsService, eventService: EventService, actions$: Actions);
|
|
119
|
+
constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, i18nService: PryI18nService, pryDialog: PryDialogService, commentsService: HypCommentsService, eventService: EventService, actions$: Actions, formBuilder: FormBuilder);
|
|
123
120
|
isEventModified(): boolean;
|
|
124
121
|
private setDistrictForEvents;
|
|
125
122
|
private setCreatorForEvents;
|
|
126
123
|
private getComboBoxRegExp;
|
|
127
|
-
filterEquipmentsIfSelected(index: number, search: string, equipments: HypEquipment[]): HypEquipment[];
|
|
128
124
|
get me(): {
|
|
129
125
|
sub: string | undefined;
|
|
130
126
|
userName: string | undefined;
|
|
@@ -172,7 +168,9 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
172
168
|
openAssociationModal(): void;
|
|
173
169
|
openDeleteModal(): void;
|
|
174
170
|
private convertDate;
|
|
175
|
-
|
|
171
|
+
displayEquipment(equipment: EquipmentForEvent): string;
|
|
172
|
+
getEquipControl(index: number): FormControl;
|
|
173
|
+
closeAutocomplete(index: number): void;
|
|
176
174
|
equipmentEventsForTooltip: {
|
|
177
175
|
events?: HypEventDetails[];
|
|
178
176
|
services?: HypServiceTooltip[];
|
|
@@ -192,5 +190,5 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
192
190
|
}): void;
|
|
193
191
|
ngOnDestroy(): void;
|
|
194
192
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventDetailComponent, never>;
|
|
195
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EventDetailComponent, "hvy-event-detail", never, { "placesChoices": { "alias": "placesChoices"; "required": false; }; "title": { "alias": "title"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "readonlyProcedure": { "alias": "readonlyProcedure"; "required": false; }; "enableEditActions": { "alias": "enableEditActions"; "required": false; }; "readOnlyComment": { "alias": "readOnlyComment"; "required": false; }; "me": { "alias": "me"; "required": false; }; "events": { "alias": "events"; "required": false; }; "procedure": { "alias": "procedure"; "required": false; }; "cancelModifications": { "alias": "cancelModifications"; "required": false; };
|
|
193
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EventDetailComponent, "hvy-event-detail", never, { "placesChoices": { "alias": "placesChoices"; "required": false; }; "title": { "alias": "title"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "readonlyProcedure": { "alias": "readonlyProcedure"; "required": false; }; "enableEditActions": { "alias": "enableEditActions"; "required": false; }; "readOnlyComment": { "alias": "readOnlyComment"; "required": false; }; "me": { "alias": "me"; "required": false; }; "events": { "alias": "events"; "required": false; }; "procedure": { "alias": "procedure"; "required": false; }; "cancelModifications": { "alias": "cancelModifications"; "required": false; }; }, { "modifiedEvents": "modifiedEvents"; "modifiedProcedure": "modifiedProcedure"; "eventErrors": "eventErrors"; "addedEvent": "addedEvent"; "comfirmDialogOpened": "comfirmDialogOpened"; "commented": "commented"; }, never, never, false, never>;
|
|
196
194
|
}
|
|
@@ -50,6 +50,7 @@ import * as i45 from "@provoly/dashboard/components/checkbox";
|
|
|
50
50
|
import * as i46 from "@angular/forms";
|
|
51
51
|
import * as i47 from "@angular/router";
|
|
52
52
|
import * as i48 from "./general/truncate-pipe/truncate.pipe";
|
|
53
|
+
import * as i49 from "@angular/material/autocomplete";
|
|
53
54
|
export declare class PvyHypervisorModule {
|
|
54
55
|
private baseConfig;
|
|
55
56
|
private store;
|
|
@@ -61,6 +62,6 @@ export declare class PvyHypervisorModule {
|
|
|
61
62
|
url: string;
|
|
62
63
|
}, store: Store<any>, i18nService: PryI18nService);
|
|
63
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
|
|
64
|
-
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 i43.AsyncPipe, typeof i48.TruncatePipe, typeof i43.DatePipe, typeof i43.AsyncPipe], [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]>;
|
|
65
|
+
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 i43.AsyncPipe, typeof i48.TruncatePipe, typeof i43.DatePipe, typeof i43.AsyncPipe, typeof i49.MatAutocompleteTrigger, typeof i49.MatAutocomplete, typeof i49.MatOption, typeof i46.ReactiveFormsModule], [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]>;
|
|
65
66
|
static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
|
|
66
67
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
|
-
import { HypEquipment } from '../../model/hyp-equipment.interface';
|
|
4
|
+
import { EquipmentForEvent, HypEquipment } from '../../model/hyp-equipment.interface';
|
|
5
5
|
import { HypEventTooltipBase } from '../../model/event/hyp-event-tooltip.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class EquipmentService {
|
|
@@ -10,7 +10,7 @@ export declare class EquipmentService {
|
|
|
10
10
|
constructor(httpClient: HttpClient, store: Store<any>);
|
|
11
11
|
findByName(name: string): Observable<HypEventTooltipBase>;
|
|
12
12
|
list(): Observable<HypEquipment[]>;
|
|
13
|
-
search(search: string | undefined): Observable<
|
|
13
|
+
search(search: string | undefined): Observable<EquipmentForEvent[]>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<EquipmentService, never>;
|
|
15
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<EquipmentService>;
|
|
16
16
|
}
|
|
@@ -328,3 +328,35 @@
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
+
.mat-mdc-autocomplete-trigger, .mat-mdc-autocomplete-trigger:focus-visible {
|
|
332
|
+
border-radius: 0.3125rem!important;
|
|
333
|
+
padding: 0.625rem!important;
|
|
334
|
+
outline-style: none!important;
|
|
335
|
+
border: thin solid #4E6C8C !important;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
div.mat-mdc-autocomplete-panel {
|
|
339
|
+
background-color: white!important;
|
|
340
|
+
border: thin solid #4E6C8C !important;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.mat-placeholder {
|
|
344
|
+
font-style: italic!important;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.mat-mdc-option {
|
|
348
|
+
color: black!important;
|
|
349
|
+
padding: 0.5rem 0.625rem!important;
|
|
350
|
+
min-height: unset!important;
|
|
351
|
+
font-weight: 400!important;
|
|
352
|
+
letter-spacing: unset!important;
|
|
353
|
+
font-size: 0.875rem!important;
|
|
354
|
+
line-height: 1.1875rem!important;
|
|
355
|
+
font-family: Ubuntu, sans-serif!important;
|
|
356
|
+
font-style: normal!important;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.mat-mdc-option:hover:not(.mdc-list-item--disabled){
|
|
360
|
+
background-color: #f5f5fa!important;
|
|
361
|
+
}
|
|
362
|
+
|