@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
@@ -0,0 +1,23 @@
1
+ import { HypEvent } from '../../model/hyp-event.interface';
2
+ export declare const EventActions: {
3
+ load: import("@ngrx/store").ActionCreator<"[Event] Load Events", () => import("@ngrx/store/src/models").TypedAction<"[Event] Load Events">>;
4
+ loadSuccess: import("@ngrx/store").ActionCreator<"[Event Api] (bus) Load Events Success", (props: {
5
+ events: HypEvent[];
6
+ }) => {
7
+ events: HypEvent[];
8
+ } & import("@ngrx/store/src/models").TypedAction<"[Event Api] (bus) Load Events Success">>;
9
+ loadFailure: import("@ngrx/store").ActionCreator<"[Event Api] Load Events Failure", (props: {
10
+ error: string;
11
+ }) => {
12
+ error: string;
13
+ } & import("@ngrx/store/src/models").TypedAction<"[Event Api] Load Events Failure">>;
14
+ filter: import("@ngrx/store").ActionCreator<"[Event Api] Set filters", (props: {
15
+ filters: {
16
+ [key: string]: string[];
17
+ };
18
+ }) => {
19
+ filters: {
20
+ [key: string]: string[];
21
+ };
22
+ } & import("@ngrx/store/src/models").TypedAction<"[Event Api] Set filters">>;
23
+ };
@@ -0,0 +1,15 @@
1
+ import { Actions } from '@ngrx/effects';
2
+ import { EventService } from './event.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EventEffects {
5
+ private actions$;
6
+ private eventService;
7
+ loadEvents$: import("rxjs").Observable<({
8
+ events: import("@provoly/hypervisor").HypEvent[];
9
+ } & import("@ngrx/store/src/models").TypedAction<"[Event Api] (bus) Load Events Success">) | ({
10
+ error: string;
11
+ } & import("@ngrx/store/src/models").TypedAction<"[Event Api] Load Events Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
12
+ constructor(actions$: Actions, eventService: EventService);
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<EventEffects, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<EventEffects>;
15
+ }
@@ -0,0 +1,12 @@
1
+ import { Action } from '@ngrx/store';
2
+ import { HypEvent } from '../../model/hyp-event.interface';
3
+ export declare const eventFeatureKey = "@hvy/event";
4
+ export interface EventState {
5
+ events: HypEvent[];
6
+ loading: boolean;
7
+ filters: {
8
+ [key: string]: string[];
9
+ };
10
+ }
11
+ export declare const eventInitialState: EventState;
12
+ export declare function eventReducer(state: EventState, action: Action): EventState;
@@ -0,0 +1,11 @@
1
+ import { EventState } from './event.reducer';
2
+ export declare const EventSelectors: {
3
+ feature: import("@ngrx/store").MemoizedSelector<object, EventState, import("@ngrx/store").DefaultProjectorFn<EventState>>;
4
+ events: import("@ngrx/store").MemoizedSelector<object, import("@provoly/hypervisor").HypEvent[], (s1: EventState) => import("@provoly/hypervisor").HypEvent[]>;
5
+ loading: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EventState) => boolean>;
6
+ filters: import("@ngrx/store").MemoizedSelector<object, {
7
+ [key: string]: string[];
8
+ }, (s1: EventState) => {
9
+ [key: string]: string[];
10
+ }>;
11
+ };
@@ -0,0 +1,13 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { Store } from '@ngrx/store';
4
+ import { HypEvent } from '../../model/hyp-event.interface';
5
+ import * as i0 from "@angular/core";
6
+ export declare class EventService {
7
+ private httpClient;
8
+ private store;
9
+ constructor(httpClient: HttpClient, store: Store<any>);
10
+ list(): Observable<Array<HypEvent>>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
13
+ }
@@ -0,0 +1,7 @@
1
+ export declare const HypervisorActions: {
2
+ setUrl: import("@ngrx/store").ActionCreator<"[Event] Set Backend Url", (props: {
3
+ url: string;
4
+ }) => {
5
+ url: string;
6
+ } & import("@ngrx/store/src/models").TypedAction<"[Event] Set Backend Url">>;
7
+ };
@@ -0,0 +1,10 @@
1
+ import { Actions } from '@ngrx/effects';
2
+ import { HypervisorService } from './hypervisor.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HypervisorEffects {
5
+ private actions$;
6
+ private eventService;
7
+ constructor(actions$: Actions, eventService: HypervisorService);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<HypervisorEffects, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<HypervisorEffects>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { Action } from '@ngrx/store';
2
+ export declare const hypFeatureKey = "@hvy/general";
3
+ export interface HypState {
4
+ url: string;
5
+ }
6
+ export declare const eventInitialState: HypState;
7
+ export declare function hypervisorReducer(state: HypState, action: Action): HypState;
@@ -0,0 +1,5 @@
1
+ import { HypState } from './hypervisor.reducer';
2
+ export declare const HypSelectors: {
3
+ feature: import("@ngrx/store").MemoizedSelector<object, HypState, import("@ngrx/store").DefaultProjectorFn<HypState>>;
4
+ url: import("@ngrx/store").MemoizedSelector<object, string, (s1: HypState) => string>;
5
+ };
@@ -0,0 +1,10 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Store } from '@ngrx/store';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HypervisorService {
5
+ private httpClient;
6
+ private store;
7
+ constructor(httpClient: HttpClient, store: Store<any>);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<HypervisorService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<HypervisorService>;
10
+ }
@@ -1,19 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class DummyHypervisorComponent {
4
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DummyHypervisorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DummyHypervisorComponent, selector: "hvy-hypervisor", ngImport: i0, template: `
6
- <p>
7
- Dummy Hypervisor Component
8
- </p>
9
- `, isInline: true }); }
10
- }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DummyHypervisorComponent, decorators: [{
12
- type: Component,
13
- args: [{ selector: 'hvy-hypervisor', template: `
14
- <p>
15
- Dummy Hypervisor Component
16
- </p>
17
- ` }]
18
- }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHlwZXJ2aXNvci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcm92b2x5L2h5cGVydmlzb3Ivc3JjL2xpYi9oeXBlcnZpc29yLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQVcxQyxNQUFNLE9BQU8sd0JBQXdCOytHQUF4Qix3QkFBd0I7bUdBQXhCLHdCQUF3QixzREFQekI7Ozs7R0FJVDs7NEZBR1Usd0JBQXdCO2tCQVRwQyxTQUFTOytCQUNFLGdCQUFnQixZQUNoQjs7OztHQUlUIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2h2eS1oeXBlcnZpc29yJyxcbiAgdGVtcGxhdGU6IGBcbiAgICAgIDxwPlxuICAgICAgICAgIER1bW15IEh5cGVydmlzb3IgQ29tcG9uZW50XG4gICAgICA8L3A+XG4gIGAsXG4gIHN0eWxlczogW11cbn0pXG5leHBvcnQgY2xhc3MgRHVtbXlIeXBlcnZpc29yQ29tcG9uZW50IHtcblxufVxuIl19
@@ -1,21 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { DummyHypervisorComponent } from './hypervisor.component';
3
- import * as i0 from "@angular/core";
4
- export class PvyHypervisorModule {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PvyHypervisorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PvyHypervisorModule, declarations: [DummyHypervisorComponent], exports: [DummyHypervisorComponent] }); }
7
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PvyHypervisorModule }); }
8
- }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PvyHypervisorModule, decorators: [{
10
- type: NgModule,
11
- args: [{
12
- declarations: [
13
- DummyHypervisorComponent
14
- ],
15
- imports: [],
16
- exports: [
17
- DummyHypervisorComponent
18
- ]
19
- }]
20
- }] });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHlwZXJ2aXNvci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcm92b2x5L2h5cGVydmlzb3Ivc3JjL2xpYi9oeXBlcnZpc29yLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDOztBQWFsRSxNQUFNLE9BQU8sbUJBQW1COytHQUFuQixtQkFBbUI7Z0hBQW5CLG1CQUFtQixpQkFSNUIsd0JBQXdCLGFBS3hCLHdCQUF3QjtnSEFHZixtQkFBbUI7OzRGQUFuQixtQkFBbUI7a0JBVi9CLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFO3dCQUNaLHdCQUF3QjtxQkFDekI7b0JBQ0QsT0FBTyxFQUFFLEVBQ1I7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLHdCQUF3QjtxQkFDekI7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgRHVtbXlIeXBlcnZpc29yQ29tcG9uZW50IH0gZnJvbSAnLi9oeXBlcnZpc29yLmNvbXBvbmVudCc7XG5cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgRHVtbXlIeXBlcnZpc29yQ29tcG9uZW50XG4gIF0sXG4gIGltcG9ydHM6IFtcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIER1bW15SHlwZXJ2aXNvckNvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFB2eUh5cGVydmlzb3JNb2R1bGUgeyB9XG4iXX0=
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class DummyHypervisorComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<DummyHypervisorComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<DummyHypervisorComponent, "hvy-hypervisor", never, {}, {}, never, never, false, never>;
5
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./hypervisor.component";
3
- export declare class PvyHypervisorModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.DummyHypervisorComponent], never, [typeof i1.DummyHypervisorComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
7
- }