@gravitee/ui-particles-angular 7.34.0 → 7.35.0-create-custom-radio-toggle-2bde88a
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-cron/gio-form-cron-hint.component.mjs +29 -0
- package/esm2020/lib/gio-form-cron/gio-form-cron-label.component.mjs +29 -0
- package/esm2020/lib/gio-form-cron/gio-form-cron.component.mjs +24 -18
- package/esm2020/lib/gio-form-cron/gio-form-cron.harness.mjs +7 -2
- package/esm2020/lib/gio-form-cron/gio-form-cron.module.mjs +7 -5
- 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 +6 -4
- package/fesm2015/gravitee-ui-particles-angular.mjs +88 -23
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +88 -23
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-cron/gio-form-cron-hint.component.d.ts +5 -0
- package/lib/gio-form-cron/gio-form-cron-label.component.d.ts +5 -0
- package/lib/gio-form-cron/gio-form-cron.component.d.ts +4 -2
- package/lib/gio-form-cron/gio-form-cron.harness.d.ts +2 -0
- package/lib/gio-form-cron/gio-form-cron.module.d.ts +12 -10
- package/lib/gio-form-json-schema/gio-form-json-schema.module.d.ts +1 -1
- package/lib/public-api.d.ts +5 -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
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GioFormCronHintComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormCronHintComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormCronHintComponent, "gio-form-cron-hint", never, {}, {}, never, ["*"]>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GioFormCronLabelComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormCronLabelComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormCronLabelComponent, "gio-form-cron-label", never, {}, {}, never, ["*"]>;
|
|
5
|
+
}
|
|
@@ -32,8 +32,10 @@ export declare class GioFormCronComponent implements ControlValueAccessor, OnIni
|
|
|
32
32
|
registerOnTouched(fn: () => void): void;
|
|
33
33
|
setDisabledState(isDisabled: boolean): void;
|
|
34
34
|
validate(_: AbstractControl): ValidationErrors | null;
|
|
35
|
-
onClear(
|
|
35
|
+
onClear({ touched }?: {
|
|
36
|
+
touched?: boolean;
|
|
37
|
+
}): void;
|
|
36
38
|
private refreshInternalForm;
|
|
37
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormCronComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormCronComponent, "gio-form-cron", never, {}, {}, never,
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioFormCronComponent, "gio-form-cron", never, {}, {}, never, ["gio-form-cron-label", "gio-form-cron-hint"]>;
|
|
39
41
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
2
|
import { MatButtonToggleGroupHarness } from '@angular/material/button-toggle/testing';
|
|
3
|
+
import { MatInputHarness } from '@angular/material/input/testing';
|
|
3
4
|
export declare type GioFormCronHarnessFilters = BaseHarnessFilters;
|
|
4
5
|
export declare class GioFormCronHarness extends ComponentHarness {
|
|
5
6
|
static hostSelector: string;
|
|
6
7
|
protected getModeToggleGroup: import("@angular/cdk/testing").AsyncFactoryFn<MatButtonToggleGroupHarness>;
|
|
8
|
+
protected getCustomExpressionInput: import("@angular/cdk/testing").AsyncFactoryFn<MatInputHarness>;
|
|
7
9
|
/**
|
|
8
10
|
* Gets a `HarnessPredicate` that can be used to search for this harness.
|
|
9
11
|
*
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./gio-form-cron.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "@angular/
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "@angular/material/
|
|
8
|
-
import * as i7 from "@angular/material/
|
|
9
|
-
import * as i8 from "@angular/material/
|
|
10
|
-
import * as i9 from "@angular/material/
|
|
11
|
-
import * as i10 from "
|
|
3
|
+
import * as i2 from "./gio-form-cron-label.component";
|
|
4
|
+
import * as i3 from "./gio-form-cron-hint.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "@angular/material/button-toggle";
|
|
8
|
+
import * as i7 from "@angular/material/form-field";
|
|
9
|
+
import * as i8 from "@angular/material/select";
|
|
10
|
+
import * as i9 from "@angular/material/input";
|
|
11
|
+
import * as i10 from "@angular/material/button";
|
|
12
|
+
import * as i11 from "@angular/material/tooltip";
|
|
13
|
+
import * as i12 from "../gio-icons/gio-icons.module";
|
|
12
14
|
export declare class GioFormCronModule {
|
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioFormCronModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GioFormCronModule, [typeof i1.GioFormCronComponent], [typeof
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GioFormCronModule, [typeof i1.GioFormCronComponent, typeof i2.GioFormCronLabelComponent, typeof i3.GioFormCronHintComponent], [typeof i4.CommonModule, typeof i5.ReactiveFormsModule, typeof i6.MatButtonToggleModule, typeof i7.MatFormFieldModule, typeof i8.MatSelectModule, typeof i9.MatInputModule, typeof i10.MatButtonModule, typeof i11.MatTooltipModule, typeof i12.GioIconsModule], [typeof i1.GioFormCronComponent, typeof i2.GioFormCronLabelComponent, typeof i3.GioFormCronHintComponent]>;
|
|
15
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<GioFormCronModule>;
|
|
16
18
|
}
|
|
@@ -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';
|
|
@@ -55,5 +55,7 @@ export * from './gio-license/gio-license-dialog/gio-license-dialog.module';
|
|
|
55
55
|
export * from './gio-license/gio-license-dialog/gio-license-dialog.component';
|
|
56
56
|
export * from './gio-license/gio-license.testing.module';
|
|
57
57
|
export * from './gio-form-cron/gio-form-cron.component';
|
|
58
|
+
export * from './gio-form-cron/gio-form-cron-label.component';
|
|
59
|
+
export * from './gio-form-cron/gio-form-cron-hint.component';
|
|
58
60
|
export * from './gio-form-cron/gio-form-cron.module';
|
|
59
61
|
export * from './gio-form-cron/gio-form-cron.harness';
|
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') !important;
|
|
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') !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.mat-radio-checked .mat-icon {
|
|
69
|
+
color: mat.get-color-from-palette(palettes.$mat-accent-palette, 'default') !important;
|
|
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') !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.gio-radio-button.mat-radio-checked .mat-icon {
|
|
87
|
+
color: mat.get-color-from-palette(palettes.$mat-accent-palette, 'default') !important;
|
|
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
|