@nanahoshi/mona-ui 0.30.0 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/date-range-picker/package.json +4 -0
  2. package/docs/api/button-group.md +1 -0
  3. package/docs/api/calendar.md +3 -2
  4. package/docs/api/color-gradient.md +1 -0
  5. package/docs/api/color-palette.md +1 -0
  6. package/docs/api/color-picker.md +1 -0
  7. package/docs/api/common.md +1 -1
  8. package/docs/api/date-input.md +1 -1
  9. package/docs/api/date-range-picker.md +137 -0
  10. package/docs/api/form-field.md +88 -0
  11. package/docs/api/i18n.md +84 -0
  12. package/docs/api/list.md +1 -1
  13. package/docs/api/locales.md +14 -14
  14. package/docs/api/popup.md +1 -1
  15. package/docs/api/segmented.md +1 -0
  16. package/docs/api/switch.md +1 -0
  17. package/docs/calendar.md +47 -3
  18. package/docs/date-picker.md +1 -1
  19. package/docs/date-range-picker.md +420 -0
  20. package/docs/dropdown-list.md +1 -1
  21. package/docs/form-field.md +425 -0
  22. package/docs/forms.md +13 -4
  23. package/docs/label.md +5 -5
  24. package/docs/numeric-textbox.md +1 -1
  25. package/docs/radio-button.md +2 -1
  26. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +15 -4
  27. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +25 -1
  28. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +171 -59
  29. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +5 -2
  30. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +29 -3
  31. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +25 -1
  32. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +31 -3
  33. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +15 -4
  34. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +16 -4
  35. package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +1331 -0
  36. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +16 -4
  37. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +19 -7
  38. package/fesm2022/nanahoshi-mona-ui-editor.mjs +24 -4
  39. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -0
  40. package/fesm2022/nanahoshi-mona-ui-form-field.mjs +666 -0
  41. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +50 -0
  42. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +7 -1
  43. package/fesm2022/nanahoshi-mona-ui-internal.mjs +27 -2
  44. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +50 -0
  45. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +32 -0
  46. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +38 -0
  47. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +38 -0
  48. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +29 -0
  49. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +38 -0
  50. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +29 -0
  51. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +29 -0
  52. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +44 -0
  53. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +38 -0
  54. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +44 -0
  55. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +32 -0
  56. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +29 -0
  57. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +29 -0
  58. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +19 -7
  59. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +14 -5
  60. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +6 -3
  61. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +15 -9
  62. package/fesm2022/nanahoshi-mona-ui-rating.mjs +6 -3
  63. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +25 -1
  64. package/fesm2022/nanahoshi-mona-ui-slider.mjs +8 -5
  65. package/fesm2022/nanahoshi-mona-ui-switch.mjs +25 -1
  66. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +6 -3
  67. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +15 -4
  68. package/form-field/package.json +4 -0
  69. package/i18n/catalogs/en-US.messages.json +29 -0
  70. package/llms.txt +5 -1
  71. package/locales/ar-sa/ar-sa.messages.json +29 -0
  72. package/locales/de-de/de-de.messages.json +29 -0
  73. package/locales/es-es/es-es.messages.json +29 -0
  74. package/locales/fr-fr/fr-fr.messages.json +29 -0
  75. package/locales/id-id/id-id.messages.json +29 -0
  76. package/locales/it-it/it-it.messages.json +29 -0
  77. package/locales/ja-jp/ja-jp.messages.json +29 -0
  78. package/locales/ko-kr/ko-kr.messages.json +29 -0
  79. package/locales/pl-pl/pl-pl.messages.json +29 -0
  80. package/locales/pt-br/pt-br.messages.json +29 -0
  81. package/locales/ru-ru/ru-ru.messages.json +29 -0
  82. package/locales/tr-tr/tr-tr.messages.json +29 -0
  83. package/locales/zh-cn/zh-cn.messages.json +29 -0
  84. package/locales/zh-tw/zh-tw.messages.json +29 -0
  85. package/package.json +9 -1
  86. package/types/nanahoshi-mona-ui-auto-complete.d.ts +2 -0
  87. package/types/nanahoshi-mona-ui-button-group.d.ts +11 -0
  88. package/types/nanahoshi-mona-ui-calendar.d.ts +66 -8
  89. package/types/nanahoshi-mona-ui-check-box.d.ts +1 -0
  90. package/types/nanahoshi-mona-ui-color-gradient.d.ts +11 -0
  91. package/types/nanahoshi-mona-ui-color-palette.d.ts +11 -0
  92. package/types/nanahoshi-mona-ui-color-picker.d.ts +11 -0
  93. package/types/nanahoshi-mona-ui-combo-box.d.ts +2 -0
  94. package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -0
  95. package/types/nanahoshi-mona-ui-date-range-picker.d.ts +462 -0
  96. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -0
  97. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +2 -0
  98. package/types/nanahoshi-mona-ui-form-field.d.ts +173 -0
  99. package/types/nanahoshi-mona-ui-i18n.d.ts +68 -0
  100. package/types/nanahoshi-mona-ui-internal.d.ts +39 -4
  101. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +29 -0
  102. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +29 -0
  103. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +29 -0
  104. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +29 -0
  105. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +29 -0
  106. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +29 -0
  107. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +29 -0
  108. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +29 -0
  109. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +29 -0
  110. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +29 -0
  111. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +29 -0
  112. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +29 -0
  113. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +29 -0
  114. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +29 -0
  115. package/types/nanahoshi-mona-ui-multi-select.d.ts +2 -0
  116. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +2 -0
  117. package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
  118. package/types/nanahoshi-mona-ui-radio-button.d.ts +2 -0
  119. package/types/nanahoshi-mona-ui-rating.d.ts +1 -0
  120. package/types/nanahoshi-mona-ui-segmented.d.ts +11 -0
  121. package/types/nanahoshi-mona-ui-slider.d.ts +1 -0
  122. package/types/nanahoshi-mona-ui-switch.d.ts +11 -0
  123. package/types/nanahoshi-mona-ui-text-box.d.ts +1 -0
  124. package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -0
@@ -257,14 +257,17 @@ var RatingComponent = class RatingComponent {
257
257
  this.#i18n = inject(MonaI18nService);
258
258
  this.#label = injectLabelAssociation({
259
259
  activate: () => this.focus(),
260
+ ariaDescribedBy: () => this.ariaDescribedBy(),
260
261
  ariaLabel: () => this.ariaLabel(),
261
- ariaLabelledBy: () => this.ariaLabelledBy()
262
+ ariaLabelledBy: () => this.ariaLabelledBy(),
263
+ focus: () => this.focus()
262
264
  });
263
265
  this.#zone = inject(NgZone);
264
266
  this.activeState = computed(() => this.previewActive() ? "hovered" : "selected", ...ngDevMode ? [{ debugName: "activeState" }] : /* istanbul ignore next */ []);
265
267
  this.containerClasses = computed(() => twMerge(ratingContainerThemeVariants(), this.userClass()), ...ngDevMode ? [{ debugName: "containerClasses" }] : /* istanbul ignore next */ []);
266
268
  this.controlClasses = computed(() => ratingControlThemeVariants({ size: this.size() }), ...ngDevMode ? [{ debugName: "controlClasses" }] : /* istanbul ignore next */ []);
267
269
  this.controlElement = viewChild.required("ratingControl", ...ngDevMode ? [{ debugName: "controlElement" }] : /* istanbul ignore next */ []);
270
+ this.describedBy = this.#label.describedBy;
268
271
  this.displayValue = computed(() => this.previewValue() ?? this.normalizedValue(), ...ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []);
269
272
  this.effectiveAriaLabelledBy = computed(() => {
270
273
  const labelledBy = this.#label.labelledBy();
@@ -694,7 +697,7 @@ var RatingComponent = class RatingComponent {
694
697
  isSignal: true
695
698
  }],
696
699
  ngImport: i0,
697
- template: "<div [class]=\"containerClasses()\">\n @if (label() && labelPosition() === \"before\") {\n <span [id]=\"labelId\" [class]=\"labelClasses()\">{{ label() }}</span>\n }\n\n <div\n #ratingControl\n role=\"slider\"\n [class]=\"controlClasses()\"\n [attr.tabindex]=\"effectiveTabIndex()\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"itemsCount()\"\n [attr.aria-valuenow]=\"normalizedValue()\"\n [attr.aria-valuetext]=\"effectiveAriaValueText()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"effectiveAriaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.data-precision]=\"precision()\"\n [attr.data-selection]=\"selection()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n (pointerleave)=\"onPointerLeave()\"\n (click)=\"onClick($event)\">\n @for (item of items(); track item.itemValue) {\n <span\n [class]=\"itemClasses()\"\n [attr.data-rating-index]=\"item.index\"\n [attr.data-rating-value]=\"item.itemValue\"\n aria-hidden=\"true\">\n <span class=\"flex h-full w-full items-center justify-center\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"createItemContext(item)\">\n </ng-container>\n } @else {\n <svg lucideIcon [lucideIcon]=\"iconToRender()\" [class]=\"iconClasses()\" fill=\"none\"></svg>\n }\n </span>\n\n @let fill = getItemFill(item.itemValue);\n\n @if (fill > 0) {\n <span [class]=\"overlayClipClasses()\" [style.inline-size.%]=\"fill * 100\">\n <span\n [class]=\"overlayContentClasses()\"\n [attr.data-state]=\"activeState()\"\n [style.color]=\"effectiveDisabled() ? null : overlayColor()\">\n @if (overlayTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"overlayTemplate()!\"\n [ngTemplateOutletContext]=\"createItemContext(item)\">\n </ng-container>\n } @else {\n <svg\n lucideIcon\n [lucideIcon]=\"iconToRender()\"\n [class]=\"overlayIconClasses()\"\n fill=\"currentColor\"></svg>\n }\n </span>\n </span>\n }\n </span>\n }\n </div>\n\n @if (label() && labelPosition() === \"after\") {\n <span [id]=\"labelId\" [class]=\"labelClasses()\">{{ label() }}</span>\n }\n</div>\n",
700
+ template: "<div [class]=\"containerClasses()\">\n @if (label() && labelPosition() === \"before\") {\n <span [id]=\"labelId\" [class]=\"labelClasses()\">{{ label() }}</span>\n }\n\n <div\n #ratingControl\n role=\"slider\"\n [class]=\"controlClasses()\"\n [attr.tabindex]=\"effectiveTabIndex()\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"itemsCount()\"\n [attr.aria-valuenow]=\"normalizedValue()\"\n [attr.aria-valuetext]=\"effectiveAriaValueText()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"effectiveAriaLabelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.data-precision]=\"precision()\"\n [attr.data-selection]=\"selection()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n (pointerleave)=\"onPointerLeave()\"\n (click)=\"onClick($event)\">\n @for (item of items(); track item.itemValue) {\n <span\n [class]=\"itemClasses()\"\n [attr.data-rating-index]=\"item.index\"\n [attr.data-rating-value]=\"item.itemValue\"\n aria-hidden=\"true\">\n <span class=\"flex h-full w-full items-center justify-center\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"createItemContext(item)\">\n </ng-container>\n } @else {\n <svg lucideIcon [lucideIcon]=\"iconToRender()\" [class]=\"iconClasses()\" fill=\"none\"></svg>\n }\n </span>\n\n @let fill = getItemFill(item.itemValue);\n\n @if (fill > 0) {\n <span [class]=\"overlayClipClasses()\" [style.inline-size.%]=\"fill * 100\">\n <span\n [class]=\"overlayContentClasses()\"\n [attr.data-state]=\"activeState()\"\n [style.color]=\"effectiveDisabled() ? null : overlayColor()\">\n @if (overlayTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"overlayTemplate()!\"\n [ngTemplateOutletContext]=\"createItemContext(item)\">\n </ng-container>\n } @else {\n <svg\n lucideIcon\n [lucideIcon]=\"iconToRender()\"\n [class]=\"overlayIconClasses()\"\n fill=\"currentColor\"></svg>\n }\n </span>\n </span>\n }\n </span>\n }\n </div>\n\n @if (label() && labelPosition() === \"after\") {\n <span [id]=\"labelId\" [class]=\"labelClasses()\">{{ label() }}</span>\n }\n</div>\n",
698
701
  dependencies: [{
699
702
  kind: "directive",
700
703
  type: NgTemplateOutlet,
@@ -723,7 +726,7 @@ i0.ɵɵngDeclareClassMetadata({
723
726
  args: [{
724
727
  selector: "mona-rating",
725
728
  imports: [NgTemplateOutlet, LucideDynamicIcon],
726
- template: "<div [class]=\"containerClasses()\">\n @if (label() && labelPosition() === \"before\") {\n <span [id]=\"labelId\" [class]=\"labelClasses()\">{{ label() }}</span>\n }\n\n <div\n #ratingControl\n role=\"slider\"\n [class]=\"controlClasses()\"\n [attr.tabindex]=\"effectiveTabIndex()\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"itemsCount()\"\n [attr.aria-valuenow]=\"normalizedValue()\"\n [attr.aria-valuetext]=\"effectiveAriaValueText()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"effectiveAriaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.data-precision]=\"precision()\"\n [attr.data-selection]=\"selection()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n (pointerleave)=\"onPointerLeave()\"\n (click)=\"onClick($event)\">\n @for (item of items(); track item.itemValue) {\n <span\n [class]=\"itemClasses()\"\n [attr.data-rating-index]=\"item.index\"\n [attr.data-rating-value]=\"item.itemValue\"\n aria-hidden=\"true\">\n <span class=\"flex h-full w-full items-center justify-center\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"createItemContext(item)\">\n </ng-container>\n } @else {\n <svg lucideIcon [lucideIcon]=\"iconToRender()\" [class]=\"iconClasses()\" fill=\"none\"></svg>\n }\n </span>\n\n @let fill = getItemFill(item.itemValue);\n\n @if (fill > 0) {\n <span [class]=\"overlayClipClasses()\" [style.inline-size.%]=\"fill * 100\">\n <span\n [class]=\"overlayContentClasses()\"\n [attr.data-state]=\"activeState()\"\n [style.color]=\"effectiveDisabled() ? null : overlayColor()\">\n @if (overlayTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"overlayTemplate()!\"\n [ngTemplateOutletContext]=\"createItemContext(item)\">\n </ng-container>\n } @else {\n <svg\n lucideIcon\n [lucideIcon]=\"iconToRender()\"\n [class]=\"overlayIconClasses()\"\n fill=\"currentColor\"></svg>\n }\n </span>\n </span>\n }\n </span>\n }\n </div>\n\n @if (label() && labelPosition() === \"after\") {\n <span [id]=\"labelId\" [class]=\"labelClasses()\">{{ label() }}</span>\n }\n</div>\n"
729
+ template: "<div [class]=\"containerClasses()\">\n @if (label() && labelPosition() === \"before\") {\n <span [id]=\"labelId\" [class]=\"labelClasses()\">{{ label() }}</span>\n }\n\n <div\n #ratingControl\n role=\"slider\"\n [class]=\"controlClasses()\"\n [attr.tabindex]=\"effectiveTabIndex()\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"itemsCount()\"\n [attr.aria-valuenow]=\"normalizedValue()\"\n [attr.aria-valuetext]=\"effectiveAriaValueText()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"effectiveAriaLabelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.data-precision]=\"precision()\"\n [attr.data-selection]=\"selection()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n (pointerleave)=\"onPointerLeave()\"\n (click)=\"onClick($event)\">\n @for (item of items(); track item.itemValue) {\n <span\n [class]=\"itemClasses()\"\n [attr.data-rating-index]=\"item.index\"\n [attr.data-rating-value]=\"item.itemValue\"\n aria-hidden=\"true\">\n <span class=\"flex h-full w-full items-center justify-center\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"createItemContext(item)\">\n </ng-container>\n } @else {\n <svg lucideIcon [lucideIcon]=\"iconToRender()\" [class]=\"iconClasses()\" fill=\"none\"></svg>\n }\n </span>\n\n @let fill = getItemFill(item.itemValue);\n\n @if (fill > 0) {\n <span [class]=\"overlayClipClasses()\" [style.inline-size.%]=\"fill * 100\">\n <span\n [class]=\"overlayContentClasses()\"\n [attr.data-state]=\"activeState()\"\n [style.color]=\"effectiveDisabled() ? null : overlayColor()\">\n @if (overlayTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"overlayTemplate()!\"\n [ngTemplateOutletContext]=\"createItemContext(item)\">\n </ng-container>\n } @else {\n <svg\n lucideIcon\n [lucideIcon]=\"iconToRender()\"\n [class]=\"overlayIconClasses()\"\n fill=\"currentColor\"></svg>\n }\n </span>\n </span>\n }\n </span>\n }\n </div>\n\n @if (label() && labelPosition() === \"after\") {\n <span [id]=\"labelId\" [class]=\"labelClasses()\">{{ label() }}</span>\n }\n</div>\n"
727
730
  }]
728
731
  }],
729
732
  ctorParameters: () => [],
@@ -184,8 +184,10 @@ var SegmentedComponent = class SegmentedComponent {
184
184
  this.#hostElementRef = inject(ElementRef);
185
185
  this.#label = injectLabelAssociation({
186
186
  activate: () => this.focus(),
187
+ ariaDescribedBy: () => this.ariaDescribedBy(),
187
188
  ariaLabel: () => this.ariaLabel(),
188
- ariaLabelledBy: () => this.ariaLabelledBy()
189
+ ariaLabelledBy: () => this.ariaLabelledBy(),
190
+ focus: () => this.focus()
189
191
  });
190
192
  this.#lastAnimatedIndex = null;
191
193
  this.#lastOptions = null;
@@ -199,6 +201,7 @@ var SegmentedComponent = class SegmentedComponent {
199
201
  });
200
202
  return twMerge(classes, this.userClass());
201
203
  }, ...ngDevMode ? [{ debugName: "containerClasses" }] : /* istanbul ignore next */ []);
204
+ this.describedBy = this.#label.describedBy;
202
205
  this.effectiveDisabled = injectEffectiveDisabled(() => this.disabled());
203
206
  this.geometryReady = computed(() => !!this.indicatorGeometry(), ...ngDevMode ? [{ debugName: "geometryReady" }] : /* istanbul ignore next */ []);
204
207
  this.groupName = createElementControlId();
@@ -258,6 +261,10 @@ var SegmentedComponent = class SegmentedComponent {
258
261
  ...ngDevMode ? { debugName: "animate" } : /* istanbul ignore next */ {},
259
262
  transform: booleanAttribute
260
263
  });
264
+ this.ariaDescribedBy = input("", {
265
+ ...ngDevMode ? { debugName: "ariaDescribedBy" } : /* istanbul ignore next */ {},
266
+ alias: "aria-describedby"
267
+ });
261
268
  this.ariaLabel = input(null, {
262
269
  ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
263
270
  alias: "aria-label"
@@ -427,6 +434,13 @@ var SegmentedComponent = class SegmentedComponent {
427
434
  isRequired: false,
428
435
  transformFunction: null
429
436
  },
437
+ ariaDescribedBy: {
438
+ classPropertyName: "ariaDescribedBy",
439
+ publicName: "aria-describedby",
440
+ isSignal: true,
441
+ isRequired: false,
442
+ transformFunction: null
443
+ },
430
444
  ariaLabel: {
431
445
  classPropertyName: "ariaLabel",
432
446
  publicName: "aria-label",
@@ -528,6 +542,7 @@ var SegmentedComponent = class SegmentedComponent {
528
542
  properties: {
529
543
  "attr.aria-disabled": "effectiveDisabled() || undefined",
530
544
  "attr.aria-invalid": "invalidState() ? 'true' : null",
545
+ "attr.aria-describedby": "describedBy()",
531
546
  "attr.aria-label": "ariaLabel()",
532
547
  "attr.aria-labelledby": "labelledBy()",
533
548
  "attr.aria-readonly": "readonly() || null",
@@ -586,6 +601,7 @@ i0.ɵɵngDeclareClassMetadata({
586
601
  host: {
587
602
  "[attr.aria-disabled]": "effectiveDisabled() || undefined",
588
603
  "[attr.aria-invalid]": "invalidState() ? 'true' : null",
604
+ "[attr.aria-describedby]": "describedBy()",
589
605
  "[attr.aria-label]": "ariaLabel()",
590
606
  "[attr.aria-labelledby]": "labelledBy()",
591
607
  "[attr.aria-readonly]": "readonly() || null",
@@ -633,6 +649,14 @@ i0.ɵɵngDeclareClassMetadata({
633
649
  required: false
634
650
  }]
635
651
  }],
652
+ ariaDescribedBy: [{
653
+ type: i0.Input,
654
+ args: [{
655
+ isSignal: true,
656
+ alias: "aria-describedby",
657
+ required: false
658
+ }]
659
+ }],
636
660
  ariaLabel: [{
637
661
  type: i0.Input,
638
662
  args: [{
@@ -347,11 +347,14 @@ var SliderBaseComponent = class SliderBaseComponent {
347
347
  this.#document = inject(DOCUMENT);
348
348
  this.#label = injectLabelAssociation({
349
349
  activate: () => this.focus(),
350
+ ariaDescribedBy: () => this.ariaDescribedBy(),
350
351
  ariaLabel: () => this.ariaLabel(),
351
- ariaLabelledBy: () => this.ariaLabelledBy()
352
+ ariaLabelledBy: () => this.ariaLabelledBy(),
353
+ focus: () => this.focus()
352
354
  });
353
355
  this.#stepPlaces = computed(() => Math.max(decimalPlaces(this.step()), decimalPlaces(this.effectiveMin())), ...ngDevMode ? [{ debugName: "#stepPlaces" }] : /* istanbul ignore next */ []);
354
356
  this.baseClasses = computed(() => sliderBaseThemeVariants(), ...ngDevMode ? [{ debugName: "baseClasses" }] : /* istanbul ignore next */ []);
357
+ this.describedBy = this.#label.describedBy;
355
358
  this.destroyRef = inject(DestroyRef);
356
359
  this.direction = injectComponentDirection();
357
360
  this.dragging = signal(false, ...ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []);
@@ -1231,7 +1234,7 @@ var SliderComponent = class SliderComponent extends SliderBaseComponent {
1231
1234
  }],
1232
1235
  usesInheritance: true,
1233
1236
  ngImport: i0,
1234
- template: "<div\n [class]=\"trackClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style.height]=\"orientation() === 'horizontal' ? sliderTrackSize() : undefined\"\n [style.width]=\"orientation() === 'vertical' ? sliderTrackSize() : undefined\"\n [style]=\"trackBackgroundStyle()\">\n <div\n [class]=\"selectionClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [style.left.%]=\"horizontalSelectionLeft()\"\n [style.right.%]=\"horizontalSelectionRight()\"\n [style.bottom.%]=\"orientation() === 'vertical' ? selectionLeft() : undefined\"\n [style.top.%]=\"orientation() === 'vertical' ? 100 - selectionRight() : undefined\"\n [style]=\"selectionBackgroundStyle()\"></div>\n</div>\n@if (showTicks()) {\n <div [class]=\"tickListClasses()\" [attr.data-orientation]=\"orientation()\">\n @for (tick of renderTicks(); track tick.index) {\n <span\n [class]=\"tickClasses()\"\n [style]=\"tick | tickStyle: tickStyleArgs()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-value]=\"tick.value\"\n data-slider-tick>\n </span>\n }\n </div>\n}\n@if (showTicks() && showLabels()) {\n <div\n [class]=\"tickLabelListClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-label-position]=\"labelPosition()\">\n @for (tick of labelTicks(); track tick.index) {\n <span\n [class]=\"tickLabelClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style]=\"tick | labelStyle: labelStyleArgs()\">\n @if (!tickValueTemplate()) {\n <span>{{ tick.label }}</span>\n } @else {\n <span>\n <ng-container\n *ngTemplateOutlet=\"\n tickValueTemplate() ?? null;\n context: { $implicit: tick.value }\n \"></ng-container>\n </span>\n }\n </span>\n }\n </div>\n}\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"handleFocused()\"\n [style]=\"handleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? handlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? handlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? handlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"effectiveMin()\"\n [attr.aria-valuemax]=\"effectiveMax()\"\n [attr.aria-valuenow]=\"normalizedValue()\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-label]=\"computedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n #sliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue() }\"></ng-container>\n }\n</div>\n",
1237
+ template: "<div\n [class]=\"trackClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style.height]=\"orientation() === 'horizontal' ? sliderTrackSize() : undefined\"\n [style.width]=\"orientation() === 'vertical' ? sliderTrackSize() : undefined\"\n [style]=\"trackBackgroundStyle()\">\n <div\n [class]=\"selectionClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [style.left.%]=\"horizontalSelectionLeft()\"\n [style.right.%]=\"horizontalSelectionRight()\"\n [style.bottom.%]=\"orientation() === 'vertical' ? selectionLeft() : undefined\"\n [style.top.%]=\"orientation() === 'vertical' ? 100 - selectionRight() : undefined\"\n [style]=\"selectionBackgroundStyle()\"></div>\n</div>\n@if (showTicks()) {\n <div [class]=\"tickListClasses()\" [attr.data-orientation]=\"orientation()\">\n @for (tick of renderTicks(); track tick.index) {\n <span\n [class]=\"tickClasses()\"\n [style]=\"tick | tickStyle: tickStyleArgs()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-value]=\"tick.value\"\n data-slider-tick>\n </span>\n }\n </div>\n}\n@if (showTicks() && showLabels()) {\n <div\n [class]=\"tickLabelListClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-label-position]=\"labelPosition()\">\n @for (tick of labelTicks(); track tick.index) {\n <span\n [class]=\"tickLabelClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style]=\"tick | labelStyle: labelStyleArgs()\">\n @if (!tickValueTemplate()) {\n <span>{{ tick.label }}</span>\n } @else {\n <span>\n <ng-container\n *ngTemplateOutlet=\"\n tickValueTemplate() ?? null;\n context: { $implicit: tick.value }\n \"></ng-container>\n </span>\n }\n </span>\n }\n </div>\n}\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"handleFocused()\"\n [style]=\"handleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? handlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? handlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? handlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"effectiveMin()\"\n [attr.aria-valuemax]=\"effectiveMax()\"\n [attr.aria-valuenow]=\"normalizedValue()\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-label]=\"computedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n #sliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue() }\"></ng-container>\n }\n</div>\n",
1235
1238
  dependencies: [
1236
1239
  {
1237
1240
  kind: "directive",
@@ -1281,7 +1284,7 @@ i0.ɵɵngDeclareClassMetadata({
1281
1284
  "[attr.data-orientation]": "orientation()",
1282
1285
  "[attr.data-readonly]": "readonly() || null"
1283
1286
  },
1284
- template: "<div\n [class]=\"trackClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style.height]=\"orientation() === 'horizontal' ? sliderTrackSize() : undefined\"\n [style.width]=\"orientation() === 'vertical' ? sliderTrackSize() : undefined\"\n [style]=\"trackBackgroundStyle()\">\n <div\n [class]=\"selectionClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [style.left.%]=\"horizontalSelectionLeft()\"\n [style.right.%]=\"horizontalSelectionRight()\"\n [style.bottom.%]=\"orientation() === 'vertical' ? selectionLeft() : undefined\"\n [style.top.%]=\"orientation() === 'vertical' ? 100 - selectionRight() : undefined\"\n [style]=\"selectionBackgroundStyle()\"></div>\n</div>\n@if (showTicks()) {\n <div [class]=\"tickListClasses()\" [attr.data-orientation]=\"orientation()\">\n @for (tick of renderTicks(); track tick.index) {\n <span\n [class]=\"tickClasses()\"\n [style]=\"tick | tickStyle: tickStyleArgs()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-value]=\"tick.value\"\n data-slider-tick>\n </span>\n }\n </div>\n}\n@if (showTicks() && showLabels()) {\n <div\n [class]=\"tickLabelListClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-label-position]=\"labelPosition()\">\n @for (tick of labelTicks(); track tick.index) {\n <span\n [class]=\"tickLabelClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style]=\"tick | labelStyle: labelStyleArgs()\">\n @if (!tickValueTemplate()) {\n <span>{{ tick.label }}</span>\n } @else {\n <span>\n <ng-container\n *ngTemplateOutlet=\"\n tickValueTemplate() ?? null;\n context: { $implicit: tick.value }\n \"></ng-container>\n </span>\n }\n </span>\n }\n </div>\n}\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"handleFocused()\"\n [style]=\"handleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? handlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? handlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? handlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"effectiveMin()\"\n [attr.aria-valuemax]=\"effectiveMax()\"\n [attr.aria-valuenow]=\"normalizedValue()\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-label]=\"computedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n #sliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue() }\"></ng-container>\n }\n</div>\n"
1287
+ template: "<div\n [class]=\"trackClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style.height]=\"orientation() === 'horizontal' ? sliderTrackSize() : undefined\"\n [style.width]=\"orientation() === 'vertical' ? sliderTrackSize() : undefined\"\n [style]=\"trackBackgroundStyle()\">\n <div\n [class]=\"selectionClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [style.left.%]=\"horizontalSelectionLeft()\"\n [style.right.%]=\"horizontalSelectionRight()\"\n [style.bottom.%]=\"orientation() === 'vertical' ? selectionLeft() : undefined\"\n [style.top.%]=\"orientation() === 'vertical' ? 100 - selectionRight() : undefined\"\n [style]=\"selectionBackgroundStyle()\"></div>\n</div>\n@if (showTicks()) {\n <div [class]=\"tickListClasses()\" [attr.data-orientation]=\"orientation()\">\n @for (tick of renderTicks(); track tick.index) {\n <span\n [class]=\"tickClasses()\"\n [style]=\"tick | tickStyle: tickStyleArgs()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-value]=\"tick.value\"\n data-slider-tick>\n </span>\n }\n </div>\n}\n@if (showTicks() && showLabels()) {\n <div\n [class]=\"tickLabelListClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-label-position]=\"labelPosition()\">\n @for (tick of labelTicks(); track tick.index) {\n <span\n [class]=\"tickLabelClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style]=\"tick | labelStyle: labelStyleArgs()\">\n @if (!tickValueTemplate()) {\n <span>{{ tick.label }}</span>\n } @else {\n <span>\n <ng-container\n *ngTemplateOutlet=\"\n tickValueTemplate() ?? null;\n context: { $implicit: tick.value }\n \"></ng-container>\n </span>\n }\n </span>\n }\n </div>\n}\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"handleFocused()\"\n [style]=\"handleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? handlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? handlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? handlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"effectiveMin()\"\n [attr.aria-valuemax]=\"effectiveMax()\"\n [attr.aria-valuenow]=\"normalizedValue()\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-label]=\"computedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n #sliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue() }\"></ng-container>\n }\n</div>\n"
1285
1288
  }]
1286
1289
  }],
1287
1290
  propDecorators: {
@@ -1573,7 +1576,7 @@ var RangeSliderComponent = class RangeSliderComponent extends SliderBaseComponen
1573
1576
  }],
1574
1577
  usesInheritance: true,
1575
1578
  ngImport: i0,
1576
- template: "<div\n [class]=\"trackClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style.height]=\"orientation() === 'horizontal' ? sliderTrackSize() : undefined\"\n [style.width]=\"orientation() === 'vertical' ? sliderTrackSize() : undefined\"\n [style]=\"trackBackgroundStyle()\">\n <div\n [class]=\"selectionClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [style.left.%]=\"horizontalSelectionLeft()\"\n [style.right.%]=\"horizontalSelectionRight()\"\n [style.bottom.%]=\"orientation() === 'vertical' ? selectionLeft() : undefined\"\n [style.top.%]=\"orientation() === 'vertical' ? 100 - selectionRight() : undefined\"\n [style]=\"selectionBackgroundStyle()\"></div>\n</div>\n@if (showTicks()) {\n <div [class]=\"tickListClasses()\" [attr.data-orientation]=\"orientation()\">\n @for (tick of renderTicks(); track tick.index) {\n <span\n [class]=\"tickClasses()\"\n [style]=\"tick | tickStyle: tickStyleArgs()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-value]=\"tick.value\"\n data-slider-tick>\n </span>\n }\n </div>\n}\n@if (showTicks() && showLabels()) {\n <div\n [class]=\"tickLabelListClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-label-position]=\"labelPosition()\">\n @for (tick of labelTicks(); track tick.index) {\n <span\n [class]=\"tickLabelClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style]=\"tick | labelStyle: labelStyleArgs()\">\n @if (!tickValueTemplate()) {\n <span>{{ tick.label }}</span>\n } @else {\n <span>\n <ng-container\n *ngTemplateOutlet=\"\n tickValueTemplate() ?? null;\n context: { $implicit: tick.value }\n \"></ng-container>\n </span>\n }\n </span>\n }\n </div>\n}\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"primaryHandleFocused()\"\n [style]=\"primaryHandleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? primaryHandlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? primaryHandlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? primaryHandlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"effectiveMin()\"\n [attr.aria-valuemax]=\"normalizedValue()[1]\"\n [attr.aria-valuenow]=\"normalizedValue()[0]\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()[0]) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-label]=\"computedAriaLabelStart()\"\n [attr.aria-labelledby]=\"startLabelledBy()\"\n [attr.id]=\"startHandleId\"\n #sliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue()[0] }\"></ng-container>\n }\n</div>\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"secondaryHandleFocused()\"\n [style]=\"secondaryHandleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? secondaryHandlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? secondaryHandlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? secondaryHandlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"normalizedValue()[0]\"\n [attr.aria-valuemax]=\"effectiveMax()\"\n [attr.aria-valuenow]=\"normalizedValue()[1]\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()[1]) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-label]=\"computedAriaLabelEnd()\"\n [attr.aria-labelledby]=\"endLabelledBy()\"\n [attr.id]=\"endHandleId\"\n #secondarySliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue()[1] }\"></ng-container>\n }\n</div>\n",
1579
+ template: "<div\n [class]=\"trackClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style.height]=\"orientation() === 'horizontal' ? sliderTrackSize() : undefined\"\n [style.width]=\"orientation() === 'vertical' ? sliderTrackSize() : undefined\"\n [style]=\"trackBackgroundStyle()\">\n <div\n [class]=\"selectionClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [style.left.%]=\"horizontalSelectionLeft()\"\n [style.right.%]=\"horizontalSelectionRight()\"\n [style.bottom.%]=\"orientation() === 'vertical' ? selectionLeft() : undefined\"\n [style.top.%]=\"orientation() === 'vertical' ? 100 - selectionRight() : undefined\"\n [style]=\"selectionBackgroundStyle()\"></div>\n</div>\n@if (showTicks()) {\n <div [class]=\"tickListClasses()\" [attr.data-orientation]=\"orientation()\">\n @for (tick of renderTicks(); track tick.index) {\n <span\n [class]=\"tickClasses()\"\n [style]=\"tick | tickStyle: tickStyleArgs()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-value]=\"tick.value\"\n data-slider-tick>\n </span>\n }\n </div>\n}\n@if (showTicks() && showLabels()) {\n <div\n [class]=\"tickLabelListClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-label-position]=\"labelPosition()\">\n @for (tick of labelTicks(); track tick.index) {\n <span\n [class]=\"tickLabelClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style]=\"tick | labelStyle: labelStyleArgs()\">\n @if (!tickValueTemplate()) {\n <span>{{ tick.label }}</span>\n } @else {\n <span>\n <ng-container\n *ngTemplateOutlet=\"\n tickValueTemplate() ?? null;\n context: { $implicit: tick.value }\n \"></ng-container>\n </span>\n }\n </span>\n }\n </div>\n}\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"primaryHandleFocused()\"\n [style]=\"primaryHandleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? primaryHandlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? primaryHandlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? primaryHandlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"effectiveMin()\"\n [attr.aria-valuemax]=\"normalizedValue()[1]\"\n [attr.aria-valuenow]=\"normalizedValue()[0]\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()[0]) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-label]=\"computedAriaLabelStart()\"\n [attr.aria-labelledby]=\"startLabelledBy()\"\n [attr.id]=\"startHandleId\"\n #sliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue()[0] }\"></ng-container>\n }\n</div>\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"secondaryHandleFocused()\"\n [style]=\"secondaryHandleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? secondaryHandlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? secondaryHandlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? secondaryHandlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"normalizedValue()[0]\"\n [attr.aria-valuemax]=\"effectiveMax()\"\n [attr.aria-valuenow]=\"normalizedValue()[1]\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()[1]) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-label]=\"computedAriaLabelEnd()\"\n [attr.aria-labelledby]=\"endLabelledBy()\"\n [attr.id]=\"endHandleId\"\n #secondarySliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue()[1] }\"></ng-container>\n }\n</div>\n",
1577
1580
  dependencies: [
1578
1581
  {
1579
1582
  kind: "directive",
@@ -1626,7 +1629,7 @@ i0.ɵɵngDeclareClassMetadata({
1626
1629
  "[attr.aria-labelledby]": "labelledBy()",
1627
1630
  "[attr.role]": "'group'"
1628
1631
  },
1629
- template: "<div\n [class]=\"trackClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style.height]=\"orientation() === 'horizontal' ? sliderTrackSize() : undefined\"\n [style.width]=\"orientation() === 'vertical' ? sliderTrackSize() : undefined\"\n [style]=\"trackBackgroundStyle()\">\n <div\n [class]=\"selectionClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [style.left.%]=\"horizontalSelectionLeft()\"\n [style.right.%]=\"horizontalSelectionRight()\"\n [style.bottom.%]=\"orientation() === 'vertical' ? selectionLeft() : undefined\"\n [style.top.%]=\"orientation() === 'vertical' ? 100 - selectionRight() : undefined\"\n [style]=\"selectionBackgroundStyle()\"></div>\n</div>\n@if (showTicks()) {\n <div [class]=\"tickListClasses()\" [attr.data-orientation]=\"orientation()\">\n @for (tick of renderTicks(); track tick.index) {\n <span\n [class]=\"tickClasses()\"\n [style]=\"tick | tickStyle: tickStyleArgs()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-value]=\"tick.value\"\n data-slider-tick>\n </span>\n }\n </div>\n}\n@if (showTicks() && showLabels()) {\n <div\n [class]=\"tickLabelListClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-label-position]=\"labelPosition()\">\n @for (tick of labelTicks(); track tick.index) {\n <span\n [class]=\"tickLabelClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style]=\"tick | labelStyle: labelStyleArgs()\">\n @if (!tickValueTemplate()) {\n <span>{{ tick.label }}</span>\n } @else {\n <span>\n <ng-container\n *ngTemplateOutlet=\"\n tickValueTemplate() ?? null;\n context: { $implicit: tick.value }\n \"></ng-container>\n </span>\n }\n </span>\n }\n </div>\n}\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"primaryHandleFocused()\"\n [style]=\"primaryHandleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? primaryHandlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? primaryHandlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? primaryHandlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"effectiveMin()\"\n [attr.aria-valuemax]=\"normalizedValue()[1]\"\n [attr.aria-valuenow]=\"normalizedValue()[0]\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()[0]) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-label]=\"computedAriaLabelStart()\"\n [attr.aria-labelledby]=\"startLabelledBy()\"\n [attr.id]=\"startHandleId\"\n #sliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue()[0] }\"></ng-container>\n }\n</div>\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"secondaryHandleFocused()\"\n [style]=\"secondaryHandleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? secondaryHandlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? secondaryHandlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? secondaryHandlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"normalizedValue()[0]\"\n [attr.aria-valuemax]=\"effectiveMax()\"\n [attr.aria-valuenow]=\"normalizedValue()[1]\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()[1]) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-label]=\"computedAriaLabelEnd()\"\n [attr.aria-labelledby]=\"endLabelledBy()\"\n [attr.id]=\"endHandleId\"\n #secondarySliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue()[1] }\"></ng-container>\n }\n</div>\n"
1632
+ template: "<div\n [class]=\"trackClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style.height]=\"orientation() === 'horizontal' ? sliderTrackSize() : undefined\"\n [style.width]=\"orientation() === 'vertical' ? sliderTrackSize() : undefined\"\n [style]=\"trackBackgroundStyle()\">\n <div\n [class]=\"selectionClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [style.left.%]=\"horizontalSelectionLeft()\"\n [style.right.%]=\"horizontalSelectionRight()\"\n [style.bottom.%]=\"orientation() === 'vertical' ? selectionLeft() : undefined\"\n [style.top.%]=\"orientation() === 'vertical' ? 100 - selectionRight() : undefined\"\n [style]=\"selectionBackgroundStyle()\"></div>\n</div>\n@if (showTicks()) {\n <div [class]=\"tickListClasses()\" [attr.data-orientation]=\"orientation()\">\n @for (tick of renderTicks(); track tick.index) {\n <span\n [class]=\"tickClasses()\"\n [style]=\"tick | tickStyle: tickStyleArgs()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-value]=\"tick.value\"\n data-slider-tick>\n </span>\n }\n </div>\n}\n@if (showTicks() && showLabels()) {\n <div\n [class]=\"tickLabelListClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-label-position]=\"labelPosition()\">\n @for (tick of labelTicks(); track tick.index) {\n <span\n [class]=\"tickLabelClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [style]=\"tick | labelStyle: labelStyleArgs()\">\n @if (!tickValueTemplate()) {\n <span>{{ tick.label }}</span>\n } @else {\n <span>\n <ng-container\n *ngTemplateOutlet=\"\n tickValueTemplate() ?? null;\n context: { $implicit: tick.value }\n \"></ng-container>\n </span>\n }\n </span>\n }\n </div>\n}\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"primaryHandleFocused()\"\n [style]=\"primaryHandleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? primaryHandlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? primaryHandlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? primaryHandlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"effectiveMin()\"\n [attr.aria-valuemax]=\"normalizedValue()[1]\"\n [attr.aria-valuenow]=\"normalizedValue()[0]\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()[0]) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-label]=\"computedAriaLabelStart()\"\n [attr.aria-labelledby]=\"startLabelledBy()\"\n [attr.id]=\"startHandleId\"\n #sliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue()[0] }\"></ng-container>\n }\n</div>\n<div\n [class]=\"sliderHandleClasses()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-dragging]=\"dragging()\"\n [attr.data-rtl]=\"isRtl() || null\"\n [attr.data-focused]=\"secondaryHandleFocused()\"\n [style]=\"secondaryHandleStyle()\"\n [style.left.%]=\"orientation() === 'horizontal' && !isRtl() ? secondaryHandlePosition() : undefined\"\n [style.right.%]=\"orientation() === 'horizontal' && isRtl() ? secondaryHandlePosition() : undefined\"\n [style.bottom.%]=\"orientation() === 'vertical' ? secondaryHandlePosition() : undefined\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n [attr.role]=\"'slider'\"\n [attr.aria-valuemin]=\"normalizedValue()[0]\"\n [attr.aria-valuemax]=\"effectiveMax()\"\n [attr.aria-valuenow]=\"normalizedValue()[1]\"\n [attr.aria-valuetext]=\"ariaValueText() ? ariaValueText()!(normalizedValue()[1]) : null\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-disabled]=\"effectiveDisabled() || null\"\n [attr.aria-invalid]=\"invalidState() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalidState() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-label]=\"computedAriaLabelEnd()\"\n [attr.aria-labelledby]=\"endLabelledBy()\"\n [attr.id]=\"endHandleId\"\n #secondarySliderHandle>\n @if (handleTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"handleTemplate() ?? null; context: { $implicit: normalizedValue()[1] }\"></ng-container>\n }\n</div>\n"
1630
1633
  }]
1631
1634
  }],
1632
1635
  propDecorators: {
@@ -199,8 +199,10 @@ var SwitchComponent = class SwitchComponent {
199
199
  this.#hostElementRef = inject(ElementRef);
200
200
  this.#label = injectLabelAssociation({
201
201
  activate: () => this.activateFromLabel(),
202
+ ariaDescribedBy: () => this.ariaDescribedBy(),
202
203
  ariaLabel: () => this.ariaLabel(),
203
- ariaLabelledBy: () => this.ariaLabelledBy()
204
+ ariaLabelledBy: () => this.ariaLabelledBy(),
205
+ focus: () => this.focus()
204
206
  });
205
207
  this.classes = computed(() => {
206
208
  const rounded = this.rounded();
@@ -211,6 +213,7 @@ var SwitchComponent = class SwitchComponent {
211
213
  });
212
214
  return twMerge(classes, this.userClass());
213
215
  }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
216
+ this.describedBy = this.#label.describedBy;
214
217
  this.effectiveDisabled = injectEffectiveDisabled(() => this.disabled());
215
218
  this.handleClasses = computed(() => {
216
219
  const rounded = this.rounded();
@@ -239,6 +242,10 @@ var SwitchComponent = class SwitchComponent {
239
242
  ...ngDevMode ? { debugName: "onLabelTemplate" } : /* istanbul ignore next */ {},
240
243
  read: TemplateRef
241
244
  });
245
+ this.ariaDescribedBy = input("", {
246
+ ...ngDevMode ? { debugName: "ariaDescribedBy" } : /* istanbul ignore next */ {},
247
+ alias: "aria-describedby"
248
+ });
242
249
  this.ariaLabel = input(null, {
243
250
  ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
244
251
  alias: "aria-label"
@@ -325,6 +332,13 @@ var SwitchComponent = class SwitchComponent {
325
332
  isStandalone: true,
326
333
  selector: "mona-switch",
327
334
  inputs: {
335
+ ariaDescribedBy: {
336
+ classPropertyName: "ariaDescribedBy",
337
+ publicName: "aria-describedby",
338
+ isSignal: true,
339
+ isRequired: false,
340
+ transformFunction: null
341
+ },
328
342
  ariaLabel: {
329
343
  classPropertyName: "ariaLabel",
330
344
  publicName: "aria-label",
@@ -434,6 +448,7 @@ var SwitchComponent = class SwitchComponent {
434
448
  "attr.role": "'switch'",
435
449
  "attr.aria-checked": "checked()",
436
450
  "attr.aria-disabled": "effectiveDisabled() || undefined",
451
+ "attr.aria-describedby": "describedBy()",
437
452
  "attr.aria-label": "ariaLabel()",
438
453
  "attr.aria-labelledby": "labelledBy()",
439
454
  "attr.aria-readonly": "readonly() || null",
@@ -503,6 +518,7 @@ i0.ɵɵngDeclareClassMetadata({
503
518
  "[attr.role]": "'switch'",
504
519
  "[attr.aria-checked]": "checked()",
505
520
  "[attr.aria-disabled]": "effectiveDisabled() || undefined",
521
+ "[attr.aria-describedby]": "describedBy()",
506
522
  "[attr.aria-label]": "ariaLabel()",
507
523
  "[attr.aria-labelledby]": "labelledBy()",
508
524
  "[attr.aria-readonly]": "readonly() || null",
@@ -543,6 +559,14 @@ i0.ɵɵngDeclareClassMetadata({
543
559
  isSignal: true
544
560
  }]
545
561
  }],
562
+ ariaDescribedBy: [{
563
+ type: i0.Input,
564
+ args: [{
565
+ isSignal: true,
566
+ alias: "aria-describedby",
567
+ required: false
568
+ }]
569
+ }],
546
570
  ariaLabel: [{
547
571
  type: i0.Input,
548
572
  args: [{
@@ -167,8 +167,10 @@ var TextBoxComponent = class TextBoxComponent {
167
167
  this.#hostElementRef = inject(ElementRef);
168
168
  this.#i18n = inject(MonaI18nService);
169
169
  this.#label = injectLabelAssociation({
170
+ ariaDescribedBy: () => this.ariaDescribedBy(),
170
171
  ariaLabel: () => this.ariaLabel(),
171
- ariaLabelledBy: () => this.ariaLabelledBy()
172
+ ariaLabelledBy: () => this.ariaLabelledBy(),
173
+ focus: () => this.focus()
172
174
  });
173
175
  this.classes = computed(() => {
174
176
  const rounded = this.rounded();
@@ -180,6 +182,7 @@ var TextBoxComponent = class TextBoxComponent {
180
182
  const userClass = this.userClass();
181
183
  return twMerge(classes, userClass);
182
184
  }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
185
+ this.describedBy = this.#label.describedBy;
183
186
  this.effectiveDisabled = injectEffectiveDisabled(() => this.disabled());
184
187
  this.inputRef = viewChild.required("input", ...ngDevMode ? [{ debugName: "inputRef" }] : /* istanbul ignore next */ []);
185
188
  this.invalidInput = computed(() => this.touched() && (this.invalid() || this.required() && !this.value()), ...ngDevMode ? [{ debugName: "invalidInput" }] : /* istanbul ignore next */ []);
@@ -490,7 +493,7 @@ var TextBoxComponent = class TextBoxComponent {
490
493
  isSignal: true
491
494
  }],
492
495
  ngImport: i0,
493
- template: "@for (prefixTemplate of prefixTemplateList(); track $index) {\n <span class=\"flex h-full flex-wrap items-center\">\n <ng-container *ngTemplateOutlet=\"prefixTemplate\"></ng-container>\n </span>\n}\n<input\n [id]=\"inputId()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [placeholder]=\"placeholder()\"\n [type]=\"type()\"\n [class]=\"inputClass()\"\n [style]=\"inputStyle()\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-invalid]=\"invalidInput() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.minlength]=\"minLength() ?? null\"\n [attr.name]=\"name() || null\"\n [monaAttributeBinder]=\"inputAttributes()\"\n [value]=\"value()\"\n (input)=\"onValueChange(input.value)\"\n (blur)=\"onInputBlur($event)\"\n (focus)=\"inputFocus.emit($event)\"\n #input />\n\n@if (showClearButton()) {\n <button\n monaButton\n look=\"ghost\"\n size=\"small\"\n class=\"me-1 size-6 shrink-0 p-0 text-muted-foreground hover:text-foreground\"\n [attr.aria-label]=\"messages().clear\"\n (click)=\"onClearClick()\">\n <svg lucideX class=\"size-4\"></svg>\n </button>\n}\n\n@for (suffixTemplate of suffixTemplateList(); track $index) {\n <span class=\"flex h-full flex-wrap items-center\">\n <ng-container *ngTemplateOutlet=\"suffixTemplate\"></ng-container>\n </span>\n}\n",
496
+ template: "@for (prefixTemplate of prefixTemplateList(); track $index) {\n <span class=\"flex h-full flex-wrap items-center\">\n <ng-container *ngTemplateOutlet=\"prefixTemplate\"></ng-container>\n </span>\n}\n<input\n [id]=\"inputId()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [placeholder]=\"placeholder()\"\n [type]=\"type()\"\n [class]=\"inputClass()\"\n [style]=\"inputStyle()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"invalidInput() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.minlength]=\"minLength() ?? null\"\n [attr.name]=\"name() || null\"\n [monaAttributeBinder]=\"inputAttributes()\"\n [value]=\"value()\"\n (input)=\"onValueChange(input.value)\"\n (blur)=\"onInputBlur($event)\"\n (focus)=\"inputFocus.emit($event)\"\n #input />\n\n@if (showClearButton()) {\n <button\n monaButton\n look=\"ghost\"\n size=\"small\"\n class=\"me-1 size-6 shrink-0 p-0 text-muted-foreground hover:text-foreground\"\n [attr.aria-label]=\"messages().clear\"\n (click)=\"onClearClick()\">\n <svg lucideX class=\"size-4\"></svg>\n </button>\n}\n\n@for (suffixTemplate of suffixTemplateList(); track $index) {\n <span class=\"flex h-full flex-wrap items-center\">\n <ng-container *ngTemplateOutlet=\"suffixTemplate\"></ng-container>\n </span>\n}\n",
494
497
  dependencies: [
495
498
  {
496
499
  kind: "directive",
@@ -564,7 +567,7 @@ i0.ɵɵngDeclareClassMetadata({
564
567
  "[class]": "classes()",
565
568
  "(focusout)": "onFocusOut($event)"
566
569
  },
567
- template: "@for (prefixTemplate of prefixTemplateList(); track $index) {\n <span class=\"flex h-full flex-wrap items-center\">\n <ng-container *ngTemplateOutlet=\"prefixTemplate\"></ng-container>\n </span>\n}\n<input\n [id]=\"inputId()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [placeholder]=\"placeholder()\"\n [type]=\"type()\"\n [class]=\"inputClass()\"\n [style]=\"inputStyle()\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-invalid]=\"invalidInput() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.minlength]=\"minLength() ?? null\"\n [attr.name]=\"name() || null\"\n [monaAttributeBinder]=\"inputAttributes()\"\n [value]=\"value()\"\n (input)=\"onValueChange(input.value)\"\n (blur)=\"onInputBlur($event)\"\n (focus)=\"inputFocus.emit($event)\"\n #input />\n\n@if (showClearButton()) {\n <button\n monaButton\n look=\"ghost\"\n size=\"small\"\n class=\"me-1 size-6 shrink-0 p-0 text-muted-foreground hover:text-foreground\"\n [attr.aria-label]=\"messages().clear\"\n (click)=\"onClearClick()\">\n <svg lucideX class=\"size-4\"></svg>\n </button>\n}\n\n@for (suffixTemplate of suffixTemplateList(); track $index) {\n <span class=\"flex h-full flex-wrap items-center\">\n <ng-container *ngTemplateOutlet=\"suffixTemplate\"></ng-container>\n </span>\n}\n"
570
+ template: "@for (prefixTemplate of prefixTemplateList(); track $index) {\n <span class=\"flex h-full flex-wrap items-center\">\n <ng-container *ngTemplateOutlet=\"prefixTemplate\"></ng-container>\n </span>\n}\n<input\n [id]=\"inputId()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [placeholder]=\"placeholder()\"\n [type]=\"type()\"\n [class]=\"inputClass()\"\n [style]=\"inputStyle()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"invalidInput() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.minlength]=\"minLength() ?? null\"\n [attr.name]=\"name() || null\"\n [monaAttributeBinder]=\"inputAttributes()\"\n [value]=\"value()\"\n (input)=\"onValueChange(input.value)\"\n (blur)=\"onInputBlur($event)\"\n (focus)=\"inputFocus.emit($event)\"\n #input />\n\n@if (showClearButton()) {\n <button\n monaButton\n look=\"ghost\"\n size=\"small\"\n class=\"me-1 size-6 shrink-0 p-0 text-muted-foreground hover:text-foreground\"\n [attr.aria-label]=\"messages().clear\"\n (click)=\"onClearClick()\">\n <svg lucideX class=\"size-4\"></svg>\n </button>\n}\n\n@for (suffixTemplate of suffixTemplateList(); track $index) {\n <span class=\"flex h-full flex-wrap items-center\">\n <ng-container *ngTemplateOutlet=\"suffixTemplate\"></ng-container>\n </span>\n}\n"
568
571
  }]
569
572
  }],
570
573
  propDecorators: {
@@ -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
+ }
@@ -170,6 +170,22 @@
170
170
  "datePicker": "Date picker",
171
171
  "openCalendar": "Open calendar"
172
172
  },
173
+ "dateRangePicker": {
174
+ "dateRangePicker": "Date range picker",
175
+ "end": "End date",
176
+ "lastDays": "Last {count, plural, one {# day} other {# days}}",
177
+ "lastMonth": "Last month",
178
+ "lastWeek": "Last week",
179
+ "lastYear": "Last year",
180
+ "openCalendar": "Open calendar",
181
+ "presets": "Quick ranges",
182
+ "start": "Start date",
183
+ "thisMonth": "This month",
184
+ "thisWeek": "This week",
185
+ "thisYear": "This year",
186
+ "today": "Today",
187
+ "yesterday": "Yesterday"
188
+ },
173
189
  "dateTimePicker": {
174
190
  "calendar": "Calendar",
175
191
  "cancel": "Cancel",
@@ -293,6 +309,19 @@
293
309
  "startsWith": "Starts with",
294
310
  "value": "Value"
295
311
  },
312
+ "formField": {
313
+ "email": "Enter a valid email address.",
314
+ "invalid": "Enter a valid value.",
315
+ "max": "The value must be at most {max}.",
316
+ "maxDate": "The date must be on or before {maxDate}.",
317
+ "maxLength": "Enter at most {maxLength, plural, one {# character} other {# characters}}.",
318
+ "min": "The value must be at least {min}.",
319
+ "minDate": "The date must be on or after {minDate}.",
320
+ "minLength": "Enter at least {minLength, plural, one {# character} other {# characters}}.",
321
+ "optional": "Optional",
322
+ "pattern": "Enter a value in the expected format.",
323
+ "required": "This field is required."
324
+ },
296
325
  "grid": {
297
326
  "all": "(All)",
298
327
  "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.
@@ -71,6 +72,7 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
71
72
  - [Color Palette](docs/color-palette.md): A grid of selectable color swatches from a built-in or custom scheme.
72
73
  - [Color Picker](docs/color-picker.md): A compact control that opens a color palette or gradient editor.
73
74
  - [Date Picker](docs/date-picker.md): A date input that opens a calendar popup.
75
+ - [Date Range Picker](docs/date-range-picker.md): Two date inputs for a range of days, with a calendar popup that shows two months.
74
76
  - [Date Time Picker](docs/datetime-picker.md): An input for choosing a date and a time together.
75
77
  - [Time Picker](docs/time-picker.md): A time input that opens a time selector popup.
76
78
 
@@ -173,6 +175,7 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
173
175
  - [`@nanahoshi/mona-ui/contextmenu`](docs/api/contextmenu.md): 11 exports, in full.
174
176
  - [`@nanahoshi/mona-ui/date-input`](docs/api/date-input.md): 10 exports, in full.
175
177
  - [`@nanahoshi/mona-ui/date-picker`](docs/api/date-picker.md): 2 exports, in full.
178
+ - [`@nanahoshi/mona-ui/date-range-picker`](docs/api/date-range-picker.md): 6 exports, in full.
176
179
  - [`@nanahoshi/mona-ui/datetime-picker`](docs/api/datetime-picker.md): 2 exports, in full.
177
180
  - [`@nanahoshi/mona-ui/dialog`](docs/api/dialog.md): 18 exports, in full.
178
181
  - [`@nanahoshi/mona-ui/dropdown-button`](docs/api/dropdown-button.md): 12 exports, in full.
@@ -182,8 +185,9 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
182
185
  - [`@nanahoshi/mona-ui/expansion-panel`](docs/api/expansion-panel.md): 5 exports, in full.
183
186
  - [`@nanahoshi/mona-ui/fieldset`](docs/api/fieldset.md): 2 exports, in full.
184
187
  - [`@nanahoshi/mona-ui/filter`](docs/api/filter.md): 7 exports, in full.
188
+ - [`@nanahoshi/mona-ui/form-field`](docs/api/form-field.md): 6 exports, in full.
185
189
  - [`@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.
190
+ - [`@nanahoshi/mona-ui/i18n`](docs/api/i18n.md): 111 exports, in full.
187
191
  - [`@nanahoshi/mona-ui/label`](docs/api/label.md): 4 exports, in full.
188
192
  - [`@nanahoshi/mona-ui/list`](docs/api/list.md): 10 exports, in full.
189
193
  - [`@nanahoshi/mona-ui/list-box`](docs/api/list-box.md): 16 exports, in full.