@gravitee/ui-policy-studio-angular 13.1.6 → 13.2.0-renovate-angular-3fcf3cf
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/esm2022/lib/components/filter-pipe/gio-flter-connectors-by-mode.pipe.mjs +3 -3
- package/esm2022/lib/components/flow-details/gio-ps-flow-details.component.mjs +18 -5
- package/esm2022/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.component.mjs +3 -3
- package/esm2022/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.mjs +3 -3
- package/esm2022/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.mjs +3 -3
- package/esm2022/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.mjs +3 -3
- package/esm2022/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.component.mjs +5 -5
- package/esm2022/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.component.mjs +5 -5
- package/esm2022/lib/components/flows-menu/gio-ps-flows-menu.component.mjs +111 -14
- package/esm2022/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.mjs +3 -3
- package/esm2022/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.component.mjs +3 -3
- package/esm2022/lib/components/step-form/gio-ps-step-form.component.mjs +3 -3
- package/esm2022/lib/policy-group-studio/gio-policy-group-studio.component.mjs +3 -3
- package/esm2022/lib/policy-studio/gio-policy-studio.component.mjs +12 -6
- package/esm2022/lib/policy-studio/gio-policy-studio.service.mjs +3 -3
- package/esm2022/testing/lib/components/flow-details/gio-ps-flow-details.harness.mjs +9 -1
- package/esm2022/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.mjs +7 -7
- package/esm2022/testing/lib/policy-studio/gio-policy-studio.harness.mjs +8 -1
- package/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs +21 -6
- package/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2022/gravitee-ui-policy-studio-angular.mjs +175 -63
- package/fesm2022/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/lib/components/flow-details/gio-ps-flow-details.component.d.ts +1 -0
- package/lib/components/flows-menu/gio-ps-flows-menu.component.d.ts +11 -3
- package/lib/policy-studio/gio-policy-studio.component.d.ts +1 -0
- package/package.json +1 -1
- package/testing/lib/components/flow-details/gio-ps-flow-details.harness.d.ts +2 -0
- package/testing/lib/policy-studio/gio-policy-studio.harness.d.ts +4 -0
|
@@ -22,6 +22,7 @@ export declare class GioPolicyStudioDetailsComponent implements OnChanges {
|
|
|
22
22
|
ngOnChanges(changes: SimpleChanges): void;
|
|
23
23
|
onEditFlow(): void;
|
|
24
24
|
onDeleteFlow(): void;
|
|
25
|
+
onEnableDisableFlow(): void;
|
|
25
26
|
onStepsChange(flowPhase: 'request' | 'response' | 'publish' | 'subscribe', steps: Step[]): void;
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioDetailsComponent, never>;
|
|
27
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioDetailsComponent, "gio-ps-flow-details", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "apiType": { "alias": "apiType"; "required": false; }; "flow": { "alias": "flow"; "required": false; }; "entrypointsInfo": { "alias": "entrypointsInfo"; "required": false; }; "endpointsInfo": { "alias": "endpointsInfo"; "required": false; }; "policies": { "alias": "policies"; "required": false; }; "genericPolicies": { "alias": "genericPolicies"; "required": false; }; "trialUrl": { "alias": "trialUrl"; "required": false; }; }, { "flowChange": "flowChange"; "deleteFlow": "deleteFlow"; }, never, never, true, never>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
3
4
|
import { FlowGroupVM, FlowVM } from '../../policy-studio/gio-policy-studio.model';
|
|
4
5
|
import { ApiType, ConnectorInfo, FlowExecution } from '../../models';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
@@ -23,18 +24,25 @@ export declare class GioPolicyStudioFlowsMenuComponent implements OnChanges {
|
|
|
23
24
|
apiType: ApiType;
|
|
24
25
|
flowExecution: FlowExecution;
|
|
25
26
|
flowsGroups: FlowGroupVM[];
|
|
26
|
-
|
|
27
|
+
selectedFlowId?: string;
|
|
27
28
|
entrypoints: ConnectorInfo[];
|
|
28
|
-
|
|
29
|
+
entrypointsInfo: ConnectorInfo[];
|
|
30
|
+
selectedFlowIdChange: EventEmitter<string>;
|
|
29
31
|
flowsGroupsChange: EventEmitter<FlowGroupVM[]>;
|
|
30
32
|
flowExecutionChange: EventEmitter<FlowExecution>;
|
|
33
|
+
deleteFlow: EventEmitter<FlowVM>;
|
|
31
34
|
flowGroupMenuItems: FlowGroupMenuVM[];
|
|
32
35
|
constructor(matDialog: MatDialog);
|
|
33
36
|
ngOnChanges(changes: SimpleChanges): void;
|
|
34
37
|
selectFlow(groupId: string, flowId: string): void;
|
|
35
38
|
onAddFlow(flowGroup: FlowGroupVM): void;
|
|
36
39
|
onConfigureExecution(flowExecution: FlowExecution): void;
|
|
40
|
+
onDisableFlow(flowId: string): void;
|
|
41
|
+
onDropFlow(event: CdkDragDrop<FlowGroupMenuVM>): void;
|
|
42
|
+
onEditFlow(flowId: string): void;
|
|
43
|
+
onDeleteFlow(flowId: string): void;
|
|
44
|
+
onDuplicateFlow(flowGroupId: string, flowId: string): void;
|
|
37
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioFlowsMenuComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioFlowsMenuComponent, "gio-ps-flows-menu", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "apiType": { "alias": "apiType"; "required": false; }; "flowExecution": { "alias": "flowExecution"; "required": false; }; "flowsGroups": { "alias": "flowsGroups"; "required": false; }; "
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioFlowsMenuComponent, "gio-ps-flows-menu", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "apiType": { "alias": "apiType"; "required": false; }; "flowExecution": { "alias": "flowExecution"; "required": false; }; "flowsGroups": { "alias": "flowsGroups"; "required": false; }; "selectedFlowId": { "alias": "selectedFlowId"; "required": false; }; "entrypoints": { "alias": "entrypoints"; "required": false; }; "entrypointsInfo": { "alias": "entrypointsInfo"; "required": false; }; }, { "selectedFlowIdChange": "selectedFlowIdChange"; "flowsGroupsChange": "flowsGroupsChange"; "flowExecutionChange": "flowExecutionChange"; "deleteFlow": "deleteFlow"; }, never, never, true, never>;
|
|
39
47
|
}
|
|
40
48
|
export {};
|
|
@@ -80,6 +80,7 @@ export declare class GioPolicyStudioComponent implements OnChanges, OnDestroy {
|
|
|
80
80
|
onFlowExecutionChange(flowExecution: FlowExecution): void;
|
|
81
81
|
onFlowsGroupsChange(flowsGroups: FlowGroupVM[]): void;
|
|
82
82
|
onSelectedFlowChange(flow: FlowVM): void;
|
|
83
|
+
onSelectFlow(flowId: string): void;
|
|
83
84
|
onDeleteSelectedFlow(flow: FlowVM): void;
|
|
84
85
|
onSave(): void;
|
|
85
86
|
private initGenericPolicies;
|
package/package.json
CHANGED
|
@@ -2,9 +2,11 @@ import { ComponentHarness } from '@angular/cdk/testing';
|
|
|
2
2
|
export declare class GioPolicyStudioDetailsHarness extends ComponentHarness {
|
|
3
3
|
static hostSelector: string;
|
|
4
4
|
isDisplayEmptyFlow(): Promise<boolean>;
|
|
5
|
+
isDisabledFlow(): Promise<boolean>;
|
|
5
6
|
getFlowInfos(): Promise<Record<string, (string | null)[]>>;
|
|
6
7
|
matchText(matcher: RegExp): Promise<boolean>;
|
|
7
8
|
isReadOnly(): Promise<boolean>;
|
|
8
9
|
clickEditFlowBtn(): Promise<void>;
|
|
9
10
|
clickDeleteFlowBtn(): Promise<void>;
|
|
11
|
+
clickEnableDisableFlowBtn(): Promise<void>;
|
|
10
12
|
}
|
|
@@ -27,6 +27,10 @@ export declare class GioPolicyStudioHarness extends ComponentHarness {
|
|
|
27
27
|
* @param flowName Flow name to delete
|
|
28
28
|
*/
|
|
29
29
|
deleteFlow(flowName: string): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Enable or disable a flow
|
|
32
|
+
*/
|
|
33
|
+
enableDisableFlow(flowName: string): Promise<void>;
|
|
30
34
|
/**
|
|
31
35
|
* Select a flow in the menu
|
|
32
36
|
*
|