@nanahoshi/mona-ui 0.30.0 → 0.32.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/date-range-picker/package.json +4 -0
- package/docs/api/button-group.md +1 -0
- package/docs/api/calendar.md +3 -2
- package/docs/api/color-gradient.md +1 -0
- package/docs/api/color-palette.md +1 -0
- package/docs/api/color-picker.md +1 -0
- package/docs/api/common.md +1 -1
- package/docs/api/date-input.md +1 -1
- package/docs/api/date-range-picker.md +137 -0
- package/docs/api/form-field.md +88 -0
- package/docs/api/i18n.md +84 -0
- package/docs/api/list.md +1 -1
- package/docs/api/locales.md +14 -14
- package/docs/api/popup.md +1 -1
- package/docs/api/segmented.md +1 -0
- package/docs/api/switch.md +1 -0
- package/docs/calendar.md +47 -3
- package/docs/date-picker.md +1 -1
- package/docs/date-range-picker.md +420 -0
- package/docs/dropdown-list.md +1 -1
- package/docs/form-field.md +425 -0
- package/docs/forms.md +13 -4
- package/docs/label.md +5 -5
- package/docs/numeric-textbox.md +1 -1
- package/docs/radio-button.md +2 -1
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +15 -4
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +25 -1
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +171 -59
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +5 -2
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +29 -3
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +25 -1
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +31 -3
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +15 -4
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +16 -4
- package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +1331 -0
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +16 -4
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +19 -7
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +24 -4
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-form-field.mjs +666 -0
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +50 -0
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +7 -1
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +27 -2
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +50 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +32 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +38 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +38 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +38 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +44 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +38 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +44 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +32 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +19 -7
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +14 -5
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +6 -3
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +15 -9
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +6 -3
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +25 -1
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +8 -5
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +25 -1
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +6 -3
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +15 -4
- package/form-field/package.json +4 -0
- package/i18n/catalogs/en-US.messages.json +29 -0
- package/llms.txt +5 -1
- package/locales/ar-sa/ar-sa.messages.json +29 -0
- package/locales/de-de/de-de.messages.json +29 -0
- package/locales/es-es/es-es.messages.json +29 -0
- package/locales/fr-fr/fr-fr.messages.json +29 -0
- package/locales/id-id/id-id.messages.json +29 -0
- package/locales/it-it/it-it.messages.json +29 -0
- package/locales/ja-jp/ja-jp.messages.json +29 -0
- package/locales/ko-kr/ko-kr.messages.json +29 -0
- package/locales/pl-pl/pl-pl.messages.json +29 -0
- package/locales/pt-br/pt-br.messages.json +29 -0
- package/locales/ru-ru/ru-ru.messages.json +29 -0
- package/locales/tr-tr/tr-tr.messages.json +29 -0
- package/locales/zh-cn/zh-cn.messages.json +29 -0
- package/locales/zh-tw/zh-tw.messages.json +29 -0
- package/package.json +9 -1
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +2 -0
- package/types/nanahoshi-mona-ui-button-group.d.ts +11 -0
- package/types/nanahoshi-mona-ui-calendar.d.ts +66 -8
- package/types/nanahoshi-mona-ui-check-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +11 -0
- package/types/nanahoshi-mona-ui-color-palette.d.ts +11 -0
- package/types/nanahoshi-mona-ui-color-picker.d.ts +11 -0
- package/types/nanahoshi-mona-ui-combo-box.d.ts +2 -0
- package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -0
- package/types/nanahoshi-mona-ui-date-range-picker.d.ts +462 -0
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -0
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +2 -0
- package/types/nanahoshi-mona-ui-form-field.d.ts +173 -0
- package/types/nanahoshi-mona-ui-i18n.d.ts +68 -0
- package/types/nanahoshi-mona-ui-internal.d.ts +39 -4
- 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-pl-pl.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 +2 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +2 -0
- package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
- package/types/nanahoshi-mona-ui-radio-button.d.ts +2 -0
- package/types/nanahoshi-mona-ui-rating.d.ts +1 -0
- package/types/nanahoshi-mona-ui-segmented.d.ts +11 -0
- package/types/nanahoshi-mona-ui-slider.d.ts +1 -0
- package/types/nanahoshi-mona-ui-switch.d.ts +11 -0
- package/types/nanahoshi-mona-ui-text-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -0
|
@@ -34,6 +34,7 @@ export declare class ButtonGroupComponent<T = unknown> implements ButtonGroupVar
|
|
|
34
34
|
* disabled state, but not its selection.
|
|
35
35
|
*/
|
|
36
36
|
protected readonly components: import("@angular/core").Signal<readonly import("@nanahoshi/mona-ui/button").ButtonGroupMember[]>;
|
|
37
|
+
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
37
38
|
protected readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
|
|
38
39
|
protected readonly invalidState: import("@angular/core").Signal<boolean>;
|
|
39
40
|
protected readonly labelledBy: import("@angular/core").Signal<string | null>;
|
|
@@ -47,6 +48,11 @@ export declare class ButtonGroupComponent<T = unknown> implements ButtonGroupVar
|
|
|
47
48
|
* @default true
|
|
48
49
|
*/
|
|
49
50
|
readonly allowEmpty: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
51
|
+
/**
|
|
52
|
+
* @description Id of an element that describes the button group, such as a hint or an error message.
|
|
53
|
+
* @default ""
|
|
54
|
+
*/
|
|
55
|
+
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
50
56
|
/**
|
|
51
57
|
* @description Accessible name for the host element. Override when multiple button groups appear on the same page
|
|
52
58
|
* so screen reader users can distinguish them.
|
|
@@ -151,6 +157,11 @@ export declare class ButtonGroupComponent<T = unknown> implements ButtonGroupVar
|
|
|
151
157
|
"required": false;
|
|
152
158
|
"isSignal": true;
|
|
153
159
|
};
|
|
160
|
+
"ariaDescribedBy": {
|
|
161
|
+
"alias": "aria-describedby";
|
|
162
|
+
"required": false;
|
|
163
|
+
"isSignal": true;
|
|
164
|
+
};
|
|
154
165
|
"ariaLabel": {
|
|
155
166
|
"alias": "aria-label";
|
|
156
167
|
"required": false;
|
|
@@ -49,8 +49,36 @@ export declare class CalendarYearCellTemplateDirective {
|
|
|
49
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarYearCellTemplateDirective, never>;
|
|
50
50
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarYearCellTemplateDirective, "ng-template[monaCalendarYearCellTemplate]", never, {}, {}, never, never, true, never>;
|
|
51
51
|
}
|
|
52
|
+
/** A day of the month view: its date, and its day of the month. */
|
|
53
|
+
interface MonthDayEntry {
|
|
54
|
+
readonly key: Date;
|
|
55
|
+
readonly value: number;
|
|
56
|
+
}
|
|
57
|
+
/** The day keys of a selected range's first and last days. */
|
|
58
|
+
interface MonthDayRangeEnds {
|
|
59
|
+
readonly end: string;
|
|
60
|
+
readonly start: string;
|
|
61
|
+
}
|
|
52
62
|
type CalendarSelection = "multiple" | "range" | "single";
|
|
53
63
|
type FirstDayOfWeek = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
64
|
+
/** A week of a month in the month view. A day is `null` where a blank cell stands in for a day of another month. */
|
|
65
|
+
interface MonthGridWeek {
|
|
66
|
+
readonly days: readonly (MonthDayEntry | null)[];
|
|
67
|
+
/** The time of the week's first day, which tells the weeks apart. */
|
|
68
|
+
readonly key: number;
|
|
69
|
+
readonly weekNumber: number;
|
|
70
|
+
}
|
|
71
|
+
/** A month in the month view. */
|
|
72
|
+
interface MonthGrid {
|
|
73
|
+
/** The first and the last day of the month. */
|
|
74
|
+
readonly bounds: [Date, Date];
|
|
75
|
+
/** The month and year, shown above the month when the view shows more than one. */
|
|
76
|
+
readonly caption: string;
|
|
77
|
+
readonly captionId: string;
|
|
78
|
+
/** The time of the month's first day, which tells the months apart. */
|
|
79
|
+
readonly key: number;
|
|
80
|
+
readonly weeks: readonly MonthGridWeek[];
|
|
81
|
+
}
|
|
54
82
|
declare const calendarBaseThemeVariants: (props?: ({
|
|
55
83
|
disabled?: boolean | null | undefined;
|
|
56
84
|
readonly?: boolean | null | undefined;
|
|
@@ -61,6 +89,7 @@ declare const calendarMonthViewDayThemeVariants: (props?: ({
|
|
|
61
89
|
disabled?: boolean | null | undefined;
|
|
62
90
|
focused?: boolean | null | undefined;
|
|
63
91
|
outside?: boolean | null | undefined;
|
|
92
|
+
rangeMiddle?: boolean | null | undefined;
|
|
64
93
|
rangePreview?: boolean | null | undefined;
|
|
65
94
|
rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
66
95
|
selected?: boolean | null | undefined;
|
|
@@ -97,7 +126,7 @@ type CalendarYearViewGridVariantInput = VariantInputs<CalendarYearViewGridVarian
|
|
|
97
126
|
type CalendarYearViewCellVariantProps = VariantProps<typeof calendarYearViewCellThemeVariants>;
|
|
98
127
|
type CalendarYearViewCellVariantInput = VariantInputs<CalendarYearViewCellVariantProps>;
|
|
99
128
|
type CalendarVariantProps = CalendarBaseVariantProps & CalendarHeaderVariantProps & CalendarDecadeViewGridVariantProps & CalendarDecadeViewCellVariantProps & CalendarMonthViewDayVariantProps & CalendarMonthViewGridVariantProps & CalendarMonthViewGridHeaderVariantProps & CalendarYearViewGridVariantProps & CalendarYearViewCellVariantProps;
|
|
100
|
-
type CalendarVariantInput = CalendarBaseVariantInput & CalendarHeaderVariantInput & CalendarDecadeViewGridVariantInput & Omit<CalendarDecadeViewCellVariantInput, "focused"> & Omit<CalendarMonthViewDayVariantInput, "disabled" | "focused" | "outside" | "rangePreview" | "selected" | "today"> & CalendarMonthViewGridVariantInput & CalendarMonthViewGridHeaderVariantInput & CalendarYearViewGridVariantInput & Omit<CalendarYearViewCellVariantInput, "focused">;
|
|
129
|
+
type CalendarVariantInput = CalendarBaseVariantInput & CalendarHeaderVariantInput & CalendarDecadeViewGridVariantInput & Omit<CalendarDecadeViewCellVariantInput, "focused"> & Omit<CalendarMonthViewDayVariantInput, "disabled" | "focused" | "outside" | "rangeMiddle" | "rangePreview" | "selected" | "today"> & CalendarMonthViewGridVariantInput & CalendarMonthViewGridHeaderVariantInput & CalendarYearViewGridVariantInput & Omit<CalendarYearViewCellVariantInput, "focused">;
|
|
101
130
|
export declare class CalendarComponent implements CalendarVariantInput, FormValueControl<Date | Date[] | null> {
|
|
102
131
|
#private;
|
|
103
132
|
protected readonly ariaLabel: import("@angular/core").Signal<string>;
|
|
@@ -112,6 +141,7 @@ export declare class CalendarComponent implements CalendarVariantInput, FormValu
|
|
|
112
141
|
protected readonly effectiveFirstDay: import("@angular/core").Signal<FirstDayOfWeek>;
|
|
113
142
|
protected readonly gridId: string;
|
|
114
143
|
protected readonly headerClass: import("@angular/core").Signal<string>;
|
|
144
|
+
/** The month shown, or the span of the months shown when there are more than one. */
|
|
115
145
|
protected readonly headerMonthYear: import("@angular/core").Signal<string>;
|
|
116
146
|
protected readonly headerYear: import("@angular/core").Signal<string>;
|
|
117
147
|
protected readonly invalidState: import("@angular/core").Signal<boolean>;
|
|
@@ -121,19 +151,22 @@ export declare class CalendarComponent implements CalendarVariantInput, FormValu
|
|
|
121
151
|
*/
|
|
122
152
|
protected readonly isDayUnavailable: import("@angular/core").Signal<(date: Date) => boolean>;
|
|
123
153
|
protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaCalendarMessages>;
|
|
124
|
-
protected readonly
|
|
125
|
-
start: Date;
|
|
126
|
-
end: Date;
|
|
127
|
-
}>;
|
|
154
|
+
protected readonly monthCaptionClass: string;
|
|
128
155
|
protected readonly monthCellTemplate: import("@angular/core").Signal<CalendarMonthCellTemplateDirective | undefined>;
|
|
129
|
-
protected readonly monthDictChunked: import("@angular/core").Signal<import("@mirei/ts-collections").ImmutableSet<import("@mirei/ts-collections").ImmutableDictionary<Date, number>>>;
|
|
130
156
|
protected readonly monthGridClass: import("@angular/core").Signal<string>;
|
|
131
157
|
protected readonly monthGridHeaderClass: import("@angular/core").Signal<string>;
|
|
132
|
-
|
|
158
|
+
/**
|
|
159
|
+
* The months the month view shows, from {@link viewStart}. With more than one, a day of the months around each one
|
|
160
|
+
* is a blank cell, so no date is shown, or focused, twice.
|
|
161
|
+
*/
|
|
162
|
+
protected readonly monthGrids: import("@angular/core").Signal<readonly MonthGrid[]>;
|
|
163
|
+
protected readonly monthViewClass: string;
|
|
133
164
|
protected readonly navigatedDate: import("@angular/core").WritableSignal<Date>;
|
|
134
165
|
protected readonly nextButtonLabel: import("@angular/core").Signal<string>;
|
|
135
166
|
protected readonly pendingRangeStart: import("@angular/core").WritableSignal<Date | null>;
|
|
136
167
|
protected readonly prevButtonLabel: import("@angular/core").Signal<string>;
|
|
168
|
+
/** The first and last selected days in range selection, so the days between them are drawn apart from the ends. */
|
|
169
|
+
protected readonly rangeEnds: import("@angular/core").Signal<MonthDayRangeEnds | null>;
|
|
137
170
|
protected readonly rangePreviewDate: import("@angular/core").WritableSignal<Date | null>;
|
|
138
171
|
protected readonly rangePreviewDates: import("@angular/core").Signal<Date[]>;
|
|
139
172
|
protected readonly rangePreviewKeys: import("@angular/core").Signal<ReadonlySet<string>>;
|
|
@@ -143,6 +176,11 @@ export declare class CalendarComponent implements CalendarVariantInput, FormValu
|
|
|
143
176
|
protected readonly today: import("@angular/core").WritableSignal<Date>;
|
|
144
177
|
protected readonly todayButtonLabel: import("@angular/core").Signal<string>;
|
|
145
178
|
protected readonly todayUnavailable: import("@angular/core").Signal<boolean>;
|
|
179
|
+
/**
|
|
180
|
+
* The first month the month view shows. It stays where it is while the active day is in one of the months shown,
|
|
181
|
+
* and otherwise moves just far enough to show it.
|
|
182
|
+
*/
|
|
183
|
+
protected readonly viewStart: import("@angular/core").WritableSignal<Date>;
|
|
146
184
|
protected readonly viewSwitchButtonLabel: import("@angular/core").Signal<string>;
|
|
147
185
|
protected readonly weekdays: import("@angular/core").Signal<{
|
|
148
186
|
display: string;
|
|
@@ -152,6 +190,8 @@ export declare class CalendarComponent implements CalendarVariantInput, FormValu
|
|
|
152
190
|
}[]>;
|
|
153
191
|
protected readonly yearCellTemplate: import("@angular/core").Signal<CalendarYearCellTemplateDirective | undefined>;
|
|
154
192
|
protected readonly yearGridClass: import("@angular/core").Signal<string>;
|
|
193
|
+
/** The months of the year view, three to a row. */
|
|
194
|
+
protected readonly yearViewMonths: import("@angular/core").Signal<import("@mirei/ts-collections").ImmutableSet<import("@mirei/ts-collections").ImmutableSet<readonly [number, string]>>>;
|
|
155
195
|
/**
|
|
156
196
|
* @description Sets the disabled state of the calendar.
|
|
157
197
|
*/
|
|
@@ -186,6 +226,13 @@ export declare class CalendarComponent implements CalendarVariantInput, FormValu
|
|
|
186
226
|
* @description Sets the minimum date that can be selected.
|
|
187
227
|
*/
|
|
188
228
|
readonly minDate: import("@angular/core").InputSignal<Date | null | undefined>;
|
|
229
|
+
/**
|
|
230
|
+
* @description How many months the month view shows side by side, from 1 to 12. They wrap onto new rows when the
|
|
231
|
+
* calendar is narrow. With more than one, each month has a caption, the days of the months around it are left
|
|
232
|
+
* blank, and the previous and next buttons move the view by one month.
|
|
233
|
+
* @default 1
|
|
234
|
+
*/
|
|
235
|
+
readonly months: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
189
236
|
/**
|
|
190
237
|
* @description Sets the readonly state of the calendar.
|
|
191
238
|
* @default false
|
|
@@ -224,7 +271,8 @@ export declare class CalendarComponent implements CalendarVariantInput, FormValu
|
|
|
224
271
|
readonly userClass: import("@angular/core").InputSignal<string>;
|
|
225
272
|
/**
|
|
226
273
|
* @description The current value of the calendar: a `Date` in single selection, the selected dates in multiple
|
|
227
|
-
* selection, and `[start, end]` in range selection. A range is written once both ends are picked.
|
|
274
|
+
* selection, and `[start, end]` in range selection. A range is written once both ends are picked. In range
|
|
275
|
+
* selection, a value with one date is a range's start: the next day picked ends the range.
|
|
228
276
|
* @default null
|
|
229
277
|
*/
|
|
230
278
|
readonly value: import("@angular/core").ModelSignal<Date | Date[] | null>;
|
|
@@ -274,6 +322,11 @@ export declare class CalendarComponent implements CalendarVariantInput, FormValu
|
|
|
274
322
|
private selectRangeToFocused;
|
|
275
323
|
private setCurrentDate;
|
|
276
324
|
private setupKeyboardNavigation;
|
|
325
|
+
/**
|
|
326
|
+
* Moves the view back so a selection that spans months starts in it, as long as its last date, which is active,
|
|
327
|
+
* stays in it too.
|
|
328
|
+
*/
|
|
329
|
+
private showSelectionStart;
|
|
277
330
|
private switchToLowerView;
|
|
278
331
|
private switchToUpperView;
|
|
279
332
|
private toggleFocusedDateInSelection;
|
|
@@ -314,6 +367,11 @@ export declare class CalendarComponent implements CalendarVariantInput, FormValu
|
|
|
314
367
|
"required": false;
|
|
315
368
|
"isSignal": true;
|
|
316
369
|
};
|
|
370
|
+
"months": {
|
|
371
|
+
"alias": "months";
|
|
372
|
+
"required": false;
|
|
373
|
+
"isSignal": true;
|
|
374
|
+
};
|
|
317
375
|
"readonly": {
|
|
318
376
|
"alias": "readonly";
|
|
319
377
|
"required": false;
|
|
@@ -23,6 +23,7 @@ export declare class CheckBoxComponent implements CheckboxVariantInput, Checkmar
|
|
|
23
23
|
protected readonly checkBoxClasses: import("@angular/core").Signal<string>;
|
|
24
24
|
protected readonly checkMarkClasses: import("@angular/core").Signal<string>;
|
|
25
25
|
protected readonly containerLabelClasses: import("@angular/core").Signal<string>;
|
|
26
|
+
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
26
27
|
protected readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
|
|
27
28
|
protected readonly indeterminateState: import("@angular/core").WritableSignal<boolean>;
|
|
28
29
|
protected readonly inputRef: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
@@ -58,6 +58,7 @@ export declare class ColorGradientComponent implements ColorGradientVariantInput
|
|
|
58
58
|
title: string;
|
|
59
59
|
onClick: () => void;
|
|
60
60
|
})[]>;
|
|
61
|
+
protected readonly describedBy: Signal<string | null>;
|
|
61
62
|
protected readonly effectiveDisabled: Signal<boolean>;
|
|
62
63
|
protected readonly hex: Signal<string>;
|
|
63
64
|
protected readonly hexFocused: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -85,6 +86,11 @@ export declare class ColorGradientComponent implements ColorGradientVariantInput
|
|
|
85
86
|
* The `Apply` button is only displayed when `showButtons` is set to true.
|
|
86
87
|
*/
|
|
87
88
|
readonly apply: import("@angular/core").OutputEmitterRef<void>;
|
|
89
|
+
/**
|
|
90
|
+
* @description Id of an element that describes the color gradient, such as a hint or an error message.
|
|
91
|
+
* @default ""
|
|
92
|
+
*/
|
|
93
|
+
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
88
94
|
/**
|
|
89
95
|
* @description Accessible name of the group of controls.
|
|
90
96
|
* @default ""
|
|
@@ -218,6 +224,11 @@ export declare class ColorGradientComponent implements ColorGradientVariantInput
|
|
|
218
224
|
private updateRgbFromHsv;
|
|
219
225
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorGradientComponent, never>;
|
|
220
226
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColorGradientComponent, "mona-color-gradient", never, {
|
|
227
|
+
"ariaDescribedBy": {
|
|
228
|
+
"alias": "aria-describedby";
|
|
229
|
+
"required": false;
|
|
230
|
+
"isSignal": true;
|
|
231
|
+
};
|
|
221
232
|
"ariaLabel": {
|
|
222
233
|
"alias": "aria-label";
|
|
223
234
|
"required": false;
|
|
@@ -27,6 +27,7 @@ export declare class ColorPaletteComponent implements ColorPaletteVariantInput,
|
|
|
27
27
|
protected readonly activeColorIndex: import("@angular/core").Signal<number>;
|
|
28
28
|
protected readonly baseClasses: import("@angular/core").Signal<string>;
|
|
29
29
|
protected readonly colorRows: import("@angular/core").Signal<PaletteTile[][]>;
|
|
30
|
+
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
30
31
|
protected readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
|
|
31
32
|
protected readonly focusedColorIndex: import("@angular/core").WritableSignal<number>;
|
|
32
33
|
protected readonly grid: import("@angular/core").Signal<PaletteGrid>;
|
|
@@ -41,6 +42,11 @@ export declare class ColorPaletteComponent implements ColorPaletteVariantInput,
|
|
|
41
42
|
*/
|
|
42
43
|
protected readonly selectedIndex: import("@angular/core").Signal<number>;
|
|
43
44
|
protected readonly tileKeys: import("@angular/core").Signal<string[]>;
|
|
45
|
+
/**
|
|
46
|
+
* @description Id of an element that describes the color palette, such as a hint or an error message.
|
|
47
|
+
* @default ""
|
|
48
|
+
*/
|
|
49
|
+
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
44
50
|
/**
|
|
45
51
|
* @description Accessible label for the color palette grid.
|
|
46
52
|
* @default ""
|
|
@@ -138,6 +144,11 @@ export declare class ColorPaletteComponent implements ColorPaletteVariantInput,
|
|
|
138
144
|
private gridFromScheme;
|
|
139
145
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPaletteComponent, never>;
|
|
140
146
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPaletteComponent, "mona-color-palette", never, {
|
|
147
|
+
"ariaDescribedBy": {
|
|
148
|
+
"alias": "aria-describedby";
|
|
149
|
+
"required": false;
|
|
150
|
+
"isSignal": true;
|
|
151
|
+
};
|
|
141
152
|
"ariaLabel": {
|
|
142
153
|
"alias": "aria-label";
|
|
143
154
|
"required": false;
|
|
@@ -25,6 +25,7 @@ export declare class ColorPickerComponent implements OnInit, ColorPickerVariantI
|
|
|
25
25
|
#private;
|
|
26
26
|
protected readonly baseClasses: Signal<string>;
|
|
27
27
|
protected readonly colorClasses: Signal<string>;
|
|
28
|
+
protected readonly describedBy: Signal<string | null>;
|
|
28
29
|
protected readonly effectiveDisabled: Signal<boolean>;
|
|
29
30
|
protected readonly expanded: Signal<boolean>;
|
|
30
31
|
protected readonly gradientPopupClasses = "\n [background-color:var(--mona-effect-overlay-background-color,var(--color-surface-overlay))]\n \n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n\n border border-border shadow-(--shadow-overlay) outline-none focus-visible:outline-hidden";
|
|
@@ -38,6 +39,11 @@ export declare class ColorPickerComponent implements OnInit, ColorPickerVariantI
|
|
|
38
39
|
protected readonly valueTemplate: Signal<TemplateRef<any> | undefined>;
|
|
39
40
|
/** What assistive technology reads as the current color: its name when the palette has one, or the value itself. */
|
|
40
41
|
protected readonly valueText: Signal<string>;
|
|
42
|
+
/**
|
|
43
|
+
* @description Id of an element that describes the color picker, such as a hint or an error message.
|
|
44
|
+
* @default ""
|
|
45
|
+
*/
|
|
46
|
+
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
41
47
|
/**
|
|
42
48
|
* @description Accessible label for the color picker combobox.
|
|
43
49
|
* @default ""
|
|
@@ -182,6 +188,11 @@ export declare class ColorPickerComponent implements OnInit, ColorPickerVariantI
|
|
|
182
188
|
private tabLeavesPopup;
|
|
183
189
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
184
190
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "mona-color-picker", never, {
|
|
191
|
+
"ariaDescribedBy": {
|
|
192
|
+
"alias": "aria-describedby";
|
|
193
|
+
"required": false;
|
|
194
|
+
"isSignal": true;
|
|
195
|
+
};
|
|
185
196
|
"ariaLabel": {
|
|
186
197
|
"alias": "aria-label";
|
|
187
198
|
"required": false;
|
|
@@ -37,6 +37,7 @@ export declare class ComboBoxComponent<TData = unknown, TValue = TData> implemen
|
|
|
37
37
|
protected readonly clearButtonVisible: import("@angular/core").Signal<boolean>;
|
|
38
38
|
protected readonly comboBoxValue: import("@angular/core").WritableSignal<string>;
|
|
39
39
|
protected readonly comboBoxValue$: Subject<string | null>;
|
|
40
|
+
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
40
41
|
protected readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
|
|
41
42
|
protected readonly expanded: import("@angular/core").Signal<boolean>;
|
|
42
43
|
protected readonly footerTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
@@ -45,6 +46,7 @@ export declare class ComboBoxComponent<TData = unknown, TValue = TData> implemen
|
|
|
45
46
|
protected readonly inputClass: import("@angular/core").Signal<string>;
|
|
46
47
|
protected readonly invalidState: import("@angular/core").Signal<boolean>;
|
|
47
48
|
protected readonly itemTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
49
|
+
protected readonly labelledBy: import("@angular/core").Signal<string | null>;
|
|
48
50
|
protected readonly listId: string;
|
|
49
51
|
protected readonly listPopupClass: import("@angular/core").Signal<string>;
|
|
50
52
|
protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaComboBoxMessages>;
|
|
@@ -24,11 +24,13 @@ export declare class DatePickerComponent implements FormValueControl<Date | null
|
|
|
24
24
|
#private;
|
|
25
25
|
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
26
26
|
protected readonly decadeCellTemplate: import("@angular/core").Signal<CalendarDecadeCellTemplateDirective | undefined>;
|
|
27
|
+
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
27
28
|
protected readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
|
|
28
29
|
protected readonly effectiveFormat: import("@angular/core").Signal<string>;
|
|
29
30
|
protected readonly expanded: import("@angular/core").Signal<boolean>;
|
|
30
31
|
protected readonly inputAttributes: import("@angular/core").Signal<AttributeConfig>;
|
|
31
32
|
protected readonly invalidState: import("@angular/core").Signal<boolean>;
|
|
33
|
+
protected readonly labelledBy: import("@angular/core").Signal<string | null>;
|
|
32
34
|
protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaDatePickerMessages>;
|
|
33
35
|
protected readonly monthCellTemplate: import("@angular/core").Signal<CalendarMonthCellTemplateDirective | undefined>;
|
|
34
36
|
protected readonly pickerPopupClass: import("@angular/core").Signal<string>;
|