@nanahoshi/mona-ui 0.31.0 → 0.32.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/date-range-picker/package.json +4 -0
- package/docs/api/calendar.md +3 -2
- 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/i18n.md +53 -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/theme.md +2 -2
- package/docs/calendar.md +47 -3
- package/docs/date-picker.md +1 -1
- package/docs/date-range-picker.md +420 -0
- package/docs/forms.md +1 -0
- package/docs/label.md +1 -0
- package/docs/theming-custom-themes.md +8 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +171 -59
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +1331 -0
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +7 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +23 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +16 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +16 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +16 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +21 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +21 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +16 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +16 -0
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +4 -2
- package/i18n/catalogs/en-US.messages.json +16 -0
- package/llms.txt +3 -1
- package/locales/ar-sa/ar-sa.messages.json +16 -0
- package/locales/de-de/de-de.messages.json +16 -0
- package/locales/es-es/es-es.messages.json +16 -0
- package/locales/fr-fr/fr-fr.messages.json +16 -0
- package/locales/id-id/id-id.messages.json +16 -0
- package/locales/it-it/it-it.messages.json +16 -0
- package/locales/ja-jp/ja-jp.messages.json +16 -0
- package/locales/ko-kr/ko-kr.messages.json +16 -0
- package/locales/pl-pl/pl-pl.messages.json +16 -0
- package/locales/pt-br/pt-br.messages.json +16 -0
- package/locales/ru-ru/ru-ru.messages.json +16 -0
- package/locales/tr-tr/tr-tr.messages.json +16 -0
- package/locales/zh-cn/zh-cn.messages.json +16 -0
- package/locales/zh-tw/zh-tw.messages.json +16 -0
- package/package.json +5 -1
- package/types/nanahoshi-mona-ui-calendar.d.ts +66 -8
- package/types/nanahoshi-mona-ui-date-range-picker.d.ts +462 -0
- package/types/nanahoshi-mona-ui-i18n.d.ts +39 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +16 -0
- package/types/nanahoshi-mona-ui-theme.d.ts +4 -0
|
@@ -170,6 +170,22 @@
|
|
|
170
170
|
"datePicker": "日付選択",
|
|
171
171
|
"openCalendar": "カレンダーを開く"
|
|
172
172
|
},
|
|
173
|
+
"dateRangePicker": {
|
|
174
|
+
"dateRangePicker": "日付範囲の選択",
|
|
175
|
+
"end": "終了日",
|
|
176
|
+
"lastDays": "{count, plural, other {過去 # 日間}}",
|
|
177
|
+
"lastMonth": "先月",
|
|
178
|
+
"lastWeek": "先週",
|
|
179
|
+
"lastYear": "昨年",
|
|
180
|
+
"openCalendar": "カレンダーを開く",
|
|
181
|
+
"presets": "クイック選択",
|
|
182
|
+
"start": "開始日",
|
|
183
|
+
"thisMonth": "今月",
|
|
184
|
+
"thisWeek": "今週",
|
|
185
|
+
"thisYear": "今年",
|
|
186
|
+
"today": "今日",
|
|
187
|
+
"yesterday": "昨日"
|
|
188
|
+
},
|
|
173
189
|
"dateTimePicker": {
|
|
174
190
|
"calendar": "カレンダー",
|
|
175
191
|
"cancel": "キャンセル",
|
|
@@ -170,6 +170,22 @@
|
|
|
170
170
|
"datePicker": "날짜 선택기",
|
|
171
171
|
"openCalendar": "달력 열기"
|
|
172
172
|
},
|
|
173
|
+
"dateRangePicker": {
|
|
174
|
+
"dateRangePicker": "날짜 범위 선택기",
|
|
175
|
+
"end": "종료 날짜",
|
|
176
|
+
"lastDays": "{count, plural, other {최근 #일}}",
|
|
177
|
+
"lastMonth": "지난달",
|
|
178
|
+
"lastWeek": "지난주",
|
|
179
|
+
"lastYear": "작년",
|
|
180
|
+
"openCalendar": "달력 열기",
|
|
181
|
+
"presets": "빠른 선택",
|
|
182
|
+
"start": "시작 날짜",
|
|
183
|
+
"thisMonth": "이번 달",
|
|
184
|
+
"thisWeek": "이번 주",
|
|
185
|
+
"thisYear": "올해",
|
|
186
|
+
"today": "오늘",
|
|
187
|
+
"yesterday": "어제"
|
|
188
|
+
},
|
|
173
189
|
"dateTimePicker": {
|
|
174
190
|
"calendar": "달력",
|
|
175
191
|
"cancel": "취소",
|
|
@@ -170,6 +170,22 @@
|
|
|
170
170
|
"datePicker": "Selektor daty",
|
|
171
171
|
"openCalendar": "Otwórz kalendarz"
|
|
172
172
|
},
|
|
173
|
+
"dateRangePicker": {
|
|
174
|
+
"dateRangePicker": "Selektor zakresu dat",
|
|
175
|
+
"end": "Data końcowa",
|
|
176
|
+
"lastDays": "{count, plural, one {Ostatni dzień} few {Ostatnie # dni} many {Ostatnie # dni} other {Ostatnie # dnia}}",
|
|
177
|
+
"lastMonth": "Poprzedni miesiąc",
|
|
178
|
+
"lastWeek": "Poprzedni tydzień",
|
|
179
|
+
"lastYear": "Poprzedni rok",
|
|
180
|
+
"openCalendar": "Otwórz kalendarz",
|
|
181
|
+
"presets": "Szybkie zakresy",
|
|
182
|
+
"start": "Data początkowa",
|
|
183
|
+
"thisMonth": "Ten miesiąc",
|
|
184
|
+
"thisWeek": "Ten tydzień",
|
|
185
|
+
"thisYear": "Ten rok",
|
|
186
|
+
"today": "Dzisiaj",
|
|
187
|
+
"yesterday": "Wczoraj"
|
|
188
|
+
},
|
|
173
189
|
"dateTimePicker": {
|
|
174
190
|
"calendar": "Kalendarz",
|
|
175
191
|
"cancel": "Anuluj",
|
|
@@ -170,6 +170,22 @@
|
|
|
170
170
|
"datePicker": "Seletor de data",
|
|
171
171
|
"openCalendar": "Abrir calendário"
|
|
172
172
|
},
|
|
173
|
+
"dateRangePicker": {
|
|
174
|
+
"dateRangePicker": "Seletor de intervalo de datas",
|
|
175
|
+
"end": "Data de término",
|
|
176
|
+
"lastDays": "{count, plural, one {Último dia} other {Últimos # dias}}",
|
|
177
|
+
"lastMonth": "Mês passado",
|
|
178
|
+
"lastWeek": "Semana passada",
|
|
179
|
+
"lastYear": "Ano passado",
|
|
180
|
+
"openCalendar": "Abrir calendário",
|
|
181
|
+
"presets": "Intervalos rápidos",
|
|
182
|
+
"start": "Data de início",
|
|
183
|
+
"thisMonth": "Este mês",
|
|
184
|
+
"thisWeek": "Esta semana",
|
|
185
|
+
"thisYear": "Este ano",
|
|
186
|
+
"today": "Hoje",
|
|
187
|
+
"yesterday": "Ontem"
|
|
188
|
+
},
|
|
173
189
|
"dateTimePicker": {
|
|
174
190
|
"calendar": "Calendário",
|
|
175
191
|
"cancel": "Cancelar",
|
|
@@ -170,6 +170,22 @@
|
|
|
170
170
|
"datePicker": "Выбор даты",
|
|
171
171
|
"openCalendar": "Открыть календарь"
|
|
172
172
|
},
|
|
173
|
+
"dateRangePicker": {
|
|
174
|
+
"dateRangePicker": "Выбор диапазона дат",
|
|
175
|
+
"end": "Дата окончания",
|
|
176
|
+
"lastDays": "{count, plural, one {Последний # день} few {Последние # дня} many {Последние # дней} other {Последние # дня}}",
|
|
177
|
+
"lastMonth": "Прошлый месяц",
|
|
178
|
+
"lastWeek": "Прошлая неделя",
|
|
179
|
+
"lastYear": "Прошлый год",
|
|
180
|
+
"openCalendar": "Открыть календарь",
|
|
181
|
+
"presets": "Быстрый выбор",
|
|
182
|
+
"start": "Дата начала",
|
|
183
|
+
"thisMonth": "Этот месяц",
|
|
184
|
+
"thisWeek": "Эта неделя",
|
|
185
|
+
"thisYear": "Этот год",
|
|
186
|
+
"today": "Сегодня",
|
|
187
|
+
"yesterday": "Вчера"
|
|
188
|
+
},
|
|
173
189
|
"dateTimePicker": {
|
|
174
190
|
"calendar": "Календарь",
|
|
175
191
|
"cancel": "Отмена",
|
|
@@ -170,6 +170,22 @@
|
|
|
170
170
|
"datePicker": "Tarih seçici",
|
|
171
171
|
"openCalendar": "Takvimi aç"
|
|
172
172
|
},
|
|
173
|
+
"dateRangePicker": {
|
|
174
|
+
"dateRangePicker": "Tarih aralığı seçici",
|
|
175
|
+
"end": "Bitiş tarihi",
|
|
176
|
+
"lastDays": "{count, plural, one {Son # gün} other {Son # gün}}",
|
|
177
|
+
"lastMonth": "Geçen ay",
|
|
178
|
+
"lastWeek": "Geçen hafta",
|
|
179
|
+
"lastYear": "Geçen yıl",
|
|
180
|
+
"openCalendar": "Takvimi aç",
|
|
181
|
+
"presets": "Hızlı aralıklar",
|
|
182
|
+
"start": "Başlangıç tarihi",
|
|
183
|
+
"thisMonth": "Bu ay",
|
|
184
|
+
"thisWeek": "Bu hafta",
|
|
185
|
+
"thisYear": "Bu yıl",
|
|
186
|
+
"today": "Bugün",
|
|
187
|
+
"yesterday": "Dün"
|
|
188
|
+
},
|
|
173
189
|
"dateTimePicker": {
|
|
174
190
|
"calendar": "Takvim",
|
|
175
191
|
"cancel": "İptal",
|
|
@@ -170,6 +170,22 @@
|
|
|
170
170
|
"datePicker": "日期选择器",
|
|
171
171
|
"openCalendar": "打开日历"
|
|
172
172
|
},
|
|
173
|
+
"dateRangePicker": {
|
|
174
|
+
"dateRangePicker": "日期范围选择器",
|
|
175
|
+
"end": "结束日期",
|
|
176
|
+
"lastDays": "{count, plural, other {最近 # 天}}",
|
|
177
|
+
"lastMonth": "上月",
|
|
178
|
+
"lastWeek": "上周",
|
|
179
|
+
"lastYear": "去年",
|
|
180
|
+
"openCalendar": "打开日历",
|
|
181
|
+
"presets": "快速选择",
|
|
182
|
+
"start": "开始日期",
|
|
183
|
+
"thisMonth": "本月",
|
|
184
|
+
"thisWeek": "本周",
|
|
185
|
+
"thisYear": "今年",
|
|
186
|
+
"today": "今天",
|
|
187
|
+
"yesterday": "昨天"
|
|
188
|
+
},
|
|
173
189
|
"dateTimePicker": {
|
|
174
190
|
"calendar": "日历",
|
|
175
191
|
"cancel": "取消",
|
|
@@ -170,6 +170,22 @@
|
|
|
170
170
|
"datePicker": "日期選取器",
|
|
171
171
|
"openCalendar": "開啟行事曆"
|
|
172
172
|
},
|
|
173
|
+
"dateRangePicker": {
|
|
174
|
+
"dateRangePicker": "日期範圍選取器",
|
|
175
|
+
"end": "結束日期",
|
|
176
|
+
"lastDays": "{count, plural, other {最近 # 天}}",
|
|
177
|
+
"lastMonth": "上個月",
|
|
178
|
+
"lastWeek": "上週",
|
|
179
|
+
"lastYear": "去年",
|
|
180
|
+
"openCalendar": "開啟行事曆",
|
|
181
|
+
"presets": "快速選取",
|
|
182
|
+
"start": "開始日期",
|
|
183
|
+
"thisMonth": "本月",
|
|
184
|
+
"thisWeek": "本週",
|
|
185
|
+
"thisYear": "今年",
|
|
186
|
+
"today": "今天",
|
|
187
|
+
"yesterday": "昨天"
|
|
188
|
+
},
|
|
173
189
|
"dateTimePicker": {
|
|
174
190
|
"calendar": "行事曆",
|
|
175
191
|
"cancel": "取消",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanahoshi/mona-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.1",
|
|
4
4
|
"description": "A very light Angular UI framework",
|
|
5
5
|
"author": "Nanahoshi",
|
|
6
6
|
"repository": {
|
|
@@ -102,6 +102,10 @@
|
|
|
102
102
|
"types": "./types/nanahoshi-mona-ui-date-picker.d.ts",
|
|
103
103
|
"default": "./fesm2022/nanahoshi-mona-ui-date-picker.mjs"
|
|
104
104
|
},
|
|
105
|
+
"./date-range-picker": {
|
|
106
|
+
"types": "./types/nanahoshi-mona-ui-date-range-picker.d.ts",
|
|
107
|
+
"default": "./fesm2022/nanahoshi-mona-ui-date-range-picker.mjs"
|
|
108
|
+
},
|
|
105
109
|
"./datetime-picker": {
|
|
106
110
|
"types": "./types/nanahoshi-mona-ui-datetime-picker.d.ts",
|
|
107
111
|
"default": "./fesm2022/nanahoshi-mona-ui-datetime-picker.mjs"
|
|
@@ -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;
|