@provoly/hypervisor 0.0.1 → 0.0.3

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 (54) hide show
  1. package/esm2022/provoly-hypervisor.mjs +1 -1
  2. package/esm2022/public-api.mjs +5 -3
  3. package/esm2022/src/lib/event/detail/event-detail.component.mjs +19 -0
  4. package/esm2022/src/lib/event/icon-pipe/event-icon.pipe.mjs +25 -0
  5. package/esm2022/src/lib/event/list/event-list.component.mjs +22 -0
  6. package/esm2022/src/lib/event/public-api.mjs +4 -0
  7. package/esm2022/src/lib/general/base.token.mjs +3 -0
  8. package/esm2022/src/lib/general/i18n/en.translations.mjs +22 -0
  9. package/esm2022/src/lib/general/i18n/fr.translations.mjs +22 -0
  10. package/esm2022/src/lib/general/public-api.mjs +4 -0
  11. package/esm2022/src/lib/hypervisor.module.mjs +86 -0
  12. package/esm2022/src/lib/model/hyp-event.interface.mjs +2 -0
  13. package/esm2022/src/lib/model/hyp-process.interface.mjs +2 -0
  14. package/esm2022/src/lib/model/public-api.mjs +6 -0
  15. package/esm2022/src/lib/store/event/event.actions.mjs +8 -0
  16. package/esm2022/src/lib/store/event/event.effects.mjs +20 -0
  17. package/esm2022/src/lib/store/event/event.reducer.mjs +27 -0
  18. package/esm2022/src/lib/store/event/event.selectors.mjs +13 -0
  19. package/esm2022/src/lib/store/event/event.service.mjs +36 -0
  20. package/esm2022/src/lib/store/hypervisor/hypervisor.actions.mjs +5 -0
  21. package/esm2022/src/lib/store/hypervisor/hypervisor.effects.mjs +16 -0
  22. package/esm2022/src/lib/store/hypervisor/hypervisor.reducer.mjs +14 -0
  23. package/esm2022/src/lib/store/hypervisor/hypervisor.selectors.mjs +9 -0
  24. package/esm2022/src/lib/store/hypervisor/hypervisor.service.mjs +19 -0
  25. package/fesm2022/provoly-hypervisor.mjs +303 -25
  26. package/fesm2022/provoly-hypervisor.mjs.map +1 -1
  27. package/package.json +11 -11
  28. package/public-api.d.ts +4 -2
  29. package/src/lib/event/detail/event-detail.component.d.ts +9 -0
  30. package/src/lib/event/icon-pipe/event-icon.pipe.d.ts +15 -0
  31. package/src/lib/event/list/event-list.component.d.ts +11 -0
  32. package/src/lib/event/public-api.d.ts +3 -0
  33. package/src/lib/general/base.token.d.ts +2 -0
  34. package/src/lib/general/i18n/en.translations.d.ts +21 -0
  35. package/src/lib/general/i18n/fr.translations.d.ts +21 -0
  36. package/src/lib/general/public-api.d.ts +3 -0
  37. package/src/lib/hypervisor.module.d.ts +25 -0
  38. package/src/lib/model/hyp-event.interface.d.ts +11 -0
  39. package/src/lib/model/hyp-process.interface.d.ts +4 -0
  40. package/src/lib/model/public-api.d.ts +2 -0
  41. package/src/lib/store/event/event.actions.d.ts +23 -0
  42. package/src/lib/store/event/event.effects.d.ts +15 -0
  43. package/src/lib/store/event/event.reducer.d.ts +12 -0
  44. package/src/lib/store/event/event.selectors.d.ts +11 -0
  45. package/src/lib/store/event/event.service.d.ts +13 -0
  46. package/src/lib/store/hypervisor/hypervisor.actions.d.ts +7 -0
  47. package/src/lib/store/hypervisor/hypervisor.effects.d.ts +10 -0
  48. package/src/lib/store/hypervisor/hypervisor.reducer.d.ts +7 -0
  49. package/src/lib/store/hypervisor/hypervisor.selectors.d.ts +5 -0
  50. package/src/lib/store/hypervisor/hypervisor.service.d.ts +10 -0
  51. package/esm2022/lib/hypervisor.component.mjs +0 -19
  52. package/esm2022/lib/hypervisor.module.mjs +0 -21
  53. package/lib/hypervisor.component.d.ts +0 -5
  54. package/lib/hypervisor.module.d.ts +0 -7
@@ -1,40 +1,318 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, NgModule } from '@angular/core';
2
+ import { Component, Input, Pipe, InjectionToken, Injectable, NgModule, Inject } from '@angular/core';
3
+ import { of, withLatestFrom, mergeMap } from 'rxjs';
4
+ import * as i3 from '@provoly/dashboard';
5
+ import { DEFAULT_ICON_URL, PryI18nModule, PryCoreModule } from '@provoly/dashboard';
6
+ import * as i1 from '@ngrx/store';
7
+ import { createAction, props, createReducer, on, createFeatureSelector, createSelector, StoreModule } from '@ngrx/store';
8
+ import * as i2 from '@angular/common';
9
+ import { NgForOf, AsyncPipe } from '@angular/common';
10
+ import * as i1$2 from '@ngrx/effects';
11
+ import { createEffect, ofType, EffectsModule } from '@ngrx/effects';
12
+ import { debounceTime, mergeMap as mergeMap$1, map, catchError } from 'rxjs/operators';
13
+ import * as i1$1 from '@angular/common/http';
14
+ import { HttpParams } from '@angular/common/http';
3
15
 
4
- class DummyHypervisorComponent {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DummyHypervisorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DummyHypervisorComponent, selector: "hvy-hypervisor", ngImport: i0, template: `
7
- <p>
8
- Dummy Hypervisor Component
9
- </p>
10
- `, isInline: true }); }
16
+ class EventDetailComponent {
17
+ constructor() {
18
+ this.events = [];
19
+ this.process = undefined;
20
+ }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: EventDetailComponent, selector: "hvy-event-detail", inputs: { events: "events", process: "process" }, ngImport: i0, template: "<h1> TODO </h1>\n<p>Events: {{ events.length }}</p>\n<p>Process: {{ process }}</p>\n" }); }
11
23
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DummyHypervisorComponent, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventDetailComponent, decorators: [{
13
25
  type: Component,
14
- args: [{ selector: 'hvy-hypervisor', template: `
15
- <p>
16
- Dummy Hypervisor Component
17
- </p>
18
- ` }]
19
- }] });
26
+ args: [{ selector: 'hvy-event-detail', template: "<h1> TODO </h1>\n<p>Events: {{ events.length }}</p>\n<p>Process: {{ process }}</p>\n" }]
27
+ }], propDecorators: { events: [{
28
+ type: Input
29
+ }], process: [{
30
+ type: Input
31
+ }] } });
20
32
 
33
+ const EVENT_TO_ICON = {
34
+ fn: (event, store) => of(DEFAULT_ICON_URL),
35
+ };
36
+ class EventIconPipe {
37
+ constructor(store) {
38
+ this.store = store;
39
+ }
40
+ transform(value, ...args) {
41
+ return EVENT_TO_ICON.fn(value, this.store);
42
+ }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventIconPipe, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Pipe }); }
44
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.1.3", ngImport: i0, type: EventIconPipe, name: "eventIcon" }); }
45
+ }
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventIconPipe, decorators: [{
47
+ type: Pipe,
48
+ args: [{
49
+ name: 'eventIcon',
50
+ }]
51
+ }], ctorParameters: () => [{ type: i1.Store }] });
52
+
53
+ const EventActions = {
54
+ load: createAction('[Event] Load Events'),
55
+ loadSuccess: createAction('[Event Api] (bus) Load Events Success', props()),
56
+ loadFailure: createAction('[Event Api] Load Events Failure', props()),
57
+ filter: createAction('[Event Api] Set filters', props()),
58
+ };
59
+
60
+ const eventFeatureKey = '@hvy/event';
61
+ const eventInitialState$1 = {
62
+ events: [],
63
+ loading: false,
64
+ filters: {}
65
+ };
66
+ const internalReducer$1 = createReducer(eventInitialState$1, on(EventActions.load, (state, action) => ({
67
+ ...state,
68
+ loading: true
69
+ })), on(EventActions.loadSuccess, (state, action) => ({
70
+ ...state,
71
+ loading: false,
72
+ events: action.events
73
+ })), on(EventActions.loadFailure, (state, action) => ({
74
+ ...state,
75
+ loading: false,
76
+ events: []
77
+ })), on(EventActions.filter, (state, action) => ({
78
+ ...state,
79
+ filters: action.filters
80
+ })));
81
+ function eventReducer(state, action) {
82
+ return internalReducer$1(state, action);
83
+ }
84
+
85
+ const feature$1 = createFeatureSelector(eventFeatureKey);
86
+ const events = createSelector(feature$1, (state) => state.events);
87
+ const loading = createSelector(feature$1, (state) => state.loading);
88
+ const filters = createSelector(feature$1, (state) => state.filters);
89
+ const EventSelectors = {
90
+ feature: feature$1,
91
+ events,
92
+ loading,
93
+ filters
94
+ };
95
+
96
+ class EventListComponent {
97
+ constructor(store) {
98
+ this.store = store;
99
+ this.store.dispatch(EventActions.load());
100
+ this.events$ = this.store.select(EventSelectors.events);
101
+ }
102
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventListComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
103
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: EventListComponent, selector: "hvy-event-list", ngImport: i0, template: "<table class=\"o-hvy-events-table\">\n <thead>\n <tr class=\"o-hvy-events-table__header\">\n <th></th>\n <th>{{ '@hvy.event.criticality' | i18n }}</th>\n <th>{{ '@hvy.event.name' | i18n }}</th>\n <th>{{ '@hvy.event.type.name' | i18n }}</th>\n <th>{{ '@hvy.event.address' | i18n }}</th>\n <th>{{ '@hvy.event.date' | i18n }}</th>\n <th>{{ '@hvy.event.dateM' | i18n }}</th>\n <th>{{ '@hvy.event.status' | i18n }}</th>\n <th>{{ '@hvy.process.name' | i18n }}</th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n <tr class=\"o-hvy-events-table__line\" *ngFor=\"let event of events$|async\">\n <td class=\"o-hvy-events-table__line__cell\"></td>\n <td class=\"o-hvy-events-table__line__cell -centered\"><img [alt]=\"event.name\" [height]=\"32\" [width]=\"32\"\n [src]=\"event | eventIcon | async | getSecuredImage | async\" /></td>\n <td class=\"o-hvy-events-table__line__cell\">\n <div class=\"o-hvy-events-table__line__name__main\">{{ event.name }}</div>\n <div>{{ event.equipment ? event.equipment.name : '' }}</div>\n </td>\n <td class=\"o-hvy-events-table__line__cell -centered\">{{ '@hvy.event.type.' + event.type | i18n }}</td>\n <td class=\"o-hvy-events-table__line__cell\">-</td>\n <td class=\"o-hvy-events-table__line__cell\">--</td>\n <td class=\"o-hvy-events-table__line__cell\">---</td>\n <td class=\"o-hvy-events-table__line__cell -centered\">----</td>\n <td class=\"o-hvy-events-table__line__cell\">-----</td>\n <td class=\"o-hvy-events-table__line__cell\"></td>\n </tr>\n </tbody>\n</table>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }, { kind: "pipe", type: i3.GetSecuredImagePipe, name: "getSecuredImage" }, { kind: "pipe", type: EventIconPipe, name: "eventIcon" }] }); }
104
+ }
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventListComponent, decorators: [{
106
+ type: Component,
107
+ args: [{ selector: 'hvy-event-list', template: "<table class=\"o-hvy-events-table\">\n <thead>\n <tr class=\"o-hvy-events-table__header\">\n <th></th>\n <th>{{ '@hvy.event.criticality' | i18n }}</th>\n <th>{{ '@hvy.event.name' | i18n }}</th>\n <th>{{ '@hvy.event.type.name' | i18n }}</th>\n <th>{{ '@hvy.event.address' | i18n }}</th>\n <th>{{ '@hvy.event.date' | i18n }}</th>\n <th>{{ '@hvy.event.dateM' | i18n }}</th>\n <th>{{ '@hvy.event.status' | i18n }}</th>\n <th>{{ '@hvy.process.name' | i18n }}</th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n <tr class=\"o-hvy-events-table__line\" *ngFor=\"let event of events$|async\">\n <td class=\"o-hvy-events-table__line__cell\"></td>\n <td class=\"o-hvy-events-table__line__cell -centered\"><img [alt]=\"event.name\" [height]=\"32\" [width]=\"32\"\n [src]=\"event | eventIcon | async | getSecuredImage | async\" /></td>\n <td class=\"o-hvy-events-table__line__cell\">\n <div class=\"o-hvy-events-table__line__name__main\">{{ event.name }}</div>\n <div>{{ event.equipment ? event.equipment.name : '' }}</div>\n </td>\n <td class=\"o-hvy-events-table__line__cell -centered\">{{ '@hvy.event.type.' + event.type | i18n }}</td>\n <td class=\"o-hvy-events-table__line__cell\">-</td>\n <td class=\"o-hvy-events-table__line__cell\">--</td>\n <td class=\"o-hvy-events-table__line__cell\">---</td>\n <td class=\"o-hvy-events-table__line__cell -centered\">----</td>\n <td class=\"o-hvy-events-table__line__cell\">-----</td>\n <td class=\"o-hvy-events-table__line__cell\"></td>\n </tr>\n </tbody>\n</table>\n" }]
108
+ }], ctorParameters: () => [{ type: i1.Store }] });
109
+
110
+ const HYP_BASE_CONFIG = new InjectionToken('base config');
111
+
112
+ const enTranslations = {
113
+ '@hvy': {
114
+ event: {
115
+ criticality: 'Criticality',
116
+ name: 'Event',
117
+ type: {
118
+ name: 'Event type',
119
+ ALERT: "Alert",
120
+ REPORT: "Report",
121
+ OPERATOR: "Operator",
122
+ },
123
+ address: 'Address',
124
+ date: 'Effect date',
125
+ dateM: 'Modification date',
126
+ status: 'Status',
127
+ },
128
+ process: {
129
+ name: 'Process',
130
+ },
131
+ },
132
+ };
133
+
134
+ const frTranslations = {
135
+ '@hvy': {
136
+ event: {
137
+ criticality: 'Criticité',
138
+ name: 'Évènement',
139
+ type: {
140
+ name: 'Type d\'évènement',
141
+ ALERT: "Alerte",
142
+ REPORT: "Signalement",
143
+ OPERATOR: "Opérateur",
144
+ },
145
+ address: 'Adresse',
146
+ date: 'Date d\'effet',
147
+ dateM: 'Date de modification',
148
+ status: 'Statut',
149
+ },
150
+ process: {
151
+ name: 'Procédure',
152
+ },
153
+ },
154
+ };
155
+
156
+ /*
157
+ * Public API Surface of hypervisor
158
+ */
159
+
160
+ const HypervisorActions = {
161
+ setUrl: createAction('[Event] Set Backend Url', props())
162
+ };
163
+
164
+ const hypFeatureKey = '@hvy/general';
165
+ const eventInitialState = {
166
+ url: '/api/hypervisor',
167
+ };
168
+ const internalReducer = createReducer(eventInitialState, on(HypervisorActions.setUrl, (state, action) => ({
169
+ ...state,
170
+ url: action.url,
171
+ })));
172
+ function hypervisorReducer(state, action) {
173
+ return internalReducer(state, action);
174
+ }
175
+
176
+ const feature = createFeatureSelector(hypFeatureKey);
177
+ const url = createSelector(feature, (state) => state.url);
178
+ const HypSelectors = {
179
+ feature,
180
+ url
181
+ };
182
+
183
+ class EventService {
184
+ constructor(httpClient, store) {
185
+ this.httpClient = httpClient;
186
+ this.store = store;
187
+ }
188
+ list() {
189
+ return this.store
190
+ .select(HypSelectors.url)
191
+ .pipe(withLatestFrom(this.store.select(EventSelectors.filters)), mergeMap(([url, filters]) => {
192
+ let params = new HttpParams();
193
+ Object.keys(filters).forEach(filter => {
194
+ filters[filter].forEach((filterValue) => {
195
+ params = params.set(filter, filterValue);
196
+ });
197
+ });
198
+ return this.httpClient.get(encodeURI(`${url}/event`), { params });
199
+ }));
200
+ }
201
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventService, deps: [{ token: i1$1.HttpClient }, { token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
202
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventService, providedIn: 'root' }); }
203
+ }
204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventService, decorators: [{
205
+ type: Injectable,
206
+ args: [{
207
+ providedIn: 'root',
208
+ }]
209
+ }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: i1.Store }] });
210
+
211
+ class EventEffects {
212
+ constructor(actions$, eventService) {
213
+ this.actions$ = actions$;
214
+ this.eventService = eventService;
215
+ this.loadEvents$ = createEffect(() => this.actions$.pipe(ofType(EventActions.load), debounceTime(200), mergeMap$1((action) => this.eventService.list().pipe(map((events) => EventActions.loadSuccess({ events })), catchError((error) => [EventActions.loadFailure({ error: error })])))));
216
+ }
217
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventEffects, deps: [{ token: i1$2.Actions }, { token: EventService }], target: i0.ɵɵFactoryTarget.Injectable }); }
218
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventEffects }); }
219
+ }
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EventEffects, decorators: [{
221
+ type: Injectable
222
+ }], ctorParameters: () => [{ type: i1$2.Actions }, { type: EventService }] });
223
+
224
+ class HypervisorService {
225
+ constructor(httpClient, store) {
226
+ this.httpClient = httpClient;
227
+ this.store = store;
228
+ }
229
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: HypervisorService, deps: [{ token: i1$1.HttpClient }, { token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
230
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: HypervisorService, providedIn: 'root' }); }
231
+ }
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: HypervisorService, decorators: [{
233
+ type: Injectable,
234
+ args: [{
235
+ providedIn: 'root'
236
+ }]
237
+ }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: i1.Store }] });
238
+
239
+ class HypervisorEffects {
240
+ constructor(actions$, eventService) {
241
+ this.actions$ = actions$;
242
+ this.eventService = eventService;
243
+ }
244
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: HypervisorEffects, deps: [{ token: i1$2.Actions }, { token: HypervisorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
245
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: HypervisorEffects }); }
246
+ }
247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: HypervisorEffects, decorators: [{
248
+ type: Injectable
249
+ }], ctorParameters: () => [{ type: i1$2.Actions }, { type: HypervisorService }] });
250
+
251
+ const components = [
252
+ EventDetailComponent,
253
+ EventListComponent,
254
+ EventIconPipe,
255
+ ];
21
256
  class PvyHypervisorModule {
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PvyHypervisorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
23
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PvyHypervisorModule, declarations: [DummyHypervisorComponent], exports: [DummyHypervisorComponent] }); }
24
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PvyHypervisorModule }); }
257
+ static forRoot(options) {
258
+ return {
259
+ ngModule: PvyHypervisorModule,
260
+ providers: [
261
+ { provide: HYP_BASE_CONFIG, useValue: options },
262
+ ],
263
+ };
264
+ }
265
+ constructor(baseConfig, store, i18nService) {
266
+ this.baseConfig = baseConfig;
267
+ this.store = store;
268
+ this.i18nService = i18nService;
269
+ this.store.dispatch(HypervisorActions.setUrl({ url: baseConfig.url }));
270
+ this.i18nService.addLangObject('en', '@hvy', enTranslations);
271
+ this.i18nService.addLangObject('fr', '@hvy', frTranslations);
272
+ }
273
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PvyHypervisorModule, deps: [{ token: HYP_BASE_CONFIG }, { token: i1.Store }, { token: i3.PryI18nService }], target: i0.ɵɵFactoryTarget.NgModule }); }
274
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.3", ngImport: i0, type: PvyHypervisorModule, declarations: [EventDetailComponent,
275
+ EventListComponent,
276
+ EventIconPipe], imports: [i1.StoreFeatureModule, i1.StoreFeatureModule, i1$2.EffectsFeatureModule, NgForOf,
277
+ AsyncPipe,
278
+ PryI18nModule,
279
+ PryCoreModule,
280
+ AsyncPipe,
281
+ PryCoreModule], exports: [EventDetailComponent,
282
+ EventListComponent,
283
+ EventIconPipe] }); }
284
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PvyHypervisorModule, imports: [StoreModule.forFeature(eventFeatureKey, eventReducer),
285
+ StoreModule.forFeature(hypFeatureKey, hypervisorReducer),
286
+ EffectsModule.forFeature([EventEffects, HypervisorEffects]),
287
+ PryI18nModule,
288
+ PryCoreModule,
289
+ PryCoreModule] }); }
25
290
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PvyHypervisorModule, decorators: [{
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PvyHypervisorModule, decorators: [{
27
292
  type: NgModule,
28
293
  args: [{
29
294
  declarations: [
30
- DummyHypervisorComponent
295
+ ...components,
296
+ ],
297
+ imports: [
298
+ StoreModule.forFeature(eventFeatureKey, eventReducer),
299
+ StoreModule.forFeature(hypFeatureKey, hypervisorReducer),
300
+ EffectsModule.forFeature([EventEffects, HypervisorEffects]),
301
+ NgForOf,
302
+ AsyncPipe,
303
+ PryI18nModule,
304
+ PryCoreModule,
305
+ AsyncPipe,
306
+ PryCoreModule,
31
307
  ],
32
- imports: [],
33
308
  exports: [
34
- DummyHypervisorComponent
35
- ]
309
+ ...components,
310
+ ],
36
311
  }]
37
- }] });
312
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
313
+ type: Inject,
314
+ args: [HYP_BASE_CONFIG]
315
+ }] }, { type: i1.Store }, { type: i3.PryI18nService }] });
38
316
 
39
317
  /*
40
318
  * Public API Surface of hypervisor
@@ -44,5 +322,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
44
322
  * Generated bundle index. Do not edit.
45
323
  */
46
324
 
47
- export { DummyHypervisorComponent, PvyHypervisorModule };
325
+ export { EVENT_TO_ICON, EventDetailComponent, EventIconPipe, EventListComponent, HYP_BASE_CONFIG, PvyHypervisorModule, enTranslations, frTranslations };
48
326
  //# sourceMappingURL=provoly-hypervisor.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"provoly-hypervisor.mjs","sources":["../../../../projects/provoly/hypervisor/src/lib/hypervisor.component.ts","../../../../projects/provoly/hypervisor/src/lib/hypervisor.module.ts","../../../../projects/provoly/hypervisor/src/public-api.ts","../../../../projects/provoly/hypervisor/src/provoly-hypervisor.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'hvy-hypervisor',\n template: `\n <p>\n Dummy Hypervisor Component\n </p>\n `,\n styles: []\n})\nexport class DummyHypervisorComponent {\n\n}\n","import { NgModule } from '@angular/core';\nimport { DummyHypervisorComponent } from './hypervisor.component';\n\n\n@NgModule({\n declarations: [\n DummyHypervisorComponent\n ],\n imports: [\n ],\n exports: [\n DummyHypervisorComponent\n ]\n})\nexport class PvyHypervisorModule { }\n","/*\n * Public API Surface of hypervisor\n */\n\nexport * from './lib/hypervisor.component';\nexport * from './lib/hypervisor.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAWa,wBAAwB,CAAA;+GAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,wBAAwB,EAPzB,QAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAGU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBATpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAChB,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,CAAA;;;MCMU,mBAAmB,CAAA;+GAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;gHAAnB,mBAAmB,EAAA,YAAA,EAAA,CAR5B,wBAAwB,CAAA,EAAA,OAAA,EAAA,CAKxB,wBAAwB,CAAA,EAAA,CAAA,CAAA,EAAA;gHAGf,mBAAmB,EAAA,CAAA,CAAA,EAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAV/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE;wBACP,wBAAwB;AACzB,qBAAA;AACF,iBAAA,CAAA;;;ACbD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"provoly-hypervisor.mjs","sources":["../../../../projects/provoly/hypervisor/src/lib/event/detail/event-detail.component.ts","../../../../projects/provoly/hypervisor/src/lib/event/detail/event-detail.component.html","../../../../projects/provoly/hypervisor/src/lib/event/icon-pipe/event-icon.pipe.ts","../../../../projects/provoly/hypervisor/src/lib/store/event/event.actions.ts","../../../../projects/provoly/hypervisor/src/lib/store/event/event.reducer.ts","../../../../projects/provoly/hypervisor/src/lib/store/event/event.selectors.ts","../../../../projects/provoly/hypervisor/src/lib/event/list/event-list.component.ts","../../../../projects/provoly/hypervisor/src/lib/event/list/event-list.component.html","../../../../projects/provoly/hypervisor/src/lib/general/base.token.ts","../../../../projects/provoly/hypervisor/src/lib/general/i18n/en.translations.ts","../../../../projects/provoly/hypervisor/src/lib/general/i18n/fr.translations.ts","../../../../projects/provoly/hypervisor/src/lib/model/public-api.ts","../../../../projects/provoly/hypervisor/src/lib/store/hypervisor/hypervisor.actions.ts","../../../../projects/provoly/hypervisor/src/lib/store/hypervisor/hypervisor.reducer.ts","../../../../projects/provoly/hypervisor/src/lib/store/hypervisor/hypervisor.selectors.ts","../../../../projects/provoly/hypervisor/src/lib/store/event/event.service.ts","../../../../projects/provoly/hypervisor/src/lib/store/event/event.effects.ts","../../../../projects/provoly/hypervisor/src/lib/store/hypervisor/hypervisor.service.ts","../../../../projects/provoly/hypervisor/src/lib/store/hypervisor/hypervisor.effects.ts","../../../../projects/provoly/hypervisor/src/lib/hypervisor.module.ts","../../../../projects/provoly/hypervisor/public-api.ts","../../../../projects/provoly/hypervisor/provoly-hypervisor.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { HypEvent } from '../../model/hyp-event.interface';\nimport { HypProcess } from '../../model/hyp-process.interface';\n\n@Component({\n selector: 'hvy-event-detail',\n templateUrl: './event-detail.component.html'\n})\nexport class EventDetailComponent {\n @Input() events: HypEvent[] = [];\n @Input() process?: HypProcess = undefined;\n}\n","<h1> TODO </h1>\n<p>Events: {{ events.length }}</p>\n<p>Process: {{ process }}</p>\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { HypEvent } from '../../model/hyp-event.interface';\nimport { Store } from '@ngrx/store';\nimport { DEFAULT_ICON_URL } from '@provoly/dashboard';\n\nexport const EVENT_TO_ICON = {\n fn: (event: HypEvent, store: Store<any>) => of(DEFAULT_ICON_URL),\n};\n\n@Pipe({\n name: 'eventIcon',\n})\nexport class EventIconPipe implements PipeTransform {\n constructor(private store: Store<any>) {\n }\n\n transform(value: HypEvent, ...args: unknown[]): Observable<string> {\n return EVENT_TO_ICON.fn(value, this.store);\n }\n}\n","import { createAction, props } from '@ngrx/store';\nimport { HypEvent } from '../../model/hyp-event.interface';\n\nexport const EventActions = {\n load: createAction('[Event] Load Events'),\n loadSuccess: createAction('[Event Api] (bus) Load Events Success', props<{ events: HypEvent[] }>()),\n loadFailure: createAction('[Event Api] Load Events Failure', props<{ error: string }>()),\n filter: createAction('[Event Api] Set filters', props<{ filters: { [key: string]: string[] } }>()),\n};\n","import { Action, createReducer, on } from '@ngrx/store';\nimport { HypEvent } from '../../model/hyp-event.interface';\nimport { EventActions } from './event.actions';\n\nexport const eventFeatureKey = '@hvy/event';\n\nexport interface EventState {\n events: HypEvent[];\n loading: boolean;\n filters: { [key: string]: string[] }\n}\n\nexport const eventInitialState: EventState = {\n events: [],\n loading: false,\n filters: {}\n};\n\nconst internalReducer = createReducer<EventState>(\n eventInitialState,\n on(EventActions.load, (state, action) => ({\n ...state,\n loading: true\n })),\n on(EventActions.loadSuccess, (state, action) => ({\n ...state,\n loading: false,\n events: action.events\n })),\n on(EventActions.loadFailure, (state, action) => ({\n ...state,\n loading: false,\n events: []\n })),\n on(EventActions.filter, (state, action) => ({\n ...state,\n filters: action.filters\n }))\n);\n\nexport function eventReducer(state: EventState, action: Action) {\n return internalReducer(state, action);\n}\n","import { createFeatureSelector, createSelector } from '@ngrx/store';\nimport { eventFeatureKey, EventState } from './event.reducer';\n\n\nconst feature = createFeatureSelector<EventState>(eventFeatureKey);\nconst events = createSelector(feature, (state) => state.events);\nconst loading = createSelector(feature, (state) => state.loading);\nconst filters = createSelector(feature, (state) => state.filters);\n\nexport const EventSelectors = {\n feature,\n events,\n loading,\n filters\n};\n","import { Component } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { EventActions } from '../../store/event/event.actions';\nimport { EventSelectors } from '../../store/event/event.selectors';\nimport { HypEvent } from '../../model/hyp-event.interface';\nimport { Observable } from 'rxjs';\n\n@Component({\n selector: 'hvy-event-list',\n templateUrl: './event-list.component.html',\n})\nexport class EventListComponent {\n events$: Observable<HypEvent[]>;\n\n constructor(private store: Store<any>) {\n this.store.dispatch(EventActions.load());\n this.events$ = this.store.select(EventSelectors.events);\n }\n}\n","<table class=\"o-hvy-events-table\">\n <thead>\n <tr class=\"o-hvy-events-table__header\">\n <th></th>\n <th>{{ '@hvy.event.criticality' | i18n }}</th>\n <th>{{ '@hvy.event.name' | i18n }}</th>\n <th>{{ '@hvy.event.type.name' | i18n }}</th>\n <th>{{ '@hvy.event.address' | i18n }}</th>\n <th>{{ '@hvy.event.date' | i18n }}</th>\n <th>{{ '@hvy.event.dateM' | i18n }}</th>\n <th>{{ '@hvy.event.status' | i18n }}</th>\n <th>{{ '@hvy.process.name' | i18n }}</th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n <tr class=\"o-hvy-events-table__line\" *ngFor=\"let event of events$|async\">\n <td class=\"o-hvy-events-table__line__cell\"></td>\n <td class=\"o-hvy-events-table__line__cell -centered\"><img [alt]=\"event.name\" [height]=\"32\" [width]=\"32\"\n [src]=\"event | eventIcon | async | getSecuredImage | async\" /></td>\n <td class=\"o-hvy-events-table__line__cell\">\n <div class=\"o-hvy-events-table__line__name__main\">{{ event.name }}</div>\n <div>{{ event.equipment ? event.equipment.name : '' }}</div>\n </td>\n <td class=\"o-hvy-events-table__line__cell -centered\">{{ '@hvy.event.type.' + event.type | i18n }}</td>\n <td class=\"o-hvy-events-table__line__cell\">-</td>\n <td class=\"o-hvy-events-table__line__cell\">--</td>\n <td class=\"o-hvy-events-table__line__cell\">---</td>\n <td class=\"o-hvy-events-table__line__cell -centered\">----</td>\n <td class=\"o-hvy-events-table__line__cell\">-----</td>\n <td class=\"o-hvy-events-table__line__cell\"></td>\n </tr>\n </tbody>\n</table>\n","import { InjectionToken } from '@angular/core';\n\nexport const HYP_BASE_CONFIG = new InjectionToken<string>('base config');\n","export const enTranslations = {\n '@hvy': {\n event: {\n criticality: 'Criticality',\n name: 'Event',\n type: {\n name: 'Event type',\n ALERT: \"Alert\",\n REPORT: \"Report\",\n OPERATOR: \"Operator\",\n },\n address: 'Address',\n date: 'Effect date',\n dateM: 'Modification date',\n status: 'Status',\n },\n process: {\n name: 'Process',\n },\n },\n};\n","export const frTranslations = {\n '@hvy': {\n event: {\n criticality: 'Criticité',\n name: 'Évènement',\n type: {\n name: 'Type d\\'évènement',\n ALERT: \"Alerte\",\n REPORT: \"Signalement\",\n OPERATOR: \"Opérateur\",\n },\n address: 'Adresse',\n date: 'Date d\\'effet',\n dateM: 'Date de modification',\n status: 'Statut',\n },\n process: {\n name: 'Procédure',\n },\n },\n};\n","/*\n * Public API Surface of hypervisor\n */\n\nexport * from './hyp-event.interface';\nexport * from './hyp-process.interface';\n","import { createAction, props } from '@ngrx/store';\n\nexport const HypervisorActions = {\n setUrl: createAction('[Event] Set Backend Url', props<{ url: string }>())\n};\n","import { Action, createReducer, on } from '@ngrx/store';\nimport { HypervisorActions } from './hypervisor.actions';\n\nexport const hypFeatureKey = '@hvy/general';\n\nexport interface HypState {\n url: string;\n}\n\nexport const eventInitialState: HypState = {\n url: '/api/hypervisor',\n};\n\nconst internalReducer = createReducer<HypState>(\n eventInitialState,\n on(HypervisorActions.setUrl, (state, action) => ({\n ...state,\n url: action.url,\n })),\n);\n\nexport function hypervisorReducer(state: HypState, action: Action) {\n return internalReducer(state, action);\n}\n","import { createFeatureSelector, createSelector } from '@ngrx/store';\nimport { hypFeatureKey, HypState } from './hypervisor.reducer';\n\n\nconst feature = createFeatureSelector<HypState>(hypFeatureKey);\nconst url = createSelector(feature, (state) => state.url);\n\nexport const HypSelectors = {\n feature,\n url\n};\n","import { Injectable } from '@angular/core';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { mergeMap, Observable, withLatestFrom } from 'rxjs';\nimport { Store } from '@ngrx/store';\nimport { HypEvent } from '../../model/hyp-event.interface';\nimport { HypSelectors } from '../hypervisor/hypervisor.selectors';\nimport { EventSelectors } from './event.selectors';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class EventService {\n constructor(\n private httpClient: HttpClient,\n private store: Store<any>,\n ) {\n }\n\n list(): Observable<Array<HypEvent>> {\n return this.store\n .select(HypSelectors.url)\n .pipe(\n withLatestFrom(this.store.select(EventSelectors.filters)),\n mergeMap(([url, filters]) => {\n let params = new HttpParams();\n Object.keys(filters).forEach(filter => {\n filters[filter].forEach((filterValue) => {\n params = params.set(filter, filterValue);\n });\n });\n return this.httpClient.get<Array<HypEvent>>(encodeURI(`${url}/event`), { params });\n }),\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { catchError, debounceTime, map, mergeMap } from 'rxjs/operators';\nimport { EventActions } from './event.actions';\nimport { EventService } from './event.service';\n\n@Injectable()\nexport class EventEffects {\n loadEvents$ = createEffect(() =>\n this.actions$.pipe(\n ofType(EventActions.load),\n debounceTime(200),\n mergeMap((action) =>\n this.eventService.list().pipe(\n map((events) => EventActions.loadSuccess({ events })),\n catchError((error) => [EventActions.loadFailure({ error: error })]),\n ),\n ),\n ),\n );\n\n constructor(\n private actions$: Actions,\n private eventService: EventService,\n ) {\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { Store } from '@ngrx/store';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class HypervisorService {\n constructor(\n private httpClient: HttpClient,\n private store: Store<any>\n ) {}\n\n}\n","import { Injectable } from '@angular/core';\nimport { Actions } from '@ngrx/effects';\nimport { HypervisorService } from './hypervisor.service';\n\n@Injectable()\nexport class HypervisorEffects {\n\n constructor(\n private actions$: Actions,\n private eventService: HypervisorService,\n ) {\n }\n}\n","import { Inject, ModuleWithProviders, NgModule } from '@angular/core';\nimport { EventIconPipe } from './event/icon-pipe/event-icon.pipe';\nimport { EffectsModule } from '@ngrx/effects';\nimport { Store, StoreModule } from '@ngrx/store';\nimport { eventFeatureKey, eventReducer } from './store/event/event.reducer';\nimport { EventEffects } from './store/event/event.effects';\nimport { EventDetailComponent } from './event/detail/event-detail.component';\nimport { EventListComponent } from './event/list/event-list.component';\nimport { hypervisorReducer, hypFeatureKey } from './store/hypervisor/hypervisor.reducer';\nimport { HypervisorEffects } from './store/hypervisor/hypervisor.effects';\nimport { HYP_BASE_CONFIG } from './general/base.token';\nimport { HypervisorActions } from './store/hypervisor/hypervisor.actions';\nimport { AsyncPipe, NgForOf } from '@angular/common';\nimport { PryCoreModule, PryI18nModule, PryI18nService } from '@provoly/dashboard';\nimport { enTranslations } from './general/i18n/en.translations';\nimport { frTranslations } from './general/i18n/fr.translations';\n\nconst components = [\n EventDetailComponent,\n EventListComponent,\n EventIconPipe,\n];\n\n@NgModule({\n declarations: [\n ...components,\n ],\n imports: [\n StoreModule.forFeature(eventFeatureKey, eventReducer),\n StoreModule.forFeature(hypFeatureKey, hypervisorReducer),\n EffectsModule.forFeature([EventEffects, HypervisorEffects]),\n NgForOf,\n AsyncPipe,\n PryI18nModule,\n PryCoreModule,\n AsyncPipe,\n PryCoreModule,\n ],\n exports: [\n ...components,\n ],\n})\nexport class PvyHypervisorModule {\n static forRoot(options: { url: string }): ModuleWithProviders<PvyHypervisorModule> {\n\n return {\n ngModule: PvyHypervisorModule,\n providers: [\n { provide: HYP_BASE_CONFIG, useValue: options },\n ],\n };\n }\n\n constructor(@Inject(HYP_BASE_CONFIG) private baseConfig: {\n url: string\n }, private store: Store<any>, private i18nService: PryI18nService) {\n this.store.dispatch(HypervisorActions.setUrl({ url: baseConfig.url }));\n this.i18nService.addLangObject('en', '@hvy', enTranslations);\n this.i18nService.addLangObject('fr', '@hvy', frTranslations);\n }\n}\n","/*\n * Public API Surface of hypervisor\n */\nexport * from './src/lib/event/public-api';\nexport * from './src/lib/general/public-api';\nexport * from './src/lib/model/public-api';\nexport * from './src/lib/hypervisor.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["eventInitialState","internalReducer","feature","i4.EventIconPipe","i1","i2","mergeMap","i2.EventService","i2.HypervisorService"],"mappings":";;;;;;;;;;;;;;;MAQa,oBAAoB,CAAA;AAJjC,IAAA,WAAA,GAAA;QAKW,IAAM,CAAA,MAAA,GAAe,EAAE,CAAC;QACxB,IAAO,CAAA,OAAA,GAAgB,SAAS,CAAC;AAC3C,KAAA;8GAHY,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,0GCRjC,sFAGA,EAAA,CAAA,CAAA,EAAA;;2FDKa,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,SAAS;+BACE,kBAAkB,EAAA,QAAA,EAAA,sFAAA,EAAA,CAAA;8BAInB,MAAM,EAAA,CAAA;sBAAd,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;;;AEJK,MAAA,aAAa,GAAG;IAC3B,EAAE,EAAE,CAAC,KAAe,EAAE,KAAiB,KAAK,EAAE,CAAC,gBAAgB,CAAC;EAChE;MAKW,aAAa,CAAA;AACxB,IAAA,WAAA,CAAoB,KAAiB,EAAA;QAAjB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAY;KACpC;AAED,IAAA,SAAS,CAAC,KAAe,EAAE,GAAG,IAAe,EAAA;QAC3C,OAAO,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;KAC5C;8GANU,aAAa,EAAA,IAAA,EAAA,CAAA,EAA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rC;;AAEG;;ACFH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@provoly/hypervisor",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "peerDependencies": {
5
- "@angular/cdk": "14.x || 15.x || 16.x",
6
- "@angular/common": "15.x || 16.x",
7
- "@angular/core": "15.x || 16.x",
8
- "@angular/platform-browser": "15.x || 16.x",
9
- "@angular/router": "15.x || 16.x",
10
- "@ngrx/effects": "16.x",
11
- "@ngrx/entity": "16.x",
12
- "@ngrx/store": "16.x",
5
+ "@angular/cdk": "16.x || 17.x",
6
+ "@angular/common": "16.x || 17.x",
7
+ "@angular/core": "16.x || 17.x",
8
+ "@angular/platform-browser": "16.x || 17.x",
9
+ "@angular/router": "16.x || 17.x",
10
+ "@ngrx/effects": "17.x",
11
+ "@ngrx/entity": "17.x",
12
+ "@ngrx/store": "17.x",
13
13
  "fast-deep-equal": "3.1.3",
14
14
  "rxjs": "^7.4.0",
15
15
  "uuid": "^8.3.2 || ^9.0.0",
16
- "zone.js": "~0.13.0",
17
- "@provoly/dashboard": "^0.22.5"
16
+ "zone.js": "~0.14.3",
17
+ "@provoly/dashboard": "^0.22.9"
18
18
  },
19
19
  "dependencies": {
20
20
  "tslib": "^2.6.2"
package/public-api.d.ts CHANGED
@@ -1,2 +1,4 @@
1
- export * from './lib/hypervisor.component';
2
- export * from './lib/hypervisor.module';
1
+ export * from './src/lib/event/public-api';
2
+ export * from './src/lib/general/public-api';
3
+ export * from './src/lib/model/public-api';
4
+ export * from './src/lib/hypervisor.module';
@@ -0,0 +1,9 @@
1
+ import { HypEvent } from '../../model/hyp-event.interface';
2
+ import { HypProcess } from '../../model/hyp-process.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EventDetailComponent {
5
+ events: HypEvent[];
6
+ process?: HypProcess;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<EventDetailComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<EventDetailComponent, "hvy-event-detail", never, { "events": { "alias": "events"; "required": false; }; "process": { "alias": "process"; "required": false; }; }, {}, never, never, false, never>;
9
+ }
@@ -0,0 +1,15 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { HypEvent } from '../../model/hyp-event.interface';
4
+ import { Store } from '@ngrx/store';
5
+ import * as i0 from "@angular/core";
6
+ export declare const EVENT_TO_ICON: {
7
+ fn: (event: HypEvent, store: Store<any>) => Observable<string>;
8
+ };
9
+ export declare class EventIconPipe implements PipeTransform {
10
+ private store;
11
+ constructor(store: Store<any>);
12
+ transform(value: HypEvent, ...args: unknown[]): Observable<string>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<EventIconPipe, never>;
14
+ static ɵpipe: i0.ɵɵPipeDeclaration<EventIconPipe, "eventIcon", false>;
15
+ }
@@ -0,0 +1,11 @@
1
+ import { Store } from '@ngrx/store';
2
+ import { HypEvent } from '../../model/hyp-event.interface';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class EventListComponent {
6
+ private store;
7
+ events$: Observable<HypEvent[]>;
8
+ constructor(store: Store<any>);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<EventListComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<EventListComponent, "hvy-event-list", never, {}, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,3 @@
1
+ export * from './detail/event-detail.component';
2
+ export * from './icon-pipe/event-icon.pipe';
3
+ export * from './list/event-list.component';
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const HYP_BASE_CONFIG: InjectionToken<string>;
@@ -0,0 +1,21 @@
1
+ export declare const enTranslations: {
2
+ '@hvy': {
3
+ event: {
4
+ criticality: string;
5
+ name: string;
6
+ type: {
7
+ name: string;
8
+ ALERT: string;
9
+ REPORT: string;
10
+ OPERATOR: string;
11
+ };
12
+ address: string;
13
+ date: string;
14
+ dateM: string;
15
+ status: string;
16
+ };
17
+ process: {
18
+ name: string;
19
+ };
20
+ };
21
+ };
@@ -0,0 +1,21 @@
1
+ export declare const frTranslations: {
2
+ '@hvy': {
3
+ event: {
4
+ criticality: string;
5
+ name: string;
6
+ type: {
7
+ name: string;
8
+ ALERT: string;
9
+ REPORT: string;
10
+ OPERATOR: string;
11
+ };
12
+ address: string;
13
+ date: string;
14
+ dateM: string;
15
+ status: string;
16
+ };
17
+ process: {
18
+ name: string;
19
+ };
20
+ };
21
+ };
@@ -0,0 +1,3 @@
1
+ export * from './base.token';
2
+ export * from './i18n/en.translations';
3
+ export * from './i18n/fr.translations';
@@ -0,0 +1,25 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { Store } from '@ngrx/store';
3
+ import { PryI18nService } from '@provoly/dashboard';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "./event/detail/event-detail.component";
6
+ import * as i2 from "./event/list/event-list.component";
7
+ import * as i3 from "./event/icon-pipe/event-icon.pipe";
8
+ import * as i4 from "@ngrx/store";
9
+ import * as i5 from "@ngrx/effects";
10
+ import * as i6 from "@angular/common";
11
+ import * as i7 from "@provoly/dashboard";
12
+ export declare class PvyHypervisorModule {
13
+ private baseConfig;
14
+ private store;
15
+ private i18nService;
16
+ static forRoot(options: {
17
+ url: string;
18
+ }): ModuleWithProviders<PvyHypervisorModule>;
19
+ constructor(baseConfig: {
20
+ url: string;
21
+ }, store: Store<any>, i18nService: PryI18nService);
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventIconPipe], [typeof i4.StoreFeatureModule, typeof i4.StoreFeatureModule, typeof i5.EffectsFeatureModule, typeof i6.NgForOf, typeof i6.AsyncPipe, typeof i7.PryI18nModule, typeof i7.PryCoreModule, typeof i6.AsyncPipe, typeof i7.PryCoreModule], [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventIconPipe]>;
24
+ static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
25
+ }
@@ -0,0 +1,11 @@
1
+ export interface HypEvent {
2
+ id: string;
3
+ name: string;
4
+ criticality: "LOW" | "MEDIUM" | "HIGH";
5
+ type: "ALERT" | "REPORT" | "OPERATOR";
6
+ equipment: null | HypEquipment;
7
+ }
8
+ export interface HypEquipment {
9
+ id: string;
10
+ name: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ export interface HypProcess {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './hyp-event.interface';
2
+ export * from './hyp-process.interface';