@gravitee/ui-particles-angular 5.7.3 → 5.9.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 +74 -16
- package/esm2020/lib/gio-form-json-schema/gio-form-json-schema.module.mjs +11 -1
- package/esm2020/lib/gio-form-json-schema/type-component/array-type.component.mjs +8 -11
- package/esm2020/lib/gio-form-json-schema/type-component/multischema-type.component.mjs +20 -23
- package/esm2020/lib/gio-form-json-schema/type-component/object-type.component.mjs +8 -11
- package/fesm2015/gravitee-ui-particles-angular.mjs +113 -57
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +109 -57
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-form-json-schema.component.d.ts +21 -7
- package/lib/gio-form-json-schema/gio-form-json-schema.module.d.ts +6 -5
- package/lib/gio-form-json-schema/type-component/multischema-type.component.d.ts +3 -1
- package/package.json +1 -1
- package/src/scss/mat-override/mat-table.scss +23 -0
|
@@ -1,19 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormGroup, NgControl } from '@angular/forms';
|
|
2
3
|
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
3
4
|
import { FormlyJsonschema } from '@ngx-formly/core/json-schema';
|
|
5
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
4
6
|
import { GioJsonSchema } from './model/GioJsonSchema';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class GioFormJsonSchemaComponent {
|
|
8
|
+
export declare class GioFormJsonSchemaComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
7
9
|
private readonly formlyJsonschema;
|
|
10
|
+
private readonly elRef;
|
|
11
|
+
private readonly fm;
|
|
12
|
+
readonly ngControl?: NgControl | undefined;
|
|
13
|
+
private unsubscribe$;
|
|
8
14
|
set jsonSchema(jsonSchema: GioJsonSchema);
|
|
9
15
|
formGroup: FormGroup;
|
|
10
16
|
options: FormlyFormOptions;
|
|
11
|
-
model:
|
|
12
|
-
set initialValue(initialValue: object);
|
|
17
|
+
model: unknown;
|
|
13
18
|
fields: FormlyFieldConfig[];
|
|
14
|
-
|
|
19
|
+
_onChange: (value: unknown | null) => void;
|
|
20
|
+
_onTouched: () => void;
|
|
21
|
+
private touched;
|
|
22
|
+
constructor(formlyJsonschema: FormlyJsonschema, elRef: ElementRef, fm: FocusMonitor, ngControl?: NgControl | undefined);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
writeValue(value: unknown): void;
|
|
26
|
+
registerOnChange(fn: (value: unknown | null) => void): void;
|
|
27
|
+
registerOnTouched(fn: () => void): void;
|
|
28
|
+
setDisabledState?(_isDisabled: boolean): void;
|
|
15
29
|
private toFormlyFieldConfig;
|
|
16
30
|
private getBannerProperties;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormJsonSchemaComponent,
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormJsonSchemaComponent, "gio-form-json-schema", never, { "jsonSchema": "jsonSchema"; "
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormJsonSchemaComponent, [null, null, null, { optional: true; host: true; }]>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormJsonSchemaComponent, "gio-form-json-schema", never, { "jsonSchema": "jsonSchema"; "options": "options"; }, {}, never, never>;
|
|
19
33
|
}
|
|
@@ -6,12 +6,13 @@ import * as i4 from "./type-component/multischema-type.component";
|
|
|
6
6
|
import * as i5 from "./type-component/array-type.component";
|
|
7
7
|
import * as i6 from "./wrappers/gio-form-field-wrapper.component";
|
|
8
8
|
import * as i7 from "@angular/common";
|
|
9
|
-
import * as i8 from "@angular/
|
|
10
|
-
import * as i9 from "@
|
|
11
|
-
import * as i10 from "@ngx-formly/
|
|
12
|
-
import * as i11 from "
|
|
9
|
+
import * as i8 from "@angular/cdk/a11y";
|
|
10
|
+
import * as i9 from "@angular/forms";
|
|
11
|
+
import * as i10 from "@ngx-formly/core";
|
|
12
|
+
import * as i11 from "@ngx-formly/material";
|
|
13
|
+
import * as i12 from "../gio-icons/gio-icons.module";
|
|
13
14
|
export declare class GioFormJsonSchemaModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormJsonSchemaModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GioFormJsonSchemaModule, [typeof i1.GioFormJsonSchemaComponent, typeof i2.GioFjsNullTypeComponent, typeof i3.GioFjsObjectTypeComponent, typeof i4.GioFjsMultiSchemaTypeComponent, typeof i5.GioFjsArrayTypeComponent, typeof i6.GioFormFieldWrapperComponent], [typeof i7.CommonModule, typeof i8.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GioFormJsonSchemaModule, [typeof i1.GioFormJsonSchemaComponent, typeof i2.GioFjsNullTypeComponent, typeof i3.GioFjsObjectTypeComponent, typeof i4.GioFjsMultiSchemaTypeComponent, typeof i5.GioFjsArrayTypeComponent, typeof i6.GioFormFieldWrapperComponent], [typeof i7.CommonModule, typeof i8.A11yModule, typeof i9.ReactiveFormsModule, typeof i10.FormlyModule, typeof i11.FormlyMaterialModule, typeof i12.GioIconsModule], [typeof i1.GioFormJsonSchemaComponent, typeof i10.FormlyModule]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<GioFormJsonSchemaModule>;
|
|
17
18
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { FieldType } from '@ngx-formly/core';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GioFjsMultiSchemaTypeComponent extends FieldType {
|
|
4
|
+
export declare class GioFjsMultiSchemaTypeComponent extends FieldType implements OnInit {
|
|
5
|
+
ngOnInit(): void;
|
|
4
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioFjsMultiSchemaTypeComponent, never>;
|
|
5
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<GioFjsMultiSchemaTypeComponent, "gio-fjs-multi-schema-type", never, {}, {}, never, never>;
|
|
6
8
|
}
|
package/package.json
CHANGED
|
@@ -25,5 +25,28 @@ $background: map.get(theme.$mat-theme, background);
|
|
|
25
25
|
tbody tr:hover {
|
|
26
26
|
background-color: mat.get-color-from-palette($background, hover);
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
// Remove bottom padding on mat-form-field inside mat-cell
|
|
30
|
+
// Note: In Angular 15, we should be able to use SubscriptSizing option for that
|
|
31
|
+
.mat-cell {
|
|
32
|
+
// appearance=fill
|
|
33
|
+
.mat-form-field.mat-form-field-appearance-outline:not(.ng-invalid, :has(mat-hint)) {
|
|
34
|
+
padding-bottom: 0;
|
|
35
|
+
|
|
36
|
+
.mat-form-field-wrapper {
|
|
37
|
+
padding-bottom: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// appearance=standard
|
|
42
|
+
.mat-form-field.mat-form-field-appearance-standard:not(.ng-invalid, :has(mat-hint)) {
|
|
43
|
+
padding-bottom: 0;
|
|
44
|
+
|
|
45
|
+
.mat-form-field-wrapper {
|
|
46
|
+
// stylelint-disable-next-line number-max-precision
|
|
47
|
+
margin-bottom: -1.34375em;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
28
51
|
}
|
|
29
52
|
}
|