@gravitee/ui-particles-angular 5.3.0 → 5.4.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/gio-form-json-schema/gio-form-json-schema.component.mjs +61 -0
- package/esm2020/lib/gio-form-json-schema/gio-form-json-schema.module.mjs +94 -0
- package/esm2020/lib/gio-form-json-schema/model/FormlyJSONSchema7.mjs +2 -0
- package/esm2020/lib/gio-form-json-schema/model/GioJsonSchema.mjs +2 -0
- package/esm2020/lib/gio-form-json-schema/type-component/array-type.component.mjs +72 -0
- package/esm2020/lib/gio-form-json-schema/type-component/null-type.component.mjs +30 -0
- package/esm2020/lib/gio-form-json-schema/type-component/object-type.component.mjs +56 -0
- package/esm2020/lib/gio-form-json-schema/util/validation-message.util.mjs +34 -0
- package/esm2020/lib/public-api.mjs +4 -1
- package/fesm2015/gravitee-ui-particles-angular.mjs +332 -2
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +322 -2
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-form-json-schema.component.d.ts +18 -0
- package/lib/gio-form-json-schema/gio-form-json-schema.module.d.ts +14 -0
- package/lib/gio-form-json-schema/model/FormlyJSONSchema7.d.ts +13 -0
- package/lib/gio-form-json-schema/model/GioJsonSchema.d.ts +2 -0
- package/lib/gio-form-json-schema/type-component/array-type.component.d.ts +6 -0
- package/lib/gio-form-json-schema/type-component/null-type.component.d.ts +6 -0
- package/lib/gio-form-json-schema/type-component/object-type.component.d.ts +9 -0
- package/lib/gio-form-json-schema/util/validation-message.util.d.ts +14 -0
- package/lib/public-api.d.ts +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { FormlyFormOptions, FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
import { FormlyJsonschema } from '@ngx-formly/core/json-schema';
|
|
4
|
+
import { GioJsonSchema } from './model/GioJsonSchema';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GioFormJsonSchemaComponent {
|
|
7
|
+
private readonly formlyJsonschema;
|
|
8
|
+
set jsonSchema(jsonSchema: GioJsonSchema);
|
|
9
|
+
formGroup: FormGroup;
|
|
10
|
+
options: FormlyFormOptions;
|
|
11
|
+
model: {};
|
|
12
|
+
set initialValue(initialValue: object);
|
|
13
|
+
fields: FormlyFieldConfig[];
|
|
14
|
+
constructor(formlyJsonschema: FormlyJsonschema);
|
|
15
|
+
private toFormlyFieldConfig;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormJsonSchemaComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormJsonSchemaComponent, "gio-form-json-schema", never, { "jsonSchema": "jsonSchema"; "formGroup": "formGroup"; "options": "options"; "initialValue": "initialValue"; }, {}, never, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./gio-form-json-schema.component";
|
|
3
|
+
import * as i2 from "./type-component/null-type.component";
|
|
4
|
+
import * as i3 from "./type-component/object-type.component";
|
|
5
|
+
import * as i4 from "./type-component/array-type.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "@ngx-formly/core";
|
|
9
|
+
import * as i8 from "@ngx-formly/material";
|
|
10
|
+
export declare class GioFormJsonSchemaModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormJsonSchemaModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GioFormJsonSchemaModule, [typeof i1.GioFormJsonSchemaComponent, typeof i2.GioFjsNullTypeComponent, typeof i3.GioFjsObjectTypeComponent, typeof i4.GioFjsArrayTypeComponent], [typeof i5.CommonModule, typeof i6.ReactiveFormsModule, typeof i7.FormlyModule, typeof i8.FormlyMaterialModule], [typeof i1.GioFormJsonSchemaComponent, typeof i7.FormlyModule]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GioFormJsonSchemaModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
+
import { JSONSchema7 } from 'json-schema';
|
|
3
|
+
/**
|
|
4
|
+
* Extend the JSONSchema7 interface with the custom properties
|
|
5
|
+
*/
|
|
6
|
+
export interface FormlyJSONSchema7 extends JSONSchema7 {
|
|
7
|
+
widget?: {
|
|
8
|
+
formlyConfig: FormlyFieldConfig;
|
|
9
|
+
};
|
|
10
|
+
properties?: {
|
|
11
|
+
[key: string]: FormlyJSONSchema7;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FieldArrayType } from '@ngx-formly/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GioFjsArrayTypeComponent extends FieldArrayType {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioFjsArrayTypeComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioFjsArrayTypeComponent, "gio-fjs-array-type", never, {}, {}, never, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FieldType } from '@ngx-formly/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GioFjsNullTypeComponent extends FieldType {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioFjsNullTypeComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioFjsNullTypeComponent, "gio-fjs-object-type", never, {}, {}, never, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FieldType } from '@ngx-formly/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GioFjsObjectTypeComponent extends FieldType {
|
|
4
|
+
defaultOptions: {
|
|
5
|
+
defaultValue: {};
|
|
6
|
+
};
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioFjsObjectTypeComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioFjsObjectTypeComponent, "gio-fjs-object-type", never, {}, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
+
export declare function minItemsValidationMessage(error: unknown, field: FormlyFieldConfig): string;
|
|
3
|
+
export declare function maxItemsValidationMessage(error: unknown, field: FormlyFieldConfig): string;
|
|
4
|
+
export declare function minLengthValidationMessage(error: unknown, field: FormlyFieldConfig): string;
|
|
5
|
+
export declare function maxLengthValidationMessage(error: unknown, field: FormlyFieldConfig): string;
|
|
6
|
+
export declare function minValidationMessage(error: unknown, field: FormlyFieldConfig): string;
|
|
7
|
+
export declare function maxValidationMessage(error: unknown, field: FormlyFieldConfig): string;
|
|
8
|
+
export declare function multipleOfValidationMessage(error: unknown, field: FormlyFieldConfig): string;
|
|
9
|
+
export declare function exclusiveMinimumValidationMessage(error: unknown, field: FormlyFieldConfig): string;
|
|
10
|
+
export declare function exclusiveMaximumValidationMessage(error: unknown, field: FormlyFieldConfig): string;
|
|
11
|
+
export declare function constValidationMessage(error: unknown, field: FormlyFieldConfig): string;
|
|
12
|
+
export declare function typeValidationMessage({ schemaType }: {
|
|
13
|
+
schemaType: unknown[];
|
|
14
|
+
}): string;
|
package/lib/public-api.d.ts
CHANGED
|
@@ -23,3 +23,6 @@ export * from './gio-top-bar';
|
|
|
23
23
|
export * from './gio-avatar';
|
|
24
24
|
export * from './gio-breadcrumb';
|
|
25
25
|
export * from './gio-mat-config';
|
|
26
|
+
export * from './gio-form-json-schema/gio-form-json-schema.component';
|
|
27
|
+
export * from './gio-form-json-schema/gio-form-json-schema.module';
|
|
28
|
+
export * from './gio-form-json-schema/model/GioJsonSchema';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/ui-particles-angular",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "Gravitee.io - UI Particles Angular",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@angular/core": "^13.3.0",
|
|
21
21
|
"@angular/forms": "^13.3.0",
|
|
22
22
|
"@angular/material": "^13.3.0",
|
|
23
|
-
"@ngx-formly/core": "^6.
|
|
24
|
-
"@ngx-formly/material": "^6.
|
|
23
|
+
"@ngx-formly/core": "^6.1.1",
|
|
24
|
+
"@ngx-formly/material": "^6.1.1",
|
|
25
25
|
"ngx-file-helpers": "^7.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|