@provoly/hypervisor 0.0.112 → 0.0.114

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": "0.0.112",
3
+ "version": "0.0.114",
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.3.33"
17
+ "@provoly/dashboard": "^1.3.34"
18
18
  },
19
19
  "dependencies": {
20
20
  "tslib": "^2.6.2"
@@ -1,12 +1,12 @@
1
1
  import { EventEmitter, 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, PrySnackbarService, SubscriptionnerDirective } from '@provoly/dashboard';
4
+ import { PryDialogService, PryI18nService, 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';
8
8
  import { Overlay, OverlayRef } from '@angular/cdk/overlay';
9
- import { BehaviorSubject, Observable } from 'rxjs';
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
12
  import * as i0 from "@angular/core";
@@ -16,12 +16,14 @@ export type ChangeStatusContext = {
16
16
  status: string;
17
17
  all: boolean;
18
18
  };
19
+ export interface HypEquipmentWithMatching extends HypEquipment {
20
+ html: string;
21
+ }
19
22
  export declare class EventDetailComponent extends SubscriptionnerDirective {
20
23
  private equipmentService;
21
24
  private store;
22
25
  private overlay;
23
26
  private viewContainerRef;
24
- private snackBar;
25
27
  private i18nService;
26
28
  private pryDialog;
27
29
  private commentsService;
@@ -56,6 +58,9 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
56
58
  comments$?: Observable<{
57
59
  [p: number]: HypComment[];
58
60
  }>;
61
+ onEquipmentSearch$: Subject<void>;
62
+ equipmentSelectValue?: string | HypEquipment;
63
+ equipments$: Observable<HypEquipmentWithMatching[]>;
59
64
  set events(events: HypEventDetails[]);
60
65
  set procedure(procedure: HypProcedure);
61
66
  set cancelModifications(evt: any);
@@ -63,7 +68,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
63
68
  index: number;
64
69
  equipmentName?: string;
65
70
  });
66
- constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, snackBar: PrySnackbarService, i18nService: PryI18nService, pryDialog: PryDialogService, commentsService: HypCommentsService);
71
+ constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, i18nService: PryI18nService, pryDialog: PryDialogService, commentsService: HypCommentsService);
67
72
  get events(): HypEventDetails[];
68
73
  get canAssociateProcedure(): boolean;
69
74
  get procedure(): HypProcedure | undefined;
@@ -84,8 +89,6 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
84
89
  startDate: boolean;
85
90
  endDate: boolean;
86
91
  };
87
- _changeEquipmentProperty(index: number, value: HypEquipment | undefined): void;
88
- changeEquipment(index: number, $event: any): void;
89
92
  _outputModifications(): void;
90
93
  validateEvents(events: HypEventDetails[]): void;
91
94
  hasError(prop: string, idx: number): false | {
@@ -111,6 +114,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
111
114
  id: string;
112
115
  message: string;
113
116
  }): void;
117
+ selectedEquipmentChange($event: string | HypEquipment, index: number): void;
114
118
  static ɵfac: i0.ɵɵFactoryDeclaration<EventDetailComponent, never>;
115
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>;
116
120
  }
@@ -21,6 +21,7 @@ export declare class ChoiceFilterComponent extends HvyUnitFilterComponent implem
21
21
  allLabel: string;
22
22
  label: string;
23
23
  i18nPrefix: string;
24
+ addNonLeaves: boolean;
24
25
  value: WritableSignal<string[]>;
25
26
  choices: HvyChoiceFilter;
26
27
  overlayRef?: OverlayRef;
@@ -48,8 +49,8 @@ export declare class ChoiceFilterComponent extends HvyUnitFilterComponent implem
48
49
  }[];
49
50
  }): boolean;
50
51
  allValues(): string[];
51
- assignValue(value: string[]): void;
52
+ assignValue(values: string[]): void;
52
53
  private triggerInhibate;
53
54
  static ɵfac: i0.ɵɵFactoryDeclaration<ChoiceFilterComponent, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<ChoiceFilterComponent, "hvy-choice-filter", never, { "allLabel": { "alias": "allLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "choices": { "alias": "choices"; "required": false; }; }, {}, never, never, false, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChoiceFilterComponent, "hvy-choice-filter", never, { "allLabel": { "alias": "allLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "addNonLeaves": { "alias": "addNonLeaves"; "required": false; }; "choices": { "alias": "choices"; "required": false; }; }, {}, never, never, false, never>;
55
56
  }
@@ -31,6 +31,9 @@ export declare class EventListComponent extends SubscriptionnerDirective impleme
31
31
  inhibit(): void;
32
32
  goTo(event: HypEventDetails): Promise<boolean> | undefined;
33
33
  protected readonly Math: Math;
34
+ protected readonly padId: {
35
+ fn: (id: string | number) => string;
36
+ };
34
37
  static ɵfac: i0.ɵɵFactoryDeclaration<EventListComponent, never>;
35
38
  static ɵcmp: i0.ɵɵComponentDeclaration<EventListComponent, "hvy-event-list", never, { "disableGotoDetail": { "alias": "disableGotoDetail"; "required": false; }; }, {}, never, ["*"], false, never>;
36
39
  }
@@ -1,6 +1,7 @@
1
1
  export declare const enTranslations: {
2
2
  '@hvy': {
3
3
  event: {
4
+ id: string;
4
5
  name: string;
5
6
  type: {
6
7
  name: string;
@@ -17,6 +18,7 @@ export declare const enTranslations: {
17
18
  };
18
19
  address: string;
19
20
  source: string;
21
+ hypervisor: string;
20
22
  equipment: string;
21
23
  equipmentEntity: string;
22
24
  notFound: string;
@@ -45,6 +47,7 @@ export declare const enTranslations: {
45
47
  comments: {
46
48
  name: string;
47
49
  placeholder: string;
50
+ actions: string;
48
51
  };
49
52
  };
50
53
  procedure: {
@@ -58,6 +61,10 @@ export declare const enTranslations: {
58
61
  };
59
62
  category: {
60
63
  name: string;
64
+ MANIFESTATION: string;
65
+ LIMIT: string;
66
+ OUTOFORDER: string;
67
+ ANOMALY: string;
61
68
  };
62
69
  criticality: {
63
70
  name: string;
@@ -85,6 +92,9 @@ export declare const enTranslations: {
85
92
  presenceSensor: string;
86
93
  parent: string;
87
94
  consult: string;
95
+ entity: {
96
+ NOTFOUND: string;
97
+ };
88
98
  comment: {
89
99
  lastDetail: string;
90
100
  detail: string;
@@ -93,6 +103,7 @@ export declare const enTranslations: {
93
103
  head: string;
94
104
  heads: string;
95
105
  };
106
+ equipmentPlaceholder: string;
96
107
  };
97
108
  eventSummary: {
98
109
  from: string;
@@ -130,6 +141,7 @@ export declare const enTranslations: {
130
141
  actions: string;
131
142
  description: string;
132
143
  creator: string;
144
+ formTitle: string;
133
145
  action: {
134
146
  add: string;
135
147
  create: string;
@@ -145,6 +157,21 @@ export declare const enTranslations: {
145
157
  EMAIL: string;
146
158
  to: string;
147
159
  at: string;
160
+ placeholder: {
161
+ name: string;
162
+ phone: string;
163
+ email: string;
164
+ service: string;
165
+ other: string;
166
+ action: string;
167
+ };
168
+ question: {
169
+ PHONE: string;
170
+ SMS: string;
171
+ EMAIL: string;
172
+ ASKED_SERVICE: string;
173
+ OTHER: string;
174
+ };
148
175
  };
149
176
  };
150
177
  associationModal: {
@@ -165,6 +192,8 @@ export declare const enTranslations: {
165
192
  validate: string;
166
193
  cancel: string;
167
194
  search: string;
195
+ update: string;
196
+ create: string;
168
197
  };
169
198
  service: {
170
199
  status: {
@@ -174,6 +203,24 @@ export declare const enTranslations: {
174
203
  DONE: string;
175
204
  CANCELLED: string;
176
205
  };
206
+ title: string;
207
+ subtitle: string;
208
+ reason: string;
209
+ type: string;
210
+ priority: string;
211
+ description: string;
212
+ target: string;
213
+ gti: string;
214
+ gtr: string;
215
+ gtrp: string;
216
+ describe: string;
217
+ noEquip: string;
218
+ domain: string;
219
+ priorities: {
220
+ '1-MINEUR': string;
221
+ '2-MAJEUR': string;
222
+ '3-BLOQUANT': string;
223
+ };
177
224
  };
178
225
  };
179
226
  };
@@ -1,6 +1,7 @@
1
1
  export declare const frTranslations: {
2
2
  '@hvy': {
3
3
  event: {
4
+ id: string;
4
5
  name: string;
5
6
  subCategory: {
6
7
  name: string;
@@ -17,6 +18,7 @@ export declare const frTranslations: {
17
18
  };
18
19
  address: string;
19
20
  source: string;
21
+ hypervisor: string;
20
22
  equipment: string;
21
23
  equipmentEntity: string;
22
24
  notFound: string;
@@ -101,6 +103,7 @@ export declare const frTranslations: {
101
103
  head: string;
102
104
  heads: string;
103
105
  };
106
+ equipmentPlaceholder: string;
104
107
  };
105
108
  eventSummary: {
106
109
  from: string;
@@ -212,6 +215,7 @@ export declare const frTranslations: {
212
215
  gtrp: string;
213
216
  describe: string;
214
217
  noEquip: string;
218
+ domain: string;
215
219
  priorities: {
216
220
  '1-MINEUR': string;
217
221
  '2-MAJEUR': string;
@@ -1,4 +1,4 @@
1
- import { PryDialogRef, PryI18nService } from '@provoly/dashboard';
1
+ import { PryDialogRef, PryI18nService, SubscriptionnerDirective } from '@provoly/dashboard';
2
2
  import { Observable } from 'rxjs';
3
3
  import { HypEquipment } from '../../../../model/hyp-equipment.interface';
4
4
  import { HypServiceAction } from './service-action-display.component';
@@ -9,6 +9,7 @@ export type HypCreateServiceResult = {
9
9
  value: string;
10
10
  name: string;
11
11
  equipment: string;
12
+ domain: string;
12
13
  priority: string;
13
14
  type: string;
14
15
  description: string;
@@ -16,7 +17,7 @@ export type HypCreateServiceResult = {
16
17
  gtr?: string;
17
18
  gtrp?: string;
18
19
  };
19
- export declare class HvyCreateServiceComponent {
20
+ export declare class HvyCreateServiceComponent extends SubscriptionnerDirective {
20
21
  private dialog;
21
22
  data: {
22
23
  action: HypServiceAction;
@@ -31,6 +32,8 @@ export declare class HvyCreateServiceComponent {
31
32
  errors: string[];
32
33
  types: HypServiceType[];
33
34
  priorities: string[];
35
+ domains: string[];
36
+ private equipments;
34
37
  constructor(dialog: PryDialogRef<HvyCreateServiceComponent>, data: {
35
38
  action: HypServiceAction;
36
39
  }, equipmentService: EquipmentService, serviceService: ServiceService, i18nService: PryI18nService);
@@ -39,6 +42,7 @@ export declare class HvyCreateServiceComponent {
39
42
  onDescriptionChange($event: string): void;
40
43
  onTypeChange($event: string): void;
41
44
  onPriorityChange($event: any): void;
45
+ onDomainChange($event: string): void;
42
46
  hasError(type: string): boolean;
43
47
  check(): void;
44
48
  createDI(): void;
@@ -3,4 +3,5 @@ export interface HypEquipment {
3
3
  name: string;
4
4
  entity: string;
5
5
  family: string;
6
+ domain: string;
6
7
  }
@@ -9,6 +9,7 @@ export declare class EquipmentService {
9
9
  constructor(httpClient: HttpClient, store: Store<any>);
10
10
  findByName(name: string): Observable<HypEquipment>;
11
11
  list(): Observable<HypEquipment[]>;
12
+ search(search: string | undefined): Observable<HypEquipment[]>;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<EquipmentService, never>;
13
14
  static ɵprov: i0.ɵɵInjectableDeclaration<EquipmentService>;
14
15
  }
@@ -125,6 +125,13 @@
125
125
  font-size: toRem(10);
126
126
  }
127
127
  }
128
+
129
+ &__equipment {
130
+ input.a-pry-select__search {
131
+ height: toRem(16);
132
+ width: toRem(250);
133
+ }
134
+ }
128
135
  }
129
136
  }
130
137
  }
@@ -75,21 +75,35 @@ hvy-event-list {
75
75
  top: 0;
76
76
  }
77
77
 
78
- .o-hvy-events-table__line__cell:nth-child(3) {
79
- width: 25%;
78
+ .o-hvy-events-table__line__cell.checkbox {
79
+ width: toRem(25);
80
+ padding: toRem(30) toRem(15) toRem(15);
80
81
  }
81
82
 
82
- .o-hvy-events-table__line__cell:nth-child(6) {
83
+ .o-hvy-events-table__line__cell.icon {
84
+ margin: auto;
85
+ width: toRem(50);
86
+ }
87
+
88
+ .o-hvy-events-table__line__cell.id {
89
+ width: toRem(50);
90
+ }
91
+
92
+ .o-hvy-events-table__line__cell.name {
93
+ width: 27%;
94
+ }
95
+
96
+ .o-hvy-events-table__line__cell.category {
83
97
  width: 15%;
84
98
  }
85
99
 
86
- .o-hvy-events-table__line__cell:last-child,
87
- .o-hvy-events-table__line__cell:nth-child(5),
88
- .o-hvy-events-table__line__cell:nth-child(7) {
100
+ .o-hvy-events-table__line__cell.progress,
101
+ .o-hvy-events-table__line__cell.creation-date,
102
+ .o-hvy-events-table__line__cell.modification-date, {
89
103
  width: toRem(150);
90
104
  }
91
105
 
92
- .o-hvy-events-table__line__cell:nth-child(8) {
106
+ .o-hvy-events-table__line__cell.link {
93
107
  text-align: center;
94
108
  }
95
109