@sebgroup/green-angular 6.7.1 → 6.8.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/esm2022/src/v-angular/radio/index.mjs +2 -1
- package/esm2022/src/v-angular/radio/radio-group/radio-group.component.mjs +86 -0
- package/esm2022/src/v-angular/radio/radio.component.mjs +13 -3
- package/esm2022/src/v-angular/radio/radio.module.mjs +5 -4
- package/esm2022/v-angular/radio/index.mjs +2 -1
- package/esm2022/v-angular/radio/radio-group/radio-group.component.mjs +86 -0
- package/esm2022/v-angular/radio/radio.component.mjs +13 -3
- package/esm2022/v-angular/radio/radio.module.mjs +5 -4
- package/fesm2022/sebgroup-green-angular-src-v-angular-radio.mjs +92 -6
- package/fesm2022/sebgroup-green-angular-src-v-angular-radio.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-v-angular.mjs +92 -6
- package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -1
- package/package.json +7 -7
- package/src/v-angular/radio/index.d.ts +1 -0
- package/src/v-angular/radio/radio-group/radio-group.component.d.ts +42 -0
- package/src/v-angular/radio/radio.component.d.ts +6 -0
- package/src/v-angular/radio/radio.module.d.ts +5 -4
- package/v-angular/radio/index.d.ts +1 -0
- package/v-angular/radio/radio-group/radio-group.component.d.ts +42 -0
- package/v-angular/radio/radio.component.d.ts +6 -0
- package/v-angular/radio/radio.module.d.ts +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-angular",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": ">=18",
|
|
6
6
|
"@angular/common": ">=18",
|
|
@@ -189,6 +189,12 @@
|
|
|
189
189
|
"esm": "./esm2022/src/v-angular/character-countdown/sebgroup-green-angular-src-v-angular-character-countdown.mjs",
|
|
190
190
|
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-character-countdown.mjs"
|
|
191
191
|
},
|
|
192
|
+
"./src/v-angular/checkbox": {
|
|
193
|
+
"types": "./src/v-angular/checkbox/index.d.ts",
|
|
194
|
+
"esm2022": "./esm2022/src/v-angular/checkbox/sebgroup-green-angular-src-v-angular-checkbox.mjs",
|
|
195
|
+
"esm": "./esm2022/src/v-angular/checkbox/sebgroup-green-angular-src-v-angular-checkbox.mjs",
|
|
196
|
+
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-checkbox.mjs"
|
|
197
|
+
},
|
|
192
198
|
"./src/v-angular/core": {
|
|
193
199
|
"types": "./src/v-angular/core/index.d.ts",
|
|
194
200
|
"esm2022": "./esm2022/src/v-angular/core/sebgroup-green-angular-src-v-angular-core.mjs",
|
|
@@ -207,12 +213,6 @@
|
|
|
207
213
|
"esm": "./esm2022/src/v-angular/drag-drop/sebgroup-green-angular-src-v-angular-drag-drop.mjs",
|
|
208
214
|
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-drag-drop.mjs"
|
|
209
215
|
},
|
|
210
|
-
"./src/v-angular/checkbox": {
|
|
211
|
-
"types": "./src/v-angular/checkbox/index.d.ts",
|
|
212
|
-
"esm2022": "./esm2022/src/v-angular/checkbox/sebgroup-green-angular-src-v-angular-checkbox.mjs",
|
|
213
|
-
"esm": "./esm2022/src/v-angular/checkbox/sebgroup-green-angular-src-v-angular-checkbox.mjs",
|
|
214
|
-
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-checkbox.mjs"
|
|
215
|
-
},
|
|
216
216
|
"./src/v-angular/dropdown": {
|
|
217
217
|
"types": "./src/v-angular/dropdown/index.d.ts",
|
|
218
218
|
"esm2022": "./esm2022/src/v-angular/dropdown/sebgroup-green-angular-src-v-angular-dropdown.mjs",
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
2
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
3
|
+
import { NgControl } from '@angular/forms';
|
|
4
|
+
import { TranslocoScope } from '@jsverse/transloco';
|
|
5
|
+
import { NggvBaseControlValueAccessorComponent } from '@sebgroup/green-angular/src/v-angular/base-control-value-accessor';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Creates a wrapper around a group of radio buttons.
|
|
9
|
+
* If there is an error to the form control connected to the radio buttons, it will be shown once below instead of below every individual radio button
|
|
10
|
+
*/
|
|
11
|
+
export declare class NggvRadioGroupComponent extends NggvBaseControlValueAccessorComponent implements OnInit {
|
|
12
|
+
ngControl: NgControl;
|
|
13
|
+
protected translocoScope: TranslocoScope;
|
|
14
|
+
protected cdr: ChangeDetectorRef;
|
|
15
|
+
/**
|
|
16
|
+
* Special property used for selecting DOM elements during automated UI testing.
|
|
17
|
+
*/
|
|
18
|
+
thook: string | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Sets class on host element based on size input for styling
|
|
21
|
+
*/
|
|
22
|
+
size: 'small' | 'large';
|
|
23
|
+
/**
|
|
24
|
+
* Syncs a FormControl in an existing FormGroup to a form control element by name.
|
|
25
|
+
*/
|
|
26
|
+
formControlName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Sets "flex-direction" of parent of radio buttons.
|
|
29
|
+
*/
|
|
30
|
+
direction?: 'row' | 'column';
|
|
31
|
+
/**
|
|
32
|
+
* Creates a new RadioComponent
|
|
33
|
+
* @param ngControl optional FormControl provided when component is used in a form, through dependency injection.
|
|
34
|
+
* @param cdr change detection reference for rendering purposes.
|
|
35
|
+
*/
|
|
36
|
+
constructor(ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef);
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
/** Checks that the name properties match and updates name property if only formControlName is given. */
|
|
39
|
+
private _checkName;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NggvRadioGroupComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NggvRadioGroupComponent, "nggv-radio-group", never, { "thook": { "alias": "thook"; "required": false; }; "size": { "alias": "size"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
42
|
+
}
|
|
@@ -35,6 +35,12 @@ export declare class NggvRadioComponent extends NggvBaseControlValueAccessorComp
|
|
|
35
35
|
* Syncs a FormControl in an existing FormGroup to a form control element by name.
|
|
36
36
|
*/
|
|
37
37
|
formControlName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Decides if error should be connected to each individual radio button.
|
|
40
|
+
* If true, errors will be shown in nggv-radio-group component.
|
|
41
|
+
* If false, errors will be show below each radio button
|
|
42
|
+
*/
|
|
43
|
+
isGroup: boolean;
|
|
38
44
|
/**
|
|
39
45
|
* Creates a new RadioComponent
|
|
40
46
|
* @param ngControl optional FormControl provided when component is used in a form, through dependency injection.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./radio.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@
|
|
5
|
-
import * as i4 from "@sebgroup/green-angular/src/
|
|
3
|
+
import * as i2 from "./radio-group/radio-group.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@sebgroup/green-angular/src/v-angular/i18n";
|
|
6
|
+
import * as i5 from "@sebgroup/green-angular/src/lib/shared";
|
|
6
7
|
export declare class NggvRadioModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NggvRadioModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NggvRadioModule, [typeof i1.NggvRadioComponent], [typeof
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NggvRadioModule, [typeof i1.NggvRadioComponent, typeof i2.NggvRadioGroupComponent], [typeof i3.CommonModule, typeof i4.NggvI18nModule, typeof i5.NggCoreWrapperModule], [typeof i1.NggvRadioComponent, typeof i2.NggvRadioGroupComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<NggvRadioModule>;
|
|
10
11
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
2
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
3
|
+
import { NgControl } from '@angular/forms';
|
|
4
|
+
import { TranslocoScope } from '@jsverse/transloco';
|
|
5
|
+
import { NggvBaseControlValueAccessorComponent } from '@sebgroup/green-angular/src/v-angular/base-control-value-accessor';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Creates a wrapper around a group of radio buttons.
|
|
9
|
+
* If there is an error to the form control connected to the radio buttons, it will be shown once below instead of below every individual radio button
|
|
10
|
+
*/
|
|
11
|
+
export declare class NggvRadioGroupComponent extends NggvBaseControlValueAccessorComponent implements OnInit {
|
|
12
|
+
ngControl: NgControl;
|
|
13
|
+
protected translocoScope: TranslocoScope;
|
|
14
|
+
protected cdr: ChangeDetectorRef;
|
|
15
|
+
/**
|
|
16
|
+
* Special property used for selecting DOM elements during automated UI testing.
|
|
17
|
+
*/
|
|
18
|
+
thook: string | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Sets class on host element based on size input for styling
|
|
21
|
+
*/
|
|
22
|
+
size: 'small' | 'large';
|
|
23
|
+
/**
|
|
24
|
+
* Syncs a FormControl in an existing FormGroup to a form control element by name.
|
|
25
|
+
*/
|
|
26
|
+
formControlName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Sets "flex-direction" of parent of radio buttons.
|
|
29
|
+
*/
|
|
30
|
+
direction?: 'row' | 'column';
|
|
31
|
+
/**
|
|
32
|
+
* Creates a new RadioComponent
|
|
33
|
+
* @param ngControl optional FormControl provided when component is used in a form, through dependency injection.
|
|
34
|
+
* @param cdr change detection reference for rendering purposes.
|
|
35
|
+
*/
|
|
36
|
+
constructor(ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef);
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
/** Checks that the name properties match and updates name property if only formControlName is given. */
|
|
39
|
+
private _checkName;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NggvRadioGroupComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NggvRadioGroupComponent, "nggv-radio-group", never, { "thook": { "alias": "thook"; "required": false; }; "size": { "alias": "size"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
42
|
+
}
|
|
@@ -35,6 +35,12 @@ export declare class NggvRadioComponent extends NggvBaseControlValueAccessorComp
|
|
|
35
35
|
* Syncs a FormControl in an existing FormGroup to a form control element by name.
|
|
36
36
|
*/
|
|
37
37
|
formControlName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Decides if error should be connected to each individual radio button.
|
|
40
|
+
* If true, errors will be shown in nggv-radio-group component.
|
|
41
|
+
* If false, errors will be show below each radio button
|
|
42
|
+
*/
|
|
43
|
+
isGroup: boolean;
|
|
38
44
|
/**
|
|
39
45
|
* Creates a new RadioComponent
|
|
40
46
|
* @param ngControl optional FormControl provided when component is used in a form, through dependency injection.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./radio.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@
|
|
5
|
-
import * as i4 from "@sebgroup/green-angular/src/
|
|
3
|
+
import * as i2 from "./radio-group/radio-group.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@sebgroup/green-angular/src/v-angular/i18n";
|
|
6
|
+
import * as i5 from "@sebgroup/green-angular/src/lib/shared";
|
|
6
7
|
export declare class NggvRadioModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NggvRadioModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NggvRadioModule, [typeof i1.NggvRadioComponent], [typeof
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NggvRadioModule, [typeof i1.NggvRadioComponent, typeof i2.NggvRadioGroupComponent], [typeof i3.CommonModule, typeof i4.NggvI18nModule, typeof i5.NggCoreWrapperModule], [typeof i1.NggvRadioComponent, typeof i2.NggvRadioGroupComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<NggvRadioModule>;
|
|
10
11
|
}
|