@provoly/hypervisor 0.0.29 → 0.0.31
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/public-api.mjs +3 -1
- package/esm2022/src/lib/event/detail/event-detail.component.mjs +1 -1
- package/esm2022/src/lib/event/list/event-column-order.component.mjs +23 -0
- package/esm2022/src/lib/event/list/event-list.component.mjs +19 -24
- package/esm2022/src/lib/event/procedure-association-modal/procedure-association-modal.component.mjs +60 -0
- package/esm2022/src/lib/event/public-api.mjs +3 -1
- package/esm2022/src/lib/general/column-order/column-order.component.mjs +4 -9
- package/esm2022/src/lib/general/i18n/en.translations.mjs +21 -3
- package/esm2022/src/lib/general/i18n/fr.translations.mjs +21 -3
- package/esm2022/src/lib/general/infiniteScroll.service.mjs +26 -0
- package/esm2022/src/lib/hypervisor.module.mjs +28 -30
- package/esm2022/src/lib/model/procedure/hyp-action.interface.mjs +2 -0
- package/esm2022/src/lib/model/procedure/hyp-procedure-model.interface.mjs +2 -0
- package/esm2022/src/lib/model/procedure/hyp-procedure.interface.mjs +6 -0
- package/esm2022/src/lib/model/public-api.mjs +4 -2
- package/esm2022/src/lib/procedure/list/procedure-column-order.component.mjs +24 -0
- package/esm2022/src/lib/procedure/list/procedure-list.component.mjs +57 -0
- package/esm2022/src/lib/procedure/public-api.mjs +3 -0
- package/esm2022/src/lib/store/event/event.actions.mjs +4 -2
- package/esm2022/src/lib/store/event/event.effects.mjs +5 -2
- package/esm2022/src/lib/store/event/event.reducer.mjs +1 -1
- package/esm2022/src/lib/store/event/event.selectors.mjs +3 -1
- package/esm2022/src/lib/store/event/event.service.mjs +7 -2
- package/esm2022/src/lib/store/procedure/procedure.actions.mjs +10 -0
- package/esm2022/src/lib/store/procedure/procedure.effects.mjs +25 -0
- package/esm2022/src/lib/store/procedure/procedure.reducer.mjs +37 -0
- package/esm2022/src/lib/store/procedure/procedure.selectors.mjs +17 -0
- package/esm2022/src/lib/store/procedure/procedure.service.mjs +49 -0
- package/esm2022/src/lib/store/procedure/public-api.mjs +6 -0
- package/fesm2022/provoly-hypervisor.mjs +376 -88
- package/fesm2022/provoly-hypervisor.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/lib/event/detail/event-detail.component.d.ts +2 -2
- package/src/lib/event/list/event-column-order.component.d.ts +9 -0
- package/src/lib/event/list/event-list.component.d.ts +4 -5
- package/src/lib/event/procedure-association-modal/procedure-association-modal.component.d.ts +27 -0
- package/src/lib/event/public-api.d.ts +2 -0
- package/src/lib/general/column-order/column-order.component.d.ts +1 -1
- package/src/lib/general/i18n/en.translations.d.ts +18 -0
- package/src/lib/general/i18n/fr.translations.d.ts +18 -0
- package/src/lib/general/infiniteScroll.service.d.ts +13 -0
- package/src/lib/hypervisor.module.d.ts +25 -21
- package/src/lib/model/procedure/hyp-procedure-model.interface.d.ts +11 -0
- package/src/lib/model/{hyp-procedure.interface.d.ts → procedure/hyp-procedure.interface.d.ts} +1 -1
- package/src/lib/model/public-api.d.ts +3 -1
- package/src/lib/procedure/list/procedure-column-order.component.d.ts +9 -0
- package/src/lib/procedure/list/procedure-list.component.d.ts +30 -0
- package/src/lib/procedure/public-api.d.ts +2 -0
- package/src/lib/store/event/event.actions.d.ts +11 -1
- package/src/lib/store/event/event.effects.d.ts +8 -0
- package/src/lib/store/event/event.reducer.d.ts +1 -1
- package/src/lib/store/event/event.selectors.d.ts +1 -0
- package/src/lib/store/event/event.service.d.ts +2 -1
- package/src/lib/store/procedure/procedure.actions.d.ts +37 -0
- package/src/lib/store/procedure/procedure.effects.d.ts +21 -0
- package/src/lib/store/procedure/procedure.reducer.d.ts +15 -0
- package/src/lib/store/procedure/procedure.selectors.d.ts +15 -0
- package/src/lib/store/procedure/procedure.service.d.ts +17 -0
- package/src/lib/store/procedure/public-api.d.ts +5 -0
- package/styles/components/_index.scss +2 -0
- package/styles/components/_m-hvy-procedure-association-modal.scss +34 -0
- package/styles/components/_o-hvy-column-order.scss +1 -0
- package/styles/components/_o-hvy-events-table.scss +1 -4
- package/styles/components/_o-hvy-procedure-list.scss +15 -0
- package/esm2022/src/lib/model/hyp-action.interface.mjs +0 -2
- package/esm2022/src/lib/model/hyp-procedure.interface.mjs +0 -6
- /package/src/lib/model/{hyp-action.interface.d.ts → procedure/hyp-action.interface.d.ts} +0 -0
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './src/lib/event/public-api';
|
|
2
2
|
export * from './src/lib/event-summary/public-api';
|
|
3
|
+
export * from './src/lib/procedure/public-api';
|
|
3
4
|
export * from './src/lib/general/public-api';
|
|
4
5
|
export * from './src/lib/model/public-api';
|
|
5
6
|
export * from './src/lib/hypervisor.module';
|
|
@@ -7,3 +8,4 @@ export * from './src/lib/store/event/public-api';
|
|
|
7
8
|
export * from './src/lib/store/event-summary/public-api';
|
|
8
9
|
export * from './src/lib/store/equipment/public-api';
|
|
9
10
|
export * from './src/lib/store/hypervisor/public-api';
|
|
11
|
+
export * from './src/lib/store/procedure/public-api';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EventEmitter, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { HypProcedure } from '../../model/hyp-procedure.interface';
|
|
2
|
+
import { HypProcedure } from '../../model/procedure/hyp-procedure.interface';
|
|
3
3
|
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
4
4
|
import { SubscriptionnerDirective } from '@provoly/dashboard';
|
|
5
5
|
import { EquipmentService } from '../../store/equipment/equipment.service';
|
|
6
6
|
import { Store } from '@ngrx/store';
|
|
7
|
-
import { HypAction } from '../../model/hyp-action.interface';
|
|
8
7
|
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
8
|
+
import { HypAction } from '../../model/procedure/hyp-action.interface';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class EventDetailComponent extends SubscriptionnerDirective {
|
|
11
11
|
private equipmentService;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Store } from '@ngrx/store';
|
|
2
|
+
import { ColumnOrderComponent } from '../../general/column-order/column-order.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class EventColumnOrderComponent extends ColumnOrderComponent {
|
|
5
|
+
constructor(store: Store);
|
|
6
|
+
sort(order: string): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventColumnOrderComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EventColumnOrderComponent, "hvy-event-column-order", never, {}, {}, never, ["*"], false, never>;
|
|
9
|
+
}
|
|
@@ -5,17 +5,16 @@ import { SubscriptionnerDirective } from '@provoly/dashboard';
|
|
|
5
5
|
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
6
6
|
import { HypEventSummary } from '../../model/event/hyp-event-summary.interface';
|
|
7
7
|
import { Router } from '@angular/router';
|
|
8
|
+
import { InfiniteScrollService } from '../../general/infiniteScroll.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare const EVENT_LINK: {
|
|
10
11
|
fn: (event: HypEventDetails | HypEventSummary, store: Store<any>) => string[];
|
|
11
12
|
};
|
|
12
|
-
export declare const SCROLL_PX_TO_TRIGGER_FETCH_PAGE: {
|
|
13
|
-
value: number;
|
|
14
|
-
};
|
|
15
13
|
export declare class EventListComponent extends SubscriptionnerDirective implements AfterViewInit {
|
|
16
14
|
private store;
|
|
17
15
|
private el;
|
|
18
16
|
private router;
|
|
17
|
+
private scroll;
|
|
19
18
|
events$: Observable<HypEventDetails[]>;
|
|
20
19
|
selectedIds$: Observable<string[]>;
|
|
21
20
|
EVENT_LINK: {
|
|
@@ -24,12 +23,12 @@ export declare class EventListComponent extends SubscriptionnerDirective impleme
|
|
|
24
23
|
_store: Store<any>;
|
|
25
24
|
allSelected$: Observable<boolean>;
|
|
26
25
|
_inhibate: boolean;
|
|
27
|
-
constructor(store: Store<any>, el: ElementRef, router: Router);
|
|
26
|
+
constructor(store: Store<any>, el: ElementRef, router: Router, scroll: InfiniteScrollService);
|
|
28
27
|
ngAfterViewInit(): void;
|
|
29
28
|
select(event: HypEventDetails, $event: MouseEvent): void;
|
|
30
29
|
selectAll($event: any): void;
|
|
31
30
|
inhibate(): void;
|
|
32
|
-
|
|
31
|
+
goTo(event: HypEventDetails): Promise<boolean>;
|
|
33
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventListComponent, never>;
|
|
34
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<EventListComponent, "hvy-event-list", never, {}, {}, never, ["*"], false, never>;
|
|
35
34
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Observable, Subject } from 'rxjs';
|
|
2
|
+
import { Store } from '@ngrx/store';
|
|
3
|
+
import { PryDialogRef, SubscriptionnerDirective } from '@provoly/dashboard';
|
|
4
|
+
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
5
|
+
import { HypProcedureModel } from '../../model/procedure/hyp-procedure-model.interface';
|
|
6
|
+
import { ProcedureService } from '../../store/procedure/procedure.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ProcedureAssociationModalComponent extends SubscriptionnerDirective {
|
|
9
|
+
private store;
|
|
10
|
+
private procedureService;
|
|
11
|
+
private dialog;
|
|
12
|
+
selectedEvents$: Observable<HypEventDetails[]>;
|
|
13
|
+
selectedDomain?: string;
|
|
14
|
+
onDomainSelect$: Subject<void>;
|
|
15
|
+
procedureSelectValue?: string | HypProcedureModel;
|
|
16
|
+
onProcedureSearch$: Subject<void>;
|
|
17
|
+
procedures$: Observable<HypProcedureModel[]>;
|
|
18
|
+
constructor(store: Store, procedureService: ProcedureService, dialog: PryDialogRef<ProcedureAssociationModalComponent>);
|
|
19
|
+
onDomainChange(): void;
|
|
20
|
+
selectedProcedureChange($event: string | HypProcedureModel): void;
|
|
21
|
+
associateProcedure(): void;
|
|
22
|
+
isProcedureSelected(): boolean;
|
|
23
|
+
closeModal(): void;
|
|
24
|
+
protected readonly DOMAINS: string[];
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProcedureAssociationModalComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureAssociationModalComponent, "hvy-procedure-association-modal", never, {}, {}, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './detail/event-detail.component';
|
|
2
2
|
export * from './list/event-list.component';
|
|
3
|
+
export * from './list/event-column-order.component';
|
|
3
4
|
export * from './filters/event-filters.component';
|
|
4
5
|
export * from './filters/date/date-filter.component';
|
|
5
6
|
export * from './filters/choice/choice-filter.component';
|
|
7
|
+
export * from './procedure-association-modal/procedure-association-modal.component';
|
|
@@ -2,7 +2,7 @@ import { Store } from '@ngrx/store';
|
|
|
2
2
|
import { SubscriptionnerDirective } from '@provoly/dashboard';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ColumnOrderComponent extends SubscriptionnerDirective {
|
|
5
|
-
|
|
5
|
+
protected store: Store;
|
|
6
6
|
field: string;
|
|
7
7
|
sortValue: {
|
|
8
8
|
field: string;
|
|
@@ -105,6 +105,23 @@ export declare const enTranslations: {
|
|
|
105
105
|
procedure: {
|
|
106
106
|
name: string;
|
|
107
107
|
progress: string;
|
|
108
|
+
useCount: string;
|
|
109
|
+
title: string;
|
|
110
|
+
category: string;
|
|
111
|
+
author: string;
|
|
112
|
+
id: string;
|
|
113
|
+
missingProperty: string;
|
|
114
|
+
noContent: string;
|
|
115
|
+
domain: string;
|
|
116
|
+
};
|
|
117
|
+
associationModal: {
|
|
118
|
+
title: string;
|
|
119
|
+
description: string;
|
|
120
|
+
linkedEvents: string;
|
|
121
|
+
categoryFilter: string;
|
|
122
|
+
searchProcedure: string;
|
|
123
|
+
domainPlaceholder: string;
|
|
124
|
+
procedurePlaceholder: string;
|
|
108
125
|
};
|
|
109
126
|
action: {
|
|
110
127
|
consult: string;
|
|
@@ -114,6 +131,7 @@ export declare const enTranslations: {
|
|
|
114
131
|
associate: string;
|
|
115
132
|
validate: string;
|
|
116
133
|
cancel: string;
|
|
134
|
+
search: string;
|
|
117
135
|
};
|
|
118
136
|
};
|
|
119
137
|
};
|
|
@@ -105,6 +105,23 @@ export declare const frTranslations: {
|
|
|
105
105
|
procedure: {
|
|
106
106
|
name: string;
|
|
107
107
|
progress: string;
|
|
108
|
+
useCount: string;
|
|
109
|
+
title: string;
|
|
110
|
+
category: string;
|
|
111
|
+
author: string;
|
|
112
|
+
id: string;
|
|
113
|
+
missingProperty: string;
|
|
114
|
+
noContent: string;
|
|
115
|
+
domain: string;
|
|
116
|
+
};
|
|
117
|
+
associationModal: {
|
|
118
|
+
title: string;
|
|
119
|
+
description: string;
|
|
120
|
+
linkedEvents: string;
|
|
121
|
+
categoryFilter: string;
|
|
122
|
+
searchProcedure: string;
|
|
123
|
+
domainPlaceholder: string;
|
|
124
|
+
procedurePlaceholder: string;
|
|
108
125
|
};
|
|
109
126
|
action: {
|
|
110
127
|
consult: string;
|
|
@@ -114,6 +131,7 @@ export declare const frTranslations: {
|
|
|
114
131
|
associate: string;
|
|
115
132
|
validate: string;
|
|
116
133
|
cancel: string;
|
|
134
|
+
search: string;
|
|
117
135
|
};
|
|
118
136
|
};
|
|
119
137
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { MemoizedSelector, Store } from '@ngrx/store';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const SCROLL_PX_TO_TRIGGER_FETCH_PAGE: {
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
export declare class InfiniteScrollService {
|
|
8
|
+
private store;
|
|
9
|
+
constructor(store: Store<any>);
|
|
10
|
+
isEndOfPage: (scrollContainer: HTMLElement, noMoreSelector: MemoizedSelector<object, boolean>) => Observable<[number, boolean]>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfiniteScrollService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InfiniteScrollService>;
|
|
13
|
+
}
|
|
@@ -4,26 +4,30 @@ import { PryI18nService } from '@provoly/dashboard';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "./event/detail/event-detail.component";
|
|
6
6
|
import * as i2 from "./event/list/event-list.component";
|
|
7
|
-
import * as i3 from "./
|
|
8
|
-
import * as i4 from "./
|
|
9
|
-
import * as i5 from "./event-summary/
|
|
10
|
-
import * as i6 from "./event-summary/
|
|
11
|
-
import * as i7 from "./
|
|
12
|
-
import * as i8 from "./general/
|
|
13
|
-
import * as i9 from "./general/
|
|
14
|
-
import * as i10 from "./general/
|
|
15
|
-
import * as i11 from "./general/
|
|
16
|
-
import * as i12 from "./
|
|
17
|
-
import * as i13 from "./event/filters/
|
|
18
|
-
import * as i14 from "./event/filters/
|
|
19
|
-
import * as i15 from "
|
|
20
|
-
import * as i16 from "
|
|
21
|
-
import * as i17 from "
|
|
22
|
-
import * as i18 from "
|
|
23
|
-
import * as i19 from "@
|
|
24
|
-
import * as i20 from "@
|
|
25
|
-
import * as i21 from "@angular/
|
|
26
|
-
import * as i22 from "@provoly/dashboard
|
|
7
|
+
import * as i3 from "./event/list/event-column-order.component";
|
|
8
|
+
import * as i4 from "./general/icon-display/icon-display.component";
|
|
9
|
+
import * as i5 from "./event-summary/item/event-summary-item.component";
|
|
10
|
+
import * as i6 from "./event-summary/list/event-summary-list.component";
|
|
11
|
+
import * as i7 from "./event-summary/page/event-summary-page.component";
|
|
12
|
+
import * as i8 from "./general/icon-pipe/event-icon.pipe";
|
|
13
|
+
import * as i9 from "./general/for-datetime-local-pipe/for-datetime-local.pipe";
|
|
14
|
+
import * as i10 from "./general/status-display/status-display.component";
|
|
15
|
+
import * as i11 from "./general/progress-display/progress-display.component";
|
|
16
|
+
import * as i12 from "./general/column-order/column-order.component";
|
|
17
|
+
import * as i13 from "./event/filters/event-filters.component";
|
|
18
|
+
import * as i14 from "./event/filters/date/date-filter.component";
|
|
19
|
+
import * as i15 from "./event/filters/choice/choice-filter.component";
|
|
20
|
+
import * as i16 from "./procedure/list/procedure-list.component";
|
|
21
|
+
import * as i17 from "./procedure/list/procedure-column-order.component";
|
|
22
|
+
import * as i18 from "./event/procedure-association-modal/procedure-association-modal.component";
|
|
23
|
+
import * as i19 from "@ngrx/store";
|
|
24
|
+
import * as i20 from "@ngrx/effects";
|
|
25
|
+
import * as i21 from "@angular/common";
|
|
26
|
+
import * as i22 from "@provoly/dashboard";
|
|
27
|
+
import * as i23 from "@provoly/dashboard/components/checkbox";
|
|
28
|
+
import * as i24 from "@angular/forms";
|
|
29
|
+
import * as i25 from "@angular/router";
|
|
30
|
+
import * as i26 from "@provoly/dashboard/components/sinceDate";
|
|
27
31
|
export declare class PvyHypervisorModule {
|
|
28
32
|
private baseConfig;
|
|
29
33
|
private store;
|
|
@@ -35,6 +39,6 @@ export declare class PvyHypervisorModule {
|
|
|
35
39
|
url: string;
|
|
36
40
|
}, store: Store<any>, i18nService: PryI18nService);
|
|
37
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
|
|
38
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.
|
|
42
|
+
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.ChoiceFilterComponent, typeof i16.ProcedureListComponent, typeof i17.ProcedureColumnOrderComponent, typeof i18.ProcedureAssociationModalComponent], [typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i20.EffectsFeatureModule, typeof i21.NgForOf, typeof i21.AsyncPipe, typeof i22.PryI18nModule, typeof i22.PryCoreModule, typeof i21.NgStyle, typeof i23.PryCheckboxModule, typeof i24.FormsModule, typeof i25.RouterLink, typeof i26.PrySinceDateModule, typeof i21.DatePipe, typeof i22.PryIconModule, typeof i21.KeyValuePipe, typeof i22.PrySelectModule, typeof i21.JsonPipe, typeof i22.PryDatePickerModule], [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.ChoiceFilterComponent, typeof i16.ProcedureListComponent, typeof i17.ProcedureColumnOrderComponent, typeof i18.ProcedureAssociationModalComponent]>;
|
|
39
43
|
static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
|
|
40
44
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HypAction } from './hyp-action.interface';
|
|
2
|
+
export interface HypProcedureModel {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
creationDate: string;
|
|
6
|
+
lastModificationDate: string;
|
|
7
|
+
creator: string;
|
|
8
|
+
actions: HypAction[];
|
|
9
|
+
useCount: number;
|
|
10
|
+
domain: string;
|
|
11
|
+
}
|
|
@@ -5,6 +5,8 @@ export * from './event/hyp-event-detail.interface';
|
|
|
5
5
|
export * from './event/hyp-event-status.type';
|
|
6
6
|
export * from './event/hyp-event-summary.interface';
|
|
7
7
|
export * from './event/hyp-event-type';
|
|
8
|
-
export * from './hyp-procedure.interface';
|
|
8
|
+
export * from './procedure/hyp-procedure.interface';
|
|
9
|
+
export * from './procedure/hyp-procedure-model.interface';
|
|
10
|
+
export * from './procedure/hyp-action.interface';
|
|
9
11
|
export * from './hyp-equipment.interface';
|
|
10
12
|
export * from './domains.constant';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Store } from '@ngrx/store';
|
|
2
|
+
import { ColumnOrderComponent } from '../../general/column-order/column-order.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ProcedureColumnOrderComponent extends ColumnOrderComponent {
|
|
5
|
+
constructor(store: Store);
|
|
6
|
+
sort(order: string): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProcedureColumnOrderComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureColumnOrderComponent, "hvy-procedure-column-order", never, {}, {}, never, ["*"], false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { Store } from '@ngrx/store';
|
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
|
5
|
+
import { HypProcedureModel } from '../../model/procedure/hyp-procedure-model.interface';
|
|
6
|
+
import { SubscriptionnerDirective } from '@provoly/dashboard';
|
|
7
|
+
import { InfiniteScrollService } from '../../general/infiniteScroll.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare const PROCEDURE_LINK: {
|
|
10
|
+
fn: (procedure: HypProcedureModel, store: Store<any>) => string[];
|
|
11
|
+
};
|
|
12
|
+
export declare class ProcedureListComponent extends SubscriptionnerDirective implements AfterViewInit, OnDestroy {
|
|
13
|
+
protected store: Store<any>;
|
|
14
|
+
private el;
|
|
15
|
+
private router;
|
|
16
|
+
private scroll;
|
|
17
|
+
procedures$: Observable<HypProcedureModel[]>;
|
|
18
|
+
PROCEDURE_LINK: {
|
|
19
|
+
fn: (procedure: HypProcedureModel, store: Store<any>) => string[];
|
|
20
|
+
};
|
|
21
|
+
search: string;
|
|
22
|
+
search$: Subject<string>;
|
|
23
|
+
constructor(store: Store<any>, el: ElementRef, router: Router, scroll: InfiniteScrollService);
|
|
24
|
+
ngAfterViewInit(): void;
|
|
25
|
+
emitSearch(): void;
|
|
26
|
+
goTo(procedure: HypProcedureModel): Promise<boolean>;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProcedureListComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureListComponent, "hvy-procedure-list", never, {}, {}, never, ["*"], false, never>;
|
|
30
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
2
|
-
import { HypProcedure } from '../../model/hyp-procedure.interface';
|
|
2
|
+
import { HypProcedure } from '../../model/procedure/hyp-procedure.interface';
|
|
3
3
|
export declare const EventActions: {
|
|
4
4
|
load: import("@ngrx/store").ActionCreator<"[Event] Load Events", (props: {
|
|
5
5
|
next?: boolean | undefined;
|
|
@@ -104,4 +104,14 @@ export declare const EventActions: {
|
|
|
104
104
|
field: string;
|
|
105
105
|
order: string;
|
|
106
106
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] set log event sorting">>;
|
|
107
|
+
associateProcedure: import("@ngrx/store").ActionCreator<"[Event] Associate Procedure to Event", (props: {
|
|
108
|
+
procedureId: string;
|
|
109
|
+
}) => {
|
|
110
|
+
procedureId: string;
|
|
111
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Associate Procedure to Event">>;
|
|
112
|
+
associateProcedureFailure: import("@ngrx/store").ActionCreator<"[Event] Associate Procedure to Event Failure", (props: {
|
|
113
|
+
error: string;
|
|
114
|
+
}) => {
|
|
115
|
+
error: string;
|
|
116
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Associate Procedure to Event Failure">>;
|
|
107
117
|
};
|
|
@@ -42,6 +42,14 @@ export declare class EventEffects {
|
|
|
42
42
|
sort$: import("rxjs").Observable<{
|
|
43
43
|
next?: boolean | undefined;
|
|
44
44
|
} & import("@ngrx/store/src/models").TypedAction<"[Event] Load Events">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
45
|
+
filter$: import("rxjs").Observable<{
|
|
46
|
+
next?: boolean | undefined;
|
|
47
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Load Events">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
48
|
+
associateProcedure$: import("rxjs").Observable<({
|
|
49
|
+
next?: boolean | undefined;
|
|
50
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Load Events">) | ({
|
|
51
|
+
error: string;
|
|
52
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Event] Associate Procedure to Event Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
45
53
|
constructor(actions$: Actions, eventService: EventService, store: Store);
|
|
46
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventEffects, never>;
|
|
47
55
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventEffects>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Action } from '@ngrx/store';
|
|
2
2
|
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
3
|
-
import { HypProcedure } from '../../model/hyp-procedure.interface';
|
|
4
3
|
import { HvyFilterParams } from '../../event/filters/hvy-unit-filter.class';
|
|
4
|
+
import { HypProcedure } from '../../model/procedure/hyp-procedure.interface';
|
|
5
5
|
export declare const eventFeatureKey = "@hvy/event";
|
|
6
6
|
export interface EventState {
|
|
7
7
|
events: HypEventDetails[];
|
|
@@ -3,6 +3,7 @@ export declare const EventSelectors: {
|
|
|
3
3
|
feature: import("@ngrx/store").MemoizedSelector<object, EventState, import("@ngrx/store").DefaultProjectorFn<EventState>>;
|
|
4
4
|
events: import("@ngrx/store").MemoizedSelector<object, import("@provoly/hypervisor").HypEventDetails[], (s1: EventState) => import("@provoly/hypervisor").HypEventDetails[]>;
|
|
5
5
|
selectedIds: import("@ngrx/store").MemoizedSelector<object, string[], (s1: EventState) => string[]>;
|
|
6
|
+
selectedEvents: import("@ngrx/store").MemoizedSelector<object, import("@provoly/hypervisor").HypEventDetails[], (s1: EventState) => import("@provoly/hypervisor").HypEventDetails[]>;
|
|
6
7
|
loading: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EventState) => boolean>;
|
|
7
8
|
filters: import("@ngrx/store").MemoizedSelector<object, import("../../event/filters/hvy-unit-filter.class").HvyFilterParams, (s1: EventState) => import("../../event/filters/hvy-unit-filter.class").HvyFilterParams>;
|
|
8
9
|
details: import("@ngrx/store").MemoizedSelector<object, {
|
|
@@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
4
|
import { HypEventDetails } from '../../model/event/hyp-event-detail.interface';
|
|
5
|
-
import { HypProcedure } from '../../model/hyp-procedure.interface';
|
|
5
|
+
import { HypProcedure } from '../../model/procedure/hyp-procedure.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare const PAGE_SIZE_FETCH: {
|
|
8
8
|
value: number;
|
|
@@ -22,6 +22,7 @@ export declare class EventService {
|
|
|
22
22
|
saveProcedure(procedure: HypProcedure): Observable<void>;
|
|
23
23
|
status(event: HypEventDetails, status: string, comment: string): Observable<void>;
|
|
24
24
|
statusProcedure(procedure: HypProcedure, status: string, comment: string): Observable<void>;
|
|
25
|
+
associateProcedure(procedureId: string): Observable<void>;
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
|
|
26
27
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
|
|
27
28
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HypProcedureModel } from '../../model/procedure/hyp-procedure-model.interface';
|
|
2
|
+
export declare const ProcedureActions: {
|
|
3
|
+
load: import("@ngrx/store").ActionCreator<"[Procedure] Load Procedures", (props: {
|
|
4
|
+
next?: boolean | undefined;
|
|
5
|
+
}) => {
|
|
6
|
+
next?: boolean | undefined;
|
|
7
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Procedure] Load Procedures">>;
|
|
8
|
+
loadSuccess: import("@ngrx/store").ActionCreator<"[Procedure] (bus) Load Procedure Success", (props: {
|
|
9
|
+
procedures: HypProcedureModel[];
|
|
10
|
+
startingFrom?: number | undefined;
|
|
11
|
+
}) => {
|
|
12
|
+
procedures: HypProcedureModel[];
|
|
13
|
+
startingFrom?: number | undefined;
|
|
14
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Procedure] (bus) Load Procedure Success">>;
|
|
15
|
+
loadFailure: import("@ngrx/store").ActionCreator<"[Procedure] Load Procedures Failure", (props: {
|
|
16
|
+
error: string;
|
|
17
|
+
}) => {
|
|
18
|
+
error: string;
|
|
19
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Procedure] Load Procedures Failure">>;
|
|
20
|
+
sort: import("@ngrx/store").ActionCreator<"[Procedure] Set Procedure List Sorting", (props: {
|
|
21
|
+
field: string;
|
|
22
|
+
order: string;
|
|
23
|
+
}) => {
|
|
24
|
+
field: string;
|
|
25
|
+
order: string;
|
|
26
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Procedure] Set Procedure List Sorting">>;
|
|
27
|
+
search: import("@ngrx/store").ActionCreator<"[Procedure] Set Search Query Value", (props: {
|
|
28
|
+
search?: string | undefined;
|
|
29
|
+
}) => {
|
|
30
|
+
search?: string | undefined;
|
|
31
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Procedure] Set Search Query Value">>;
|
|
32
|
+
setCategory: import("@ngrx/store").ActionCreator<"[Procedure] Set Category Value", (props: {
|
|
33
|
+
category?: string | undefined;
|
|
34
|
+
}) => {
|
|
35
|
+
category?: string | undefined;
|
|
36
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Procedure] Set Category Value">>;
|
|
37
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Actions } from '@ngrx/effects';
|
|
2
|
+
import { Store } from '@ngrx/store';
|
|
3
|
+
import { ProcedureService } from './procedure.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ProcedureEffects {
|
|
6
|
+
private actions$;
|
|
7
|
+
private procedureService;
|
|
8
|
+
private store;
|
|
9
|
+
loadProcedures$: import("rxjs").Observable<({
|
|
10
|
+
procedures: import("@provoly/hypervisor").HypProcedureModel[];
|
|
11
|
+
startingFrom?: number | undefined;
|
|
12
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Procedure] (bus) Load Procedure Success">) | ({
|
|
13
|
+
error: string;
|
|
14
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Procedure] Load Procedures Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
15
|
+
sort$: import("rxjs").Observable<{
|
|
16
|
+
next?: boolean | undefined;
|
|
17
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Procedure] Load Procedures">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
18
|
+
constructor(actions$: Actions, procedureService: ProcedureService, store: Store);
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProcedureEffects, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProcedureEffects>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action } from '@ngrx/store';
|
|
2
|
+
import { HypProcedureModel } from '../../model/procedure/hyp-procedure-model.interface';
|
|
3
|
+
export declare const procedureFeatureKey = "@hvy/procedure";
|
|
4
|
+
export interface ProcedureState {
|
|
5
|
+
procedures: HypProcedureModel[];
|
|
6
|
+
noMoreProcedures: boolean;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
search?: string;
|
|
9
|
+
sort?: {
|
|
10
|
+
field: string;
|
|
11
|
+
order: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const procedureInitialState: ProcedureState;
|
|
15
|
+
export declare function procedureReducer(state: ProcedureState, action: Action): ProcedureState;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProcedureState } from './procedure.reducer';
|
|
2
|
+
export declare const ProcedureSelectors: {
|
|
3
|
+
feature: import("@ngrx/store").MemoizedSelector<object, ProcedureState, import("@ngrx/store").DefaultProjectorFn<ProcedureState>>;
|
|
4
|
+
procedures: import("@ngrx/store").MemoizedSelector<object, import("@provoly/hypervisor").HypProcedureModel[], (s1: ProcedureState) => import("@provoly/hypervisor").HypProcedureModel[]>;
|
|
5
|
+
loading: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: ProcedureState) => boolean>;
|
|
6
|
+
noMoreProcedures: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: ProcedureState) => boolean>;
|
|
7
|
+
search: import("@ngrx/store").MemoizedSelector<object, string | undefined, (s1: ProcedureState) => string | undefined>;
|
|
8
|
+
sort: import("@ngrx/store").MemoizedSelector<object, {
|
|
9
|
+
field: string;
|
|
10
|
+
order: string;
|
|
11
|
+
} | undefined, (s1: ProcedureState) => {
|
|
12
|
+
field: string;
|
|
13
|
+
order: string;
|
|
14
|
+
} | undefined>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Store } from '@ngrx/store';
|
|
4
|
+
import { HypProcedureModel } from '../../model/procedure/hyp-procedure-model.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const PROCEDURE_PAGE_SIZE_FETCH: {
|
|
7
|
+
value: number;
|
|
8
|
+
};
|
|
9
|
+
export declare class ProcedureService {
|
|
10
|
+
private httpClient;
|
|
11
|
+
private store;
|
|
12
|
+
constructor(httpClient: HttpClient, store: Store<any>);
|
|
13
|
+
list(startWith?: number, pageSize?: number): Observable<HypProcedureModel[]>;
|
|
14
|
+
getTop10ByUsage(domain?: string, nameSearch?: string): Observable<HypProcedureModel[]>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProcedureService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProcedureService>;
|
|
17
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/* Molecules */
|
|
5
5
|
@use "./m-hvy-event-summary-item" as *;
|
|
6
|
+
@use "./m-hvy-procedure-association-modal" as *;
|
|
6
7
|
|
|
7
8
|
/* Organisms */
|
|
8
9
|
@use "./o-hvy-event-detail" as *;
|
|
@@ -12,3 +13,4 @@
|
|
|
12
13
|
@use "./o-progressbar" as *;
|
|
13
14
|
@use "./o-hvy-column-order" as *;
|
|
14
15
|
@use "./o-hvy-event-filters" as *;
|
|
16
|
+
@use "./o-hvy-procedure-list" as *;
|
|
@@ -0,0 +1,34 @@
|
|
|
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-association-modal {
|
|
5
|
+
&__description {
|
|
6
|
+
margin: 0 toRem(100) toRem(25);
|
|
7
|
+
text-align: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&__content {
|
|
11
|
+
width: 100%;
|
|
12
|
+
gap: toRem(10);
|
|
13
|
+
|
|
14
|
+
& > div {
|
|
15
|
+
flex: 1;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__events {
|
|
20
|
+
flex: 1;
|
|
21
|
+
margin-top: toRem(18);
|
|
22
|
+
padding: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__event {
|
|
26
|
+
padding: toRem(2) 0;
|
|
27
|
+
margin-bottom: toRem(10);
|
|
28
|
+
gap: toRem(10);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__event-detail {
|
|
32
|
+
gap: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|