@nanahoshi/mona-ui 0.41.0 → 0.42.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 (65) hide show
  1. package/docs/api/auto-complete.md +2 -0
  2. package/docs/api/combo-box.md +2 -0
  3. package/docs/api/dropdowns.md +3 -1
  4. package/docs/api/i18n.md +20 -0
  5. package/docs/api/locales.md +14 -14
  6. package/docs/api/sparkline.md +85 -0
  7. package/docs/auto-complete.md +64 -0
  8. package/docs/combo-box.md +65 -0
  9. package/docs/sparkline.md +303 -0
  10. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +95 -30
  11. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +58 -5
  12. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +64 -29
  13. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +39 -0
  14. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +5 -0
  15. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +5 -0
  16. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +5 -0
  17. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +5 -0
  18. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +5 -0
  19. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +5 -0
  20. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +5 -0
  21. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +5 -0
  22. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +25 -0
  23. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +5 -0
  24. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +25 -0
  25. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +5 -0
  26. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +5 -0
  27. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +5 -0
  28. package/fesm2022/nanahoshi-mona-ui-sparkline.mjs +573 -0
  29. package/i18n/catalogs/en-US.messages.json +5 -0
  30. package/llms.txt +3 -1
  31. package/locales/ar-sa/ar-sa.messages.json +5 -0
  32. package/locales/de-de/de-de.messages.json +5 -0
  33. package/locales/es-es/es-es.messages.json +5 -0
  34. package/locales/fr-fr/fr-fr.messages.json +5 -0
  35. package/locales/id-id/id-id.messages.json +5 -0
  36. package/locales/it-it/it-it.messages.json +5 -0
  37. package/locales/ja-jp/ja-jp.messages.json +5 -0
  38. package/locales/ko-kr/ko-kr.messages.json +5 -0
  39. package/locales/pl-pl/pl-pl.messages.json +5 -0
  40. package/locales/pt-br/pt-br.messages.json +5 -0
  41. package/locales/ru-ru/ru-ru.messages.json +5 -0
  42. package/locales/tr-tr/tr-tr.messages.json +5 -0
  43. package/locales/zh-cn/zh-cn.messages.json +5 -0
  44. package/locales/zh-tw/zh-tw.messages.json +5 -0
  45. package/package.json +5 -1
  46. package/sparkline/package.json +4 -0
  47. package/types/nanahoshi-mona-ui-auto-complete.d.ts +42 -1
  48. package/types/nanahoshi-mona-ui-combo-box.d.ts +37 -1
  49. package/types/nanahoshi-mona-ui-dropdowns.d.ts +54 -4
  50. package/types/nanahoshi-mona-ui-i18n.d.ts +12 -0
  51. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +5 -0
  52. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +5 -0
  53. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +5 -0
  54. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +5 -0
  55. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +5 -0
  56. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +5 -0
  57. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +5 -0
  58. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +5 -0
  59. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +5 -0
  60. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +5 -0
  61. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +5 -0
  62. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +5 -0
  63. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +5 -0
  64. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +5 -0
  65. package/types/nanahoshi-mona-ui-sparkline.d.ts +228 -0
@@ -16,6 +16,8 @@ Component.
16
16
 
17
17
  | Name | Type | Default | Description |
18
18
  | --- | --- | --- | --- |
19
+ | `adaptiveMode` | `AdaptiveMode` | `"none"` | Opens the popup as a sheet along the bottom of the screen on a small screen (narrower than 640 pixels), with a text box of its own at the top, where the typing happens. A press on the field opens the sheet, and the field raises no on-screen keyboard. `"none"` always opens the popup under the field. |
20
+ | `adaptiveTitle` | `string` | `""` | Title of the bottom sheet the popup opens as with `adaptiveMode="auto"`, which also names the sheet's text box. When empty, the sheet shows the autocomplete's name, from its label or `aria-label`. |
19
21
  | `aria-describedby` | `string` | `""` | ID of an element that provides an extended description for the input. Use this to associate error messages or help text with the input. |
20
22
  | `aria-label` | `string` | `""` | Accessible name for the input. Describe what the autocomplete represents. Prefer a visible label, linked through `inputId` or `aria-labelledby`; without any of them, browsers fall back to the `placeholder`. |
21
23
  | `aria-labelledby` | `string` | `""` | ID of an external element that provides the accessible name for the input. |
@@ -16,6 +16,8 @@ Component.
16
16
 
17
17
  | Name | Type | Default | Description |
18
18
  | --- | --- | --- | --- |
19
+ | `adaptiveMode` | `AdaptiveMode` | `"none"` | Opens the popup as a sheet along the bottom of the screen on a small screen (narrower than 640 pixels), with a text box of its own at the top, where the typing happens. A press on the field opens the sheet, and the field raises no on-screen keyboard. `"none"` always opens the popup under the field. |
20
+ | `adaptiveTitle` | `string` | `""` | Title of the bottom sheet the popup opens as with `adaptiveMode="auto"`, which also names the sheet's text box. When empty, the sheet shows the combo box's name, from its label or `aria-label`. |
19
21
  | `allowCustomValue` | `boolean` | `false` | Allows a custom value to be committed when it doesn't match any item in `data`. |
20
22
  | `aria-describedby` | `string` | `""` | ID of an element that provides an extended description for the input. |
21
23
  | `aria-label` | `string` | `""` | Accessible name for the input. Describe what the combo box represents. Prefer a visible label, linked through `inputId` or `aria-labelledby`; without any of them, browsers fall back to the `placeholder`. |
@@ -162,7 +162,9 @@ What a dropdown passes to the bottom sheet its popup opens as.
162
162
  | Name | Type | Description |
163
163
  | --- | --- | --- |
164
164
  | `content` (read-only) | `TemplateRef<unknown>` | The dropdown's popup template, shown below the sheet's header. |
165
+ | `fillHeight` (read-only) | `boolean` | Whether the sheet takes its full height however short its content is. |
165
166
  | `title` (read-only) | `Signal<string>` | The sheet's title: the dropdown's `adaptiveTitle`, or else its name. |
167
+ | `titleId` (read-only) | `string` | The id of the title's element, which names a text box in the sheet. |
166
168
 
167
169
  ## `AdaptiveMode`
168
170
 
@@ -175,7 +177,7 @@ the screen is narrower than 640 pixels, and `"none"` always opens it under the f
175
177
  type AdaptiveMode = "auto" | "none";
176
178
  ```
177
179
 
178
- **Used by:** [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`DropdownTreeComponent`](dropdown-tree.md#dropdowntreecomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`MultiSelectTreeComponent`](multi-select-tree.md#multiselecttreecomponent), [`TimePickerComponent`](time-picker.md#timepickercomponent)
180
+ **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), [`DropdownTreeComponent`](dropdown-tree.md#dropdowntreecomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`MultiSelectTreeComponent`](multi-select-tree.md#multiselecttreecomponent), [`TimePickerComponent`](time-picker.md#timepickercomponent)
179
181
 
180
182
  ## `DropdownFieldPredicateType`
181
183
 
package/docs/api/i18n.md CHANGED
@@ -680,6 +680,25 @@ Interface.
680
680
 
681
681
  **Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages), [`SORTABLE_DEFAULT_MESSAGES`](sortable.md#sortable-default-messages)
682
682
 
683
+ ## `MonaSparklineMessages`
684
+
685
+ Interface.
686
+
687
+ ### Properties
688
+
689
+ | Name | Type | Description |
690
+ | --- | --- | --- |
691
+ | `noData` (read-only) | `string` | Read in place of a summary when a sparkline has no values. |
692
+
693
+ ### Methods
694
+
695
+ | Signature | Description |
696
+ | --- | --- |
697
+ | `summary(count: number, first: string, last: string, min: string, max: string): string` | Summarizes a sparkline's values, formatted already: how many there are, the first, the last, the lowest and the highest ("12 values, first 6, last 15, lowest 4, highest 18"). |
698
+ | `winLossSummary(wins: number, losses: number, draws: number): string` | Summarizes a win-loss sparkline: how many wins, losses and draws it shows ("7 wins, 3 losses, 1 draw"). |
699
+
700
+ **Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages), [`SPARKLINE_DEFAULT_MESSAGES`](sparkline.md#sparkline-default-messages)
701
+
683
702
  ## `MonaAlertMessages`
684
703
 
685
704
  Interface.
@@ -1398,6 +1417,7 @@ Interface.
1398
1417
  | `sidebar` | `MonaSidebarMessages` |
1399
1418
  | `slider` | `MonaSliderMessages` |
1400
1419
  | `sortable` | `MonaSortableMessages` |
1420
+ | `sparkline` | `MonaSparklineMessages` |
1401
1421
  | `spinner` | `MonaSpinnerMessages` |
1402
1422
  | `splitButton` | `MonaSplitButtonMessages` |
1403
1423
  | `splitter` | `MonaSplitterMessages` |