@radix-ng/primitives 1.0.6 → 1.0.7
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/aspect-ratio/README.md +1 -1
- package/fesm2022/radix-ng-primitives-accordion.mjs +6 -1
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +9 -34
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-avatar.mjs +69 -18
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +5 -9
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +4 -3
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-field.mjs +13 -14
- package/fesm2022/radix-ng-primitives-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-form.mjs +1 -1
- package/fesm2022/radix-ng-primitives-form.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-label.mjs +5 -4
- package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-number-field.mjs +7 -3
- package/fesm2022/radix-ng-primitives-number-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +37 -22
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +1 -6
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-scroll-area.mjs +4 -4
- package/fesm2022/radix-ng-primitives-scroll-area.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-separator.mjs +7 -13
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +1 -2
- package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +3 -3
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +4 -4
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +10 -4
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +24 -29
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toolbar.mjs +15 -2
- package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
- package/package.json +1 -1
- package/types/radix-ng-primitives-accordion.d.ts +1 -0
- package/types/radix-ng-primitives-aspect-ratio.d.ts +10 -23
- package/types/radix-ng-primitives-avatar.d.ts +51 -25
- package/types/radix-ng-primitives-checkbox.d.ts +26 -98
- package/types/radix-ng-primitives-field.d.ts +33 -207
- package/types/radix-ng-primitives-form.d.ts +24 -33
- package/types/radix-ng-primitives-label.d.ts +3 -2
- package/types/radix-ng-primitives-number-field.d.ts +1 -1
- package/types/radix-ng-primitives-progress.d.ts +59 -121
- package/types/radix-ng-primitives-radio.d.ts +0 -1
- package/types/radix-ng-primitives-separator.d.ts +0 -7
- package/types/radix-ng-primitives-toggle-group.d.ts +7 -3
- package/types/radix-ng-primitives-toggle.d.ts +8 -8
- package/types/radix-ng-primitives-toolbar.d.ts +2 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
2
3
|
import * as _radix_ng_primitives_core from '@radix-ng/primitives/core';
|
|
3
4
|
import * as _radix_ng_primitives_progress from '@radix-ng/primitives/progress';
|
|
4
5
|
|
|
@@ -10,46 +11,23 @@ interface ProgressProps {
|
|
|
10
11
|
max?: number;
|
|
11
12
|
valueLabel?: ProgressValueFormatter;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
labelId:
|
|
15
|
-
valueId:
|
|
16
|
-
minState:
|
|
17
|
-
maxState:
|
|
18
|
-
valueState:
|
|
19
|
-
percentageState:
|
|
20
|
-
valueLabelState:
|
|
21
|
-
progressState:
|
|
22
|
-
completeState:
|
|
23
|
-
progressingState:
|
|
24
|
-
indeterminateState:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
minState: _angular_core.Signal<number>;
|
|
31
|
-
maxState: _angular_core.Signal<number>;
|
|
32
|
-
valueState: _angular_core.Signal<number | null>;
|
|
33
|
-
percentageState: _angular_core.Signal<number | null>;
|
|
34
|
-
valueLabelState: _angular_core.Signal<string | undefined>;
|
|
35
|
-
progressState: _angular_core.Signal<ProgressState>;
|
|
36
|
-
completeState: _angular_core.Signal<boolean>;
|
|
37
|
-
progressingState: _angular_core.Signal<boolean>;
|
|
38
|
-
indeterminateState: _angular_core.Signal<boolean>;
|
|
39
|
-
}>;
|
|
40
|
-
declare const provideProgressRootContext: (useFactory: () => {
|
|
41
|
-
labelId: _angular_core.InputSignal<string>;
|
|
42
|
-
valueId: _angular_core.InputSignal<string>;
|
|
43
|
-
minState: _angular_core.Signal<number>;
|
|
44
|
-
maxState: _angular_core.Signal<number>;
|
|
45
|
-
valueState: _angular_core.Signal<number | null>;
|
|
46
|
-
percentageState: _angular_core.Signal<number | null>;
|
|
47
|
-
valueLabelState: _angular_core.Signal<string | undefined>;
|
|
48
|
-
progressState: _angular_core.Signal<ProgressState>;
|
|
49
|
-
completeState: _angular_core.Signal<boolean>;
|
|
50
|
-
progressingState: _angular_core.Signal<boolean>;
|
|
51
|
-
indeterminateState: _angular_core.Signal<boolean>;
|
|
52
|
-
}) => _angular_core.Provider;
|
|
14
|
+
interface RdxProgressRootContext {
|
|
15
|
+
labelId: Signal<string>;
|
|
16
|
+
valueId: Signal<string>;
|
|
17
|
+
minState: Signal<number>;
|
|
18
|
+
maxState: Signal<number>;
|
|
19
|
+
valueState: Signal<number | null>;
|
|
20
|
+
percentageState: Signal<number | null>;
|
|
21
|
+
valueLabelState: Signal<string | undefined>;
|
|
22
|
+
progressState: Signal<ProgressState>;
|
|
23
|
+
completeState: Signal<boolean>;
|
|
24
|
+
progressingState: Signal<boolean>;
|
|
25
|
+
indeterminateState: Signal<boolean>;
|
|
26
|
+
/** A Label part registers its presence; returns its unregister callback. */
|
|
27
|
+
registerLabel: () => () => void;
|
|
28
|
+
}
|
|
29
|
+
declare const injectProgressRootContext: _radix_ng_primitives_core.InjectContext<RdxProgressRootContext>;
|
|
30
|
+
declare const provideProgressRootContext: (useFactory: () => RdxProgressRootContext) => i0.Provider;
|
|
53
31
|
/**
|
|
54
32
|
* Provides progress state and accessibility attributes.
|
|
55
33
|
*
|
|
@@ -62,43 +40,50 @@ declare class RdxProgressRootDirective {
|
|
|
62
40
|
* @group Props
|
|
63
41
|
* @defaultValue null
|
|
64
42
|
*/
|
|
65
|
-
readonly value:
|
|
43
|
+
readonly value: i0.InputSignalWithTransform<number | null, number | null>;
|
|
66
44
|
/**
|
|
67
45
|
* Minimum progress value.
|
|
68
46
|
*
|
|
69
47
|
* @group Props
|
|
70
48
|
* @defaultValue 0
|
|
71
49
|
*/
|
|
72
|
-
readonly min:
|
|
50
|
+
readonly min: i0.InputSignalWithTransform<number, unknown>;
|
|
73
51
|
/**
|
|
74
52
|
* Maximum progress value.
|
|
75
53
|
*
|
|
76
54
|
* @group Props
|
|
77
55
|
* @defaultValue 100
|
|
78
56
|
*/
|
|
79
|
-
readonly max:
|
|
57
|
+
readonly max: i0.InputSignalWithTransform<number, unknown>;
|
|
80
58
|
/**
|
|
81
59
|
* Formats the current value for assistive technologies and `rdxProgressValue`.
|
|
82
60
|
*
|
|
83
61
|
* @group Props
|
|
84
62
|
*/
|
|
85
|
-
readonly valueLabel:
|
|
86
|
-
readonly labelId:
|
|
87
|
-
readonly valueId:
|
|
88
|
-
readonly minState:
|
|
89
|
-
readonly maxState:
|
|
90
|
-
readonly valueState:
|
|
91
|
-
readonly percentageState:
|
|
92
|
-
readonly valueLabelState:
|
|
93
|
-
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
63
|
+
readonly valueLabel: i0.InputSignal<ProgressValueFormatter>;
|
|
64
|
+
readonly labelId: i0.InputSignal<string>;
|
|
65
|
+
readonly valueId: i0.InputSignal<string>;
|
|
66
|
+
readonly minState: Signal<number>;
|
|
67
|
+
readonly maxState: Signal<number>;
|
|
68
|
+
readonly valueState: Signal<number | null>;
|
|
69
|
+
readonly percentageState: Signal<number | null>;
|
|
70
|
+
readonly valueLabelState: Signal<string | undefined>;
|
|
71
|
+
/** `aria-valuetext`: the formatted label, or an explicit "indeterminate progress" (Base UI parity). */
|
|
72
|
+
readonly ariaValueText: Signal<string | undefined>;
|
|
73
|
+
readonly progressState: Signal<ProgressState>;
|
|
74
|
+
readonly completeState: Signal<boolean>;
|
|
75
|
+
readonly progressingState: Signal<boolean>;
|
|
76
|
+
readonly indeterminateState: Signal<boolean>;
|
|
97
77
|
protected readonly dataAttr: (value: boolean) => "" | undefined;
|
|
78
|
+
private readonly labelCount;
|
|
79
|
+
/** Whether at least one `rdxProgressLabel` is currently mounted. */
|
|
80
|
+
readonly hasLabel: Signal<boolean>;
|
|
81
|
+
/** @ignore Called by `rdxProgressLabel` on mount; returns its unregister callback. */
|
|
82
|
+
registerLabel(): () => void;
|
|
98
83
|
private valueTransform;
|
|
99
84
|
private defaultValueLabel;
|
|
100
|
-
static ɵfac:
|
|
101
|
-
static ɵdir:
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressRootDirective, never>;
|
|
86
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressRootDirective, "[rdxProgressRoot]", ["rdxProgressRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "valueLabel": { "alias": "valueLabel"; "required": false; "isSignal": true; }; "labelId": { "alias": "labelId"; "required": false; "isSignal": true; }; "valueId": { "alias": "valueId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
102
87
|
}
|
|
103
88
|
|
|
104
89
|
/**
|
|
@@ -107,22 +92,11 @@ declare class RdxProgressRootDirective {
|
|
|
107
92
|
* @group Components
|
|
108
93
|
*/
|
|
109
94
|
declare class RdxProgressLabelDirective {
|
|
110
|
-
protected readonly progress:
|
|
111
|
-
labelId: _angular_core.InputSignal<string>;
|
|
112
|
-
valueId: _angular_core.InputSignal<string>;
|
|
113
|
-
minState: _angular_core.Signal<number>;
|
|
114
|
-
maxState: _angular_core.Signal<number>;
|
|
115
|
-
valueState: _angular_core.Signal<number | null>;
|
|
116
|
-
percentageState: _angular_core.Signal<number | null>;
|
|
117
|
-
valueLabelState: _angular_core.Signal<string | undefined>;
|
|
118
|
-
progressState: _angular_core.Signal<_radix_ng_primitives_progress.ProgressState>;
|
|
119
|
-
completeState: _angular_core.Signal<boolean>;
|
|
120
|
-
progressingState: _angular_core.Signal<boolean>;
|
|
121
|
-
indeterminateState: _angular_core.Signal<boolean>;
|
|
122
|
-
};
|
|
95
|
+
protected readonly progress: _radix_ng_primitives_progress.RdxProgressRootContext;
|
|
123
96
|
protected readonly dataAttr: (value: boolean) => "" | undefined;
|
|
124
|
-
|
|
125
|
-
static
|
|
97
|
+
constructor();
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressLabelDirective, never>;
|
|
99
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressLabelDirective, "[rdxProgressLabel]", ["rdxProgressLabel"], {}, {}, never, never, true, never>;
|
|
126
100
|
}
|
|
127
101
|
|
|
128
102
|
/**
|
|
@@ -131,22 +105,10 @@ declare class RdxProgressLabelDirective {
|
|
|
131
105
|
* @group Components
|
|
132
106
|
*/
|
|
133
107
|
declare class RdxProgressValueDirective {
|
|
134
|
-
protected readonly progress:
|
|
135
|
-
labelId: _angular_core.InputSignal<string>;
|
|
136
|
-
valueId: _angular_core.InputSignal<string>;
|
|
137
|
-
minState: _angular_core.Signal<number>;
|
|
138
|
-
maxState: _angular_core.Signal<number>;
|
|
139
|
-
valueState: _angular_core.Signal<number | null>;
|
|
140
|
-
percentageState: _angular_core.Signal<number | null>;
|
|
141
|
-
valueLabelState: _angular_core.Signal<string | undefined>;
|
|
142
|
-
progressState: _angular_core.Signal<_radix_ng_primitives_progress.ProgressState>;
|
|
143
|
-
completeState: _angular_core.Signal<boolean>;
|
|
144
|
-
progressingState: _angular_core.Signal<boolean>;
|
|
145
|
-
indeterminateState: _angular_core.Signal<boolean>;
|
|
146
|
-
};
|
|
108
|
+
protected readonly progress: _radix_ng_primitives_progress.RdxProgressRootContext;
|
|
147
109
|
protected readonly dataAttr: (value: boolean) => "" | undefined;
|
|
148
|
-
static ɵfac:
|
|
149
|
-
static ɵdir:
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressValueDirective, never>;
|
|
111
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressValueDirective, "[rdxProgressValue]", ["rdxProgressValue"], {}, {}, never, never, true, never>;
|
|
150
112
|
}
|
|
151
113
|
|
|
152
114
|
/**
|
|
@@ -155,22 +117,10 @@ declare class RdxProgressValueDirective {
|
|
|
155
117
|
* @group Components
|
|
156
118
|
*/
|
|
157
119
|
declare class RdxProgressTrackDirective {
|
|
158
|
-
protected readonly progress:
|
|
159
|
-
labelId: _angular_core.InputSignal<string>;
|
|
160
|
-
valueId: _angular_core.InputSignal<string>;
|
|
161
|
-
minState: _angular_core.Signal<number>;
|
|
162
|
-
maxState: _angular_core.Signal<number>;
|
|
163
|
-
valueState: _angular_core.Signal<number | null>;
|
|
164
|
-
percentageState: _angular_core.Signal<number | null>;
|
|
165
|
-
valueLabelState: _angular_core.Signal<string | undefined>;
|
|
166
|
-
progressState: _angular_core.Signal<_radix_ng_primitives_progress.ProgressState>;
|
|
167
|
-
completeState: _angular_core.Signal<boolean>;
|
|
168
|
-
progressingState: _angular_core.Signal<boolean>;
|
|
169
|
-
indeterminateState: _angular_core.Signal<boolean>;
|
|
170
|
-
};
|
|
120
|
+
protected readonly progress: _radix_ng_primitives_progress.RdxProgressRootContext;
|
|
171
121
|
protected readonly dataAttr: (value: boolean) => "" | undefined;
|
|
172
|
-
static ɵfac:
|
|
173
|
-
static ɵdir:
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressTrackDirective, never>;
|
|
123
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressTrackDirective, "[rdxProgressTrack]", ["rdxProgressTrack"], {}, {}, never, never, true, never>;
|
|
174
124
|
}
|
|
175
125
|
|
|
176
126
|
/**
|
|
@@ -179,28 +129,16 @@ declare class RdxProgressTrackDirective {
|
|
|
179
129
|
* @group Components
|
|
180
130
|
*/
|
|
181
131
|
declare class RdxProgressIndicatorDirective {
|
|
182
|
-
protected readonly progress:
|
|
183
|
-
labelId: _angular_core.InputSignal<string>;
|
|
184
|
-
valueId: _angular_core.InputSignal<string>;
|
|
185
|
-
minState: _angular_core.Signal<number>;
|
|
186
|
-
maxState: _angular_core.Signal<number>;
|
|
187
|
-
valueState: _angular_core.Signal<number | null>;
|
|
188
|
-
percentageState: _angular_core.Signal<number | null>;
|
|
189
|
-
valueLabelState: _angular_core.Signal<string | undefined>;
|
|
190
|
-
progressState: _angular_core.Signal<_radix_ng_primitives_progress.ProgressState>;
|
|
191
|
-
completeState: _angular_core.Signal<boolean>;
|
|
192
|
-
progressingState: _angular_core.Signal<boolean>;
|
|
193
|
-
indeterminateState: _angular_core.Signal<boolean>;
|
|
194
|
-
};
|
|
132
|
+
protected readonly progress: _radix_ng_primitives_progress.RdxProgressRootContext;
|
|
195
133
|
protected readonly dataAttr: (value: boolean) => "" | undefined;
|
|
196
|
-
static ɵfac:
|
|
197
|
-
static ɵdir:
|
|
134
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressIndicatorDirective, never>;
|
|
135
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressIndicatorDirective, "[rdxProgressIndicator]", ["rdxProgressIndicator"], {}, {}, never, never, true, never>;
|
|
198
136
|
}
|
|
199
137
|
|
|
200
138
|
declare class RdxProgressModule {
|
|
201
|
-
static ɵfac:
|
|
202
|
-
static ɵmod:
|
|
203
|
-
static ɵinj:
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressModule, never>;
|
|
140
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxProgressModule, never, [typeof RdxProgressRootDirective, typeof RdxProgressLabelDirective, typeof RdxProgressValueDirective, typeof RdxProgressTrackDirective, typeof RdxProgressIndicatorDirective], [typeof RdxProgressRootDirective, typeof RdxProgressLabelDirective, typeof RdxProgressValueDirective, typeof RdxProgressTrackDirective, typeof RdxProgressIndicatorDirective]>;
|
|
141
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RdxProgressModule>;
|
|
204
142
|
}
|
|
205
143
|
|
|
206
144
|
export { RdxProgressIndicatorDirective, RdxProgressLabelDirective, RdxProgressModule, RdxProgressRootDirective, RdxProgressTrackDirective, RdxProgressValueDirective, injectProgressRootContext, provideProgressRootContext };
|
|
@@ -93,7 +93,6 @@ declare class RdxRadioGroupDirective implements ControlValueAccessor, RdxFormVal
|
|
|
93
93
|
setDisabledState(isDisabled: boolean): void;
|
|
94
94
|
setArrowNavigation(value: boolean): void;
|
|
95
95
|
isArrowNavigation(): boolean;
|
|
96
|
-
protected onKeydown(): void;
|
|
97
96
|
/**
|
|
98
97
|
* Marks the control touched when focus leaves the whole group (Base UI `RadioGroup` parity and the
|
|
99
98
|
* ADR 0004 CVA strategy) — moving focus between items stays inside, so `relatedTarget` is checked.
|
|
@@ -22,13 +22,6 @@ declare class RdxSeparatorRootDirective {
|
|
|
22
22
|
*/
|
|
23
23
|
readonly orientation: _angular_core.InputSignal<Orientation>;
|
|
24
24
|
protected readonly orientationState: _angular_core.WritableSignal<Orientation>;
|
|
25
|
-
/**
|
|
26
|
-
* Computes the `aria-orientation` attribute. It is set to "vertical" only when
|
|
27
|
-
* the separator orientation is vertical. Horizontal is the implicit ARIA default.
|
|
28
|
-
*
|
|
29
|
-
* @ignore
|
|
30
|
-
*/
|
|
31
|
-
protected readonly computedAriaOrientation: _angular_core.Signal<"vertical" | undefined>;
|
|
32
25
|
updateOrientation(value: Orientation): void;
|
|
33
26
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxSeparatorRootDirective, never>;
|
|
34
27
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxSeparatorRootDirective, "[rdxSeparatorRoot]", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -18,8 +18,12 @@ interface RdxToggleGroupContext {
|
|
|
18
18
|
readonly orientation: Signal<DataOrientation>;
|
|
19
19
|
/** Whether the group value was initialized by `value` or `defaultValue`. */
|
|
20
20
|
readonly isValueInitialized: Signal<boolean>;
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Set the pressed state of `value` within the group. The item computes the next pressed boolean
|
|
23
|
+
* (Base UI parity — the item is the source of truth), so the group applies it rather than
|
|
24
|
+
* re-deriving the toggle from its current value set.
|
|
25
|
+
*/
|
|
26
|
+
toggle(value: string, nextPressed: boolean, event?: Event, eventDetails?: RdxCancelableChangeEventDetails<RdxToggleGroupContextChangeReason>): void;
|
|
23
27
|
}
|
|
24
28
|
declare const injectToggleGroupContext: _radix_ng_primitives_core.InjectContext<RdxToggleGroupContext>;
|
|
25
29
|
declare const provideToggleGroupContext: (useFactory: () => RdxToggleGroupContext) => _angular_core.Provider;
|
|
@@ -78,7 +82,7 @@ declare abstract class RdxToggleGroupBase implements ControlValueAccessor {
|
|
|
78
82
|
/** @ignore Extra disabled state inherited from composite parents such as Toolbar. */
|
|
79
83
|
protected isExternallyDisabled(): boolean;
|
|
80
84
|
/** @ignore */
|
|
81
|
-
toggle(value: string, event?: Event, eventDetails?: RdxToggleGroupValueChangeEventDetails): void;
|
|
85
|
+
toggle(value: string, nextPressed: boolean, event?: Event, eventDetails?: RdxToggleGroupValueChangeEventDetails): void;
|
|
82
86
|
/** @ignore */
|
|
83
87
|
writeValue(value: string[] | string | null): void;
|
|
84
88
|
/** @ignore */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { BooleanInput, RdxCancelableChangeEventDetails } from '@radix-ng/primitives/core';
|
|
3
3
|
import * as i1 from '@radix-ng/primitives/composite';
|
|
4
|
-
import * as i1$1 from '@radix-ng/primitives/visually-hidden';
|
|
5
4
|
|
|
6
5
|
type RdxTogglePressedChangeReason = 'none';
|
|
7
6
|
type RdxTogglePressedChangeEventDetails = RdxCancelableChangeEventDetails<RdxTogglePressedChangeReason>;
|
|
@@ -57,16 +56,17 @@ declare class RdxToggle {
|
|
|
57
56
|
constructor();
|
|
58
57
|
/** @ignore */
|
|
59
58
|
protected onClick(event?: Event): void;
|
|
60
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* @ignore
|
|
61
|
+
* Non-native hosts emulate a native `<button>` (Base UI `useButton`): Enter activates on keydown,
|
|
62
|
+
* Space is `preventDefault`-ed on keydown (to suppress page scroll) and activates on keyup.
|
|
63
|
+
*/
|
|
61
64
|
protected onKeyDown(event: KeyboardEvent): void;
|
|
65
|
+
/** @ignore Space activates on keyup for non-native hosts (native-button semantics). */
|
|
66
|
+
protected onKeyUp(event: KeyboardEvent): void;
|
|
62
67
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxToggle, never>;
|
|
63
68
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxToggle, "[rdxToggle]", ["rdxToggle"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultPressed": { "alias": "defaultPressed"; "required": false; "isSignal": true; }; "pressed": { "alias": "pressed"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "nativeButton": { "alias": "nativeButton"; "required": false; "isSignal": true; }; }, { "pressed": "pressedChange"; "onPressedChange": "onPressedChange"; }, never, never, true, [{ directive: typeof i1.RdxCompositeItem; inputs: {}; outputs: {}; }]>;
|
|
64
69
|
}
|
|
65
70
|
|
|
66
|
-
|
|
67
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxToggleVisuallyHiddenInputDirective, never>;
|
|
68
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxToggleVisuallyHiddenInputDirective, "input[rdxToggleVisuallyHiddenInput]", ["rdxToggleVisuallyHiddenInput"], {}, {}, never, never, true, [{ directive: typeof i1$1.RdxVisuallyHiddenInputBubbleDirective; inputs: { "name": "name"; "required": "required"; "value": "value"; "disabled": "disabled"; }; outputs: {}; }]>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { RdxToggle, RdxToggleVisuallyHiddenInputDirective };
|
|
71
|
+
export { RdxToggle };
|
|
72
72
|
export type { RdxTogglePressedChangeEvent, RdxTogglePressedChangeEventDetails, RdxTogglePressedChangeReason };
|
|
@@ -94,6 +94,8 @@ declare class RdxToolbarInput {
|
|
|
94
94
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
95
95
|
private appliedDefault;
|
|
96
96
|
constructor();
|
|
97
|
+
/** @ignore Block pointer interaction while disabled (Base UI input `defaultProps`). */
|
|
98
|
+
protected onInteraction(event: Event): void;
|
|
97
99
|
private handleCaretKeydown;
|
|
98
100
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxToolbarInput, never>;
|
|
99
101
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxToolbarInput, "input[rdxToolbarInput]", ["rdxToolbarInput"], { "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "focusableWhenDisabled": { "alias": "focusableWhenDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RdxCompositeItem; inputs: {}; outputs: {}; }]>;
|