@provoly/hypervisor 0.0.119 → 0.0.121

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.
Files changed (28) hide show
  1. package/esm2022/src/lib/event/detail/event-detail.component.mjs +6 -8
  2. package/esm2022/src/lib/general/comments/comments.component.mjs +3 -3
  3. package/esm2022/src/lib/general/i18n/fr.translations.mjs +4 -3
  4. package/esm2022/src/lib/general/procedure-actions/action-parameters/action-parameter.component.mjs +6 -2
  5. package/esm2022/src/lib/general/procedure-actions/action-parameters/base-parameter-action.component.mjs +14 -4
  6. package/esm2022/src/lib/general/procedure-actions/action-parameters/phone/phone-action-parameter.component.mjs +3 -3
  7. package/esm2022/src/lib/general/procedure-actions/action-parameters/service/create-service.component.mjs +16 -6
  8. package/esm2022/src/lib/general/procedure-actions/action-parameters/service/service-action-display.component.mjs +8 -5
  9. package/esm2022/src/lib/general/procedure-actions/procedure-actions.component.mjs +6 -3
  10. package/esm2022/src/lib/model/event/hyp-event-detail.interface.mjs +2 -2
  11. package/esm2022/src/lib/procedure/model-detail/procedure-model-detail.component.mjs +1 -1
  12. package/esm2022/src/lib/store/event/event.service.mjs +2 -2
  13. package/esm2022/src/lib/store/service/service.service.mjs +1 -1
  14. package/fesm2022/provoly-hypervisor.mjs +60 -31
  15. package/fesm2022/provoly-hypervisor.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/src/lib/general/i18n/fr.translations.d.ts +1 -0
  18. package/src/lib/general/procedure-actions/action-parameters/action-parameter.component.d.ts +3 -1
  19. package/src/lib/general/procedure-actions/action-parameters/base-parameter-action.component.d.ts +5 -1
  20. package/src/lib/general/procedure-actions/action-parameters/service/create-service.component.d.ts +6 -0
  21. package/src/lib/general/procedure-actions/procedure-actions.component.d.ts +3 -1
  22. package/src/lib/store/service/service.service.d.ts +3 -1
  23. package/styles/components/_o-hvy-comments.scss +1 -1
  24. package/styles/components/_o-hvy-event-detail.scss +11 -1
  25. package/styles/components/_o-hvy-event-filters.scss +1 -1
  26. package/styles/components/_o-hvy-event-summary-page.scss +4 -0
  27. package/styles/components/_o-hvy-events-table.scss +6 -0
  28. package/styles/components/_o-hvy-procedure-actions.scss +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/hypervisor",
3
- "version": "0.0.119",
3
+ "version": "0.0.121",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "16.x || 17.x",
6
6
  "@angular/common": "16.x || 17.x",
@@ -169,6 +169,7 @@ export declare const frTranslations: {
169
169
  EMAIL: string;
170
170
  to: string;
171
171
  at: string;
172
+ service: string;
172
173
  placeholder: {
173
174
  name: string;
174
175
  phone: string;
@@ -1,5 +1,6 @@
1
1
  import { ViewContainerRef } from '@angular/core';
2
2
  import { HypAction } from '../../../model/procedure/hyp-action.interface';
3
+ import { HypEventDetails } from '../../../model/event/hyp-event-detail.interface';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class HvyActionParameterComponent {
5
6
  ref: ViewContainerRef;
@@ -7,11 +8,12 @@ export declare class HvyActionParameterComponent {
7
8
  _type: string;
8
9
  private componentRef?;
9
10
  param: boolean;
11
+ events: HypEventDetails[];
10
12
  set isParam(param: boolean);
11
13
  set type(type: string);
12
14
  set action(action: any);
13
15
  constructor();
14
16
  private updateParameterComponent;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<HvyActionParameterComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<HvyActionParameterComponent, "hvy-action-parameter", never, { "isParam": { "alias": "isParam"; "required": false; }; "type": { "alias": "type"; "required": false; }; "action": { "alias": "action"; "required": false; }; }, {}, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<HvyActionParameterComponent, "hvy-action-parameter", never, { "events": { "alias": "events"; "required": false; }; "isParam": { "alias": "isParam"; "required": false; }; "type": { "alias": "type"; "required": false; }; "action": { "alias": "action"; "required": false; }; }, {}, never, never, false, never>;
17
19
  }
@@ -1,10 +1,14 @@
1
1
  import { HypAction } from '../../../model/procedure/hyp-action.interface';
2
+ import { HypEventDetails } from '../../../model/event/hyp-event-detail.interface';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class HvyBaseParameterActionComponent<T extends HypAction> {
4
5
  _action: any;
6
+ _events: HypEventDetails[];
7
+ set events(events: HypEventDetails[]);
8
+ get events(): HypEventDetails[];
5
9
  set action(action: T);
6
10
  get action(): T;
7
11
  constructor();
8
12
  static ɵfac: i0.ɵɵFactoryDeclaration<HvyBaseParameterActionComponent<any>, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<HvyBaseParameterActionComponent<any>, "hvy-base-action-parameter", never, { "action": { "alias": "action"; "required": false; }; }, {}, never, never, false, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<HvyBaseParameterActionComponent<any>, "hvy-base-action-parameter", never, { "events": { "alias": "events"; "required": false; }; "action": { "alias": "action"; "required": false; }; }, {}, never, never, false, never>;
10
14
  }
@@ -4,6 +4,7 @@ import { HypEquipment } from '../../../../model/hyp-equipment.interface';
4
4
  import { HypServiceAction } from './service-action-display.component';
5
5
  import { EquipmentService } from '../../../../store/equipment/equipment.service';
6
6
  import { HypServiceType, ServiceService } from '../../../../store/service/service.service';
7
+ import { HypEventDetails } from '../../../../model/event/hyp-event-detail.interface';
7
8
  import * as i0 from "@angular/core";
8
9
  export type HypCreateServiceResult = {
9
10
  value: string;
@@ -21,6 +22,7 @@ export declare class HvyCreateServiceComponent extends SubscriptionnerDirective
21
22
  private dialog;
22
23
  data: {
23
24
  action: HypServiceAction;
25
+ events: HypEventDetails[];
24
26
  };
25
27
  private equipmentService;
26
28
  private serviceService;
@@ -34,8 +36,11 @@ export declare class HvyCreateServiceComponent extends SubscriptionnerDirective
34
36
  priorities: string[];
35
37
  domains: string[];
36
38
  private equipments;
39
+ private equipmentIds;
40
+ allowedTypes: HypServiceType[];
37
41
  constructor(dialog: PryDialogRef<HvyCreateServiceComponent>, data: {
38
42
  action: HypServiceAction;
43
+ events: HypEventDetails[];
39
44
  }, equipmentService: EquipmentService, serviceService: ServiceService, i18nService: PryI18nService);
40
45
  action(value: string): void;
41
46
  onEquipmentChange($event: string): void;
@@ -47,6 +52,7 @@ export declare class HvyCreateServiceComponent extends SubscriptionnerDirective
47
52
  check(): void;
48
53
  createDI(): void;
49
54
  closeModal(): void;
55
+ private updateAllowedTypes;
50
56
  static ɵfac: i0.ɵɵFactoryDeclaration<HvyCreateServiceComponent, never>;
51
57
  static ɵcmp: i0.ɵɵComponentDeclaration<HvyCreateServiceComponent, "pry-create-service", never, {}, {}, never, never, false, never>;
52
58
  }
@@ -5,6 +5,7 @@ import { Overlay } from '@angular/cdk/overlay';
5
5
  import { HypCommentsService } from '../../store/comments/comments.service';
6
6
  import { BehaviorSubject, Observable, Subject } from 'rxjs';
7
7
  import { HypComment } from '../../model/comment.interface';
8
+ import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class ProcedureActionsComponent extends SubscriptionnerDirective {
10
11
  private pryDialog;
@@ -22,6 +23,7 @@ export declare class ProcedureActionsComponent extends SubscriptionnerDirective
22
23
  me: string | null | undefined;
23
24
  readonly: boolean | null;
24
25
  enableEditActions: boolean | null;
26
+ events: HypEventDetails[];
25
27
  ACTIONS_TYPES: string[];
26
28
  _actions: HypAction[];
27
29
  menuButtons: QueryList<ElementRef>;
@@ -55,5 +57,5 @@ export declare class ProcedureActionsComponent extends SubscriptionnerDirective
55
57
  message: string;
56
58
  }): void;
57
59
  static ɵfac: i0.ɵɵFactoryDeclaration<ProcedureActionsComponent, never>;
58
- static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureActionsComponent, "hvy-procedure-actions", never, { "mode": { "alias": "mode"; "required": false; }; "me": { "alias": "me"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "enableEditActions": { "alias": "enableEditActions"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, { "modified": "modified"; }, never, never, false, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureActionsComponent, "hvy-procedure-actions", never, { "mode": { "alias": "mode"; "required": false; }; "me": { "alias": "me"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "enableEditActions": { "alias": "enableEditActions"; "required": false; }; "events": { "alias": "events"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, { "modified": "modified"; }, never, never, false, never>;
59
61
  }
@@ -21,7 +21,9 @@ export declare class ServiceService {
21
21
  private store;
22
22
  constructor(httpClient: HttpClient, store: Store<any>);
23
23
  types(): Observable<HypServiceType[]>;
24
- create(service: HypService, actionId: string): Observable<string>;
24
+ create(service: HypService, actionId: string): Observable<{
25
+ id: string;
26
+ }>;
25
27
  static ɵfac: i0.ɵɵFactoryDeclaration<ServiceService, never>;
26
28
  static ɵprov: i0.ɵɵInjectableDeclaration<ServiceService>;
27
29
  }
@@ -79,7 +79,7 @@
79
79
  text-decoration: underline;
80
80
  color: #183C6B;
81
81
  font-weight: bold;
82
- font-size: toRem(12);
82
+ font-size: toRem(14);
83
83
  }
84
84
  }
85
85
  }
@@ -145,8 +145,12 @@
145
145
  height: toRem(16);
146
146
  width: toRem(250);
147
147
 
148
- &[disabled]::placeholder {
148
+ &[disabled] {
149
149
  color: #859DB6;
150
+
151
+ &::placeholder {
152
+ color: #859DB6;
153
+ }
150
154
  }
151
155
  }
152
156
  }
@@ -164,6 +168,12 @@
164
168
  width: 0;
165
169
  }
166
170
  }
171
+
172
+ pry-select {
173
+ input::placeholder {
174
+ font-style: italic;
175
+ }
176
+ }
167
177
  }
168
178
  }
169
179
  }
@@ -46,7 +46,7 @@
46
46
  padding: toRem(6) toRem(12);
47
47
  border-width: toRem(1);
48
48
  border-style: solid;
49
- cursor: text;
49
+ cursor: auto;
50
50
  transition: all 150ms ease;
51
51
 
52
52
  &.-highlight {
@@ -15,6 +15,10 @@
15
15
  align-items: center;
16
16
  margin-bottom: toRem(20);
17
17
  width: 100%;
18
+
19
+ .m-filter__input-wrapper.m-filter__input-wrapper--dropdown {
20
+ width: toRem(180);
21
+ }
18
22
  }
19
23
 
20
24
  &__title {
@@ -66,6 +66,12 @@ hvy-event-list {
66
66
  font-size: toRem(14);
67
67
  text-decoration: none;
68
68
  display: inline-block;
69
+ position: relative;
70
+
71
+ .indicator-badge {
72
+ position: absolute;
73
+ transform: translate(-14px, -7px);
74
+ }
69
75
  }
70
76
  }
71
77
  }
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  pry-checkbox {
56
- label::before {
56
+ &.-disabled > label::before {
57
57
  cursor: not-allowed;
58
58
  }
59
59