@nanahoshi/mona-ui 0.30.0 → 0.31.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 (109) hide show
  1. package/docs/api/button-group.md +1 -0
  2. package/docs/api/color-gradient.md +1 -0
  3. package/docs/api/color-palette.md +1 -0
  4. package/docs/api/color-picker.md +1 -0
  5. package/docs/api/form-field.md +88 -0
  6. package/docs/api/i18n.md +31 -0
  7. package/docs/api/locales.md +14 -14
  8. package/docs/api/segmented.md +1 -0
  9. package/docs/api/switch.md +1 -0
  10. package/docs/dropdown-list.md +1 -1
  11. package/docs/form-field.md +425 -0
  12. package/docs/forms.md +12 -4
  13. package/docs/label.md +4 -5
  14. package/docs/numeric-textbox.md +1 -1
  15. package/docs/radio-button.md +2 -1
  16. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +15 -4
  17. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +25 -1
  18. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +5 -2
  19. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +29 -3
  20. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +25 -1
  21. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +31 -3
  22. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +15 -4
  23. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +15 -4
  24. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +15 -4
  25. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +19 -7
  26. package/fesm2022/nanahoshi-mona-ui-editor.mjs +24 -4
  27. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -0
  28. package/fesm2022/nanahoshi-mona-ui-form-field.mjs +666 -0
  29. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +31 -0
  30. package/fesm2022/nanahoshi-mona-ui-internal.mjs +27 -2
  31. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +27 -0
  32. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +13 -0
  33. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +19 -0
  34. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +19 -0
  35. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +13 -0
  36. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +19 -0
  37. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +13 -0
  38. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +13 -0
  39. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +23 -0
  40. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +19 -0
  41. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +23 -0
  42. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +13 -0
  43. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +13 -0
  44. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +13 -0
  45. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +19 -7
  46. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +14 -5
  47. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +6 -3
  48. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +15 -9
  49. package/fesm2022/nanahoshi-mona-ui-rating.mjs +6 -3
  50. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +25 -1
  51. package/fesm2022/nanahoshi-mona-ui-slider.mjs +8 -5
  52. package/fesm2022/nanahoshi-mona-ui-switch.mjs +25 -1
  53. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +6 -3
  54. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +15 -4
  55. package/form-field/package.json +4 -0
  56. package/i18n/catalogs/en-US.messages.json +13 -0
  57. package/llms.txt +3 -1
  58. package/locales/ar-sa/ar-sa.messages.json +13 -0
  59. package/locales/de-de/de-de.messages.json +13 -0
  60. package/locales/es-es/es-es.messages.json +13 -0
  61. package/locales/fr-fr/fr-fr.messages.json +13 -0
  62. package/locales/id-id/id-id.messages.json +13 -0
  63. package/locales/it-it/it-it.messages.json +13 -0
  64. package/locales/ja-jp/ja-jp.messages.json +13 -0
  65. package/locales/ko-kr/ko-kr.messages.json +13 -0
  66. package/locales/pl-pl/pl-pl.messages.json +13 -0
  67. package/locales/pt-br/pt-br.messages.json +13 -0
  68. package/locales/ru-ru/ru-ru.messages.json +13 -0
  69. package/locales/tr-tr/tr-tr.messages.json +13 -0
  70. package/locales/zh-cn/zh-cn.messages.json +13 -0
  71. package/locales/zh-tw/zh-tw.messages.json +13 -0
  72. package/package.json +5 -1
  73. package/types/nanahoshi-mona-ui-auto-complete.d.ts +2 -0
  74. package/types/nanahoshi-mona-ui-button-group.d.ts +11 -0
  75. package/types/nanahoshi-mona-ui-check-box.d.ts +1 -0
  76. package/types/nanahoshi-mona-ui-color-gradient.d.ts +11 -0
  77. package/types/nanahoshi-mona-ui-color-palette.d.ts +11 -0
  78. package/types/nanahoshi-mona-ui-color-picker.d.ts +11 -0
  79. package/types/nanahoshi-mona-ui-combo-box.d.ts +2 -0
  80. package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -0
  81. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -0
  82. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +2 -0
  83. package/types/nanahoshi-mona-ui-form-field.d.ts +173 -0
  84. package/types/nanahoshi-mona-ui-i18n.d.ts +29 -0
  85. package/types/nanahoshi-mona-ui-internal.d.ts +39 -4
  86. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +13 -0
  87. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +13 -0
  88. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +13 -0
  89. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +13 -0
  90. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +13 -0
  91. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +13 -0
  92. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +13 -0
  93. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +13 -0
  94. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +13 -0
  95. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +13 -0
  96. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +13 -0
  97. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +13 -0
  98. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +13 -0
  99. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +13 -0
  100. package/types/nanahoshi-mona-ui-multi-select.d.ts +2 -0
  101. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +2 -0
  102. package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
  103. package/types/nanahoshi-mona-ui-radio-button.d.ts +2 -0
  104. package/types/nanahoshi-mona-ui-rating.d.ts +1 -0
  105. package/types/nanahoshi-mona-ui-segmented.d.ts +11 -0
  106. package/types/nanahoshi-mona-ui-slider.d.ts +1 -0
  107. package/types/nanahoshi-mona-ui-switch.d.ts +11 -0
  108. package/types/nanahoshi-mona-ui-text-box.d.ts +1 -0
  109. package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -0
@@ -8,7 +8,7 @@ import { createTypedDateInput, getLocaleHourFormat } from "@nanahoshi/mona-ui/da
8
8
  import * as i1 from "@nanahoshi/mona-ui/dropdowns";
9
9
  import { DROPDOWN_POPUP_INPUT_TOKEN, DropdownPopupHandlerDirective, DropdownService, dropdownPopupThemeVariants } from "@nanahoshi/mona-ui/dropdowns";
10
10
  import { MonaI18nService, getLocaleTimeInputFormat } from "@nanahoshi/mona-ui/i18n";
11
- import { createElementControlId, injectEffectiveDisabled, themeControlSurfaceClasses } from "@nanahoshi/mona-ui/internal";
11
+ import { FIELD_ASSOCIATION_BOUNDARY, createElementControlId, injectEffectiveDisabled, injectLabelAssociation, themeControlSurfaceClasses } from "@nanahoshi/mona-ui/internal";
12
12
  import { TextBoxComponent, TextBoxSuffixTemplateDirective } from "@nanahoshi/mona-ui/text-box";
13
13
  import { TimeSelectorComponent } from "@nanahoshi/mona-ui/time-selector";
14
14
  import { twMerge } from "tailwind-merge";
@@ -73,11 +73,18 @@ var TimePickerComponent = class TimePickerComponent {
73
73
  #dropdownService;
74
74
  #hostElementRef;
75
75
  #i18n;
76
+ #label;
76
77
  constructor() {
77
78
  this.#destroyRef = inject(DestroyRef);
78
79
  this.#dropdownService = inject(DropdownService);
79
80
  this.#hostElementRef = inject(ElementRef);
80
81
  this.#i18n = inject(MonaI18nService);
82
+ this.#label = injectLabelAssociation({
83
+ ariaDescribedBy: () => this.ariaDescribedBy(),
84
+ ariaLabel: () => this.ariaLabel(),
85
+ ariaLabelledBy: () => this.ariaLabelledBy(),
86
+ focus: () => this.focus()
87
+ });
81
88
  this.baseClass = computed(() => {
82
89
  const focused = this.#dropdownService.popupRef() != null;
83
90
  const rounded = this.rounded();
@@ -90,6 +97,7 @@ var TimePickerComponent = class TimePickerComponent {
90
97
  const userClass = this.userClass();
91
98
  return twMerge(variantClass, userClass);
92
99
  }, ...ngDevMode ? [{ debugName: "baseClass" }] : /* istanbul ignore next */ []);
100
+ this.describedBy = this.#label.describedBy;
93
101
  this.effectiveDisabled = injectEffectiveDisabled(() => this.disabled());
94
102
  this.effectiveFormat = computed(() => {
95
103
  return this.format() ?? getLocaleTimeInputFormat(this.#i18n.localeId(), {
@@ -110,6 +118,7 @@ var TimePickerComponent = class TimePickerComponent {
110
118
  };
111
119
  }, ...ngDevMode ? [{ debugName: "inputAttributes" }] : /* istanbul ignore next */ []);
112
120
  this.invalidState = computed(() => this.typedInput.errors().length > 0 || this.touched() && (this.invalid() || this.required() && !this.value()), ...ngDevMode ? [{ debugName: "invalidState" }] : /* istanbul ignore next */ []);
121
+ this.labelledBy = this.#label.labelledBy;
113
122
  this.messages = this.#i18n.componentMessages("timePicker", TIME_PICKER_DEFAULT_MESSAGES);
114
123
  this.pickerPopupClass = computed(() => {
115
124
  const rounded = this.rounded();
@@ -531,7 +540,7 @@ var TimePickerComponent = class TimePickerComponent {
531
540
  }],
532
541
  hostDirectives: [{ directive: i1.DropdownPopupHandlerDirective }],
533
542
  ngImport: i0,
534
- template: "<mona-text-box\n [aria-describedby]=\"ariaDescribedBy()\"\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [disabled]=\"effectiveDisabled()\"\n [inputId]=\"inputId()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [value]=\"typedInput.text()\"\n [inputAttributes]=\"inputAttributes()\"\n [invalid]=\"invalidState()\"\n [placeholder]=\"placeholder()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"invalidState() || touched()\"\n [clearButton]=\"showClearButton()\"\n (valueChange)=\"typedInput.edit($event)\"\n (inputBlur)=\"onInputBlur()\">\n <ng-template monaTextBoxSuffixTemplate>\n <button\n monaButton\n look=\"ghost\"\n [iconOnly]=\"true\"\n [size]=\"size()\"\n [rounded]=\"'none'\"\n (click)=\"onTimeInputButtonClick()\"\n class=\"aspect-square h-full w-auto\"\n [attr.aria-label]=\"messages().openTimePicker\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"popupId\"\n [disabled]=\"effectiveDisabled() || readonly()\"\n [tabindex]=\"-1\">\n <svg lucideClock [size]=\"16\" aria-hidden=\"true\"></svg>\n </button>\n </ng-template>\n</mona-text-box>\n\n<ng-template #timePopupTemplate>\n <div\n [class]=\"pickerPopupClass()\"\n [id]=\"popupId\"\n aria-modal=\"true\"\n role=\"dialog\"\n [attr.aria-label]=\"messages().timePicker\"\n cdkTrapFocus>\n <mona-time-selector\n focusOnMount\n [value]=\"value()\"\n (valueChange)=\"onTimeSelectorValueChange($event)\"\n [max]=\"max()\"\n [min]=\"min()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n [hourFormat]=\"effectiveHourFormat()\"\n [hourStep]=\"hourStep()\"\n [minuteStep]=\"minuteStep()\"\n [secondStep]=\"secondStep()\"\n [size]=\"size()\"\n [rounded]=\"rounded()\"\n [showSeconds]=\"showSeconds()\"></mona-time-selector>\n </div>\n</ng-template>\n",
543
+ template: "<mona-text-box\n [aria-describedby]=\"describedBy() ?? ''\"\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"labelledBy() ?? ''\"\n [disabled]=\"effectiveDisabled()\"\n [inputId]=\"inputId()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [value]=\"typedInput.text()\"\n [inputAttributes]=\"inputAttributes()\"\n [invalid]=\"invalidState()\"\n [placeholder]=\"placeholder()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"invalidState() || touched()\"\n [clearButton]=\"showClearButton()\"\n (valueChange)=\"typedInput.edit($event)\"\n (inputBlur)=\"onInputBlur()\">\n <ng-template monaTextBoxSuffixTemplate>\n <button\n monaButton\n look=\"ghost\"\n [iconOnly]=\"true\"\n [size]=\"size()\"\n [rounded]=\"'none'\"\n (click)=\"onTimeInputButtonClick()\"\n class=\"aspect-square h-full w-auto\"\n [attr.aria-label]=\"messages().openTimePicker\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"popupId\"\n [disabled]=\"effectiveDisabled() || readonly()\"\n [tabindex]=\"-1\">\n <svg lucideClock [size]=\"16\" aria-hidden=\"true\"></svg>\n </button>\n </ng-template>\n</mona-text-box>\n\n<ng-template #timePopupTemplate>\n <div\n [class]=\"pickerPopupClass()\"\n [id]=\"popupId\"\n aria-modal=\"true\"\n role=\"dialog\"\n [attr.aria-label]=\"messages().timePicker\"\n cdkTrapFocus>\n <mona-time-selector\n focusOnMount\n [value]=\"value()\"\n (valueChange)=\"onTimeSelectorValueChange($event)\"\n [max]=\"max()\"\n [min]=\"min()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n [hourFormat]=\"effectiveHourFormat()\"\n [hourStep]=\"hourStep()\"\n [minuteStep]=\"minuteStep()\"\n [secondStep]=\"secondStep()\"\n [size]=\"size()\"\n [rounded]=\"rounded()\"\n [showSeconds]=\"showSeconds()\"></mona-time-selector>\n </div>\n</ng-template>\n",
535
544
  dependencies: [
536
545
  {
537
546
  kind: "component",
@@ -632,7 +641,8 @@ var TimePickerComponent = class TimePickerComponent {
632
641
  inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"],
633
642
  exportAs: ["cdkTrapFocus"]
634
643
  }
635
- ]
644
+ ],
645
+ viewProviders: [...FIELD_ASSOCIATION_BOUNDARY]
636
646
  });
637
647
  }
638
648
  };
@@ -659,6 +669,7 @@ i0.ɵɵngDeclareClassMetadata({
659
669
  CdkTrapFocus
660
670
  ],
661
671
  hostDirectives: [DropdownPopupHandlerDirective],
672
+ viewProviders: [...FIELD_ASSOCIATION_BOUNDARY],
662
673
  host: {
663
674
  "[attr.aria-describedby]": "null",
664
675
  "[attr.aria-label]": "null",
@@ -674,7 +685,7 @@ i0.ɵɵngDeclareClassMetadata({
674
685
  "(focusout)": "onFocusOut($event)",
675
686
  "(keydown)": "onKeydown($event)"
676
687
  },
677
- template: "<mona-text-box\n [aria-describedby]=\"ariaDescribedBy()\"\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [disabled]=\"effectiveDisabled()\"\n [inputId]=\"inputId()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [value]=\"typedInput.text()\"\n [inputAttributes]=\"inputAttributes()\"\n [invalid]=\"invalidState()\"\n [placeholder]=\"placeholder()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"invalidState() || touched()\"\n [clearButton]=\"showClearButton()\"\n (valueChange)=\"typedInput.edit($event)\"\n (inputBlur)=\"onInputBlur()\">\n <ng-template monaTextBoxSuffixTemplate>\n <button\n monaButton\n look=\"ghost\"\n [iconOnly]=\"true\"\n [size]=\"size()\"\n [rounded]=\"'none'\"\n (click)=\"onTimeInputButtonClick()\"\n class=\"aspect-square h-full w-auto\"\n [attr.aria-label]=\"messages().openTimePicker\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"popupId\"\n [disabled]=\"effectiveDisabled() || readonly()\"\n [tabindex]=\"-1\">\n <svg lucideClock [size]=\"16\" aria-hidden=\"true\"></svg>\n </button>\n </ng-template>\n</mona-text-box>\n\n<ng-template #timePopupTemplate>\n <div\n [class]=\"pickerPopupClass()\"\n [id]=\"popupId\"\n aria-modal=\"true\"\n role=\"dialog\"\n [attr.aria-label]=\"messages().timePicker\"\n cdkTrapFocus>\n <mona-time-selector\n focusOnMount\n [value]=\"value()\"\n (valueChange)=\"onTimeSelectorValueChange($event)\"\n [max]=\"max()\"\n [min]=\"min()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n [hourFormat]=\"effectiveHourFormat()\"\n [hourStep]=\"hourStep()\"\n [minuteStep]=\"minuteStep()\"\n [secondStep]=\"secondStep()\"\n [size]=\"size()\"\n [rounded]=\"rounded()\"\n [showSeconds]=\"showSeconds()\"></mona-time-selector>\n </div>\n</ng-template>\n"
688
+ template: "<mona-text-box\n [aria-describedby]=\"describedBy() ?? ''\"\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"labelledBy() ?? ''\"\n [disabled]=\"effectiveDisabled()\"\n [inputId]=\"inputId()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [value]=\"typedInput.text()\"\n [inputAttributes]=\"inputAttributes()\"\n [invalid]=\"invalidState()\"\n [placeholder]=\"placeholder()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [touched]=\"invalidState() || touched()\"\n [clearButton]=\"showClearButton()\"\n (valueChange)=\"typedInput.edit($event)\"\n (inputBlur)=\"onInputBlur()\">\n <ng-template monaTextBoxSuffixTemplate>\n <button\n monaButton\n look=\"ghost\"\n [iconOnly]=\"true\"\n [size]=\"size()\"\n [rounded]=\"'none'\"\n (click)=\"onTimeInputButtonClick()\"\n class=\"aspect-square h-full w-auto\"\n [attr.aria-label]=\"messages().openTimePicker\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"popupId\"\n [disabled]=\"effectiveDisabled() || readonly()\"\n [tabindex]=\"-1\">\n <svg lucideClock [size]=\"16\" aria-hidden=\"true\"></svg>\n </button>\n </ng-template>\n</mona-text-box>\n\n<ng-template #timePopupTemplate>\n <div\n [class]=\"pickerPopupClass()\"\n [id]=\"popupId\"\n aria-modal=\"true\"\n role=\"dialog\"\n [attr.aria-label]=\"messages().timePicker\"\n cdkTrapFocus>\n <mona-time-selector\n focusOnMount\n [value]=\"value()\"\n (valueChange)=\"onTimeSelectorValueChange($event)\"\n [max]=\"max()\"\n [min]=\"min()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n [hourFormat]=\"effectiveHourFormat()\"\n [hourStep]=\"hourStep()\"\n [minuteStep]=\"minuteStep()\"\n [secondStep]=\"secondStep()\"\n [size]=\"size()\"\n [rounded]=\"rounded()\"\n [showSeconds]=\"showSeconds()\"></mona-time-selector>\n </div>\n</ng-template>\n"
678
689
  }]
679
690
  }],
680
691
  ctorParameters: () => [],
@@ -0,0 +1,4 @@
1
+ {
2
+ "module": "../fesm2022/nanahoshi-mona-ui-form-field.mjs",
3
+ "typings": "../types/nanahoshi-mona-ui-form-field.d.ts"
4
+ }
@@ -293,6 +293,19 @@
293
293
  "startsWith": "Starts with",
294
294
  "value": "Value"
295
295
  },
296
+ "formField": {
297
+ "email": "Enter a valid email address.",
298
+ "invalid": "Enter a valid value.",
299
+ "max": "The value must be at most {max}.",
300
+ "maxDate": "The date must be on or before {maxDate}.",
301
+ "maxLength": "Enter at most {maxLength, plural, one {# character} other {# characters}}.",
302
+ "min": "The value must be at least {min}.",
303
+ "minDate": "The date must be on or after {minDate}.",
304
+ "minLength": "Enter at least {minLength, plural, one {# character} other {# characters}}.",
305
+ "optional": "Optional",
306
+ "pattern": "Enter a value in the expected format.",
307
+ "required": "This field is required."
308
+ },
296
309
  "grid": {
297
310
  "all": "(All)",
298
311
  "apply": "Apply",
package/llms.txt CHANGED
@@ -43,6 +43,7 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
43
43
  - [Decimal Text Box](docs/decimal-textbox.md): A numeric input whose value is a decimal string, for exact values like money.
44
44
  - [Editor](docs/editor.md): A rich text editor with a configurable toolbar and an HTML value.
45
45
  - [Fieldset](docs/fieldset.md): Groups related form controls under a labelled border.
46
+ - [Form Field](docs/form-field.md): Labels one form control, describes it with a hint and shows its validation errors.
46
47
  - [Input](docs/input.md): Styles a native input element and keeps its browser behavior.
47
48
  - [Label](docs/label.md): Styled, accessible labels associated with form controls.
48
49
  - [Numeric Text Box](docs/numeric-textbox.md): A number input with spinner buttons, bounds and decimal formatting.
@@ -182,8 +183,9 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
182
183
  - [`@nanahoshi/mona-ui/expansion-panel`](docs/api/expansion-panel.md): 5 exports, in full.
183
184
  - [`@nanahoshi/mona-ui/fieldset`](docs/api/fieldset.md): 2 exports, in full.
184
185
  - [`@nanahoshi/mona-ui/filter`](docs/api/filter.md): 7 exports, in full.
186
+ - [`@nanahoshi/mona-ui/form-field`](docs/api/form-field.md): 6 exports, in full.
185
187
  - [`@nanahoshi/mona-ui/grid`](docs/api/grid.md): 85 exports, in full.
186
- - [`@nanahoshi/mona-ui/i18n`](docs/api/i18n.md): 107 exports, in full.
188
+ - [`@nanahoshi/mona-ui/i18n`](docs/api/i18n.md): 108 exports, in full.
187
189
  - [`@nanahoshi/mona-ui/label`](docs/api/label.md): 4 exports, in full.
188
190
  - [`@nanahoshi/mona-ui/list`](docs/api/list.md): 10 exports, in full.
189
191
  - [`@nanahoshi/mona-ui/list-box`](docs/api/list-box.md): 16 exports, in full.
@@ -293,6 +293,19 @@
293
293
  "startsWith": "يبدأ بـ",
294
294
  "value": "القيمة"
295
295
  },
296
+ "formField": {
297
+ "email": "أدخل عنوان بريد إلكتروني صالحًا.",
298
+ "invalid": "أدخل قيمة صالحة.",
299
+ "max": "يجب ألا تزيد القيمة على {max}.",
300
+ "maxDate": "يجب ألا يكون التاريخ بعد {maxDate}.",
301
+ "maxLength": "أدخل {maxLength, plural, zero {# حرف} one {حرفًا واحدًا} two {حرفين} few {# أحرف} many {# حرفًا} other {# حرف}} على الأكثر.",
302
+ "min": "يجب ألا تقل القيمة عن {min}.",
303
+ "minDate": "يجب ألا يكون التاريخ قبل {minDate}.",
304
+ "minLength": "أدخل {minLength, plural, zero {# حرف} one {حرفًا واحدًا} two {حرفين} few {# أحرف} many {# حرفًا} other {# حرف}} على الأقل.",
305
+ "optional": "اختياري",
306
+ "pattern": "أدخل قيمة بالتنسيق المتوقع.",
307
+ "required": "هذا الحقل مطلوب."
308
+ },
296
309
  "grid": {
297
310
  "all": "(الكل)",
298
311
  "apply": "تطبيق",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "Beginnt mit",
294
294
  "value": "Wert"
295
295
  },
296
+ "formField": {
297
+ "email": "Geben Sie eine gültige E-Mail-Adresse ein.",
298
+ "invalid": "Geben Sie einen gültigen Wert ein.",
299
+ "max": "Der Wert darf höchstens {max} betragen.",
300
+ "maxDate": "Das Datum darf nicht nach dem {maxDate} liegen.",
301
+ "maxLength": "Geben Sie höchstens {maxLength} Zeichen ein.",
302
+ "min": "Der Wert muss mindestens {min} betragen.",
303
+ "minDate": "Das Datum darf nicht vor dem {minDate} liegen.",
304
+ "minLength": "Geben Sie mindestens {minLength} Zeichen ein.",
305
+ "optional": "Optional",
306
+ "pattern": "Geben Sie einen Wert im erwarteten Format ein.",
307
+ "required": "Dieses Feld ist erforderlich."
308
+ },
296
309
  "grid": {
297
310
  "all": "(Alle)",
298
311
  "apply": "Anwenden",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "Empieza con",
294
294
  "value": "Valor"
295
295
  },
296
+ "formField": {
297
+ "email": "Introduce una dirección de correo electrónico válida.",
298
+ "invalid": "Introduce un valor válido.",
299
+ "max": "El valor debe ser como máximo {max}.",
300
+ "maxDate": "La fecha debe ser igual o anterior al {maxDate}.",
301
+ "maxLength": "Introduce como máximo {maxLength, plural, one {# carácter} other {# caracteres}}.",
302
+ "min": "El valor debe ser como mínimo {min}.",
303
+ "minDate": "La fecha debe ser igual o posterior al {minDate}.",
304
+ "minLength": "Introduce al menos {minLength, plural, one {# carácter} other {# caracteres}}.",
305
+ "optional": "Opcional",
306
+ "pattern": "Introduce un valor con el formato esperado.",
307
+ "required": "Este campo es obligatorio."
308
+ },
296
309
  "grid": {
297
310
  "all": "(Todos)",
298
311
  "apply": "Aplicar",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "Commence par",
294
294
  "value": "Valeur"
295
295
  },
296
+ "formField": {
297
+ "email": "Saisissez une adresse e-mail valide.",
298
+ "invalid": "Saisissez une valeur valide.",
299
+ "max": "La valeur doit être inférieure ou égale à {max}.",
300
+ "maxDate": "La date doit être antérieure ou égale au {maxDate}.",
301
+ "maxLength": "Saisissez au maximum {maxLength, plural, one {# caractère} other {# caractères}}.",
302
+ "min": "La valeur doit être supérieure ou égale à {min}.",
303
+ "minDate": "La date doit être postérieure ou égale au {minDate}.",
304
+ "minLength": "Saisissez au moins {minLength, plural, one {# caractère} other {# caractères}}.",
305
+ "optional": "Facultatif",
306
+ "pattern": "Saisissez une valeur au format attendu.",
307
+ "required": "Ce champ est obligatoire."
308
+ },
296
309
  "grid": {
297
310
  "all": "(Tout)",
298
311
  "apply": "Appliquer",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "Diawali dengan",
294
294
  "value": "Nilai"
295
295
  },
296
+ "formField": {
297
+ "email": "Masukkan alamat email yang valid.",
298
+ "invalid": "Masukkan nilai yang valid.",
299
+ "max": "Nilai maksimal {max}.",
300
+ "maxDate": "Tanggal tidak boleh setelah {maxDate}.",
301
+ "maxLength": "Masukkan maksimal {maxLength} karakter.",
302
+ "min": "Nilai minimal {min}.",
303
+ "minDate": "Tanggal tidak boleh sebelum {minDate}.",
304
+ "minLength": "Masukkan minimal {minLength} karakter.",
305
+ "optional": "Opsional",
306
+ "pattern": "Masukkan nilai dalam format yang diharapkan.",
307
+ "required": "Kolom ini wajib diisi."
308
+ },
296
309
  "grid": {
297
310
  "all": "(Semua)",
298
311
  "apply": "Terapkan",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "Inizia con",
294
294
  "value": "Valore"
295
295
  },
296
+ "formField": {
297
+ "email": "Inserisci un indirizzo email valido.",
298
+ "invalid": "Inserisci un valore valido.",
299
+ "max": "Il valore deve essere al massimo {max}.",
300
+ "maxDate": "La data non può essere successiva al {maxDate}.",
301
+ "maxLength": "Inserisci al massimo {maxLength, plural, one {# carattere} other {# caratteri}}.",
302
+ "min": "Il valore deve essere almeno {min}.",
303
+ "minDate": "La data non può essere precedente al {minDate}.",
304
+ "minLength": "Inserisci almeno {minLength, plural, one {# carattere} other {# caratteri}}.",
305
+ "optional": "Facoltativo",
306
+ "pattern": "Inserisci un valore nel formato previsto.",
307
+ "required": "Questo campo è obbligatorio."
308
+ },
296
309
  "grid": {
297
310
  "all": "(Tutti)",
298
311
  "apply": "Applica",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "で始まる",
294
294
  "value": "値"
295
295
  },
296
+ "formField": {
297
+ "email": "有効なメールアドレスを入力してください。",
298
+ "invalid": "有効な値を入力してください。",
299
+ "max": "{max}以下の値を指定してください。",
300
+ "maxDate": "{maxDate}以前の日付を指定してください。",
301
+ "maxLength": "{maxLength}文字以内で入力してください。",
302
+ "min": "{min}以上の値を指定してください。",
303
+ "minDate": "{minDate}以降の日付を指定してください。",
304
+ "minLength": "{minLength}文字以上で入力してください。",
305
+ "optional": "任意",
306
+ "pattern": "正しい形式で入力してください。",
307
+ "required": "この項目は必須です。"
308
+ },
296
309
  "grid": {
297
310
  "all": "(すべて)",
298
311
  "apply": "適用",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "다음으로 시작",
294
294
  "value": "값"
295
295
  },
296
+ "formField": {
297
+ "email": "올바른 이메일 주소를 입력하세요.",
298
+ "invalid": "올바른 값을 입력하세요.",
299
+ "max": "{max} 이하의 값을 지정하세요.",
300
+ "maxDate": "{maxDate} 또는 그 이전 날짜를 지정하세요.",
301
+ "maxLength": "{maxLength}자 이하로 입력하세요.",
302
+ "min": "{min} 이상의 값을 지정하세요.",
303
+ "minDate": "{minDate} 또는 그 이후 날짜를 지정하세요.",
304
+ "minLength": "{minLength}자 이상 입력하세요.",
305
+ "optional": "선택 사항",
306
+ "pattern": "올바른 형식으로 입력하세요.",
307
+ "required": "필수 항목입니다."
308
+ },
296
309
  "grid": {
297
310
  "all": "(모두)",
298
311
  "apply": "적용",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "Zaczyna się od",
294
294
  "value": "Wartość"
295
295
  },
296
+ "formField": {
297
+ "email": "Wpisz prawidłowy adres e-mail.",
298
+ "invalid": "Wpisz prawidłową wartość.",
299
+ "max": "Wartość nie może być większa niż {max}.",
300
+ "maxDate": "Data nie może być późniejsza niż {maxDate}.",
301
+ "maxLength": "Wpisz najwyżej {maxLength, plural, one {# znak} few {# znaki} many {# znaków} other {# znaku}}.",
302
+ "min": "Wartość nie może być mniejsza niż {min}.",
303
+ "minDate": "Data nie może być wcześniejsza niż {minDate}.",
304
+ "minLength": "Wpisz co najmniej {minLength, plural, one {# znak} few {# znaki} many {# znaków} other {# znaku}}.",
305
+ "optional": "Opcjonalnie",
306
+ "pattern": "Wpisz wartość w oczekiwanym formacie.",
307
+ "required": "To pole jest wymagane."
308
+ },
296
309
  "grid": {
297
310
  "all": "(Wszystkie)",
298
311
  "apply": "Zastosuj",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "Começa com",
294
294
  "value": "Valor"
295
295
  },
296
+ "formField": {
297
+ "email": "Digite um endereço de e-mail válido.",
298
+ "invalid": "Digite um valor válido.",
299
+ "max": "O valor deve ser no máximo {max}.",
300
+ "maxDate": "A data deve ser igual ou anterior a {maxDate}.",
301
+ "maxLength": "Digite no máximo {maxLength, plural, one {# caractere} other {# caracteres}}.",
302
+ "min": "O valor deve ser no mínimo {min}.",
303
+ "minDate": "A data deve ser igual ou posterior a {minDate}.",
304
+ "minLength": "Digite pelo menos {minLength, plural, one {# caractere} other {# caracteres}}.",
305
+ "optional": "Opcional",
306
+ "pattern": "Digite um valor no formato esperado.",
307
+ "required": "Este campo é obrigatório."
308
+ },
296
309
  "grid": {
297
310
  "all": "(Todos)",
298
311
  "apply": "Aplicar",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "Начинается с",
294
294
  "value": "Значение"
295
295
  },
296
+ "formField": {
297
+ "email": "Введите корректный адрес электронной почты.",
298
+ "invalid": "Введите корректное значение.",
299
+ "max": "Значение не должно превышать {max}.",
300
+ "maxDate": "Дата не должна быть позже {maxDate}.",
301
+ "maxLength": "Введите не более {maxLength, plural, one {# символа} few {# символов} many {# символов} other {# символа}}.",
302
+ "min": "Значение должно быть не меньше {min}.",
303
+ "minDate": "Дата не должна быть раньше {minDate}.",
304
+ "minLength": "Введите не менее {minLength, plural, one {# символа} few {# символов} many {# символов} other {# символа}}.",
305
+ "optional": "Необязательно",
306
+ "pattern": "Введите значение в ожидаемом формате.",
307
+ "required": "Это поле обязательно для заполнения."
308
+ },
296
309
  "grid": {
297
310
  "all": "(Все)",
298
311
  "apply": "Применить",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "İle başlar",
294
294
  "value": "Değer"
295
295
  },
296
+ "formField": {
297
+ "email": "Geçerli bir e-posta adresi girin.",
298
+ "invalid": "Geçerli bir değer girin.",
299
+ "max": "Değer en fazla {max} olmalıdır.",
300
+ "maxDate": "Tarih en geç {maxDate} olmalıdır.",
301
+ "maxLength": "En fazla {maxLength} karakter girin.",
302
+ "min": "Değer en az {min} olmalıdır.",
303
+ "minDate": "Tarih en erken {minDate} olmalıdır.",
304
+ "minLength": "En az {minLength} karakter girin.",
305
+ "optional": "İsteğe bağlı",
306
+ "pattern": "Beklenen biçimde bir değer girin.",
307
+ "required": "Bu alan zorunludur."
308
+ },
296
309
  "grid": {
297
310
  "all": "(Tümü)",
298
311
  "apply": "Uygula",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "开头为",
294
294
  "value": "值"
295
295
  },
296
+ "formField": {
297
+ "email": "请输入有效的电子邮件地址。",
298
+ "invalid": "请输入有效的值。",
299
+ "max": "值不能大于 {max}。",
300
+ "maxDate": "日期不能晚于 {maxDate}。",
301
+ "maxLength": "最多输入 {maxLength} 个字符。",
302
+ "min": "值不能小于 {min}。",
303
+ "minDate": "日期不能早于 {minDate}。",
304
+ "minLength": "至少输入 {minLength} 个字符。",
305
+ "optional": "可选",
306
+ "pattern": "请按要求的格式输入。",
307
+ "required": "此项为必填项。"
308
+ },
296
309
  "grid": {
297
310
  "all": "(全部)",
298
311
  "apply": "应用",
@@ -293,6 +293,19 @@
293
293
  "startsWith": "開頭為",
294
294
  "value": "值"
295
295
  },
296
+ "formField": {
297
+ "email": "請輸入有效的電子郵件地址。",
298
+ "invalid": "請輸入有效的值。",
299
+ "max": "值不得大於 {max}。",
300
+ "maxDate": "日期不得晚於 {maxDate}。",
301
+ "maxLength": "最多輸入 {maxLength} 個字元。",
302
+ "min": "值不得小於 {min}。",
303
+ "minDate": "日期不得早於 {minDate}。",
304
+ "minLength": "至少輸入 {minLength} 個字元。",
305
+ "optional": "選填",
306
+ "pattern": "請依照要求的格式輸入。",
307
+ "required": "此欄位為必填。"
308
+ },
296
309
  "grid": {
297
310
  "all": "(全部)",
298
311
  "apply": "套用",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanahoshi/mona-ui",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "A very light Angular UI framework",
5
5
  "author": "Nanahoshi",
6
6
  "repository": {
@@ -138,6 +138,10 @@
138
138
  "types": "./types/nanahoshi-mona-ui-filter.d.ts",
139
139
  "default": "./fesm2022/nanahoshi-mona-ui-filter.mjs"
140
140
  },
141
+ "./form-field": {
142
+ "types": "./types/nanahoshi-mona-ui-form-field.d.ts",
143
+ "default": "./fesm2022/nanahoshi-mona-ui-form-field.mjs"
144
+ },
141
145
  "./grid": {
142
146
  "types": "./types/nanahoshi-mona-ui-grid.d.ts",
143
147
  "default": "./fesm2022/nanahoshi-mona-ui-grid.mjs"
@@ -37,6 +37,7 @@ export declare class AutoCompleteComponent<TData = unknown> implements FormValue
37
37
  protected readonly autoCompleteValue$: Subject<string | null>;
38
38
  protected readonly baseClass: import("@angular/core").Signal<string>;
39
39
  protected readonly clearButtonVisible: import("@angular/core").Signal<boolean>;
40
+ protected readonly describedBy: import("@angular/core").Signal<string | null>;
40
41
  protected readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
41
42
  protected readonly expanded: import("@angular/core").Signal<boolean>;
42
43
  protected readonly footerTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
@@ -46,6 +47,7 @@ export declare class AutoCompleteComponent<TData = unknown> implements FormValue
46
47
  protected readonly invalidState: import("@angular/core").Signal<boolean>;
47
48
  protected readonly isEmpty: import("@angular/core").Signal<boolean>;
48
49
  protected readonly itemTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
50
+ protected readonly labelledBy: import("@angular/core").Signal<string | null>;
49
51
  protected readonly listId: string;
50
52
  protected readonly listPopupClass: import("@angular/core").Signal<string>;
51
53
  protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaAutoCompleteMessages>;
@@ -34,6 +34,7 @@ export declare class ButtonGroupComponent<T = unknown> implements ButtonGroupVar
34
34
  * disabled state, but not its selection.
35
35
  */
36
36
  protected readonly components: import("@angular/core").Signal<readonly import("@nanahoshi/mona-ui/button").ButtonGroupMember[]>;
37
+ protected readonly describedBy: import("@angular/core").Signal<string | null>;
37
38
  protected readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
38
39
  protected readonly invalidState: import("@angular/core").Signal<boolean>;
39
40
  protected readonly labelledBy: import("@angular/core").Signal<string | null>;
@@ -47,6 +48,11 @@ export declare class ButtonGroupComponent<T = unknown> implements ButtonGroupVar
47
48
  * @default true
48
49
  */
49
50
  readonly allowEmpty: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
51
+ /**
52
+ * @description Id of an element that describes the button group, such as a hint or an error message.
53
+ * @default ""
54
+ */
55
+ readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
50
56
  /**
51
57
  * @description Accessible name for the host element. Override when multiple button groups appear on the same page
52
58
  * so screen reader users can distinguish them.
@@ -151,6 +157,11 @@ export declare class ButtonGroupComponent<T = unknown> implements ButtonGroupVar
151
157
  "required": false;
152
158
  "isSignal": true;
153
159
  };
160
+ "ariaDescribedBy": {
161
+ "alias": "aria-describedby";
162
+ "required": false;
163
+ "isSignal": true;
164
+ };
154
165
  "ariaLabel": {
155
166
  "alias": "aria-label";
156
167
  "required": false;
@@ -23,6 +23,7 @@ export declare class CheckBoxComponent implements CheckboxVariantInput, Checkmar
23
23
  protected readonly checkBoxClasses: import("@angular/core").Signal<string>;
24
24
  protected readonly checkMarkClasses: import("@angular/core").Signal<string>;
25
25
  protected readonly containerLabelClasses: import("@angular/core").Signal<string>;
26
+ protected readonly describedBy: import("@angular/core").Signal<string | null>;
26
27
  protected readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
27
28
  protected readonly indeterminateState: import("@angular/core").WritableSignal<boolean>;
28
29
  protected readonly inputRef: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
@@ -58,6 +58,7 @@ export declare class ColorGradientComponent implements ColorGradientVariantInput
58
58
  title: string;
59
59
  onClick: () => void;
60
60
  })[]>;
61
+ protected readonly describedBy: Signal<string | null>;
61
62
  protected readonly effectiveDisabled: Signal<boolean>;
62
63
  protected readonly hex: Signal<string>;
63
64
  protected readonly hexFocused: import("@angular/core").WritableSignal<boolean>;
@@ -85,6 +86,11 @@ export declare class ColorGradientComponent implements ColorGradientVariantInput
85
86
  * The `Apply` button is only displayed when `showButtons` is set to true.
86
87
  */
87
88
  readonly apply: import("@angular/core").OutputEmitterRef<void>;
89
+ /**
90
+ * @description Id of an element that describes the color gradient, such as a hint or an error message.
91
+ * @default ""
92
+ */
93
+ readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
88
94
  /**
89
95
  * @description Accessible name of the group of controls.
90
96
  * @default ""
@@ -218,6 +224,11 @@ export declare class ColorGradientComponent implements ColorGradientVariantInput
218
224
  private updateRgbFromHsv;
219
225
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorGradientComponent, never>;
220
226
  static ɵcmp: i0.ɵɵComponentDeclaration<ColorGradientComponent, "mona-color-gradient", never, {
227
+ "ariaDescribedBy": {
228
+ "alias": "aria-describedby";
229
+ "required": false;
230
+ "isSignal": true;
231
+ };
221
232
  "ariaLabel": {
222
233
  "alias": "aria-label";
223
234
  "required": false;
@@ -27,6 +27,7 @@ export declare class ColorPaletteComponent implements ColorPaletteVariantInput,
27
27
  protected readonly activeColorIndex: import("@angular/core").Signal<number>;
28
28
  protected readonly baseClasses: import("@angular/core").Signal<string>;
29
29
  protected readonly colorRows: import("@angular/core").Signal<PaletteTile[][]>;
30
+ protected readonly describedBy: import("@angular/core").Signal<string | null>;
30
31
  protected readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
31
32
  protected readonly focusedColorIndex: import("@angular/core").WritableSignal<number>;
32
33
  protected readonly grid: import("@angular/core").Signal<PaletteGrid>;
@@ -41,6 +42,11 @@ export declare class ColorPaletteComponent implements ColorPaletteVariantInput,
41
42
  */
42
43
  protected readonly selectedIndex: import("@angular/core").Signal<number>;
43
44
  protected readonly tileKeys: import("@angular/core").Signal<string[]>;
45
+ /**
46
+ * @description Id of an element that describes the color palette, such as a hint or an error message.
47
+ * @default ""
48
+ */
49
+ readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
44
50
  /**
45
51
  * @description Accessible label for the color palette grid.
46
52
  * @default ""
@@ -138,6 +144,11 @@ export declare class ColorPaletteComponent implements ColorPaletteVariantInput,
138
144
  private gridFromScheme;
139
145
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorPaletteComponent, never>;
140
146
  static ɵcmp: i0.ɵɵComponentDeclaration<ColorPaletteComponent, "mona-color-palette", never, {
147
+ "ariaDescribedBy": {
148
+ "alias": "aria-describedby";
149
+ "required": false;
150
+ "isSignal": true;
151
+ };
141
152
  "ariaLabel": {
142
153
  "alias": "aria-label";
143
154
  "required": false;
@@ -25,6 +25,7 @@ export declare class ColorPickerComponent implements OnInit, ColorPickerVariantI
25
25
  #private;
26
26
  protected readonly baseClasses: Signal<string>;
27
27
  protected readonly colorClasses: Signal<string>;
28
+ protected readonly describedBy: Signal<string | null>;
28
29
  protected readonly effectiveDisabled: Signal<boolean>;
29
30
  protected readonly expanded: Signal<boolean>;
30
31
  protected readonly gradientPopupClasses = "\n [background-color:var(--mona-effect-overlay-background-color,var(--color-surface-overlay))]\n \n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n\n border border-border shadow-(--shadow-overlay) outline-none focus-visible:outline-hidden";
@@ -38,6 +39,11 @@ export declare class ColorPickerComponent implements OnInit, ColorPickerVariantI
38
39
  protected readonly valueTemplate: Signal<TemplateRef<any> | undefined>;
39
40
  /** What assistive technology reads as the current color: its name when the palette has one, or the value itself. */
40
41
  protected readonly valueText: Signal<string>;
42
+ /**
43
+ * @description Id of an element that describes the color picker, such as a hint or an error message.
44
+ * @default ""
45
+ */
46
+ readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
41
47
  /**
42
48
  * @description Accessible label for the color picker combobox.
43
49
  * @default ""
@@ -182,6 +188,11 @@ export declare class ColorPickerComponent implements OnInit, ColorPickerVariantI
182
188
  private tabLeavesPopup;
183
189
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
184
190
  static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "mona-color-picker", never, {
191
+ "ariaDescribedBy": {
192
+ "alias": "aria-describedby";
193
+ "required": false;
194
+ "isSignal": true;
195
+ };
185
196
  "ariaLabel": {
186
197
  "alias": "aria-label";
187
198
  "required": false;