@provoly/hypervisor 0.0.108 → 0.0.110
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/general/i18n/fr.translations.mjs +20 -2
- package/esm2022/src/lib/general/procedure-actions/action-parameters/service/create-service.component.mjs +107 -0
- package/esm2022/src/lib/general/procedure-actions/action-parameters/service/service-action-display.component.mjs +43 -7
- package/esm2022/src/lib/general/public-api.mjs +2 -1
- package/esm2022/src/lib/hypervisor.module.mjs +11 -4
- package/esm2022/src/lib/store/equipment/equipment.service.mjs +8 -5
- package/esm2022/src/lib/store/service/service.service.mjs +31 -0
- package/fesm2022/provoly-hypervisor.mjs +249 -67
- package/fesm2022/provoly-hypervisor.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/general/i18n/fr.translations.d.ts +18 -0
- package/src/lib/general/procedure-actions/action-parameters/service/create-service.component.d.ts +48 -0
- package/src/lib/general/procedure-actions/action-parameters/service/service-action-display.component.d.ts +13 -2
- package/src/lib/general/public-api.d.ts +1 -0
- package/src/lib/hypervisor.module.d.ts +23 -22
- package/src/lib/store/equipment/equipment.service.d.ts +1 -0
- package/src/lib/store/service/service.service.d.ts +27 -0
- package/styles/components/_a-button-link.scss +7 -0
- package/styles/components/_index.scss +2 -0
- package/styles/components/_o-hvy-create-service.scss +31 -0
- package/styles/components/_o-hvy-procedure-actions.scss +9 -0
package/package.json
CHANGED
|
@@ -190,6 +190,7 @@ export declare const frTranslations: {
|
|
|
190
190
|
cancel: string;
|
|
191
191
|
search: string;
|
|
192
192
|
update: string;
|
|
193
|
+
create: string;
|
|
193
194
|
};
|
|
194
195
|
service: {
|
|
195
196
|
status: {
|
|
@@ -199,6 +200,23 @@ export declare const frTranslations: {
|
|
|
199
200
|
DONE: string;
|
|
200
201
|
CANCELLED: string;
|
|
201
202
|
};
|
|
203
|
+
title: string;
|
|
204
|
+
subtitle: string;
|
|
205
|
+
reason: string;
|
|
206
|
+
type: string;
|
|
207
|
+
priority: string;
|
|
208
|
+
description: string;
|
|
209
|
+
target: string;
|
|
210
|
+
gti: string;
|
|
211
|
+
gtr: string;
|
|
212
|
+
gtrp: string;
|
|
213
|
+
describe: string;
|
|
214
|
+
noEquip: string;
|
|
215
|
+
priorities: {
|
|
216
|
+
'1-MINEUR': string;
|
|
217
|
+
'2-MAJEUR': string;
|
|
218
|
+
'3-BLOQUANT': string;
|
|
219
|
+
};
|
|
202
220
|
};
|
|
203
221
|
};
|
|
204
222
|
};
|
package/src/lib/general/procedure-actions/action-parameters/service/create-service.component.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { PryDialogRef, PryI18nService } from '@provoly/dashboard';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { HypEquipment } from '../../../../model/hyp-equipment.interface';
|
|
4
|
+
import { HypServiceAction } from './service-action-display.component';
|
|
5
|
+
import { EquipmentService } from '../../../../store/equipment/equipment.service';
|
|
6
|
+
import { HypServiceType, ServiceService } from '../../../../store/service/service.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export type HypCreateServiceResult = {
|
|
9
|
+
value: string;
|
|
10
|
+
name: string;
|
|
11
|
+
equipment: string;
|
|
12
|
+
priority: string;
|
|
13
|
+
type: string;
|
|
14
|
+
description: string;
|
|
15
|
+
gti?: string;
|
|
16
|
+
gtr?: string;
|
|
17
|
+
gtrp?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare class HvyCreateServiceComponent {
|
|
20
|
+
private dialog;
|
|
21
|
+
data: {
|
|
22
|
+
action: HypServiceAction;
|
|
23
|
+
};
|
|
24
|
+
private equipmentService;
|
|
25
|
+
private serviceService;
|
|
26
|
+
private i18nService;
|
|
27
|
+
result: HypCreateServiceResult;
|
|
28
|
+
equipments$: Observable<(HypEquipment | {
|
|
29
|
+
displayName: string;
|
|
30
|
+
})[]>;
|
|
31
|
+
errors: string[];
|
|
32
|
+
types: HypServiceType[];
|
|
33
|
+
priorities: string[];
|
|
34
|
+
constructor(dialog: PryDialogRef<HvyCreateServiceComponent>, data: {
|
|
35
|
+
action: HypServiceAction;
|
|
36
|
+
}, equipmentService: EquipmentService, serviceService: ServiceService, i18nService: PryI18nService);
|
|
37
|
+
action(value: string): void;
|
|
38
|
+
onEquipmentChange($event: string): void;
|
|
39
|
+
onDescriptionChange($event: string): void;
|
|
40
|
+
onTypeChange($event: string): void;
|
|
41
|
+
onPriorityChange($event: any): void;
|
|
42
|
+
hasError(type: string): boolean;
|
|
43
|
+
check(): void;
|
|
44
|
+
createDI(): void;
|
|
45
|
+
closeModal(): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HvyCreateServiceComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HvyCreateServiceComponent, "pry-create-service", never, {}, {}, never, never, false, never>;
|
|
48
|
+
}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import { HvyBaseParameterActionComponent } from '../base-parameter-action.component';
|
|
2
3
|
import { HypAction } from '../../../../model/procedure/hyp-action.interface';
|
|
4
|
+
import { PryDialogService } from '@provoly/dashboard';
|
|
5
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
6
|
+
import { ServiceService } from '../../../../store/service/service.service';
|
|
7
|
+
import { act } from '@ngrx/effects';
|
|
3
8
|
import * as i0 from "@angular/core";
|
|
4
9
|
export interface HypServiceAction extends HypAction {
|
|
5
10
|
name: string;
|
|
6
|
-
|
|
11
|
+
serviceExternalId: string;
|
|
7
12
|
}
|
|
8
13
|
export declare class HvyServiceActionDisplayComponent extends HvyBaseParameterActionComponent<HypServiceAction> {
|
|
9
|
-
|
|
14
|
+
private pryDialog;
|
|
15
|
+
private overlay;
|
|
16
|
+
private serviceService;
|
|
17
|
+
menuButton: ElementRef;
|
|
18
|
+
constructor(pryDialog: PryDialogService, overlay: Overlay, serviceService: ServiceService);
|
|
19
|
+
toggleModal(): void;
|
|
20
|
+
protected readonly act: typeof act;
|
|
10
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<HvyServiceActionDisplayComponent, never>;
|
|
11
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<HvyServiceActionDisplayComponent, "hvy-service-action-display", never, {}, {}, never, never, false, never>;
|
|
12
23
|
}
|
|
@@ -25,3 +25,4 @@ export * from './procedure-actions/action-parameters/email/email-action-paramete
|
|
|
25
25
|
export * from './procedure-actions/action-parameters/email/email-action-display.component';
|
|
26
26
|
export * from './procedure-actions/action-parameters/service/service-action-parameter.component';
|
|
27
27
|
export * from './procedure-actions/action-parameters/service/service-action-display.component';
|
|
28
|
+
export * from './procedure-actions/action-parameters/service/create-service.component';
|
|
@@ -24,27 +24,28 @@ import * as i19 from "./event/procedure-association-modal/procedure-association-
|
|
|
24
24
|
import * as i20 from "./procedure/model-detail/procedure-model-detail.component";
|
|
25
25
|
import * as i21 from "./event/filters/on/immediate/immediate-filters.component";
|
|
26
26
|
import * as i22 from "./general/procedure-actions/action-menu.component";
|
|
27
|
-
import * as i23 from "./general/procedure-actions/action-parameters/
|
|
28
|
-
import * as i24 from "./general/procedure-actions/action-parameters/
|
|
29
|
-
import * as i25 from "./general/procedure-actions/action-parameters/
|
|
30
|
-
import * as i26 from "./general/procedure-actions/action-parameters/other/other-action-
|
|
31
|
-
import * as i27 from "./general/procedure-actions/action-parameters/
|
|
32
|
-
import * as i28 from "./general/procedure-actions/action-parameters/
|
|
33
|
-
import * as i29 from "./general/procedure-actions/action-parameters/phone/phone-action-
|
|
34
|
-
import * as i30 from "./general/procedure-actions/action-parameters/
|
|
35
|
-
import * as i31 from "./general/procedure-actions/action-parameters/email/email-action-
|
|
36
|
-
import * as i32 from "./general/procedure-actions/action-parameters/
|
|
37
|
-
import * as i33 from "./general/procedure-actions/action-parameters/service/service-action-
|
|
38
|
-
import * as i34 from "./general/
|
|
39
|
-
import * as i35 from "./general/
|
|
40
|
-
import * as i36 from "./general/
|
|
41
|
-
import * as i37 from "
|
|
42
|
-
import * as i38 from "@ngrx/
|
|
43
|
-
import * as i39 from "@
|
|
44
|
-
import * as i40 from "@
|
|
45
|
-
import * as i41 from "@provoly/dashboard
|
|
46
|
-
import * as i42 from "@
|
|
47
|
-
import * as i43 from "@angular/
|
|
27
|
+
import * as i23 from "./general/procedure-actions/action-parameters/service/create-service.component";
|
|
28
|
+
import * as i24 from "./general/procedure-actions/action-parameters/action-parameter.component";
|
|
29
|
+
import * as i25 from "./general/procedure-actions/action-parameters/base-parameter-action.component";
|
|
30
|
+
import * as i26 from "./general/procedure-actions/action-parameters/other/other-action-parameter.component";
|
|
31
|
+
import * as i27 from "./general/procedure-actions/action-parameters/other/other-action-display.component";
|
|
32
|
+
import * as i28 from "./general/procedure-actions/action-parameters/no-param/no-params-action-display.component";
|
|
33
|
+
import * as i29 from "./general/procedure-actions/action-parameters/phone/phone-action-parameter.component";
|
|
34
|
+
import * as i30 from "./general/procedure-actions/action-parameters/phone/phone-action-display.component";
|
|
35
|
+
import * as i31 from "./general/procedure-actions/action-parameters/email/email-action-display.component";
|
|
36
|
+
import * as i32 from "./general/procedure-actions/action-parameters/email/email-action-parameter.component";
|
|
37
|
+
import * as i33 from "./general/procedure-actions/action-parameters/service/service-action-parameter.component";
|
|
38
|
+
import * as i34 from "./general/procedure-actions/action-parameters/service/service-action-display.component";
|
|
39
|
+
import * as i35 from "./general/display-locale-datetime/display-locale-datetime.pipe";
|
|
40
|
+
import * as i36 from "./general/comments/comments.component";
|
|
41
|
+
import * as i37 from "./general/procedure-actions/procedure-actions.component";
|
|
42
|
+
import * as i38 from "@ngrx/store";
|
|
43
|
+
import * as i39 from "@ngrx/effects";
|
|
44
|
+
import * as i40 from "@angular/common";
|
|
45
|
+
import * as i41 from "@provoly/dashboard";
|
|
46
|
+
import * as i42 from "@provoly/dashboard/components/checkbox";
|
|
47
|
+
import * as i43 from "@angular/forms";
|
|
48
|
+
import * as i44 from "@angular/router";
|
|
48
49
|
export declare class PvyHypervisorModule {
|
|
49
50
|
private baseConfig;
|
|
50
51
|
private store;
|
|
@@ -56,6 +57,6 @@ export declare class PvyHypervisorModule {
|
|
|
56
57
|
url: string;
|
|
57
58
|
}, store: Store<any>, i18nService: PryI18nService);
|
|
58
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
|
|
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.
|
|
60
|
+
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.HvyCreateServiceComponent, typeof i24.HvyActionParameterComponent, typeof i25.HvyBaseParameterActionComponent, typeof i26.HvyOtherActionParameterComponent, typeof i27.HvyOtherActionDisplayComponent, typeof i28.HvyNoParamsActionDisplayComponent, typeof i29.HvyPhoneActionParameterComponent, typeof i30.HvyPhoneActionDisplayComponent, typeof i31.HvyEmailActionDisplayComponent, typeof i32.HvyEmailActionParameterComponent, typeof i33.HvyServiceActionParameterComponent, typeof i34.HvyServiceActionDisplayComponent, typeof i35.DisplayLocaleDateTime, typeof i36.HvyCommentsComponent, typeof i37.ProcedureActionsComponent], [typeof i38.StoreFeatureModule, typeof i38.StoreFeatureModule, typeof i38.StoreFeatureModule, typeof i38.StoreFeatureModule, typeof i39.EffectsFeatureModule, typeof i40.NgForOf, typeof i40.AsyncPipe, typeof i41.PryI18nModule, typeof i41.PryCoreModule, typeof i40.NgStyle, typeof i42.PryCheckboxModule, typeof i43.FormsModule, typeof i44.RouterLink, typeof i41.PrySinceDateModule, typeof i40.DatePipe, typeof i41.PryIconModule, typeof i40.KeyValuePipe, typeof i41.PrySelectModule, typeof i40.JsonPipe, typeof i41.PryDatePickerModule, typeof i40.NgIf, typeof i41.PryCoreModule, typeof i41.PryI18nModule, typeof i43.FormsModule], [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.HvyCreateServiceComponent, typeof i24.HvyActionParameterComponent, typeof i25.HvyBaseParameterActionComponent, typeof i26.HvyOtherActionParameterComponent, typeof i27.HvyOtherActionDisplayComponent, typeof i28.HvyNoParamsActionDisplayComponent, typeof i29.HvyPhoneActionParameterComponent, typeof i30.HvyPhoneActionDisplayComponent, typeof i31.HvyEmailActionDisplayComponent, typeof i32.HvyEmailActionParameterComponent, typeof i33.HvyServiceActionParameterComponent, typeof i34.HvyServiceActionDisplayComponent, typeof i35.DisplayLocaleDateTime, typeof i36.HvyCommentsComponent]>;
|
|
60
61
|
static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
|
|
61
62
|
}
|
|
@@ -8,6 +8,7 @@ export declare class EquipmentService {
|
|
|
8
8
|
private store;
|
|
9
9
|
constructor(httpClient: HttpClient, store: Store<any>);
|
|
10
10
|
findByName(name: string): Observable<HypEquipment>;
|
|
11
|
+
list(): Observable<HypEquipment[]>;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<EquipmentService, never>;
|
|
12
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<EquipmentService>;
|
|
13
14
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Store } from '@ngrx/store';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface HypServiceType {
|
|
6
|
+
name: string;
|
|
7
|
+
domain: string;
|
|
8
|
+
gti: number;
|
|
9
|
+
gtr: number;
|
|
10
|
+
gtrp: number;
|
|
11
|
+
}
|
|
12
|
+
export interface HypService {
|
|
13
|
+
name: string;
|
|
14
|
+
equipment: string;
|
|
15
|
+
priority: string;
|
|
16
|
+
type: string;
|
|
17
|
+
description: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class ServiceService {
|
|
20
|
+
private httpClient;
|
|
21
|
+
private store;
|
|
22
|
+
constructor(httpClient: HttpClient, store: Store<any>);
|
|
23
|
+
types(): Observable<HypServiceType[]>;
|
|
24
|
+
create(service: HypService, actionId: string): Observable<string>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ServiceService>;
|
|
27
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* Atoms */
|
|
2
2
|
@use "./a-chip-status" as *;
|
|
3
|
+
@use "./a-button-link" as *;
|
|
3
4
|
|
|
4
5
|
/* Molecules */
|
|
5
6
|
@use "./m-hvy-event-summary-item" as *;
|
|
@@ -18,3 +19,4 @@
|
|
|
18
19
|
@use "./o-hvy-procedure-actions" as *;
|
|
19
20
|
@use "./o-hvy-action-menu" as *;
|
|
20
21
|
@use "./o-hvy-comments" as *;
|
|
22
|
+
@use "./o-hvy-create-service" as *;
|
|
@@ -0,0 +1,31 @@
|
|
|
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-create-service {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: toRem(10);
|
|
8
|
+
width: toRem(800);
|
|
9
|
+
padding: toRem(10) toRem(50);
|
|
10
|
+
|
|
11
|
+
h3, span {
|
|
12
|
+
margin: 0 auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__hours {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
gap: toRem(10);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__priority-nature {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
gap: toRem(10);
|
|
26
|
+
|
|
27
|
+
> div {
|
|
28
|
+
flex: 1 1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|