@provoly/hypervisor 0.0.12 → 0.0.13

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.12",
3
+ "version": "0.0.13",
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": "^0.23.3"
17
+ "@provoly/dashboard": "^0.23.11"
18
18
  },
19
19
  "dependencies": {
20
20
  "tslib": "^2.6.2"
@@ -3,9 +3,11 @@ import { HypProcedure } from '../../model/hyp-procedure.interface';
3
3
  import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
4
4
  import { SubscriptionnerDirective } from '@provoly/dashboard';
5
5
  import { EquipmentService } from '../../store/equipment/equipment.service';
6
+ import { Store } from '@ngrx/store';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class EventDetailComponent extends SubscriptionnerDirective {
8
9
  private equipmentService;
10
+ private store;
9
11
  opened: boolean[];
10
12
  criticalities: string[];
11
13
  _events: HypEventDetails[];
@@ -26,7 +28,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
26
28
  set events(events: HypEventDetails[]);
27
29
  set procedure(procedure: HypProcedure);
28
30
  set cancelModifications(evt: any);
29
- constructor(equipmentService: EquipmentService);
31
+ constructor(equipmentService: EquipmentService, store: Store);
30
32
  get events(): HypEventDetails[];
31
33
  get procedure(): HypProcedure | undefined;
32
34
  toggle(i: number): void;
@@ -51,6 +53,8 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
51
53
  code: string;
52
54
  };
53
55
  categories(event: HypEventDetails): string[];
56
+ changeStatus($event: string, event: HypEventDetails): void;
57
+ closeAll(): void;
54
58
  static ɵfac: i0.ɵɵFactoryDeclaration<EventDetailComponent, never>;
55
59
  static ɵcmp: i0.ɵɵComponentDeclaration<EventDetailComponent, "hvy-event-detail", never, { "events": { "alias": "events"; "required": false; }; "procedure": { "alias": "procedure"; "required": false; }; "cancelModifications": { "alias": "cancelModifications"; "required": false; }; }, { "modifiedEvents": "modifiedEvents"; "modifiedProcedure": "modifiedProcedure"; "eventErrors": "eventErrors"; }, never, never, false, never>;
56
60
  }
@@ -21,5 +21,5 @@ export declare class EventListComponent extends SubscriptionnerDirective impleme
21
21
  ngAfterViewInit(): void;
22
22
  select(event: HypEventDetails, $event: MouseEvent): void;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<EventListComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<EventListComponent, "hvy-event-list", never, {}, {}, never, never, false, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<EventListComponent, "hvy-event-list", never, {}, {}, never, ["*"], false, never>;
25
25
  }
@@ -27,6 +27,7 @@ export declare const enTranslations: {
27
27
  creationDate: string;
28
28
  lastModificationDate: string;
29
29
  closeDate: string;
30
+ detail: string;
30
31
  log: {
31
32
  name: string;
32
33
  event: {
@@ -26,8 +26,10 @@ export declare const frTranslations: {
26
26
  creationDate: string;
27
27
  lastModificationDate: string;
28
28
  closeDate: string;
29
+ detail: string;
29
30
  log: {
30
31
  name: string;
32
+ empty: string;
31
33
  event: {
32
34
  description: string;
33
35
  address: string;
@@ -31,6 +31,6 @@ export declare class PvyHypervisorModule {
31
31
  url: string;
32
32
  }, store: Store<any>, i18nService: PryI18nService);
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
34
- static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe, typeof i8.ForDatetimeLocalPipe, typeof i9.StatusDisplayComponent, typeof i10.ProgressDisplayComponent], [typeof i11.StoreFeatureModule, typeof i11.StoreFeatureModule, typeof i11.StoreFeatureModule, typeof i12.EffectsFeatureModule, typeof i13.NgForOf, typeof i13.AsyncPipe, typeof i14.PryI18nModule, typeof i14.PryCoreModule, typeof i13.AsyncPipe, typeof i14.PryCoreModule, typeof i13.NgStyle, typeof i15.PryCheckboxModule, typeof i16.FormsModule, typeof i17.RouterLink, typeof i18.PrySinceDateModule, typeof i13.DatePipe, typeof i14.PryIconModule, typeof i13.KeyValuePipe, typeof i14.PrySelectModule, typeof i16.FormsModule, typeof i13.JsonPipe, typeof i14.PryDatePickerModule], [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe, typeof i8.ForDatetimeLocalPipe, typeof i9.StatusDisplayComponent, typeof i10.ProgressDisplayComponent]>;
34
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe, typeof i8.ForDatetimeLocalPipe, typeof i9.StatusDisplayComponent, typeof i10.ProgressDisplayComponent], [typeof i11.StoreFeatureModule, typeof i11.StoreFeatureModule, typeof i11.StoreFeatureModule, typeof i12.EffectsFeatureModule, typeof i13.NgForOf, typeof i13.AsyncPipe, typeof i14.PryI18nModule, typeof i14.PryCoreModule, typeof i13.AsyncPipe, typeof i14.PryCoreModule, typeof i13.NgStyle, typeof i15.PryCheckboxModule, typeof i16.FormsModule, typeof i17.RouterLink, typeof i18.PrySinceDateModule, typeof i13.DatePipe, typeof i14.PryIconModule, typeof i13.KeyValuePipe, typeof i14.PrySelectModule, typeof i16.FormsModule, typeof i13.JsonPipe, typeof i14.PryDatePickerModule, typeof i14.PryI18nModule, typeof i14.PryIconModule], [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe, typeof i8.ForDatetimeLocalPipe, typeof i9.StatusDisplayComponent, typeof i10.ProgressDisplayComponent]>;
35
35
  static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
36
36
  }
@@ -78,4 +78,19 @@ export declare const EventActions: {
78
78
  }) => {
79
79
  error: string;
80
80
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Save failure">>;
81
+ status: import("@ngrx/store").ActionCreator<"[Event] Close Event or Procedure", (props: {
82
+ targetStatus: string;
83
+ event?: HypEventDetails | undefined;
84
+ procedure?: HypProcedure | undefined;
85
+ }) => {
86
+ targetStatus: string;
87
+ event?: HypEventDetails | undefined;
88
+ procedure?: HypProcedure | undefined;
89
+ } & import("@ngrx/store/src/models").TypedAction<"[Event] Close Event or Procedure">>;
90
+ statusSuccess: import("@ngrx/store").ActionCreator<"[Event] Close success", () => import("@ngrx/store/src/models").TypedAction<"[Event] Close success">>;
91
+ statusFailure: import("@ngrx/store").ActionCreator<"[Event] Close failure", (props: {
92
+ error: string;
93
+ }) => {
94
+ error: string;
95
+ } & import("@ngrx/store/src/models").TypedAction<"[Event] Close failure">>;
81
96
  };
@@ -36,6 +36,9 @@ export declare class EventEffects {
36
36
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Save success">) | ({
37
37
  error: string;
38
38
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Save failure">)> & import("@ngrx/effects").CreateEffectMetadata;
39
+ close$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Event] Close success"> | ({
40
+ error: string;
41
+ } & import("@ngrx/store/src/models").TypedAction<"[Event] Close failure">)> & import("@ngrx/effects").CreateEffectMetadata;
39
42
  constructor(actions$: Actions, eventService: EventService, store: Store);
40
43
  static ɵfac: i0.ɵɵFactoryDeclaration<EventEffects, never>;
41
44
  static ɵprov: i0.ɵɵInjectableDeclaration<EventEffects>;
@@ -13,6 +13,8 @@ export declare class EventService {
13
13
  getProcedure(id: string): Observable<HypProcedure>;
14
14
  save(event: HypEventDetails): Observable<void>;
15
15
  saveProcedure(procedure: HypProcedure): Observable<void>;
16
+ status(event: HypEventDetails, status: string): Observable<void>;
17
+ statusProcedure(procedure: HypProcedure, status: string): Observable<void>;
16
18
  static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
17
19
  static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
18
20
  }
@@ -65,4 +65,13 @@ hvy-event-list {
65
65
  .o-hvy-events-table__line__cell:nth-child(7) {
66
66
  width: toRem(150);
67
67
  }
68
+
69
+ &__empty {
70
+ height: toRem(400);
71
+ width: 100%;
72
+ text-align: center;
73
+ * {
74
+ margin: toRem(50);
75
+ }
76
+ }
68
77
  }