@provoly/hypervisor 2.0.9 → 2.1.0
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/esm2022/src/lib/event/detail/event-detail.component.mjs +31 -15
- package/esm2022/src/lib/event/procedure-association-modal/procedure-association-modal.component.mjs +20 -6
- package/esm2022/src/lib/event-summary/item/event-summary-item.component.mjs +3 -3
- package/esm2022/src/lib/general/comments/comments.component.mjs +3 -3
- package/esm2022/src/lib/general/i18n/fr.translations.mjs +3 -1
- package/esm2022/src/lib/model/procedure/hyp-procedure.interface.mjs +1 -1
- package/fesm2022/provoly-hypervisor.mjs +113 -82
- package/fesm2022/provoly-hypervisor.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/event/detail/event-detail.component.d.ts +5 -2
- package/src/lib/event/procedure-association-modal/procedure-association-modal.component.d.ts +5 -2
- package/src/lib/general/i18n/fr.translations.d.ts +2 -0
- package/src/lib/model/procedure/hyp-procedure.interface.d.ts +2 -0
- package/styles/components/_o-hvy-comments.scss +4 -0
- package/styles/components/_o-hvy-event-detail.scss +6 -5
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@ import { HypComment } from '../../model/comment.interface';
|
|
|
16
16
|
import { Actions } from '@ngrx/effects';
|
|
17
17
|
import { FormArray, FormBuilder, FormControl } from "@angular/forms";
|
|
18
18
|
import { MatAutocompleteTrigger } from "@angular/material/autocomplete";
|
|
19
|
+
import { ProcedureService } from "../../store/procedure/procedure.service";
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
21
|
export type ChangeStatusContext = {
|
|
21
22
|
comment: string;
|
|
@@ -55,6 +56,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
55
56
|
private eventService;
|
|
56
57
|
private actions$;
|
|
57
58
|
private formBuilder;
|
|
59
|
+
private procedureService;
|
|
58
60
|
eventForm: import("@angular/forms").FormGroup<{
|
|
59
61
|
equips: FormArray<FormControl<unknown>>;
|
|
60
62
|
}>;
|
|
@@ -127,7 +129,7 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
127
129
|
dialog: PryDialogRef<HvyEventDetailsTooltipComponent> | null;
|
|
128
130
|
index: number;
|
|
129
131
|
};
|
|
130
|
-
constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, i18nService: PryI18nService, pryDialog: PryDialogService, commentsService: HypCommentsService, eventService: EventService, actions$: Actions, formBuilder: FormBuilder);
|
|
132
|
+
constructor(equipmentService: EquipmentService, store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, i18nService: PryI18nService, pryDialog: PryDialogService, commentsService: HypCommentsService, eventService: EventService, actions$: Actions, formBuilder: FormBuilder, procedureService: ProcedureService);
|
|
131
133
|
isEventModified(): boolean;
|
|
132
134
|
private setDistrictForEvents;
|
|
133
135
|
private setCreatorForEvents;
|
|
@@ -177,8 +179,9 @@ export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
|
177
179
|
protected readonly subCategories: (string | undefined)[];
|
|
178
180
|
modifiedActions($event: any): void;
|
|
179
181
|
refreshActions($event: HypAction[]): void;
|
|
180
|
-
openAssociationModal(): void;
|
|
182
|
+
openAssociationModal(title?: string, procedure?: string, domain?: string): void;
|
|
181
183
|
openDeleteModal(): void;
|
|
184
|
+
openChangeModal(): void;
|
|
182
185
|
private convertDate;
|
|
183
186
|
displayEquipment(equipment: EquipmentForEvent): string;
|
|
184
187
|
getEquipControl(index: number): FormControl;
|
package/src/lib/event/procedure-association-modal/procedure-association-modal.component.d.ts
CHANGED
|
@@ -17,13 +17,16 @@ export declare class ProcedureAssociationModalComponent extends SubscriptionnerD
|
|
|
17
17
|
selectedDomain?: string;
|
|
18
18
|
selectedProcedureInComboBox?: HypProcedureModel;
|
|
19
19
|
onDomainSelect$: BehaviorSubject<void>;
|
|
20
|
-
procedureSelectValue?: string | HypProcedureModel;
|
|
21
20
|
onProcedureSearch$: Subject<void>;
|
|
22
21
|
procedures$: Observable<HypProcedureModelWithMatching[]>;
|
|
23
22
|
eventsFromInput$: BehaviorSubject<HypEventDetails[] | null>;
|
|
24
23
|
eventsForAction: HypEventDetails[];
|
|
25
24
|
disableValidButton: boolean;
|
|
25
|
+
eventsDomain: (string | undefined)[];
|
|
26
26
|
set events(events: HypEventDetails[]);
|
|
27
|
+
title: string;
|
|
28
|
+
procedureSelectValue?: string | HypProcedureModel;
|
|
29
|
+
set procedureDomain(domain: string);
|
|
27
30
|
constructor(store: Store, procedureService: ProcedureService, dialog: PryDialogRef<ProcedureAssociationModalComponent>);
|
|
28
31
|
onDomainChange(): void;
|
|
29
32
|
cleanProcedureNameForComboBoxSearch(procedure: string): string;
|
|
@@ -35,5 +38,5 @@ export declare class ProcedureAssociationModalComponent extends SubscriptionnerD
|
|
|
35
38
|
fn: (id: number | string) => string;
|
|
36
39
|
};
|
|
37
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProcedureAssociationModalComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureAssociationModalComponent, "hvy-procedure-association-modal", never, { "events": { "alias": "events"; "required": false; }; }, {}, never, never, false, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureAssociationModalComponent, "hvy-procedure-association-modal", never, { "events": { "alias": "events"; "required": false; }; "title": { "alias": "title"; "required": false; }; "procedureSelectValue": { "alias": "procedureSelectValue"; "required": false; }; "procedureDomain": { "alias": "procedureDomain"; "required": false; }; }, {}, never, never, false, never>;
|
|
39
42
|
}
|
|
@@ -70,6 +70,7 @@ export declare const frTranslations: {
|
|
|
70
70
|
};
|
|
71
71
|
procedure: {
|
|
72
72
|
delete: string;
|
|
73
|
+
modify: string;
|
|
73
74
|
progress: string;
|
|
74
75
|
noAction: string;
|
|
75
76
|
name: string;
|
|
@@ -162,6 +163,7 @@ export declare const frTranslations: {
|
|
|
162
163
|
IN_PROGRESS: string;
|
|
163
164
|
DONE: string;
|
|
164
165
|
};
|
|
166
|
+
etat: string;
|
|
165
167
|
alreadyExists: string;
|
|
166
168
|
name: string;
|
|
167
169
|
progress: string;
|
|
@@ -9,6 +9,7 @@ export interface HypProcedure {
|
|
|
9
9
|
progress: number;
|
|
10
10
|
events: HypEventDetails[];
|
|
11
11
|
closeComment?: string;
|
|
12
|
+
domain: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const procedureForWriteAPI: (procedure: HypProcedure) => {
|
|
14
15
|
events: {
|
|
@@ -56,4 +57,5 @@ export declare const procedureForWriteAPI: (procedure: HypProcedure) => {
|
|
|
56
57
|
actions: HypAction[];
|
|
57
58
|
progress: number;
|
|
58
59
|
closeComment?: string;
|
|
60
|
+
domain: string;
|
|
59
61
|
};
|
|
@@ -42,12 +42,9 @@
|
|
|
42
42
|
padding-bottom: 0;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
button {
|
|
45
|
+
button.-fix-right {
|
|
46
|
+
margin-right: toRem(20);
|
|
46
47
|
margin-left: auto;
|
|
47
|
-
|
|
48
|
-
&.-fix-right {
|
|
49
|
-
margin-right: toRem(20);
|
|
50
|
-
}
|
|
51
48
|
}
|
|
52
49
|
|
|
53
50
|
.add-button {
|
|
@@ -402,3 +399,7 @@ div.mat-mdc-autocomplete-panel {
|
|
|
402
399
|
}
|
|
403
400
|
}
|
|
404
401
|
|
|
402
|
+
.event-detail-buttons-left {
|
|
403
|
+
justify-content: end;
|
|
404
|
+
}
|
|
405
|
+
|