@provoly/hypervisor 0.0.88 → 0.0.90

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 (37) hide show
  1. package/assets/svgs/service.svg +16 -0
  2. package/esm2022/src/lib/event/detail/event-detail.component.mjs +23 -9
  3. package/esm2022/src/lib/event/filters/choice/choice-filter.component.mjs +1 -1
  4. package/esm2022/src/lib/event/list/event-list.component.mjs +1 -1
  5. package/esm2022/src/lib/event-summary/item/event-summary-item.component.mjs +6 -6
  6. package/esm2022/src/lib/general/display-locale-datetime/display-locale-datetime.pipe.mjs +25 -9
  7. package/esm2022/src/lib/general/i18n/en.translations.mjs +11 -2
  8. package/esm2022/src/lib/general/i18n/fr.translations.mjs +39 -12
  9. package/esm2022/src/lib/general/procedure-actions/action-parameters/email/email-action-parameter.component.mjs +3 -3
  10. package/esm2022/src/lib/general/procedure-actions/action-parameters/other/other-action-parameter.component.mjs +4 -3
  11. package/esm2022/src/lib/general/procedure-actions/action-parameters/phone/phone-action-parameter.component.mjs +3 -3
  12. package/esm2022/src/lib/general/procedure-actions/action-parameters/service/service-action-parameter.component.mjs +4 -3
  13. package/esm2022/src/lib/general/procedure-actions/actions-types.constant.mjs +11 -6
  14. package/esm2022/src/lib/general/procedure-actions/procedure-actions.component.mjs +4 -6
  15. package/esm2022/src/lib/general/status-display/status-display.component.mjs +6 -3
  16. package/esm2022/src/lib/model/event/hyp-event-status.type.mjs +2 -2
  17. package/esm2022/src/lib/model/event/hyp-event-tooltip.interface.mjs +1 -1
  18. package/esm2022/src/lib/model/hyp-service-status.type.mjs +4 -0
  19. package/esm2022/src/lib/model/public-api.mjs +2 -1
  20. package/esm2022/src/lib/store/event/event.actions.mjs +1 -1
  21. package/esm2022/src/lib/store/event/event.effects.mjs +3 -3
  22. package/fesm2022/provoly-hypervisor.mjs +132 -56
  23. package/fesm2022/provoly-hypervisor.mjs.map +1 -1
  24. package/package.json +2 -2
  25. package/src/lib/event/detail/event-detail.component.d.ts +1 -1
  26. package/src/lib/general/display-locale-datetime/display-locale-datetime.pipe.d.ts +5 -2
  27. package/src/lib/general/i18n/en.translations.d.ts +10 -1
  28. package/src/lib/general/i18n/fr.translations.d.ts +28 -1
  29. package/src/lib/general/procedure-actions/actions-types.constant.d.ts +1 -0
  30. package/src/lib/general/status-display/status-display.component.d.ts +2 -1
  31. package/src/lib/model/event/hyp-event-tooltip.interface.d.ts +10 -1
  32. package/src/lib/model/hyp-service-status.type.d.ts +3 -0
  33. package/src/lib/model/public-api.d.ts +1 -0
  34. package/src/lib/store/event/event.actions.d.ts +6 -4
  35. package/src/lib/store/event/event.effects.d.ts +5 -3
  36. package/styles/components/_m-hvy-event-summary-item.scss +18 -2
  37. package/styles/components/_o-hvy-procedure-actions.scss +14 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/hypervisor",
3
- "version": "0.0.88",
3
+ "version": "0.0.90",
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.8"
17
+ "@provoly/dashboard": "^1.3.19"
18
18
  },
19
19
  "dependencies": {
20
20
  "tslib": "^2.6.2"
@@ -91,7 +91,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
91
91
  protected readonly subCategories: (string | undefined)[];
92
92
  modifiedActions($event: any): void;
93
93
  openAssociationModal(): void;
94
- deleteProcedure(): void;
94
+ openDeleteModal(): void;
95
95
  private convertDate;
96
96
  static ɵfac: i0.ɵɵFactoryDeclaration<EventDetailComponent, never>;
97
97
  static ɵcmp: i0.ɵɵComponentDeclaration<EventDetailComponent, "hvy-event-detail", never, { "title": { "alias": "title"; "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"; }, never, never, false, never>;
@@ -1,9 +1,12 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DisplayLocaleDateTime implements PipeTransform {
4
- static format: Intl.DateTimeFormat;
4
+ static lang: string;
5
+ static formats: {
6
+ [key: string]: any;
7
+ };
5
8
  constructor();
6
- transform(dateAsString: string | undefined, ...args: unknown[]): string;
9
+ transform(dateAsString: string | undefined, ...args: string[]): string;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DisplayLocaleDateTime, never>;
8
11
  static ɵpipe: i0.ɵɵPipeDeclaration<DisplayLocaleDateTime, "displayLocaleDatetime", false>;
9
12
  }
@@ -13,7 +13,7 @@ export declare const enTranslations: {
13
13
  NEW: string;
14
14
  IN_PROGRESS: string;
15
15
  DONE: string;
16
- ASKED: string;
16
+ ARCHIVED: string;
17
17
  };
18
18
  address: string;
19
19
  source: string;
@@ -157,5 +157,14 @@ export declare const enTranslations: {
157
157
  cancel: string;
158
158
  search: string;
159
159
  };
160
+ service: {
161
+ status: {
162
+ CREATED: string;
163
+ ASKED: string;
164
+ IN_PROGRESS: string;
165
+ DONE: string;
166
+ CANCELLED: string;
167
+ };
168
+ };
160
169
  };
161
170
  };
@@ -13,7 +13,7 @@ export declare const frTranslations: {
13
13
  NEW: string;
14
14
  IN_PROGRESS: string;
15
15
  DONE: string;
16
- ASKED: string;
16
+ ARCHIVED: string;
17
17
  };
18
18
  address: string;
19
19
  source: string;
@@ -88,6 +88,9 @@ export declare const frTranslations: {
88
88
  presenceSensor: string;
89
89
  parent: string;
90
90
  consult: string;
91
+ entity: {
92
+ NOTFOUND: string;
93
+ };
91
94
  };
92
95
  eventSummary: {
93
96
  from: string;
@@ -141,6 +144,21 @@ export declare const frTranslations: {
141
144
  EMAIL: string;
142
145
  to: string;
143
146
  at: string;
147
+ placeholder: {
148
+ name: string;
149
+ phone: string;
150
+ email: string;
151
+ service: string;
152
+ other: string;
153
+ action: string;
154
+ };
155
+ question: {
156
+ PHONE: string;
157
+ SMS: string;
158
+ EMAIL: string;
159
+ ASKED_SERVICE: string;
160
+ OTHER: string;
161
+ };
144
162
  };
145
163
  };
146
164
  associationModal: {
@@ -162,5 +180,14 @@ export declare const frTranslations: {
162
180
  cancel: string;
163
181
  search: string;
164
182
  };
183
+ service: {
184
+ status: {
185
+ CREATED: string;
186
+ ASKED: string;
187
+ IN_PROGRESS: string;
188
+ DONE: string;
189
+ CANCELLED: string;
190
+ };
191
+ };
165
192
  };
166
193
  };
@@ -7,6 +7,7 @@ export declare const ACTIONS_TYPES: {
7
7
  display: undefined | Type<HvyBaseParameterActionComponent<HypAction>>;
8
8
  parameter: undefined | Type<HvyBaseParameterActionComponent<HypAction>>;
9
9
  validator: ((action: any) => boolean) | undefined;
10
+ order: number;
10
11
  };
11
12
  };
12
13
  };
@@ -9,6 +9,7 @@ export declare class StatusDisplayComponent extends SubscriptionnerDirective {
9
9
  targetStatuses: string[];
10
10
  targetsDisplayed: boolean;
11
11
  _modifiable: boolean;
12
+ type: 'service' | 'event';
12
13
  set item(item: {
13
14
  status: string;
14
15
  });
@@ -22,5 +23,5 @@ export declare class StatusDisplayComponent extends SubscriptionnerDirective {
22
23
  toggle(): void;
23
24
  constructor();
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<StatusDisplayComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<StatusDisplayComponent, "hvy-status-display", never, { "item": { "alias": "item"; "required": false; }; "modifiable": { "alias": "modifiable"; "required": false; }; }, { "modified": "modified"; }, never, never, false, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<StatusDisplayComponent, "hvy-status-display", never, { "type": { "alias": "type"; "required": false; }; "item": { "alias": "item"; "required": false; }; "modifiable": { "alias": "modifiable"; "required": false; }; }, { "modified": "modified"; }, never, never, false, never>;
26
27
  }
@@ -22,7 +22,16 @@ export interface HypEventTooltipARM extends HypEventTooltipBase {
22
22
  export interface HypEventTooltipFL extends HypEventTooltipBase {
23
23
  presenceSensor?: boolean;
24
24
  }
25
- export type HypEventTooltip = HypEventTooltipARM | HypEventTooltipFL;
25
+ export interface HypEventTooltipCAM extends HypEventTooltipBase {
26
+ alimentation: string;
27
+ height: string;
28
+ accessibility: string;
29
+ connectivity: string;
30
+ typology: string;
31
+ measuredAt: string;
32
+ licenses: number;
33
+ }
34
+ export type HypEventTooltip = HypEventTooltipARM | HypEventTooltipFL | HypEventTooltipCAM;
26
35
  export interface HypServiceTooltip {
27
36
  id: string;
28
37
  externalId: string;
@@ -0,0 +1,3 @@
1
+ export declare const HypServiceStatus: {
2
+ values: string[];
3
+ };
@@ -9,5 +9,6 @@ export * from './procedure/hyp-procedure.interface';
9
9
  export * from './procedure/hyp-procedure-model.interface';
10
10
  export * from './procedure/hyp-action.interface';
11
11
  export * from './hyp-equipment.interface';
12
+ export * from './hyp-service-status.type';
12
13
  export * from './domains.constant';
13
14
  export * from './entites.constant';
@@ -87,14 +87,16 @@ export declare const EventActions: {
87
87
  saveSuccess: import("@ngrx/store").ActionCreator<"[Event] Save success", (props: {
88
88
  event?: HypEventDetails | undefined;
89
89
  procedure?: HypProcedure | undefined;
90
+ creation: boolean;
90
91
  }) => {
91
92
  event?: HypEventDetails | undefined;
92
93
  procedure?: HypProcedure | undefined;
94
+ creation: boolean;
93
95
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Save success">>;
94
96
  saveFailure: import("@ngrx/store").ActionCreator<"[Event] Save failure", (props: {
95
- error: string;
97
+ error: any;
96
98
  }) => {
97
- error: string;
99
+ error: any;
98
100
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Save failure">>;
99
101
  status: import("@ngrx/store").ActionCreator<"[Event] Close Event or Procedure", (props: {
100
102
  targetStatus: string;
@@ -115,9 +117,9 @@ export declare const EventActions: {
115
117
  procedure?: HypProcedure | undefined;
116
118
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Close success">>;
117
119
  statusFailure: import("@ngrx/store").ActionCreator<"[Event] Close failure", (props: {
118
- error: string;
120
+ error: any;
119
121
  }) => {
120
- error: string;
122
+ error: any;
121
123
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Close failure">>;
122
124
  sort: import("@ngrx/store").ActionCreator<"[Event] set log event sorting", (props: {
123
125
  field: string;
@@ -32,14 +32,16 @@ export declare class EventEffects {
32
32
  saveEvent$: import("rxjs").Observable<({
33
33
  event?: import("@provoly/hypervisor").HypEventDetails | undefined;
34
34
  procedure?: import("@provoly/hypervisor").HypProcedure | undefined;
35
+ creation: boolean;
35
36
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Save success">) | ({
36
- error: string;
37
+ error: any;
37
38
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Save failure">)> & import("@ngrx/effects").CreateEffectMetadata;
38
39
  saveProcedure$: import("rxjs").Observable<({
39
40
  event?: import("@provoly/hypervisor").HypEventDetails | undefined;
40
41
  procedure?: import("@provoly/hypervisor").HypProcedure | undefined;
42
+ creation: boolean;
41
43
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Save success">) | ({
42
- error: string;
44
+ error: any;
43
45
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Save failure">)> & import("@ngrx/effects").CreateEffectMetadata;
44
46
  refreshAfterSave$: import("rxjs").Observable<({
45
47
  id: number;
@@ -52,7 +54,7 @@ export declare class EventEffects {
52
54
  event?: import("@provoly/hypervisor").HypEventDetails | undefined;
53
55
  procedure?: import("@provoly/hypervisor").HypProcedure | undefined;
54
56
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Close success">) | ({
55
- error: string;
57
+ error: any;
56
58
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Close failure">)> & import("@ngrx/effects").CreateEffectMetadata;
57
59
  sort$: import("rxjs").Observable<{
58
60
  next?: boolean | undefined;
@@ -42,14 +42,30 @@
42
42
  &:has(.-hvy-alert) {
43
43
  align-items: flex-end;
44
44
  }
45
+
46
+ pry-icon {
47
+ background-color: themed($theme-map, 'color', 'graph', 02);
48
+ color: themed($theme-map, 'color', 'primary', 200);
49
+ border-radius: toRem(12);
50
+ border: toRem(2) solid #FFFFFF;
51
+ }
52
+
53
+ hvy-icon-display {
54
+ transform: translateX(toRem(-16));
55
+ }
45
56
  }
46
57
 
47
58
  &__intervention-counter {
48
- border-radius: toRem(2);
49
- padding: 0 toRem(5);
59
+ border-radius: toRem(14);
60
+ padding: 0 toRem(4);
50
61
  background-color: themed($theme-map, 'color', 'graph', 02);
51
62
  color: themed($theme-map, 'color', 'primary', 200);
52
63
  font-size: toRem(12);
64
+ line-height: toRem(15);
65
+ width: toRem(18);
66
+ height: toRem(18);
67
+ transform: translate(toRem(-16), toRem(-10));
68
+ border: toRem(1) solid #FFFFFF;
53
69
  }
54
70
 
55
71
  &__event-icon-container {
@@ -97,17 +97,25 @@ hvy-action-parameter {
97
97
  div.param-line {
98
98
  display: flex;
99
99
  flex-direction: row;
100
- gap: toRem(5);
100
+ gap: toRem(15);
101
101
  height: toRem(30);
102
- }
103
- }
104
102
 
105
- hvy-sms-action-parameter, hvy-email-action-parameter {
106
- .param-line {
107
- * {
103
+ p, input {
108
104
  flex: 1 1;
105
+
106
+ &.param-line__short {
107
+ flex: 0.5 0.5;
108
+ }
109
109
  }
110
110
 
111
+ input::placeholder {
112
+ font-style: italic;
113
+ }
114
+ }
115
+ }
116
+
117
+ hvy-phone-action-parameter, hvy-email-action-parameter {
118
+ .param-line {
111
119
  .to {
112
120
  flex: 0;
113
121
  }