@nanahoshi/mona-ui 0.24.10 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/chart/README.md +223 -77
- 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 +184 -31
- package/fesm2022/nanahoshi-mona-ui-button.mjs +47 -11
- 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 +1909 -666
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +112 -31
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +131 -89
- 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 +146 -5
- 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 +111 -5
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +100 -6
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +105 -5
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +90 -5
- 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 +274 -108
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +127 -37
- 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 +3 -3
- 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 +444 -88
- 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 +90 -5
- package/locales/ar-sa/ar-sa.messages.json +90 -5
- package/locales/de-de/de-de.messages.json +90 -5
- package/locales/es-es/es-es.messages.json +90 -5
- package/locales/fr-fr/fr-fr.messages.json +91 -6
- package/locales/id-id/id-id.messages.json +90 -5
- package/locales/it-it/it-it.messages.json +90 -5
- package/locales/ja-jp/ja-jp.messages.json +90 -5
- package/locales/ko-kr/ko-kr.messages.json +90 -5
- package/locales/pt-br/pt-br.messages.json +90 -5
- package/locales/ru-ru/ru-ru.messages.json +90 -5
- package/locales/tr-tr/tr-tr.messages.json +90 -5
- package/locales/zh-cn/zh-cn.messages.json +90 -5
- package/locales/zh-tw/zh-tw.messages.json +90 -5
- package/package.json +2 -1
- package/styles.css +156 -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-chart.d.ts +519 -527
- 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 +130 -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 +85 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +85 -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
|
@@ -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 };
|
|
@@ -110,6 +110,7 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
110
110
|
protected readonly displayValue: _angular_core.Signal<number>;
|
|
111
111
|
protected readonly effectiveAriaLabelledBy: _angular_core.Signal<string | null>;
|
|
112
112
|
protected readonly effectiveAriaValueText: _angular_core.Signal<string>;
|
|
113
|
+
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
113
114
|
protected readonly effectiveTabIndex: _angular_core.Signal<number>;
|
|
114
115
|
protected readonly hoveredTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
115
116
|
protected readonly iconClasses: _angular_core.Signal<string>;
|
|
@@ -155,6 +156,12 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
155
156
|
* @default null
|
|
156
157
|
*/
|
|
157
158
|
readonly ariaValueText: _angular_core.InputSignal<((value: number, maximum: number) => string) | null>;
|
|
159
|
+
/**
|
|
160
|
+
* @description Lets a click on the current value clear the rating, so pointer and touch users can undo one. The
|
|
161
|
+
* keyboard can always clear it with Home.
|
|
162
|
+
* @default false
|
|
163
|
+
*/
|
|
164
|
+
readonly clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
158
165
|
/**
|
|
159
166
|
* @description CSS color for selected and hovered rating visuals. Empty, `null`, and `undefined` values use the
|
|
160
167
|
* primary theme color.
|
|
@@ -167,7 +174,7 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
167
174
|
* forms `Field` directive.
|
|
168
175
|
* @default false
|
|
169
176
|
*/
|
|
170
|
-
readonly disabled: _angular_core.
|
|
177
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
171
178
|
/**
|
|
172
179
|
* @description Built-in icon used for the default rating visuals. Choose `star`, `heart`,
|
|
173
180
|
* `circle`, `diamond`, or `flame`; use item templates to supply a custom icon.
|
|
@@ -180,7 +187,7 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
180
187
|
* by the signal forms `Field` directive.
|
|
181
188
|
* @default false
|
|
182
189
|
*/
|
|
183
|
-
readonly invalid: _angular_core.
|
|
190
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
184
191
|
/**
|
|
185
192
|
* @description Number of rating items. Fractional values are floored and values below one are
|
|
186
193
|
* raised to one.
|
|
@@ -208,7 +215,14 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
208
215
|
* @description Prevents value changes while preserving focusability and normal visual emphasis.
|
|
209
216
|
* @default false
|
|
210
217
|
*/
|
|
211
|
-
readonly readonly: _angular_core.
|
|
218
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
219
|
+
/**
|
|
220
|
+
* @description Shows the invalid state while the rating is `0` and the control is touched. The `required` rule of
|
|
221
|
+
* signal forms doesn't treat `0` as empty, so it won't fail the form by itself: use `min(path, 1)` to reject an
|
|
222
|
+
* unrated value. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive.
|
|
223
|
+
* @default false
|
|
224
|
+
*/
|
|
225
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
212
226
|
/**
|
|
213
227
|
* @description Controls cumulative or single-item filling.
|
|
214
228
|
* @default "continuous"
|
|
@@ -227,7 +241,7 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
227
241
|
*/
|
|
228
242
|
readonly tabindex: _angular_core.InputSignalWithTransform<number, string | number>;
|
|
229
243
|
/**
|
|
230
|
-
* @description Emitted when the
|
|
244
|
+
* @description Emitted when the control loses focus or a pointer commits a rating, marking the field as touched.
|
|
231
245
|
*/
|
|
232
246
|
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
233
247
|
/**
|
|
@@ -235,7 +249,7 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
235
249
|
* `[formField]`, this is written by the signal forms `Field` directive.
|
|
236
250
|
* @default false
|
|
237
251
|
*/
|
|
238
|
-
readonly touched: _angular_core.
|
|
252
|
+
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
239
253
|
/**
|
|
240
254
|
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
241
255
|
* @default ""
|
|
@@ -247,6 +261,7 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
247
261
|
* @default 0
|
|
248
262
|
*/
|
|
249
263
|
readonly value: _angular_core.ModelSignal<number>;
|
|
264
|
+
constructor();
|
|
250
265
|
blur(): void;
|
|
251
266
|
focus(options?: FocusOptions): void;
|
|
252
267
|
protected createItemContext(item: RatingItemDescriptor): RatingItemTemplateContext;
|
|
@@ -260,7 +275,7 @@ declare class RatingComponent implements RatingVariantInput, FormValueControl<nu
|
|
|
260
275
|
private getKeyAction;
|
|
261
276
|
private normalizeCandidate;
|
|
262
277
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RatingComponent, never>;
|
|
263
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RatingComponent, "mona-rating", 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; }; "ariaValueText": { "alias": "ariaValueText"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "itemsCount": { "alias": "itemsCount"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "precision": { "alias": "precision"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "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"; }, ["hoveredTemplate", "itemTemplate", "selectedTemplate"], never, true, never>;
|
|
278
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RatingComponent, "mona-rating", 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; }; "ariaValueText": { "alias": "ariaValueText"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "itemsCount": { "alias": "itemsCount"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "precision": { "alias": "precision"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "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"; }, ["hoveredTemplate", "itemTemplate", "selectedTemplate"], never, true, never>;
|
|
264
279
|
}
|
|
265
280
|
|
|
266
281
|
/**
|