@gravitee/ui-policy-studio-angular 7.7.1 → 7.8.0-fix-export-toogle-directive-2b05de7
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/esm2020/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog-result.model.mjs +17 -0
- package/esm2020/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.mjs +60 -0
- package/esm2020/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.component.mjs +17 -5
- package/esm2020/lib/components/flows-menu/gio-ps-flows-menu.component.mjs +28 -3
- package/esm2020/lib/gio-policy-studio.component.mjs +15 -4
- package/esm2020/lib/gio-policy-studio.module.mjs +12 -2
- package/esm2020/lib/models/SaveOutput.mjs +1 -1
- package/esm2020/lib/models/flow/HttpMethod.mjs +27 -1
- package/esm2020/testing/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.harness.mjs +60 -0
- package/esm2020/testing/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.harness.mjs +48 -7
- package/esm2020/testing/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.harness.mjs +36 -7
- package/esm2020/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.mjs +4 -1
- package/esm2020/testing/lib/gio-policy-studio.harness.mjs +8 -1
- package/esm2020/testing/lib/models/SaveOutput.mjs +1 -1
- package/esm2020/testing/lib/models/flow/FlowExecution.fixture.mjs +43 -0
- package/esm2020/testing/lib/models/flow/HttpMethod.mjs +27 -1
- package/esm2020/testing/lib/models/flow/index-testing.mjs +2 -1
- package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs +207 -13
- package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2015/gravitee-ui-policy-studio-angular.mjs +142 -17
- package/fesm2015/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs +191 -13
- package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2020/gravitee-ui-policy-studio-angular.mjs +142 -14
- package/fesm2020/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog-result.model.d.ts +2 -0
- package/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.d.ts +17 -0
- package/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.component.d.ts +1 -0
- package/lib/components/flows-menu/gio-ps-flows-menu.component.d.ts +5 -2
- package/lib/gio-policy-studio.component.d.ts +5 -2
- package/lib/gio-policy-studio.module.d.ts +18 -16
- package/lib/models/SaveOutput.d.ts +2 -1
- package/lib/models/flow/HttpMethod.d.ts +1 -0
- package/package.json +1 -1
- package/testing/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.harness.d.ts +13 -0
- package/testing/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.harness.d.ts +21 -0
- package/testing/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.harness.d.ts +18 -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 +2 -1
- package/testing/lib/models/SaveOutput.d.ts +2 -1
- package/testing/lib/models/flow/FlowExecution.fixture.d.ts +3 -0
- package/testing/lib/models/flow/HttpMethod.d.ts +1 -0
- package/testing/lib/models/flow/index-testing.d.ts +1 -0
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const HttpMethods: readonly ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE", "OTHER"];
|
|
2
2
|
export declare type HttpMethod = (typeof HttpMethods)[number];
|
|
3
|
+
export declare const toHttpMethod: (value: string) => HttpMethod | undefined;
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
export declare type GioPolicyStudioFlowMessageHarnessData = {
|
|
3
|
+
name: string;
|
|
4
|
+
channelOperator: string;
|
|
5
|
+
channel: string;
|
|
6
|
+
entrypoints: string[];
|
|
7
|
+
operations: string[];
|
|
8
|
+
condition: string;
|
|
9
|
+
};
|
|
2
10
|
export declare class GioPolicyStudioFlowMessageFormDialogHarness extends ComponentHarness {
|
|
3
11
|
static hostSelector: string;
|
|
4
12
|
private getSaveBtn;
|
|
5
13
|
private getCancelBtn;
|
|
14
|
+
private nameInput;
|
|
15
|
+
private channelOperatorInput;
|
|
16
|
+
private channelInput;
|
|
17
|
+
private operationsInput;
|
|
18
|
+
private entrypointsInput;
|
|
19
|
+
private conditionInput;
|
|
6
20
|
setFlowFormValues(flow: {
|
|
7
21
|
name?: string;
|
|
8
22
|
channelOperator?: string;
|
|
@@ -11,6 +25,13 @@ export declare class GioPolicyStudioFlowMessageFormDialogHarness extends Compone
|
|
|
11
25
|
entrypoints?: string[];
|
|
12
26
|
condition?: string;
|
|
13
27
|
}): Promise<void>;
|
|
28
|
+
getName(): Promise<string>;
|
|
29
|
+
getChannelOperator(): Promise<string>;
|
|
30
|
+
getChannel(): Promise<string>;
|
|
31
|
+
getOperations(): Promise<string>;
|
|
32
|
+
getEntrypoints(): Promise<string>;
|
|
33
|
+
getCondition(): Promise<string>;
|
|
14
34
|
save(): Promise<void>;
|
|
15
35
|
cancel(): Promise<void>;
|
|
36
|
+
getFormValues(): Promise<GioPolicyStudioFlowMessageHarnessData>;
|
|
16
37
|
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
export declare type GioPolicyStudioFlowProxyHarnessData = {
|
|
3
|
+
name: string;
|
|
4
|
+
pathOperator: string;
|
|
5
|
+
path: string;
|
|
6
|
+
methods: string[];
|
|
7
|
+
condition: string;
|
|
8
|
+
};
|
|
2
9
|
export declare class GioPolicyStudioFlowProxyFormDialogHarness extends ComponentHarness {
|
|
3
10
|
static hostSelector: string;
|
|
4
11
|
private getSaveBtn;
|
|
5
12
|
private getCancelBtn;
|
|
13
|
+
private nameInput;
|
|
14
|
+
private pathOperatorInput;
|
|
15
|
+
private pathInput;
|
|
16
|
+
private methodsInput;
|
|
17
|
+
private conditionInput;
|
|
6
18
|
setFlowFormValues(flow: {
|
|
7
19
|
name?: string;
|
|
8
20
|
pathOperator?: string;
|
|
@@ -10,6 +22,12 @@ export declare class GioPolicyStudioFlowProxyFormDialogHarness extends Component
|
|
|
10
22
|
methods?: string[];
|
|
11
23
|
condition?: string;
|
|
12
24
|
}): Promise<void>;
|
|
25
|
+
getFlowFormValues(): Promise<GioPolicyStudioFlowProxyHarnessData>;
|
|
26
|
+
getFlowName(): Promise<string>;
|
|
27
|
+
getFlowPath(): Promise<string>;
|
|
28
|
+
getPathOperator(): Promise<string>;
|
|
29
|
+
getMethods(): Promise<string[]>;
|
|
30
|
+
getCondition(): Promise<string>;
|
|
13
31
|
save(): Promise<void>;
|
|
14
32
|
cancel(): Promise<void>;
|
|
15
33
|
}
|
|
@@ -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
|
}
|
|
@@ -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,2 +1,3 @@
|
|
|
1
1
|
export declare const HttpMethods: readonly ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE", "OTHER"];
|
|
2
2
|
export declare type HttpMethod = (typeof HttpMethods)[number];
|
|
3
|
+
export declare const toHttpMethod: (value: string) => HttpMethod | undefined;
|