@nanahoshi/mona-ui 0.29.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 (114) 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 +44 -0
  7. package/docs/api/locales.md +14 -14
  8. package/docs/api/qr-code.md +287 -0
  9. package/docs/api/segmented.md +1 -0
  10. package/docs/api/switch.md +1 -0
  11. package/docs/dropdown-list.md +1 -1
  12. package/docs/form-field.md +425 -0
  13. package/docs/forms.md +12 -4
  14. package/docs/label.md +4 -5
  15. package/docs/numeric-textbox.md +1 -1
  16. package/docs/qr-code.md +377 -0
  17. package/docs/radio-button.md +2 -1
  18. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +15 -4
  19. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +25 -1
  20. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +5 -2
  21. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +29 -3
  22. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +25 -1
  23. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +31 -3
  24. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +15 -4
  25. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +15 -4
  26. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +15 -4
  27. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +19 -7
  28. package/fesm2022/nanahoshi-mona-ui-editor.mjs +24 -4
  29. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -0
  30. package/fesm2022/nanahoshi-mona-ui-form-field.mjs +666 -0
  31. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +32 -0
  32. package/fesm2022/nanahoshi-mona-ui-internal.mjs +27 -2
  33. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +28 -0
  34. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +14 -0
  35. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +20 -0
  36. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +20 -0
  37. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +14 -0
  38. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +20 -0
  39. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +14 -0
  40. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +14 -0
  41. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +24 -0
  42. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +20 -0
  43. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +24 -0
  44. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +14 -0
  45. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +14 -0
  46. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +14 -0
  47. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +19 -7
  48. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +14 -5
  49. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +6 -3
  50. package/fesm2022/nanahoshi-mona-ui-qr-code.mjs +1671 -0
  51. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +15 -9
  52. package/fesm2022/nanahoshi-mona-ui-rating.mjs +6 -3
  53. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +25 -1
  54. package/fesm2022/nanahoshi-mona-ui-slider.mjs +8 -5
  55. package/fesm2022/nanahoshi-mona-ui-switch.mjs +25 -1
  56. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +6 -3
  57. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +15 -4
  58. package/form-field/package.json +4 -0
  59. package/i18n/catalogs/en-US.messages.json +16 -0
  60. package/llms.txt +5 -1
  61. package/locales/ar-sa/ar-sa.messages.json +16 -0
  62. package/locales/de-de/de-de.messages.json +16 -0
  63. package/locales/es-es/es-es.messages.json +16 -0
  64. package/locales/fr-fr/fr-fr.messages.json +16 -0
  65. package/locales/id-id/id-id.messages.json +16 -0
  66. package/locales/it-it/it-it.messages.json +16 -0
  67. package/locales/ja-jp/ja-jp.messages.json +16 -0
  68. package/locales/ko-kr/ko-kr.messages.json +16 -0
  69. package/locales/pl-pl/pl-pl.messages.json +16 -0
  70. package/locales/pt-br/pt-br.messages.json +16 -0
  71. package/locales/ru-ru/ru-ru.messages.json +16 -0
  72. package/locales/tr-tr/tr-tr.messages.json +16 -0
  73. package/locales/zh-cn/zh-cn.messages.json +16 -0
  74. package/locales/zh-tw/zh-tw.messages.json +16 -0
  75. package/package.json +9 -1
  76. package/qr-code/package.json +4 -0
  77. package/types/nanahoshi-mona-ui-auto-complete.d.ts +2 -0
  78. package/types/nanahoshi-mona-ui-button-group.d.ts +11 -0
  79. package/types/nanahoshi-mona-ui-check-box.d.ts +1 -0
  80. package/types/nanahoshi-mona-ui-color-gradient.d.ts +11 -0
  81. package/types/nanahoshi-mona-ui-color-palette.d.ts +11 -0
  82. package/types/nanahoshi-mona-ui-color-picker.d.ts +11 -0
  83. package/types/nanahoshi-mona-ui-combo-box.d.ts +2 -0
  84. package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -0
  85. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -0
  86. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +2 -0
  87. package/types/nanahoshi-mona-ui-form-field.d.ts +173 -0
  88. package/types/nanahoshi-mona-ui-i18n.d.ts +33 -0
  89. package/types/nanahoshi-mona-ui-internal.d.ts +39 -4
  90. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +16 -0
  91. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +16 -0
  92. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +16 -0
  93. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +16 -0
  94. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +16 -0
  95. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +16 -0
  96. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +16 -0
  97. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +16 -0
  98. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +16 -0
  99. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +16 -0
  100. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +16 -0
  101. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +16 -0
  102. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +16 -0
  103. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +16 -0
  104. package/types/nanahoshi-mona-ui-multi-select.d.ts +2 -0
  105. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +2 -0
  106. package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
  107. package/types/nanahoshi-mona-ui-qr-code.d.ts +322 -0
  108. package/types/nanahoshi-mona-ui-radio-button.d.ts +2 -0
  109. package/types/nanahoshi-mona-ui-rating.d.ts +1 -0
  110. package/types/nanahoshi-mona-ui-segmented.d.ts +11 -0
  111. package/types/nanahoshi-mona-ui-slider.d.ts +1 -0
  112. package/types/nanahoshi-mona-ui-switch.d.ts +11 -0
  113. package/types/nanahoshi-mona-ui-text-box.d.ts +1 -0
  114. package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -0
@@ -4,11 +4,11 @@ import { Component, Directive, ElementRef, InjectionToken, afterNextRender, afte
4
4
  import { FormsModule } from "@angular/forms";
5
5
  import { twMerge } from "tailwind-merge";
6
6
  import { cva } from "class-variance-authority";
7
- import { createElementControlId, injectEffectiveDisabled, injectLabelAssociation, themeControlSurfaceClasses } from "@nanahoshi/mona-ui/internal";
7
+ import { FIELD_ASSOCIATION_BOUNDARY, createElementControlId, injectEffectiveDisabled, injectLabelAssociation, themeControlSurfaceClasses } from "@nanahoshi/mona-ui/internal";
8
8
  const radioGroupThemeVariants = cva("flex", {
9
9
  variants: { orientation: {
10
10
  horizontal: "flex-row flex-wrap gap-4",
11
- vertical: "flex-col gap-2"
11
+ vertical: "flex-col items-start gap-2"
12
12
  } },
13
13
  defaultVariants: { orientation: "vertical" }
14
14
  });
@@ -132,8 +132,10 @@ var RadioButtonComponent = class RadioButtonComponent {
132
132
  constructor() {
133
133
  this.#group = inject(MONA_RADIO_GROUP, { optional: true });
134
134
  this.#label = injectLabelAssociation({
135
+ ariaDescribedBy: () => this.ariaDescribedBy(),
135
136
  ariaLabel: () => this.ariaLabel(),
136
137
  ariaLabelledBy: () => this.ariaLabelledBy(),
138
+ focus: () => this.focus(),
137
139
  wrapped: false
138
140
  });
139
141
  this.containerLabelClasses = computed(() => {
@@ -142,6 +144,7 @@ var RadioButtonComponent = class RadioButtonComponent {
142
144
  const variantClasses = radioButtonContainerLabelThemeVariants({ labelSize });
143
145
  return twMerge(variantClasses, userClasses);
144
146
  }, ...ngDevMode ? [{ debugName: "containerLabelClasses" }] : /* istanbul ignore next */ []);
147
+ this.describedBy = this.#label.describedBy;
145
148
  this.effectiveDisabled = injectEffectiveDisabled(() => this.disabled() || (this.#group?.disabled() ?? false));
146
149
  this.effectiveName = computed(() => this.#group?.name() ?? this.name(), ...ngDevMode ? [{ debugName: "effectiveName" }] : /* istanbul ignore next */ []);
147
150
  this.effectiveReadonly = computed(() => this.readonly() || (this.#group?.readonly() ?? false), ...ngDevMode ? [{ debugName: "effectiveReadonly" }] : /* istanbul ignore next */ []);
@@ -409,7 +412,7 @@ var RadioButtonComponent = class RadioButtonComponent {
409
412
  isSignal: true
410
413
  }],
411
414
  ngImport: i0,
412
- template: "<label\n [class]=\"containerLabelClasses()\"\n [attr.data-disabled]=\"effectiveDisabled()\"\n [attr.data-readonly]=\"effectiveReadonly() || null\">\n @if (labelPosition() === \"before\") {\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n }\n <input\n #input\n type=\"radio\"\n [id]=\"inputId()\"\n [required]=\"effectiveRequired()\"\n [disabled]=\"effectiveDisabled()\"\n [name]=\"effectiveName()\"\n [attr.value]=\"nativeValue()\"\n [class]=\"radioButtonClasses()\"\n [checked]=\"selected()\"\n [attr.aria-invalid]=\"inputInvalid() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n (blur)=\"onBlur($event)\"\n (click)=\"onInputClick($event)\"\n (focus)=\"inputFocus.emit($event)\"\n (change)=\"onSelectionChange()\" />\n <span [class]=\"radioButtonCircleClasses()\" [attr.data-invalid]=\"invalidState() || null\">\n @if (selected()) {\n <span [class]=\"radioButtonIndicatorClasses()\"></span>\n }\n </span>\n @if (labelPosition() === \"after\") {\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n }\n</label>\n\n<ng-template #labelTemplate>\n @if (label()) {\n <span>{{ label() }}</span>\n } @else {\n <ng-content></ng-content>\n }\n</ng-template>\n",
415
+ template: "<label\n [class]=\"containerLabelClasses()\"\n [attr.data-disabled]=\"effectiveDisabled()\"\n [attr.data-readonly]=\"effectiveReadonly() || null\">\n @if (labelPosition() === \"before\") {\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n }\n <input\n #input\n type=\"radio\"\n [id]=\"inputId()\"\n [required]=\"effectiveRequired()\"\n [disabled]=\"effectiveDisabled()\"\n [name]=\"effectiveName()\"\n [attr.value]=\"nativeValue()\"\n [class]=\"radioButtonClasses()\"\n [checked]=\"selected()\"\n [attr.aria-invalid]=\"inputInvalid() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n (blur)=\"onBlur($event)\"\n (click)=\"onInputClick($event)\"\n (focus)=\"inputFocus.emit($event)\"\n (change)=\"onSelectionChange()\" />\n <span [class]=\"radioButtonCircleClasses()\" [attr.data-invalid]=\"invalidState() || null\">\n @if (selected()) {\n <span [class]=\"radioButtonIndicatorClasses()\"></span>\n }\n </span>\n @if (labelPosition() === \"after\") {\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n }\n</label>\n\n<ng-template #labelTemplate>\n @if (label()) {\n <span>{{ label() }}</span>\n } @else {\n <ng-content></ng-content>\n }\n</ng-template>\n",
413
416
  dependencies: [{
414
417
  kind: "ngmodule",
415
418
  type: FormsModule
@@ -444,7 +447,7 @@ i0.ɵɵngDeclareClassMetadata({
444
447
  "[attr.data-selected]": "selected()",
445
448
  "[attr.data-disabled]": "effectiveDisabled()"
446
449
  },
447
- template: "<label\n [class]=\"containerLabelClasses()\"\n [attr.data-disabled]=\"effectiveDisabled()\"\n [attr.data-readonly]=\"effectiveReadonly() || null\">\n @if (labelPosition() === \"before\") {\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n }\n <input\n #input\n type=\"radio\"\n [id]=\"inputId()\"\n [required]=\"effectiveRequired()\"\n [disabled]=\"effectiveDisabled()\"\n [name]=\"effectiveName()\"\n [attr.value]=\"nativeValue()\"\n [class]=\"radioButtonClasses()\"\n [checked]=\"selected()\"\n [attr.aria-invalid]=\"inputInvalid() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n (blur)=\"onBlur($event)\"\n (click)=\"onInputClick($event)\"\n (focus)=\"inputFocus.emit($event)\"\n (change)=\"onSelectionChange()\" />\n <span [class]=\"radioButtonCircleClasses()\" [attr.data-invalid]=\"invalidState() || null\">\n @if (selected()) {\n <span [class]=\"radioButtonIndicatorClasses()\"></span>\n }\n </span>\n @if (labelPosition() === \"after\") {\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n }\n</label>\n\n<ng-template #labelTemplate>\n @if (label()) {\n <span>{{ label() }}</span>\n } @else {\n <ng-content></ng-content>\n }\n</ng-template>\n"
450
+ template: "<label\n [class]=\"containerLabelClasses()\"\n [attr.data-disabled]=\"effectiveDisabled()\"\n [attr.data-readonly]=\"effectiveReadonly() || null\">\n @if (labelPosition() === \"before\") {\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n }\n <input\n #input\n type=\"radio\"\n [id]=\"inputId()\"\n [required]=\"effectiveRequired()\"\n [disabled]=\"effectiveDisabled()\"\n [name]=\"effectiveName()\"\n [attr.value]=\"nativeValue()\"\n [class]=\"radioButtonClasses()\"\n [checked]=\"selected()\"\n [attr.aria-invalid]=\"inputInvalid() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n (blur)=\"onBlur($event)\"\n (click)=\"onInputClick($event)\"\n (focus)=\"inputFocus.emit($event)\"\n (change)=\"onSelectionChange()\" />\n <span [class]=\"radioButtonCircleClasses()\" [attr.data-invalid]=\"invalidState() || null\">\n @if (selected()) {\n <span [class]=\"radioButtonIndicatorClasses()\"></span>\n }\n </span>\n @if (labelPosition() === \"after\") {\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n }\n</label>\n\n<ng-template #labelTemplate>\n @if (label()) {\n <span>{{ label() }}</span>\n } @else {\n <ng-content></ng-content>\n }\n</ng-template>\n"
448
451
  }]
449
452
  }],
450
453
  ctorParameters: () => [],
@@ -620,11 +623,14 @@ var RadioGroupComponent = class RadioGroupComponent {
620
623
  this.#hostElementRef = inject(ElementRef);
621
624
  this.#label = injectLabelAssociation({
622
625
  activate: () => this.focus(),
626
+ ariaDescribedBy: () => this.ariaDescribedBy(),
623
627
  ariaLabel: () => this.ariaLabel(),
624
- ariaLabelledBy: () => this.ariaLabelledBy()
628
+ ariaLabelledBy: () => this.ariaLabelledBy(),
629
+ focus: () => this.focus()
625
630
  });
626
631
  this.#selectionVersion = signal(0, ...ngDevMode ? [{ debugName: "#selectionVersion" }] : /* istanbul ignore next */ []);
627
632
  this.classes = computed(() => twMerge(radioGroupThemeVariants({ orientation: this.orientation() }), this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
633
+ this.describedBy = this.#label.describedBy;
628
634
  this.effectiveDisabled = injectEffectiveDisabled(() => this.disabled());
629
635
  this.invalidState = computed(() => this.touched() && this.invalid(), ...ngDevMode ? [{ debugName: "invalidState" }] : /* istanbul ignore next */ []);
630
636
  this.labelledBy = this.#label.labelledBy;
@@ -810,7 +816,7 @@ var RadioGroupComponent = class RadioGroupComponent {
810
816
  attributes: { "role": "radiogroup" },
811
817
  listeners: { "focusout": "onFocusOut($event)" },
812
818
  properties: {
813
- "attr.aria-describedby": "ariaDescribedBy() || null",
819
+ "attr.aria-describedby": "describedBy()",
814
820
  "attr.aria-disabled": "effectiveDisabled() || null",
815
821
  "attr.aria-invalid": "invalidState() ? 'true' : null",
816
822
  "attr.aria-label": "ariaLabel() || null",
@@ -826,7 +832,7 @@ var RadioGroupComponent = class RadioGroupComponent {
826
832
  providers: [{
827
833
  provide: MONA_RADIO_GROUP,
828
834
  useFactory: () => inject(RadioGroupComponent).context
829
- }],
835
+ }, ...FIELD_ASSOCIATION_BOUNDARY],
830
836
  ngImport: i0,
831
837
  template: `<ng-content />`,
832
838
  isInline: true
@@ -846,10 +852,10 @@ i0.ɵɵngDeclareClassMetadata({
846
852
  providers: [{
847
853
  provide: MONA_RADIO_GROUP,
848
854
  useFactory: () => inject(RadioGroupComponent).context
849
- }],
855
+ }, ...FIELD_ASSOCIATION_BOUNDARY],
850
856
  host: {
851
857
  role: "radiogroup",
852
- "[attr.aria-describedby]": "ariaDescribedBy() || null",
858
+ "[attr.aria-describedby]": "describedBy()",
853
859
  "[attr.aria-disabled]": "effectiveDisabled() || null",
854
860
  "[attr.aria-invalid]": "invalidState() ? 'true' : null",
855
861
  "[attr.aria-label]": "ariaLabel() || null",
@@ -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: {