@provoly/hypervisor 0.0.111 → 0.0.113

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.111",
3
+ "version": "0.0.113",
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
  }
@@ -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;
@@ -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;
@@ -41,7 +41,7 @@ export declare class ProcedureActionsComponent extends SubscriptionnerDirective
41
41
  move($event: MouseEvent): void;
42
42
  drop($event: MouseEvent): void;
43
43
  allowDrop($event: MouseEvent): void;
44
- toggleActionStatus(index: number, $event: MouseEvent): void;
44
+ toggleActionStatus(index: number, $event: MouseEvent, disabled: boolean): void;
45
45
  add(): void;
46
46
  protected readonly model: import("@angular/core").ModelFunction;
47
47
  update(idx: number, prop: string, $event: any): void;
@@ -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
 
@@ -53,6 +53,10 @@
53
53
  }
54
54
 
55
55
  pry-checkbox {
56
+ label::before {
57
+ cursor: not-allowed;
58
+ }
59
+
56
60
  input {
57
61
  transform: translateX(toRem(1));
58
62
  }