@aeris-ui/core 22.0.0-alpha.5 → 22.0.0-alpha.7

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 (222) hide show
  1. package/README.md +2 -2
  2. package/fesm2022/aeris-ui-core-accordion.mjs +12 -12
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +80 -72
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +6 -6
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +6 -6
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +3 -3
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +38 -56
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +18 -18
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +61 -55
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +3 -3
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +24 -21
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +9 -9
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-color-picker.mjs +28 -40
  37. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  38. package/fesm2022/aeris-ui-core-compare.mjs +21 -25
  39. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +45 -43
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-popup.mjs +43 -39
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-context-menu.mjs +14 -17
  45. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-date-picker.mjs +321 -319
  47. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-dialog.mjs +44 -35
  49. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-divider.mjs +3 -3
  51. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-drawer.mjs +39 -34
  53. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +23 -23
  55. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-editor.mjs +22 -19
  57. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
  59. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  61. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
  63. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  65. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-form-field.mjs +31 -26
  67. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-galleria.mjs +30 -30
  69. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  71. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-icon-field.mjs +22 -17
  73. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
  75. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-input-group.mjs +25 -20
  77. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-mask.mjs +25 -24
  79. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-number.mjs +113 -46
  81. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-otp.mjs +28 -28
  83. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-text.mjs +32 -31
  85. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  87. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs +6 -6
  89. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-menu.mjs +23 -26
  91. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menubar.mjs +17 -17
  93. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-message.mjs +12 -12
  95. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
  97. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-multi-select.mjs +52 -60
  99. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
  101. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-organization-chart.mjs +9 -9
  103. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-paginator.mjs +4 -4
  105. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-panel.mjs +15 -15
  107. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-password.mjs +54 -48
  109. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
  111. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-popover.mjs +27 -28
  113. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
  115. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
  117. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-radio-button.mjs +24 -21
  119. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-rating.mjs +12 -14
  121. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
  123. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
  125. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-select.mjs +105 -89
  127. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  129. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-slider.mjs +42 -52
  131. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-speed-dial.mjs +46 -22
  133. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-split-button.mjs +38 -37
  135. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
  137. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
  139. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  141. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-table.mjs +28 -22
  143. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-tabs.mjs +12 -12
  145. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-textarea.mjs +37 -35
  147. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-theme-builder.mjs +1 -1
  149. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theming.mjs +4 -4
  151. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-tiered-menu.mjs +14 -17
  153. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
  155. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-toast.mjs +59 -37
  157. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toggle-switch.mjs +24 -21
  159. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toolbar.mjs +18 -18
  161. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-tooltip.mjs +13 -19
  163. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  164. package/fesm2022/aeris-ui-core-tree-select.mjs +110 -82
  165. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-table.mjs +25 -19
  167. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree.mjs +14 -14
  169. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core.mjs +215 -55
  171. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  172. package/package.json +1 -1
  173. package/schematics/runtime/theme-builder/aeris-theme.js +1 -1
  174. package/styles/aeris.css +56 -0
  175. package/styles/controls.css +9 -2
  176. package/types/aeris-ui-core-auto-complete.d.ts +7 -4
  177. package/types/aeris-ui-core-badge.d.ts +4 -3
  178. package/types/aeris-ui-core-button.d.ts +13 -16
  179. package/types/aeris-ui-core-cascade-select.d.ts +7 -3
  180. package/types/aeris-ui-core-checkbox.d.ts +5 -4
  181. package/types/aeris-ui-core-color-picker.d.ts +5 -4
  182. package/types/aeris-ui-core-compare.d.ts +3 -4
  183. package/types/aeris-ui-core-confirm-dialog.d.ts +13 -13
  184. package/types/aeris-ui-core-confirm-popup.d.ts +13 -13
  185. package/types/aeris-ui-core-context-menu.d.ts +4 -5
  186. package/types/aeris-ui-core-date-picker.d.ts +7 -4
  187. package/types/aeris-ui-core-dialog.d.ts +8 -7
  188. package/types/aeris-ui-core-drawer.d.ts +8 -7
  189. package/types/aeris-ui-core-dynamic-dialog.d.ts +9 -9
  190. package/types/aeris-ui-core-editor.d.ts +5 -4
  191. package/types/aeris-ui-core-filter-service.d.ts +1 -1
  192. package/types/aeris-ui-core-form-field.d.ts +6 -4
  193. package/types/aeris-ui-core-galleria.d.ts +2 -2
  194. package/types/aeris-ui-core-icon-field.d.ts +3 -1
  195. package/types/aeris-ui-core-input-group.d.ts +22 -20
  196. package/types/aeris-ui-core-input-mask.d.ts +5 -4
  197. package/types/aeris-ui-core-input-number.d.ts +7 -4
  198. package/types/aeris-ui-core-input-otp.d.ts +5 -4
  199. package/types/aeris-ui-core-input-text.d.ts +7 -5
  200. package/types/aeris-ui-core-menu.d.ts +4 -5
  201. package/types/aeris-ui-core-menubar.d.ts +5 -4
  202. package/types/aeris-ui-core-message.d.ts +3 -2
  203. package/types/aeris-ui-core-multi-select.d.ts +7 -4
  204. package/types/aeris-ui-core-password.d.ts +5 -4
  205. package/types/aeris-ui-core-popover.d.ts +4 -5
  206. package/types/aeris-ui-core-radio-button.d.ts +5 -4
  207. package/types/aeris-ui-core-rating.d.ts +3 -4
  208. package/types/aeris-ui-core-select.d.ts +9 -4
  209. package/types/aeris-ui-core-slider.d.ts +5 -4
  210. package/types/aeris-ui-core-speed-dial.d.ts +4 -4
  211. package/types/aeris-ui-core-split-button.d.ts +10 -12
  212. package/types/aeris-ui-core-table.d.ts +3 -1
  213. package/types/aeris-ui-core-textarea.d.ts +8 -5
  214. package/types/aeris-ui-core-theme-builder.d.ts +1 -1
  215. package/types/aeris-ui-core-theming.d.ts +1 -1
  216. package/types/aeris-ui-core-tiered-menu.d.ts +4 -5
  217. package/types/aeris-ui-core-toast.d.ts +6 -3
  218. package/types/aeris-ui-core-toggle-switch.d.ts +5 -4
  219. package/types/aeris-ui-core-tooltip.d.ts +3 -3
  220. package/types/aeris-ui-core-tree-select.d.ts +7 -4
  221. package/types/aeris-ui-core-tree-table.d.ts +3 -1
  222. package/types/aeris-ui-core.d.ts +20 -4
@@ -1,14 +1,15 @@
1
1
  import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, TemplateRef, Directive, numberAttribute, ElementRef, viewChildren, signal, model, input, booleanAttribute, output, contentChild, computed, afterNextRender, forwardRef, Component } from '@angular/core';
3
+ import { inject, TemplateRef, Directive, numberAttribute, ElementRef, viewChildren, signal, model, input, booleanAttribute, computed, output, contentChild, afterNextRender, forwardRef, Component } from '@angular/core';
4
4
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
+ import { ɵaerisDisplayInvalid as _aerisDisplayInvalid } from '@aeris-ui/core';
5
6
 
6
7
  class AerisInputOtpSeparatorTemplate {
7
8
  template = inject(TemplateRef);
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisInputOtpSeparatorTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisInputOtpSeparatorTemplate, isStandalone: true, selector: "ng-template[aerisInputOtpSeparator]", ngImport: i0 });
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisInputOtpSeparatorTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.6", type: AerisInputOtpSeparatorTemplate, isStandalone: true, selector: "ng-template[aerisInputOtpSeparator]", ngImport: i0 });
10
11
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisInputOtpSeparatorTemplate, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisInputOtpSeparatorTemplate, decorators: [{
12
13
  type: Directive,
13
14
  args: [{ selector: 'ng-template[aerisInputOtpSeparator]' }]
14
15
  }] });
@@ -36,10 +37,10 @@ class AerisInputOtpComponent {
36
37
  ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
37
38
  ariaLabel = input('', /* @ts-ignore */
38
39
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
39
- ariaLabelledby = input('', /* @ts-ignore */
40
- ...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
41
- ariaDescribedby = input('', /* @ts-ignore */
42
- ...(ngDevMode ? [{ debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
40
+ ariaLabelledBy = input('', /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
42
+ ariaDescribedBy = input('', /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
43
44
  slotAriaLabel = input('Character {0} of {1}', /* @ts-ignore */
44
45
  ...(ngDevMode ? [{ debugName: "slotAriaLabel" }] : /* istanbul ignore next */ []));
45
46
  size = input('md', /* @ts-ignore */
@@ -53,8 +54,11 @@ class AerisInputOtpComponent {
53
54
  readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
54
55
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
55
56
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
57
+ touched = input(null, /* @ts-ignore */
58
+ ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
59
+ displayInvalid = computed(() => _aerisDisplayInvalid(this.invalid(), this.touched()), /* @ts-ignore */
60
+ ...(ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []));
56
61
  fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
57
- valueInput = output();
58
62
  completed = output();
59
63
  focused = output();
60
64
  blurred = output();
@@ -210,7 +214,6 @@ class AerisInputOtpComponent {
210
214
  const wasComplete = this.normalizedValue().length === this.length();
211
215
  if (this.value() !== nextValue) {
212
216
  this.value.set(nextValue);
213
- this.valueInput.emit(nextValue);
214
217
  this.onChange(nextValue);
215
218
  }
216
219
  if (!wasComplete && nextValue.length === this.length()) {
@@ -221,8 +224,8 @@ class AerisInputOtpComponent {
221
224
  const pattern = this.mode() === 'numeric' ? /[0-9]/g : /[A-Za-z0-9]/g;
222
225
  return value.match(pattern)?.join('') ?? '';
223
226
  }
224
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisInputOtpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
225
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisInputOtpComponent, isStandalone: true, selector: "aeris-input-otp", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, slotAriaLabel: { classPropertyName: "slotAriaLabel", publicName: "slotAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", completed: "completed", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
227
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisInputOtpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
228
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AerisInputOtpComponent, isStandalone: true, selector: "aeris-input-otp", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, slotAriaLabel: { classPropertyName: "slotAriaLabel", publicName: "slotAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", completed: "completed", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
226
229
  {
227
230
  provide: NG_VALUE_ACCESSOR,
228
231
  useExisting: forwardRef(() => AerisInputOtpComponent),
@@ -234,14 +237,14 @@ class AerisInputOtpComponent {
234
237
  role="group"
235
238
  [attr.data-size]="size()"
236
239
  [attr.data-appearance]="appearance()"
237
- [attr.data-invalid]="invalid() || null"
240
+ [attr.data-invalid]="displayInvalid() || null"
238
241
  [attr.data-disabled]="effectiveDisabled() || null"
239
242
  [attr.data-readonly]="readonly() || null"
240
243
  [attr.data-fluid]="fluid() || null"
241
244
  [attr.aria-label]="ariaLabel() || null"
242
- [attr.aria-labelledby]="ariaLabelledby() || null"
243
- [attr.aria-describedby]="ariaDescribedby() || null"
244
- [attr.aria-invalid]="invalid() || null"
245
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
246
+ [attr.aria-describedby]="ariaDescribedBy() || null"
247
+ [attr.aria-invalid]="displayInvalid() || null"
245
248
  [attr.aria-required]="required() || null"
246
249
  (focusout)="handleFocusOut($event)"
247
250
  >
@@ -262,7 +265,7 @@ class AerisInputOtpComponent {
262
265
  [disabled]="effectiveDisabled()"
263
266
  [readOnly]="readonly()"
264
267
  [attr.aria-label]="slot.ariaLabel"
265
- [attr.aria-invalid]="invalid() || null"
268
+ [attr.aria-invalid]="displayInvalid() || null"
266
269
  (beforeinput)="handleBeforeInput($event, slot.index)"
267
270
  (input)="handleInput($event, slot.index)"
268
271
  (keydown)="handleKeydown($event, slot.index)"
@@ -283,7 +286,7 @@ class AerisInputOtpComponent {
283
286
  </span>
284
287
  `, isInline: true, styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-input-otp{--_slot-size: var(--aeris-control-height, 2.625rem);--_font-size: 1rem;display:flex;align-items:center;gap:.5rem;max-width:100%}.aeris-input-otp[data-fluid]{width:100%}.aeris-input-otp__slot{width:var(--_slot-size);height:var(--_slot-size);min-width:0;padding:0;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:650 var(--_font-size)/1 inherit;text-align:center;caret-color:var(--aeris-primary, #5f6f36);transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.aeris-input-otp[data-fluid] .aeris-input-otp__slot{flex:1 1 0;width:auto;max-width:var(--_slot-size)}.aeris-input-otp__slot:hover:not(:disabled,:read-only){border-color:var(--aeris-primary, #5f6f36)}.aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #3b4729);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #3b4729) 18%,transparent)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #3b4729);background:var(--aeris-surface, #fff)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot{border-color:var(--aeris-danger, #c81e2a)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-danger, #c81e2a) 18%,transparent)}.aeris-input-otp[data-disabled],.aeris-input-otp[data-readonly]{opacity:var(--aeris-disabled-opacity, .54)}.aeris-input-otp[data-disabled] .aeris-input-otp__slot,.aeris-input-otp[data-readonly] .aeris-input-otp__slot{background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-size=xs]{--_slot-size: 1.875rem;--_font-size: .75rem;gap:.375rem}.aeris-input-otp[data-size=sm]{--_slot-size: 2.25rem;--_font-size: .875rem;gap:.4375rem}.aeris-input-otp[data-size=lg]{--_slot-size: 3rem;--_font-size: 1.125rem;gap:.625rem}.aeris-input-otp__separator{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:var(--aeris-text-2, #555555)}.aeris-input-otp__separator:empty{display:none}@media(max-width:30rem){.aeris-input-otp{gap:.375rem}}@media(prefers-reduced-motion:reduce){.aeris-input-otp__slot{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
285
288
  }
286
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisInputOtpComponent, decorators: [{
289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisInputOtpComponent, decorators: [{
287
290
  type: Component,
288
291
  args: [{ selector: 'aeris-input-otp', imports: [NgTemplateOutlet], template: `
289
292
  <span
@@ -291,14 +294,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
291
294
  role="group"
292
295
  [attr.data-size]="size()"
293
296
  [attr.data-appearance]="appearance()"
294
- [attr.data-invalid]="invalid() || null"
297
+ [attr.data-invalid]="displayInvalid() || null"
295
298
  [attr.data-disabled]="effectiveDisabled() || null"
296
299
  [attr.data-readonly]="readonly() || null"
297
300
  [attr.data-fluid]="fluid() || null"
298
301
  [attr.aria-label]="ariaLabel() || null"
299
- [attr.aria-labelledby]="ariaLabelledby() || null"
300
- [attr.aria-describedby]="ariaDescribedby() || null"
301
- [attr.aria-invalid]="invalid() || null"
302
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
303
+ [attr.aria-describedby]="ariaDescribedBy() || null"
304
+ [attr.aria-invalid]="displayInvalid() || null"
302
305
  [attr.aria-required]="required() || null"
303
306
  (focusout)="handleFocusOut($event)"
304
307
  >
@@ -319,7 +322,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
319
322
  [disabled]="effectiveDisabled()"
320
323
  [readOnly]="readonly()"
321
324
  [attr.aria-label]="slot.ariaLabel"
322
- [attr.aria-invalid]="invalid() || null"
325
+ [attr.aria-invalid]="displayInvalid() || null"
323
326
  (beforeinput)="handleBeforeInput($event, slot.index)"
324
327
  (input)="handleInput($event, slot.index)"
325
328
  (keydown)="handleKeydown($event, slot.index)"
@@ -347,11 +350,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
347
350
  ], host: {
348
351
  '[attr.data-fluid]': 'fluid() || null',
349
352
  }, styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-input-otp{--_slot-size: var(--aeris-control-height, 2.625rem);--_font-size: 1rem;display:flex;align-items:center;gap:.5rem;max-width:100%}.aeris-input-otp[data-fluid]{width:100%}.aeris-input-otp__slot{width:var(--_slot-size);height:var(--_slot-size);min-width:0;padding:0;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:650 var(--_font-size)/1 inherit;text-align:center;caret-color:var(--aeris-primary, #5f6f36);transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.aeris-input-otp[data-fluid] .aeris-input-otp__slot{flex:1 1 0;width:auto;max-width:var(--_slot-size)}.aeris-input-otp__slot:hover:not(:disabled,:read-only){border-color:var(--aeris-primary, #5f6f36)}.aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #3b4729);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #3b4729) 18%,transparent)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-appearance=filled] .aeris-input-otp__slot:focus-visible{border-color:var(--aeris-focus, #3b4729);background:var(--aeris-surface, #fff)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot{border-color:var(--aeris-danger, #c81e2a)}.aeris-input-otp[data-invalid] .aeris-input-otp__slot:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-danger, #c81e2a) 18%,transparent)}.aeris-input-otp[data-disabled],.aeris-input-otp[data-readonly]{opacity:var(--aeris-disabled-opacity, .54)}.aeris-input-otp[data-disabled] .aeris-input-otp__slot,.aeris-input-otp[data-readonly] .aeris-input-otp__slot{background:var(--aeris-surface-2, #f2f0ec)}.aeris-input-otp[data-size=xs]{--_slot-size: 1.875rem;--_font-size: .75rem;gap:.375rem}.aeris-input-otp[data-size=sm]{--_slot-size: 2.25rem;--_font-size: .875rem;gap:.4375rem}.aeris-input-otp[data-size=lg]{--_slot-size: 3rem;--_font-size: 1.125rem;gap:.625rem}.aeris-input-otp__separator{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:var(--aeris-text-2, #555555)}.aeris-input-otp__separator:empty{display:none}@media(max-width:30rem){.aeris-input-otp{gap:.375rem}}@media(prefers-reduced-motion:reduce){.aeris-input-otp__slot{transition:none}}\n"] }]
350
- }], ctorParameters: () => [], propDecorators: { inputElements: [{ type: i0.ViewChildren, args: ['otpInput', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], slotAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotAriaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], completed: [{ type: i0.Output, args: ["completed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], separatorTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisInputOtpSeparatorTemplate), { isSignal: true }] }] } });
351
- const AerisInputOtp = [
352
- AerisInputOtpComponent,
353
- AerisInputOtpSeparatorTemplate,
354
- ];
353
+ }], ctorParameters: () => [], propDecorators: { inputElements: [{ type: i0.ViewChildren, args: ['otpInput', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], slotAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotAriaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], completed: [{ type: i0.Output, args: ["completed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], separatorTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisInputOtpSeparatorTemplate), { isSignal: true }] }] } });
354
+ const AerisInputOtp = [AerisInputOtpComponent, AerisInputOtpSeparatorTemplate];
355
355
 
356
356
  /**
357
357
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-input-otp.mjs","sources":["../../../projects/aeris-ui/input-otp/aeris-input-otp.ts","../../../projects/aeris-ui/input-otp/aeris-ui-core-input-otp.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nexport type AerisInputOtpSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisInputOtpAppearance = 'outline' | 'filled';\nexport type AerisInputOtpMode = 'numeric' | 'alphanumeric';\n\nexport interface AerisInputOtpCompleteEvent {\n readonly originalEvent: Event;\n readonly value: string;\n}\n\ninterface InputOtpSeparatorContext {\n readonly $implicit: number;\n readonly index: number;\n}\n\ninterface InputOtpSlot {\n readonly index: number;\n readonly position: number;\n readonly id: string;\n readonly value: string;\n readonly ariaLabel: string;\n}\n\n@Directive({ selector: 'ng-template[aerisInputOtpSeparator]' })\nexport class AerisInputOtpSeparatorTemplate {\n readonly template = inject<TemplateRef<InputOtpSeparatorContext>>(TemplateRef);\n}\n\nconst normalizeLength = (value: unknown): number =>\n Math.max(1, Math.floor(numberAttribute(value, 4)));\n\nlet inputOtpId = 0;\n\n@Component({\n selector: 'aeris-input-otp',\n imports: [NgTemplateOutlet],\n template: `\n <span\n class=\"aeris-input-otp\"\n role=\"group\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"invalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedby() || null\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-required]=\"required() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n @if (name()) {\n <input type=\"hidden\" [name]=\"name()\" [value]=\"normalizedValue()\" />\n }\n\n @for (slot of slots(); track slot.index) {\n <input\n #otpInput\n class=\"aeris-input-otp__slot\"\n [id]=\"slot.id\"\n [type]=\"mask() ? 'password' : 'text'\"\n [value]=\"slot.value\"\n [inputMode]=\"effectiveInputMode()\"\n [autocomplete]=\"slot.index === 0 ? autocomplete() : 'off'\"\n maxlength=\"1\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"slot.ariaLabel\"\n [attr.aria-invalid]=\"invalid() || null\"\n (beforeinput)=\"handleBeforeInput($event, slot.index)\"\n (input)=\"handleInput($event, slot.index)\"\n (keydown)=\"handleKeydown($event, slot.index)\"\n (paste)=\"handlePaste($event, slot.index)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"blurred.emit($event)\"\n />\n\n @if (slot.index < length() - 1 && separatorTemplate(); as separator) {\n <span class=\"aeris-input-otp__separator\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"separator.template\"\n [ngTemplateOutletContext]=\"{ $implicit: slot.index, index: slot.index }\"\n />\n </span>\n }\n }\n </span>\n `,\n styleUrl: './aeris-input-otp.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisInputOtpComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisInputOtpComponent implements ControlValueAccessor {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly inputElements = viewChildren<ElementRef<HTMLInputElement>>('otpInput');\n private readonly generatedId = `aeris-input-otp-${++inputOtpId}`;\n private readonly formDisabled = signal(false);\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model('');\n readonly length = input(4, { transform: normalizeLength });\n readonly mode = input<AerisInputOtpMode>('numeric');\n readonly inputId = input('');\n readonly name = input('');\n readonly autocomplete = input('one-time-code');\n readonly ariaLabel = input('');\n readonly ariaLabelledby = input('');\n readonly ariaDescribedby = input('');\n readonly slotAriaLabel = input('Character {0} of {1}');\n readonly size = input<AerisInputOtpSize>('md');\n readonly appearance = input<AerisInputOtpAppearance>('outline');\n readonly mask = input(false, { transform: booleanAttribute });\n readonly autoFocus = input(false, { transform: booleanAttribute });\n readonly selectOnFocus = input(true, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly fluid = input(false, { transform: booleanAttribute });\n\n readonly valueInput = output<string>();\n readonly completed = output<AerisInputOtpCompleteEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly separatorTemplate = contentChild(AerisInputOtpSeparatorTemplate);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly effectiveInputMode = computed(() =>\n this.mode() === 'numeric' ? 'numeric' : 'text',\n );\n protected readonly slots = computed<readonly InputOtpSlot[]>(() => {\n const value = this.normalizedValue();\n return Array.from({ length: this.length() }, (_, index) => ({\n index,\n position: index + 1,\n id: index === 0 && this.inputId() ? this.inputId() : `${this.generatedId}-${index + 1}`,\n value: value[index] ?? '',\n ariaLabel: this.slotAriaLabel()\n .replace('{0}', String(index + 1))\n .replace('{1}', String(this.length())),\n }));\n });\n protected readonly normalizedValue = computed(() =>\n this.filterCharacters(this.value()).slice(0, this.length()),\n );\n\n constructor() {\n afterNextRender(() => {\n if (this.autoFocus() && !this.effectiveDisabled()) this.focus();\n });\n }\n\n writeValue(value: unknown): void {\n const next = typeof value === 'string' || typeof value === 'number' ? String(value) : '';\n this.value.set(this.filterCharacters(next).slice(0, this.length()));\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(index = 0, options?: FocusOptions): void {\n const targetIndex = Math.min(Math.max(index, 0), this.length() - 1);\n this.inputElements()[targetIndex]?.nativeElement.focus(options);\n }\n\n clear(): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n this.commit('', new Event('clear'));\n queueMicrotask(() => this.focus());\n }\n\n protected handleBeforeInput(event: InputEvent, index: number): void {\n if (event.inputType.startsWith('delete') || !event.data) return;\n const accepted = this.filterCharacters(event.data);\n if (!accepted) {\n event.preventDefault();\n return;\n }\n if (accepted.length > 1) {\n event.preventDefault();\n this.insertCharacters(accepted, index, event);\n }\n }\n\n protected handleInput(event: Event, index: number): void {\n const inputElement = event.target as HTMLInputElement;\n const accepted = this.filterCharacters(inputElement.value);\n if (!accepted) {\n inputElement.value = this.normalizedValue()[index] ?? '';\n return;\n }\n this.insertCharacters(accepted, index, event);\n }\n\n protected handleKeydown(event: KeyboardEvent, index: number): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.focus(index - 1);\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.focus(index + 1);\n return;\n }\n if (event.key === 'Home') {\n event.preventDefault();\n this.focus(0);\n return;\n }\n if (event.key === 'End') {\n event.preventDefault();\n this.focus(this.length() - 1);\n return;\n }\n if (event.key === 'Backspace') {\n event.preventDefault();\n const currentValue = this.normalizedValue();\n const targetIndex = currentValue[index] ? index : Math.max(0, index - 1);\n this.removeAt(targetIndex, event);\n queueMicrotask(() => this.focus(targetIndex));\n return;\n }\n if (event.key === 'Delete') {\n event.preventDefault();\n this.removeAt(index, event);\n }\n }\n\n protected handlePaste(event: ClipboardEvent, index: number): void {\n const pasted = this.filterCharacters(event.clipboardData?.getData('text') ?? '');\n if (!pasted) return;\n event.preventDefault();\n this.insertCharacters(pasted, index, event);\n }\n\n protected handleFocus(event: FocusEvent): void {\n if (this.selectOnFocus()) {\n (event.target as HTMLInputElement).select();\n }\n this.focused.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (nextTarget instanceof Node && this.host.nativeElement.contains(nextTarget)) return;\n this.touch.emit();\n this.onTouched();\n }\n\n private insertCharacters(characters: string, index: number, event: Event): void {\n const slots = Array.from({ length: this.length() }, (_, slotIndex) =>\n this.normalizedValue()[slotIndex] ?? '',\n );\n let nextIndex = index;\n for (const character of characters) {\n if (nextIndex >= slots.length) break;\n slots[nextIndex] = character;\n nextIndex += 1;\n }\n const nextValue = slots.join('');\n this.commit(nextValue, event);\n queueMicrotask(() => this.focus(Math.min(nextIndex, this.length() - 1)));\n }\n\n private removeAt(index: number, event: Event): void {\n const slots = Array.from({ length: this.length() }, (_, slotIndex) =>\n this.normalizedValue()[slotIndex] ?? '',\n );\n slots[index] = '';\n this.commit(slots.join(''), event);\n }\n\n private commit(value: string, event: Event): void {\n const nextValue = this.filterCharacters(value).slice(0, this.length());\n const wasComplete = this.normalizedValue().length === this.length();\n if (this.value() !== nextValue) {\n this.value.set(nextValue);\n this.valueInput.emit(nextValue);\n this.onChange(nextValue);\n }\n if (!wasComplete && nextValue.length === this.length()) {\n this.completed.emit({ originalEvent: event, value: nextValue });\n }\n }\n\n private filterCharacters(value: string): string {\n const pattern = this.mode() === 'numeric' ? /[0-9]/g : /[A-Za-z0-9]/g;\n return value.match(pattern)?.join('') ?? '';\n }\n}\n\nexport const AerisInputOtp = [\n AerisInputOtpComponent,\n AerisInputOtpSeparatorTemplate,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MA4Ca,8BAA8B,CAAA;AAChC,IAAA,QAAQ,GAAG,MAAM,CAAwC,WAAW,CAAC;uGADnE,8BAA8B,EAAA,IAAA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hC;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-input-otp.mjs","sources":["../../../projects/aeris-ui/input-otp/aeris-input-otp.ts","../../../projects/aeris-ui/input-otp/aeris-ui-core-input-otp.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵaerisDisplayInvalid } from '@aeris-ui/core';\n\nexport type AerisInputOtpSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisInputOtpAppearance = 'outline' | 'filled';\nexport type AerisInputOtpMode = 'numeric' | 'alphanumeric';\n\nexport interface AerisInputOtpCompleteEvent {\n readonly originalEvent: Event;\n readonly value: string;\n}\n\ninterface InputOtpSeparatorContext {\n readonly $implicit: number;\n readonly index: number;\n}\n\ninterface InputOtpSlot {\n readonly index: number;\n readonly position: number;\n readonly id: string;\n readonly value: string;\n readonly ariaLabel: string;\n}\n\n@Directive({ selector: 'ng-template[aerisInputOtpSeparator]' })\nexport class AerisInputOtpSeparatorTemplate {\n readonly template = inject<TemplateRef<InputOtpSeparatorContext>>(TemplateRef);\n}\n\nconst normalizeLength = (value: unknown): number =>\n Math.max(1, Math.floor(numberAttribute(value, 4)));\n\nlet inputOtpId = 0;\n\n@Component({\n selector: 'aeris-input-otp',\n imports: [NgTemplateOutlet],\n template: `\n <span\n class=\"aeris-input-otp\"\n role=\"group\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"displayInvalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-required]=\"required() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n @if (name()) {\n <input type=\"hidden\" [name]=\"name()\" [value]=\"normalizedValue()\" />\n }\n\n @for (slot of slots(); track slot.index) {\n <input\n #otpInput\n class=\"aeris-input-otp__slot\"\n [id]=\"slot.id\"\n [type]=\"mask() ? 'password' : 'text'\"\n [value]=\"slot.value\"\n [inputMode]=\"effectiveInputMode()\"\n [autocomplete]=\"slot.index === 0 ? autocomplete() : 'off'\"\n maxlength=\"1\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"slot.ariaLabel\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n (beforeinput)=\"handleBeforeInput($event, slot.index)\"\n (input)=\"handleInput($event, slot.index)\"\n (keydown)=\"handleKeydown($event, slot.index)\"\n (paste)=\"handlePaste($event, slot.index)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"blurred.emit($event)\"\n />\n\n @if (slot.index < length() - 1 && separatorTemplate(); as separator) {\n <span class=\"aeris-input-otp__separator\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"separator.template\"\n [ngTemplateOutletContext]=\"{ $implicit: slot.index, index: slot.index }\"\n />\n </span>\n }\n }\n </span>\n `,\n styleUrl: './aeris-input-otp.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisInputOtpComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisInputOtpComponent implements ControlValueAccessor {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly inputElements = viewChildren<ElementRef<HTMLInputElement>>('otpInput');\n private readonly generatedId = `aeris-input-otp-${++inputOtpId}`;\n private readonly formDisabled = signal(false);\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model('');\n readonly length = input(4, { transform: normalizeLength });\n readonly mode = input<AerisInputOtpMode>('numeric');\n readonly inputId = input('');\n readonly name = input('');\n readonly autocomplete = input('one-time-code');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly ariaDescribedBy = input('');\n readonly slotAriaLabel = input('Character {0} of {1}');\n readonly size = input<AerisInputOtpSize>('md');\n readonly appearance = input<AerisInputOtpAppearance>('outline');\n readonly mask = input(false, { transform: booleanAttribute });\n readonly autoFocus = input(false, { transform: booleanAttribute });\n readonly selectOnFocus = input(true, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly touched = input<boolean | null>(null);\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n readonly fluid = input(false, { transform: booleanAttribute });\n\n readonly completed = output<AerisInputOtpCompleteEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly separatorTemplate = contentChild(AerisInputOtpSeparatorTemplate);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly effectiveInputMode = computed(() =>\n this.mode() === 'numeric' ? 'numeric' : 'text',\n );\n protected readonly slots = computed<readonly InputOtpSlot[]>(() => {\n const value = this.normalizedValue();\n return Array.from({ length: this.length() }, (_, index) => ({\n index,\n position: index + 1,\n id: index === 0 && this.inputId() ? this.inputId() : `${this.generatedId}-${index + 1}`,\n value: value[index] ?? '',\n ariaLabel: this.slotAriaLabel()\n .replace('{0}', String(index + 1))\n .replace('{1}', String(this.length())),\n }));\n });\n protected readonly normalizedValue = computed(() =>\n this.filterCharacters(this.value()).slice(0, this.length()),\n );\n\n constructor() {\n afterNextRender(() => {\n if (this.autoFocus() && !this.effectiveDisabled()) this.focus();\n });\n }\n\n writeValue(value: unknown): void {\n const next = typeof value === 'string' || typeof value === 'number' ? String(value) : '';\n this.value.set(this.filterCharacters(next).slice(0, this.length()));\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(index = 0, options?: FocusOptions): void {\n const targetIndex = Math.min(Math.max(index, 0), this.length() - 1);\n this.inputElements()[targetIndex]?.nativeElement.focus(options);\n }\n\n clear(): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n this.commit('', new Event('clear'));\n queueMicrotask(() => this.focus());\n }\n\n protected handleBeforeInput(event: InputEvent, index: number): void {\n if (event.inputType.startsWith('delete') || !event.data) return;\n const accepted = this.filterCharacters(event.data);\n if (!accepted) {\n event.preventDefault();\n return;\n }\n if (accepted.length > 1) {\n event.preventDefault();\n this.insertCharacters(accepted, index, event);\n }\n }\n\n protected handleInput(event: Event, index: number): void {\n const inputElement = event.target as HTMLInputElement;\n const accepted = this.filterCharacters(inputElement.value);\n if (!accepted) {\n inputElement.value = this.normalizedValue()[index] ?? '';\n return;\n }\n this.insertCharacters(accepted, index, event);\n }\n\n protected handleKeydown(event: KeyboardEvent, index: number): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.focus(index - 1);\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.focus(index + 1);\n return;\n }\n if (event.key === 'Home') {\n event.preventDefault();\n this.focus(0);\n return;\n }\n if (event.key === 'End') {\n event.preventDefault();\n this.focus(this.length() - 1);\n return;\n }\n if (event.key === 'Backspace') {\n event.preventDefault();\n const currentValue = this.normalizedValue();\n const targetIndex = currentValue[index] ? index : Math.max(0, index - 1);\n this.removeAt(targetIndex, event);\n queueMicrotask(() => this.focus(targetIndex));\n return;\n }\n if (event.key === 'Delete') {\n event.preventDefault();\n this.removeAt(index, event);\n }\n }\n\n protected handlePaste(event: ClipboardEvent, index: number): void {\n const pasted = this.filterCharacters(event.clipboardData?.getData('text') ?? '');\n if (!pasted) return;\n event.preventDefault();\n this.insertCharacters(pasted, index, event);\n }\n\n protected handleFocus(event: FocusEvent): void {\n if (this.selectOnFocus()) {\n (event.target as HTMLInputElement).select();\n }\n this.focused.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (nextTarget instanceof Node && this.host.nativeElement.contains(nextTarget)) return;\n this.touch.emit();\n this.onTouched();\n }\n\n private insertCharacters(characters: string, index: number, event: Event): void {\n const slots = Array.from(\n { length: this.length() },\n (_, slotIndex) => this.normalizedValue()[slotIndex] ?? '',\n );\n let nextIndex = index;\n for (const character of characters) {\n if (nextIndex >= slots.length) break;\n slots[nextIndex] = character;\n nextIndex += 1;\n }\n const nextValue = slots.join('');\n this.commit(nextValue, event);\n queueMicrotask(() => this.focus(Math.min(nextIndex, this.length() - 1)));\n }\n\n private removeAt(index: number, event: Event): void {\n const slots = Array.from(\n { length: this.length() },\n (_, slotIndex) => this.normalizedValue()[slotIndex] ?? '',\n );\n slots[index] = '';\n this.commit(slots.join(''), event);\n }\n\n private commit(value: string, event: Event): void {\n const nextValue = this.filterCharacters(value).slice(0, this.length());\n const wasComplete = this.normalizedValue().length === this.length();\n if (this.value() !== nextValue) {\n this.value.set(nextValue);\n this.onChange(nextValue);\n }\n if (!wasComplete && nextValue.length === this.length()) {\n this.completed.emit({ originalEvent: event, value: nextValue });\n }\n }\n\n private filterCharacters(value: string): string {\n const pattern = this.mode() === 'numeric' ? /[0-9]/g : /[A-Za-z0-9]/g;\n return value.match(pattern)?.join('') ?? '';\n }\n}\n\nexport const AerisInputOtp = [AerisInputOtpComponent, AerisInputOtpSeparatorTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵaerisDisplayInvalid"],"mappings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E,SAAA,CAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,UAAU,k0EAoClC,8BAA8B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MAmLvE,aAAa,GAAG,CAAC,sBAAsB,EAAE,8BAA8B;;ACpVpF;;AAEG;;"}
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, Directive, viewChild, signal, model, output, computed, forwardRef, Component } from '@angular/core';
2
+ import { input, booleanAttribute, computed, Directive, viewChild, signal, model, output, forwardRef, Component } from '@angular/core';
3
3
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
+ import { ɵaerisDisplayInvalid as _aerisDisplayInvalid } from '@aeris-ui/core';
4
5
 
5
6
  class AerisInputTextDirective {
6
7
  size = input('md', /* @ts-ignore */
@@ -8,11 +9,15 @@ class AerisInputTextDirective {
8
9
  appearance = input('outline', /* @ts-ignore */
9
10
  ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
10
11
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
12
+ touched = input(null, /* @ts-ignore */
13
+ ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
11
14
  fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
12
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisInputTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
13
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: AerisInputTextDirective, isStandalone: true, selector: "input[aerisInputText]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.aeris-input-text--xs": "size() === \"xs\"", "class.aeris-input-text--sm": "size() === \"sm\"", "class.aeris-input-text--md": "size() === \"md\"", "class.aeris-input-text--lg": "size() === \"lg\"", "class.aeris-input-text--filled": "appearance() === \"filled\"", "class.aeris-input-text--invalid": "invalid()", "class.aeris-input-text--fluid": "fluid()", "attr.aria-invalid": "invalid() || null" }, classAttribute: "aeris-input-text" }, ngImport: i0 });
15
+ displayInvalid = computed(() => _aerisDisplayInvalid(this.invalid(), this.touched()), /* @ts-ignore */
16
+ ...(ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []));
17
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisInputTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
18
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.6", type: AerisInputTextDirective, isStandalone: true, selector: "input[aerisInputText]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.aeris-input-text--xs": "size() === \"xs\"", "class.aeris-input-text--sm": "size() === \"sm\"", "class.aeris-input-text--md": "size() === \"md\"", "class.aeris-input-text--lg": "size() === \"lg\"", "class.aeris-input-text--filled": "appearance() === \"filled\"", "class.aeris-input-text--invalid": "displayInvalid()", "class.aeris-input-text--fluid": "fluid()", "attr.aria-invalid": "displayInvalid() || null" }, classAttribute: "aeris-input-text" }, ngImport: i0 });
14
19
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisInputTextDirective, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisInputTextDirective, decorators: [{
16
21
  type: Directive,
17
22
  args: [{
18
23
  selector: 'input[aerisInputText]',
@@ -23,12 +28,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
23
28
  '[class.aeris-input-text--md]': 'size() === "md"',
24
29
  '[class.aeris-input-text--lg]': 'size() === "lg"',
25
30
  '[class.aeris-input-text--filled]': 'appearance() === "filled"',
26
- '[class.aeris-input-text--invalid]': 'invalid()',
31
+ '[class.aeris-input-text--invalid]': 'displayInvalid()',
27
32
  '[class.aeris-input-text--fluid]': 'fluid()',
28
- '[attr.aria-invalid]': 'invalid() || null',
33
+ '[attr.aria-invalid]': 'displayInvalid() || null',
29
34
  },
30
35
  }]
31
- }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }] } });
36
+ }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }] } });
32
37
  let inputTextId = 0;
33
38
  class AerisInputTextComponent {
34
39
  inputElement = viewChild('textInput', /* @ts-ignore */
@@ -52,15 +57,17 @@ class AerisInputTextComponent {
52
57
  ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
53
58
  ariaLabel = input(/* @ts-ignore */
54
59
  ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
55
- ariaLabelledby = input(/* @ts-ignore */
56
- ...(ngDevMode ? [undefined, { debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
57
- ariaDescribedby = input(/* @ts-ignore */
58
- ...(ngDevMode ? [undefined, { debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
60
+ ariaLabelledBy = input(/* @ts-ignore */
61
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
62
+ ariaDescribedBy = input(/* @ts-ignore */
63
+ ...(ngDevMode ? [undefined, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
59
64
  size = input('md', /* @ts-ignore */
60
65
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
61
66
  appearance = input('outline', /* @ts-ignore */
62
67
  ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
63
68
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
69
+ touched = input(null, /* @ts-ignore */
70
+ ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
64
71
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
65
72
  readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
66
73
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
@@ -68,7 +75,6 @@ class AerisInputTextComponent {
68
75
  clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
69
76
  clearButtonAriaLabel = input('Clear value', /* @ts-ignore */
70
77
  ...(ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []));
71
- valueInput = output();
72
78
  focused = output();
73
79
  blurred = output();
74
80
  touch = output();
@@ -76,10 +82,7 @@ class AerisInputTextComponent {
76
82
  ...(ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []));
77
83
  effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), /* @ts-ignore */
78
84
  ...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
79
- showClearButton = computed(() => this.clearable() &&
80
- this.value().length > 0 &&
81
- !this.effectiveDisabled() &&
82
- !this.readonly(), /* @ts-ignore */
85
+ showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(), /* @ts-ignore */
83
86
  ...(ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []));
84
87
  writeValue(value) {
85
88
  this.value.set(typeof value === 'string' ? value : value == null ? '' : String(value));
@@ -117,11 +120,10 @@ class AerisInputTextComponent {
117
120
  if (this.value() === value)
118
121
  return;
119
122
  this.value.set(value);
120
- this.valueInput.emit(value);
121
123
  this.onChange(value);
122
124
  }
123
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisInputTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
124
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisInputTextComponent, isStandalone: true, selector: "aeris-input-text", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
125
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisInputTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
126
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AerisInputTextComponent, isStandalone: true, selector: "aeris-input-text", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
125
127
  {
126
128
  provide: NG_VALUE_ACCESSOR,
127
129
  useExisting: forwardRef(() => AerisInputTextComponent),
@@ -141,13 +143,14 @@ class AerisInputTextComponent {
141
143
  [size]="size()"
142
144
  [appearance]="appearance()"
143
145
  [invalid]="invalid()"
146
+ [touched]="touched()"
144
147
  [disabled]="effectiveDisabled()"
145
148
  [readOnly]="readonly()"
146
149
  [required]="required()"
147
150
  fluid
148
151
  [attr.aria-label]="ariaLabel()"
149
- [attr.aria-labelledby]="ariaLabelledby()"
150
- [attr.aria-describedby]="ariaDescribedby()"
152
+ [attr.aria-labelledby]="ariaLabelledBy()"
153
+ [attr.aria-describedby]="ariaDescribedBy()"
151
154
  (input)="handleInput($event)"
152
155
  (focus)="focused.emit($event)"
153
156
  (blur)="handleBlur($event)"
@@ -163,9 +166,9 @@ class AerisInputTextComponent {
163
166
  </button>
164
167
  }
165
168
  </span>
166
- `, isInline: true, styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-input-text-component__field{position:relative;display:block;width:100%}.aeris-input-text-component__field input{padding-inline-end:2.625rem}.aeris-input-text-component__field input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.aeris-input-text-component__clear{position:absolute;top:50%;right:.4375rem;width:1.75rem;height:1.75rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer;transform:translateY(-50%)}.aeris-input-text-component__clear:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-input-text-component__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.aeris-input-text-component__clear-mark{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}\n"], dependencies: [{ kind: "directive", type: AerisInputTextDirective, selector: "input[aerisInputText]", inputs: ["size", "appearance", "invalid", "fluid"] }] });
169
+ `, isInline: true, styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-input-text-component__field{position:relative;display:block;width:100%}.aeris-input-text-component__field input{padding-inline-end:2.625rem}.aeris-input-text-component__field input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.aeris-input-text-component__clear{position:absolute;top:50%;right:.4375rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer;transform:translateY(-50%)}.aeris-input-text-component__clear:hover,.aeris-input-text-component__clear:focus-visible{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-input-text-component__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.aeris-input-text-component__clear-mark{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}\n"], dependencies: [{ kind: "directive", type: AerisInputTextDirective, selector: "input[aerisInputText]", inputs: ["size", "appearance", "invalid", "touched", "fluid"] }] });
167
170
  }
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisInputTextComponent, decorators: [{
171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisInputTextComponent, decorators: [{
169
172
  type: Component,
170
173
  args: [{ selector: 'aeris-input-text', imports: [AerisInputTextDirective], template: `
171
174
  <span class="aeris-input-text-component__field">
@@ -181,13 +184,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
181
184
  [size]="size()"
182
185
  [appearance]="appearance()"
183
186
  [invalid]="invalid()"
187
+ [touched]="touched()"
184
188
  [disabled]="effectiveDisabled()"
185
189
  [readOnly]="readonly()"
186
190
  [required]="required()"
187
191
  fluid
188
192
  [attr.aria-label]="ariaLabel()"
189
- [attr.aria-labelledby]="ariaLabelledby()"
190
- [attr.aria-describedby]="ariaDescribedby()"
193
+ [attr.aria-labelledby]="ariaLabelledBy()"
194
+ [attr.aria-describedby]="ariaDescribedBy()"
191
195
  (input)="handleInput($event)"
192
196
  (focus)="focused.emit($event)"
193
197
  (blur)="handleBlur($event)"
@@ -211,12 +215,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
211
215
  },
212
216
  ], host: {
213
217
  '[attr.data-fluid]': 'fluid() || null',
214
- }, styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-input-text-component__field{position:relative;display:block;width:100%}.aeris-input-text-component__field input{padding-inline-end:2.625rem}.aeris-input-text-component__field input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.aeris-input-text-component__clear{position:absolute;top:50%;right:.4375rem;width:1.75rem;height:1.75rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer;transform:translateY(-50%)}.aeris-input-text-component__clear:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-input-text-component__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.aeris-input-text-component__clear-mark{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}\n"] }]
215
- }], propDecorators: { inputElement: [{ type: i0.ViewChild, args: ['textInput', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }] } });
216
- const AerisInputText = [
217
- AerisInputTextDirective,
218
- AerisInputTextComponent,
219
- ];
218
+ }, styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-input-text-component__field{position:relative;display:block;width:100%}.aeris-input-text-component__field input{padding-inline-end:2.625rem}.aeris-input-text-component__field input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.aeris-input-text-component__clear{position:absolute;top:50%;right:.4375rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer;transform:translateY(-50%)}.aeris-input-text-component__clear:hover,.aeris-input-text-component__clear:focus-visible{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-input-text-component__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.aeris-input-text-component__clear-mark{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}\n"] }]
219
+ }], propDecorators: { inputElement: [{ type: i0.ViewChild, args: ['textInput', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }] } });
220
+ const AerisInputText = [AerisInputTextDirective, AerisInputTextComponent];
220
221
 
221
222
  /**
222
223
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-input-text.mjs","sources":["../../../projects/aeris-ui/input-text/aeris-input-text.ts","../../../projects/aeris-ui/input-text/aeris-ui-core-input-text.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n Directive,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nexport type AerisInputTextSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisInputTextAppearance = 'outline' | 'filled';\n\n/** @deprecated Use AerisInputTextSize instead. */\nexport type AerisControlSize = AerisInputTextSize;\n\n@Directive({\n selector: 'input[aerisInputText]',\n host: {\n class: 'aeris-input-text',\n '[class.aeris-input-text--xs]': 'size() === \"xs\"',\n '[class.aeris-input-text--sm]': 'size() === \"sm\"',\n '[class.aeris-input-text--md]': 'size() === \"md\"',\n '[class.aeris-input-text--lg]': 'size() === \"lg\"',\n '[class.aeris-input-text--filled]': 'appearance() === \"filled\"',\n '[class.aeris-input-text--invalid]': 'invalid()',\n '[class.aeris-input-text--fluid]': 'fluid()',\n '[attr.aria-invalid]': 'invalid() || null',\n },\n})\nexport class AerisInputTextDirective {\n readonly size = input<AerisInputTextSize>('md');\n readonly appearance = input<AerisInputTextAppearance>('outline');\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly fluid = input(false, { transform: booleanAttribute });\n}\n\nlet inputTextId = 0;\n\n@Component({\n selector: 'aeris-input-text',\n imports: [AerisInputTextDirective],\n template: `\n <span class=\"aeris-input-text-component__field\">\n <input\n #textInput\n aerisInputText\n [id]=\"resolvedInputId()\"\n [type]=\"type()\"\n [name]=\"name()\"\n [placeholder]=\"placeholder()\"\n [autocomplete]=\"autocomplete()\"\n [value]=\"value()\"\n [size]=\"size()\"\n [appearance]=\"appearance()\"\n [invalid]=\"invalid()\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n fluid\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n (input)=\"handleInput($event)\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n />\n @if (showClearButton()) {\n <button\n type=\"button\"\n class=\"aeris-input-text-component__clear\"\n [attr.aria-label]=\"clearButtonAriaLabel()\"\n (click)=\"clear()\"\n >\n <span class=\"aeris-input-text-component__clear-mark\" aria-hidden=\"true\"></span>\n </button>\n }\n </span>\n `,\n styleUrl: './aeris-input-text-component.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisInputTextComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisInputTextComponent implements ControlValueAccessor {\n private readonly inputElement = viewChild<ElementRef<HTMLInputElement>>('textInput');\n private readonly generatedId = `aeris-input-text-${++inputTextId}`;\n private readonly formDisabled = signal(false);\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model('');\n readonly inputId = input('');\n readonly type = input('text');\n readonly name = input('');\n readonly placeholder = input('');\n readonly autocomplete = input('off');\n readonly ariaLabel = input<string>();\n readonly ariaLabelledby = input<string>();\n readonly ariaDescribedby = input<string>();\n readonly size = input<AerisInputTextSize>('md');\n readonly appearance = input<AerisInputTextAppearance>('outline');\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly clearable = input(false, { transform: booleanAttribute });\n readonly clearButtonAriaLabel = input('Clear value');\n\n readonly valueInput = output<string>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly resolvedInputId = computed(() => this.inputId() || this.generatedId);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly showClearButton = computed(\n () =>\n this.clearable() &&\n this.value().length > 0 &&\n !this.effectiveDisabled() &&\n !this.readonly(),\n );\n\n writeValue(value: unknown): void {\n this.value.set(typeof value === 'string' ? value : value == null ? '' : String(value));\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(options?: FocusOptions): void {\n this.inputElement()?.nativeElement.focus(options);\n }\n\n reset(): void {\n this.setValue('');\n }\n\n clear(): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n this.setValue('');\n this.focus();\n }\n\n protected handleInput(event: Event): void {\n this.setValue((event.target as HTMLInputElement).value);\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.touch.emit();\n this.onTouched();\n this.blurred.emit(event);\n }\n\n private setValue(value: string): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.valueInput.emit(value);\n this.onChange(value);\n }\n}\n\nexport const AerisInputText = [\n AerisInputTextDirective,\n AerisInputTextComponent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAmCa,uBAAuB,CAAA;IACzB,IAAI,GAAG,KAAK,CAAqB,IAAI;6EAAC;IACtC,UAAU,GAAG,KAAK,CAA2B,SAAS;mFAAC;IACvD,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACvD,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;uGAJnD,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAA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ACvB,uBAAuB;;;AC3LzB;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-input-text.mjs","sources":["../../../projects/aeris-ui/input-text/aeris-input-text.ts","../../../projects/aeris-ui/input-text/aeris-ui-core-input-text.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n Directive,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵaerisDisplayInvalid } from '@aeris-ui/core';\n\nexport type AerisInputTextSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisInputTextAppearance = 'outline' | 'filled';\n\n/** @deprecated Use AerisInputTextSize instead. */\nexport type AerisControlSize = AerisInputTextSize;\n\n@Directive({\n selector: 'input[aerisInputText]',\n host: {\n class: 'aeris-input-text',\n '[class.aeris-input-text--xs]': 'size() === \"xs\"',\n '[class.aeris-input-text--sm]': 'size() === \"sm\"',\n '[class.aeris-input-text--md]': 'size() === \"md\"',\n '[class.aeris-input-text--lg]': 'size() === \"lg\"',\n '[class.aeris-input-text--filled]': 'appearance() === \"filled\"',\n '[class.aeris-input-text--invalid]': 'displayInvalid()',\n '[class.aeris-input-text--fluid]': 'fluid()',\n '[attr.aria-invalid]': 'displayInvalid() || null',\n },\n})\nexport class AerisInputTextDirective {\n readonly size = input<AerisInputTextSize>('md');\n readonly appearance = input<AerisInputTextAppearance>('outline');\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly touched = input<boolean | null>(null);\n readonly fluid = input(false, { transform: booleanAttribute });\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n}\n\nlet inputTextId = 0;\n\n@Component({\n selector: 'aeris-input-text',\n imports: [AerisInputTextDirective],\n template: `\n <span class=\"aeris-input-text-component__field\">\n <input\n #textInput\n aerisInputText\n [id]=\"resolvedInputId()\"\n [type]=\"type()\"\n [name]=\"name()\"\n [placeholder]=\"placeholder()\"\n [autocomplete]=\"autocomplete()\"\n [value]=\"value()\"\n [size]=\"size()\"\n [appearance]=\"appearance()\"\n [invalid]=\"invalid()\"\n [touched]=\"touched()\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n fluid\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n (input)=\"handleInput($event)\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n />\n @if (showClearButton()) {\n <button\n type=\"button\"\n class=\"aeris-input-text-component__clear\"\n [attr.aria-label]=\"clearButtonAriaLabel()\"\n (click)=\"clear()\"\n >\n <span class=\"aeris-input-text-component__clear-mark\" aria-hidden=\"true\"></span>\n </button>\n }\n </span>\n `,\n styleUrl: './aeris-input-text-component.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisInputTextComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisInputTextComponent implements ControlValueAccessor {\n private readonly inputElement = viewChild<ElementRef<HTMLInputElement>>('textInput');\n private readonly generatedId = `aeris-input-text-${++inputTextId}`;\n private readonly formDisabled = signal(false);\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model('');\n readonly inputId = input('');\n readonly type = input('text');\n readonly name = input('');\n readonly placeholder = input('');\n readonly autocomplete = input('off');\n readonly ariaLabel = input<string>();\n readonly ariaLabelledBy = input<string>();\n readonly ariaDescribedBy = input<string>();\n readonly size = input<AerisInputTextSize>('md');\n readonly appearance = input<AerisInputTextAppearance>('outline');\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly touched = input<boolean | null>(null);\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly clearable = input(false, { transform: booleanAttribute });\n readonly clearButtonAriaLabel = input('Clear value');\n\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly resolvedInputId = computed(() => this.inputId() || this.generatedId);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly showClearButton = computed(\n () =>\n this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(),\n );\n\n writeValue(value: unknown): void {\n this.value.set(typeof value === 'string' ? value : value == null ? '' : String(value));\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(options?: FocusOptions): void {\n this.inputElement()?.nativeElement.focus(options);\n }\n\n reset(): void {\n this.setValue('');\n }\n\n clear(): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n this.setValue('');\n this.focus();\n }\n\n protected handleInput(event: Event): void {\n this.setValue((event.target as HTMLInputElement).value);\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.touch.emit();\n this.onTouched();\n this.blurred.emit(event);\n }\n\n private setValue(value: string): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.onChange(value);\n }\n}\n\nexport const AerisInputText = [AerisInputTextDirective, AerisInputTextComponent] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵaerisDisplayInvalid"],"mappings":";;;;;MAoCa,uBAAuB,CAAA;IACzB,IAAI,GAAG,KAAK,CAAqB,IAAI;6EAAC;IACtC,UAAU,GAAG,KAAK,CAA2B,SAAS;mFAAC;IACvD,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACvD,OAAO,GAAG,KAAK,CAAiB,IAAI;gFAAC;IACrC,KAAK,GAAG,KAAK,CAAC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