@provoly/hypervisor 1.5.0 → 1.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/hypervisor",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "17.x || 18.x",
6
6
  "@angular/common": "17.x || 18.x",
@@ -8,7 +8,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 { HypServiceTooltip } from '../../model/event/hyp-event-tooltip.interface';
11
+ import { HypEventTooltipBase, 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';
@@ -56,6 +56,10 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
56
56
  private commentsService;
57
57
  private eventService;
58
58
  private actions$;
59
+ placesChoices: ({
60
+ key: string;
61
+ display: string;
62
+ })[];
59
63
  opened: boolean[];
60
64
  criticalities: string[];
61
65
  _events: HypEventDetails[];
@@ -114,8 +118,10 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
114
118
  equipmentName?: string;
115
119
  });
116
120
  selectedEquipment: boolean;
121
+ adressDisabled: boolean[];
117
122
  constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, i18nService: PryI18nService, pryDialog: PryDialogService, commentsService: HypCommentsService, eventService: EventService, actions$: Actions);
118
123
  isEventModified(): boolean;
124
+ private setDistrictForEvents;
119
125
  private setCreatorForEvents;
120
126
  private getComboBoxRegExp;
121
127
  filterEquipmentsIfSelected(index: number, search: string, equipments: HypEquipment[]): HypEquipment[];
@@ -166,12 +172,12 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
166
172
  openAssociationModal(): void;
167
173
  openDeleteModal(): void;
168
174
  private convertDate;
169
- selectedEquipmentChange($event: string | HypEquipment, index: number): void;
170
- equipmentsEvents: {
175
+ selectedEquipmentChange($event: string | HypEquipment | HypEventTooltipBase, index: number): void;
176
+ equipmentEventsForTooltip: {
171
177
  events?: HypEventDetails[];
172
178
  services?: HypServiceTooltip[];
173
179
  }[];
174
- private populateEquipment;
180
+ private getDataForTooltip;
175
181
  tooltipRef?: PryDialogRef<HvyEventDetailsTooltipComponent>;
176
182
  toggleDetailsTooltip(idx: number): void;
177
183
  selectedParentChange($event: string | HypEventDetails, index: number): void;
@@ -186,5 +192,5 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
186
192
  }): void;
187
193
  ngOnDestroy(): void;
188
194
  static ɵfac: i0.ɵɵFactoryDeclaration<EventDetailComponent, never>;
189
- static ɵcmp: i0.ɵɵComponentDeclaration<EventDetailComponent, "hvy-event-detail", never, { "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; }; "equipmentName": { "alias": "equipmentName"; "required": false; }; }, { "modifiedEvents": "modifiedEvents"; "modifiedProcedure": "modifiedProcedure"; "eventErrors": "eventErrors"; "addedEvent": "addedEvent"; "comfirmDialogOpened": "comfirmDialogOpened"; "commented": "commented"; }, never, never, false, 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; }; "equipmentName": { "alias": "equipmentName"; "required": false; }; }, { "modifiedEvents": "modifiedEvents"; "modifiedProcedure": "modifiedProcedure"; "eventErrors": "eventErrors"; "addedEvent": "addedEvent"; "comfirmDialogOpened": "comfirmDialogOpened"; "commented": "commented"; }, never, never, false, never>;
190
196
  }
@@ -1,6 +1,7 @@
1
1
  export declare const frTranslations: {
2
2
  '@hvy': {
3
3
  event: {
4
+ district: string;
4
5
  id: string;
5
6
  name: string;
6
7
  subCategory: {
@@ -2,6 +2,7 @@ import { HypEvent } from './hyp-event.interface';
2
2
  import { HypComment } from '../comment.interface';
3
3
  export interface HypEventDetails extends HypEvent {
4
4
  address: string;
5
+ district?: string;
5
6
  description: string;
6
7
  status: string;
7
8
  lastModificationDate: string;
@@ -12,6 +13,7 @@ export interface HypEventDetails extends HypEvent {
12
13
  entity: string;
13
14
  family: string;
14
15
  domain: string;
16
+ district?: string;
15
17
  };
16
18
  externalSourceRef?: string;
17
19
  externalId?: string;
@@ -31,6 +33,7 @@ export declare const eventForWriteAPI: (event: HypEventDetails) => {
31
33
  parent: number | undefined;
32
34
  subCategory: string | undefined;
33
35
  address: string;
36
+ district?: string;
34
37
  description: string;
35
38
  status: string;
36
39
  lastModificationDate: string;
@@ -41,6 +44,7 @@ export declare const eventForWriteAPI: (event: HypEventDetails) => {
41
44
  entity: string;
42
45
  family: string;
43
46
  domain: string;
47
+ district?: string;
44
48
  };
45
49
  externalSourceRef?: string;
46
50
  externalId?: string;
@@ -4,6 +4,7 @@ export interface HypEventTooltipBase {
4
4
  id: string;
5
5
  address: string;
6
6
  externalId: string;
7
+ district?: string;
7
8
  name: string;
8
9
  code: string;
9
10
  domain: string;
@@ -16,6 +16,7 @@ export declare const procedureForWriteAPI: (procedure: HypProcedure) => {
16
16
  parent: number | undefined;
17
17
  subCategory: string | undefined;
18
18
  address: string;
19
+ district?: string;
19
20
  description: string;
20
21
  status: string;
21
22
  lastModificationDate: string;
@@ -26,6 +27,7 @@ export declare const procedureForWriteAPI: (procedure: HypProcedure) => {
26
27
  entity: string;
27
28
  family: string;
28
29
  domain: string;
30
+ district?: string;
29
31
  };
30
32
  externalSourceRef?: string;
31
33
  externalId?: string;