@gravitee/ui-particles-angular 7.35.0 → 7.36.0-fix-ps-v2-99e90dc
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 +28 -7
- package/esm2020/lib/gio-form-json-schema/gio-form-json-schema.module.mjs +2 -2
- package/esm2020/lib/gio-form-json-schema/type-component/toggle-type.component.mjs +2 -2
- package/esm2020/lib/{gio-form-slide-toogle → gio-form-slide-toggle}/gio-form-label.directive.mjs +1 -1
- package/esm2020/lib/{gio-form-slide-toogle → gio-form-slide-toggle}/gio-form-slide-toggle.component.mjs +1 -1
- package/esm2020/lib/{gio-form-slide-toogle → gio-form-slide-toggle}/gio-form-slide-toggle.module.mjs +1 -1
- package/esm2020/lib/public-api.mjs +4 -4
- package/fesm2015/gravitee-ui-particles-angular.mjs +26 -4
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +25 -4
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-form-json-schema.component.d.ts +6 -4
- package/lib/gio-form-json-schema/gio-form-json-schema.module.d.ts +1 -1
- package/lib/public-api.d.ts +3 -3
- package/package.json +1 -1
- package/src/lib/gio-radio-button/gio-radio-button.scss +89 -0
- package/src/lib/gio-scss-components.scss +2 -0
- /package/lib/{gio-form-slide-toogle → gio-form-slide-toggle}/gio-form-label.directive.d.ts +0 -0
- /package/lib/{gio-form-slide-toogle → gio-form-slide-toggle}/gio-form-slide-toggle.component.d.ts +0 -0
- /package/lib/{gio-form-slide-toogle → gio-form-slide-toggle}/gio-form-slide-toggle.module.d.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormGroup, NgControl } from '@angular/forms';
|
|
3
3
|
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
4
4
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
5
5
|
import { GioJsonSchema } from './model/GioJsonSchema';
|
|
6
6
|
import { GioFormlyJsonSchemaService } from './gio-formly-json-schema.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class GioFormJsonSchemaComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
|
|
8
|
+
export declare class GioFormJsonSchemaComponent implements ControlValueAccessor, OnChanges, OnInit, AfterViewInit, OnDestroy {
|
|
9
9
|
private readonly gioFormlyJsonSchema;
|
|
10
10
|
private readonly elRef;
|
|
11
11
|
private readonly fm;
|
|
@@ -17,9 +17,10 @@ export declare class GioFormJsonSchemaComponent implements ControlValueAccessor,
|
|
|
17
17
|
set jsonSchema(jsonSchema: GioJsonSchema);
|
|
18
18
|
formGroup: FormGroup;
|
|
19
19
|
options: FormlyFormOptions;
|
|
20
|
+
ready: EventEmitter<boolean>;
|
|
21
|
+
private isReady;
|
|
20
22
|
model: unknown;
|
|
21
23
|
fields: FormlyFieldConfig[];
|
|
22
|
-
loading: boolean;
|
|
23
24
|
isDisabled: boolean;
|
|
24
25
|
_onChange: (value: unknown | null) => void;
|
|
25
26
|
_onTouched: () => void;
|
|
@@ -27,6 +28,7 @@ export declare class GioFormJsonSchemaComponent implements ControlValueAccessor,
|
|
|
27
28
|
private isValid$;
|
|
28
29
|
private stateChanges$;
|
|
29
30
|
constructor(gioFormlyJsonSchema: GioFormlyJsonSchemaService, elRef: ElementRef, fm: FocusMonitor, changeDetectorRef: ChangeDetectorRef, ngControl?: NgControl | undefined);
|
|
31
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
30
32
|
ngOnInit(): void;
|
|
31
33
|
ngAfterViewInit(): void;
|
|
32
34
|
ngOnDestroy(): void;
|
|
@@ -35,5 +37,5 @@ export declare class GioFormJsonSchemaComponent implements ControlValueAccessor,
|
|
|
35
37
|
registerOnTouched(fn: () => void): void;
|
|
36
38
|
setDisabledState?(isDisabled: boolean): void;
|
|
37
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormJsonSchemaComponent, [null, null, null, null, { optional: true; host: true; }]>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormJsonSchemaComponent, "gio-form-json-schema", never, { "jsonSchema": "jsonSchema"; "options": "options"; }, {}, never, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormJsonSchemaComponent, "gio-form-json-schema", never, { "jsonSchema": "jsonSchema"; "options": "options"; }, { "ready": "ready"; }, never, never>;
|
|
39
41
|
}
|
|
@@ -16,7 +16,7 @@ import * as i14 from "@ngx-formly/core";
|
|
|
16
16
|
import * as i15 from "@ngx-formly/material";
|
|
17
17
|
import * as i16 from "@angular/material/input";
|
|
18
18
|
import * as i17 from "../gio-icons/gio-icons.module";
|
|
19
|
-
import * as i18 from "../gio-form-slide-
|
|
19
|
+
import * as i18 from "../gio-form-slide-toggle/gio-form-slide-toggle.module";
|
|
20
20
|
import * as i19 from "../gio-form-headers/gio-form-headers.module";
|
|
21
21
|
import * as i20 from "../gio-monaco-editor/gio-monaco-editor.module";
|
|
22
22
|
import * as i21 from "@angular/material/slide-toggle";
|
package/lib/public-api.d.ts
CHANGED
|
@@ -29,9 +29,9 @@ export * from './gio-mat-config';
|
|
|
29
29
|
export * from './gio-form-json-schema/gio-form-json-schema.component';
|
|
30
30
|
export * from './gio-form-json-schema/gio-form-json-schema.module';
|
|
31
31
|
export * from './gio-form-json-schema/model/GioJsonSchema';
|
|
32
|
-
export * from './gio-form-slide-
|
|
33
|
-
export * from './gio-form-slide-
|
|
34
|
-
export * from './gio-form-slide-
|
|
32
|
+
export * from './gio-form-slide-toggle/gio-form-slide-toggle.component';
|
|
33
|
+
export * from './gio-form-slide-toggle/gio-form-slide-toggle.module';
|
|
34
|
+
export * from './gio-form-slide-toggle/gio-form-label.directive';
|
|
35
35
|
export * from './gio-form-focus-first-invalid/gio-form-focus-first-invalid.directive';
|
|
36
36
|
export * from './gio-form-focus-first-invalid/gio-form-focus-first-invalid-ignore.directive';
|
|
37
37
|
export * from './gio-form-focus-first-invalid/gio-form-focus-first-invalid.module';
|
package/package.json
CHANGED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2021 The Gravitee team (http://gravitee.io)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
@use 'sass:map';
|
|
17
|
+
@use '@angular/material' as mat;
|
|
18
|
+
@use '../../scss/gio-mat-palettes' as palettes;
|
|
19
|
+
@use '../../scss/gio-mat-theme-variable' as theme;
|
|
20
|
+
|
|
21
|
+
$typography: map.get(theme.$mat-theme, typography);
|
|
22
|
+
|
|
23
|
+
@mixin gio-radio-group {
|
|
24
|
+
display: grid;
|
|
25
|
+
gap: 24px;
|
|
26
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin gio-radio-button {
|
|
30
|
+
padding: 24px 32px;
|
|
31
|
+
border: 2px solid mat.get-color-from-palette(palettes.$mat-dove-palette, 'darker20');
|
|
32
|
+
border-radius: 4px;
|
|
33
|
+
|
|
34
|
+
&__content {
|
|
35
|
+
padding-left: 24px;
|
|
36
|
+
|
|
37
|
+
&__icon {
|
|
38
|
+
margin-bottom: 24px;
|
|
39
|
+
|
|
40
|
+
&__selected {
|
|
41
|
+
color: mat.get-color-from-palette(palettes.$mat-accent-palette, 'default');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.mat-icon {
|
|
45
|
+
width: 32px;
|
|
46
|
+
height: 32px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__title {
|
|
51
|
+
@include mat.typography-level($typography, subheading-2);
|
|
52
|
+
|
|
53
|
+
margin-bottom: 8px;
|
|
54
|
+
text-wrap: initial;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__subtitle {
|
|
58
|
+
@include mat.typography-level($typography, body-1);
|
|
59
|
+
|
|
60
|
+
text-wrap: initial;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.gio-radio-button.mat-radio-checked {
|
|
65
|
+
border: 2px solid mat.get-color-from-palette(palettes.$mat-accent-palette, 'default');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.mat-radio-checked .mat-icon {
|
|
69
|
+
color: mat.get-color-from-palette(palettes.$mat-accent-palette, 'default');
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@mixin theme() {
|
|
74
|
+
.gio-radio-group {
|
|
75
|
+
@include gio-radio-group;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.gio-radio-button {
|
|
79
|
+
@include gio-radio-button;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.gio-radio-button.mat-radio-checked {
|
|
83
|
+
border: 2px solid mat.get-color-from-palette(palettes.$mat-accent-palette, 'default');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.gio-radio-button.mat-radio-checked .mat-icon {
|
|
87
|
+
color: mat.get-color-from-palette(palettes.$mat-accent-palette, 'default');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
@use './gio-link/gio-link';
|
|
21
21
|
@use './gio-caption-2/gio-caption-2';
|
|
22
22
|
@use './gio-button-toggle-group/gio-button-toggle-group';
|
|
23
|
+
@use './gio-radio-button/gio-radio-button';
|
|
23
24
|
|
|
24
25
|
// All Gravitee.io SCSS components to add globally in main.scss
|
|
25
26
|
@mixin all-components() {
|
|
@@ -30,4 +31,5 @@
|
|
|
30
31
|
@include gio-link.theme;
|
|
31
32
|
@include gio-caption-2.theme;
|
|
32
33
|
@include gio-button-toggle-group.theme;
|
|
34
|
+
@include gio-radio-button.theme;
|
|
33
35
|
}
|
|
File without changes
|
/package/lib/{gio-form-slide-toogle → gio-form-slide-toggle}/gio-form-slide-toggle.component.d.ts
RENAMED
|
File without changes
|
/package/lib/{gio-form-slide-toogle → gio-form-slide-toggle}/gio-form-slide-toggle.module.d.ts
RENAMED
|
File without changes
|