@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.
- package/esm2022/lib/gio-form-json-schema/gio-form-json-schema.component.mjs +3 -2
- package/esm2022/lib/gio-form-json-schema/gio-formly-json-schema.service.mjs +57 -18
- package/esm2022/lib/gio-form-json-schema/model/GioJsonSchema.mjs +1 -1
- package/esm2022/lib/gio-form-json-schema/type-component/array-type.component.mjs +5 -5
- package/esm2022/lib/public-api.mjs +2 -1
- package/fesm2022/gravitee-ui-particles-angular.mjs +62 -22
- package/fesm2022/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-formly-json-schema.service.d.ts +2 -2
- package/lib/gio-form-json-schema/model/GioJsonSchema.d.ts +5 -3
- package/lib/public-api.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
11
|
+
private displayIfMap;
|
|
12
12
|
private uiTypeMap;
|
|
13
13
|
private formatMap;
|
|
14
14
|
private bannerMap;
|
|
15
15
|
private toggleMap;
|
|
16
|
-
private
|
|
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
|
-
|
|
9
|
-
|
|
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
|
package/lib/public-api.d.ts
CHANGED
|
@@ -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