@gravitee/ui-particles-angular 12.12.0-conditional-json-schema-245b66c → 12.12.0-conditional-json-schema-dc1dd2a

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.
@@ -8,12 +8,12 @@ export declare class GioFormlyJsonSchemaService {
8
8
  private readonly builder;
9
9
  constructor(formlyJsonschema: FormlyJsonschema, builder: FormlyFormBuilder);
10
10
  toFormlyFieldConfig(jsonSchema: GioJsonSchema, context?: GioJsonSchemaContext): FormlyFieldConfig;
11
- private displayOnlyIfMap;
11
+ private displayIfMap;
12
12
  private uiTypeMap;
13
13
  private formatMap;
14
14
  private bannerMap;
15
15
  private toggleMap;
16
- private disabledMap;
16
+ private disableIfMap;
17
17
  private enumLabelMap;
18
18
  private deprecatedMap;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<GioFormlyJsonSchemaService, never>;
@@ -5,9 +5,8 @@ import { GioMonacoEditorConfig } from '../type-component/code-editor-type.compon
5
5
  * ⚠️ Keep updated with the GioJsonSchema.json to have the same interface ⚠️
6
6
  */
7
7
  export interface GioConfig extends GioUiTypeConfig {
8
- displayOnlyIf?: {
9
- $eq: Record<string, string | number | boolean | Array<string | number | boolean>>;
10
- };
8
+ displayIf?: GioIfConfig;
9
+ disableIf?: GioIfConfig;
11
10
  banner?: GioBannerConfig;
12
11
  monacoEditorConfig?: GioMonacoEditorConfig;
13
12
  enumLabelMap?: Record<string, string>;
@@ -25,6 +24,9 @@ type GioUiTypeConfig = {
25
24
  uiType?: 'gio-headers-array' | string;
26
25
  uiTypeProps?: Record<string, unknown>;
27
26
  };
27
+ export type GioIfConfig = {
28
+ $eq: Record<string, string | number | boolean | Array<string | number | boolean>>;
29
+ };
28
30
  /**
29
31
  * Override the JSONSchema7 interface to add gioConfig
30
32
  * Use this way because the JSONSchema7 interface is recursive
@@ -24,6 +24,7 @@ export * from './gio-mat-config';
24
24
  export * from './gio-form-json-schema/gio-form-json-schema.component';
25
25
  export * from './gio-form-json-schema/gio-form-json-schema.module';
26
26
  export * from './gio-form-json-schema/model/GioJsonSchema';
27
+ export * from './gio-form-json-schema/model/GioJsonSchemaContext';
27
28
  export * from './gio-form-slide-toggle/gio-form-slide-toggle.component';
28
29
  export * from './gio-form-slide-toggle/gio-form-slide-toggle.module';
29
30
  export * from './gio-form-slide-toggle/gio-form-label.directive';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-particles-angular",
3
- "version": "12.12.0-conditional-json-schema-245b66c",
3
+ "version": "12.12.0-conditional-json-schema-dc1dd2a",
4
4
  "description": "Gravitee.io - UI Particles Angular",
5
5
  "repository": {
6
6
  "type": "git",