@provoly/hypervisor 0.0.13 → 0.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/hypervisor",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "16.x || 17.x",
6
6
  "@angular/common": "16.x || 17.x",
@@ -0,0 +1,16 @@
1
+ import { Store } from '@ngrx/store';
2
+ import { SubscriptionnerDirective } from '@provoly/dashboard';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ColumnOrderComponent extends SubscriptionnerDirective {
5
+ private store;
6
+ field: string;
7
+ sortValue: {
8
+ field: string;
9
+ order: string;
10
+ } | undefined;
11
+ constructor(store: Store);
12
+ sort(order: string): void;
13
+ isActive(order: string): boolean;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnOrderComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnOrderComponent, "hvy-column-order", never, { "field": { "alias": "field"; "required": false; }; }, {}, never, ["*"], false, never>;
16
+ }
@@ -7,3 +7,4 @@ export * from './for-datetime-local-pipe/for-datetime-local.pipe';
7
7
  export * from './icon-display/icon-display.component';
8
8
  export * from './status-display/status-display.component';
9
9
  export * from './progress-display/progress-display.component';
10
+ export * from './column-order/column-order.component';
@@ -12,14 +12,15 @@ import * as i7 from "./general/icon-pipe/event-icon.pipe";
12
12
  import * as i8 from "./general/for-datetime-local-pipe/for-datetime-local.pipe";
13
13
  import * as i9 from "./general/status-display/status-display.component";
14
14
  import * as i10 from "./general/progress-display/progress-display.component";
15
- import * as i11 from "@ngrx/store";
16
- import * as i12 from "@ngrx/effects";
17
- import * as i13 from "@angular/common";
18
- import * as i14 from "@provoly/dashboard";
19
- import * as i15 from "@provoly/dashboard/components/checkbox";
20
- import * as i16 from "@angular/forms";
21
- import * as i17 from "@angular/router";
22
- import * as i18 from "@provoly/dashboard/components/sinceDate";
15
+ import * as i11 from "./general/column-order/column-order.component";
16
+ import * as i12 from "@ngrx/store";
17
+ import * as i13 from "@ngrx/effects";
18
+ import * as i14 from "@angular/common";
19
+ import * as i15 from "@provoly/dashboard";
20
+ import * as i16 from "@provoly/dashboard/components/checkbox";
21
+ import * as i17 from "@angular/forms";
22
+ import * as i18 from "@angular/router";
23
+ import * as i19 from "@provoly/dashboard/components/sinceDate";
23
24
  export declare class PvyHypervisorModule {
24
25
  private baseConfig;
25
26
  private store;
@@ -31,6 +32,6 @@ export declare class PvyHypervisorModule {
31
32
  url: string;
32
33
  }, store: Store<any>, i18nService: PryI18nService);
33
34
  static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
34
- static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe, typeof i8.ForDatetimeLocalPipe, typeof i9.StatusDisplayComponent, typeof i10.ProgressDisplayComponent], [typeof i11.StoreFeatureModule, typeof i11.StoreFeatureModule, typeof i11.StoreFeatureModule, typeof i12.EffectsFeatureModule, typeof i13.NgForOf, typeof i13.AsyncPipe, typeof i14.PryI18nModule, typeof i14.PryCoreModule, typeof i13.AsyncPipe, typeof i14.PryCoreModule, typeof i13.NgStyle, typeof i15.PryCheckboxModule, typeof i16.FormsModule, typeof i17.RouterLink, typeof i18.PrySinceDateModule, typeof i13.DatePipe, typeof i14.PryIconModule, typeof i13.KeyValuePipe, typeof i14.PrySelectModule, typeof i16.FormsModule, typeof i13.JsonPipe, typeof i14.PryDatePickerModule, typeof i14.PryI18nModule, typeof i14.PryIconModule], [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe, typeof i8.ForDatetimeLocalPipe, typeof i9.StatusDisplayComponent, typeof i10.ProgressDisplayComponent]>;
35
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe, typeof i8.ForDatetimeLocalPipe, typeof i9.StatusDisplayComponent, typeof i10.ProgressDisplayComponent, typeof i11.ColumnOrderComponent], [typeof i12.StoreFeatureModule, typeof i12.StoreFeatureModule, typeof i12.StoreFeatureModule, typeof i13.EffectsFeatureModule, typeof i14.NgForOf, typeof i14.AsyncPipe, typeof i15.PryI18nModule, typeof i15.PryCoreModule, typeof i14.AsyncPipe, typeof i15.PryCoreModule, typeof i14.NgStyle, typeof i16.PryCheckboxModule, typeof i17.FormsModule, typeof i18.RouterLink, typeof i19.PrySinceDateModule, typeof i14.DatePipe, typeof i15.PryIconModule, typeof i14.KeyValuePipe, typeof i15.PrySelectModule, typeof i17.FormsModule, typeof i14.JsonPipe, typeof i15.PryDatePickerModule, typeof i15.PryI18nModule, typeof i15.PryIconModule], [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.IconDisplayComponent, typeof i4.EventSummaryItemComponent, typeof i5.EventSummaryListComponent, typeof i6.EventSummaryPageComponent, typeof i7.EventIconPipe, typeof i8.ForDatetimeLocalPipe, typeof i9.StatusDisplayComponent, typeof i10.ProgressDisplayComponent, typeof i11.ColumnOrderComponent]>;
35
36
  static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
36
37
  }
@@ -93,4 +93,11 @@ export declare const EventActions: {
93
93
  }) => {
94
94
  error: string;
95
95
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Close failure">>;
96
+ sort: import("@ngrx/store").ActionCreator<"[Event] set log event sorting", (props: {
97
+ field: string;
98
+ order: string;
99
+ }) => {
100
+ field: string;
101
+ order: string;
102
+ } & import("@ngrx/store/src/models").TypedAction<"[Event] set log event sorting">>;
96
103
  };
@@ -39,6 +39,9 @@ export declare class EventEffects {
39
39
  close$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Event] Close success"> | ({
40
40
  error: string;
41
41
  } & import("@ngrx/store/src/models").TypedAction<"[Event] Close failure">)> & import("@ngrx/effects").CreateEffectMetadata;
42
+ sort$: import("rxjs").Observable<{
43
+ next?: boolean | undefined;
44
+ } & import("@ngrx/store/src/models").TypedAction<"[Event] Load Events">> & import("@ngrx/effects").CreateEffectMetadata;
42
45
  constructor(actions$: Actions, eventService: EventService, store: Store);
43
46
  static ɵfac: i0.ɵɵFactoryDeclaration<EventEffects, never>;
44
47
  static ɵprov: i0.ɵɵInjectableDeclaration<EventEffects>;
@@ -14,6 +14,10 @@ export interface EventState {
14
14
  event?: HypEventDetails;
15
15
  procedure?: HypProcedure;
16
16
  };
17
+ sort?: {
18
+ field: string;
19
+ order: string;
20
+ };
17
21
  }
18
22
  export declare const eventInitialState: EventState;
19
23
  export declare function eventReducer(state: EventState, action: Action): EventState;
@@ -17,4 +17,11 @@ export declare const EventSelectors: {
17
17
  procedure?: import("@provoly/hypervisor").HypProcedure | undefined;
18
18
  }>;
19
19
  noMoreEvents: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EventState) => boolean>;
20
+ sort: import("@ngrx/store").MemoizedSelector<object, {
21
+ field: string;
22
+ order: string;
23
+ } | undefined, (s1: EventState) => {
24
+ field: string;
25
+ order: string;
26
+ } | undefined>;
20
27
  };
@@ -10,3 +10,4 @@
10
10
  @use "./o-hvy-event-summary-page" as *;
11
11
  @use "./o-hvy-events-table" as *;
12
12
  @use "./o-progressbar" as *;
13
+ @use "./o-hvy-column-order" as *;
@@ -0,0 +1,26 @@
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-column-order {
5
+ display: flex;
6
+ flex-direction: row;
7
+ align-items: center;
8
+ gap: toRem(5);
9
+
10
+ &__chevrons {
11
+ display: flex;
12
+ flex-direction: column;
13
+ align-items: center;
14
+ margin-top: toRem(-8);
15
+
16
+ .a-icon {
17
+ background-color: themed($theme-map, 'color', 'grey', 200);
18
+ }
19
+
20
+ .-active {
21
+ .a-icon {
22
+ background-color: themed($theme-map, 'color', 'accent', 100);
23
+ }
24
+ }
25
+ }
26
+ }