@provoly/hypervisor 0.0.64 → 0.0.65

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 (31) hide show
  1. package/esm2022/src/lib/event/detail/event-detail.component.mjs +1 -1
  2. package/esm2022/src/lib/general/i18n/en.translations.mjs +7 -1
  3. package/esm2022/src/lib/general/i18n/fr.translations.mjs +7 -1
  4. package/esm2022/src/lib/general/procedure-actions/action-menu.component.mjs +28 -0
  5. package/esm2022/src/lib/general/procedure-actions/action-parameters/action-parameter.component.mjs +42 -0
  6. package/esm2022/src/lib/general/procedure-actions/action-parameters/base-parameter-action.component.mjs +20 -0
  7. package/esm2022/src/lib/general/procedure-actions/action-parameters/other/other-action-parameter.component.mjs +16 -0
  8. package/esm2022/src/lib/general/procedure-actions/actions-types.constant.mjs +12 -0
  9. package/esm2022/src/lib/general/procedure-actions/procedure-actions.component.mjs +78 -23
  10. package/esm2022/src/lib/general/public-api.mjs +7 -1
  11. package/esm2022/src/lib/hypervisor.module.mjs +20 -4
  12. package/esm2022/src/lib/model/procedure/hyp-action.interface.mjs +1 -1
  13. package/esm2022/src/lib/procedure/model-detail/procedure-model-detail.component.mjs +14 -12
  14. package/esm2022/src/lib/store/event/event.service.mjs +2 -2
  15. package/fesm2022/provoly-hypervisor.mjs +230 -50
  16. package/fesm2022/provoly-hypervisor.mjs.map +1 -1
  17. package/package.json +1 -1
  18. package/src/lib/general/i18n/en.translations.d.ts +6 -0
  19. package/src/lib/general/i18n/fr.translations.d.ts +6 -0
  20. package/src/lib/general/procedure-actions/action-menu.component.d.ts +19 -0
  21. package/src/lib/general/procedure-actions/action-parameters/action-parameter.component.d.ts +15 -0
  22. package/src/lib/general/procedure-actions/action-parameters/base-parameter-action.component.d.ts +12 -0
  23. package/src/lib/general/procedure-actions/action-parameters/other/other-action-parameter.component.d.ts +7 -0
  24. package/src/lib/general/procedure-actions/actions-types.constant.d.ts +7 -0
  25. package/src/lib/general/procedure-actions/procedure-actions.component.d.ts +14 -9
  26. package/src/lib/general/public-api.d.ts +6 -0
  27. package/src/lib/hypervisor.module.d.ts +13 -9
  28. package/src/lib/model/procedure/hyp-action.interface.d.ts +2 -1
  29. package/styles/components/_index.scss +1 -0
  30. package/styles/components/_o-hvy-action-menu.scss +9 -0
  31. package/styles/components/_o-hvy-event-detail.scss +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/hypervisor",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "16.x || 17.x",
6
6
  "@angular/common": "16.x || 17.x",
@@ -126,6 +126,12 @@ export declare const enTranslations: {
126
126
  creator: string;
127
127
  action: {
128
128
  add: string;
129
+ create: string;
130
+ modify: string;
131
+ comment: string;
132
+ delete: string;
133
+ update: string;
134
+ done: string;
129
135
  CSU: string;
130
136
  DOUTE: string;
131
137
  SMS: string;
@@ -128,6 +128,12 @@ export declare const frTranslations: {
128
128
  creator: string;
129
129
  action: {
130
130
  add: string;
131
+ create: string;
132
+ modify: string;
133
+ comment: string;
134
+ delete: string;
135
+ update: string;
136
+ done: string;
131
137
  CSU: string;
132
138
  DOUTE: string;
133
139
  SMS: string;
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { PryDialogRef } from '@provoly/dashboard';
3
+ import { Store } from '@ngrx/store';
4
+ import { HypAction } from '../../model/procedure/hyp-action.interface';
5
+ import * as i0 from "@angular/core";
6
+ export interface HvyActionMenuData {
7
+ action: HypAction;
8
+ mode: string;
9
+ }
10
+ export declare class HvyActionMenuComponent {
11
+ private dialog;
12
+ data: HvyActionMenuData;
13
+ private store;
14
+ choice: EventEmitter<any>;
15
+ constructor(dialog: PryDialogRef<HvyActionMenuComponent>, data: HvyActionMenuData, store: Store);
16
+ action(value: string): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<HvyActionMenuComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<HvyActionMenuComponent, "pry-action-menu", never, {}, { "choice": "choice"; }, never, never, false, never>;
19
+ }
@@ -0,0 +1,15 @@
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import { HypAction } from '../../../model/procedure/hyp-action.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HvyActionParameterComponent {
5
+ ref: ViewContainerRef;
6
+ _action?: HypAction;
7
+ _type: string;
8
+ private componentRef?;
9
+ set type(type: string);
10
+ set action(action: any);
11
+ constructor();
12
+ private updateParameterComponent;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<HvyActionParameterComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<HvyActionParameterComponent, "hvy-action-parameter", never, { "type": { "alias": "type"; "required": false; }; "action": { "alias": "action"; "required": false; }; }, {}, never, never, false, never>;
15
+ }
@@ -0,0 +1,12 @@
1
+ import { HypAction } from '../../../model/procedure/hyp-action.interface';
2
+ import * as i0 from "@angular/core";
3
+ export interface HypOtherAction extends HypAction {
4
+ other: string;
5
+ }
6
+ export declare class HvyBaseParameterActionComponent {
7
+ _action: HypOtherAction;
8
+ set action(action: any);
9
+ constructor();
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<HvyBaseParameterActionComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<HvyBaseParameterActionComponent, "hvy-base-action-parameter", never, { "action": { "alias": "action"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,7 @@
1
+ import { HvyBaseParameterActionComponent } from '../base-parameter-action.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class HvyOtherActionParameterComponent extends HvyBaseParameterActionComponent {
4
+ constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<HvyOtherActionParameterComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<HvyOtherActionParameterComponent, "hvy-other-action-parameter", never, {}, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { Type } from '@angular/core';
2
+ import { HvyBaseParameterActionComponent } from './action-parameters/base-parameter-action.component';
3
+ export declare const ACTIONS_TYPES: {
4
+ values: {
5
+ [key: string]: Type<HvyBaseParameterActionComponent> | undefined;
6
+ };
7
+ };
@@ -1,11 +1,11 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { SubscriptionnerDirective } from '@provoly/dashboard';
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import { PryDialogService, SubscriptionnerDirective } from '@provoly/dashboard';
3
3
  import { HypAction } from '../../model/procedure/hyp-action.interface';
4
+ import { Overlay } from '@angular/cdk/overlay';
4
5
  import * as i0 from "@angular/core";
5
- export declare const ACTIONS_TYPES: {
6
- values: string[];
7
- };
8
6
  export declare class ProcedureActionsComponent extends SubscriptionnerDirective {
7
+ private pryDialog;
8
+ private overlay;
9
9
  static CARD_HEIGHT: number;
10
10
  movingAction?: HypAction;
11
11
  moveStart: number;
@@ -13,10 +13,14 @@ export declare class ProcedureActionsComponent extends SubscriptionnerDirective
13
13
  initialActionList: HypAction[];
14
14
  previousOffset: number;
15
15
  dragTarget?: EventTarget | null;
16
- actions: HypAction[];
17
- tmpActions: HypAction[];
18
16
  modified: EventEmitter<HypAction[]>;
17
+ mode: 'model' | 'procedure';
19
18
  ACTIONS_TYPES: string[];
19
+ _actions: HypAction[];
20
+ menuButton: ElementRef;
21
+ constructor(pryDialog: PryDialogService, overlay: Overlay);
22
+ set actions(actions: HypAction[]);
23
+ get actions(): HypAction[];
20
24
  onMouseDown($event: MouseEvent): void;
21
25
  dragStart($event: MouseEvent, action: HypAction, index: number): void;
22
26
  move($event: MouseEvent): void;
@@ -25,7 +29,8 @@ export declare class ProcedureActionsComponent extends SubscriptionnerDirective
25
29
  toggleActionStatus(index: number, $event: MouseEvent): void;
26
30
  add(): void;
27
31
  protected readonly model: import("@angular/core").ModelFunction;
28
- updateNew(idx: number, prop: string, $event: any): void;
32
+ update(idx: number, prop: string, $event: any): void;
33
+ openModal(action: HypAction, idx: number): void;
29
34
  static ɵfac: i0.ɵɵFactoryDeclaration<ProcedureActionsComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureActionsComponent, "hvy-procedure-actions", never, { "actions": { "alias": "actions"; "required": false; }; }, { "modified": "modified"; }, never, never, false, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProcedureActionsComponent, "hvy-procedure-actions", never, { "mode": { "alias": "mode"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, { "modified": "modified"; }, never, never, false, never>;
31
36
  }
@@ -9,3 +9,9 @@ export * from './status-display/status-display.component';
9
9
  export * from './progress-display/progress-display.component';
10
10
  export * from './column-order/column-order.component';
11
11
  export * from './pad-id.function';
12
+ export * from './procedure-actions/actions-types.constant';
13
+ export * from './procedure-actions/action-menu.component';
14
+ export * from './procedure-actions/procedure-actions.component';
15
+ export * from './procedure-actions/action-parameters/action-parameter.component';
16
+ export * from './procedure-actions/action-parameters/base-parameter-action.component';
17
+ export * from './procedure-actions/action-parameters/other/other-action-parameter.component';
@@ -23,14 +23,18 @@ import * as i18 from "./procedure/model-list/procedure-column-order.component";
23
23
  import * as i19 from "./event/procedure-association-modal/procedure-association-modal.component";
24
24
  import * as i20 from "./procedure/model-detail/procedure-model-detail.component";
25
25
  import * as i21 from "./event/filters/on/immediate/immediate-filters.component";
26
- import * as i22 from "./general/procedure-actions/procedure-actions.component";
27
- import * as i23 from "@ngrx/store";
28
- import * as i24 from "@ngrx/effects";
29
- import * as i25 from "@angular/common";
30
- import * as i26 from "@provoly/dashboard";
31
- import * as i27 from "@provoly/dashboard/components/checkbox";
32
- import * as i28 from "@angular/forms";
33
- import * as i29 from "@angular/router";
26
+ import * as i22 from "./general/procedure-actions/action-menu.component";
27
+ import * as i23 from "./general/procedure-actions/action-parameters/action-parameter.component";
28
+ import * as i24 from "./general/procedure-actions/action-parameters/base-parameter-action.component";
29
+ import * as i25 from "./general/procedure-actions/action-parameters/other/other-action-parameter.component";
30
+ import * as i26 from "./general/procedure-actions/procedure-actions.component";
31
+ import * as i27 from "@ngrx/store";
32
+ import * as i28 from "@ngrx/effects";
33
+ import * as i29 from "@angular/common";
34
+ import * as i30 from "@provoly/dashboard";
35
+ import * as i31 from "@provoly/dashboard/components/checkbox";
36
+ import * as i32 from "@angular/forms";
37
+ import * as i33 from "@angular/router";
34
38
  export declare class PvyHypervisorModule {
35
39
  private baseConfig;
36
40
  private store;
@@ -42,6 +46,6 @@ export declare class PvyHypervisorModule {
42
46
  url: string;
43
47
  }, store: Store<any>, i18nService: PryI18nService);
44
48
  static ɵfac: i0.ɵɵFactoryDeclaration<PvyHypervisorModule, never>;
45
- static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventColumnOrderComponent, typeof i4.IconDisplayComponent, typeof i5.EventSummaryItemComponent, typeof i6.EventSummaryListComponent, typeof i7.EventSummaryPageComponent, typeof i8.EventIconPipe, typeof i9.ForDatetimeLocalPipe, typeof i10.StatusDisplayComponent, typeof i11.ProgressDisplayComponent, typeof i12.ColumnOrderComponent, typeof i13.EventFiltersComponent, typeof i14.DateFilterComponent, typeof i15.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent, typeof i22.ProcedureActionsComponent], [typeof i23.StoreFeatureModule, typeof i23.StoreFeatureModule, typeof i23.StoreFeatureModule, typeof i23.StoreFeatureModule, typeof i24.EffectsFeatureModule, typeof i25.NgForOf, typeof i25.AsyncPipe, typeof i26.PryI18nModule, typeof i26.PryCoreModule, typeof i25.NgStyle, typeof i27.PryCheckboxModule, typeof i28.FormsModule, typeof i29.RouterLink, typeof i26.PrySinceDateModule, typeof i25.DatePipe, typeof i26.PryIconModule, typeof i25.KeyValuePipe, typeof i26.PrySelectModule, typeof i25.JsonPipe, typeof i26.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.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent]>;
49
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PvyHypervisorModule, [typeof i1.EventDetailComponent, typeof i2.EventListComponent, typeof i3.EventColumnOrderComponent, typeof i4.IconDisplayComponent, typeof i5.EventSummaryItemComponent, typeof i6.EventSummaryListComponent, typeof i7.EventSummaryPageComponent, typeof i8.EventIconPipe, typeof i9.ForDatetimeLocalPipe, typeof i10.StatusDisplayComponent, typeof i11.ProgressDisplayComponent, typeof i12.ColumnOrderComponent, typeof i13.EventFiltersComponent, typeof i14.DateFilterComponent, typeof i15.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent, typeof i22.HvyActionMenuComponent, typeof i23.HvyActionParameterComponent, typeof i24.HvyBaseParameterActionComponent, typeof i25.HvyOtherActionParameterComponent, typeof i26.ProcedureActionsComponent], [typeof i27.StoreFeatureModule, typeof i27.StoreFeatureModule, typeof i27.StoreFeatureModule, typeof i27.StoreFeatureModule, typeof i28.EffectsFeatureModule, typeof i29.NgForOf, typeof i29.AsyncPipe, typeof i30.PryI18nModule, typeof i30.PryCoreModule, typeof i29.NgStyle, typeof i31.PryCheckboxModule, typeof i32.FormsModule, typeof i33.RouterLink, typeof i30.PrySinceDateModule, typeof i29.DatePipe, typeof i30.PryIconModule, typeof i29.KeyValuePipe, typeof i30.PrySelectModule, typeof i29.JsonPipe, typeof i30.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.TextFilterComponent, typeof i16.ChoiceFilterComponent, typeof i17.ProcedureListComponent, typeof i18.ProcedureColumnOrderComponent, typeof i19.ProcedureAssociationModalComponent, typeof i20.ProcedureModelDetailComponent, typeof i21.ImmediateFiltersComponent, typeof i22.HvyActionMenuComponent, typeof i23.HvyActionParameterComponent, typeof i24.HvyBaseParameterActionComponent, typeof i25.HvyOtherActionParameterComponent]>;
46
50
  static ɵinj: i0.ɵɵInjectorDeclaration<PvyHypervisorModule>;
47
51
  }
@@ -1,7 +1,8 @@
1
1
  export interface HypAction {
2
2
  id: string;
3
- name: string;
4
3
  type: string;
5
4
  status: string;
6
5
  lastModificationDate: string;
6
+ _modify?: boolean;
7
+ _create?: boolean;
7
8
  }
@@ -15,3 +15,4 @@
15
15
  @use "./o-hvy-event-filters" as *;
16
16
  @use "./o-hvy-procedure-list" as *;
17
17
  @use "./o-hvy-procedure-detail" as *;
18
+ @use "./o-hvy-action-menu" as *;
@@ -0,0 +1,9 @@
1
+ .o-hvy-action-menu {
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: flex-start;
5
+
6
+ button {
7
+ text-align: left;
8
+ }
9
+ }
@@ -151,7 +151,6 @@
151
151
  flex-direction: row;
152
152
  padding: toRem(20);
153
153
  gap: toRem(20);
154
- height: toRem(75);
155
154
 
156
155
  &:hover {
157
156
  background-color: themed($theme-map, 'color', 'primary', 300);
@@ -169,6 +168,17 @@
169
168
  pry-icon:last-child {
170
169
  margin-left: auto;
171
170
  }
171
+
172
+ &.-updating {
173
+ background-color: #F5F5FA;
174
+ }
175
+
176
+ &__create {
177
+ flex: 1;
178
+ display: flex;
179
+ flex-direction: column;
180
+ gap: toRem(10);
181
+ }
172
182
  }
173
183
  }
174
184