@nanahoshi/mona-ui 0.24.11 → 0.25.1
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/README.md +9 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +11 -10
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +37 -20
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +239 -47
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +183 -30
- package/fesm2022/nanahoshi-mona-ui-button.mjs +45 -9
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +17 -13
- package/fesm2022/nanahoshi-mona-ui-card.mjs +54 -30
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +5 -0
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +112 -31
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +130 -88
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +59 -19
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +118 -41
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +243 -212
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +155 -86
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +161 -131
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +12 -11
- package/fesm2022/nanahoshi-mona-ui-common.mjs +18 -1
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +25 -24
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +202 -33
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +31 -10
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -1
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs → nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs → nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs} +7 -7
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs} +27 -29
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +39 -4
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +183 -47
- package/fesm2022/nanahoshi-mona-ui-label.mjs +111 -15
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +33 -4
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +14 -13
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +13 -12
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +192 -56
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -1
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +60 -29
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +334 -37
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +84 -30
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +281 -111
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +126 -36
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +595 -170
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +323 -166
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +167 -82
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +273 -165
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +219 -132
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +84 -32
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +337 -116
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +10 -12
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +21 -8
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +472 -84
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +15 -14
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +17 -3
- package/fesm2022/nanahoshi-mona-ui-window.mjs +1 -1
- package/i18n/catalogs/en-US.messages.json +33 -4
- package/locales/ar-sa/ar-sa.messages.json +33 -4
- package/locales/de-de/de-de.messages.json +33 -4
- package/locales/es-es/es-es.messages.json +33 -4
- package/locales/fr-fr/fr-fr.messages.json +33 -4
- package/locales/id-id/id-id.messages.json +33 -4
- package/locales/it-it/it-it.messages.json +33 -4
- package/locales/ja-jp/ja-jp.messages.json +33 -4
- package/locales/ko-kr/ko-kr.messages.json +33 -4
- package/locales/pt-br/pt-br.messages.json +33 -4
- package/locales/ru-ru/ru-ru.messages.json +33 -4
- package/locales/tr-tr/tr-tr.messages.json +33 -4
- package/locales/zh-cn/zh-cn.messages.json +33 -4
- package/locales/zh-tw/zh-tw.messages.json +33 -4
- package/package.json +2 -1
- package/styles.css +166 -0
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -0
- package/types/nanahoshi-mona-ui-avatar.d.ts +18 -11
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +62 -14
- package/types/nanahoshi-mona-ui-button-group.d.ts +86 -16
- package/types/nanahoshi-mona-ui-button.d.ts +26 -3
- package/types/nanahoshi-mona-ui-calendar.d.ts +1 -0
- package/types/nanahoshi-mona-ui-card.d.ts +22 -6
- package/types/nanahoshi-mona-ui-check-box.d.ts +54 -13
- package/types/nanahoshi-mona-ui-chip.d.ts +31 -18
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +21 -5
- package/types/nanahoshi-mona-ui-collapsible.d.ts +20 -11
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +62 -36
- package/types/nanahoshi-mona-ui-color-palette.d.ts +65 -27
- package/types/nanahoshi-mona-ui-color-picker.d.ts +64 -23
- package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-common.d.ts +28 -2
- package/types/nanahoshi-mona-ui-date-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +1 -0
- package/types/nanahoshi-mona-ui-editor.d.ts +1 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +51 -7
- package/types/nanahoshi-mona-ui-fieldset.d.ts +18 -4
- package/types/nanahoshi-mona-ui-grid.d.ts +0 -1
- package/types/nanahoshi-mona-ui-i18n.d.ts +38 -3
- package/types/nanahoshi-mona-ui-internal.d.ts +95 -14
- package/types/nanahoshi-mona-ui-label.d.ts +17 -2
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +29 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +29 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +1 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-otp-input.d.ts +49 -12
- package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -1
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +21 -9
- package/types/nanahoshi-mona-ui-radio-button.d.ts +165 -20
- package/types/nanahoshi-mona-ui-rating.d.ts +21 -6
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +59 -27
- package/types/nanahoshi-mona-ui-segmented.d.ts +52 -24
- package/types/nanahoshi-mona-ui-sidebar.d.ts +104 -41
- package/types/nanahoshi-mona-ui-skeleton.d.ts +1 -1
- package/types/nanahoshi-mona-ui-slider.d.ts +99 -35
- package/types/nanahoshi-mona-ui-spinner.d.ts +9 -5
- package/types/nanahoshi-mona-ui-splitter.d.ts +31 -10
- package/types/nanahoshi-mona-ui-stepper.d.ts +58 -12
- package/types/nanahoshi-mona-ui-switch.d.ts +32 -10
- package/types/nanahoshi-mona-ui-tabs.d.ts +75 -20
- package/types/nanahoshi-mona-ui-text-area.d.ts +7 -7
- package/types/nanahoshi-mona-ui-text-box.d.ts +2 -0
- package/types/nanahoshi-mona-ui-theme.d.ts +392 -15
- package/types/nanahoshi-mona-ui-time-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-time-selector.d.ts +1 -0
- package/types/nanahoshi-mona-ui-tooltip.d.ts +7 -1
|
@@ -35,10 +35,13 @@ declare class OtpInputComponent implements OtpInputVariantInput, FormValueContro
|
|
|
35
35
|
#private;
|
|
36
36
|
protected readonly activeSlotIndex: _angular_core.Signal<number>;
|
|
37
37
|
protected readonly classes: _angular_core.Signal<string>;
|
|
38
|
+
protected readonly computedAriaDescribedby: _angular_core.Signal<string | null>;
|
|
38
39
|
protected readonly computedAriaLabel: _angular_core.Signal<string | null>;
|
|
39
40
|
protected readonly computedAriaLabelledby: _angular_core.Signal<string | null>;
|
|
40
41
|
protected readonly derivedAutocomplete: _angular_core.Signal<string>;
|
|
41
42
|
protected readonly derivedInputMode: _angular_core.Signal<string>;
|
|
43
|
+
protected readonly derivedName: _angular_core.Signal<string | null>;
|
|
44
|
+
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
42
45
|
protected readonly hasFocus: _angular_core.WritableSignal<boolean>;
|
|
43
46
|
protected readonly inputClass: _angular_core.Signal<string>;
|
|
44
47
|
protected readonly inputRef: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
@@ -50,23 +53,38 @@ declare class OtpInputComponent implements OtpInputVariantInput, FormValueContro
|
|
|
50
53
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaOtpInputMessages>;
|
|
51
54
|
protected readonly nativeInputType: _angular_core.Signal<"text" | "password">;
|
|
52
55
|
protected readonly normalizedLength: _angular_core.Signal<number>;
|
|
56
|
+
/** The one thing that writes the id. `inputId` wins, and an id in `inputAttributes` stands in for a generated one. */
|
|
57
|
+
protected readonly resolvedId: _angular_core.Signal<string>;
|
|
53
58
|
protected readonly sanitizedAttributes: _angular_core.Signal<AttributeConfig>;
|
|
54
59
|
protected readonly selectionEnd: _angular_core.WritableSignal<number>;
|
|
55
60
|
protected readonly selectionStart: _angular_core.WritableSignal<number>;
|
|
56
61
|
protected readonly separatorTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
57
62
|
protected readonly visualGroups: _angular_core.Signal<OtpGroupViewModel[]>;
|
|
58
63
|
/**
|
|
59
|
-
* @description
|
|
64
|
+
* @description Id of an element that describes the inner `<input>`, such as an error message.
|
|
65
|
+
* @default null
|
|
66
|
+
*/
|
|
67
|
+
readonly ariaDescribedBy: _angular_core.InputSignal<string | null>;
|
|
68
|
+
/**
|
|
69
|
+
* @description Accessible name for the inner `<input>` element. A `<label>` or `mona-label` names it too, and the
|
|
70
|
+
* generic "Verification code" name only applies when there is neither.
|
|
60
71
|
* @default null
|
|
61
72
|
*/
|
|
62
73
|
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
74
|
+
/**
|
|
75
|
+
* @description Id of the element that labels the inner `<input>`.
|
|
76
|
+
* @default null
|
|
77
|
+
*/
|
|
78
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string | null>;
|
|
63
79
|
/**
|
|
64
80
|
* @description Regular expression used to determine whether each individual OTP character is allowed.
|
|
65
81
|
* @default null
|
|
66
82
|
*/
|
|
67
83
|
readonly characterPattern: _angular_core.InputSignal<RegExp | null>;
|
|
68
84
|
/**
|
|
69
|
-
* @description Emitted when a user interaction completes the verification code.
|
|
85
|
+
* @description Emitted when a user interaction completes the verification code. Pasting a different full code over
|
|
86
|
+
* a complete one emits again, so auto-submit sees the new code. Correcting a complete code one character at a time
|
|
87
|
+
* doesn't.
|
|
70
88
|
*/
|
|
71
89
|
readonly complete: _angular_core.OutputEmitterRef<string>;
|
|
72
90
|
/**
|
|
@@ -74,7 +92,7 @@ declare class OtpInputComponent implements OtpInputVariantInput, FormValueContro
|
|
|
74
92
|
* When bound to a signal form field via `[formField]`, this is written by the `FormField` directive.
|
|
75
93
|
* @default false
|
|
76
94
|
*/
|
|
77
|
-
readonly disabled: _angular_core.
|
|
95
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
78
96
|
/**
|
|
79
97
|
* @description Configures slot grouping lengths. Accepts a uniform number or an array of group sizes.
|
|
80
98
|
* @default null
|
|
@@ -93,17 +111,29 @@ declare class OtpInputComponent implements OtpInputVariantInput, FormValueContro
|
|
|
93
111
|
* @description Emitted when the inner input gains focus.
|
|
94
112
|
*/
|
|
95
113
|
readonly inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
114
|
+
/**
|
|
115
|
+
* @description Id of the inner `<input>` element. Point a `<label for>` or `<mona-label for>` at it to label the
|
|
116
|
+
* control. A unique id is generated when it isn't set.
|
|
117
|
+
* @default generated
|
|
118
|
+
*/
|
|
119
|
+
readonly inputId: _angular_core.InputSignal<string>;
|
|
96
120
|
/**
|
|
97
121
|
* @description Marks the OTP input as invalid. When bound to a signal form field via `[formField]`,
|
|
98
122
|
* this is written by the `FormField` directive.
|
|
99
123
|
* @default false
|
|
100
124
|
*/
|
|
101
|
-
readonly invalid: _angular_core.
|
|
125
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
102
126
|
/**
|
|
103
127
|
* @description Sets the total number of characters accepted by the OTP input and the number of visual slots.
|
|
104
128
|
* @default 4
|
|
105
129
|
*/
|
|
106
130
|
readonly length: _angular_core.InputSignal<number>;
|
|
131
|
+
/**
|
|
132
|
+
* @description Name of the native input, used in native form submission and by browsers for autofill. When bound to
|
|
133
|
+
* a signal form field via `[formField]`, this is written by the `FormField` directive.
|
|
134
|
+
* @default ""
|
|
135
|
+
*/
|
|
136
|
+
readonly name: _angular_core.InputSignal<string>;
|
|
107
137
|
/**
|
|
108
138
|
* @description Hint character displayed in empty visual slots.
|
|
109
139
|
* @default ""
|
|
@@ -114,13 +144,13 @@ declare class OtpInputComponent implements OtpInputVariantInput, FormValueContro
|
|
|
114
144
|
* When bound to a signal form field via `[formField]`, this is written by the `FormField` directive.
|
|
115
145
|
* @default false
|
|
116
146
|
*/
|
|
117
|
-
readonly readonly: _angular_core.
|
|
147
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
118
148
|
/**
|
|
119
149
|
* @description Marks the OTP input as required. Triggers invalid state when touched and incomplete.
|
|
120
150
|
* When bound to a signal form field via `[formField]`, this is written by the `FormField` directive.
|
|
121
151
|
* @default false
|
|
122
152
|
*/
|
|
123
|
-
readonly required: _angular_core.
|
|
153
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
124
154
|
/**
|
|
125
155
|
* @description Border-radius preset applied to the OTP slots.
|
|
126
156
|
* @default "medium"
|
|
@@ -150,10 +180,15 @@ declare class OtpInputComponent implements OtpInputVariantInput, FormValueContro
|
|
|
150
180
|
* @description Determines whether visual slots within a group have spacing between them or are joined together.
|
|
151
181
|
* @default true
|
|
152
182
|
*/
|
|
153
|
-
readonly spacing: _angular_core.
|
|
183
|
+
readonly spacing: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
184
|
+
/**
|
|
185
|
+
* @description Tab index of the inner `<input>`.
|
|
186
|
+
* @default 0
|
|
187
|
+
*/
|
|
188
|
+
readonly tabindex: _angular_core.InputSignalWithTransform<number, string | number>;
|
|
154
189
|
/**
|
|
155
|
-
* @description Emitted when the
|
|
156
|
-
*
|
|
190
|
+
* @description Emitted when the inner input loses focus. The `FormField` directive listens to this to mark the field
|
|
191
|
+
* as touched.
|
|
157
192
|
*/
|
|
158
193
|
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
159
194
|
/**
|
|
@@ -161,7 +196,7 @@ declare class OtpInputComponent implements OtpInputVariantInput, FormValueContro
|
|
|
161
196
|
* this is written by the `FormField` directive.
|
|
162
197
|
* @default false
|
|
163
198
|
*/
|
|
164
|
-
readonly touched: _angular_core.
|
|
199
|
+
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
165
200
|
/**
|
|
166
201
|
* @description Sets the type of the OTP input ("text", "number", or "password").
|
|
167
202
|
* @default "text"
|
|
@@ -187,15 +222,17 @@ declare class OtpInputComponent implements OtpInputVariantInput, FormValueContro
|
|
|
187
222
|
protected onCompositionStart(): void;
|
|
188
223
|
protected onFocus(event: FocusEvent): void;
|
|
189
224
|
protected onInput(_event?: Event): void;
|
|
225
|
+
protected onInputClick(event: MouseEvent): void;
|
|
226
|
+
protected onInputMouseDown(event: MouseEvent): void;
|
|
227
|
+
protected onInputPointerDown(event: PointerEvent): void;
|
|
190
228
|
protected onKeyDown(event: KeyboardEvent): void;
|
|
191
229
|
protected onKeyUp(): void;
|
|
192
230
|
protected onPaste(event: ClipboardEvent): void;
|
|
193
231
|
protected onSelect(): void;
|
|
194
|
-
protected onSlotPointerDown(event: PointerEvent, index: number): void;
|
|
195
232
|
private applyUserInsertion;
|
|
196
233
|
private syncSelection;
|
|
197
234
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OtpInputComponent, never>;
|
|
198
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OtpInputComponent, "mona-otp-input", never, { "
|
|
235
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OtpInputComponent, "mona-otp-input", never, { "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "characterPattern": { "alias": "characterPattern"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "groupLength": { "alias": "groupLength"; "required": false; "isSignal": true; }; "inputAttributes": { "alias": "inputAttributes"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "length": { "alias": "length"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "separatorClass": { "alias": "separatorClass"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "slotClass": { "alias": "slotClass"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "complete": "complete"; "inputBlur": "inputBlur"; "inputFocus": "inputFocus"; "touch": "touch"; "value": "valueChange"; }, ["separatorTemplate"], never, true, never>;
|
|
199
236
|
}
|
|
200
237
|
|
|
201
238
|
interface OtpInputSeparatorContext {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ClassInputType } from '@nanahoshi/mona-ui/common';
|
|
2
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
4
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -25,7 +26,7 @@ declare class PlaceholderComponent implements PlaceholderVariantInput {
|
|
|
25
26
|
* Bind this input with the public `class` alias.
|
|
26
27
|
* @default ""
|
|
27
28
|
*/
|
|
28
|
-
readonly userClass: _angular_core.
|
|
29
|
+
readonly userClass: _angular_core.InputSignalWithTransform<string, ClassInputType>;
|
|
29
30
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PlaceholderComponent, never>;
|
|
30
31
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PlaceholderComponent, "mona-placeholder", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
31
32
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
|
+
import { MonaProgressBarMessages } from '@nanahoshi/mona-ui/i18n';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { TemplateRef } from '@angular/core';
|
|
5
|
+
import * as _nanahoshi_mona_ui_common from '@nanahoshi/mona-ui/common';
|
|
3
6
|
import { VariantInputs, Action } from '@nanahoshi/mona-ui/internal';
|
|
4
7
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
8
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -13,6 +16,7 @@ interface LabelTemplateContext {
|
|
|
13
16
|
|
|
14
17
|
declare class ProgressBarLabelTemplateDirective {
|
|
15
18
|
readonly templateRef: TemplateRef<LabelTemplateContext>;
|
|
19
|
+
static ngTemplateContextGuard(_dir: ProgressBarLabelTemplateDirective, _ctx: unknown): _ctx is LabelTemplateContext;
|
|
16
20
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarLabelTemplateDirective, never>;
|
|
17
21
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ProgressBarLabelTemplateDirective, "ng-template[monaProgressBarLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
18
22
|
}
|
|
@@ -35,16 +39,19 @@ type ProgressBarLabelVariantProps = VariantProps<typeof progressBarLabelThemeVar
|
|
|
35
39
|
type ProgressBarLabelVariantInput = VariantInputs<ProgressBarLabelVariantProps>;
|
|
36
40
|
type ProgressBarTrackVariantProps = VariantProps<typeof progressBarTrackThemeVariants>;
|
|
37
41
|
type ProgressBarTrackVariantInput = VariantInputs<ProgressBarTrackVariantProps>;
|
|
42
|
+
type ProgressBarVariantProps = ProgressBarBaseVariantProps & ProgressBarIndeterminateVariantProps & ProgressBarTrackVariantProps & ProgressBarLabelVariantProps;
|
|
38
43
|
type ProgressBarVariantInput = ProgressBarBaseVariantInput & ProgressBarIndeterminateVariantInput & ProgressBarTrackVariantInput & ProgressBarLabelVariantInput;
|
|
39
44
|
|
|
40
45
|
declare class ProgressBarComponent implements ProgressBarVariantInput {
|
|
41
46
|
#private;
|
|
42
|
-
protected readonly
|
|
43
|
-
protected readonly formattedProgress: _angular_core.Signal<string>;
|
|
47
|
+
protected readonly ariaRange: _angular_core.Signal<_nanahoshi_mona_ui_common.ProgressRange | null>;
|
|
44
48
|
protected readonly baseClasses: _angular_core.Signal<string>;
|
|
49
|
+
protected readonly formattedProgress: _angular_core.Signal<string>;
|
|
45
50
|
protected readonly indeterminateClasses: _angular_core.Signal<string>;
|
|
51
|
+
protected readonly isRtl: _angular_core.Signal<boolean>;
|
|
46
52
|
protected readonly labelClasses: _angular_core.Signal<string>;
|
|
47
53
|
protected readonly labelTemplate: _angular_core.Signal<ProgressBarLabelTemplateDirective | undefined>;
|
|
54
|
+
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaProgressBarMessages>;
|
|
48
55
|
protected readonly nextTrackClipPath: _angular_core.Signal<string>;
|
|
49
56
|
protected readonly prevTrackClipPath: _angular_core.Signal<string>;
|
|
50
57
|
protected readonly progress: _angular_core.Signal<number>;
|
|
@@ -59,7 +66,7 @@ declare class ProgressBarComponent implements ProgressBarVariantInput {
|
|
|
59
66
|
/**
|
|
60
67
|
* @description Accessible label for the progress bar host element.
|
|
61
68
|
* Use to describe what is being measured (e.g., "Upload progress").
|
|
62
|
-
* When empty,
|
|
69
|
+
* When empty, falls back to the localized "Progress". An `aria-labelledby` on the host takes precedence over both.
|
|
63
70
|
* @default ""
|
|
64
71
|
*/
|
|
65
72
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
@@ -79,13 +86,14 @@ declare class ProgressBarComponent implements ProgressBarVariantInput {
|
|
|
79
86
|
*/
|
|
80
87
|
readonly color: _angular_core.InputSignal<string | Action<number, string>>;
|
|
81
88
|
/**
|
|
82
|
-
* @description Renders the bar with reduced visual emphasis and removes pointer interaction.
|
|
89
|
+
* @description Renders the bar with reduced visual emphasis and removes pointer interaction. `color` doesn't apply
|
|
90
|
+
* while disabled.
|
|
83
91
|
* @default false
|
|
84
92
|
*/
|
|
85
93
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
86
94
|
/**
|
|
87
95
|
* @description Switches to indeterminate mode: plays a looping animation and hides the label.
|
|
88
|
-
* ARIA value attributes are removed
|
|
96
|
+
* ARIA value attributes are removed.
|
|
89
97
|
* @default false
|
|
90
98
|
*/
|
|
91
99
|
readonly indeterminate: _angular_core.InputSignal<boolean>;
|
|
@@ -107,7 +115,8 @@ declare class ProgressBarComponent implements ProgressBarVariantInput {
|
|
|
107
115
|
*/
|
|
108
116
|
readonly labelVisible: _angular_core.InputSignal<boolean>;
|
|
109
117
|
/**
|
|
110
|
-
* @description Upper bound of the value range. Must be greater than `min
|
|
118
|
+
* @description Upper bound of the value range. Must be greater than `min`; otherwise the bar reports no values and a
|
|
119
|
+
* warning is logged in development.
|
|
111
120
|
* @default 100
|
|
112
121
|
*/
|
|
113
122
|
readonly max: _angular_core.InputSignal<number>;
|
|
@@ -128,13 +137,16 @@ declare class ProgressBarComponent implements ProgressBarVariantInput {
|
|
|
128
137
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
129
138
|
/**
|
|
130
139
|
* @description Current progress value within `[min, max]`.
|
|
131
|
-
* Values outside the range are clamped
|
|
140
|
+
* Values outside the range are clamped, for the bar and for `aria-valuenow`; non-finite values count as `min`.
|
|
132
141
|
* @default 0
|
|
133
142
|
*/
|
|
134
143
|
readonly value: _angular_core.InputSignal<number>;
|
|
144
|
+
constructor();
|
|
135
145
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
136
146
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBarComponent, "mona-progress-bar", never, { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaValueText": { "alias": "aria-valuetext"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "labelStyles": { "alias": "labelStyles"; "required": false; "isSignal": true; }; "labelVisible": { "alias": "labelVisible"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, ["labelTemplate"], never, true, never>;
|
|
137
147
|
}
|
|
138
148
|
|
|
139
|
-
|
|
140
|
-
|
|
149
|
+
declare const PROGRESS_BAR_DEFAULT_MESSAGES: MonaProgressBarMessages;
|
|
150
|
+
|
|
151
|
+
export { PROGRESS_BAR_DEFAULT_MESSAGES, ProgressBarComponent, ProgressBarLabelTemplateDirective };
|
|
152
|
+
export type { LabelPosition, LabelTemplateContext, ProgressBarVariantProps };
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
2
3
|
import { FormValueControl } from '@angular/forms/signals';
|
|
3
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
5
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
5
6
|
import { VariantProps } from 'class-variance-authority';
|
|
6
7
|
|
|
8
|
+
declare const radioGroupThemeVariants: (props?: ({
|
|
9
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
type RadioGroupVariantProps = VariantProps<typeof radioGroupThemeVariants>;
|
|
7
12
|
declare const radioButtonCircleThemeVariants: (props?: ({
|
|
8
13
|
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
9
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -27,17 +32,42 @@ type RadioButtonVariantInput = RadioButtonContainerLabelVariantInput & RadioButt
|
|
|
27
32
|
type RadioButtonDirectiveProps = VariantProps<typeof radioButtonDirectiveThemeVariants>;
|
|
28
33
|
type RadioButtonDirectiveInput = VariantInputs<RadioButtonDirectiveProps>;
|
|
29
34
|
|
|
30
|
-
declare class RadioButtonComponent implements RadioButtonVariantInput, FormValueControl<
|
|
35
|
+
declare class RadioButtonComponent<T = unknown> implements RadioButtonVariantInput, FormValueControl<T> {
|
|
36
|
+
#private;
|
|
31
37
|
protected readonly containerLabelClasses: _angular_core.Signal<string>;
|
|
38
|
+
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
39
|
+
protected readonly effectiveName: _angular_core.Signal<string>;
|
|
40
|
+
protected readonly effectiveReadonly: _angular_core.Signal<boolean>;
|
|
41
|
+
protected readonly effectiveRequired: _angular_core.Signal<boolean>;
|
|
42
|
+
protected readonly inputInvalid: _angular_core.Signal<boolean>;
|
|
43
|
+
protected readonly inputRef: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
32
44
|
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
45
|
+
protected readonly labelledBy: _angular_core.Signal<string | null>;
|
|
46
|
+
protected readonly nativeValue: _angular_core.Signal<T | null>;
|
|
33
47
|
protected readonly radioButtonCircleClasses: _angular_core.Signal<string>;
|
|
34
48
|
protected readonly radioButtonClasses: _angular_core.Signal<string>;
|
|
35
49
|
protected readonly radioButtonIndicatorClasses: _angular_core.Signal<string>;
|
|
50
|
+
protected readonly selected: _angular_core.Signal<boolean>;
|
|
51
|
+
/**
|
|
52
|
+
* @description Id of an element that describes the radio button, such as an error message.
|
|
53
|
+
* @default ""
|
|
54
|
+
*/
|
|
55
|
+
readonly ariaDescribedBy: _angular_core.InputSignal<string>;
|
|
56
|
+
/**
|
|
57
|
+
* @description Accessible name of the radio button when it has no visible label.
|
|
58
|
+
* @default ""
|
|
59
|
+
*/
|
|
60
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
61
|
+
/**
|
|
62
|
+
* @description Id of the element that labels the radio button.
|
|
63
|
+
* @default ""
|
|
64
|
+
*/
|
|
65
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string>;
|
|
36
66
|
/**
|
|
37
67
|
* @description Sets the disabled state of the radio button.
|
|
38
68
|
* @default false
|
|
39
69
|
*/
|
|
40
|
-
readonly disabled: _angular_core.
|
|
70
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
41
71
|
/**
|
|
42
72
|
* @description Emits when the input loses focus.
|
|
43
73
|
*/
|
|
@@ -51,16 +81,22 @@ declare class RadioButtonComponent implements RadioButtonVariantInput, FormValue
|
|
|
51
81
|
*/
|
|
52
82
|
readonly inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
53
83
|
/**
|
|
54
|
-
* @description
|
|
55
|
-
*
|
|
84
|
+
* @description Id of the native radio input. Point a `<label for>` at it to label the radio button from outside.
|
|
85
|
+
* A unique id is generated when it isn't set.
|
|
86
|
+
* @default generated
|
|
87
|
+
*/
|
|
88
|
+
readonly inputId: _angular_core.InputSignal<string>;
|
|
89
|
+
/**
|
|
90
|
+
* @description Marks the radio button as invalid. When bound to a signal form field via `[formField]`, this is
|
|
91
|
+
* written by the `FormField` directive.
|
|
56
92
|
* @default false
|
|
57
93
|
*/
|
|
58
|
-
readonly invalid: _angular_core.
|
|
94
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
59
95
|
/**
|
|
60
96
|
* @description Text label displayed alongside the radio button.
|
|
61
97
|
* When provided, takes precedence over projected content.
|
|
62
98
|
* When empty, projected content inside `<mona-radio-button>` is used.
|
|
63
|
-
* When both are absent, the radio button
|
|
99
|
+
* When both are absent, name the radio button with `aria-label` or `aria-labelledby`.
|
|
64
100
|
* @default ""
|
|
65
101
|
*/
|
|
66
102
|
readonly label: _angular_core.InputSignal<string>;
|
|
@@ -84,37 +120,146 @@ declare class RadioButtonComponent implements RadioButtonVariantInput, FormValue
|
|
|
84
120
|
* @description The identity value of this radio button within a group.
|
|
85
121
|
* Compared against `value()` to determine whether this button is selected.
|
|
86
122
|
* When this button is chosen, its `radioValue` is written to the form as the new group value.
|
|
123
|
+
* A radio button without one can't be selected.
|
|
87
124
|
* @default undefined
|
|
88
125
|
*/
|
|
89
|
-
readonly radioValue: _angular_core.InputSignal<
|
|
126
|
+
readonly radioValue: _angular_core.InputSignal<T>;
|
|
127
|
+
/**
|
|
128
|
+
* @description Prevents value changes while the control stays focusable and readable. When bound to a signal form
|
|
129
|
+
* field via `[formField]`, this is written by the `FormField` directive.
|
|
130
|
+
* @default false
|
|
131
|
+
*/
|
|
132
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
133
|
+
/**
|
|
134
|
+
* @description Marks the radio button as required, as the native `required` attribute. When bound to a signal form
|
|
135
|
+
* field via `[formField]`, this is written by the `FormField` directive.
|
|
136
|
+
* @default false
|
|
137
|
+
*/
|
|
138
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
90
139
|
/**
|
|
91
140
|
* @description Sets the border radius of the radio button circle and indicator.
|
|
92
141
|
* @default "full"
|
|
93
142
|
*/
|
|
94
143
|
readonly rounded: _angular_core.InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* @description Emits when the radio button loses focus or is selected.
|
|
146
|
+
*/
|
|
95
147
|
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
96
148
|
/**
|
|
97
149
|
* @description Marks the radio button as touched. Error styling requires both `invalid` and `touched` to be `true`.
|
|
98
|
-
* When bound to a signal form field via `[
|
|
150
|
+
* When bound to a signal form field via `[formField]`, this is written by the `FormField` directive.
|
|
99
151
|
* @default false
|
|
100
152
|
*/
|
|
101
|
-
readonly touched: _angular_core.
|
|
153
|
+
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
102
154
|
/**
|
|
103
155
|
* @description Additional CSS classes merged onto the label container element via `tailwind-merge`.
|
|
104
156
|
* @default ""
|
|
105
157
|
*/
|
|
106
158
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
107
159
|
/**
|
|
108
|
-
* @description The currently selected value in
|
|
109
|
-
*
|
|
110
|
-
* When bound via `[(ngModel)]` or `[formControl]`, the CVA layer manages this value.
|
|
160
|
+
* @description The currently selected value of a group of radio buttons that aren't in a `mona-radio-group`. When
|
|
161
|
+
* bound to a signal form field via `[formField]`, the `FormField` directive keeps it in sync.
|
|
111
162
|
* @default undefined
|
|
112
163
|
*/
|
|
113
|
-
readonly value: _angular_core.ModelSignal<
|
|
164
|
+
readonly value: _angular_core.ModelSignal<T>;
|
|
165
|
+
constructor();
|
|
166
|
+
/**
|
|
167
|
+
* @description Moves focus to the native radio input.
|
|
168
|
+
* @param options Options passed to the native `focus()` call, such as `preventScroll`.
|
|
169
|
+
*/
|
|
170
|
+
focus(options?: FocusOptions): void;
|
|
114
171
|
protected onBlur(event: FocusEvent): void;
|
|
172
|
+
protected onInputClick(event: MouseEvent): void;
|
|
115
173
|
protected onSelectionChange(): void;
|
|
116
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioButtonComponent
|
|
117
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioButtonComponent
|
|
174
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioButtonComponent<any>, never>;
|
|
175
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioButtonComponent<any>, "mona-radio-button", never, { "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "labelSize": { "alias": "labelSize"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "radioValue": { "alias": "radioValue"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "inputBlur": "inputBlur"; "inputClick": "inputClick"; "inputFocus": "inputFocus"; "touch": "touch"; "value": "valueChange"; }, never, ["*"], true, never>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
declare class RadioGroupComponent<T = unknown> implements FormValueControl<T> {
|
|
179
|
+
#private;
|
|
180
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
181
|
+
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
182
|
+
protected readonly invalidState: _angular_core.Signal<boolean>;
|
|
183
|
+
protected readonly labelledBy: _angular_core.Signal<string | null>;
|
|
184
|
+
/**
|
|
185
|
+
* @description Id of an element that describes the group, such as an error message.
|
|
186
|
+
* @default ""
|
|
187
|
+
*/
|
|
188
|
+
readonly ariaDescribedBy: _angular_core.InputSignal<string>;
|
|
189
|
+
/**
|
|
190
|
+
* @description Accessible name of the group. A group needs a name from this, `aria-labelledby` or a `mona-label`.
|
|
191
|
+
* @default ""
|
|
192
|
+
*/
|
|
193
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
194
|
+
/**
|
|
195
|
+
* @description Id of the element that labels the group.
|
|
196
|
+
* @default ""
|
|
197
|
+
*/
|
|
198
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string>;
|
|
199
|
+
/**
|
|
200
|
+
* @description Disables every radio button in the group. When bound to a signal form field via `[formField]`, this
|
|
201
|
+
* is written by the `FormField` directive.
|
|
202
|
+
* @default false
|
|
203
|
+
*/
|
|
204
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
205
|
+
/**
|
|
206
|
+
* @description Marks the group as invalid. It shows once `touched` is also true. When bound to a signal form field
|
|
207
|
+
* via `[formField]`, this is written by the `FormField` directive.
|
|
208
|
+
* @default false
|
|
209
|
+
*/
|
|
210
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
211
|
+
/**
|
|
212
|
+
* @description The native `name` shared by the radio buttons in the group. A unique name is generated when it isn't
|
|
213
|
+
* set. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive.
|
|
214
|
+
* @default ""
|
|
215
|
+
*/
|
|
216
|
+
readonly name: _angular_core.InputSignal<string>;
|
|
217
|
+
/**
|
|
218
|
+
* @description The direction the radio buttons are laid out and announced in.
|
|
219
|
+
* @default "vertical"
|
|
220
|
+
*/
|
|
221
|
+
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical" | null | undefined>;
|
|
222
|
+
/**
|
|
223
|
+
* @description Prevents value changes while the radio buttons stay focusable and readable. When bound to a signal
|
|
224
|
+
* form field via `[formField]`, this is written by the `FormField` directive.
|
|
225
|
+
* @default false
|
|
226
|
+
*/
|
|
227
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
228
|
+
/**
|
|
229
|
+
* @description Marks the group as required. When bound to a signal form field via `[formField]`, this is written by
|
|
230
|
+
* the `FormField` directive.
|
|
231
|
+
* @default false
|
|
232
|
+
*/
|
|
233
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
234
|
+
/**
|
|
235
|
+
* @description Emits when a radio button is selected and when focus leaves the group.
|
|
236
|
+
*/
|
|
237
|
+
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
238
|
+
/**
|
|
239
|
+
* @description Marks the group as touched. Error styling needs both `invalid` and `touched`. When bound to a signal
|
|
240
|
+
* form field via `[formField]`, this is written by the `FormField` directive.
|
|
241
|
+
* @default false
|
|
242
|
+
*/
|
|
243
|
+
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
244
|
+
/**
|
|
245
|
+
* @description Additional CSS classes merged onto the group via `tailwind-merge`.
|
|
246
|
+
* @default ""
|
|
247
|
+
*/
|
|
248
|
+
readonly userClass: _angular_core.InputSignal<string>;
|
|
249
|
+
/**
|
|
250
|
+
* @description The `radioValue` of the selected radio button.
|
|
251
|
+
* @default undefined
|
|
252
|
+
*/
|
|
253
|
+
readonly value: _angular_core.ModelSignal<T>;
|
|
254
|
+
constructor();
|
|
255
|
+
/**
|
|
256
|
+
* @description Moves focus to the selected radio button, or the first enabled one.
|
|
257
|
+
* @param options Options passed to the native `focus()` call, such as `preventScroll`.
|
|
258
|
+
*/
|
|
259
|
+
focus(options?: FocusOptions): void;
|
|
260
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
261
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioGroupComponent<any>, never>;
|
|
262
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioGroupComponent<any>, "mona-radio-group", never, { "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "touch": "touch"; "value": "valueChange"; }, never, ["*"], true, never>;
|
|
118
263
|
}
|
|
119
264
|
|
|
120
265
|
declare class RadioButtonDirective implements RadioButtonDirectiveInput {
|
|
@@ -124,20 +269,20 @@ declare class RadioButtonDirective implements RadioButtonDirectiveInput {
|
|
|
124
269
|
* @description Marks the radio button as invalid, triggering error border and ring styling.
|
|
125
270
|
* @default false
|
|
126
271
|
*/
|
|
127
|
-
readonly invalid: _angular_core.
|
|
272
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
128
273
|
/**
|
|
129
274
|
* @description Sets the border radius of the radio button.
|
|
130
|
-
* @default "
|
|
275
|
+
* @default "full"
|
|
131
276
|
*/
|
|
132
277
|
readonly rounded: _angular_core.InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
|
|
133
278
|
/**
|
|
134
279
|
* @description Marks the radio button as touched. Error styling is only shown when both `invalid` and `touched` are `true`.
|
|
135
280
|
* @default false
|
|
136
281
|
*/
|
|
137
|
-
readonly touched: _angular_core.
|
|
282
|
+
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
138
283
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioButtonDirective, never>;
|
|
139
284
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RadioButtonDirective, "input[type='radio'][monaRadioButton]", never, { "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
140
285
|
}
|
|
141
286
|
|
|
142
|
-
export { RadioButtonComponent, RadioButtonDirective };
|
|
143
|
-
export type { RadioButtonVariantProps };
|
|
287
|
+
export { RadioButtonComponent, RadioButtonDirective, RadioGroupComponent };
|
|
288
|
+
export type { RadioButtonDirectiveProps, RadioButtonVariantProps, RadioGroupVariantProps };
|