@nanahoshi/mona-ui 0.31.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.
Files changed (68) hide show
  1. package/date-range-picker/package.json +4 -0
  2. package/docs/api/calendar.md +3 -2
  3. package/docs/api/common.md +1 -1
  4. package/docs/api/date-input.md +1 -1
  5. package/docs/api/date-range-picker.md +137 -0
  6. package/docs/api/i18n.md +53 -0
  7. package/docs/api/list.md +1 -1
  8. package/docs/api/locales.md +14 -14
  9. package/docs/api/popup.md +1 -1
  10. package/docs/calendar.md +47 -3
  11. package/docs/date-picker.md +1 -1
  12. package/docs/date-range-picker.md +420 -0
  13. package/docs/forms.md +1 -0
  14. package/docs/label.md +1 -0
  15. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +171 -59
  16. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +1 -0
  17. package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +1331 -0
  18. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1 -0
  19. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +19 -0
  20. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +7 -1
  21. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +23 -0
  22. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +19 -0
  23. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +19 -0
  24. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +19 -0
  25. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +16 -0
  26. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +19 -0
  27. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +16 -0
  28. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +16 -0
  29. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +21 -0
  30. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +19 -0
  31. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +21 -0
  32. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +19 -0
  33. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +16 -0
  34. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +16 -0
  35. package/i18n/catalogs/en-US.messages.json +16 -0
  36. package/llms.txt +3 -1
  37. package/locales/ar-sa/ar-sa.messages.json +16 -0
  38. package/locales/de-de/de-de.messages.json +16 -0
  39. package/locales/es-es/es-es.messages.json +16 -0
  40. package/locales/fr-fr/fr-fr.messages.json +16 -0
  41. package/locales/id-id/id-id.messages.json +16 -0
  42. package/locales/it-it/it-it.messages.json +16 -0
  43. package/locales/ja-jp/ja-jp.messages.json +16 -0
  44. package/locales/ko-kr/ko-kr.messages.json +16 -0
  45. package/locales/pl-pl/pl-pl.messages.json +16 -0
  46. package/locales/pt-br/pt-br.messages.json +16 -0
  47. package/locales/ru-ru/ru-ru.messages.json +16 -0
  48. package/locales/tr-tr/tr-tr.messages.json +16 -0
  49. package/locales/zh-cn/zh-cn.messages.json +16 -0
  50. package/locales/zh-tw/zh-tw.messages.json +16 -0
  51. package/package.json +5 -1
  52. package/types/nanahoshi-mona-ui-calendar.d.ts +66 -8
  53. package/types/nanahoshi-mona-ui-date-range-picker.d.ts +462 -0
  54. package/types/nanahoshi-mona-ui-i18n.d.ts +39 -0
  55. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +16 -0
  56. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +16 -0
  57. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +16 -0
  58. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +16 -0
  59. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +16 -0
  60. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +16 -0
  61. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +16 -0
  62. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +16 -0
  63. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +16 -0
  64. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +16 -0
  65. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +16 -0
  66. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +16 -0
  67. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +16 -0
  68. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +16 -0
@@ -0,0 +1,4 @@
1
+ {
2
+ "module": "../fesm2022/nanahoshi-mona-ui-date-range-picker.mjs",
3
+ "typings": "../types/nanahoshi-mona-ui-date-range-picker.d.ts"
4
+ }
@@ -23,12 +23,13 @@ Component.
23
23
  | `invalid` | `boolean` | `false` | Marks the calendar as invalid. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
24
24
  | `maxDate` | `Date \| null` | — | Sets the maximum date that can be selected. |
25
25
  | `minDate` | `Date \| null` | — | Sets the minimum date that can be selected. |
26
+ | `months` | `number` | `1` | How many months the month view shows side by side, from 1 to 12. They wrap onto new rows when the calendar is narrow. With more than one, each month has a caption, the days of the months around it are left blank, and the previous and next buttons move the view by one month. |
26
27
  | `readonly` | `boolean` | `false` | Sets the readonly state of the calendar. |
27
28
  | `required` | `boolean` | `false` | Sets whether the calendar is required. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
28
29
  | `rounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"medium"` | Sets the border radius of the calendar. |
29
30
  | `selection` | `CalendarSelection` | `"single"` | Sets the selection mode of the calendar. |
30
31
  | `touched` | `boolean` | `false` | Sets the touched state of the calendar. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
31
- | `value` (two-way) | `Date \| Date[] \| null` | `null` | The current value of the calendar: a `Date` in single selection, the selected dates in multiple selection, and `[start, end]` in range selection. A range is written once both ends are picked. |
32
+ | `value` (two-way) | `Date \| Date[] \| null` | `null` | The current value of the calendar: a `Date` in single selection, the selected dates in multiple selection, and `[start, end]` in range selection. A range is written once both ends are picked. In range selection, a value with one date is a range's start: the next day picked ends the range. |
32
33
  | `weekNumber` | `boolean` | `false` | Enables the display of week numbers in the calendar. |
33
34
 
34
35
  ### Outputs
@@ -120,4 +121,4 @@ Type alias.
120
121
  type FirstDayOfWeek = | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
121
122
  ```
122
123
 
123
- **Used by:** [`CalendarComponent`](calendar.md#calendarcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent)
124
+ **Used by:** [`CalendarComponent`](calendar.md#calendarcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent)
@@ -101,7 +101,7 @@ Class.
101
101
  | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
102
102
  | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
103
103
 
104
- **Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`CellEditEvent`](grid.md#celleditevent), [`ColumnReorderEvent`](grid.md#columnreorderevent), [`ColumnSortEvent`](grid.md#columnsortevent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DialogActionEvent`](dialog.md#dialogactionevent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`FilterChangeEvent`](common.md#filterchangeevent), [`GridAddEvent`](grid.md#gridaddevent), [`GridCancelEvent`](grid.md#gridcancelevent), [`GridEditEvent`](grid.md#grideditevent), [`GridRemoveEvent`](grid.md#gridremoveevent), [`GridSaveEvent`](grid.md#gridsaveevent), [`ListBoxClearEvent`](list-box.md#listboxclearevent), [`ListBoxMoveEvent`](list-box.md#listboxmoveevent), [`ListBoxRemoveEvent`](list-box.md#listboxremoveevent), [`ListBoxTransferEvent`](list-box.md#listboxtransferevent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`NodeCheckEvent`](tree-view.md#nodecheckevent), [`NodeClickEvent`](tree-view.md#nodeclickevent), [`NodeSelectEvent`](tree-view.md#nodeselectevent), [`PageSizeChangeEvent`](pager.md#pagesizechangeevent), [`PopoverHideEvent`](popover.md#popoverhideevent), [`PopoverShowEvent`](popover.md#popovershowevent), [`PopupCloseEvent`](popup.md#popupcloseevent), [`PopupMenuCloseEvent`](popup-menu.md#popupmenucloseevent), [`PopupMenuItemClickEvent`](popup-menu.md#popupmenuitemclickevent), [`RowEditEvent`](grid.md#roweditevent), [`RowReorderEvent`](grid.md#rowreorderevent), [`StepSelectEvent`](stepper.md#stepselectevent), [`TabCloseEvent`](tabs.md#tabcloseevent), [`TabSelectEvent`](tabs.md#tabselectevent), [`TimePickerComponent`](time-picker.md#timepickercomponent)
104
+ **Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`CellEditEvent`](grid.md#celleditevent), [`ColumnReorderEvent`](grid.md#columnreorderevent), [`ColumnSortEvent`](grid.md#columnsortevent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DialogActionEvent`](dialog.md#dialogactionevent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`FilterChangeEvent`](common.md#filterchangeevent), [`GridAddEvent`](grid.md#gridaddevent), [`GridCancelEvent`](grid.md#gridcancelevent), [`GridEditEvent`](grid.md#grideditevent), [`GridRemoveEvent`](grid.md#gridremoveevent), [`GridSaveEvent`](grid.md#gridsaveevent), [`ListBoxClearEvent`](list-box.md#listboxclearevent), [`ListBoxMoveEvent`](list-box.md#listboxmoveevent), [`ListBoxRemoveEvent`](list-box.md#listboxremoveevent), [`ListBoxTransferEvent`](list-box.md#listboxtransferevent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`NodeCheckEvent`](tree-view.md#nodecheckevent), [`NodeClickEvent`](tree-view.md#nodeclickevent), [`NodeSelectEvent`](tree-view.md#nodeselectevent), [`PageSizeChangeEvent`](pager.md#pagesizechangeevent), [`PopoverHideEvent`](popover.md#popoverhideevent), [`PopoverShowEvent`](popover.md#popovershowevent), [`PopupCloseEvent`](popup.md#popupcloseevent), [`PopupMenuCloseEvent`](popup-menu.md#popupmenucloseevent), [`PopupMenuItemClickEvent`](popup-menu.md#popupmenuitemclickevent), [`RowEditEvent`](grid.md#roweditevent), [`RowReorderEvent`](grid.md#rowreorderevent), [`StepSelectEvent`](stepper.md#stepselectevent), [`TabCloseEvent`](tabs.md#tabcloseevent), [`TabSelectEvent`](tabs.md#tabselectevent), [`TimePickerComponent`](time-picker.md#timepickercomponent)
105
105
 
106
106
  ## `FilterChangeEvent`
107
107
 
@@ -94,7 +94,7 @@ Type alias.
94
94
  type DateDisabledType = Iterable<Date> | Predicate<Date> | null | undefined;
95
95
  ```
96
96
 
97
- **Used by:** [`CalendarComponent`](calendar.md#calendarcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`TypedDateConstraints`](date-input.md#typeddateconstraints)
97
+ **Used by:** [`CalendarComponent`](calendar.md#calendarcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`TypedDateConstraints`](date-input.md#typeddateconstraints)
98
98
 
99
99
  ## `HourFormat`
100
100
 
@@ -0,0 +1,137 @@
1
+ # `@nanahoshi/mona-ui/date-range-picker`
2
+
3
+ Everything `@nanahoshi/mona-ui/date-range-picker` exports.
4
+
5
+ **Guides:** [Date Range Picker](../date-range-picker.md)
6
+
7
+ ## `DateRangePickerComponent`
8
+
9
+ Component.
10
+
11
+ Picks a range of days: two inputs for its first and last day, typed in the locale's format, and a calendar popup
12
+ that shows two months at a time.
13
+
14
+ **Selector:** `mona-date-range-picker`
15
+ **Implements:** `FormValueControl<DateRange \| null>`
16
+
17
+ ### Inputs
18
+
19
+ | Name | Type | Default | Description |
20
+ | --- | --- | --- | --- |
21
+ | `aria-describedby` | `string` | `""` | Id of an element that describes the range, such as a hint or an error message. It describes both inputs. |
22
+ | `aria-label` | `string` | `""` | Accessible name of the range, on the group that holds its two inputs. Prefer a visible label from a `mona-label` or a `mona-form-field`. Each input is named for its end, as in "Start date". |
23
+ | `aria-labelledby` | `string` | `""` | Id of the element that labels the range, on the group that holds its two inputs. |
24
+ | `class` | `string` | `""` | Extra classes for the control's container. |
25
+ | `disabled` | `boolean` | `false` | Sets the disabled state of the date range picker. |
26
+ | `disabledDates` | `DateDisabledType` | — | Days that can't be picked, as an iterable of dates or a predicate. Typing one is reported as a `disabledDate` error. A range may still span a disabled day. |
27
+ | `endPlaceholder` | `string` | `""` | Placeholder of the end input. |
28
+ | `firstDay` | `FirstDayOfWeek \| null` | `null` | Sets the first day of the week. If not specified, derives from the active locale. |
29
+ | `format` | `string \| null` | `null` | The date format of both inputs. If not specified, derives from the active locale. Typed text is also accepted with one-digit days and months and a two-digit year. |
30
+ | `invalid` | `boolean` | `false` | Marks the range as invalid. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
31
+ | `maxDate` | `Date \| undefined` | `undefined` | The last day either end can be. A later typed date is reported as a `maxDate` error. |
32
+ | `minDate` | `Date \| undefined` | `undefined` | The first day either end can be. An earlier typed date is reported as a `minDate` error. |
33
+ | `months` | `number` | `2` | How many months the calendar shows side by side. They wrap onto new rows on a narrow screen. |
34
+ | `popupClass` | `string` | `""` | Sets the class of the popup element. |
35
+ | `popupHeight` | `ListSizeInputType` | `""` | Sets the height of the popup element. When empty, the popup fits the calendar. |
36
+ | `popupWidth` | `ListSizeInputType` | `""` | Sets the width of the popup element. When empty, the popup fits the calendar. |
37
+ | `presets` | `readonly (DateRangePreset \| DateRangePresetKey)[]` | `[]` | Quick ranges shown beside the calendar, such as "Last 7 days". Give the key of a built-in range, named by the locale's messages, or a `DateRangePreset` with a label of its own. Picking one writes its range and closes the popup. A range is kept within `minDate` and `maxDate`; one with no day left in them, or with an end on a disabled date, is disabled. |
38
+ | `readonly` | `boolean` | `false` | Sets the readonly state of the date range picker. |
39
+ | `readonlyInput` | `boolean` | `false` | When true, the inputs are read-only but the calendar button stays enabled. |
40
+ | `required` | `boolean` | `false` | Marks the range as required, which an empty value doesn't meet. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
41
+ | `rounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"medium"` | Sets the border radius of the date range picker. |
42
+ | `showClearButton` | `boolean` | `false` | Shows a clear button in each input, which empties that end at once. |
43
+ | `size` | `"large" \| "medium" \| "small"` | `"medium"` | Sets the size of the date range picker. |
44
+ | `startPlaceholder` | `string` | `""` | Placeholder of the start input. |
45
+ | `touched` | `boolean` | `false` | Sets the touched state of the date range picker. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
46
+ | `value` (two-way) | `DateRange \| null` | `null` | Two-way bindable range. Typed text is written on Enter and when an input loses focus; text that isn't a valid date, or an end before the start, keeps the previous range and marks the field invalid. A range picked in the calendar is written once both ends are picked. |
47
+ | `weekNumber` | `boolean` | `false` | Enables the display of week numbers in the calendar. |
48
+
49
+ ### Outputs
50
+
51
+ | Name | Type | Description |
52
+ | --- | --- | --- |
53
+ | `close` | `PopupCloseEvent<unknown>` | Emits when the popup is about to close. This event is preventable. |
54
+ | `closed` | `void` | Emits after the popup is closed. |
55
+ | `open` | `PreventableEvent<Event>` | Emits when the popup is about to open. This event is preventable. |
56
+ | `opened` | `void` | Emits after the popup is opened. |
57
+ | `touch` | `void` | Emitted when focus leaves the date range picker and its popup. The `FormField` directive listens to this to mark the field as touched. |
58
+ | `valueChange` | `DateRange \| null` | Emitted when `value` changes. |
59
+
60
+ ### Methods
61
+
62
+ | Signature | Description |
63
+ | --- | --- |
64
+ | `focus(options?: FocusOptions): void` | Focuses the start input and places the caret after its text. Read-only pickers take focus too. |
65
+
66
+ ## `DATE_RANGE_PICKER_DEFAULT_MESSAGES`
67
+
68
+ Constant.
69
+
70
+ ```typescript
71
+ const DATE_RANGE_PICKER_DEFAULT_MESSAGES: MonaDateRangePickerMessages;
72
+ ```
73
+
74
+ ## `DateRange`
75
+
76
+ Interface.
77
+
78
+ A span of days, from `start` to `end`, both included. Either end is `null` while it hasn't been entered; the date
79
+ range picker's value is `null` when neither has.
80
+
81
+ ### Properties
82
+
83
+ | Name | Type |
84
+ | --- | --- |
85
+ | `end` (read-only) | `Date \| null` |
86
+ | `start` (read-only) | `Date \| null` |
87
+
88
+ **Used by:** [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent)
89
+
90
+ ## `DateRangePreset`
91
+
92
+ Interface.
93
+
94
+ A quick range of your own, shown beside the calendar. Its range is worked out from today each time the popup opens,
95
+ so a range such as "Next 14 days" stays current.
96
+
97
+ ### Properties
98
+
99
+ | Name | Type | Description |
100
+ | --- | --- | --- |
101
+ | `label` (read-only) | `string` | The text of the preset's button. |
102
+ | `range` (read-only) | `(today: Date) => DateRangePresetRange` | Works out the range. |
103
+
104
+ **Used by:** [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent)
105
+
106
+ ## `DateRangePresetRange`
107
+
108
+ Interface.
109
+
110
+ The range a preset picks. Both ends are set, and the end may come before the start: they're put in order.
111
+
112
+ ### Properties
113
+
114
+ | Name | Type |
115
+ | --- | --- |
116
+ | `end` (read-only) | `Date` |
117
+ | `start` (read-only) | `Date` |
118
+
119
+ **Used by:** [`DateRangePreset`](date-range-picker.md#daterangepreset)
120
+
121
+ ## `DateRangePresetKey`
122
+
123
+ Type alias.
124
+
125
+ A built-in quick range, named by the locale's messages. Weeks start on the picker's `firstDay`, or on the locale's
126
+ first day of the week.
127
+
128
+ - `today`, `yesterday`: that day alone.
129
+ - `last7Days`, `last30Days`: the days up to and including today.
130
+ - `thisWeek`, `thisMonth`, `thisYear`: the whole week, month or year today is in.
131
+ - `lastWeek`, `lastMonth`, `lastYear`: the whole week, month or year before it.
132
+
133
+ ```typescript
134
+ type DateRangePresetKey = | "last30Days" | "last7Days" | "lastMonth" | "lastWeek" | "lastYear" | "thisMonth" | "thisWeek" | "thisYear" | "today" | "yesterday";
135
+ ```
136
+
137
+ **Used by:** [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent)
package/docs/api/i18n.md CHANGED
@@ -50,6 +50,18 @@ Converts a locale id to a canonical BCP 47 tag. Ids that are empty or not valid
50
50
  function canonicalizeLocaleId(localeId: string | null | undefined): string;
51
51
  ```
52
52
 
53
+ ## `formatGregorianDateRangeToLocaleString`
54
+
55
+ Function.
56
+
57
+ Formats the span between two dates in the Gregorian calendar, with the locale's own range pattern: the parts both
58
+ dates share are written once, as in "November – December 2026" or "Nov 3 – 9, 2026".
59
+ Without `Intl.DateTimeFormat.prototype.formatRange`, the two dates are joined with an en dash.
60
+
61
+ ```typescript
62
+ function formatGregorianDateRangeToLocaleString(start: Date, end: Date, localeId: string, options: Intl.DateTimeFormatOptions): string;
63
+ ```
64
+
53
65
  ## `formatGregorianDateToLocaleString`
54
66
 
55
67
  Function.
@@ -601,6 +613,38 @@ Interface.
601
613
 
602
614
  **Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages)
603
615
 
616
+ ## `MonaDateRangePickerMessages`
617
+
618
+ Interface.
619
+
620
+ The date range picker's popup name, its calendar button, the names of its two inputs, and its quick ranges.
621
+
622
+ ### Properties
623
+
624
+ | Name | Type | Description |
625
+ | --- | --- | --- |
626
+ | `dateRangePicker` (read-only) | `string` | The name of the popup that holds the calendar. |
627
+ | `end` (read-only) | `string` | The name of the input for the range's last day. |
628
+ | `lastMonth` (read-only) | `string` | The `lastMonth` quick range. |
629
+ | `lastWeek` (read-only) | `string` | The `lastWeek` quick range. |
630
+ | `lastYear` (read-only) | `string` | The `lastYear` quick range. |
631
+ | `openCalendar` (read-only) | `string` | The name of the button that opens the calendar. |
632
+ | `presets` (read-only) | `string` | The name of the group of quick ranges beside the calendar. |
633
+ | `start` (read-only) | `string` | The name of the input for the range's first day. |
634
+ | `thisMonth` (read-only) | `string` | The `thisMonth` quick range. |
635
+ | `thisWeek` (read-only) | `string` | The `thisWeek` quick range. |
636
+ | `thisYear` (read-only) | `string` | The `thisYear` quick range. |
637
+ | `today` (read-only) | `string` | The `today` quick range. |
638
+ | `yesterday` (read-only) | `string` | The `yesterday` quick range. |
639
+
640
+ ### Methods
641
+
642
+ | Signature | Description |
643
+ | --- | --- |
644
+ | `lastDays(count: number): string` | The `last7Days` and `last30Days` quick ranges: the days up to and including today. |
645
+
646
+ **Used by:** [`DATE_RANGE_PICKER_DEFAULT_MESSAGES`](date-range-picker.md#date-range-picker-default-messages), [`DateRangePickerMessages`](i18n.md#daterangepickermessages), [`MonaLocaleMessages`](i18n.md#monalocalemessages)
647
+
604
648
  ## `MonaListMessages`
605
649
 
606
650
  Interface.
@@ -1186,6 +1230,7 @@ Interface.
1186
1230
  | `comboBox` | `MonaComboBoxMessages` |
1187
1231
  | `command` | `MonaCommandMessages` |
1188
1232
  | `datePicker` | `MonaDatePickerMessages` |
1233
+ | `dateRangePicker` | `MonaDateRangePickerMessages` |
1189
1234
  | `dateTimePicker` | `MonaDateTimePickerMessages` |
1190
1235
  | `dialog` | `MonaDialogMessages` |
1191
1236
  | `dropdownList` | `MonaDropdownListMessages` |
@@ -1608,6 +1653,14 @@ Type alias.
1608
1653
  type DatePickerMessages = MonaDatePickerMessages;
1609
1654
  ```
1610
1655
 
1656
+ ## `DateRangePickerMessages`
1657
+
1658
+ Type alias.
1659
+
1660
+ ```typescript
1661
+ type DateRangePickerMessages = MonaDateRangePickerMessages;
1662
+ ```
1663
+
1611
1664
  ## `DateTimePickerMessages`
1612
1665
 
1613
1666
  Type alias.
package/docs/api/list.md CHANGED
@@ -70,7 +70,7 @@ Type alias.
70
70
  type ListSizeInputType = ListSizeType | number;
71
71
  ```
72
72
 
73
- **Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`TimePickerComponent`](time-picker.md#timepickercomponent)
73
+ **Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`TimePickerComponent`](time-picker.md#timepickercomponent)
74
74
 
75
75
  ## `ListSizeType`
76
76