@tedi-design-system/angular 6.3.0-rc.13 → 6.3.0-rc.14
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/fesm2022/tedi-design-system-angular-tedi.mjs +447 -63
- package/fesm2022/tedi-design-system-angular-tedi.mjs.map +1 -1
- package/package.json +1 -1
- package/tedi/components/form/checkbox/checkbox.component.d.ts +23 -2
- package/tedi/components/form/checkbox/checkbox.component.d.ts.map +1 -1
- package/tedi/components/form/checkbox-group/checkbox-group.component.d.ts +50 -2
- package/tedi/components/form/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/tedi/components/form/radio/radio.component.d.ts +23 -2
- package/tedi/components/form/radio/radio.component.d.ts.map +1 -1
- package/tedi/components/form/radio-card/radio-card.component.d.ts +9 -1
- package/tedi/components/form/radio-card/radio-card.component.d.ts.map +1 -1
- package/tedi/components/form/radio-card-group/radio-card-group.component.d.ts +8 -1
- package/tedi/components/form/radio-card-group/radio-card-group.component.d.ts.map +1 -1
- package/tedi/components/form/radio-group/radio-group.component.d.ts +56 -2
- package/tedi/components/form/radio-group/radio-group.component.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export type CheckboxSize = "default" | "large";
|
|
3
|
-
export declare class CheckboxComponent {
|
|
4
|
+
export declare class CheckboxComponent implements OnInit, OnDestroy {
|
|
4
5
|
/**
|
|
5
6
|
* Size of the checkbox.
|
|
6
7
|
* @default default
|
|
@@ -11,7 +12,27 @@ export declare class CheckboxComponent {
|
|
|
11
12
|
* @default false
|
|
12
13
|
*/
|
|
13
14
|
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
/**
|
|
16
|
+
* Identity of this checkbox inside a managed `<tedi-checkbox-group>`.
|
|
17
|
+
* Required when the parent group is managed (has a FormControl or
|
|
18
|
+
* `[(values)]` binding). Ignored otherwise.
|
|
19
|
+
*/
|
|
20
|
+
readonly value: import("@angular/core").InputSignal<string | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Disables this checkbox. An enclosing disabled `<tedi-checkbox-group>`
|
|
23
|
+
* forces disabled regardless of this input.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
private readonly elementRef;
|
|
28
|
+
private readonly group;
|
|
29
|
+
private warned;
|
|
30
|
+
readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
|
|
31
|
+
get hostElement(): HTMLInputElement;
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
handleChange(): void;
|
|
14
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "input[type=checkbox][tedi-checkbox]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "input[type=checkbox][tedi-checkbox]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
37
|
}
|
|
17
38
|
//# sourceMappingURL=checkbox.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/checkbox/checkbox.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/checkbox/checkbox.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAC;;AAGvB,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;AAE/C,qBAca,iBAAkB,YAAW,MAAM,EAAE,SAAS;IACzD;;;OAGG;IACH,QAAQ,CAAC,IAAI,oDAAkC;IAC/C;;;OAGG;IACH,QAAQ,CAAC,OAAO,+CAAgB;IAChC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,0DAAmB;IACjC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,qEAAiD;IAElE,OAAO,CAAC,QAAQ,CAAC,UAAU,CACwB;IACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsD;IAC5E,OAAO,CAAC,MAAM,CAAS;IAEvB,QAAQ,CAAC,iBAAiB,0CAExB;IAEF,IAAI,WAAW,IAAI,gBAAgB,CAElC;IAED,QAAQ,IAAI,IAAI;IAIhB,WAAW,IAAI,IAAI;IAInB,YAAY,IAAI,IAAI;yCA7CT,iBAAiB;2CAAjB,iBAAiB;CA0D7B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
2
|
+
import type { CheckboxComponent } from "../checkbox/checkbox.component";
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
4
|
export type CheckboxGroupDirection = "horizontal" | "vertical";
|
|
3
|
-
export declare class CheckboxGroupComponent {
|
|
5
|
+
export declare class CheckboxGroupComponent implements ControlValueAccessor {
|
|
4
6
|
/**
|
|
5
7
|
* Label text displayed above the checkbox group.
|
|
6
8
|
*/
|
|
@@ -10,7 +12,53 @@ export declare class CheckboxGroupComponent {
|
|
|
10
12
|
* @default horizontal
|
|
11
13
|
*/
|
|
12
14
|
readonly direction: import("@angular/core").InputSignal<CheckboxGroupDirection>;
|
|
15
|
+
/**
|
|
16
|
+
* Selected values. Bind with `[(values)]` or use a FormControl on the group.
|
|
17
|
+
* When provided, the group enters managed mode and coordinates `checked`
|
|
18
|
+
* on every registered child.
|
|
19
|
+
* @default []
|
|
20
|
+
*/
|
|
21
|
+
readonly values: import("@angular/core").ModelSignal<string[]>;
|
|
22
|
+
/**
|
|
23
|
+
* Disables the entire group. Propagates to all children.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
27
|
+
/**
|
|
28
|
+
* Accessible name for the group. Use when no visible `label` is rendered.
|
|
29
|
+
* Ignored when `label` or `ariaLabelledby` is provided.
|
|
30
|
+
*/
|
|
31
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* ID of an external element that labels the group. Ignored when `label` is
|
|
34
|
+
* provided.
|
|
35
|
+
*/
|
|
36
|
+
readonly ariaLabelledby: import("@angular/core").InputSignal<string | undefined>;
|
|
37
|
+
private readonly renderer;
|
|
38
|
+
protected readonly labelId: string;
|
|
39
|
+
private readonly children;
|
|
40
|
+
private readonly cvaDisabled;
|
|
41
|
+
private readonly managed;
|
|
42
|
+
private onChange;
|
|
43
|
+
private onTouched;
|
|
44
|
+
readonly isManaged: import("@angular/core").Signal<boolean>;
|
|
45
|
+
readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
46
|
+
protected readonly managedAriaLabelledby: import("@angular/core").Signal<string | null>;
|
|
47
|
+
protected readonly managedAriaLabel: import("@angular/core").Signal<string | null>;
|
|
48
|
+
constructor();
|
|
49
|
+
writeValue(values: string[] | null): void;
|
|
50
|
+
registerOnChange(fn: (values: string[]) => void): void;
|
|
51
|
+
registerOnTouched(fn: () => void): void;
|
|
52
|
+
setDisabledState(isDisabled: boolean): void;
|
|
53
|
+
registerChild(child: CheckboxComponent): void;
|
|
54
|
+
unregisterChild(child: CheckboxComponent): void;
|
|
55
|
+
onChildChange(value: string, checked: boolean): void;
|
|
56
|
+
isSelected(value: string | undefined): boolean;
|
|
57
|
+
private syncChildrenChecked;
|
|
58
|
+
private applyCheckedTo;
|
|
59
|
+
/** @internal */
|
|
60
|
+
warnMissingValue(): void;
|
|
13
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxGroupComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxGroupComponent, "tedi-checkbox-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; }, {}, never, ["*", "tedi-feedback-text"], true, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxGroupComponent, "tedi-checkbox-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "values": { "alias": "values"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "values": "valuesChange"; }, never, ["*", "tedi-feedback-text"], true, never>;
|
|
15
63
|
}
|
|
16
64
|
//# sourceMappingURL=checkbox-group.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-group.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/checkbox-group/checkbox-group.component.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"checkbox-group.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/checkbox-group/checkbox-group.component.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AAEzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;;AAExE,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG,UAAU,CAAC;AAI/D,qBAuBa,sBAAuB,YAAW,oBAAoB;IACjE;;OAEG;IACH,QAAQ,CAAC,KAAK,0DAAmB;IACjC;;;OAGG;IACH,QAAQ,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tB,gBAAgB;IAChB,gBAAgB,IAAI,IAAI;yCAlIb,sBAAsB;2CAAtB,sBAAsB;CAyIlC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export type RadioSize = "default" | "large";
|
|
3
|
-
export declare class RadioComponent {
|
|
4
|
+
export declare class RadioComponent implements OnInit, OnDestroy {
|
|
4
5
|
/**
|
|
5
6
|
* Size of the radio.
|
|
6
7
|
* @default default
|
|
@@ -11,7 +12,27 @@ export declare class RadioComponent {
|
|
|
11
12
|
* @default false
|
|
12
13
|
*/
|
|
13
14
|
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
/**
|
|
16
|
+
* Identity of this radio inside a managed `<tedi-radio-group>`. Required
|
|
17
|
+
* when the parent group is managed (has a FormControl or `[(value)]`
|
|
18
|
+
* binding). Ignored otherwise.
|
|
19
|
+
*/
|
|
20
|
+
readonly value: import("@angular/core").InputSignal<string | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Disables this radio. An enclosing disabled `<tedi-radio-group>` forces
|
|
23
|
+
* disabled regardless of this input.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
private readonly elementRef;
|
|
28
|
+
private readonly group;
|
|
29
|
+
private warned;
|
|
30
|
+
readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
|
|
31
|
+
get hostElement(): HTMLInputElement;
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
handleChange(): void;
|
|
14
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "input[type=radio][tedi-radio]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "input[type=radio][tedi-radio]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
37
|
}
|
|
17
38
|
//# sourceMappingURL=radio.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/radio/radio.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/radio/radio.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAC;;AAGvB,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE5C,qBAca,cAAe,YAAW,MAAM,EAAE,SAAS;IACtD;;;OAGG;IACH,QAAQ,CAAC,IAAI,iDAA+B;IAC5C;;;OAGG;IACH,QAAQ,CAAC,OAAO,+CAAgB;IAChC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,0DAAmB;IACjC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,qEAAiD;IAElE,OAAO,CAAC,QAAQ,CAAC,UAAU,CACwB;IACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmD;IACzE,OAAO,CAAC,MAAM,CAAS;IAEvB,QAAQ,CAAC,iBAAiB,0CAExB;IAEF,IAAI,WAAW,IAAI,gBAAgB,CAElC;IAED,QAAQ,IAAI,IAAI;IAIhB,WAAW,IAAI,IAAI;IAInB,YAAY,IAAI,IAAI;yCA7CT,cAAc;2CAAd,cAAc;CA4D1B"}
|
|
@@ -7,7 +7,13 @@ export declare class RadioCardComponent {
|
|
|
7
7
|
*/
|
|
8
8
|
readonly variant: import("@angular/core").InputSignal<RadioCardVariant>;
|
|
9
9
|
/**
|
|
10
|
-
* Whether the card is part of a button-group style layout.
|
|
10
|
+
* Whether the card is part of a button-group style layout. Prefer setting
|
|
11
|
+
* `grouped` on the enclosing `tedi-radio-card-group` instead; this input
|
|
12
|
+
* is retained for standalone cards outside a group.
|
|
13
|
+
*
|
|
14
|
+
* The effective state is `grouped || parentGrouped` (see `isGrouped()` and
|
|
15
|
+
* `RadioCardGroupComponent`): a child cannot opt out when its parent is
|
|
16
|
+
* grouped.
|
|
11
17
|
* @default false
|
|
12
18
|
*/
|
|
13
19
|
readonly grouped: import("@angular/core").InputSignal<boolean>;
|
|
@@ -17,6 +23,8 @@ export declare class RadioCardComponent {
|
|
|
17
23
|
* @default true
|
|
18
24
|
*/
|
|
19
25
|
readonly showIndicator: import("@angular/core").InputSignal<boolean>;
|
|
26
|
+
private readonly cardGroup;
|
|
27
|
+
readonly isGrouped: import("@angular/core").Signal<boolean>;
|
|
20
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioCardComponent, never>;
|
|
21
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioCardComponent, "label[tedi-radio-card]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "grouped": { "alias": "grouped"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; }, {}, never, ["*", "tedi-feedback-text"], true, never>;
|
|
22
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-card.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/radio-card/radio-card.component.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"radio-card.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/radio-card/radio-card.component.ts"],"names":[],"mappings":";AAUA,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,WAAW,CAAC;AAEvD,qBAea,kBAAkB;IAC7B;;;OAGG;IACH,QAAQ,CAAC,OAAO,wDAAsC;IACtD;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,+CAAgB;IAEhC;;;;OAIG;IACH,QAAQ,CAAC,aAAa,+CAAwB;IAE9C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAEvB;IAEH,QAAQ,CAAC,SAAS,0CAEhB;yCA/BS,kBAAkB;2CAAlB,kBAAkB;CAgC9B"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class RadioCardGroupComponent {
|
|
3
|
+
/**
|
|
4
|
+
* Renders children in a button-group style layout with shared borders and
|
|
5
|
+
* no gap. Child `tedi-radio-card` instances automatically inherit this and
|
|
6
|
+
* do not need their own `grouped` input.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
readonly grouped: import("@angular/core").InputSignal<boolean>;
|
|
3
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioCardGroupComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioCardGroupComponent, "tedi-radio-card-group", never, {}, {}, never, ["*"], true, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioCardGroupComponent, "tedi-radio-card-group", never, { "grouped": { "alias": "grouped"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
5
12
|
}
|
|
6
13
|
//# sourceMappingURL=radio-card-group.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-card-group.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/radio-card-group/radio-card-group.component.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"radio-card-group.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/radio-card-group/radio-card-group.component.ts"],"names":[],"mappings":";AAOA,qBAYa,uBAAuB;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,+CAAyB;yCAP9B,uBAAuB;2CAAvB,uBAAuB;CAQnC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
2
|
+
import type { RadioComponent } from "../radio/radio.component";
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
4
|
export type RadioGroupDirection = "horizontal" | "vertical";
|
|
3
|
-
export declare class RadioGroupComponent {
|
|
5
|
+
export declare class RadioGroupComponent implements ControlValueAccessor {
|
|
4
6
|
/**
|
|
5
7
|
* Label text displayed above the radio group.
|
|
6
8
|
*/
|
|
@@ -10,7 +12,59 @@ export declare class RadioGroupComponent {
|
|
|
10
12
|
* @default horizontal
|
|
11
13
|
*/
|
|
12
14
|
readonly direction: import("@angular/core").InputSignal<RadioGroupDirection>;
|
|
15
|
+
/**
|
|
16
|
+
* Selected value. Bind with `[(value)]` or use a FormControl on the group.
|
|
17
|
+
* When set, the group enters managed mode and coordinates `checked` on every
|
|
18
|
+
* registered child.
|
|
19
|
+
* @default null
|
|
20
|
+
*/
|
|
21
|
+
readonly value: import("@angular/core").ModelSignal<string | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Shared `name` attribute applied to child radios. Auto-generated when
|
|
24
|
+
* omitted. Pass an explicit `name` to avoid SSR hydration mismatches.
|
|
25
|
+
*/
|
|
26
|
+
readonly name: import("@angular/core").InputSignal<string | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* Disables the entire group. Propagates to all children.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Accessible name for the group. Use when no visible `label` is rendered.
|
|
34
|
+
* Ignored when `label` or `ariaLabelledby` is provided.
|
|
35
|
+
*/
|
|
36
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* ID of an external element that labels the group. Ignored when `label` is
|
|
39
|
+
* provided.
|
|
40
|
+
*/
|
|
41
|
+
readonly ariaLabelledby: import("@angular/core").InputSignal<string | undefined>;
|
|
42
|
+
private readonly renderer;
|
|
43
|
+
private readonly autoName;
|
|
44
|
+
protected readonly labelId: string;
|
|
45
|
+
private readonly children;
|
|
46
|
+
private readonly cvaDisabled;
|
|
47
|
+
private readonly managed;
|
|
48
|
+
private onChange;
|
|
49
|
+
private onTouched;
|
|
50
|
+
readonly isManaged: import("@angular/core").Signal<boolean>;
|
|
51
|
+
readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
52
|
+
protected readonly managedAriaLabelledby: import("@angular/core").Signal<string | null>;
|
|
53
|
+
protected readonly managedAriaLabel: import("@angular/core").Signal<string | null>;
|
|
54
|
+
constructor();
|
|
55
|
+
writeValue(value: string | null): void;
|
|
56
|
+
registerOnChange(fn: (value: string | null) => void): void;
|
|
57
|
+
registerOnTouched(fn: () => void): void;
|
|
58
|
+
setDisabledState(isDisabled: boolean): void;
|
|
59
|
+
registerChild(child: RadioComponent): void;
|
|
60
|
+
unregisterChild(child: RadioComponent): void;
|
|
61
|
+
onChildChange(value: string): void;
|
|
62
|
+
isSelected(value: string | undefined): boolean;
|
|
63
|
+
private syncChildrenChecked;
|
|
64
|
+
private applyCheckedTo;
|
|
65
|
+
/** @internal */
|
|
66
|
+
warnMissingValue(): void;
|
|
13
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupComponent, "tedi-radio-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; }, {}, never, ["*", "tedi-feedback-text"], true, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupComponent, "tedi-radio-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*", "tedi-feedback-text"], true, never>;
|
|
15
69
|
}
|
|
16
70
|
//# sourceMappingURL=radio-group.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/radio-group/radio-group.component.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"radio-group.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/radio-group/radio-group.component.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;AAE/D,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,UAAU,CAAC;AAI5D,qBAuBa,mBAAoB,YAAW,oBAAoB;IAC9D;;OAEG;IACH,QAAQ,CAAC,KAAK,0DAAmB;IACjC;;;OAGG;IACH,QAAQ,CAAC,SAAS,2DAA4C;IAC9D;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,qDAA8B;IAC5C;;;OAGG;IACH,QAAQ,CAAC,IAAI,0DAAmB;IAChC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,+CAAyB;IAC1C;;;OAGG;IACH,QAAQ,CAAC,SAAS,0DAAmB;IACrC;;;OAGG;IACH,QAAQ,CAAC,cAAc,0DAAmB;IAE1C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqB;IAC9C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuC;IAChE,SAAS,CAAC,QAAQ,CAAC,OAAO,SAA4B;IACtD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyC;IAClE,OAAO,CAAC,QAAQ,CAA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