@gravitee/ui-policy-studio-angular 1.4.4-design-studio-angular-25dba8c → 1.5.0-design-studio-angular-part2-5304ad0

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.
Files changed (181) hide show
  1. package/bundles/gravitee-ui-policy-studio-angular-testing.umd.js +5728 -0
  2. package/bundles/gravitee-ui-policy-studio-angular-testing.umd.js.map +1 -0
  3. package/bundles/gravitee-ui-policy-studio-angular.umd.js +4569 -36
  4. package/bundles/gravitee-ui-policy-studio-angular.umd.js.map +1 -1
  5. package/esm2015/lib/gio-policy-studio.component.js +157 -0
  6. package/esm2015/lib/gio-policy-studio.module.js +60 -0
  7. package/esm2015/lib/models/flow/ConfigurationSchema.fixture.js +25 -0
  8. package/esm2015/lib/models/flow/ConfigurationSchema.js +2 -0
  9. package/esm2015/lib/models/flow/OrganizationFlowConfiguration.fixture.js +7 -0
  10. package/esm2015/lib/models/flow/OrganizationFlowConfiguration.js +2 -0
  11. package/esm2015/lib/models/flow/PlatformFlowSchema.fixture.js +69 -0
  12. package/esm2015/lib/models/flow/PlatformFlowSchema.js +17 -0
  13. package/esm2015/lib/models/flow/index.js +19 -0
  14. package/esm2015/lib/models/flow/testing.js +19 -0
  15. package/esm2015/lib/models/index.js +21 -0
  16. package/esm2015/lib/models/json.js +2 -0
  17. package/esm2015/lib/models/policy/PolicyDocumentation.fixture.js +218 -0
  18. package/esm2015/lib/models/policy/PolicyDocumentation.js +2 -0
  19. package/esm2015/lib/models/policy/PolicyListItem.fixture.js +15 -0
  20. package/esm2015/lib/models/policy/PolicyListItem.js +2 -0
  21. package/esm2015/lib/models/policy/PolicySchema.fixture.js +5 -0
  22. package/esm2015/lib/models/policy/PolicySchema.js +2 -0
  23. package/esm2015/lib/models/policy/index.js +19 -0
  24. package/esm2015/lib/models/policy/testing.js +19 -0
  25. package/esm2015/lib/models/resource/ResourceDocumentation.fixture.js +70 -0
  26. package/esm2015/lib/models/resource/ResourceDocumentation.js +2 -0
  27. package/esm2015/lib/models/resource/ResourceListItem.fixture.js +12 -0
  28. package/esm2015/lib/models/resource/ResourceListItem.js +2 -0
  29. package/esm2015/lib/models/resource/index.js +18 -0
  30. package/esm2015/lib/models/resource/testing.js +18 -0
  31. package/esm2015/lib/models/spel/Grammar.fixture.js +3693 -0
  32. package/esm2015/lib/models/spel/Grammar.js +17 -0
  33. package/esm2015/lib/models/spel/index.js +17 -0
  34. package/esm2015/lib/models/spel/testing.js +17 -0
  35. package/esm2015/lib/services/flow.abstract.service.js +3 -0
  36. package/esm2015/lib/services/flow.service.fixture.js +37 -0
  37. package/esm2015/lib/services/policy.abstract.service.js +3 -0
  38. package/esm2015/lib/services/policy.service.fixture.js +41 -0
  39. package/esm2015/lib/services/resource.abstract.service.js +3 -0
  40. package/esm2015/lib/services/resource.service.fixture.js +34 -0
  41. package/esm2015/lib/services/spel.abstract.service.js +3 -0
  42. package/esm2015/lib/services/spel.service.fixture.js +34 -0
  43. package/esm2015/public-api.js +4 -4
  44. package/esm2015/testing/gravitee-ui-policy-studio-angular-testing.js +5 -0
  45. package/esm2015/testing/lib/models/flow/ConfigurationSchema.fixture.js +25 -0
  46. package/esm2015/testing/lib/models/flow/ConfigurationSchema.js +2 -0
  47. package/esm2015/testing/lib/models/flow/OrganizationFlowConfiguration.fixture.js +7 -0
  48. package/esm2015/testing/lib/models/flow/OrganizationFlowConfiguration.js +2 -0
  49. package/esm2015/testing/lib/models/flow/PlatformFlowSchema.fixture.js +69 -0
  50. package/esm2015/testing/lib/models/flow/PlatformFlowSchema.js +17 -0
  51. package/esm2015/testing/lib/models/flow/index.js +19 -0
  52. package/esm2015/testing/lib/models/flow/testing.js +19 -0
  53. package/esm2015/testing/lib/models/json.js +2 -0
  54. package/esm2015/testing/lib/models/policy/PolicyDocumentation.fixture.js +218 -0
  55. package/esm2015/testing/lib/models/policy/PolicyDocumentation.js +2 -0
  56. package/esm2015/testing/lib/models/policy/PolicyListItem.fixture.js +15 -0
  57. package/esm2015/testing/lib/models/policy/PolicyListItem.js +2 -0
  58. package/esm2015/testing/lib/models/policy/PolicySchema.fixture.js +5 -0
  59. package/esm2015/testing/lib/models/policy/PolicySchema.js +2 -0
  60. package/esm2015/testing/lib/models/policy/index.js +19 -0
  61. package/esm2015/testing/lib/models/policy/testing.js +19 -0
  62. package/esm2015/testing/lib/models/resource/ResourceDocumentation.fixture.js +70 -0
  63. package/esm2015/testing/lib/models/resource/ResourceDocumentation.js +2 -0
  64. package/esm2015/testing/lib/models/resource/ResourceListItem.fixture.js +12 -0
  65. package/esm2015/testing/lib/models/resource/ResourceListItem.js +2 -0
  66. package/esm2015/testing/lib/models/resource/index.js +18 -0
  67. package/esm2015/testing/lib/models/resource/testing.js +18 -0
  68. package/esm2015/testing/lib/models/spel/Grammar.fixture.js +3693 -0
  69. package/esm2015/testing/lib/models/spel/Grammar.js +17 -0
  70. package/esm2015/testing/lib/models/spel/index.js +17 -0
  71. package/esm2015/testing/lib/models/spel/testing.js +17 -0
  72. package/esm2015/testing/lib/models/testing.js +20 -0
  73. package/esm2015/testing/lib/services/flow.abstract.service.js +3 -0
  74. package/esm2015/testing/lib/services/flow.service.fixture.js +37 -0
  75. package/esm2015/testing/lib/services/policy.abstract.service.js +3 -0
  76. package/esm2015/testing/lib/services/policy.service.fixture.js +41 -0
  77. package/esm2015/testing/lib/services/resource.abstract.service.js +3 -0
  78. package/esm2015/testing/lib/services/resource.service.fixture.js +34 -0
  79. package/esm2015/testing/lib/services/spel.abstract.service.js +3 -0
  80. package/esm2015/testing/lib/services/spel.service.fixture.js +34 -0
  81. package/esm2015/testing/lib/services/testing.js +20 -0
  82. package/esm2015/testing/public-testing-api.js +19 -0
  83. package/esm2015/testing/testing/index.js +17 -0
  84. package/esm2015/testing/testing/stories-resources/apim-definition.json +405 -0
  85. package/esm2015/testing/testing/stories-resources/apim-flow.json +54 -0
  86. package/esm2015/testing/testing/stories-resources/apim-policies.json +486 -0
  87. package/esm2015/testing/testing/stories-resources/apim-property-providers.json +39 -0
  88. package/esm2015/testing/testing/stories-resources/apim-resource-types.json +187 -0
  89. package/esm2015/testing/testing/stories-resources/index.js +26 -0
  90. package/fesm2015/gravitee-ui-policy-studio-angular-testing.js +5699 -0
  91. package/fesm2015/gravitee-ui-policy-studio-angular-testing.js.map +1 -0
  92. package/fesm2015/gravitee-ui-policy-studio-angular.js +4572 -25
  93. package/fesm2015/gravitee-ui-policy-studio-angular.js.map +1 -1
  94. package/lib/gio-policy-studio.component.d.ts +79 -0
  95. package/lib/gio-policy-studio.module.d.ts +8 -0
  96. package/lib/models/flow/ConfigurationSchema.d.ts +2 -0
  97. package/lib/models/flow/ConfigurationSchema.fixture.d.ts +2 -0
  98. package/lib/models/flow/OrganizationFlowConfiguration.d.ts +3 -0
  99. package/lib/models/flow/OrganizationFlowConfiguration.fixture.d.ts +2 -0
  100. package/lib/models/flow/PlatformFlowSchema.d.ts +2 -0
  101. package/lib/models/flow/PlatformFlowSchema.fixture.d.ts +2 -0
  102. package/lib/models/flow/index.d.ts +3 -0
  103. package/lib/models/flow/testing.d.ts +3 -0
  104. package/lib/models/index.d.ts +5 -0
  105. package/lib/models/json.d.ts +3 -0
  106. package/lib/models/policy/PolicyDocumentation.d.ts +1 -0
  107. package/lib/models/policy/PolicyDocumentation.fixture.d.ts +2 -0
  108. package/lib/models/policy/PolicyListItem.d.ts +13 -0
  109. package/lib/models/policy/PolicyListItem.fixture.d.ts +2 -0
  110. package/lib/models/policy/PolicySchema.d.ts +1 -0
  111. package/lib/models/policy/PolicySchema.fixture.d.ts +2 -0
  112. package/lib/models/policy/index.d.ts +3 -0
  113. package/lib/models/policy/testing.d.ts +3 -0
  114. package/lib/models/resource/ResourceDocumentation.d.ts +1 -0
  115. package/lib/models/resource/ResourceDocumentation.fixture.d.ts +2 -0
  116. package/lib/models/resource/ResourceListItem.d.ts +8 -0
  117. package/lib/models/resource/ResourceListItem.fixture.d.ts +2 -0
  118. package/lib/models/resource/index.d.ts +2 -0
  119. package/lib/models/resource/testing.d.ts +2 -0
  120. package/lib/models/spel/Grammar.d.ts +2 -0
  121. package/lib/models/spel/Grammar.fixture.d.ts +2 -0
  122. package/lib/models/spel/index.d.ts +1 -0
  123. package/lib/models/spel/testing.d.ts +1 -0
  124. package/lib/services/flow.abstract.service.d.ts +7 -0
  125. package/lib/services/flow.service.fixture.d.ts +11 -0
  126. package/lib/services/policy.abstract.service.d.ts +14 -0
  127. package/lib/services/policy.service.fixture.d.ts +13 -0
  128. package/lib/services/resource.abstract.service.d.ts +11 -0
  129. package/lib/services/resource.service.fixture.d.ts +10 -0
  130. package/lib/services/spel.abstract.service.d.ts +5 -0
  131. package/lib/services/spel.service.fixture.d.ts +9 -0
  132. package/package.json +5 -2
  133. package/public-api.d.ts +3 -3
  134. package/testing/gravitee-ui-policy-studio-angular-testing.d.ts +5 -0
  135. package/testing/lib/models/flow/ConfigurationSchema.d.ts +2 -0
  136. package/testing/lib/models/flow/ConfigurationSchema.fixture.d.ts +2 -0
  137. package/testing/lib/models/flow/OrganizationFlowConfiguration.d.ts +3 -0
  138. package/testing/lib/models/flow/OrganizationFlowConfiguration.fixture.d.ts +2 -0
  139. package/testing/lib/models/flow/PlatformFlowSchema.d.ts +2 -0
  140. package/testing/lib/models/flow/PlatformFlowSchema.fixture.d.ts +2 -0
  141. package/testing/lib/models/flow/index.d.ts +3 -0
  142. package/testing/lib/models/flow/testing.d.ts +3 -0
  143. package/testing/lib/models/json.d.ts +3 -0
  144. package/testing/lib/models/policy/PolicyDocumentation.d.ts +1 -0
  145. package/testing/lib/models/policy/PolicyDocumentation.fixture.d.ts +2 -0
  146. package/testing/lib/models/policy/PolicyListItem.d.ts +13 -0
  147. package/testing/lib/models/policy/PolicyListItem.fixture.d.ts +2 -0
  148. package/testing/lib/models/policy/PolicySchema.d.ts +1 -0
  149. package/testing/lib/models/policy/PolicySchema.fixture.d.ts +2 -0
  150. package/testing/lib/models/policy/index.d.ts +3 -0
  151. package/testing/lib/models/policy/testing.d.ts +3 -0
  152. package/testing/lib/models/resource/ResourceDocumentation.d.ts +1 -0
  153. package/testing/lib/models/resource/ResourceDocumentation.fixture.d.ts +2 -0
  154. package/testing/lib/models/resource/ResourceListItem.d.ts +8 -0
  155. package/testing/lib/models/resource/ResourceListItem.fixture.d.ts +2 -0
  156. package/testing/lib/models/resource/index.d.ts +2 -0
  157. package/testing/lib/models/resource/testing.d.ts +2 -0
  158. package/testing/lib/models/spel/Grammar.d.ts +2 -0
  159. package/testing/lib/models/spel/Grammar.fixture.d.ts +2 -0
  160. package/testing/lib/models/spel/index.d.ts +1 -0
  161. package/testing/lib/models/spel/testing.d.ts +1 -0
  162. package/testing/lib/models/testing.d.ts +4 -0
  163. package/testing/lib/services/flow.abstract.service.d.ts +7 -0
  164. package/testing/lib/services/flow.service.fixture.d.ts +11 -0
  165. package/testing/lib/services/policy.abstract.service.d.ts +14 -0
  166. package/testing/lib/services/policy.service.fixture.d.ts +13 -0
  167. package/testing/lib/services/resource.abstract.service.d.ts +11 -0
  168. package/testing/lib/services/resource.service.fixture.d.ts +10 -0
  169. package/testing/lib/services/spel.abstract.service.d.ts +5 -0
  170. package/testing/lib/services/spel.service.fixture.d.ts +9 -0
  171. package/testing/lib/services/testing.d.ts +4 -0
  172. package/testing/package.json +10 -0
  173. package/testing/public-testing-api.d.ts +3 -0
  174. package/testing/testing/index.d.ts +1 -0
  175. package/testing/testing/stories-resources/index.d.ts +592 -0
  176. package/esm2015/lib/ui-policy-studio-angular.component.js +0 -30
  177. package/esm2015/lib/ui-policy-studio-angular.module.js +0 -32
  178. package/esm2015/lib/ui-policy-studio-angular.service.js +0 -29
  179. package/lib/ui-policy-studio-angular.component.d.ts +0 -5
  180. package/lib/ui-policy-studio-angular.module.d.ts +0 -7
  181. package/lib/ui-policy-studio-angular.service.d.ts +0 -6
@@ -0,0 +1,2 @@
1
+ import { FlowConfigurationSchema } from './ConfigurationSchema';
2
+ export declare function fakeFlowConfigurationSchema(attributes?: FlowConfigurationSchema): FlowConfigurationSchema;
@@ -0,0 +1,3 @@
1
+ export interface OrganizationFlowConfiguration {
2
+ has_policies: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ import { OrganizationFlowConfiguration } from './OrganizationFlowConfiguration';
2
+ export declare function fakeOrganizationFlowConfiguration(attributes?: Partial<OrganizationFlowConfiguration>): OrganizationFlowConfiguration;
@@ -0,0 +1,2 @@
1
+ import { Json } from '../json';
2
+ export declare type PlatformFlowSchema = Record<string, Json>;
@@ -0,0 +1,2 @@
1
+ import { PlatformFlowSchema } from './PlatformFlowSchema';
2
+ export declare function fakePlatformFlowSchema(attributes?: PlatformFlowSchema): PlatformFlowSchema;
@@ -0,0 +1,3 @@
1
+ export * from './ConfigurationSchema';
2
+ export * from './OrganizationFlowConfiguration';
3
+ export * from './PlatformFlowSchema';
@@ -0,0 +1,3 @@
1
+ export * from './ConfigurationSchema.fixture';
2
+ export * from './OrganizationFlowConfiguration.fixture';
3
+ export * from './PlatformFlowSchema.fixture';
@@ -0,0 +1,5 @@
1
+ export * from './flow';
2
+ export * from './policy';
3
+ export * from './resource';
4
+ export * from './spel';
5
+ export * from './json';
@@ -0,0 +1,3 @@
1
+ export declare type Json = string | number | boolean | null | Json[] | {
2
+ [key: string]: Json;
3
+ };
@@ -0,0 +1 @@
1
+ export declare type PolicyDocumentation = string;
@@ -0,0 +1,2 @@
1
+ import { PolicyDocumentation } from './PolicyDocumentation';
2
+ export declare function fakePolicyDocumentation(attributes?: PolicyDocumentation): PolicyDocumentation;
@@ -0,0 +1,13 @@
1
+ export interface PolicyListItem {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ version: string;
6
+ schema: string;
7
+ icon: string;
8
+ category?: string;
9
+ onRequest: boolean;
10
+ onResponse: boolean;
11
+ documentation?: string;
12
+ type?: 'REQUEST' | 'RESPONSE' | 'REQUEST_RESPONSE';
13
+ }
@@ -0,0 +1,2 @@
1
+ import { PolicyListItem } from './PolicyListItem';
2
+ export declare function fakePolicyListItem(attributes?: Partial<PolicyListItem>): PolicyListItem;
@@ -0,0 +1 @@
1
+ export declare type PolicySchema = string;
@@ -0,0 +1,2 @@
1
+ import { PolicySchema } from './PolicySchema';
2
+ export declare function fakePolicySchema(attributes?: PolicySchema): PolicySchema;
@@ -0,0 +1,3 @@
1
+ export * from './PolicyDocumentation';
2
+ export * from './PolicyListItem';
3
+ export * from './PolicySchema';
@@ -0,0 +1,3 @@
1
+ export * from './PolicyListItem.fixture';
2
+ export * from './PolicyDocumentation.fixture';
3
+ export * from './PolicySchema.fixture';
@@ -0,0 +1 @@
1
+ export declare type ResourceDocumentation = string;
@@ -0,0 +1,2 @@
1
+ import { ResourceDocumentation } from './ResourceDocumentation';
2
+ export declare function fakeResourceDocumentation(attributes?: ResourceDocumentation): ResourceDocumentation;
@@ -0,0 +1,8 @@
1
+ export interface ResourceListItem {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ version: string;
6
+ schema: string;
7
+ icon: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ import { ResourceListItem } from './ResourceListItem';
2
+ export declare function fakeResourceListItem(attributes?: Partial<ResourceListItem>): ResourceListItem;
@@ -0,0 +1,2 @@
1
+ export * from './ResourceDocumentation';
2
+ export * from './ResourceListItem';
@@ -0,0 +1,2 @@
1
+ export * from './ResourceDocumentation.fixture';
2
+ export * from './ResourceListItem.fixture';
@@ -0,0 +1,2 @@
1
+ import { Json } from '../json';
2
+ export declare type Grammar = Record<string, Json>;
@@ -0,0 +1,2 @@
1
+ import { Grammar } from './Grammar';
2
+ export declare function fakeGrammar(attributes?: Partial<Grammar>): Grammar;
@@ -0,0 +1 @@
1
+ export * from './Grammar';
@@ -0,0 +1 @@
1
+ export * from './Grammar.fixture';
@@ -0,0 +1,7 @@
1
+ import { Observable } from 'rxjs';
2
+ import { FlowConfigurationSchema, OrganizationFlowConfiguration, PlatformFlowSchema } from '../models/flow';
3
+ export declare abstract class FlowServiceAbstract {
4
+ abstract getConfigurationSchemaForm(): Observable<FlowConfigurationSchema>;
5
+ abstract getPlatformFlowSchemaForm(): Observable<PlatformFlowSchema>;
6
+ abstract getConfiguration(): Observable<OrganizationFlowConfiguration>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ import { FlowConfigurationSchema, PlatformFlowSchema, OrganizationFlowConfiguration } from '../models/flow';
3
+ import { FlowServiceAbstract } from './flow.abstract.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FlowService extends FlowServiceAbstract {
6
+ getConfigurationSchemaForm(): Observable<FlowConfigurationSchema>;
7
+ getPlatformFlowSchemaForm(): Observable<PlatformFlowSchema>;
8
+ getConfiguration(): Observable<OrganizationFlowConfiguration>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowService>;
11
+ }
@@ -0,0 +1,14 @@
1
+ import { Observable } from 'rxjs';
2
+ import { PolicyDocumentation, PolicyListItem, PolicySchema } from '../models/policy';
3
+ interface ListParams {
4
+ expandSchema?: boolean;
5
+ expandIcon?: boolean;
6
+ withoutResource?: boolean;
7
+ }
8
+ export declare abstract class PolicyServiceAbstract {
9
+ abstract list(params: ListParams): Observable<PolicyListItem[]>;
10
+ abstract listSwaggerPolicies(): Observable<PolicyListItem[]>;
11
+ abstract getSchema(policyId: string): Observable<PolicySchema>;
12
+ abstract getDocumentation(policyId: string): Observable<PolicyDocumentation>;
13
+ }
14
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Observable } from 'rxjs';
2
+ import { PolicyDocumentation, PolicyListItem, PolicySchema } from '../models/policy';
3
+ import { PolicyServiceAbstract } from './policy.abstract.service';
4
+ import { ListParams } from './resource.abstract.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PolicyService extends PolicyServiceAbstract {
7
+ list(_params: ListParams): Observable<PolicyListItem[]>;
8
+ listSwaggerPolicies(): Observable<PolicyListItem[]>;
9
+ getSchema(_policyId: string): Observable<PolicySchema>;
10
+ getDocumentation(_policyId: string): Observable<PolicyDocumentation>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<PolicyService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<PolicyService>;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ResourceListItem, ResourceDocumentation } from '../models/resource';
3
+ export interface ListParams {
4
+ expandSchema?: boolean;
5
+ expandIcon?: boolean;
6
+ withoutResource?: boolean;
7
+ }
8
+ export declare abstract class ResourceServiceAbstract {
9
+ abstract list(params: ListParams): Observable<ResourceListItem[]>;
10
+ abstract getDocumentation(resourceId: string): Observable<ResourceDocumentation>;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ResourceDocumentation, ResourceListItem } from '../models/resource';
3
+ import { ListParams, ResourceServiceAbstract } from './resource.abstract.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ResourceService extends ResourceServiceAbstract {
6
+ list(_params: ListParams): Observable<ResourceListItem[]>;
7
+ getDocumentation(_resourceId: string): Observable<ResourceDocumentation>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResourceService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<ResourceService>;
10
+ }
@@ -0,0 +1,5 @@
1
+ import { Observable } from 'rxjs';
2
+ import { Grammar } from '../models/spel';
3
+ export declare abstract class SpelServiceAbstract {
4
+ abstract getGrammar(): Observable<Grammar>;
5
+ }
@@ -0,0 +1,9 @@
1
+ import { Observable } from 'rxjs';
2
+ import { Grammar } from '../models/spel';
3
+ import { SpelServiceAbstract } from './spel.abstract.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SpelService extends SpelServiceAbstract {
6
+ getGrammar(): Observable<Grammar>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpelService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<SpelService>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-policy-studio-angular",
3
- "version": "1.4.4-design-studio-angular-25dba8c",
3
+ "version": "1.5.0-design-studio-angular-part2-5304ad0",
4
4
  "description": "Gravitee.io - UI Policy Studio Angular",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,10 @@
16
16
  "@angular/common": "^12.2.0",
17
17
  "@angular/core": "^12.2.0",
18
18
  "@angular/forms": "^12.2.0",
19
- "@angular/material": "^12.2.0"
19
+ "@angular/material": "^12.2.0",
20
+ "@gravitee/ui-components": "^3.28.5",
21
+ "lodash": "^4.17.21",
22
+ "rxjs": "^6.0.0"
20
23
  },
21
24
  "publishConfig": {
22
25
  "access": "public"
package/public-api.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './lib/ui-policy-studio-angular.service';
2
- export * from './lib/ui-policy-studio-angular.component';
3
- export * from './lib/ui-policy-studio-angular.module';
1
+ export * from './lib/models';
2
+ export * from './lib/gio-policy-studio.module';
3
+ export * from './lib/gio-policy-studio.component';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@gravitee/ui-policy-studio-angular/testing" />
5
+ export * from './public-testing-api';
@@ -0,0 +1,2 @@
1
+ import { Json } from '../json';
2
+ export declare type FlowConfigurationSchema = Record<string, Json>;
@@ -0,0 +1,2 @@
1
+ import { FlowConfigurationSchema } from './ConfigurationSchema';
2
+ export declare function fakeFlowConfigurationSchema(attributes?: FlowConfigurationSchema): FlowConfigurationSchema;
@@ -0,0 +1,3 @@
1
+ export interface OrganizationFlowConfiguration {
2
+ has_policies: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ import { OrganizationFlowConfiguration } from './OrganizationFlowConfiguration';
2
+ export declare function fakeOrganizationFlowConfiguration(attributes?: Partial<OrganizationFlowConfiguration>): OrganizationFlowConfiguration;
@@ -0,0 +1,2 @@
1
+ import { Json } from '../json';
2
+ export declare type PlatformFlowSchema = Record<string, Json>;
@@ -0,0 +1,2 @@
1
+ import { PlatformFlowSchema } from './PlatformFlowSchema';
2
+ export declare function fakePlatformFlowSchema(attributes?: PlatformFlowSchema): PlatformFlowSchema;
@@ -0,0 +1,3 @@
1
+ export * from './ConfigurationSchema';
2
+ export * from './OrganizationFlowConfiguration';
3
+ export * from './PlatformFlowSchema';
@@ -0,0 +1,3 @@
1
+ export * from './ConfigurationSchema.fixture';
2
+ export * from './OrganizationFlowConfiguration.fixture';
3
+ export * from './PlatformFlowSchema.fixture';
@@ -0,0 +1,3 @@
1
+ export declare type Json = string | number | boolean | null | Json[] | {
2
+ [key: string]: Json;
3
+ };
@@ -0,0 +1 @@
1
+ export declare type PolicyDocumentation = string;
@@ -0,0 +1,2 @@
1
+ import { PolicyDocumentation } from './PolicyDocumentation';
2
+ export declare function fakePolicyDocumentation(attributes?: PolicyDocumentation): PolicyDocumentation;
@@ -0,0 +1,13 @@
1
+ export interface PolicyListItem {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ version: string;
6
+ schema: string;
7
+ icon: string;
8
+ category?: string;
9
+ onRequest: boolean;
10
+ onResponse: boolean;
11
+ documentation?: string;
12
+ type?: 'REQUEST' | 'RESPONSE' | 'REQUEST_RESPONSE';
13
+ }
@@ -0,0 +1,2 @@
1
+ import { PolicyListItem } from './PolicyListItem';
2
+ export declare function fakePolicyListItem(attributes?: Partial<PolicyListItem>): PolicyListItem;
@@ -0,0 +1 @@
1
+ export declare type PolicySchema = string;
@@ -0,0 +1,2 @@
1
+ import { PolicySchema } from './PolicySchema';
2
+ export declare function fakePolicySchema(attributes?: PolicySchema): PolicySchema;
@@ -0,0 +1,3 @@
1
+ export * from './PolicyDocumentation';
2
+ export * from './PolicyListItem';
3
+ export * from './PolicySchema';
@@ -0,0 +1,3 @@
1
+ export * from './PolicyListItem.fixture';
2
+ export * from './PolicyDocumentation.fixture';
3
+ export * from './PolicySchema.fixture';
@@ -0,0 +1 @@
1
+ export declare type ResourceDocumentation = string;
@@ -0,0 +1,2 @@
1
+ import { ResourceDocumentation } from './ResourceDocumentation';
2
+ export declare function fakeResourceDocumentation(attributes?: ResourceDocumentation): ResourceDocumentation;
@@ -0,0 +1,8 @@
1
+ export interface ResourceListItem {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ version: string;
6
+ schema: string;
7
+ icon: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ import { ResourceListItem } from './ResourceListItem';
2
+ export declare function fakeResourceListItem(attributes?: Partial<ResourceListItem>): ResourceListItem;
@@ -0,0 +1,2 @@
1
+ export * from './ResourceDocumentation';
2
+ export * from './ResourceListItem';
@@ -0,0 +1,2 @@
1
+ export * from './ResourceDocumentation.fixture';
2
+ export * from './ResourceListItem.fixture';
@@ -0,0 +1,2 @@
1
+ import { Json } from '../json';
2
+ export declare type Grammar = Record<string, Json>;
@@ -0,0 +1,2 @@
1
+ import { Grammar } from './Grammar';
2
+ export declare function fakeGrammar(attributes?: Partial<Grammar>): Grammar;
@@ -0,0 +1 @@
1
+ export * from './Grammar';
@@ -0,0 +1 @@
1
+ export * from './Grammar.fixture';
@@ -0,0 +1,4 @@
1
+ export * from './flow/testing';
2
+ export * from './policy/testing';
3
+ export * from './resource/testing';
4
+ export * from './spel/testing';
@@ -0,0 +1,7 @@
1
+ import { Observable } from 'rxjs';
2
+ import { FlowConfigurationSchema, OrganizationFlowConfiguration, PlatformFlowSchema } from '../models/flow';
3
+ export declare abstract class FlowServiceAbstract {
4
+ abstract getConfigurationSchemaForm(): Observable<FlowConfigurationSchema>;
5
+ abstract getPlatformFlowSchemaForm(): Observable<PlatformFlowSchema>;
6
+ abstract getConfiguration(): Observable<OrganizationFlowConfiguration>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ import { FlowConfigurationSchema, PlatformFlowSchema, OrganizationFlowConfiguration } from '../models/flow';
3
+ import { FlowServiceAbstract } from './flow.abstract.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FlowService extends FlowServiceAbstract {
6
+ getConfigurationSchemaForm(): Observable<FlowConfigurationSchema>;
7
+ getPlatformFlowSchemaForm(): Observable<PlatformFlowSchema>;
8
+ getConfiguration(): Observable<OrganizationFlowConfiguration>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowService>;
11
+ }
@@ -0,0 +1,14 @@
1
+ import { Observable } from 'rxjs';
2
+ import { PolicyDocumentation, PolicyListItem, PolicySchema } from '../models/policy';
3
+ interface ListParams {
4
+ expandSchema?: boolean;
5
+ expandIcon?: boolean;
6
+ withoutResource?: boolean;
7
+ }
8
+ export declare abstract class PolicyServiceAbstract {
9
+ abstract list(params: ListParams): Observable<PolicyListItem[]>;
10
+ abstract listSwaggerPolicies(): Observable<PolicyListItem[]>;
11
+ abstract getSchema(policyId: string): Observable<PolicySchema>;
12
+ abstract getDocumentation(policyId: string): Observable<PolicyDocumentation>;
13
+ }
14
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Observable } from 'rxjs';
2
+ import { PolicyDocumentation, PolicyListItem, PolicySchema } from '../models/policy';
3
+ import { PolicyServiceAbstract } from './policy.abstract.service';
4
+ import { ListParams } from './resource.abstract.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PolicyService extends PolicyServiceAbstract {
7
+ list(_params: ListParams): Observable<PolicyListItem[]>;
8
+ listSwaggerPolicies(): Observable<PolicyListItem[]>;
9
+ getSchema(_policyId: string): Observable<PolicySchema>;
10
+ getDocumentation(_policyId: string): Observable<PolicyDocumentation>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<PolicyService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<PolicyService>;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ResourceListItem, ResourceDocumentation } from '../models/resource';
3
+ export interface ListParams {
4
+ expandSchema?: boolean;
5
+ expandIcon?: boolean;
6
+ withoutResource?: boolean;
7
+ }
8
+ export declare abstract class ResourceServiceAbstract {
9
+ abstract list(params: ListParams): Observable<ResourceListItem[]>;
10
+ abstract getDocumentation(resourceId: string): Observable<ResourceDocumentation>;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ResourceDocumentation, ResourceListItem } from '../models/resource';
3
+ import { ListParams, ResourceServiceAbstract } from './resource.abstract.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ResourceService extends ResourceServiceAbstract {
6
+ list(_params: ListParams): Observable<ResourceListItem[]>;
7
+ getDocumentation(_resourceId: string): Observable<ResourceDocumentation>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResourceService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<ResourceService>;
10
+ }
@@ -0,0 +1,5 @@
1
+ import { Observable } from 'rxjs';
2
+ import { Grammar } from '../models/spel';
3
+ export declare abstract class SpelServiceAbstract {
4
+ abstract getGrammar(): Observable<Grammar>;
5
+ }
@@ -0,0 +1,9 @@
1
+ import { Observable } from 'rxjs';
2
+ import { Grammar } from '../models/spel';
3
+ import { SpelServiceAbstract } from './spel.abstract.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SpelService extends SpelServiceAbstract {
6
+ getGrammar(): Observable<Grammar>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpelService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<SpelService>;
9
+ }
@@ -0,0 +1,4 @@
1
+ export * from './flow.service.fixture';
2
+ export * from './policy.service.fixture';
3
+ export * from './resource.service.fixture';
4
+ export * from './spel.service.fixture';
@@ -0,0 +1,10 @@
1
+ {
2
+ "main": "../bundles/gravitee-ui-policy-studio-angular-testing.umd.js",
3
+ "module": "../fesm2015/gravitee-ui-policy-studio-angular-testing.js",
4
+ "es2015": "../fesm2015/gravitee-ui-policy-studio-angular-testing.js",
5
+ "esm2015": "../esm2015/testing/gravitee-ui-policy-studio-angular-testing.js",
6
+ "fesm2015": "../fesm2015/gravitee-ui-policy-studio-angular-testing.js",
7
+ "typings": "gravitee-ui-policy-studio-angular-testing.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@gravitee/ui-policy-studio-angular/testing"
10
+ }
@@ -0,0 +1,3 @@
1
+ export * from './lib/models/testing';
2
+ export * from './lib/services/testing';
3
+ export * from './testing';
@@ -0,0 +1 @@
1
+ export * from './stories-resources';