@gravitee/ui-policy-studio-angular 7.8.0 → 7.9.0

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 (33) hide show
  1. package/esm2020/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog-result.model.mjs +17 -0
  2. package/esm2020/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.mjs +60 -0
  3. package/esm2020/lib/components/flows-menu/gio-ps-flows-menu.component.mjs +28 -3
  4. package/esm2020/lib/gio-policy-studio.component.mjs +15 -4
  5. package/esm2020/lib/gio-policy-studio.module.mjs +12 -2
  6. package/esm2020/lib/models/SaveOutput.mjs +1 -1
  7. package/esm2020/testing/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.harness.mjs +60 -0
  8. package/esm2020/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.mjs +4 -1
  9. package/esm2020/testing/lib/gio-policy-studio.harness.mjs +8 -1
  10. package/esm2020/testing/lib/models/SaveOutput.mjs +1 -1
  11. package/esm2020/testing/lib/models/flow/FlowExecution.fixture.mjs +43 -0
  12. package/esm2020/testing/lib/models/flow/index-testing.mjs +2 -1
  13. package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs +99 -1
  14. package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
  15. package/fesm2015/gravitee-ui-policy-studio-angular.mjs +98 -11
  16. package/fesm2015/gravitee-ui-policy-studio-angular.mjs.map +1 -1
  17. package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs +109 -1
  18. package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
  19. package/fesm2020/gravitee-ui-policy-studio-angular.mjs +100 -10
  20. package/fesm2020/gravitee-ui-policy-studio-angular.mjs.map +1 -1
  21. package/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog-result.model.d.ts +2 -0
  22. package/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.d.ts +17 -0
  23. package/lib/components/flows-menu/gio-ps-flows-menu.component.d.ts +5 -2
  24. package/lib/gio-policy-studio.component.d.ts +5 -2
  25. package/lib/gio-policy-studio.module.d.ts +18 -16
  26. package/lib/models/SaveOutput.d.ts +2 -1
  27. package/package.json +1 -1
  28. package/testing/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.harness.d.ts +13 -0
  29. package/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.d.ts +1 -0
  30. package/testing/lib/gio-policy-studio.harness.d.ts +2 -1
  31. package/testing/lib/models/SaveOutput.d.ts +2 -1
  32. package/testing/lib/models/flow/FlowExecution.fixture.d.ts +3 -0
  33. package/testing/lib/models/flow/index-testing.d.ts +1 -0
@@ -1,6 +1,7 @@
1
- import { Flow } from './flow';
1
+ import { Flow, FlowExecution } from './flow';
2
2
  import { Plan } from './plan';
3
3
  export declare type SaveOutput = {
4
4
  commonFlows?: Flow[];
5
5
  plansToUpdate?: Plan[];
6
+ flowExecution?: FlowExecution;
6
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-policy-studio-angular",
3
- "version": "7.8.0",
3
+ "version": "7.9.0",
4
4
  "description": "Gravitee.io - UI Policy Studio Angular",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,13 @@
1
+ import { ComponentHarness } from '@angular/cdk/testing';
2
+ import { FlowMode } from '../../models';
3
+ export declare class GioPolicyStudioFlowExecutionFormDialogHarness extends ComponentHarness {
4
+ static hostSelector: string;
5
+ private getSaveBtn;
6
+ private getCancelBtn;
7
+ setFlowFormValues(flowExecution: {
8
+ mode?: FlowMode;
9
+ matchRequired?: boolean;
10
+ }): Promise<void>;
11
+ save(): Promise<void>;
12
+ cancel(): Promise<void>;
13
+ }
@@ -22,4 +22,5 @@ export declare class GioPolicyStudioFlowsMenuHarness extends ComponentHarness {
22
22
  */
23
23
  selectFlow(flowText: string | RegExp): Promise<void>;
24
24
  addFlow(groupName: string | RegExp): Promise<void>;
25
+ openFlowExecutionConfig(): Promise<void>;
25
26
  }
@@ -1,5 +1,5 @@
1
1
  import { ComponentHarness } from '@angular/cdk/testing';
2
- import { Flow } from './models';
2
+ import { Flow, FlowExecution } from './models';
3
3
  export declare class GioPolicyStudioHarness extends ComponentHarness {
4
4
  static hostSelector: string;
5
5
  private menuHarness;
@@ -31,4 +31,5 @@ export declare class GioPolicyStudioHarness extends ComponentHarness {
31
31
  getSelectedFlowInfos(): Promise<Record<string, (string | null)[]>>;
32
32
  save(): Promise<void>;
33
33
  private setFlowFormDialog;
34
+ setFlowExecutionConfig(flowExecution: FlowExecution): Promise<void>;
34
35
  }
@@ -1,6 +1,7 @@
1
- import { Flow } from './flow';
1
+ import { Flow, FlowExecution } from './flow';
2
2
  import { Plan } from './plan';
3
3
  export declare type SaveOutput = {
4
4
  commonFlows?: Flow[];
5
5
  plansToUpdate?: Plan[];
6
+ flowExecution?: FlowExecution;
6
7
  };
@@ -0,0 +1,3 @@
1
+ import { FlowExecution } from './FlowExecution';
2
+ export declare function fakeBestMatchFlowExecution(modifier?: Partial<FlowExecution> | ((baseApi: FlowExecution) => FlowExecution)): FlowExecution;
3
+ export declare function fakeDefaultFlowExecution(modifier?: Partial<FlowExecution> | ((baseApi: FlowExecution) => FlowExecution)): FlowExecution;
@@ -1 +1,2 @@
1
1
  export * from './Flow.fixture';
2
+ export * from './FlowExecution.fixture';