@provoly/hypervisor 0.0.106 → 0.0.108

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 (34) hide show
  1. package/esm2022/public-api.mjs +2 -1
  2. package/esm2022/src/lib/event/detail/event-detail.component.mjs +31 -14
  3. package/esm2022/src/lib/event/list/event-list.component.mjs +3 -3
  4. package/esm2022/src/lib/event-summary/list/event-summary-list.component.mjs +3 -3
  5. package/esm2022/src/lib/general/comments/comments.component.mjs +80 -0
  6. package/esm2022/src/lib/general/i18n/en.translations.mjs +11 -3
  7. package/esm2022/src/lib/general/i18n/fr.translations.mjs +14 -4
  8. package/esm2022/src/lib/general/procedure-actions/procedure-actions.component.mjs +30 -11
  9. package/esm2022/src/lib/general/public-api.mjs +2 -1
  10. package/esm2022/src/lib/hypervisor.module.mjs +14 -7
  11. package/esm2022/src/lib/model/comment.interface.mjs +2 -0
  12. package/esm2022/src/lib/procedure/model-detail/procedure-model-detail.component.mjs +3 -3
  13. package/esm2022/src/lib/store/comments/comments.service.mjs +35 -0
  14. package/esm2022/src/lib/store/comments/public-api.mjs +2 -0
  15. package/esm2022/src/lib/store/event/event.effects.mjs +2 -2
  16. package/fesm2022/provoly-hypervisor.mjs +227 -73
  17. package/fesm2022/provoly-hypervisor.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/public-api.d.ts +1 -0
  20. package/src/lib/event/detail/event-detail.component.d.ts +23 -9
  21. package/src/lib/general/comments/comments.component.d.ts +37 -0
  22. package/src/lib/general/i18n/en.translations.d.ts +8 -0
  23. package/src/lib/general/i18n/fr.translations.d.ts +10 -0
  24. package/src/lib/general/procedure-actions/procedure-actions.component.d.ts +19 -4
  25. package/src/lib/general/public-api.d.ts +1 -0
  26. package/src/lib/hypervisor.module.d.ts +10 -9
  27. package/src/lib/model/comment.interface.d.ts +8 -0
  28. package/src/lib/store/comments/comments.service.d.ts +17 -0
  29. package/src/lib/store/comments/public-api.d.ts +1 -0
  30. package/styles/components/_index.scss +1 -0
  31. package/styles/components/_o-hvy-comments.scss +78 -0
  32. package/styles/components/_o-hvy-event-detail.scss +11 -20
  33. package/styles/components/_o-hvy-procedure-actions.scss +6 -3
  34. package/styles/components/_o-hvy-procedure-list.scss +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/hypervisor",
3
- "version": "0.0.106",
3
+ "version": "0.0.108",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "16.x || 17.x",
6
6
  "@angular/common": "16.x || 17.x",
package/public-api.d.ts CHANGED
@@ -10,3 +10,4 @@ export * from './src/lib/store/event-summary/public-api';
10
10
  export * from './src/lib/store/equipment/public-api';
11
11
  export * from './src/lib/store/hypervisor/public-api';
12
12
  export * from './src/lib/store/procedure/public-api';
13
+ export * from './src/lib/store/comments/public-api';
@@ -6,7 +6,16 @@ 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';
10
+ import { HypCommentsService } from '../../store/comments/comments.service';
11
+ import { HypComment } from '../../model/comment.interface';
9
12
  import * as i0 from "@angular/core";
13
+ export type ChangeStatusContext = {
14
+ comment: string;
15
+ events: HypEventDetails[];
16
+ status: string;
17
+ all: boolean;
18
+ };
10
19
  export declare class EventDetailComponent extends SubscriptionnerDirective {
11
20
  private equipmentService;
12
21
  private store;
@@ -15,6 +24,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
15
24
  private snackBar;
16
25
  private i18nService;
17
26
  private pryDialog;
27
+ private commentsService;
18
28
  opened: boolean[];
19
29
  criticalities: string[];
20
30
  _events: HypEventDetails[];
@@ -33,19 +43,19 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
33
43
  code: string;
34
44
  }[][];
35
45
  canCloseSome: boolean;
36
- newComentContent: string;
37
- changeStatusContext: {
38
- comment: string;
39
- events: HypEventDetails[];
40
- status: string;
41
- all: boolean;
42
- };
46
+ changeStatusContext: ChangeStatusContext;
43
47
  title?: string;
48
+ me?: string | null;
44
49
  readonly: boolean | null;
45
50
  readonlyProcedure: boolean | null;
46
51
  enableEditActions: boolean | null;
47
52
  overlayRef?: OverlayRef;
48
53
  confirmDialog: TemplateRef<any>;
54
+ comfirmDialogOpened: EventEmitter<ChangeStatusContext>;
55
+ triggerComment$: BehaviorSubject<void>;
56
+ comments$?: Observable<{
57
+ [p: number]: HypComment[];
58
+ }>;
49
59
  set events(events: HypEventDetails[]);
50
60
  set procedure(procedure: HypProcedure);
51
61
  set cancelModifications(evt: any);
@@ -53,7 +63,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
53
63
  index: number;
54
64
  equipmentName?: string;
55
65
  });
56
- constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, snackBar: PrySnackbarService, i18nService: PryI18nService, pryDialog: PryDialogService);
66
+ constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, snackBar: PrySnackbarService, i18nService: PryI18nService, pryDialog: PryDialogService, commentsService: HypCommentsService);
57
67
  get events(): HypEventDetails[];
58
68
  get canAssociateProcedure(): boolean;
59
69
  get procedure(): HypProcedure | undefined;
@@ -96,6 +106,10 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
96
106
  openAssociationModal(): void;
97
107
  openDeleteModal(): void;
98
108
  private convertDate;
109
+ updateComment(event: HypEventDetails, comment: {
110
+ id: string;
111
+ message: string;
112
+ }): void;
99
113
  static ɵfac: i0.ɵɵFactoryDeclaration<EventDetailComponent, never>;
100
- static ɵcmp: i0.ɵɵComponentDeclaration<EventDetailComponent, "hvy-event-detail", never, { "title": { "alias": "title"; "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"; }, never, never, false, never>;
114
+ 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>;
101
115
  }
@@ -0,0 +1,37 @@
1
+ import { EventEmitter, OnDestroy } from '@angular/core';
2
+ import { HypComment } from '../../model/comment.interface';
3
+ import { Subject, Subscription } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export type HypAugmentedComment = HypComment & {
6
+ day: string;
7
+ hour: string;
8
+ edit: boolean;
9
+ previousMessage: string;
10
+ };
11
+ export declare class HvyCommentsComponent implements OnDestroy {
12
+ _comments: HypAugmentedComment[];
13
+ readonly: boolean | null;
14
+ newComment: string;
15
+ commented: EventEmitter<{
16
+ id: string;
17
+ message: string;
18
+ }>;
19
+ more: boolean;
20
+ me: string | null | undefined;
21
+ type: 'actions' | 'events';
22
+ displayEmpty: boolean;
23
+ opened: boolean;
24
+ subTrigger?: Subscription;
25
+ set comments(comments: HypComment[] | null);
26
+ set trigger(trigger$: Subject<boolean>);
27
+ ngOnDestroy(): void;
28
+ get comments(): HypComment[] | null;
29
+ addComment(): void;
30
+ editComment(comment: HypAugmentedComment): void;
31
+ saveComment(comment: HypAugmentedComment): void;
32
+ cancel(comment: HypAugmentedComment): void;
33
+ toggleMore(): void;
34
+ toggle(): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<HvyCommentsComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<HvyCommentsComponent, "hvy-comments", never, { "readonly": { "alias": "readonly"; "required": false; }; "me": { "alias": "me"; "required": false; }; "type": { "alias": "type"; "required": false; }; "displayEmpty": { "alias": "displayEmpty"; "required": false; }; "comments": { "alias": "comments"; "required": false; }; "trigger": { "alias": "trigger"; "required": false; }; }, { "commented": "commented"; }, never, never, false, never>;
37
+ }
@@ -85,6 +85,14 @@ export declare const enTranslations: {
85
85
  presenceSensor: string;
86
86
  parent: string;
87
87
  consult: string;
88
+ comment: {
89
+ lastDetail: string;
90
+ detail: string;
91
+ more: string;
92
+ less: string;
93
+ head: string;
94
+ heads: string;
95
+ };
88
96
  };
89
97
  eventSummary: {
90
98
  from: string;
@@ -45,6 +45,7 @@ export declare const frTranslations: {
45
45
  comments: {
46
46
  name: string;
47
47
  placeholder: string;
48
+ actions: string;
48
49
  };
49
50
  };
50
51
  procedure: {
@@ -92,6 +93,14 @@ export declare const frTranslations: {
92
93
  entity: {
93
94
  NOTFOUND: string;
94
95
  };
96
+ comment: {
97
+ lastDetail: string;
98
+ detail: string;
99
+ more: string;
100
+ less: string;
101
+ head: string;
102
+ heads: string;
103
+ };
95
104
  };
96
105
  eventSummary: {
97
106
  from: string;
@@ -180,6 +189,7 @@ export declare const frTranslations: {
180
189
  validate: string;
181
190
  cancel: string;
182
191
  search: string;
192
+ update: string;
183
193
  };
184
194
  service: {
185
195
  status: {
@@ -1,12 +1,15 @@
1
1
  import { ElementRef, EventEmitter, QueryList } from '@angular/core';
2
- import { PryDialogService, PryI18nService, SubscriptionnerDirective } from '@provoly/dashboard';
2
+ import { PryDialogService, SubscriptionnerDirective } from '@provoly/dashboard';
3
3
  import { HypAction } from '../../model/procedure/hyp-action.interface';
4
4
  import { Overlay } from '@angular/cdk/overlay';
5
+ import { HypCommentsService } from '../../store/comments/comments.service';
6
+ import { BehaviorSubject, Observable, Subject } from 'rxjs';
7
+ import { HypComment } from '../../model/comment.interface';
5
8
  import * as i0 from "@angular/core";
6
9
  export declare class ProcedureActionsComponent extends SubscriptionnerDirective {
7
10
  private pryDialog;
8
11
  private overlay;
9
- private i18nService;
12
+ private commentsService;
10
13
  static CARD_HEIGHT: number;
11
14
  movingAction?: HypAction;
12
15
  moveStart: number;
@@ -16,12 +19,20 @@ export declare class ProcedureActionsComponent extends SubscriptionnerDirective
16
19
  dragTarget?: EventTarget | null;
17
20
  modified: EventEmitter<HypAction[]>;
18
21
  mode: 'model' | 'procedure';
22
+ me: string | null | undefined;
19
23
  readonly: boolean | null;
20
24
  enableEditActions: boolean | null;
21
25
  ACTIONS_TYPES: string[];
22
26
  _actions: HypAction[];
23
27
  menuButtons: QueryList<ElementRef>;
24
- constructor(pryDialog: PryDialogService, overlay: Overlay, i18nService: PryI18nService);
28
+ triggerComment$: BehaviorSubject<void>;
29
+ comments$?: Observable<{
30
+ [p: string]: HypComment[];
31
+ }>;
32
+ triggers: {
33
+ [p: string]: Subject<boolean>;
34
+ };
35
+ constructor(pryDialog: PryDialogService, overlay: Overlay, commentsService: HypCommentsService);
25
36
  set actions(actions: HypAction[]);
26
37
  get actions(): HypAction[];
27
38
  get editing(): boolean;
@@ -39,6 +50,10 @@ export declare class ProcedureActionsComponent extends SubscriptionnerDirective
39
50
  cancelAction(action: HypAction, idx: number): void;
40
51
  isValid(action: HypAction): boolean | "";
41
52
  isDraggable(action: HypAction): boolean | null;
53
+ updateComment(action: HypAction, comment: {
54
+ id: string;
55
+ message: string;
56
+ }): void;
42
57
  static ɵfac: i0.ɵɵFactoryDeclaration<ProcedureActionsComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureActionsComponent, "hvy-procedure-actions", never, { "mode": { "alias": "mode"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "enableEditActions": { "alias": "enableEditActions"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, { "modified": "modified"; }, never, never, false, 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>;
44
59
  }
@@ -9,6 +9,7 @@ export * from './icon-display/icon-display.component';
9
9
  export * from './status-display/status-display.component';
10
10
  export * from './progress-display/progress-display.component';
11
11
  export * from './column-order/column-order.component';
12
+ export * from './comments/comments.component';
12
13
  export * from './pad-id.function';
13
14
  export * from './procedure-actions/actions-types.constant';
14
15
  export * from './procedure-actions/action-menu.component';
@@ -36,14 +36,15 @@ import * as i31 from "./general/procedure-actions/action-parameters/email/email-
36
36
  import * as i32 from "./general/procedure-actions/action-parameters/service/service-action-parameter.component";
37
37
  import * as i33 from "./general/procedure-actions/action-parameters/service/service-action-display.component";
38
38
  import * as i34 from "./general/display-locale-datetime/display-locale-datetime.pipe";
39
- import * as i35 from "./general/procedure-actions/procedure-actions.component";
40
- import * as i36 from "@ngrx/store";
41
- import * as i37 from "@ngrx/effects";
42
- import * as i38 from "@angular/common";
43
- import * as i39 from "@provoly/dashboard";
44
- import * as i40 from "@provoly/dashboard/components/checkbox";
45
- import * as i41 from "@angular/forms";
46
- import * as i42 from "@angular/router";
39
+ import * as i35 from "./general/comments/comments.component";
40
+ import * as i36 from "./general/procedure-actions/procedure-actions.component";
41
+ import * as i37 from "@ngrx/store";
42
+ import * as i38 from "@ngrx/effects";
43
+ import * as i39 from "@angular/common";
44
+ import * as i40 from "@provoly/dashboard";
45
+ import * as i41 from "@provoly/dashboard/components/checkbox";
46
+ import * as i42 from "@angular/forms";
47
+ import * as i43 from "@angular/router";
47
48
  export declare class PvyHypervisorModule {
48
49
  private baseConfig;
49
50
  private store;
@@ -55,6 +56,6 @@ export declare class PvyHypervisorModule {
55
56
  url: string;
56
57
  }, store: Store<any>, i18nService: PryI18nService);
57
58
  static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
58
- static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventColumnOrderComponent, typeof i4.IconDisplayComponent, typeof i5.EventSummaryItemComponent, typeof i6.EventSummaryListComponent, typeof i7.EventSummaryPageComponent, typeof i8.EventIconPipe, typeof i9.ForDatetimeLocalPipe, typeof i10.StatusDisplayComponent, typeof i11.ProgressDisplayComponent, typeof i12.ColumnOrderComponent, typeof i13.EventFiltersComponent, typeof i14.DateFilterComponent, typeof i15.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent, typeof i22.HvyActionMenuComponent, typeof i23.HvyActionParameterComponent, typeof i24.HvyBaseParameterActionComponent, typeof i25.HvyOtherActionParameterComponent, typeof i26.HvyOtherActionDisplayComponent, typeof i27.HvyNoParamsActionDisplayComponent, typeof i28.HvyPhoneActionParameterComponent, typeof i29.HvyPhoneActionDisplayComponent, typeof i30.HvyEmailActionDisplayComponent, typeof i31.HvyEmailActionParameterComponent, typeof i32.HvyServiceActionParameterComponent, typeof i33.HvyServiceActionDisplayComponent, typeof i34.DisplayLocaleDateTime, typeof i35.ProcedureActionsComponent], [typeof i36.StoreFeatureModule, typeof i36.StoreFeatureModule, typeof i36.StoreFeatureModule, typeof i36.StoreFeatureModule, typeof i37.EffectsFeatureModule, typeof i38.NgForOf, typeof i38.AsyncPipe, typeof i39.PryI18nModule, typeof i39.PryCoreModule, typeof i38.NgStyle, typeof i40.PryCheckboxModule, typeof i41.FormsModule, typeof i42.RouterLink, typeof i39.PrySinceDateModule, typeof i38.DatePipe, typeof i39.PryIconModule, typeof i38.KeyValuePipe, typeof i39.PrySelectModule, typeof i38.JsonPipe, typeof i39.PryDatePickerModule, typeof i38.NgIf, typeof i39.PryCoreModule], [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventColumnOrderComponent, typeof i4.IconDisplayComponent, typeof i5.EventSummaryItemComponent, typeof i6.EventSummaryListComponent, typeof i7.EventSummaryPageComponent, typeof i8.EventIconPipe, typeof i9.ForDatetimeLocalPipe, typeof i10.StatusDisplayComponent, typeof i11.ProgressDisplayComponent, typeof i12.ColumnOrderComponent, typeof i13.EventFiltersComponent, typeof i14.DateFilterComponent, typeof i15.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent, typeof i22.HvyActionMenuComponent, typeof i23.HvyActionParameterComponent, typeof i24.HvyBaseParameterActionComponent, typeof i25.HvyOtherActionParameterComponent, typeof i26.HvyOtherActionDisplayComponent, typeof i27.HvyNoParamsActionDisplayComponent, typeof i28.HvyPhoneActionParameterComponent, typeof i29.HvyPhoneActionDisplayComponent, typeof i30.HvyEmailActionDisplayComponent, typeof i31.HvyEmailActionParameterComponent, typeof i32.HvyServiceActionParameterComponent, typeof i33.HvyServiceActionDisplayComponent, typeof i34.DisplayLocaleDateTime]>;
59
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventColumnOrderComponent, typeof i4.IconDisplayComponent, typeof i5.EventSummaryItemComponent, typeof i6.EventSummaryListComponent, typeof i7.EventSummaryPageComponent, typeof i8.EventIconPipe, typeof i9.ForDatetimeLocalPipe, typeof i10.StatusDisplayComponent, typeof i11.ProgressDisplayComponent, typeof i12.ColumnOrderComponent, typeof i13.EventFiltersComponent, typeof i14.DateFilterComponent, typeof i15.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent, typeof i22.HvyActionMenuComponent, typeof i23.HvyActionParameterComponent, typeof i24.HvyBaseParameterActionComponent, typeof i25.HvyOtherActionParameterComponent, typeof i26.HvyOtherActionDisplayComponent, typeof i27.HvyNoParamsActionDisplayComponent, typeof i28.HvyPhoneActionParameterComponent, typeof i29.HvyPhoneActionDisplayComponent, typeof i30.HvyEmailActionDisplayComponent, typeof i31.HvyEmailActionParameterComponent, typeof i32.HvyServiceActionParameterComponent, typeof i33.HvyServiceActionDisplayComponent, typeof i34.DisplayLocaleDateTime, typeof i35.HvyCommentsComponent, typeof i36.ProcedureActionsComponent], [typeof i37.StoreFeatureModule, typeof i37.StoreFeatureModule, typeof i37.StoreFeatureModule, typeof i37.StoreFeatureModule, typeof i38.EffectsFeatureModule, typeof i39.NgForOf, typeof i39.AsyncPipe, typeof i40.PryI18nModule, typeof i40.PryCoreModule, typeof i39.NgStyle, typeof i41.PryCheckboxModule, typeof i42.FormsModule, typeof i43.RouterLink, typeof i40.PrySinceDateModule, typeof i39.DatePipe, typeof i40.PryIconModule, typeof i39.KeyValuePipe, typeof i40.PrySelectModule, typeof i39.JsonPipe, typeof i40.PryDatePickerModule, typeof i39.NgIf, typeof i40.PryCoreModule, typeof i40.PryI18nModule], [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventColumnOrderComponent, typeof i4.IconDisplayComponent, typeof i5.EventSummaryItemComponent, typeof i6.EventSummaryListComponent, typeof i7.EventSummaryPageComponent, typeof i8.EventIconPipe, typeof i9.ForDatetimeLocalPipe, typeof i10.StatusDisplayComponent, typeof i11.ProgressDisplayComponent, typeof i12.ColumnOrderComponent, typeof i13.EventFiltersComponent, typeof i14.DateFilterComponent, typeof i15.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent, typeof i22.HvyActionMenuComponent, typeof i23.HvyActionParameterComponent, typeof i24.HvyBaseParameterActionComponent, typeof i25.HvyOtherActionParameterComponent, typeof i26.HvyOtherActionDisplayComponent, typeof i27.HvyNoParamsActionDisplayComponent, typeof i28.HvyPhoneActionParameterComponent, typeof i29.HvyPhoneActionDisplayComponent, typeof i30.HvyEmailActionDisplayComponent, typeof i31.HvyEmailActionParameterComponent, typeof i32.HvyServiceActionParameterComponent, typeof i33.HvyServiceActionDisplayComponent, typeof i34.DisplayLocaleDateTime, typeof i35.HvyCommentsComponent]>;
59
60
  static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
60
61
  }
@@ -0,0 +1,8 @@
1
+ export interface HypComment {
2
+ id: string;
3
+ creationDate: string;
4
+ lastModificationDate: string;
5
+ message: string;
6
+ creator: string;
7
+ creatorName: string;
8
+ }
@@ -0,0 +1,17 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { Store } from '@ngrx/store';
4
+ import { HypComment } from '../../model/comment.interface';
5
+ import * as i0 from "@angular/core";
6
+ export declare class HypCommentsService {
7
+ private httpClient;
8
+ private store;
9
+ constructor(httpClient: HttpClient, store: Store<any>);
10
+ get(id: number | string, type: 'events' | 'actions'): Observable<HypComment[]>;
11
+ save(id: number | string, type: 'events' | 'actions', comment: {
12
+ id: string;
13
+ message: string;
14
+ }): Observable<HypComment[]>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<HypCommentsService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<HypCommentsService>;
17
+ }
@@ -0,0 +1 @@
1
+ export * from './comments.service';
@@ -17,3 +17,4 @@
17
17
  @use "./o-hvy-procedure-detail" as *;
18
18
  @use "./o-hvy-procedure-actions" as *;
19
19
  @use "./o-hvy-action-menu" as *;
20
+ @use "./o-hvy-comments" as *;
@@ -0,0 +1,78 @@
1
+ @use 'node_modules/@provoly/dashboard/styles/abstracts' as *;
2
+ @use 'node_modules/@provoly/dashboard/styles-theme/abstracts-theme/variables.theme' as *;
3
+
4
+ .o-hvy-comments {
5
+
6
+ &__header {
7
+ display: flex;
8
+ flex-direction: row;
9
+ gap: toRem(20);
10
+
11
+ pry-icon {
12
+ margin-top: toRem(2);
13
+ }
14
+ }
15
+
16
+ textarea.a-form-field {
17
+ width: 100%;
18
+ margin-bottom: toRem(8);
19
+
20
+ &::placeholder {
21
+ font-style: italic;
22
+ font-size: toRem(12);
23
+ color: #859DB6;
24
+ padding: 5px;
25
+ }
26
+ }
27
+
28
+ &__button {
29
+ display: flex;
30
+ flex-direction: row;
31
+ justify-content: flex-end;
32
+ margin-bottom: toRem(20);
33
+ }
34
+
35
+ &__previous {
36
+ &:not(:first-child) {
37
+ margin-top: toRem(15);
38
+ }
39
+
40
+ &__message {
41
+ display: flex;
42
+ flex-direction: row;
43
+
44
+ button {
45
+ height: fit-content;
46
+ margin: 0;
47
+ }
48
+ }
49
+
50
+ &__actions {
51
+ display: flex;
52
+ flex-direction: row;
53
+ gap: toRem(20);
54
+
55
+ button, button:last-child {
56
+ margin: 0;
57
+
58
+ &:first-child {
59
+ margin-left: auto;
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ &__more {
66
+ display: flex;
67
+ flex-direction: row;
68
+ justify-content: center;
69
+
70
+ button {
71
+ margin: 0;
72
+ text-decoration: underline;
73
+ color: #183C6B;
74
+ font-weight: bold;
75
+ font-size: toRem(12);
76
+ }
77
+ }
78
+ }
@@ -27,6 +27,10 @@
27
27
  gap: toRem(10);
28
28
  align-items: baseline;
29
29
 
30
+ h1 {
31
+ padding-bottom: 0;
32
+ }
33
+
30
34
  button {
31
35
  margin-left: auto;
32
36
 
@@ -82,6 +86,13 @@
82
86
  }
83
87
  }
84
88
  }
89
+
90
+ &__comment {
91
+ flex: 1;
92
+ text-align: right;
93
+ font-size: toRem(11);
94
+ margin-top: toRem(8);
95
+ }
85
96
  }
86
97
 
87
98
  &__content {
@@ -99,26 +110,6 @@
99
110
  margin-top: toRem(20);
100
111
  }
101
112
 
102
- &__comments {
103
- textarea {
104
- width: 100%;
105
- margin-bottom: toRem(8);
106
-
107
- &::placeholder {
108
- font-style: italic;
109
- font-size: toRem(12);
110
- color: #859DB6;
111
- padding: 5px;
112
- }
113
- }
114
-
115
- &__button {
116
- display: flex;
117
- flex-direction: row;
118
- justify-content: flex-end;
119
- }
120
- }
121
-
122
113
  &__header {
123
114
  display: flex;
124
115
  flex-direction: row;
@@ -12,10 +12,13 @@
12
12
  }
13
13
 
14
14
  &__action {
15
- display: flex;
16
- flex-direction: row;
17
15
  padding: toRem(20);
18
- gap: toRem(20);
16
+
17
+ &__header {
18
+ display: flex;
19
+ flex-direction: row;
20
+ gap: toRem(20);
21
+ }
19
22
 
20
23
  button:disabled {
21
24
  opacity: 0.5;
@@ -28,6 +28,7 @@
28
28
  .o-hvy-events-table__line__cell:nth-child(1),
29
29
  .o-hvy-events-table__line__cell:nth-child(8){
30
30
  width: toRem(100);
31
+ text-align: center;
31
32
  }
32
33
  }
33
34
  }