@gravitee/ui-policy-studio-angular 7.14.0 → 7.15.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.
- package/esm2020/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.mjs +9 -3
- package/esm2020/lib/components/step-form/gio-ps-step-form.component.mjs +12 -12
- package/esm2020/lib/gio-policy-studio.module.mjs +6 -3
- package/esm2020/testing/lib/components/flow-details-phase/gio-ps-flow-details-phase.harness.mjs +1 -1
- package/esm2020/testing/lib/components/step-form/gio-ps-step-form.harness.mjs +4 -1
- package/esm2020/testing/lib/models/flow/Step.fixture.mjs +5 -2
- package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs +125 -119
- package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2015/gravitee-ui-policy-studio-angular.mjs +22 -15
- package/fesm2015/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs +137 -131
- package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2020/gravitee-ui-policy-studio-angular.mjs +20 -12
- package/fesm2020/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-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.module.d.ts +1 -1
- package/package.json +1 -1
- package/testing/lib/components/flow-details-phase/gio-ps-flow-details-phase.harness.d.ts +3 -5
- package/testing/lib/components/step-form/gio-ps-step-form.harness.d.ts +6 -4
package/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export declare class GioPolicyStudioPoliciesCatalogDialogComponent {
|
|
|
16
16
|
isValid: boolean;
|
|
17
17
|
constructor(dialogRef: MatDialogRef<GioPolicyStudioPoliciesCatalogDialogComponent, GioPolicyStudioPoliciesCatalogDialogResult>, flowDialogData: GioPolicyStudioPoliciesCatalogDialogData);
|
|
18
18
|
onSelectPolicy(policy: Policy): void;
|
|
19
|
+
onStepChange(step: Step): void;
|
|
20
|
+
onIsValid(isValid: boolean): void;
|
|
19
21
|
onAddPolicy(): void;
|
|
20
22
|
onGoBack(): void;
|
|
21
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioPoliciesCatalogDialogComponent, never>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
3
4
|
import { GioPolicyStudioService } from '../../gio-policy-studio.service';
|
|
4
5
|
import { Policy, Step } from '../../models';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
@@ -9,7 +10,7 @@ export declare class GioPolicyStudioStepFormComponent implements OnChanges, OnIn
|
|
|
9
10
|
policy: Policy;
|
|
10
11
|
stepChange: EventEmitter<Step>;
|
|
11
12
|
isValid: EventEmitter<boolean>;
|
|
12
|
-
policySchema$?: unknown
|
|
13
|
+
policySchema$?: Observable<unknown>;
|
|
13
14
|
policyDocumentation$?: unknown;
|
|
14
15
|
stepForm?: FormGroup;
|
|
15
16
|
private unsubscribe$;
|
|
@@ -26,6 +26,6 @@ import * as i24 from "@angular/material/menu";
|
|
|
26
26
|
import * as i25 from "@gravitee/ui-particles-angular";
|
|
27
27
|
export declare class GioPolicyStudioModule {
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GioPolicyStudioModule, [typeof i1.GioPolicyStudioComponent, typeof i2.GioPolicyStudioFlowsMenuComponent, typeof i3.GioPolicyStudioDetailsComponent, typeof i4.GioPolicyStudioFlowExecutionFormDialogComponent, typeof i5.GioPolicyStudioFlowMessageFormDialogComponent, typeof i6.GioPolicyStudioFlowProxyFormDialogComponent, typeof i7.GioPolicyStudioDetailsInfoBarComponent, typeof i8.GioPolicyStudioDetailsPhaseComponent, typeof i9.GioPolicyStudioDetailsPhaseStepComponent, typeof i10.GioFilterConnectorsByModePipe, typeof i11.GioPolicyStudioPoliciesCatalogDialogComponent, typeof i12.GioPolicyStudioStepEditDialogComponent, typeof i13.GioPolicyStudioStepFormComponent], [typeof i14.CommonModule, typeof i15.ReactiveFormsModule, typeof i16.MatButtonModule, typeof i17.MatTooltipModule, typeof i18.MatFormFieldModule, typeof i19.MatInputModule, typeof i20.MatSelectModule, typeof i21.MatSlideToggleModule, typeof i22.MatDialogModule, typeof i23.MatTabsModule, typeof i24.MatMenuModule, typeof i25.GioIconsModule, typeof i25.GioFormSlideToggleModule, typeof i25.GioFormTagsInputModule, typeof i25.GioBannerModule], [typeof i1.GioPolicyStudioComponent]>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GioPolicyStudioModule, [typeof i1.GioPolicyStudioComponent, typeof i2.GioPolicyStudioFlowsMenuComponent, typeof i3.GioPolicyStudioDetailsComponent, typeof i4.GioPolicyStudioFlowExecutionFormDialogComponent, typeof i5.GioPolicyStudioFlowMessageFormDialogComponent, typeof i6.GioPolicyStudioFlowProxyFormDialogComponent, typeof i7.GioPolicyStudioDetailsInfoBarComponent, typeof i8.GioPolicyStudioDetailsPhaseComponent, typeof i9.GioPolicyStudioDetailsPhaseStepComponent, typeof i10.GioFilterConnectorsByModePipe, typeof i11.GioPolicyStudioPoliciesCatalogDialogComponent, typeof i12.GioPolicyStudioStepEditDialogComponent, typeof i13.GioPolicyStudioStepFormComponent], [typeof i14.CommonModule, typeof i15.ReactiveFormsModule, typeof i16.MatButtonModule, typeof i17.MatTooltipModule, typeof i18.MatFormFieldModule, typeof i19.MatInputModule, typeof i20.MatSelectModule, typeof i21.MatSlideToggleModule, typeof i22.MatDialogModule, typeof i23.MatTabsModule, typeof i24.MatMenuModule, typeof i25.GioIconsModule, typeof i25.GioFormSlideToggleModule, typeof i25.GioFormTagsInputModule, typeof i25.GioBannerModule, typeof i25.GioFormJsonSchemaModule], [typeof i1.GioPolicyStudioComponent]>;
|
|
30
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<GioPolicyStudioModule>;
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
2
|
import { GioPolicyStudioDetailsPhaseStepHarness } from '../flow-details-phase-step/gio-ps-flow-details-phase-step.harness';
|
|
3
|
+
import { StepForm } from '../step-form/gio-ps-step-form.harness';
|
|
3
4
|
export declare type PhaseType = 'REQUEST' | 'RESPONSE' | 'PUBLISH' | 'SUBSCRIBE';
|
|
4
5
|
export declare type GioPolicyStudioDetailsPhaseHarnessFilters = BaseHarnessFilters & {
|
|
5
6
|
type?: PhaseType;
|
|
@@ -32,16 +33,13 @@ export declare class GioPolicyStudioDetailsPhaseHarness extends ComponentHarness
|
|
|
32
33
|
*/
|
|
33
34
|
addStep(index: number, stepConfig: {
|
|
34
35
|
policyName: string;
|
|
35
|
-
|
|
36
|
-
}): Promise<void>;
|
|
36
|
+
} & StepForm): Promise<void>;
|
|
37
37
|
/**
|
|
38
38
|
* Edit a step configuration
|
|
39
39
|
* @param index Index of the policy step to edit
|
|
40
40
|
* @param stepConfig Step configuration
|
|
41
41
|
*/
|
|
42
|
-
editStep(index: number, stepConfig:
|
|
43
|
-
description?: string;
|
|
44
|
-
}): Promise<void>;
|
|
42
|
+
editStep(index: number, stepConfig: StepForm): Promise<void>;
|
|
45
43
|
/**
|
|
46
44
|
* Delete a step
|
|
47
45
|
* @param index Index of the policy step to delete
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
1
|
+
import { ComponentHarness, LocatorFactory } from '@angular/cdk/testing';
|
|
2
|
+
export declare type StepForm = {
|
|
3
|
+
description?: string;
|
|
4
|
+
waitForPolicyFormCompletionCb?: (locator: LocatorFactory) => Promise<void>;
|
|
5
|
+
};
|
|
2
6
|
export declare class GioPolicyStudioStepFormHarness extends ComponentHarness {
|
|
3
7
|
static hostSelector: string;
|
|
4
8
|
private getDescriptionInput;
|
|
5
|
-
setStepForm(stepForm:
|
|
6
|
-
description?: string;
|
|
7
|
-
}): Promise<void>;
|
|
9
|
+
setStepForm(stepForm: StepForm): Promise<void>;
|
|
8
10
|
getStepFormValue(): Promise<{
|
|
9
11
|
description?: string;
|
|
10
12
|
}>;
|