@gravitee/ui-policy-studio-angular 12.3.0 → 12.4.0-fix-studio-harness-a2e6885
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/flow-details/gio-ps-flow-details.component.mjs +7 -4
- package/esm2022/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.mjs +7 -4
- package/esm2022/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.mjs +9 -5
- package/esm2022/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.mjs +8 -3
- package/esm2022/lib/components/flows-menu/gio-ps-flows-menu.component.mjs +8 -4
- package/esm2022/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.mjs +1 -1
- package/esm2022/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.component.mjs +5 -3
- package/esm2022/lib/components/step-form/gio-ps-step-form.component.mjs +13 -5
- package/esm2022/lib/gio-policy-studio.component.mjs +10 -4
- package/esm2022/testing/lib/components/flow-details/gio-ps-flow-details.harness.mjs +8 -1
- package/esm2022/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.mjs +10 -1
- package/esm2022/testing/lib/gio-policy-studio.harness.mjs +14 -1
- package/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs +29 -0
- package/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2022/gravitee-ui-policy-studio-angular.mjs +60 -25
- package/fesm2022/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/lib/components/flow-details/gio-ps-flow-details.component.d.ts +2 -1
- package/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.d.ts +2 -1
- package/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.d.ts +3 -2
- package/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.d.ts +2 -0
- package/lib/components/flows-menu/gio-ps-flows-menu.component.d.ts +2 -1
- package/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.component.d.ts +2 -0
- package/lib/components/step-form/gio-ps-step-form.component.d.ts +2 -1
- package/lib/gio-policy-studio.component.d.ts +5 -1
- package/package.json +1 -1
- package/testing/lib/components/flow-details/gio-ps-flow-details.harness.d.ts +1 -0
- package/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.d.ts +1 -0
- package/testing/lib/gio-policy-studio.harness.d.ts +1 -0
|
@@ -5,6 +5,7 @@ import { ApiType, ConnectorInfo, Operation, Policy, Step } from '../../models';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class GioPolicyStudioDetailsComponent implements OnChanges {
|
|
7
7
|
private readonly matDialog;
|
|
8
|
+
readOnly: boolean;
|
|
8
9
|
loading: boolean;
|
|
9
10
|
apiType: ApiType;
|
|
10
11
|
flow?: FlowVM;
|
|
@@ -22,5 +23,5 @@ export declare class GioPolicyStudioDetailsComponent implements OnChanges {
|
|
|
22
23
|
onDeleteFlow(): void;
|
|
23
24
|
onStepsChange(flowPhase: 'request' | 'response' | 'publish' | 'subscribe', steps: Step[]): void;
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioDetailsComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioDetailsComponent, "gio-ps-flow-details", never, { "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; }; "trialUrl": { "alias": "trialUrl"; "required": false; }; }, { "flowChange": "flowChange"; "deleteFlow": "deleteFlow"; }, never, never, false, never>;
|
|
26
|
+
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; }; "trialUrl": { "alias": "trialUrl"; "required": false; }; }, { "flowChange": "flowChange"; "deleteFlow": "deleteFlow"; }, never, never, false, never>;
|
|
26
27
|
}
|
|
@@ -15,6 +15,7 @@ type StepVM = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare class GioPolicyStudioDetailsPhaseComponent implements OnChanges {
|
|
17
17
|
private readonly matDialog;
|
|
18
|
+
readOnly: boolean;
|
|
18
19
|
steps: Step[];
|
|
19
20
|
name: string;
|
|
20
21
|
description: string;
|
|
@@ -34,6 +35,6 @@ export declare class GioPolicyStudioDetailsPhaseComponent implements OnChanges {
|
|
|
34
35
|
onStepDeleted(index: number): void;
|
|
35
36
|
onStepDisabled(index: number): void;
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioDetailsPhaseComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioDetailsPhaseComponent, "gio-ps-flow-details-phase", never, { "steps": { "alias": "steps"; "required": false; }; "name": { "alias": "name"; "required": false; }; "description": { "alias": "description"; "required": false; }; "startConnector": { "alias": "startConnector"; "required": false; }; "endConnector": { "alias": "endConnector"; "required": false; }; "apiType": { "alias": "apiType"; "required": false; }; "policies": { "alias": "policies"; "required": false; }; "policyExecutionPhase": { "alias": "policyExecutionPhase"; "required": false; }; "trialUrl": { "alias": "trialUrl"; "required": false; }; }, { "stepsChange": "stepsChange"; }, never, never, false, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioDetailsPhaseComponent, "gio-ps-flow-details-phase", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "steps": { "alias": "steps"; "required": false; }; "name": { "alias": "name"; "required": false; }; "description": { "alias": "description"; "required": false; }; "startConnector": { "alias": "startConnector"; "required": false; }; "endConnector": { "alias": "endConnector"; "required": false; }; "apiType": { "alias": "apiType"; "required": false; }; "policies": { "alias": "policies"; "required": false; }; "policyExecutionPhase": { "alias": "policyExecutionPhase"; "required": false; }; "trialUrl": { "alias": "trialUrl"; "required": false; }; }, { "stepsChange": "stepsChange"; }, never, never, false, never>;
|
|
38
39
|
}
|
|
39
40
|
export {};
|
package/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Policy, Step } from '../../models';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class GioPolicyStudioDetailsPhaseStepComponent implements OnChanges {
|
|
6
6
|
private readonly matDialog;
|
|
7
|
+
readOnly: boolean;
|
|
7
8
|
step: Step;
|
|
8
9
|
policies: Policy[];
|
|
9
10
|
stepChange: EventEmitter<Step>;
|
|
@@ -12,9 +13,9 @@ export declare class GioPolicyStudioDetailsPhaseStepComponent implements OnChang
|
|
|
12
13
|
policy?: Policy;
|
|
13
14
|
constructor(matDialog: MatDialog);
|
|
14
15
|
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
-
|
|
16
|
+
onEditOrView(): void;
|
|
16
17
|
onDisable(): void;
|
|
17
18
|
onDelete(): void;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioDetailsPhaseStepComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioDetailsPhaseStepComponent, "gio-ps-flow-details-phase-step", never, { "step": { "alias": "step"; "required": false; }; "policies": { "alias": "policies"; "required": false; }; }, { "stepChange": "stepChange"; "deleted": "deleted"; "disabled": "disabled"; }, never, never, false, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioDetailsPhaseStepComponent, "gio-ps-flow-details-phase-step", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "step": { "alias": "step"; "required": false; }; "policies": { "alias": "policies"; "required": false; }; }, { "stepChange": "stepChange"; "deleted": "deleted"; "disabled": "disabled"; }, never, never, false, never>;
|
|
20
21
|
}
|
package/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.d.ts
CHANGED
|
@@ -4,11 +4,13 @@ import { FlowExecution } from '../../models';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type GioPolicyStudioFlowExecutionFormDialogData = {
|
|
6
6
|
flowExecution?: FlowExecution;
|
|
7
|
+
readOnly?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare class GioPolicyStudioFlowExecutionFormDialogComponent {
|
|
9
10
|
dialogRef: MatDialogRef<GioPolicyStudioFlowExecutionFormDialogComponent, FlowExecution | undefined>;
|
|
10
11
|
flowExecutionFormGroup?: UntypedFormGroup;
|
|
11
12
|
existingFlowExecution?: FlowExecution;
|
|
13
|
+
readOnly: boolean;
|
|
12
14
|
constructor(dialogRef: MatDialogRef<GioPolicyStudioFlowExecutionFormDialogComponent, FlowExecution | undefined>, flowDialogData: GioPolicyStudioFlowExecutionFormDialogData);
|
|
13
15
|
onSubmit(): void;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioFlowExecutionFormDialogComponent, never>;
|
|
@@ -18,6 +18,7 @@ interface FlowMenuVM extends FlowVM {
|
|
|
18
18
|
}
|
|
19
19
|
export declare class GioPolicyStudioFlowsMenuComponent implements OnChanges {
|
|
20
20
|
private readonly matDialog;
|
|
21
|
+
readOnly: boolean;
|
|
21
22
|
loading: boolean;
|
|
22
23
|
apiType: ApiType;
|
|
23
24
|
flowExecution: FlowExecution;
|
|
@@ -34,6 +35,6 @@ export declare class GioPolicyStudioFlowsMenuComponent implements OnChanges {
|
|
|
34
35
|
onAddFlow(flowGroup: FlowGroupVM): void;
|
|
35
36
|
onConfigureExecution(flowExecution: FlowExecution): void;
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioFlowsMenuComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioFlowsMenuComponent, "gio-ps-flows-menu", never, { "loading": { "alias": "loading"; "required": false; }; "apiType": { "alias": "apiType"; "required": false; }; "flowExecution": { "alias": "flowExecution"; "required": false; }; "flowsGroups": { "alias": "flowsGroups"; "required": false; }; "selectedFlow": { "alias": "selectedFlow"; "required": false; }; "entrypoints": { "alias": "entrypoints"; "required": false; }; }, { "selectedFlowChange": "selectedFlowChange"; "flowsGroupsChange": "flowsGroupsChange"; "flowExecutionChange": "flowExecutionChange"; }, never, never, false, 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; }; "selectedFlow": { "alias": "selectedFlow"; "required": false; }; "entrypoints": { "alias": "entrypoints"; "required": false; }; }, { "selectedFlowChange": "selectedFlowChange"; "flowsGroupsChange": "flowsGroupsChange"; "flowExecutionChange": "flowExecutionChange"; }, never, never, false, never>;
|
|
38
39
|
}
|
|
39
40
|
export {};
|
|
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export type GioPolicyStudioStepEditDialogData = {
|
|
5
5
|
policy: Policy;
|
|
6
6
|
step: Step;
|
|
7
|
+
readOnly?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export type GioPolicyStudioStepEditDialogResult = undefined | Step;
|
|
9
10
|
export declare class GioPolicyStudioStepEditDialogComponent {
|
|
@@ -11,6 +12,7 @@ export declare class GioPolicyStudioStepEditDialogComponent {
|
|
|
11
12
|
policy: Policy;
|
|
12
13
|
step: Step;
|
|
13
14
|
isValid: boolean;
|
|
15
|
+
readOnly: boolean;
|
|
14
16
|
constructor(dialogRef: MatDialogRef<GioPolicyStudioStepEditDialogComponent, GioPolicyStudioStepEditDialogResult>, flowDialogData: GioPolicyStudioStepEditDialogData);
|
|
15
17
|
onSave(): void;
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioStepEditDialogComponent, never>;
|
|
@@ -7,6 +7,7 @@ import { Policy, Step } from '../../models';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class GioPolicyStudioStepFormComponent implements OnChanges, OnInit, OnDestroy {
|
|
9
9
|
private readonly policyStudioService;
|
|
10
|
+
readOnly: boolean;
|
|
10
11
|
step?: Step;
|
|
11
12
|
policy: Policy;
|
|
12
13
|
stepChange: EventEmitter<Step>;
|
|
@@ -22,5 +23,5 @@ export declare class GioPolicyStudioStepFormComponent implements OnChanges, OnIn
|
|
|
22
23
|
private initStepForm;
|
|
23
24
|
onJsonSchemaReady(isReady: boolean): void;
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioStepFormComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioStepFormComponent, "gio-ps-step-form", never, { "step": { "alias": "step"; "required": false; }; "policy": { "alias": "policy"; "required": false; }; }, { "stepChange": "stepChange"; "isValid": "isValid"; }, never, never, false, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioStepFormComponent, "gio-ps-step-form", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "step": { "alias": "step"; "required": false; }; "policy": { "alias": "policy"; "required": false; }; }, { "stepChange": "stepChange"; "isValid": "isValid"; }, never, never, false, never>;
|
|
26
27
|
}
|
|
@@ -5,6 +5,10 @@ import { GioPolicyStudioService } from './gio-policy-studio.service';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class GioPolicyStudioComponent implements OnChanges, OnDestroy {
|
|
7
7
|
private readonly policyStudioService;
|
|
8
|
+
/**
|
|
9
|
+
* May be set to `true` if the API is not manageable from the UI (e.g. kubernetes operator APIs)
|
|
10
|
+
*/
|
|
11
|
+
readOnly: boolean;
|
|
8
12
|
/**
|
|
9
13
|
* API type (required)
|
|
10
14
|
*/
|
|
@@ -74,5 +78,5 @@ export declare class GioPolicyStudioComponent implements OnChanges, OnDestroy {
|
|
|
74
78
|
onDeleteSelectedFlow(flow: FlowVM): void;
|
|
75
79
|
onSave(): void;
|
|
76
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioComponent, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioComponent, "gio-policy-studio", never, { "apiType": { "alias": "apiType"; "required": false; }; "flowExecution": { "alias": "flowExecution"; "required": false; }; "entrypointsInfo": { "alias": "entrypointsInfo"; "required": false; }; "endpointsInfo": { "alias": "endpointsInfo"; "required": false; }; "commonFlows": { "alias": "commonFlows"; "required": false; }; "plans": { "alias": "plans"; "required": false; }; "policies": { "alias": "policies"; "required": false; }; "trialUrl": { "alias": "trialUrl"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "policySchemaFetcher": { "alias": "policySchemaFetcher"; "required": false; }; "policyDocumentationFetcher": { "alias": "policyDocumentationFetcher"; "required": false; }; }, { "save": "save"; }, never, never, false, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioComponent, "gio-policy-studio", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "apiType": { "alias": "apiType"; "required": false; }; "flowExecution": { "alias": "flowExecution"; "required": false; }; "entrypointsInfo": { "alias": "entrypointsInfo"; "required": false; }; "endpointsInfo": { "alias": "endpointsInfo"; "required": false; }; "commonFlows": { "alias": "commonFlows"; "required": false; }; "plans": { "alias": "plans"; "required": false; }; "policies": { "alias": "policies"; "required": false; }; "trialUrl": { "alias": "trialUrl"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "policySchemaFetcher": { "alias": "policySchemaFetcher"; "required": false; }; "policyDocumentationFetcher": { "alias": "policyDocumentationFetcher"; "required": false; }; }, { "save": "save"; }, never, never, false, never>;
|
|
78
82
|
}
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ export declare class GioPolicyStudioDetailsHarness extends ComponentHarness {
|
|
|
4
4
|
isDisplayEmptyFlow(): Promise<boolean>;
|
|
5
5
|
getFlowInfos(): Promise<Record<string, (string | null)[]>>;
|
|
6
6
|
matchText(matcher: RegExp): Promise<boolean>;
|
|
7
|
+
isReadOnly(): Promise<boolean>;
|
|
7
8
|
clickEditFlowBtn(): Promise<void>;
|
|
8
9
|
clickDeleteFlowBtn(): Promise<void>;
|
|
9
10
|
}
|
|
@@ -23,5 +23,6 @@ export declare class GioPolicyStudioFlowsMenuHarness extends ComponentHarness {
|
|
|
23
23
|
*/
|
|
24
24
|
selectFlow(flowText: string | RegExp): Promise<void>;
|
|
25
25
|
addFlow(groupName: string | RegExp): Promise<void>;
|
|
26
|
+
isReadOnly(): Promise<boolean>;
|
|
26
27
|
openFlowExecutionConfig(): Promise<void>;
|
|
27
28
|
}
|