@nanahoshi/mona-ui 0.24.5 → 0.24.7

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 (78) hide show
  1. package/README.md +2 -0
  2. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +196 -137
  3. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +14 -4
  4. package/fesm2022/nanahoshi-mona-ui-date-input.mjs +164 -3
  5. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +124 -140
  6. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +205 -202
  7. package/fesm2022/nanahoshi-mona-ui-filter.mjs +233 -231
  8. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-BMCM0W8s.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-vXXNWmEN.mjs} +24 -12
  9. package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-DDgNmgE0.mjs +208 -0
  10. package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-Dzf6Vbs_.mjs +1100 -0
  11. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-C2kf5MwO.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-DAPNqnWV.mjs} +34 -21
  12. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-Dh42tUui.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-B9rmDLq8.mjs} +2564 -927
  13. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  14. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +39 -8
  15. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +1 -1
  16. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +3 -6
  17. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +33 -8
  18. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +33 -8
  19. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +33 -8
  20. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +33 -8
  21. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +33 -8
  22. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +33 -8
  23. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +33 -8
  24. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +33 -8
  25. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +33 -8
  26. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +33 -8
  27. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +33 -8
  28. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +33 -8
  29. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +33 -8
  30. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +195 -122
  31. package/fesm2022/nanahoshi-mona-ui-pager.mjs +367 -463
  32. package/fesm2022/nanahoshi-mona-ui-query.mjs +317 -122
  33. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +149 -167
  34. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +182 -137
  35. package/i18n/catalogs/en-US.messages.json +36 -11
  36. package/locales/ar-sa/ar-sa.messages.json +33 -8
  37. package/locales/de-de/de-de.messages.json +33 -8
  38. package/locales/es-es/es-es.messages.json +33 -8
  39. package/locales/fr-fr/fr-fr.messages.json +33 -8
  40. package/locales/id-id/id-id.messages.json +33 -8
  41. package/locales/it-it/it-it.messages.json +33 -8
  42. package/locales/ja-jp/ja-jp.messages.json +33 -8
  43. package/locales/ko-kr/ko-kr.messages.json +33 -8
  44. package/locales/pt-br/pt-br.messages.json +33 -8
  45. package/locales/ru-ru/ru-ru.messages.json +33 -8
  46. package/locales/tr-tr/tr-tr.messages.json +33 -8
  47. package/locales/zh-cn/zh-cn.messages.json +33 -8
  48. package/locales/zh-tw/zh-tw.messages.json +33 -8
  49. package/package.json +2 -2
  50. package/types/nanahoshi-mona-ui-calendar.d.ts +30 -11
  51. package/types/nanahoshi-mona-ui-check-box.d.ts +11 -1
  52. package/types/nanahoshi-mona-ui-date-input.d.ts +74 -3
  53. package/types/nanahoshi-mona-ui-date-picker.d.ts +61 -33
  54. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +79 -38
  55. package/types/nanahoshi-mona-ui-filter.d.ts +54 -32
  56. package/types/nanahoshi-mona-ui-grid.d.ts +359 -110
  57. package/types/nanahoshi-mona-ui-i18n.d.ts +47 -6
  58. package/types/nanahoshi-mona-ui-list-view.d.ts +1 -2
  59. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +31 -6
  60. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +31 -6
  61. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +31 -6
  62. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +31 -6
  63. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +31 -6
  64. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +31 -6
  65. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +31 -6
  66. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +31 -6
  67. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +31 -6
  68. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +31 -6
  69. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +31 -6
  70. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +31 -6
  71. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +31 -6
  72. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +57 -16
  73. package/types/nanahoshi-mona-ui-pager.d.ts +159 -76
  74. package/types/nanahoshi-mona-ui-query.d.ts +45 -14
  75. package/types/nanahoshi-mona-ui-time-picker.d.ts +72 -42
  76. package/types/nanahoshi-mona-ui-time-selector.d.ts +78 -46
  77. package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-BSlV8Sua.mjs +0 -176
  78. package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-CTOdnH29.mjs +0 -946
@@ -5,7 +5,7 @@ import { TemplateRef } from '@angular/core';
5
5
  import { FormValueControl } from '@angular/forms/signals';
6
6
  import { CalendarDecadeCellTemplateDirective, CalendarMonthCellTemplateDirective, CalendarYearCellTemplateDirective, FirstDayOfWeek } from '@nanahoshi/mona-ui/calendar';
7
7
  import { PreventableEvent } from '@nanahoshi/mona-ui/common';
8
- import { DatePopupVariantInput, DateDisabledType } from '@nanahoshi/mona-ui/date-input';
8
+ import { DatePopupVariantInput, TypedDateInput, DateDisabledType } from '@nanahoshi/mona-ui/date-input';
9
9
  import * as i1 from '@nanahoshi/mona-ui/dropdowns';
10
10
  import { DropdownPopupInput } from '@nanahoshi/mona-ui/dropdowns';
11
11
  import { VariantInputs, AttributeConfig } from '@nanahoshi/mona-ui/internal';
@@ -27,7 +27,6 @@ type DatePickerVariantInput = Omit<DatePickerBaseVariantInput, "focused">;
27
27
  declare class DatePickerComponent implements FormValueControl<Date | null>, DropdownPopupInput, DatePickerVariantInput, DatePopupVariantInput {
28
28
  #private;
29
29
  protected readonly baseClass: _angular_core.Signal<string>;
30
- protected readonly currentDateString: _angular_core.WritableSignal<string>;
31
30
  protected readonly decadeCellTemplate: _angular_core.Signal<CalendarDecadeCellTemplateDirective | undefined>;
32
31
  protected readonly effectiveFormat: _angular_core.Signal<string>;
33
32
  protected readonly expanded: _angular_core.Signal<boolean>;
@@ -35,12 +34,29 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
35
34
  protected readonly invalidState: _angular_core.Signal<boolean>;
36
35
  protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaDatePickerMessages>;
37
36
  protected readonly monthCellTemplate: _angular_core.Signal<CalendarMonthCellTemplateDirective | undefined>;
38
- protected readonly navigatedDate: _angular_core.WritableSignal<Date>;
39
37
  protected readonly pickerPopupClass: _angular_core.Signal<string>;
40
38
  protected readonly popupId: string;
41
39
  protected readonly popupTemplate: _angular_core.Signal<TemplateRef<unknown>>;
42
40
  protected readonly prefixTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
41
+ /** Set in the constructor, which runs after the `value` model it writes to exists. */
42
+ protected readonly typedInput: TypedDateInput;
43
43
  protected readonly yearCellTemplate: _angular_core.Signal<CalendarYearCellTemplateDirective | undefined>;
44
+ /**
45
+ * @description Id of an element that describes the input, such as a hint or an error message.
46
+ * @default ""
47
+ */
48
+ readonly ariaDescribedBy: _angular_core.InputSignal<string>;
49
+ /**
50
+ * @description Accessible name of the input. Prefer a visible label, linked through {@link inputId} or
51
+ * {@link ariaLabelledBy}; the placeholder is not a label.
52
+ * @default ""
53
+ */
54
+ readonly ariaLabel: _angular_core.InputSignal<string>;
55
+ /**
56
+ * @description Id of the element that labels the input.
57
+ * @default ""
58
+ */
59
+ readonly ariaLabelledBy: _angular_core.InputSignal<string>;
44
60
  /**
45
61
  * @description Emits when the popup is about to close. This event is preventable.
46
62
  */
@@ -51,11 +67,13 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
51
67
  readonly closed: _angular_core.OutputEmitterRef<void>;
52
68
  /**
53
69
  * @description Sets the disabled state of the date picker.
70
+ * @default false
54
71
  */
55
- readonly disabled: _angular_core.InputSignal<boolean>;
72
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
56
73
  /**
57
74
  * @description Sets the disabled dates of the date picker.
58
- * Accepts either an iterable of Date objects or a predicate function.
75
+ * Accepts either an iterable of Date objects or a predicate function. Typing a disabled date is reported as a
76
+ * `disabledDate` error instead of setting the value.
59
77
  */
60
78
  readonly disabledDates: _angular_core.InputSignal<DateDisabledType>;
61
79
  /**
@@ -65,21 +83,28 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
65
83
  readonly firstDay: _angular_core.InputSignal<FirstDayOfWeek | null>;
66
84
  /**
67
85
  * @description Sets the date format of the date picker. If not specified, derives from the active locale.
86
+ * Typed text is also accepted with one-digit days and months and a two-digit year.
68
87
  * @default null
69
88
  */
70
89
  readonly format: _angular_core.InputSignal<string | null>;
90
+ /**
91
+ * @description Id of the inner `<input>` element. Point a `<label for>` or `<mona-label for>` at it to label the
92
+ * date picker. A unique id is generated when it isn't set.
93
+ * @default generated
94
+ */
95
+ readonly inputId: _angular_core.InputSignal<string>;
71
96
  /**
72
97
  * @description Marks the date picker as invalid. When bound to a signal form field via `[formField]`,
73
98
  * this is written by the `FormField` directive.
74
99
  * @default false
75
100
  */
76
- readonly invalid: _angular_core.InputSignal<boolean>;
101
+ readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
77
102
  /**
78
- * @description Sets the maximum date of the date picker.
103
+ * @description Sets the maximum date of the date picker. A later typed date is reported as a `maxDate` error.
79
104
  */
80
105
  readonly max: _angular_core.InputSignalWithTransform<Date | undefined, unknown>;
81
106
  /**
82
- * @description Sets the minimum date of the date picker.
107
+ * @description Sets the minimum date of the date picker. An earlier typed date is reported as a `minDate` error.
83
108
  */
84
109
  readonly min: _angular_core.InputSignalWithTransform<Date | undefined, unknown>;
85
110
  /**
@@ -100,44 +125,46 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
100
125
  */
101
126
  readonly popupClass: _angular_core.InputSignal<string>;
102
127
  /**
103
- * @description Sets the height of the popup element.
104
- * @default 200
128
+ * @description Sets the height of the popup element. When empty, the popup fits the calendar.
129
+ * @default ""
105
130
  */
106
131
  readonly popupHeight: _angular_core.InputSignal<ListSizeInputType>;
107
132
  /**
108
- * @description Sets the width of the popup element.
109
- * @default null
133
+ * @description Sets the width of the popup element. When empty, the popup fits the calendar.
134
+ * @default ""
110
135
  */
111
136
  readonly popupWidth: _angular_core.InputSignal<ListSizeInputType>;
112
137
  /**
113
138
  * @description Sets the readonly state of the date picker.
139
+ * @default false
114
140
  */
115
- readonly readonly: _angular_core.InputSignal<boolean>;
141
+ readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
116
142
  /**
117
143
  * @description When true, the input is readonly but the calendar button remains enabled.
118
144
  * @default false
119
145
  */
120
- readonly readonlyInput: _angular_core.InputSignal<boolean>;
146
+ readonly readonlyInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
121
147
  /**
122
148
  * @description Sets the required state of the date picker.
123
149
  * When bound to a signal form field via `[formField]`, this is written by the `FormField` directive.
124
150
  * @default false
125
151
  */
126
- readonly required: _angular_core.InputSignal<boolean>;
152
+ readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
127
153
  /**
128
154
  * @description Sets the border radius of the date picker.
129
155
  */
130
156
  readonly rounded: _angular_core.InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
131
157
  /**
132
- * @description Sets the visibility of the clear button.
158
+ * @description Sets the visibility of the clear button. Clearing empties the value at once.
159
+ * @default false
133
160
  */
134
- readonly showClearButton: _angular_core.InputSignal<boolean>;
161
+ readonly showClearButton: _angular_core.InputSignalWithTransform<boolean, unknown>;
135
162
  /**
136
163
  * @description Sets the size of the date picker.
137
164
  */
138
165
  readonly size: _angular_core.InputSignal<"large" | "medium" | "small" | null | undefined>;
139
166
  /**
140
- * @description Emitted when the date picker is interacted with via blur, selection, or clear.
167
+ * @description Emitted when focus leaves the date picker and its popup.
141
168
  * The `FormField` directive listens to this to mark the field as touched.
142
169
  */
143
170
  readonly touch: _angular_core.OutputEmitterRef<void>;
@@ -146,10 +173,11 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
146
173
  * this is written by the `FormField` directive.
147
174
  * @default false
148
175
  */
149
- readonly touched: _angular_core.InputSignal<boolean>;
176
+ readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
150
177
  readonly userClass: _angular_core.InputSignal<string>;
151
178
  /**
152
- * @description Two-way bindable current date value.
179
+ * @description Two-way bindable current date value. Typed text is written on Enter and when the input loses
180
+ * focus; text that isn't a valid date keeps the previous value and marks the field invalid.
153
181
  * @default null
154
182
  */
155
183
  readonly value: _angular_core.ModelSignal<Date | null>;
@@ -157,25 +185,25 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
157
185
  * @description Enables the display of week numbers in the calendar.
158
186
  * @default false
159
187
  */
160
- readonly weekNumber: _angular_core.InputSignal<boolean>;
188
+ readonly weekNumber: _angular_core.InputSignalWithTransform<boolean, unknown>;
161
189
  constructor();
162
- focus(): void;
190
+ /**
191
+ * Focuses the input and places the caret after the text. Read-only pickers take focus too.
192
+ * @param options Options passed to the native `focus()` call, such as `preventScroll`.
193
+ */
194
+ focus(options?: FocusOptions): void;
163
195
  protected onCalendarValueChange(date: Date | Date[] | null): void;
164
- protected onDateInputBlur(): void;
165
196
  protected onDateInputButtonClick(): void;
166
- protected onDateStringEdit(dateString: string): void;
197
+ protected onFocusIn(event: FocusEvent): void;
198
+ protected onFocusOut(event: FocusEvent): void;
199
+ protected onInputBlur(): void;
200
+ protected onKeydown(event: KeyboardEvent): void;
167
201
  private closePopup;
168
- private compareDatesEqual;
169
- private dateStringEquals;
170
- private handleKeydown;
171
- private isDateDisabledByInput;
172
202
  private openPopup;
173
- private setCurrentDate;
174
- private setKeyboardSubscriptions;
175
- private setPopupCloseSubscriptions;
176
- private setSubscriptions;
203
+ private setCalendarKeyboardSubscription;
204
+ private setPopupCloseSubscription;
177
205
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatePickerComponent, never>;
178
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "mona-date-picker", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "firstDay": { "alias": "firstDay"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; "popupHeight": { "alias": "popupHeight"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "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; }; "weekNumber": { "alias": "weekNumber"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; "open": "open"; "opened": "opened"; "touch": "touch"; "value": "valueChange"; }, ["decadeCellTemplate", "monthCellTemplate", "prefixTemplate", "yearCellTemplate"], never, true, [{ directive: typeof i1.DropdownPopupHandlerDirective; inputs: {}; outputs: {}; }]>;
206
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "mona-date-picker", 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; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "firstDay": { "alias": "firstDay"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; "popupHeight": { "alias": "popupHeight"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "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; }; "weekNumber": { "alias": "weekNumber"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; "open": "open"; "opened": "opened"; "touch": "touch"; "value": "valueChange"; }, ["decadeCellTemplate", "monthCellTemplate", "prefixTemplate", "yearCellTemplate"], never, true, [{ directive: typeof i1.DropdownPopupHandlerDirective; inputs: {}; outputs: {}; }]>;
179
207
  }
180
208
 
181
209
  declare const DATE_PICKER_DEFAULT_MESSAGES: MonaDatePickerMessages;
@@ -5,7 +5,7 @@ import { TemplateRef } from '@angular/core';
5
5
  import { FormValueControl } from '@angular/forms/signals';
6
6
  import { CalendarDecadeCellTemplateDirective, CalendarMonthCellTemplateDirective, CalendarYearCellTemplateDirective, FirstDayOfWeek } from '@nanahoshi/mona-ui/calendar';
7
7
  import { PreventableEvent } from '@nanahoshi/mona-ui/common';
8
- import { DateDisabledType, HourFormat } from '@nanahoshi/mona-ui/date-input';
8
+ import { HourFormat, TypedDateInput, DateDisabledType } from '@nanahoshi/mona-ui/date-input';
9
9
  import * as i1 from '@nanahoshi/mona-ui/dropdowns';
10
10
  import { DropdownPopupInput } from '@nanahoshi/mona-ui/dropdowns';
11
11
  import { AttributeConfig, VariantInputs } from '@nanahoshi/mona-ui/internal';
@@ -20,10 +20,13 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
20
20
  #private;
21
21
  protected readonly activeView: _angular_core.WritableSignal<ActiveView>;
22
22
  protected readonly baseClass: _angular_core.Signal<string>;
23
- protected readonly currentDateString: _angular_core.WritableSignal<string>;
23
+ protected readonly dateTabId: string;
24
24
  protected readonly decadeCellTemplate: _angular_core.Signal<CalendarDecadeCellTemplateDirective | undefined>;
25
25
  protected readonly effectiveFormat: _angular_core.Signal<string>;
26
+ protected readonly effectiveHourFormat: _angular_core.Signal<HourFormat>;
26
27
  protected readonly expanded: _angular_core.Signal<boolean>;
28
+ /** Whether the view shown next takes focus: yes after picking a day, no when a tab is chosen. */
29
+ protected readonly focusViewOnMount: _angular_core.WritableSignal<boolean>;
27
30
  protected readonly footerClass: _angular_core.Signal<string>;
28
31
  protected readonly headerClass: _angular_core.Signal<string>;
29
32
  protected readonly inputAttributes: _angular_core.Signal<AttributeConfig>;
@@ -32,13 +35,33 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
32
35
  protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaDateTimePickerMessages>;
33
36
  protected readonly monthCellTemplate: _angular_core.Signal<CalendarMonthCellTemplateDirective | undefined>;
34
37
  protected readonly navigatedDate: _angular_core.WritableSignal<Date>;
38
+ protected readonly panelId: string;
35
39
  protected readonly pickerPopupClass: _angular_core.Signal<string>;
36
40
  protected readonly popupId: string;
37
41
  protected readonly popupTemplate: _angular_core.Signal<TemplateRef<unknown>>;
38
42
  protected readonly prefixTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
39
43
  protected readonly timePickerMax: _angular_core.Signal<Date | null>;
40
44
  protected readonly timePickerMin: _angular_core.Signal<Date | null>;
45
+ protected readonly timeTabId: string;
46
+ /** Set in the constructor, which runs after the `value` model it writes to exists. */
47
+ protected readonly typedInput: TypedDateInput;
41
48
  protected readonly yearCellTemplate: _angular_core.Signal<CalendarYearCellTemplateDirective | undefined>;
49
+ /**
50
+ * @description Id of an element that describes the input, such as a hint or an error message.
51
+ * @default ""
52
+ */
53
+ readonly ariaDescribedBy: _angular_core.InputSignal<string>;
54
+ /**
55
+ * @description Accessible name of the input. Prefer a visible label, linked through {@link inputId} or
56
+ * {@link ariaLabelledBy}; the placeholder is not a label.
57
+ * @default ""
58
+ */
59
+ readonly ariaLabel: _angular_core.InputSignal<string>;
60
+ /**
61
+ * @description Id of the element that labels the input.
62
+ * @default ""
63
+ */
64
+ readonly ariaLabelledBy: _angular_core.InputSignal<string>;
42
65
  /**
43
66
  * @description Emits when the popup is about to close. This event is preventable.
44
67
  */
@@ -49,11 +72,13 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
49
72
  readonly closed: _angular_core.OutputEmitterRef<void>;
50
73
  /**
51
74
  * @description Sets the disabled state of the date time picker.
75
+ * @default false
52
76
  */
53
- readonly disabled: _angular_core.InputSignal<boolean>;
77
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
54
78
  /**
55
79
  * @description Sets the disabled dates of the date time picker.
56
- * Accepts either an iterable of Date objects or a predicate function.
80
+ * Accepts either an iterable of Date objects or a predicate function. Typing a disabled date is reported as a
81
+ * `disabledDate` error instead of setting the value.
57
82
  */
58
83
  readonly disabledDates: _angular_core.InputSignal<DateDisabledType>;
59
84
  /**
@@ -62,32 +87,41 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
62
87
  */
63
88
  readonly firstDay: _angular_core.InputSignal<FirstDayOfWeek | null>;
64
89
  /**
65
- * @description Sets the date format of the date time picker. If not specified, derives from the active locale, hourFormat, and showSeconds.
90
+ * @description Sets the date format of the date time picker. If not specified, derives from the active locale,
91
+ * hourFormat, and showSeconds. Typed text is also accepted with one-digit parts and a two-digit year.
66
92
  * @default null
67
93
  */
68
94
  readonly format: _angular_core.InputSignal<string | null>;
69
95
  /**
70
- * @description Sets the hour format of the time picker.
71
- * @default 24
96
+ * @description Sets the hour format of the date time picker. When null, the active locale's clock is used: 12-hour
97
+ * for en-US, 24-hour for de-DE.
98
+ * @default null
72
99
  */
73
- readonly hourFormat: _angular_core.InputSignal<HourFormat>;
100
+ readonly hourFormat: _angular_core.InputSignal<HourFormat | null>;
74
101
  /**
75
102
  * @description Sets the hour step of the time picker.
76
103
  * @default 1
77
104
  */
78
105
  readonly hourStep: _angular_core.InputSignal<number>;
106
+ /**
107
+ * @description Id of the inner `<input>` element. Point a `<label for>` or `<mona-label for>` at it to label the
108
+ * date time picker. A unique id is generated when it isn't set.
109
+ * @default generated
110
+ */
111
+ readonly inputId: _angular_core.InputSignal<string>;
79
112
  /**
80
113
  * @description Marks the date time picker as invalid. When bound to a signal form field via `[formField]`,
81
114
  * this is written by the `FormField` directive.
82
115
  * @default false
83
116
  */
84
- readonly invalid: _angular_core.InputSignal<boolean>;
117
+ readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
85
118
  /**
86
- * @description Sets the maximum date of the date time picker.
119
+ * @description Sets the maximum date of the date time picker. A later typed date is reported as a `maxDate` error.
87
120
  */
88
121
  readonly max: _angular_core.InputSignalWithTransform<Date | undefined, unknown>;
89
122
  /**
90
- * @description Sets the minimum date of the date time picker.
123
+ * @description Sets the minimum date of the date time picker. An earlier typed date is reported as a `minDate`
124
+ * error.
91
125
  */
92
126
  readonly min: _angular_core.InputSignalWithTransform<Date | undefined, unknown>;
93
127
  /**
@@ -113,30 +147,31 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
113
147
  */
114
148
  readonly popupClass: _angular_core.InputSignal<string>;
115
149
  /**
116
- * @description Sets the height of the popup element.
117
- * @default 200
150
+ * @description Sets the height of the popup element. When not set, the popup fits its content.
151
+ * @default undefined
118
152
  */
119
153
  readonly popupHeight: _angular_core.InputSignal<ListSizeInputType>;
120
154
  /**
121
- * @description Sets the width of the popup element.
122
- * @default null
155
+ * @description Sets the width of the popup element. When not set, the popup is at least as wide as the input.
156
+ * @default undefined
123
157
  */
124
158
  readonly popupWidth: _angular_core.InputSignal<ListSizeInputType>;
125
159
  /**
126
160
  * @description Sets the readonly state of the date time picker.
161
+ * @default false
127
162
  */
128
- readonly readonly: _angular_core.InputSignal<boolean>;
163
+ readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
129
164
  /**
130
165
  * @description When true, the input is readonly but the popup button remains enabled.
131
166
  * @default false
132
167
  */
133
- readonly readonlyInput: _angular_core.InputSignal<boolean>;
168
+ readonly readonlyInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
134
169
  /**
135
170
  * @description Sets the required state of the date time picker.
136
171
  * When bound to a signal form field via `[formField]`, this is written by the `FormField` directive.
137
172
  * @default false
138
173
  */
139
- readonly required: _angular_core.InputSignal<boolean>;
174
+ readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
140
175
  /**
141
176
  * @description Sets the border radius of the date time picker.
142
177
  */
@@ -147,19 +182,21 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
147
182
  */
148
183
  readonly secondStep: _angular_core.InputSignal<number>;
149
184
  /**
150
- * @description Sets the visibility of the clear button.
185
+ * @description Sets the visibility of the clear button. Clearing empties the value at once.
186
+ * @default false
151
187
  */
152
- readonly showClearButton: _angular_core.InputSignal<boolean>;
188
+ readonly showClearButton: _angular_core.InputSignalWithTransform<boolean, unknown>;
153
189
  /**
154
190
  * @description Sets the visibility of the second selector.
191
+ * @default false
155
192
  */
156
- readonly showSeconds: _angular_core.InputSignal<boolean>;
193
+ readonly showSeconds: _angular_core.InputSignalWithTransform<boolean, unknown>;
157
194
  /**
158
195
  * @description Sets the size of the date time picker.
159
196
  */
160
197
  readonly size: _angular_core.InputSignal<"large" | "medium" | "small" | null | undefined>;
161
198
  /**
162
- * @description Emitted when the date time picker is interacted with via blur, selection, or clear.
199
+ * @description Emitted when focus leaves the date time picker and its popup.
163
200
  * The `FormField` directive listens to this to mark the field as touched.
164
201
  */
165
202
  readonly touch: _angular_core.OutputEmitterRef<void>;
@@ -168,10 +205,11 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
168
205
  * this is written by the `FormField` directive.
169
206
  * @default false
170
207
  */
171
- readonly touched: _angular_core.InputSignal<boolean>;
208
+ readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
172
209
  readonly userClass: _angular_core.InputSignal<string>;
173
210
  /**
174
- * @description Two-way bindable current date time value.
211
+ * @description Two-way bindable current date time value. Typed text is written on Enter and when the input loses
212
+ * focus; text that isn't a valid date and time keeps the previous value and marks the field invalid.
175
213
  * @default null
176
214
  */
177
215
  readonly value: _angular_core.ModelSignal<Date | null>;
@@ -179,30 +217,33 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
179
217
  * @description Enables the display of week numbers in the calendar.
180
218
  * @default false
181
219
  */
182
- readonly weekNumber: _angular_core.InputSignal<boolean>;
220
+ readonly weekNumber: _angular_core.InputSignalWithTransform<boolean, unknown>;
183
221
  constructor();
184
- focus(): void;
222
+ /**
223
+ * Focuses the input and places the caret after the text. Read-only pickers take focus too.
224
+ * @param options Options passed to the native `focus()` call, such as `preventScroll`.
225
+ */
226
+ focus(options?: FocusOptions): void;
185
227
  protected onCalendarValueChange(date: Date | Date[] | null): void;
186
228
  protected onCancelClick(): void;
187
- protected onDateInputBlur(): void;
188
229
  protected onDateInputButtonClick(): void;
189
- protected onDateStringEdit(dateString: string): void;
230
+ protected onFocusIn(event: FocusEvent): void;
231
+ protected onFocusOut(event: FocusEvent): void;
232
+ protected onInputBlur(): void;
233
+ protected onKeydown(event: KeyboardEvent): void;
190
234
  protected onSetDateClick(): void;
235
+ /** Arrow keys, Home and End move between the Date and Time tabs, as in the APG tabs pattern. */
236
+ protected onTabKeydown(event: KeyboardEvent): void;
191
237
  protected onTimeSelectorValueChange(date: Date | null): void;
238
+ /** Shows a view from its tab; focus stays on the tab, as in the APG tabs pattern. */
239
+ protected selectTab(view: ActiveView): void;
192
240
  private closePopup;
193
- private compareDatesEqual;
194
- private dateStringEquals;
195
- private handleKeydown;
196
- private isDateDisabledByInput;
197
241
  private openPopup;
198
- private setCurrentDate;
199
- private setKeyboardSubscriptions;
200
- private setPopupCloseSubscriptions;
201
- private setSubscriptions;
202
- private updateCurrentDateString;
242
+ private setPopupCloseSubscription;
243
+ private setPopupKeyboardSubscription;
203
244
  private updateDateIfNotInRange;
204
245
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
205
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateTimePickerComponent, "mona-datetime-picker", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "firstDay": { "alias": "firstDay"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "hourFormat": { "alias": "hourFormat"; "required": false; "isSignal": true; }; "hourStep": { "alias": "hourStep"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; "popupHeight": { "alias": "popupHeight"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "secondStep": { "alias": "secondStep"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "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; }; "weekNumber": { "alias": "weekNumber"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; "open": "open"; "opened": "opened"; "touch": "touch"; "value": "valueChange"; }, ["decadeCellTemplate", "monthCellTemplate", "prefixTemplate", "yearCellTemplate"], never, true, [{ directive: typeof i1.DropdownPopupHandlerDirective; inputs: {}; outputs: {}; }]>;
246
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateTimePickerComponent, "mona-datetime-picker", 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; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "firstDay": { "alias": "firstDay"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "hourFormat": { "alias": "hourFormat"; "required": false; "isSignal": true; }; "hourStep": { "alias": "hourStep"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; "popupHeight": { "alias": "popupHeight"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "secondStep": { "alias": "secondStep"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "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; }; "weekNumber": { "alias": "weekNumber"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; "open": "open"; "opened": "opened"; "touch": "touch"; "value": "valueChange"; }, ["decadeCellTemplate", "monthCellTemplate", "prefixTemplate", "yearCellTemplate"], never, true, [{ directive: typeof i1.DropdownPopupHandlerDirective; inputs: {}; outputs: {}; }]>;
206
247
  }
207
248
 
208
249
  declare const DATETIME_PICKER_DEFAULT_MESSAGES: MonaDateTimePickerMessages;
@@ -1,12 +1,24 @@
1
1
  import { FilterOperators, FilterLogic, CompositeFilterDescriptor, BooleanFilterOperators, DateFilterOperators, NumericFilterOperators, StringFilterOperators, BooleanFilterDescriptor, DateFilterDescriptor, NumericFilterDescriptor, StringFilterDescriptor } from '@nanahoshi/mona-ui/query';
2
- import * as _angular_core from '@angular/core';
3
2
  import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
4
3
  import { MonaFilterMessages } from '@nanahoshi/mona-ui/i18n';
4
+ import * as _angular_core from '@angular/core';
5
5
  import { DataType } from '@nanahoshi/mona-ui/common';
6
6
  import * as class_variance_authority_types from 'class-variance-authority/types';
7
7
  import { VariantInputs } from '@nanahoshi/mona-ui/internal';
8
8
  import { VariantProps } from 'class-variance-authority';
9
9
 
10
+ type FilterDescriptorBuildArgs<TValue, TOperator extends FilterOperators> = {
11
+ field: string;
12
+ operator1: TOperator;
13
+ value1: TValue;
14
+ } & ({
15
+ logic: null;
16
+ } | {
17
+ logic: FilterLogic;
18
+ operator2: TOperator;
19
+ value2: TValue;
20
+ });
21
+
10
22
  interface FilterMenuDataItem {
11
23
  text: string;
12
24
  value: FilterOperators;
@@ -16,15 +28,16 @@ interface FilterMenuValue {
16
28
  logic?: "and" | "or";
17
29
  operator1?: FilterOperators;
18
30
  operator2?: FilterOperators;
19
- value1?: any;
20
- value2?: any;
31
+ /** The first condition's value; `null` when its operator takes none. */
32
+ value1?: unknown;
33
+ /** The second condition's value; `null` when its operator takes none. */
34
+ value2?: unknown;
21
35
  }
22
36
 
23
37
  interface FilterMenuDateOptions {
24
- format: string;
25
- type: FilterMenuDateType;
38
+ /** The date input format. Without it, the date picker uses the locale's date format. */
39
+ readonly format?: string;
26
40
  }
27
- type FilterMenuDateType = "date" | "datetime" | "time";
28
41
 
29
42
  interface FilterMenuConnectorItem {
30
43
  text: string;
@@ -39,65 +52,74 @@ type FilterMenuBaseVariantProps = VariantProps<typeof filterMenuBaseThemeVariant
39
52
  type FilterMenuBaseVariantInput = VariantInputs<FilterMenuBaseVariantProps>;
40
53
  type FilterMenuVariantInput = FilterMenuBaseVariantInput;
41
54
 
55
+ /**
56
+ * Builds a filter for one field from up to two conditions joined by AND or OR. The first condition starts at the
57
+ * first allowed operator; Enter in a value applies, as does the Apply button.
58
+ */
42
59
  declare class FilterMenuComponent implements FilterMenuVariantInput {
43
60
  #private;
44
- protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaFilterMessages>;
45
61
  protected readonly applyDisabled: _angular_core.Signal<boolean>;
46
62
  protected readonly baseClass: _angular_core.Signal<string>;
47
- protected readonly booleanFilterMenuDataItems: _angular_core.Signal<FilterMenuDataItem[]>;
48
63
  protected readonly connectorDataItems: _angular_core.Signal<FilterMenuConnectorItem[]>;
49
- protected readonly dateFilterMenuDataItems: _angular_core.Signal<FilterMenuDataItem[]>;
50
64
  protected readonly dateFilterValues: _angular_core.WritableSignal<[Date | null, Date | null]>;
51
- protected readonly effectiveDateOptions: _angular_core.Signal<FilterMenuDateOptions>;
52
65
  protected readonly filterMenuActionsClass: _angular_core.Signal<string>;
53
66
  protected readonly filterMenuItemClass: _angular_core.Signal<string>;
54
67
  protected readonly firstFilterValid: _angular_core.Signal<boolean>;
68
+ protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaFilterMessages>;
55
69
  protected readonly numberFilterValues: _angular_core.WritableSignal<[number | null, number | null]>;
56
- protected readonly numericFilterMenuDataItems: _angular_core.Signal<FilterMenuDataItem[]>;
70
+ /** The operators of the menu's type that `operators` allows, in its order; labels follow the locale. */
71
+ protected readonly operatorItems: _angular_core.Signal<FilterMenuDataItem[]>;
57
72
  protected readonly secondFilterValid: _angular_core.Signal<boolean>;
58
73
  protected readonly selectedConnectorItem: _angular_core.WritableSignal<FilterMenuConnectorItem | null>;
59
74
  protected readonly selectedFilterMenuDataItemList: _angular_core.WritableSignal<(FilterMenuDataItem | undefined)[]>;
60
- protected readonly stringFilterMenuDataItems: _angular_core.Signal<FilterMenuDataItem[]>;
61
75
  protected readonly stringFilterValues: _angular_core.WritableSignal<[string, string]>;
62
76
  readonly apply: _angular_core.OutputEmitterRef<CompositeFilterDescriptor>;
77
+ /**
78
+ * @description Options of the date input. Without a `format`, the date picker uses the locale's date format.
79
+ * @default {}
80
+ */
63
81
  readonly dateOptions: _angular_core.InputSignal<FilterMenuDateOptions>;
64
- readonly field: _angular_core.ModelSignal<string>;
65
- readonly operators: _angular_core.ModelSignal<Iterable<FilterOperators>>;
82
+ /**
83
+ * @description The field the filter applies to.
84
+ * @default ""
85
+ */
86
+ readonly field: _angular_core.InputSignal<string>;
87
+ /**
88
+ * @description The operators offered, in this order; all of the type's operators when empty.
89
+ * @default []
90
+ */
91
+ readonly operators: _angular_core.InputSignal<Iterable<FilterOperators>>;
66
92
  readonly rounded: _angular_core.InputSignal<"none" | "small" | "medium" | "large" | null | undefined>;
67
93
  readonly size: _angular_core.InputSignal<"small" | "medium" | "large" | null | undefined>;
68
- readonly type: _angular_core.ModelSignal<DataType>;
94
+ /**
95
+ * @description The data type of the field, which picks the operators and the value input.
96
+ * @default "string"
97
+ */
98
+ readonly type: _angular_core.InputSignal<DataType>;
99
+ /**
100
+ * @description The conditions shown in the menu. Setting it to `undefined` clears the menu.
101
+ */
69
102
  readonly value: _angular_core.ModelSignal<FilterMenuValue | undefined>;
70
103
  constructor();
104
+ getFilterValues(): FilterMenuValue;
71
105
  protected onConnectorChange(item: FilterMenuConnectorItem, selected: boolean): void;
72
106
  protected onFilterApply(): void;
73
107
  protected onFilterClear(): void;
74
- protected onFilterOperatorChange(index: number, item: FilterMenuDataItem): void;
75
- getFilterValues(): FilterMenuValue;
108
+ protected onFilterOperatorChange(index: 0 | 1, item: FilterMenuDataItem): void;
109
+ /** Enter in a value applies the filter, unless an IME is composing text. */
110
+ protected onValueKeydown(event: KeyboardEvent): void;
76
111
  private applyBooleanFilters;
77
112
  private applyDateFilters;
78
113
  private applyNumberFilters;
79
114
  private applyStringFilters;
80
115
  private clearSecondFilterValues;
81
116
  private setFilterValues;
82
- private getDefaultDateFormat;
83
117
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterMenuComponent, never>;
84
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterMenuComponent, "mona-filter-menu", never, { "dateOptions": { "alias": "dateOptions"; "required": false; "isSignal": true; }; "field": { "alias": "field"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "apply": "apply"; "field": "fieldChange"; "operators": "operatorsChange"; "type": "typeChange"; "value": "valueChange"; }, never, never, true, never>;
118
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterMenuComponent, "mona-filter-menu", never, { "dateOptions": { "alias": "dateOptions"; "required": false; "isSignal": true; }; "field": { "alias": "field"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "apply": "apply"; "value": "valueChange"; }, never, never, true, never>;
85
119
  }
86
120
 
87
121
  declare const FILTER_DEFAULT_MESSAGES: MonaFilterMessages;
88
122
 
89
- type FilterDescriptorBuildArgs<TValue, TOperator extends FilterOperators> = {
90
- field: string;
91
- operator1: TOperator;
92
- value1: TValue;
93
- } & ({
94
- logic: null;
95
- } | {
96
- logic: FilterLogic;
97
- operator2: TOperator;
98
- value2: TValue;
99
- });
100
-
101
123
  declare class FilterService {
102
124
  #private;
103
125
  get booleanFilterMenuItems(): FilterMenuDataItem[];
@@ -117,4 +139,4 @@ declare class FilterService {
117
139
  }
118
140
 
119
141
  export { FILTER_DEFAULT_MESSAGES, FilterMenuComponent, FilterService };
120
- export type { FilterMenuDataItem, FilterMenuDateOptions, FilterMenuDateType, FilterMenuValue };
142
+ export type { FilterDescriptorBuildArgs, FilterMenuDataItem, FilterMenuDateOptions, FilterMenuValue };