@gravitee/ui-policy-studio-angular 12.19.0 → 12.20.0-prerequisitemessage-0633ed0

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.
@@ -11,8 +11,9 @@ export declare class GioPolicyStudioDetailsPhaseStepComponent implements OnChang
11
11
  stepChange: EventEmitter<Step>;
12
12
  deleted: EventEmitter<void>;
13
13
  disabled: EventEmitter<void>;
14
- genericPolicy?: GenericPolicy;
15
- protected policyIcon?: string;
14
+ protected genericPolicy?: GenericPolicy;
15
+ protected policyNotFound: false | 'SHARED_POLICY_GROUP' | 'POLICY';
16
+ protected get getPrerequisiteMessage(): string | undefined;
16
17
  constructor(matDialog: MatDialog);
17
18
  ngOnChanges(changes: SimpleChanges): void;
18
19
  onEditOrView(): void;
@@ -15,6 +15,7 @@ export declare class GioPolicyStudioStepFormComponent implements OnChanges, OnIn
15
15
  isValid: EventEmitter<boolean>;
16
16
  policySchema$?: Observable<GioJsonSchema | null | undefined>;
17
17
  policyDocumentation$?: Observable<string>;
18
+ infoBanner?: string;
18
19
  stepForm?: UntypedFormGroup;
19
20
  context?: GioJsonSchemaContext;
20
21
  private unsubscribe$;
@@ -5,6 +5,7 @@ export type SharedPolicyGroupPolicy = {
5
5
  policyId: string;
6
6
  name: string;
7
7
  description?: string;
8
+ prerequisiteMessage?: string;
8
9
  apiType: ApiType;
9
10
  phase: ExecutionPhase;
10
11
  };
@@ -16,6 +16,10 @@ export declare class GioPolicyGroupStudioComponent implements OnChanges {
16
16
  * List of policies usable in the studio
17
17
  */
18
18
  policies: Policy[];
19
+ /**
20
+ * Whether the Policy Group Studio is in read-only mode
21
+ */
22
+ readOnly: boolean;
19
23
  /**
20
24
  * Type of the API targeted by the Policy Group Studio
21
25
  */
@@ -40,7 +44,6 @@ export declare class GioPolicyGroupStudioComponent implements OnChanges {
40
44
  */
41
45
  policyGroupChange: EventEmitter<PolicyGroupOutput>;
42
46
  protected isLoading: boolean;
43
- protected readOnly: boolean;
44
47
  protected startConnector: (name: string) => ConnectorInfo[];
45
48
  protected endConnector: (name: string) => ConnectorInfo[];
46
49
  protected policyGroupVM?: PolicyGroupVM;
@@ -52,7 +55,7 @@ export declare class GioPolicyGroupStudioComponent implements OnChanges {
52
55
  ngOnChanges(changes: SimpleChanges): void;
53
56
  protected onStepsChange(steps: Step[]): void;
54
57
  static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyGroupStudioComponent, never>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyGroupStudioComponent, "gio-policy-group-studio", never, { "policies": { "alias": "policies"; "required": false; }; "apiType": { "alias": "apiType"; "required": true; }; "executionPhase": { "alias": "executionPhase"; "required": true; }; "policySchemaFetcher": { "alias": "policySchemaFetcher"; "required": true; }; "policyDocumentationFetcher": { "alias": "policyDocumentationFetcher"; "required": true; }; "policyGroup": { "alias": "policyGroup"; "required": false; }; }, { "policyGroupChange": "policyGroupChange"; }, never, never, true, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyGroupStudioComponent, "gio-policy-group-studio", never, { "policies": { "alias": "policies"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "apiType": { "alias": "apiType"; "required": true; }; "executionPhase": { "alias": "executionPhase"; "required": true; }; "policySchemaFetcher": { "alias": "policySchemaFetcher"; "required": true; }; "policyDocumentationFetcher": { "alias": "policyDocumentationFetcher"; "required": true; }; "policyGroup": { "alias": "policyGroup"; "required": false; }; }, { "policyGroupChange": "policyGroupChange"; }, never, never, true, never>;
56
59
  static ngAcceptInputType_policies: unknown;
57
60
  }
58
61
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-policy-studio-angular",
3
- "version": "12.19.0",
3
+ "version": "12.20.0-prerequisitemessage-0633ed0",
4
4
  "description": "Gravitee.io - UI Policy Studio Angular",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,6 +11,7 @@ export declare class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHar
11
11
  static with(options?: GioPolicyStudioDetailsPhaseStepHarnessFilters): HarnessPredicate<GioPolicyStudioDetailsPhaseStepHarness>;
12
12
  getName(): Promise<string>;
13
13
  getDescription(): Promise<string | undefined>;
14
+ getInfoMessage(): Promise<string | undefined>;
14
15
  clickOnEdit(): Promise<void>;
15
16
  clickOnDelete(): Promise<void>;
16
17
  clickOnDisableEnable(): Promise<void>;
@@ -5,6 +5,7 @@ export type SharedPolicyGroupPolicy = {
5
5
  policyId: string;
6
6
  name: string;
7
7
  description?: string;
8
+ prerequisiteMessage?: string;
8
9
  apiType: ApiType;
9
10
  phase: ExecutionPhase;
10
11
  };