@provoly/hypervisor 1.4.99 → 1.5.1

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.4.99",
3
+ "version": "1.5.1",
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,6 +118,7 @@ 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;
119
124
  private setCreatorForEvents;
@@ -166,12 +171,12 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
166
171
  openAssociationModal(): void;
167
172
  openDeleteModal(): void;
168
173
  private convertDate;
169
- selectedEquipmentChange($event: string | HypEquipment, index: number): void;
170
- equipmentsEvents: {
174
+ selectedEquipmentChange($event: string | HypEquipment | HypEventTooltipBase, index: number): void;
175
+ equipmentEventsForTooltip: {
171
176
  events?: HypEventDetails[];
172
177
  services?: HypServiceTooltip[];
173
178
  }[];
174
- private populateEquipment;
179
+ private getDataForTooltip;
175
180
  tooltipRef?: PryDialogRef<HvyEventDetailsTooltipComponent>;
176
181
  toggleDetailsTooltip(idx: number): void;
177
182
  selectedParentChange($event: string | HypEventDetails, index: number): void;
@@ -186,5 +191,5 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
186
191
  }): void;
187
192
  ngOnDestroy(): void;
188
193
  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>;
194
+ 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
195
  }
@@ -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: {
@@ -32,6 +32,8 @@ export declare class ProcedureActionsComponent extends SubscriptionnerDirective
32
32
  enableEditActions: boolean | null;
33
33
  events: HypEventDetails[];
34
34
  disableSaveDIButton: boolean;
35
+ initialActions: HypAction[] | undefined;
36
+ procedureModificationsActions: HypAction[] | undefined;
35
37
  ACTIONS_TYPES: string[];
36
38
  _actions: HypAction[];
37
39
  menuButtons: QueryList<ElementRef>;
@@ -44,8 +46,10 @@ export declare class ProcedureActionsComponent extends SubscriptionnerDirective
44
46
  refreshActions: EventEmitter<HypAction[]>;
45
47
  get actions(): HypAction[];
46
48
  get editing(): boolean;
49
+ isAskedServiceWithoutExternalId(): boolean;
47
50
  onMouseDown($event: MouseEvent): void;
48
51
  dragStart($event: MouseEvent, action: HypAction, index: number): void;
52
+ disabledCheckbox(action: HypAction): boolean;
49
53
  move($event: MouseEvent): void;
50
54
  drop($event: MouseEvent): void;
51
55
  allowDrop($event: MouseEvent): void;
@@ -64,5 +68,5 @@ export declare class ProcedureActionsComponent extends SubscriptionnerDirective
64
68
  message: string;
65
69
  }): void;
66
70
  static ɵfac: i0.ɵɵFactoryDeclaration<ProcedureActionsComponent, never>;
67
- static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureActionsComponent, "hvy-procedure-actions", never, { "mode": { "alias": "mode"; "required": false; }; "me": { "alias": "me"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "readOnlyComment": { "alias": "readOnlyComment"; "required": false; }; "enableEditActions": { "alias": "enableEditActions"; "required": false; }; "events": { "alias": "events"; "required": false; }; "disableSaveDIButton": { "alias": "disableSaveDIButton"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, { "modified": "modified"; "commented": "commented"; "refreshActions": "refreshActions"; }, never, never, false, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureActionsComponent, "hvy-procedure-actions", never, { "mode": { "alias": "mode"; "required": false; }; "me": { "alias": "me"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "readOnlyComment": { "alias": "readOnlyComment"; "required": false; }; "enableEditActions": { "alias": "enableEditActions"; "required": false; }; "events": { "alias": "events"; "required": false; }; "disableSaveDIButton": { "alias": "disableSaveDIButton"; "required": false; }; "initialActions": { "alias": "initialActions"; "required": false; }; "procedureModificationsActions": { "alias": "procedureModificationsActions"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, { "modified": "modified"; "commented": "commented"; "refreshActions": "refreshActions"; }, never, never, false, never>;
68
72
  }
@@ -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;
@@ -8,4 +8,5 @@ export interface HypAction {
8
8
  _status?: 'modify' | 'create';
9
9
  lastComment?: HypComment;
10
10
  commentsCount: number;
11
+ serviceExternalId?: string;
11
12
  }
@@ -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;