@nanahoshi/mona-ui 0.37.0 → 0.39.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 (103) hide show
  1. package/docs/api/common.md +1 -1
  2. package/docs/api/date-picker.md +2 -0
  3. package/docs/api/date-range-picker.md +2 -0
  4. package/docs/api/datetime-picker.md +2 -0
  5. package/docs/api/dropdown-list.md +2 -0
  6. package/docs/api/dropdown-tree.md +81 -0
  7. package/docs/api/dropdowns.md +34 -8
  8. package/docs/api/i18n.md +33 -4
  9. package/docs/api/list.md +1 -1
  10. package/docs/api/locales.md +14 -14
  11. package/docs/api/multi-select-tree.md +75 -0
  12. package/docs/api/multi-select.md +3 -1
  13. package/docs/api/popup.md +1 -1
  14. package/docs/api/time-picker.md +2 -0
  15. package/docs/api/tree-view.md +2 -2
  16. package/docs/auto-complete.md +2 -0
  17. package/docs/combo-box.md +2 -0
  18. package/docs/date-picker.md +5 -1
  19. package/docs/date-range-picker.md +5 -1
  20. package/docs/datetime-picker.md +5 -1
  21. package/docs/dropdown-list.md +52 -0
  22. package/docs/dropdown-tree.md +427 -0
  23. package/docs/multi-select-tree.md +353 -0
  24. package/docs/multi-select.md +6 -0
  25. package/docs/time-picker.md +5 -1
  26. package/dropdown-tree/package.json +4 -0
  27. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2 -2
  28. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +36 -2
  29. package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +37 -3
  30. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +52 -5
  31. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +40 -5
  32. package/fesm2022/nanahoshi-mona-ui-dropdown-tree.mjs +1061 -0
  33. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +730 -60
  34. package/fesm2022/nanahoshi-mona-ui-editor.mjs +8 -2
  35. package/fesm2022/nanahoshi-mona-ui-filter.mjs +4 -0
  36. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-S2iCn8TV.mjs → nanahoshi-mona-ui-grid-grid-list.component-BoSXXLKQ.mjs} +2 -2
  37. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-BUJvgihp.mjs → nanahoshi-mona-ui-grid-grid-row.component-Df2gfS0X.mjs} +3 -1
  38. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-Wndy-_Bt.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-xjrcCXXF.mjs} +2 -2
  39. package/fesm2022/nanahoshi-mona-ui-grid.mjs +8 -4
  40. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +13 -0
  41. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +80 -37
  42. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +7 -0
  43. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +7 -0
  44. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +7 -0
  45. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +7 -0
  46. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +7 -0
  47. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +7 -0
  48. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +7 -0
  49. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +7 -0
  50. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +17 -0
  51. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +7 -0
  52. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +17 -0
  53. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +7 -0
  54. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +7 -0
  55. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +7 -0
  56. package/fesm2022/nanahoshi-mona-ui-multi-select-tree.mjs +1179 -0
  57. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +42 -7
  58. package/fesm2022/nanahoshi-mona-ui-pager.mjs +3 -1
  59. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +39 -4
  60. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +2 -1
  61. package/i18n/catalogs/en-US.messages.json +9 -0
  62. package/llms.txt +6 -2
  63. package/locales/ar-sa/ar-sa.messages.json +9 -0
  64. package/locales/de-de/de-de.messages.json +9 -0
  65. package/locales/es-es/es-es.messages.json +9 -0
  66. package/locales/fr-fr/fr-fr.messages.json +9 -0
  67. package/locales/id-id/id-id.messages.json +9 -0
  68. package/locales/it-it/it-it.messages.json +9 -0
  69. package/locales/ja-jp/ja-jp.messages.json +9 -0
  70. package/locales/ko-kr/ko-kr.messages.json +9 -0
  71. package/locales/pl-pl/pl-pl.messages.json +9 -0
  72. package/locales/pt-br/pt-br.messages.json +9 -0
  73. package/locales/ru-ru/ru-ru.messages.json +9 -0
  74. package/locales/tr-tr/tr-tr.messages.json +9 -0
  75. package/locales/zh-cn/zh-cn.messages.json +9 -0
  76. package/locales/zh-tw/zh-tw.messages.json +9 -0
  77. package/multi-select-tree/package.json +4 -0
  78. package/package.json +9 -1
  79. package/types/nanahoshi-mona-ui-date-picker.d.ts +25 -1
  80. package/types/nanahoshi-mona-ui-date-range-picker.d.ts +26 -1
  81. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +34 -1
  82. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +33 -5
  83. package/types/nanahoshi-mona-ui-dropdown-tree.d.ts +414 -0
  84. package/types/nanahoshi-mona-ui-dropdowns.d.ts +218 -9
  85. package/types/nanahoshi-mona-ui-i18n.d.ts +12 -0
  86. package/types/nanahoshi-mona-ui-internal-tree.d.ts +36 -0
  87. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +9 -0
  88. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +9 -0
  89. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +9 -0
  90. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +9 -0
  91. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +9 -0
  92. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +9 -0
  93. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +9 -0
  94. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +9 -0
  95. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +9 -0
  96. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +9 -0
  97. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +9 -0
  98. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +9 -0
  99. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +9 -0
  100. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +9 -0
  101. package/types/nanahoshi-mona-ui-multi-select-tree.d.ts +456 -0
  102. package/types/nanahoshi-mona-ui-multi-select.d.ts +43 -7
  103. package/types/nanahoshi-mona-ui-time-picker.d.ts +29 -2
@@ -210,7 +210,11 @@
210
210
  "dropdownList": {
211
211
  "clear": "Temizle"
212
212
  },
213
+ "dropdownTree": {
214
+ "clear": "Temizle"
215
+ },
213
216
  "dropdowns": {
217
+ "close": "Kapat",
214
218
  "itemPosition": "{text}, {total} öğeden {position}.",
215
219
  "noResultsFound": "Sonuç bulunamadı",
216
220
  "resultsAvailable": "{count} sonuç bulundu"
@@ -475,6 +479,11 @@
475
479
  "removeMoreItems": "Diğer {count} öğeyi kaldır",
476
480
  "selectAll": "Tümünü seç"
477
481
  },
482
+ "multiSelectTree": {
483
+ "clear": "Temizle",
484
+ "itemsCount": "+ {count} öğe",
485
+ "removeMoreItems": "Diğer {count} öğeyi kaldır"
486
+ },
478
487
  "notification": {
479
488
  "close": "Kapat",
480
489
  "error": "Hata",
@@ -210,7 +210,11 @@
210
210
  "dropdownList": {
211
211
  "clear": "清除"
212
212
  },
213
+ "dropdownTree": {
214
+ "clear": "清除"
215
+ },
213
216
  "dropdowns": {
217
+ "close": "关闭",
214
218
  "itemPosition": "{text},第 {position} 项(共 {total} 项)",
215
219
  "noResultsFound": "未找到结果",
216
220
  "resultsAvailable": "有 {count} 条可用结果"
@@ -475,6 +479,11 @@
475
479
  "removeMoreItems": "删除其余 {count} 项",
476
480
  "selectAll": "全选"
477
481
  },
482
+ "multiSelectTree": {
483
+ "clear": "清除",
484
+ "itemsCount": "+ {count} 项",
485
+ "removeMoreItems": "删除其余 {count} 项"
486
+ },
478
487
  "notification": {
479
488
  "close": "关闭",
480
489
  "error": "错误",
@@ -210,7 +210,11 @@
210
210
  "dropdownList": {
211
211
  "clear": "清除"
212
212
  },
213
+ "dropdownTree": {
214
+ "clear": "清除"
215
+ },
213
216
  "dropdowns": {
217
+ "close": "關閉",
214
218
  "itemPosition": "{text},第 {position} 項(共 {total} 項)",
215
219
  "noResultsFound": "找不到結果",
216
220
  "resultsAvailable": "有 {count} 個可用結果"
@@ -475,6 +479,11 @@
475
479
  "removeMoreItems": "移除其餘 {count} 項",
476
480
  "selectAll": "全選"
477
481
  },
482
+ "multiSelectTree": {
483
+ "clear": "清除",
484
+ "itemsCount": "+ {count} 項",
485
+ "removeMoreItems": "移除其餘 {count} 項"
486
+ },
478
487
  "notification": {
479
488
  "close": "關閉",
480
489
  "error": "錯誤",
@@ -0,0 +1,4 @@
1
+ {
2
+ "module": "../fesm2022/nanahoshi-mona-ui-multi-select-tree.mjs",
3
+ "typings": "../types/nanahoshi-mona-ui-multi-select-tree.d.ts"
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanahoshi/mona-ui",
3
- "version": "0.37.0",
3
+ "version": "0.39.0",
4
4
  "description": "A very light Angular UI framework",
5
5
  "author": "Nanahoshi",
6
6
  "repository": {
@@ -130,6 +130,10 @@
130
130
  "types": "./types/nanahoshi-mona-ui-dropdown-list.d.ts",
131
131
  "default": "./fesm2022/nanahoshi-mona-ui-dropdown-list.mjs"
132
132
  },
133
+ "./dropdown-tree": {
134
+ "types": "./types/nanahoshi-mona-ui-dropdown-tree.d.ts",
135
+ "default": "./fesm2022/nanahoshi-mona-ui-dropdown-tree.mjs"
136
+ },
133
137
  "./dropdowns": {
134
138
  "types": "./types/nanahoshi-mona-ui-dropdowns.d.ts",
135
139
  "default": "./fesm2022/nanahoshi-mona-ui-dropdowns.mjs"
@@ -286,6 +290,10 @@
286
290
  "types": "./types/nanahoshi-mona-ui-multi-select.d.ts",
287
291
  "default": "./fesm2022/nanahoshi-mona-ui-multi-select.mjs"
288
292
  },
293
+ "./multi-select-tree": {
294
+ "types": "./types/nanahoshi-mona-ui-multi-select-tree.d.ts",
295
+ "default": "./fesm2022/nanahoshi-mona-ui-multi-select-tree.mjs"
296
+ },
289
297
  "./notification": {
290
298
  "types": "./types/nanahoshi-mona-ui-notification.d.ts",
291
299
  "default": "./fesm2022/nanahoshi-mona-ui-notification.mjs"
@@ -5,7 +5,7 @@ import { CalendarDecadeCellTemplateDirective, CalendarMonthCellTemplateDirective
5
5
  import { PreventableEvent } from "@nanahoshi/mona-ui/common";
6
6
  import { DateDisabledType, DatePopupVariantInput, TypedDateInput } from "@nanahoshi/mona-ui/date-input";
7
7
  import * as i1 from "@nanahoshi/mona-ui/dropdowns";
8
- import { DropdownPopupInput } from "@nanahoshi/mona-ui/dropdowns";
8
+ import { AdaptiveMode, DropdownPopupInput } from "@nanahoshi/mona-ui/dropdowns";
9
9
  import { AttributeConfig, VariantInputs } from "@nanahoshi/mona-ui/internal";
10
10
  import { ListSizeInputType } from "@nanahoshi/mona-ui/internal/list";
11
11
  import { PopupCloseEvent } from "@nanahoshi/mona-ui/popup";
@@ -37,9 +37,23 @@ export declare class DatePickerComponent implements FormValueControl<Date | null
37
37
  protected readonly popupId: string;
38
38
  protected readonly popupTemplate: import("@angular/core").Signal<TemplateRef<unknown>>;
39
39
  protected readonly prefixTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
40
+ /** Whether the popup is open as a bottom sheet, which the popup fills. */
41
+ protected readonly sheet: import("@angular/core").Signal<boolean>;
40
42
  /** Set in the constructor, which runs after the `value` model it writes to exists. */
41
43
  protected readonly typedInput: TypedDateInput;
42
44
  protected readonly yearCellTemplate: import("@angular/core").Signal<CalendarYearCellTemplateDirective | undefined>;
45
+ /**
46
+ * @description Opens the popup as a sheet along the bottom of the screen on a small screen (narrower than 640
47
+ * pixels) with `"auto"`, so it's easy to reach with a thumb. With `"none"`, it always opens under the field.
48
+ * @default "none"
49
+ */
50
+ readonly adaptiveMode: import("@angular/core").InputSignal<AdaptiveMode>;
51
+ /**
52
+ * @description Title of the bottom sheet the popup opens as with `adaptiveMode="auto"`. When empty, the sheet
53
+ * shows the field's name.
54
+ * @default ""
55
+ */
56
+ readonly adaptiveTitle: import("@angular/core").InputSignal<string>;
43
57
  /**
44
58
  * @description Id of an element that describes the input, such as a hint or an error message.
45
59
  * @default ""
@@ -204,6 +218,16 @@ export declare class DatePickerComponent implements FormValueControl<Date | null
204
218
  private setPopupCloseSubscription;
205
219
  static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
206
220
  static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "mona-date-picker", never, {
221
+ "adaptiveMode": {
222
+ "alias": "adaptiveMode";
223
+ "required": false;
224
+ "isSignal": true;
225
+ };
226
+ "adaptiveTitle": {
227
+ "alias": "adaptiveTitle";
228
+ "required": false;
229
+ "isSignal": true;
230
+ };
207
231
  "ariaDescribedBy": {
208
232
  "alias": "aria-describedby";
209
233
  "required": false;
@@ -5,7 +5,7 @@ import { CalendarDecadeCellTemplateDirective, CalendarMonthCellTemplateDirective
5
5
  import { PreventableEvent } from "@nanahoshi/mona-ui/common";
6
6
  import { DateDisabledType, DatePopupVariantInput } from "@nanahoshi/mona-ui/date-input";
7
7
  import * as i1 from "@nanahoshi/mona-ui/dropdowns";
8
- import { DropdownPopupInput } from "@nanahoshi/mona-ui/dropdowns";
8
+ import { AdaptiveMode, DropdownPopupInput } from "@nanahoshi/mona-ui/dropdowns";
9
9
  import { AttributeConfig, VariantInputs } from "@nanahoshi/mona-ui/internal";
10
10
  import { ListSizeInputType } from "@nanahoshi/mona-ui/internal/list";
11
11
  import { PopupCloseEvent } from "@nanahoshi/mona-ui/popup";
@@ -117,10 +117,13 @@ export declare class DateRangePickerComponent implements FormValueControl<DateRa
117
117
  protected readonly pickerPopupClass: import("@angular/core").Signal<string>;
118
118
  protected readonly popupId: string;
119
119
  protected readonly popupTemplate: import("@angular/core").Signal<TemplateRef<unknown>>;
120
+ /** A quick range: as tall as a row of the calendar, and 44 pixels tall in a bottom sheet, for touch. */
120
121
  protected readonly presetClass: import("@angular/core").Signal<string>;
121
122
  protected readonly presetItems: import("@angular/core").Signal<readonly DateRangePresetItem[]>;
122
123
  protected readonly presetListClass: string;
123
124
  protected readonly separatorClass: string;
125
+ /** Whether the popup is open as a bottom sheet, which the popup fills. */
126
+ protected readonly sheet: import("@angular/core").Signal<boolean>;
124
127
  protected readonly sizerClass: import("@angular/core").Signal<string>;
125
128
  protected readonly startInputId: string;
126
129
  protected readonly startInvalid: import("@angular/core").Signal<boolean>;
@@ -128,6 +131,18 @@ export declare class DateRangePickerComponent implements FormValueControl<DateRa
128
131
  /** Set in the constructor, which runs after the `value` model it writes to exists. */
129
132
  protected readonly typedInput: TypedDateRangeInput;
130
133
  protected readonly yearCellTemplate: import("@angular/core").Signal<CalendarYearCellTemplateDirective | undefined>;
134
+ /**
135
+ * @description Opens the popup as a sheet along the bottom of the screen on a small screen (narrower than 640
136
+ * pixels) with `"auto"`, so it's easy to reach with a thumb. With `"none"`, it always opens under the field.
137
+ * @default "none"
138
+ */
139
+ readonly adaptiveMode: import("@angular/core").InputSignal<AdaptiveMode>;
140
+ /**
141
+ * @description Title of the bottom sheet the popup opens as with `adaptiveMode="auto"`. When empty, the sheet
142
+ * shows the field's name.
143
+ * @default ""
144
+ */
145
+ readonly adaptiveTitle: import("@angular/core").InputSignal<string>;
131
146
  /**
132
147
  * @description Id of an element that describes the range, such as a hint or an error message. It describes both
133
148
  * inputs.
@@ -310,6 +325,16 @@ export declare class DateRangePickerComponent implements FormValueControl<DateRa
310
325
  private setPopupCloseSubscription;
311
326
  static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
312
327
  static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "mona-date-range-picker", never, {
328
+ "adaptiveMode": {
329
+ "alias": "adaptiveMode";
330
+ "required": false;
331
+ "isSignal": true;
332
+ };
333
+ "adaptiveTitle": {
334
+ "alias": "adaptiveTitle";
335
+ "required": false;
336
+ "isSignal": true;
337
+ };
313
338
  "ariaDescribedBy": {
314
339
  "alias": "aria-describedby";
315
340
  "required": false;
@@ -5,7 +5,7 @@ import { CalendarDecadeCellTemplateDirective, CalendarMonthCellTemplateDirective
5
5
  import { PreventableEvent } from "@nanahoshi/mona-ui/common";
6
6
  import { DateDisabledType, HourFormat, TypedDateInput } from "@nanahoshi/mona-ui/date-input";
7
7
  import * as i1 from "@nanahoshi/mona-ui/dropdowns";
8
- import { DropdownPopupInput } from "@nanahoshi/mona-ui/dropdowns";
8
+ import { AdaptiveMode, DropdownPopupInput } from "@nanahoshi/mona-ui/dropdowns";
9
9
  import { AttributeConfig, VariantInputs } from "@nanahoshi/mona-ui/internal";
10
10
  import { ListSizeInputType } from "@nanahoshi/mona-ui/internal/list";
11
11
  import { PopupCloseEvent } from "@nanahoshi/mona-ui/popup";
@@ -34,17 +34,39 @@ export declare class DateTimePickerComponent implements FormValueControl<Date |
34
34
  protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaDateTimePickerMessages>;
35
35
  protected readonly monthCellTemplate: import("@angular/core").Signal<CalendarMonthCellTemplateDirective | undefined>;
36
36
  protected readonly navigatedDate: import("@angular/core").WritableSignal<Date>;
37
+ /**
38
+ * In a bottom sheet, the panel keeps the height the date view opened with: the sheet doesn't shrink on the time tab
39
+ * and move the tabs from under the finger, and the time selector, which sizes its lists from its own height, gets
40
+ * one. `null` under the field, where the popup has a fixed height.
41
+ */
42
+ protected readonly panelHeight: import("@angular/core").WritableSignal<number | null>;
37
43
  protected readonly panelId: string;
38
44
  protected readonly pickerPopupClass: import("@angular/core").Signal<string>;
39
45
  protected readonly popupId: string;
40
46
  protected readonly popupTemplate: import("@angular/core").Signal<TemplateRef<unknown>>;
41
47
  protected readonly prefixTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
48
+ /** Whether the popup is open as a bottom sheet, which the popup fills. */
49
+ protected readonly sheet: import("@angular/core").Signal<boolean>;
42
50
  protected readonly timePickerMax: import("@angular/core").Signal<Date | null>;
43
51
  protected readonly timePickerMin: import("@angular/core").Signal<Date | null>;
52
+ /** The time selector's size: large in a bottom sheet, for touch. */
53
+ protected readonly timeSelectorSize: import("@angular/core").Signal<"large" | "medium" | "small" | null | undefined>;
44
54
  protected readonly timeTabId: string;
45
55
  /** Set in the constructor, which runs after the `value` model it writes to exists. */
46
56
  protected readonly typedInput: TypedDateInput;
47
57
  protected readonly yearCellTemplate: import("@angular/core").Signal<CalendarYearCellTemplateDirective | undefined>;
58
+ /**
59
+ * @description Opens the popup as a sheet along the bottom of the screen on a small screen (narrower than 640
60
+ * pixels) with `"auto"`, so it's easy to reach with a thumb. With `"none"`, it always opens under the field.
61
+ * @default "none"
62
+ */
63
+ readonly adaptiveMode: import("@angular/core").InputSignal<AdaptiveMode>;
64
+ /**
65
+ * @description Title of the bottom sheet the popup opens as with `adaptiveMode="auto"`. When empty, the sheet
66
+ * shows the field's name.
67
+ * @default ""
68
+ */
69
+ readonly adaptiveTitle: import("@angular/core").InputSignal<string>;
48
70
  /**
49
71
  * @description Id of an element that describes the input, such as a hint or an error message.
50
72
  * @default ""
@@ -241,11 +263,22 @@ export declare class DateTimePickerComponent implements FormValueControl<Date |
241
263
  private openPopup;
242
264
  private setPopupCloseSubscription;
243
265
  private setPopupKeyboardSubscription;
266
+ private setPopupOpenSubscription;
244
267
  /** Where the popup starts without a value: now, moved into the min and max range so Set can't leave it. */
245
268
  private startDate;
246
269
  private updateDateIfNotInRange;
247
270
  static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
248
271
  static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "mona-datetime-picker", never, {
272
+ "adaptiveMode": {
273
+ "alias": "adaptiveMode";
274
+ "required": false;
275
+ "isSignal": true;
276
+ };
277
+ "adaptiveTitle": {
278
+ "alias": "adaptiveTitle";
279
+ "required": false;
280
+ "isSignal": true;
281
+ };
249
282
  "ariaDescribedBy": {
250
283
  "alias": "aria-describedby";
251
284
  "required": false;
@@ -3,13 +3,14 @@ import { TemplateRef } from "@angular/core";
3
3
  import { FormValueControl } from "@angular/forms/signals";
4
4
  import { PreventableEvent } from "@nanahoshi/mona-ui/common";
5
5
  import * as i1 from "@nanahoshi/mona-ui/dropdowns";
6
- import { DropdownDataInput, DropdownFieldPredicateType, DropdownFieldSelectorType, DropdownPopupInput } from "@nanahoshi/mona-ui/dropdowns";
6
+ import { AdaptiveMode, DropdownDataInput, DropdownFieldPredicateType, DropdownFieldSelectorType, DropdownPopupInput } from "@nanahoshi/mona-ui/dropdowns";
7
7
  import { ListSizeInputType, SelectableOptions, SelectionChangeEvent } from "@nanahoshi/mona-ui/internal/list";
8
8
  import { PopupCloseEvent } from "@nanahoshi/mona-ui/popup";
9
9
  import { VariantInputs } from "@nanahoshi/mona-ui/internal";
10
10
  import { VariantProps } from "class-variance-authority";
11
11
  import { MonaDropdownListMessages } from "@nanahoshi/mona-ui/i18n";
12
- declare const dropdownListInputThemeVariants: (props?: ({
12
+ /** @hidden Shared with the dropdown tree, which looks the same. */
13
+ export declare const dropdownListInputThemeVariants: (props?: ({
13
14
  disabled?: boolean | null | undefined;
14
15
  expanded?: boolean | null | undefined;
15
16
  hasPrefix?: boolean | null | undefined;
@@ -17,10 +18,12 @@ declare const dropdownListInputThemeVariants: (props?: ({
17
18
  rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
18
19
  size?: "small" | "medium" | "large" | null | undefined;
19
20
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
20
- declare const dropdownListValueContainerThemeVariants: (props?: ({
21
+ /** @hidden Shared with the dropdown tree, which looks the same. */
22
+ export declare const dropdownListValueContainerThemeVariants: (props?: ({
21
23
  hasTemplate?: boolean | null | undefined;
22
24
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
23
- declare const dropdownListAffixContainerThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
25
+ /** @hidden Shared with the dropdown tree, which looks the same. */
26
+ export declare const dropdownListAffixContainerThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
24
27
  type DropdownListInputVariantProps = VariantProps<typeof dropdownListInputThemeVariants>;
25
28
  type DropdownListInputVariantInput = VariantInputs<DropdownListInputVariantProps>;
26
29
  type DropdownListAffixContainerVariantProps = VariantProps<typeof dropdownListAffixContainerThemeVariants>;
@@ -48,6 +51,8 @@ export declare class DropdownListComponent<TData = unknown, TValue = TData> impl
48
51
  protected readonly labelledBy: import("@angular/core").Signal<string | null>;
49
52
  protected readonly listId: string;
50
53
  protected readonly listPopupClass: import("@angular/core").Signal<string>;
54
+ /** The list's size: large in a bottom sheet, for touch. */
55
+ protected readonly listSize: import("@angular/core").Signal<"small" | "medium" | "large" | null | undefined>;
51
56
  protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaDropdownListMessages>;
52
57
  protected readonly noDataTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
53
58
  protected readonly popupTemplate: import("@angular/core").Signal<TemplateRef<unknown>>;
@@ -55,9 +60,22 @@ export declare class DropdownListComponent<TData = unknown, TValue = TData> impl
55
60
  protected readonly selectableOptions: SelectableOptions;
56
61
  protected readonly selectedDataItem: import("@angular/core").Signal<NonNullable<TData> | null>;
57
62
  protected readonly selectedListItem: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/list").ListItem<TData> | null>;
63
+ protected readonly sheet: import("@angular/core").Signal<boolean>;
58
64
  protected readonly valueContainerClass: import("@angular/core").Signal<string>;
59
65
  protected readonly valueTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
60
66
  protected readonly valueText: import("@angular/core").Signal<string>;
67
+ /**
68
+ * @description Opens the popup as a sheet along the bottom of the screen on a small screen (narrower than 640
69
+ * pixels) with `"auto"`, so it's easy to reach with a thumb. With `"none"`, it always opens under the field.
70
+ * @default "none"
71
+ */
72
+ readonly adaptiveMode: import("@angular/core").InputSignal<AdaptiveMode>;
73
+ /**
74
+ * @description Title of the bottom sheet the popup opens as with `adaptiveMode="auto"`. When empty, the sheet
75
+ * shows the field's name.
76
+ * @default ""
77
+ */
78
+ readonly adaptiveTitle: import("@angular/core").InputSignal<string>;
61
79
  /**
62
80
  * @description ID of an element that describes the dropdown list, such as help text or an error message.
63
81
  * @default ""
@@ -239,6 +257,16 @@ export declare class DropdownListComponent<TData = unknown, TValue = TData> impl
239
257
  private updateValue;
240
258
  static ɵfac: i0.ɵɵFactoryDeclaration<DropdownListComponent<any, any>, never>;
241
259
  static ɵcmp: i0.ɵɵComponentDeclaration<DropdownListComponent<any, any>, "mona-dropdown-list", never, {
260
+ "adaptiveMode": {
261
+ "alias": "adaptiveMode";
262
+ "required": false;
263
+ "isSignal": true;
264
+ };
265
+ "adaptiveTitle": {
266
+ "alias": "adaptiveTitle";
267
+ "required": false;
268
+ "isSignal": true;
269
+ };
242
270
  "ariaDescribedBy": {
243
271
  "alias": "aria-describedby";
244
272
  "required": false;
@@ -380,4 +408,4 @@ export declare class DropdownListValueTemplateDirective {
380
408
  static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownListValueTemplateDirective, "ng-template[monaDropDownListValueTemplate]", never, {}, {}, never, never, true, never>;
381
409
  }
382
410
  export declare const DROPDOWN_LIST_DEFAULT_MESSAGES: MonaDropdownListMessages;
383
- export type { DropDownListVariantProps };
411
+ export type { DropDownListVariantInput, DropDownListVariantProps };