@aeris-ui/core 22.0.0-alpha.10 → 22.0.0-alpha.11

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 (259) hide show
  1. package/README.md +35 -3
  2. package/THIRD_PARTY_LICENSES.md +48 -0
  3. package/fesm2022/aeris-ui-core-accordion.mjs +34 -32
  4. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +119 -50
  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-avatar.mjs +6 -6
  10. package/fesm2022/aeris-ui-core-badge.mjs +6 -6
  11. package/fesm2022/aeris-ui-core-block-ui.mjs +18 -6
  12. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  13. package/fesm2022/aeris-ui-core-breadcrumb.mjs +42 -24
  14. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  15. package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
  16. package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
  17. package/fesm2022/aeris-ui-core-button-group.mjs +417 -14
  18. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  19. package/fesm2022/aeris-ui-core-button.mjs +191 -19
  20. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/aeris-ui-core-card.mjs +18 -18
  22. package/fesm2022/aeris-ui-core-carousel.mjs +81 -19
  23. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-cascade-select.mjs +165 -46
  25. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-chart.mjs +171 -36
  27. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-checkbox.mjs +191 -22
  29. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-chip.mjs +702 -27
  31. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  33. package/fesm2022/aeris-ui-core-code-block.mjs +57 -7
  34. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -1
  35. package/fesm2022/aeris-ui-core-color-picker.mjs +1223 -503
  36. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  37. package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
  38. package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
  39. package/fesm2022/aeris-ui-core-compare.mjs +61 -34
  40. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +68 -38
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs +46 -38
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  45. package/fesm2022/aeris-ui-core-context-menu.mjs +94 -43
  46. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  47. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
  48. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
  49. package/fesm2022/aeris-ui-core-date-picker.mjs +1186 -650
  50. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  51. package/fesm2022/aeris-ui-core-dialog.mjs +157 -71
  52. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  53. package/fesm2022/aeris-ui-core-divider.mjs +3 -3
  54. package/fesm2022/aeris-ui-core-drawer.mjs +751 -77
  55. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +14 -6
  57. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-editor.mjs +847 -202
  59. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-file-upload.mjs +204 -68
  61. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  63. package/fesm2022/aeris-ui-core-fluid.mjs +5 -5
  64. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  65. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  66. package/fesm2022/aeris-ui-core-form-field.mjs +15 -15
  67. package/fesm2022/aeris-ui-core-galleria.mjs +472 -123
  68. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  69. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  70. package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
  71. package/fesm2022/aeris-ui-core-inplace.mjs +56 -14
  72. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  73. package/fesm2022/aeris-ui-core-input-group.mjs +17 -17
  74. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  75. package/fesm2022/aeris-ui-core-input-mask.mjs +61 -8
  76. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  77. package/fesm2022/aeris-ui-core-input-number.mjs +191 -28
  78. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  79. package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
  80. package/fesm2022/aeris-ui-core-input-text.mjs +102 -26
  81. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
  83. package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
  84. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  85. package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
  86. package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
  87. package/fesm2022/aeris-ui-core-mega-menu.mjs +59 -16
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  89. package/fesm2022/aeris-ui-core-menu.mjs +95 -52
  90. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  91. package/fesm2022/aeris-ui-core-menubar.mjs +103 -34
  92. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  93. package/fesm2022/aeris-ui-core-message.mjs +48 -14
  94. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  95. package/fesm2022/aeris-ui-core-meter-group.mjs +33 -15
  96. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  97. package/fesm2022/aeris-ui-core-multi-select.mjs +283 -65
  98. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  99. package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
  100. package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
  101. package/fesm2022/aeris-ui-core-order-list.mjs +191 -35
  102. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  103. package/fesm2022/aeris-ui-core-organization-chart.mjs +48 -14
  104. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  105. package/fesm2022/aeris-ui-core-paginator.mjs +300 -61
  106. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  107. package/fesm2022/aeris-ui-core-panel.mjs +21 -29
  108. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  109. package/fesm2022/aeris-ui-core-password.mjs +166 -65
  110. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  111. package/fesm2022/aeris-ui-core-pick-list.mjs +528 -56
  112. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  113. package/fesm2022/aeris-ui-core-popover.mjs +504 -72
  114. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  115. package/fesm2022/aeris-ui-core-progress-bar.mjs +75 -21
  116. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  117. package/fesm2022/aeris-ui-core-progress-spinner.mjs +24 -6
  118. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  119. package/fesm2022/aeris-ui-core-radio-button.mjs +119 -19
  120. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  121. package/fesm2022/aeris-ui-core-rating.mjs +6 -6
  122. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  123. package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
  124. package/fesm2022/aeris-ui-core-scroll-top.mjs +59 -12
  125. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
  127. package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
  128. package/fesm2022/aeris-ui-core-select.mjs +206 -87
  129. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
  131. package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
  132. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  133. package/fesm2022/aeris-ui-core-slider.mjs +3 -3
  134. package/fesm2022/aeris-ui-core-speed-dial.mjs +34 -13
  135. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-split-button.mjs +26 -11
  137. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-splitter.mjs +35 -20
  139. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-stepper.mjs +23 -17
  141. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  143. package/fesm2022/aeris-ui-core-table.mjs +945 -106
  144. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  145. package/fesm2022/aeris-ui-core-tabs.mjs +81 -19
  146. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  147. package/fesm2022/aeris-ui-core-textarea.mjs +89 -28
  148. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  149. package/fesm2022/aeris-ui-core-theme-builder.mjs +202 -126
  150. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  151. package/fesm2022/aeris-ui-core-theming.mjs +8 -8
  152. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  153. package/fesm2022/aeris-ui-core-tiered-menu.mjs +94 -43
  154. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  155. package/fesm2022/aeris-ui-core-timeline.mjs +17 -17
  156. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  157. package/fesm2022/aeris-ui-core-toast.mjs +51 -18
  158. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  159. package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
  160. package/fesm2022/aeris-ui-core-toolbar.mjs +916 -44
  161. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
  163. package/fesm2022/aeris-ui-core-tree-select.mjs +252 -61
  164. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  165. package/fesm2022/aeris-ui-core-tree-table.mjs +493 -124
  166. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  167. package/fesm2022/aeris-ui-core-tree.mjs +165 -27
  168. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  169. package/fesm2022/aeris-ui-core.mjs +632 -12
  170. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  171. package/package.json +29 -1
  172. package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
  173. package/schematics/runtime/theme-builder/aeris-contrast.js +32 -0
  174. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  175. package/schematics/runtime/theme-builder/aeris-foundation.js +8 -9
  176. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  177. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +8 -21
  178. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  179. package/schematics/runtime/theme-builder/aeris-theme-generator.js +6 -0
  180. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  181. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +64 -91
  182. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  183. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +7 -5
  184. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  185. package/schematics/runtime/theme-builder/aeris-theme-validation.js +11 -1
  186. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  187. package/schematics/runtime/theme-builder/aeris-theme.js +81 -10
  188. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  189. package/styles/_choice-card.scss +93 -0
  190. package/styles/_icon-artwork.scss +14 -0
  191. package/styles/_icon-template.scss +42 -0
  192. package/styles/_selection-icons.scss +12 -0
  193. package/styles/_table-pinning.scss +119 -0
  194. package/styles/aeris.css +35 -12
  195. package/styles/controls.css +149 -11
  196. package/tools/aeris-theme.mjs +3 -3
  197. package/tools/aeris-theme.schema.json +13 -11
  198. package/types/aeris-ui-core-auto-complete.d.ts +12 -0
  199. package/types/aeris-ui-core-block-ui.d.ts +1 -0
  200. package/types/aeris-ui-core-button-forms.d.ts +18 -0
  201. package/types/aeris-ui-core-button-group.d.ts +116 -3
  202. package/types/aeris-ui-core-button.d.ts +52 -4
  203. package/types/aeris-ui-core-carousel.d.ts +12 -0
  204. package/types/aeris-ui-core-cascade-select.d.ts +18 -0
  205. package/types/aeris-ui-core-chart.d.ts +26 -10
  206. package/types/aeris-ui-core-checkbox.d.ts +36 -2
  207. package/types/aeris-ui-core-chip.d.ts +196 -1
  208. package/types/aeris-ui-core-code-block.d.ts +13 -0
  209. package/types/aeris-ui-core-color-picker.d.ts +117 -15
  210. package/types/aeris-ui-core-command-palette.d.ts +267 -0
  211. package/types/aeris-ui-core-compare.d.ts +6 -0
  212. package/types/aeris-ui-core-confirm-dialog.d.ts +9 -1
  213. package/types/aeris-ui-core-context-menu.d.ts +6 -0
  214. package/types/aeris-ui-core-date-picker.d.ts +123 -20
  215. package/types/aeris-ui-core-dialog.d.ts +15 -2
  216. package/types/aeris-ui-core-drawer.d.ts +111 -4
  217. package/types/aeris-ui-core-dynamic-dialog.d.ts +6 -2
  218. package/types/aeris-ui-core-editor.d.ts +8 -1
  219. package/types/aeris-ui-core-file-upload.d.ts +18 -0
  220. package/types/aeris-ui-core-galleria.d.ts +48 -0
  221. package/types/aeris-ui-core-inplace.d.ts +6 -0
  222. package/types/aeris-ui-core-input-mask.d.ts +8 -1
  223. package/types/aeris-ui-core-input-number.d.ts +20 -1
  224. package/types/aeris-ui-core-input-text.d.ts +11 -1
  225. package/types/aeris-ui-core-kbd.d.ts +74 -0
  226. package/types/aeris-ui-core-listbox.d.ts +222 -0
  227. package/types/aeris-ui-core-mega-menu.d.ts +6 -0
  228. package/types/aeris-ui-core-menu.d.ts +6 -0
  229. package/types/aeris-ui-core-menubar.d.ts +16 -0
  230. package/types/aeris-ui-core-message.d.ts +6 -0
  231. package/types/aeris-ui-core-meter-group.d.ts +6 -0
  232. package/types/aeris-ui-core-multi-select.d.ts +30 -0
  233. package/types/aeris-ui-core-navbar.d.ts +208 -0
  234. package/types/aeris-ui-core-order-list.d.ts +24 -0
  235. package/types/aeris-ui-core-organization-chart.d.ts +6 -0
  236. package/types/aeris-ui-core-paginator.d.ts +37 -1
  237. package/types/aeris-ui-core-password.d.ts +18 -0
  238. package/types/aeris-ui-core-pick-list.d.ts +54 -0
  239. package/types/aeris-ui-core-popover.d.ts +80 -5
  240. package/types/aeris-ui-core-progress-bar.d.ts +6 -0
  241. package/types/aeris-ui-core-progress-spinner.d.ts +6 -0
  242. package/types/aeris-ui-core-radio-button.d.ts +24 -2
  243. package/types/aeris-ui-core-rating.d.ts +1 -1
  244. package/types/aeris-ui-core-scroll-top.d.ts +7 -0
  245. package/types/aeris-ui-core-select-native.d.ts +40 -0
  246. package/types/aeris-ui-core-select.d.ts +12 -0
  247. package/types/aeris-ui-core-sidebar.d.ts +220 -0
  248. package/types/aeris-ui-core-splitter.d.ts +3 -4
  249. package/types/aeris-ui-core-table.d.ts +144 -11
  250. package/types/aeris-ui-core-tabs.d.ts +12 -0
  251. package/types/aeris-ui-core-textarea.d.ts +11 -1
  252. package/types/aeris-ui-core-theme-builder.d.ts +31 -296
  253. package/types/aeris-ui-core-tiered-menu.d.ts +6 -0
  254. package/types/aeris-ui-core-toast.d.ts +6 -0
  255. package/types/aeris-ui-core-toolbar.d.ts +213 -3
  256. package/types/aeris-ui-core-tree-select.d.ts +30 -0
  257. package/types/aeris-ui-core-tree-table.d.ts +75 -14
  258. package/types/aeris-ui-core-tree.d.ts +24 -0
  259. package/types/aeris-ui-core.d.ts +142 -3
@@ -0,0 +1,946 @@
1
+ import { isPlatformBrowser } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, ElementRef, PLATFORM_ID, booleanAttribute, computed, effect, inject, input, linkedSignal, model, output, signal, viewChildren } from "@angular/core";
4
+ import { aerisInternalDateTimeLayout, aerisInternalDaysInMonth, aerisInternalFormatDateParts, aerisInternalFormatTimeParts, aerisInternalFromTwelveHour, aerisInternalParseDateParts, aerisInternalParseTimeParts, aerisInternalResolveDateDraft, aerisInternalToTwelveHour, ɵaerisDisplayInvalid } from "@aeris-ui/core";
5
+ function datePickerInputDraft(value, options = {}) {
6
+ const draft = {
7
+ year: "",
8
+ month: "",
9
+ day: "",
10
+ hour: "",
11
+ minute: "",
12
+ second: "",
13
+ dayPeriod: ""
14
+ };
15
+ if (value === null) return draft;
16
+ const [date, clock] = value.split("T");
17
+ const parts = options.mode === "time" ? null : aerisInternalParseDateParts(date ?? "");
18
+ const time = options.mode === "dateTime" ? aerisInternalParseTimeParts(clock ?? "") : options.mode === "time" ? aerisInternalParseTimeParts(value) : null;
19
+ if (!parts && options.mode !== "time" || !time && options.mode && options.mode !== "date") return {
20
+ ...draft,
21
+ [options.mode === "time" ? "hour" : "year"]: value
22
+ };
23
+ return {
24
+ year: parts ? String(parts.year).padStart(4, "0") : "",
25
+ month: parts ? String(parts.month).padStart(2, "0") : "",
26
+ day: parts ? String(parts.day).padStart(2, "0") : "",
27
+ hour: time ? String(options.hourCycle === "12" ? aerisInternalToTwelveHour(time.hours) : time.hours).padStart(2, "0") : "",
28
+ minute: time ? String(time.minutes).padStart(2, "0") : "",
29
+ second: time ? String(time.seconds).padStart(2, "0") : "",
30
+ dayPeriod: time ? time.hours >= 12 ? "PM" : "AM" : ""
31
+ };
32
+ }
33
+ function datePickerInputParts(granularity, options = {}) {
34
+ const date = granularity === "year" ? ["year"] : granularity === "month" ? ["year", "month"] : [
35
+ "year",
36
+ "month",
37
+ "day"
38
+ ];
39
+ const time = [
40
+ "hour",
41
+ "minute",
42
+ ...options.showSeconds ? ["second"] : [],
43
+ ...options.hourCycle === "12" ? ["dayPeriod"] : []
44
+ ];
45
+ return options.mode === "time" ? time : options.mode === "dateTime" ? [...date, ...time] : date;
46
+ }
47
+ function resolveDatePickerInput(draft, rules) {
48
+ const visible = datePickerInputParts(rules.granularity, rules);
49
+ if (visible.every((part) => draft[part] === "")) return {
50
+ value: null,
51
+ error: rules.required ? "required" : null
52
+ };
53
+ const date = rules.mode === "time" ? {
54
+ value: null,
55
+ error: null
56
+ } : resolveCalendarInput(draft, rules);
57
+ if (date.error) return date;
58
+ if (!rules.mode || rules.mode === "date") return date;
59
+ const clockParts = visible.filter((part) => part === "hour" || part === "minute" || part === "second");
60
+ if (clockParts.some((part) => draft[part] !== "" && (!/^\d+$/.test(draft[part]) || draft[part].length > 2))) return {
61
+ value: null,
62
+ error: "invalid"
63
+ };
64
+ const hour = Number(draft.hour);
65
+ const minute = Number(draft.minute);
66
+ const second = Number(draft.second || "0");
67
+ if (draft.hour !== "" && (hour < (rules.hourCycle === "12" ? 1 : 0) || hour > (rules.hourCycle === "12" ? 12 : 23)) || minute > 59 || second > 59 || !Number.isInteger(second) || second < 0) return {
68
+ value: null,
69
+ error: "invalid"
70
+ };
71
+ if (rules.hourCycle === "12" && draft.dayPeriod !== "" && draft.dayPeriod !== "AM" && draft.dayPeriod !== "PM") return {
72
+ value: null,
73
+ error: "invalid"
74
+ };
75
+ if (clockParts.some((part) => draft[part].length < 2) || rules.hourCycle === "12" && draft.dayPeriod === "") return {
76
+ value: null,
77
+ error: "incomplete"
78
+ };
79
+ const time = aerisInternalFormatTimeParts({
80
+ hours: rules.hourCycle === "12" ? aerisInternalFromTwelveHour(hour, draft.dayPeriod) : hour,
81
+ minutes: minute,
82
+ seconds: second
83
+ }, true);
84
+ const value = rules.mode === "time" ? time : `${date.value}T${time}`;
85
+ if (rules.dateDisabled?.(value)) return {
86
+ value: null,
87
+ error: "unavailable"
88
+ };
89
+ return {
90
+ value,
91
+ error: null
92
+ };
93
+ }
94
+ function resolveCalendarInput(draft, rules) {
95
+ const visible = datePickerInputParts(rules.granularity);
96
+ if (visible.some((part) => draft[part] !== "" && !/^\d+$/.test(draft[part]))) return {
97
+ value: null,
98
+ error: "invalid"
99
+ };
100
+ const result = aerisInternalResolveDateDraft({
101
+ year: draft.year === "" ? null : Number(draft.year),
102
+ month: rules.granularity === "year" ? 1 : draft.month === "" ? null : Number(draft.month),
103
+ day: rules.granularity !== "day" ? 1 : draft.day === "" ? null : Number(draft.day)
104
+ });
105
+ if (result.state === "invalid") return {
106
+ value: null,
107
+ error: "invalid"
108
+ };
109
+ if (result.state !== "complete" || visible.some((part) => draft[part].length < (part === "year" ? 4 : 2))) return {
110
+ value: null,
111
+ error: "incomplete"
112
+ };
113
+ if (visible.some((part) => draft[part].length > (part === "year" ? 4 : 2))) return {
114
+ value: null,
115
+ error: "invalid"
116
+ };
117
+ const value = aerisInternalFormatDateParts(result.value);
118
+ const minimum = rules.min === null ? null : aerisInternalParseDateParts(rules.min);
119
+ const maximum = rules.max === null ? null : aerisInternalParseDateParts(rules.max);
120
+ const minimumKey = minimum ? aerisInternalFormatDateParts(minimum) : null;
121
+ const maximumKey = maximum ? aerisInternalFormatDateParts(maximum) : null;
122
+ if (rules.min !== null && !minimum || rules.max !== null && !maximum || minimumKey !== null && maximumKey !== null && minimumKey > maximumKey) return {
123
+ value: null,
124
+ error: "configuration"
125
+ };
126
+ const length = rules.granularity === "year" ? 4 : rules.granularity === "month" ? 7 : 10;
127
+ if (minimumKey !== null && value.slice(0, length) < minimumKey.slice(0, length)) return {
128
+ value: null,
129
+ error: "min"
130
+ };
131
+ if (maximumKey !== null && value.slice(0, length) > maximumKey.slice(0, length)) return {
132
+ value: null,
133
+ error: "max"
134
+ };
135
+ if ((!rules.mode || rules.mode === "date") && rules.dateDisabled?.(value)) return {
136
+ value: null,
137
+ error: "unavailable"
138
+ };
139
+ return {
140
+ value,
141
+ error: null
142
+ };
143
+ }
144
+ function datePickerInputLayout(locale, granularity, options = {}) {
145
+ if (options.mode === "time") return aerisInternalDateTimeLayout(locale, "time", options.hourCycle, options.showSeconds);
146
+ if (options.mode === "dateTime") return [
147
+ ...datePickerInputLayout(locale, granularity),
148
+ {
149
+ type: "literal",
150
+ value: " "
151
+ },
152
+ ...aerisInternalDateTimeLayout(locale, "time", options.hourCycle, options.showSeconds)
153
+ ];
154
+ if (granularity === "day") return aerisInternalDateTimeLayout(locale, "date").filter((part) => part.type === "literal" || part.type === "year" || part.type === "month" || part.type === "day");
155
+ return new Intl.DateTimeFormat(locale, {
156
+ calendar: "gregory",
157
+ timeZone: "UTC",
158
+ year: "numeric",
159
+ month: granularity === "month" ? "2-digit" : void 0
160
+ }).formatToParts(new Date(Date.UTC(2006, 10, 22))).flatMap((part) => part.type === "literal" ? [{
161
+ type: "literal",
162
+ value: part.value
163
+ }] : part.type === "year" || part.type === "month" ? [{ type: part.type }] : []);
164
+ }
165
+ function datePickerInputDigits(locale) {
166
+ const formatter = new Intl.NumberFormat(locale, { useGrouping: false });
167
+ return Array.from({ length: 10 }, (_, digit) => formatter.format(digit));
168
+ }
169
+ function datePickerInputAscii(value, digits) {
170
+ let result = value;
171
+ digits.forEach((digit, index) => {
172
+ result = result.replaceAll(digit, String(index));
173
+ });
174
+ return result.replace(/[\u200e\u200f\u061c]/g, "");
175
+ }
176
+ function datePickerInputPaste(value, locale, granularity, options = {}) {
177
+ const text = datePickerInputAscii(value.trim(), datePickerInputDigits(locale));
178
+ if (options.mode === "time" && aerisInternalParseTimeParts(text) && (!options.showSeconds || /^\d{2}:\d{2}:\d{2}$/.test(text))) return datePickerInputDraft(text, options);
179
+ if (options.mode === "dateTime") {
180
+ const match = /^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2}(?::\d{2})?)$/.exec(text);
181
+ if (match && aerisInternalParseDateParts(match[1]) && aerisInternalParseTimeParts(match[2]) && (!options.showSeconds || match[2].length === 8)) return datePickerInputDraft(`${match[1]}T${match[2]}`, options);
182
+ }
183
+ if ((!options.mode || options.mode === "date") && aerisInternalParseDateParts(text)) return datePickerInputDraft(text);
184
+ if ((!options.mode || options.mode === "date") && granularity === "year" && /^\d{4}$/.test(text)) return datePickerInputDraft(`${text}-01-01`);
185
+ if ((!options.mode || options.mode === "date") && granularity === "month" && /^\d{4}-\d{2}$/.test(text)) return datePickerInputDraft(`${text}-01`);
186
+ const layout = datePickerInputLayout(locale, granularity, options);
187
+ const periods = options.hourCycle === "12" ? datePickerInputPeriods(locale) : {
188
+ AM: "AM",
189
+ PM: "PM"
190
+ };
191
+ const pattern = layout.map((part) => part.type === "literal" ? part.value.trim() === "" ? "[\\s,،]+" : escapePattern(part.value.replace(/[\u200e\u200f\u061c]/g, "")) : part.type === "dayPeriod" ? `(${escapePattern(periods.AM)}|${escapePattern(periods.PM)}|AM|PM)` : "(\\d{1,4})").join("");
192
+ const match = new RegExp(`^${pattern}$`, "iu").exec(text);
193
+ if (!match) return null;
194
+ const draft = {
195
+ ...datePickerInputDraft(null),
196
+ month: "01",
197
+ day: "01",
198
+ second: options.showSeconds ? "" : "00"
199
+ };
200
+ let index = 1;
201
+ for (const part of layout) if (part.type !== "literal") draft[part.type] = part.type === "dayPeriod" ? datePickerInputPeriod(match[index++] ?? "", periods) : (match[index++] ?? "").padStart(part.type === "year" ? 4 : 2, "0");
202
+ return draft;
203
+ }
204
+ function escapePattern(value) {
205
+ return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
206
+ }
207
+ function datePickerInputPeriods(locale) {
208
+ const format = new Intl.DateTimeFormat(locale, {
209
+ hour: "numeric",
210
+ hourCycle: "h12",
211
+ timeZone: "UTC"
212
+ });
213
+ const label = (hour) => format.formatToParts(new Date(Date.UTC(2006, 10, 22, hour))).find((part) => part.type === "dayPeriod")?.value;
214
+ return {
215
+ AM: label(0) ?? "AM",
216
+ PM: label(12) ?? "PM"
217
+ };
218
+ }
219
+ function datePickerInputPeriod(value, periods) {
220
+ const text = value.trim().toLocaleLowerCase();
221
+ const matches = ["AM", "PM"].filter((period) => [period, periods[period]].some((label) => label.toLocaleLowerCase() === text || text.length === 1 && label.toLocaleLowerCase().startsWith(text)));
222
+ return matches.length === 1 ? matches[0] : value;
223
+ }
224
+ let fieldId = 0;
225
+ var ɵAerisDatePickerInput = class ɵAerisDatePickerInput {
226
+ value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
227
+ inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
228
+ locale = input("en-US", ...ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []);
229
+ granularity = input("day", ...ngDevMode ? [{ debugName: "granularity" }] : /* istanbul ignore next */ []);
230
+ mode = input("date", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
231
+ hourCycle = input("24", ...ngDevMode ? [{ debugName: "hourCycle" }] : /* istanbul ignore next */ []);
232
+ showSeconds = input(false, ...ngDevMode ? [{ debugName: "showSeconds" }] : /* istanbul ignore next */ []);
233
+ minuteStep = input(1, ...ngDevMode ? [{ debugName: "minuteStep" }] : /* istanbul ignore next */ []);
234
+ secondStep = input(1, ...ngDevMode ? [{ debugName: "secondStep" }] : /* istanbul ignore next */ []);
235
+ clockLabels = input({}, ...ngDevMode ? [{ debugName: "clockLabels" }] : /* istanbul ignore next */ []);
236
+ min = input(null, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
237
+ max = input(null, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
238
+ dateDisabled = input(null, ...ngDevMode ? [{ debugName: "dateDisabled" }] : /* istanbul ignore next */ []);
239
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
240
+ appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
241
+ disabled = input(false, {
242
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
243
+ transform: booleanAttribute
244
+ });
245
+ readonly = input(false, {
246
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
247
+ transform: booleanAttribute
248
+ });
249
+ required = input(false, {
250
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
251
+ transform: booleanAttribute
252
+ });
253
+ invalid = input(false, {
254
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
255
+ transform: booleanAttribute
256
+ });
257
+ touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
258
+ ariaLabel = input("Date", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
259
+ ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
260
+ ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
261
+ edited = output();
262
+ focused = output();
263
+ blurred = output();
264
+ host = inject(ElementRef);
265
+ browser = isPlatformBrowser(inject(PLATFORM_ID));
266
+ generatedId = `aeris-date-picker-input-${++fieldId}`;
267
+ interacted = signal(false, ...ngDevMode ? [{ debugName: "interacted" }] : /* istanbul ignore next */ []);
268
+ segments = viewChildren("segment", ...ngDevMode ? [{ debugName: "segments" }] : /* istanbul ignore next */ []);
269
+ effectiveDisabled = computed(() => this.disabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
270
+ resolvedId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
271
+ rules = computed(() => ({
272
+ granularity: this.granularity(),
273
+ min: this.min() ?? null,
274
+ max: this.max() ?? null,
275
+ required: this.required(),
276
+ dateDisabled: this.dateDisabled(),
277
+ mode: this.mode(),
278
+ hourCycle: this.hourCycle(),
279
+ showSeconds: this.showSeconds()
280
+ }), ...ngDevMode ? [{ debugName: "rules" }] : /* istanbul ignore next */ []);
281
+ draft = linkedSignal({
282
+ ...ngDevMode ? { debugName: "draft" } : /* istanbul ignore next */ {},
283
+ source: () => ({
284
+ value: this.value(),
285
+ mode: this.mode(),
286
+ hourCycle: this.hourCycle()
287
+ }),
288
+ computation: (current, previous) => {
289
+ if (previous && previous.source.value === current.value && previous.source.mode === current.mode) {
290
+ const draft = previous.value;
291
+ if (previous.source.hourCycle === current.hourCycle || draft.hour === "") return draft;
292
+ const hour = Number(draft.hour);
293
+ if (!Number.isInteger(hour) || hour < (previous.source.hourCycle === "12" ? 1 : 0) || hour > (previous.source.hourCycle === "12" ? 12 : 23)) return draft;
294
+ if (previous.source.hourCycle === "12" && draft.dayPeriod !== "AM" && draft.dayPeriod !== "PM") return draft;
295
+ const canonical = previous.source.hourCycle === "12" ? aerisInternalFromTwelveHour(hour, draft.dayPeriod) : hour;
296
+ return {
297
+ ...draft,
298
+ hour: String(current.hourCycle === "12" ? aerisInternalToTwelveHour(canonical) : canonical).padStart(2, "0"),
299
+ dayPeriod: canonical >= 12 ? "PM" : "AM"
300
+ };
301
+ }
302
+ return datePickerInputDraft(current.value, current);
303
+ }
304
+ });
305
+ validationError = computed(() => resolveDatePickerInput(this.draft(), this.rules()).error, ...ngDevMode ? [{ debugName: "validationError" }] : /* istanbul ignore next */ []);
306
+ displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()) || Boolean(this.validationError() && (this.touched() ?? this.interacted())), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
307
+ digits = computed(() => datePickerInputDigits(this.locale()), ...ngDevMode ? [{ debugName: "digits" }] : /* istanbul ignore next */ []);
308
+ periods = computed(() => datePickerInputPeriods(this.locale()), ...ngDevMode ? [{ debugName: "periods" }] : /* istanbul ignore next */ []);
309
+ layout = computed(() => datePickerInputLayout(this.locale(), this.granularity(), {
310
+ mode: this.mode(),
311
+ hourCycle: this.hourCycle(),
312
+ showSeconds: this.showSeconds()
313
+ }), ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
314
+ labels = computed(() => {
315
+ const names = new Intl.DisplayNames(this.locale(), { type: "dateTimeField" });
316
+ return Object.fromEntries([
317
+ "year",
318
+ "month",
319
+ "day",
320
+ "hour",
321
+ "minute",
322
+ "second",
323
+ "dayPeriod"
324
+ ].map((part) => [part, this.clockLabels()[part] || names.of(part) || part]));
325
+ }, ...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
326
+ entries = computed(() => {
327
+ let index = 0;
328
+ return this.layout().map((part) => {
329
+ if (part.type === "literal") return {
330
+ ...part,
331
+ id: "",
332
+ label: "",
333
+ text: part.value,
334
+ minimum: 0,
335
+ maximum: 0,
336
+ now: null,
337
+ width: 0,
338
+ placeholder: ""
339
+ };
340
+ const raw = this.draft()[part.type];
341
+ const [minimum, maximum] = this.bounds(part.type);
342
+ const now = part.type === "dayPeriod" ? raw === "AM" ? 0 : raw === "PM" ? 1 : null : /^\d+$/.test(raw) ? Number(raw) : null;
343
+ const text = part.type === "dayPeriod" && (raw === "AM" || raw === "PM") ? this.periods()[raw] : raw.replace(/\d/g, (digit) => this.digits()[Number(digit)]);
344
+ return {
345
+ ...part,
346
+ id: index++ === 0 ? this.resolvedId() : `${this.resolvedId()}-${part.type}`,
347
+ label: this.labels()[part.type],
348
+ text,
349
+ minimum,
350
+ maximum,
351
+ now: now !== null && now >= minimum && now <= maximum ? now : null,
352
+ width: part.type === "year" ? 4 : part.type === "dayPeriod" ? Math.max(...Object.values(this.periods()).map((value) => Array.from(value).reduce((count, char) => count + ((char.codePointAt(0) ?? 0) > 255 ? 2 : 1), 0))) : 2,
353
+ placeholder: part.type === "year" ? "yyyy" : part.type === "month" || part.type === "minute" ? "mm" : part.type === "day" ? "dd" : part.type === "hour" ? "hh" : part.type === "second" ? "ss" : this.periods().AM
354
+ };
355
+ });
356
+ }, ...ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []);
357
+ groups = computed(() => {
358
+ const entries = this.entries();
359
+ if (this.mode() !== "dateTime") return [entries];
360
+ const boundary = entries.findIndex((entry) => entry.type === "hour" || entry.type === "dayPeriod");
361
+ return [entries.slice(0, boundary - 1), entries.slice(boundary)];
362
+ }, ...ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []);
363
+ constructor() {
364
+ effect(() => {
365
+ const error = this.validationError();
366
+ const inputs = this.segments();
367
+ if (this.browser) inputs.forEach((element, index) => element.nativeElement.setCustomValidity(index === 0 && error && !this.effectiveDisabled() ? `Date ${error}.` : ""));
368
+ });
369
+ }
370
+ writeValue(value) {
371
+ this.value.set(typeof value === "string" ? value : null);
372
+ this.draft.set(datePickerInputDraft(this.value(), {
373
+ mode: this.mode(),
374
+ hourCycle: this.hourCycle()
375
+ }));
376
+ this.interacted.set(false);
377
+ }
378
+ focus(options) {
379
+ this.segments()[0]?.nativeElement.focus(options);
380
+ }
381
+ handleFieldClick(event) {
382
+ if (this.effectiveDisabled() || this.segments().some((segment) => segment.nativeElement === event.target)) return;
383
+ this.focus();
384
+ }
385
+ handleFocus(event) {
386
+ event.target.select();
387
+ this.focused.emit(event);
388
+ }
389
+ handleNativeInvalid(event) {
390
+ this.interacted.set(true);
391
+ this.publish(event);
392
+ }
393
+ handleInput(part, event) {
394
+ if (this.effectiveDisabled() || this.readonly()) return;
395
+ const text = datePickerInputAscii(event.target.value, this.digits());
396
+ const raw = part === "dayPeriod" ? datePickerInputPeriod(text, this.periods()) : text;
397
+ this.draft.update((draft) => ({
398
+ ...draft,
399
+ [part]: raw
400
+ }));
401
+ if (part === "dayPeriod") {
402
+ if (raw === "AM" || raw === "PM") this.move(part, 1);
403
+ this.publish(event);
404
+ return;
405
+ }
406
+ const [minimum, maximum] = this.bounds(part);
407
+ if (/^\d+$/.test(raw) && (raw.length === (part === "year" ? 4 : 2) || part !== "year" && Number(raw) > Math.floor(maximum / 10))) {
408
+ this.finalize(part);
409
+ if (Number(raw) <= maximum && Number(raw) >= minimum) this.move(part, 1);
410
+ }
411
+ this.publish(event);
412
+ }
413
+ handleSegmentBlur(part, event) {
414
+ if (this.effectiveDisabled() || this.readonly()) return;
415
+ this.finalize(part);
416
+ this.publish(event);
417
+ }
418
+ handleFocusOut(event) {
419
+ if (this.effectiveDisabled()) return;
420
+ if (this.host.nativeElement.contains(event.relatedTarget)) return;
421
+ this.interacted.set(true);
422
+ this.blurred.emit(event);
423
+ }
424
+ handleKey(part, event) {
425
+ if (event.altKey || event.ctrlKey || event.metaKey || this.effectiveDisabled()) return;
426
+ if (event.key === "ArrowLeft" || event.key === "ArrowRight") {
427
+ event.preventDefault();
428
+ if (!this.readonly()) this.finalize(part);
429
+ const rtl = this.host.nativeElement.ownerDocument.defaultView?.getComputedStyle(this.host.nativeElement).direction === "rtl";
430
+ this.move(part, (event.key === "ArrowRight" ? 1 : -1) * (rtl ? -1 : 1));
431
+ return;
432
+ }
433
+ if (this.readonly()) return;
434
+ const [minimum, maximum] = this.bounds(part);
435
+ if ([
436
+ "ArrowUp",
437
+ "ArrowDown",
438
+ "Home",
439
+ "End"
440
+ ].includes(event.key)) {
441
+ event.preventDefault();
442
+ const current = part === "dayPeriod" ? this.draft().dayPeriod === "PM" ? 1 : 0 : Number(this.draft()[part]) || minimum;
443
+ const step = part === "minute" ? this.minuteStep() : part === "second" ? this.secondStep() : 1;
444
+ const next = event.key === "Home" ? minimum : event.key === "End" ? maximum : current + (event.key === "ArrowUp" ? step : -step);
445
+ const number = part === "year" ? Math.max(minimum, Math.min(maximum, next)) : ((next - minimum) % (maximum - minimum + 1) + maximum - minimum + 1) % (maximum - minimum + 1) + minimum;
446
+ this.draft.update((draft) => ({
447
+ ...draft,
448
+ [part]: part === "dayPeriod" ? number === 0 ? "AM" : "PM" : String(number).padStart(part === "year" ? 4 : 2, "0")
449
+ }));
450
+ this.finalize(part);
451
+ this.publish(event);
452
+ } else if (event.key === "Delete" || event.key === "Backspace") {
453
+ event.preventDefault();
454
+ this.draft.update((draft) => ({
455
+ ...draft,
456
+ [part]: ""
457
+ }));
458
+ this.publish(event);
459
+ } else if (event.key.length === 1 && !/\d/.test(datePickerInputAscii(event.key, this.digits())) && this.layout().some((entry) => entry.type === "literal" && entry.value.includes(event.key))) {
460
+ event.preventDefault();
461
+ this.finalize(part);
462
+ this.publish(event);
463
+ this.move(part, 1);
464
+ }
465
+ }
466
+ handlePaste(event) {
467
+ if (this.effectiveDisabled() || this.readonly()) return;
468
+ event.preventDefault();
469
+ const text = event.clipboardData?.getData("text") ?? "";
470
+ const pasted = datePickerInputPaste(text, this.locale(), this.granularity(), this.rules());
471
+ const error = pasted ? resolveDatePickerInput(pasted, this.rules()).error : "invalid";
472
+ if (pasted && error !== "invalid" && error !== "incomplete" && (this.mode() === "time" || this.granularity() === "day" || pasted.day === "01" && (this.granularity() !== "year" || pasted.month === "01"))) this.draft.set(pasted);
473
+ else this.draft.set({
474
+ ...datePickerInputDraft(null),
475
+ [this.mode() === "time" ? "hour" : "year"]: text
476
+ });
477
+ this.publish(event);
478
+ }
479
+ bounds(part) {
480
+ if (part === "hour") return this.hourCycle() === "12" ? [1, 12] : [0, 23];
481
+ if (part === "minute" || part === "second") return [0, 59];
482
+ if (part === "dayPeriod") return [0, 1];
483
+ return part === "year" ? [1, 9999] : part === "month" ? [1, 12] : [1, aerisInternalDaysInMonth(Number(this.draft().year), Number(this.draft().month)) || 31];
484
+ }
485
+ finalize(part) {
486
+ const draft = this.draft();
487
+ const raw = draft[part];
488
+ if (!/^\d+$/.test(raw)) return;
489
+ const [minimum, maximum] = this.bounds(part);
490
+ if (Number(raw) < minimum || Number(raw) > maximum) return;
491
+ let next = {
492
+ ...draft,
493
+ [part]: raw.padStart(part === "year" ? 4 : 2, "0")
494
+ };
495
+ if ((part === "month" || part === "year") && /^\d{4}$/.test(next.year) && /^\d{2}$/.test(next.month) && /^\d{2}$/.test(next.day)) {
496
+ const lastDay = aerisInternalDaysInMonth(Number(next.year), Number(next.month));
497
+ if (lastDay && Number(next.day) > lastDay) next = {
498
+ ...next,
499
+ day: String(lastDay).padStart(2, "0")
500
+ };
501
+ }
502
+ this.draft.set(next);
503
+ }
504
+ move(part, direction) {
505
+ const index = this.entries().filter((entry) => entry.type !== "literal").findIndex((entry) => entry.type === part);
506
+ const target = this.segments()[index + direction]?.nativeElement;
507
+ target?.focus();
508
+ target?.select();
509
+ }
510
+ publish(event) {
511
+ const result = resolveDatePickerInput(this.draft(), this.rules());
512
+ if (!result.error || result.error === "required") this.value.set(result.value);
513
+ this.edited.emit({
514
+ ...result,
515
+ originalEvent: event
516
+ });
517
+ }
518
+ static ɵfac = i0.ɵɵngDeclareFactory({
519
+ minVersion: "12.0.0",
520
+ version: "22.2.3",
521
+ ngImport: i0,
522
+ type: ɵAerisDatePickerInput,
523
+ deps: [],
524
+ target: i0.ɵɵFactoryTarget.Component
525
+ });
526
+ static ɵcmp = i0.ɵɵngDeclareComponent({
527
+ minVersion: "17.0.0",
528
+ version: "22.2.3",
529
+ type: ɵAerisDatePickerInput,
530
+ isStandalone: true,
531
+ selector: "aeris-internal-date-picker-input",
532
+ inputs: {
533
+ value: {
534
+ classPropertyName: "value",
535
+ publicName: "value",
536
+ isSignal: true,
537
+ isRequired: false,
538
+ transformFunction: null
539
+ },
540
+ inputId: {
541
+ classPropertyName: "inputId",
542
+ publicName: "inputId",
543
+ isSignal: true,
544
+ isRequired: false,
545
+ transformFunction: null
546
+ },
547
+ locale: {
548
+ classPropertyName: "locale",
549
+ publicName: "locale",
550
+ isSignal: true,
551
+ isRequired: false,
552
+ transformFunction: null
553
+ },
554
+ granularity: {
555
+ classPropertyName: "granularity",
556
+ publicName: "granularity",
557
+ isSignal: true,
558
+ isRequired: false,
559
+ transformFunction: null
560
+ },
561
+ mode: {
562
+ classPropertyName: "mode",
563
+ publicName: "mode",
564
+ isSignal: true,
565
+ isRequired: false,
566
+ transformFunction: null
567
+ },
568
+ hourCycle: {
569
+ classPropertyName: "hourCycle",
570
+ publicName: "hourCycle",
571
+ isSignal: true,
572
+ isRequired: false,
573
+ transformFunction: null
574
+ },
575
+ showSeconds: {
576
+ classPropertyName: "showSeconds",
577
+ publicName: "showSeconds",
578
+ isSignal: true,
579
+ isRequired: false,
580
+ transformFunction: null
581
+ },
582
+ minuteStep: {
583
+ classPropertyName: "minuteStep",
584
+ publicName: "minuteStep",
585
+ isSignal: true,
586
+ isRequired: false,
587
+ transformFunction: null
588
+ },
589
+ secondStep: {
590
+ classPropertyName: "secondStep",
591
+ publicName: "secondStep",
592
+ isSignal: true,
593
+ isRequired: false,
594
+ transformFunction: null
595
+ },
596
+ clockLabels: {
597
+ classPropertyName: "clockLabels",
598
+ publicName: "clockLabels",
599
+ isSignal: true,
600
+ isRequired: false,
601
+ transformFunction: null
602
+ },
603
+ min: {
604
+ classPropertyName: "min",
605
+ publicName: "min",
606
+ isSignal: true,
607
+ isRequired: false,
608
+ transformFunction: null
609
+ },
610
+ max: {
611
+ classPropertyName: "max",
612
+ publicName: "max",
613
+ isSignal: true,
614
+ isRequired: false,
615
+ transformFunction: null
616
+ },
617
+ dateDisabled: {
618
+ classPropertyName: "dateDisabled",
619
+ publicName: "dateDisabled",
620
+ isSignal: true,
621
+ isRequired: false,
622
+ transformFunction: null
623
+ },
624
+ size: {
625
+ classPropertyName: "size",
626
+ publicName: "size",
627
+ isSignal: true,
628
+ isRequired: false,
629
+ transformFunction: null
630
+ },
631
+ appearance: {
632
+ classPropertyName: "appearance",
633
+ publicName: "appearance",
634
+ isSignal: true,
635
+ isRequired: false,
636
+ transformFunction: null
637
+ },
638
+ disabled: {
639
+ classPropertyName: "disabled",
640
+ publicName: "disabled",
641
+ isSignal: true,
642
+ isRequired: false,
643
+ transformFunction: null
644
+ },
645
+ readonly: {
646
+ classPropertyName: "readonly",
647
+ publicName: "readonly",
648
+ isSignal: true,
649
+ isRequired: false,
650
+ transformFunction: null
651
+ },
652
+ required: {
653
+ classPropertyName: "required",
654
+ publicName: "required",
655
+ isSignal: true,
656
+ isRequired: false,
657
+ transformFunction: null
658
+ },
659
+ invalid: {
660
+ classPropertyName: "invalid",
661
+ publicName: "invalid",
662
+ isSignal: true,
663
+ isRequired: false,
664
+ transformFunction: null
665
+ },
666
+ touched: {
667
+ classPropertyName: "touched",
668
+ publicName: "touched",
669
+ isSignal: true,
670
+ isRequired: false,
671
+ transformFunction: null
672
+ },
673
+ ariaLabel: {
674
+ classPropertyName: "ariaLabel",
675
+ publicName: "ariaLabel",
676
+ isSignal: true,
677
+ isRequired: false,
678
+ transformFunction: null
679
+ },
680
+ ariaLabelledBy: {
681
+ classPropertyName: "ariaLabelledBy",
682
+ publicName: "ariaLabelledBy",
683
+ isSignal: true,
684
+ isRequired: false,
685
+ transformFunction: null
686
+ },
687
+ ariaDescribedBy: {
688
+ classPropertyName: "ariaDescribedBy",
689
+ publicName: "ariaDescribedBy",
690
+ isSignal: true,
691
+ isRequired: false,
692
+ transformFunction: null
693
+ }
694
+ },
695
+ outputs: {
696
+ value: "valueChange",
697
+ edited: "edited",
698
+ focused: "focused",
699
+ blurred: "blurred"
700
+ },
701
+ host: { properties: {
702
+ "attr.data-size": "size()",
703
+ "attr.data-appearance": "appearance()",
704
+ "attr.data-invalid": "displayInvalid() || null",
705
+ "attr.data-disabled": "effectiveDisabled() || null"
706
+ } },
707
+ viewQueries: [{
708
+ propertyName: "segments",
709
+ predicate: ["segment"],
710
+ descendants: true,
711
+ isSignal: true
712
+ }],
713
+ ngImport: i0,
714
+ template: "<div\n class=\"aeris-date-picker-input\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n (click)=\"handleFieldClick($event)\"\n (focusout)=\"handleFocusOut($event)\"\n>\n @for (group of groups(); track $index) {\n <span class=\"aeris-date-picker-input__segments\">\n @for (entry of group; track entry.type === 'literal' ? $index : entry.type) {\n @if (entry.type === 'literal') {\n <span class=\"aeris-date-picker-input__literal\" aria-hidden=\"true\">{{ entry.text }}</span>\n } @else {\n <input\n #segment\n type=\"text\"\n role=\"spinbutton\"\n [attr.inputmode]=\"entry.type === 'dayPeriod' ? 'text' : 'numeric'\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n dir=\"ltr\"\n [id]=\"entry.id\"\n [attr.data-segment]=\"entry.type\"\n [attr.aria-label]=\"entry.label\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-valuemin]=\"entry.minimum\"\n [attr.aria-valuemax]=\"entry.maximum\"\n [attr.aria-valuenow]=\"entry.now\"\n [attr.aria-valuetext]=\"entry.text || null\"\n [style.--aeris-date-picker-input-digits]=\"entry.width\"\n [value]=\"entry.text\"\n [placeholder]=\"entry.placeholder\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n (input)=\"handleInput(entry.type, $event)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleSegmentBlur(entry.type, $event)\"\n (keydown)=\"handleKey(entry.type, $event)\"\n (paste)=\"handlePaste($event)\"\n (invalid)=\"handleNativeInvalid($event)\"\n />\n }\n }\n </span>\n }\n</div>\n",
715
+ styles: [":host{--aeris-date-picker-input-height: var(--aeris-control-height, 2.625rem);--aeris-date-picker-input-padding: var(--aeris-control-padding-x, .75rem);--aeris-date-picker-input-font-size: var(--aeris-font-size-lg, .875rem);display:inline-block;min-width:0;max-width:100%;width:100%;font:inherit;color:inherit}:host([data-size=xs]){--aeris-date-picker-input-height: calc(var(--aeris-control-height, 2.625rem) - .875rem);--aeris-date-picker-input-font-size: var(--aeris-font-size-sm, .75rem)}:host([data-size=sm]){--aeris-date-picker-input-height: calc(var(--aeris-control-height, 2.625rem) - .5rem);--aeris-date-picker-input-font-size: var(--aeris-font-size-md, .8125rem)}:host([data-size=lg]){--aeris-date-picker-input-height: calc(var(--aeris-control-height, 2.625rem) + .5rem);--aeris-date-picker-input-font-size: var(--aeris-font-size-xl, .9375rem)}.aeris-date-picker-input{box-sizing:border-box;display:flex;align-items:center;flex-wrap:wrap;column-gap:.75rem;width:100%;min-width:0;min-height:var(--aeris-date-picker-input-height);padding-inline:var(--aeris-date-picker-input-padding);padding-inline-end:var(--aeris-date-picker-input-padding-end, var(--aeris-date-picker-input-padding));border:1px solid var(--aeris-date-picker-input-border, var(--aeris-border, #efefef));border-radius:var(--aeris-date-picker-input-radius, var(--aeris-radius-control, .4375rem));background:var(--aeris-date-picker-input-background, var(--aeris-surface, #fff));font-size:var(--aeris-date-picker-input-font-size);transition:border-color var(--aeris-motion-normal, .15s),box-shadow var(--aeris-motion-normal, .15s)}:host([data-appearance=filled]) .aeris-date-picker-input{background:var(--aeris-surface-2, #f3f3f3);border-color:transparent}.aeris-date-picker-input:focus-within{border-color:var(--aeris-control-focus-border, var(--aeris-focus, #111111));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}:host([data-invalid]) .aeris-date-picker-input{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}:host([data-invalid]) .aeris-date-picker-input:focus-within{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}:host([data-disabled]){opacity:var(--aeris-disabled-opacity, .5)}.aeris-date-picker-input input[role=spinbutton]{box-sizing:content-box;flex:0 1 auto;width:calc(var(--aeris-date-picker-input-digits) * 1ch + .45rem);min-width:1.1ch;min-height:calc(var(--aeris-date-picker-input-height) - .5rem);margin:0;padding:.1rem .125rem;border:0;border-radius:min(var(--aeris-radius-control, .4375rem),.25rem);outline:0;background:transparent;color:inherit;font:inherit;font-variant-numeric:tabular-nums;text-align:center;touch-action:manipulation}.aeris-date-picker-input__segments{display:inline-flex;align-items:center;min-width:0;max-width:100%}.aeris-date-picker-input input[role=spinbutton]:focus{background:var(--aeris-control-hover-background, var(--aeris-surface-2, #f3f3f3))}.aeris-date-picker-input input::placeholder,.aeris-date-picker-input__literal{color:var(--aeris-text-2, #454545);opacity:1}.aeris-date-picker-input__literal{flex:0 0 auto;white-space:pre}@media(hover:hover){:host(:not([data-disabled])) .aeris-date-picker-input:hover{border-color:var(--aeris-control-hover-border, var(--aeris-border, #efefef))}}@media(prefers-reduced-motion:reduce){.aeris-date-picker-input{transition:none}}@media(pointer:coarse){.aeris-date-picker-input input[role=spinbutton]{font-size:var(--aeris-mobile-input-font-size, 1rem)}}@media(pointer:coarse){.aeris-date-picker-input{min-height:max(var(--aeris-date-picker-input-height),var(--aeris-touch-target-size, 2.75rem))}}\n"]
716
+ });
717
+ };
718
+ i0.ɵɵngDeclareClassMetadata({
719
+ minVersion: "12.0.0",
720
+ version: "22.2.3",
721
+ ngImport: i0,
722
+ type: ɵAerisDatePickerInput,
723
+ decorators: [{
724
+ type: Component,
725
+ args: [{
726
+ selector: "aeris-internal-date-picker-input",
727
+ host: {
728
+ "[attr.data-size]": "size()",
729
+ "[attr.data-appearance]": "appearance()",
730
+ "[attr.data-invalid]": "displayInvalid() || null",
731
+ "[attr.data-disabled]": "effectiveDisabled() || null"
732
+ },
733
+ template: "<div\n class=\"aeris-date-picker-input\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n (click)=\"handleFieldClick($event)\"\n (focusout)=\"handleFocusOut($event)\"\n>\n @for (group of groups(); track $index) {\n <span class=\"aeris-date-picker-input__segments\">\n @for (entry of group; track entry.type === 'literal' ? $index : entry.type) {\n @if (entry.type === 'literal') {\n <span class=\"aeris-date-picker-input__literal\" aria-hidden=\"true\">{{ entry.text }}</span>\n } @else {\n <input\n #segment\n type=\"text\"\n role=\"spinbutton\"\n [attr.inputmode]=\"entry.type === 'dayPeriod' ? 'text' : 'numeric'\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n dir=\"ltr\"\n [id]=\"entry.id\"\n [attr.data-segment]=\"entry.type\"\n [attr.aria-label]=\"entry.label\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-valuemin]=\"entry.minimum\"\n [attr.aria-valuemax]=\"entry.maximum\"\n [attr.aria-valuenow]=\"entry.now\"\n [attr.aria-valuetext]=\"entry.text || null\"\n [style.--aeris-date-picker-input-digits]=\"entry.width\"\n [value]=\"entry.text\"\n [placeholder]=\"entry.placeholder\"\n [disabled]=\"effectiveDisabled()\"\n [readOnly]=\"readonly()\"\n (input)=\"handleInput(entry.type, $event)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleSegmentBlur(entry.type, $event)\"\n (keydown)=\"handleKey(entry.type, $event)\"\n (paste)=\"handlePaste($event)\"\n (invalid)=\"handleNativeInvalid($event)\"\n />\n }\n }\n </span>\n }\n</div>\n",
734
+ styles: [":host{--aeris-date-picker-input-height: var(--aeris-control-height, 2.625rem);--aeris-date-picker-input-padding: var(--aeris-control-padding-x, .75rem);--aeris-date-picker-input-font-size: var(--aeris-font-size-lg, .875rem);display:inline-block;min-width:0;max-width:100%;width:100%;font:inherit;color:inherit}:host([data-size=xs]){--aeris-date-picker-input-height: calc(var(--aeris-control-height, 2.625rem) - .875rem);--aeris-date-picker-input-font-size: var(--aeris-font-size-sm, .75rem)}:host([data-size=sm]){--aeris-date-picker-input-height: calc(var(--aeris-control-height, 2.625rem) - .5rem);--aeris-date-picker-input-font-size: var(--aeris-font-size-md, .8125rem)}:host([data-size=lg]){--aeris-date-picker-input-height: calc(var(--aeris-control-height, 2.625rem) + .5rem);--aeris-date-picker-input-font-size: var(--aeris-font-size-xl, .9375rem)}.aeris-date-picker-input{box-sizing:border-box;display:flex;align-items:center;flex-wrap:wrap;column-gap:.75rem;width:100%;min-width:0;min-height:var(--aeris-date-picker-input-height);padding-inline:var(--aeris-date-picker-input-padding);padding-inline-end:var(--aeris-date-picker-input-padding-end, var(--aeris-date-picker-input-padding));border:1px solid var(--aeris-date-picker-input-border, var(--aeris-border, #efefef));border-radius:var(--aeris-date-picker-input-radius, var(--aeris-radius-control, .4375rem));background:var(--aeris-date-picker-input-background, var(--aeris-surface, #fff));font-size:var(--aeris-date-picker-input-font-size);transition:border-color var(--aeris-motion-normal, .15s),box-shadow var(--aeris-motion-normal, .15s)}:host([data-appearance=filled]) .aeris-date-picker-input{background:var(--aeris-surface-2, #f3f3f3);border-color:transparent}.aeris-date-picker-input:focus-within{border-color:var(--aeris-control-focus-border, var(--aeris-focus, #111111));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}:host([data-invalid]) .aeris-date-picker-input{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}:host([data-invalid]) .aeris-date-picker-input:focus-within{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}:host([data-disabled]){opacity:var(--aeris-disabled-opacity, .5)}.aeris-date-picker-input input[role=spinbutton]{box-sizing:content-box;flex:0 1 auto;width:calc(var(--aeris-date-picker-input-digits) * 1ch + .45rem);min-width:1.1ch;min-height:calc(var(--aeris-date-picker-input-height) - .5rem);margin:0;padding:.1rem .125rem;border:0;border-radius:min(var(--aeris-radius-control, .4375rem),.25rem);outline:0;background:transparent;color:inherit;font:inherit;font-variant-numeric:tabular-nums;text-align:center;touch-action:manipulation}.aeris-date-picker-input__segments{display:inline-flex;align-items:center;min-width:0;max-width:100%}.aeris-date-picker-input input[role=spinbutton]:focus{background:var(--aeris-control-hover-background, var(--aeris-surface-2, #f3f3f3))}.aeris-date-picker-input input::placeholder,.aeris-date-picker-input__literal{color:var(--aeris-text-2, #454545);opacity:1}.aeris-date-picker-input__literal{flex:0 0 auto;white-space:pre}@media(hover:hover){:host(:not([data-disabled])) .aeris-date-picker-input:hover{border-color:var(--aeris-control-hover-border, var(--aeris-border, #efefef))}}@media(prefers-reduced-motion:reduce){.aeris-date-picker-input{transition:none}}@media(pointer:coarse){.aeris-date-picker-input input[role=spinbutton]{font-size:var(--aeris-mobile-input-font-size, 1rem)}}@media(pointer:coarse){.aeris-date-picker-input{min-height:max(var(--aeris-date-picker-input-height),var(--aeris-touch-target-size, 2.75rem))}}\n"]
735
+ }]
736
+ }],
737
+ ctorParameters: () => [],
738
+ propDecorators: {
739
+ value: [{
740
+ type: i0.Input,
741
+ args: [{
742
+ isSignal: true,
743
+ alias: "value",
744
+ required: false
745
+ }]
746
+ }, {
747
+ type: i0.Output,
748
+ args: ["valueChange"]
749
+ }],
750
+ inputId: [{
751
+ type: i0.Input,
752
+ args: [{
753
+ isSignal: true,
754
+ alias: "inputId",
755
+ required: false
756
+ }]
757
+ }],
758
+ locale: [{
759
+ type: i0.Input,
760
+ args: [{
761
+ isSignal: true,
762
+ alias: "locale",
763
+ required: false
764
+ }]
765
+ }],
766
+ granularity: [{
767
+ type: i0.Input,
768
+ args: [{
769
+ isSignal: true,
770
+ alias: "granularity",
771
+ required: false
772
+ }]
773
+ }],
774
+ mode: [{
775
+ type: i0.Input,
776
+ args: [{
777
+ isSignal: true,
778
+ alias: "mode",
779
+ required: false
780
+ }]
781
+ }],
782
+ hourCycle: [{
783
+ type: i0.Input,
784
+ args: [{
785
+ isSignal: true,
786
+ alias: "hourCycle",
787
+ required: false
788
+ }]
789
+ }],
790
+ showSeconds: [{
791
+ type: i0.Input,
792
+ args: [{
793
+ isSignal: true,
794
+ alias: "showSeconds",
795
+ required: false
796
+ }]
797
+ }],
798
+ minuteStep: [{
799
+ type: i0.Input,
800
+ args: [{
801
+ isSignal: true,
802
+ alias: "minuteStep",
803
+ required: false
804
+ }]
805
+ }],
806
+ secondStep: [{
807
+ type: i0.Input,
808
+ args: [{
809
+ isSignal: true,
810
+ alias: "secondStep",
811
+ required: false
812
+ }]
813
+ }],
814
+ clockLabels: [{
815
+ type: i0.Input,
816
+ args: [{
817
+ isSignal: true,
818
+ alias: "clockLabels",
819
+ required: false
820
+ }]
821
+ }],
822
+ min: [{
823
+ type: i0.Input,
824
+ args: [{
825
+ isSignal: true,
826
+ alias: "min",
827
+ required: false
828
+ }]
829
+ }],
830
+ max: [{
831
+ type: i0.Input,
832
+ args: [{
833
+ isSignal: true,
834
+ alias: "max",
835
+ required: false
836
+ }]
837
+ }],
838
+ dateDisabled: [{
839
+ type: i0.Input,
840
+ args: [{
841
+ isSignal: true,
842
+ alias: "dateDisabled",
843
+ required: false
844
+ }]
845
+ }],
846
+ size: [{
847
+ type: i0.Input,
848
+ args: [{
849
+ isSignal: true,
850
+ alias: "size",
851
+ required: false
852
+ }]
853
+ }],
854
+ appearance: [{
855
+ type: i0.Input,
856
+ args: [{
857
+ isSignal: true,
858
+ alias: "appearance",
859
+ required: false
860
+ }]
861
+ }],
862
+ disabled: [{
863
+ type: i0.Input,
864
+ args: [{
865
+ isSignal: true,
866
+ alias: "disabled",
867
+ required: false
868
+ }]
869
+ }],
870
+ readonly: [{
871
+ type: i0.Input,
872
+ args: [{
873
+ isSignal: true,
874
+ alias: "readonly",
875
+ required: false
876
+ }]
877
+ }],
878
+ required: [{
879
+ type: i0.Input,
880
+ args: [{
881
+ isSignal: true,
882
+ alias: "required",
883
+ required: false
884
+ }]
885
+ }],
886
+ invalid: [{
887
+ type: i0.Input,
888
+ args: [{
889
+ isSignal: true,
890
+ alias: "invalid",
891
+ required: false
892
+ }]
893
+ }],
894
+ touched: [{
895
+ type: i0.Input,
896
+ args: [{
897
+ isSignal: true,
898
+ alias: "touched",
899
+ required: false
900
+ }]
901
+ }],
902
+ ariaLabel: [{
903
+ type: i0.Input,
904
+ args: [{
905
+ isSignal: true,
906
+ alias: "ariaLabel",
907
+ required: false
908
+ }]
909
+ }],
910
+ ariaLabelledBy: [{
911
+ type: i0.Input,
912
+ args: [{
913
+ isSignal: true,
914
+ alias: "ariaLabelledBy",
915
+ required: false
916
+ }]
917
+ }],
918
+ ariaDescribedBy: [{
919
+ type: i0.Input,
920
+ args: [{
921
+ isSignal: true,
922
+ alias: "ariaDescribedBy",
923
+ required: false
924
+ }]
925
+ }],
926
+ edited: [{
927
+ type: i0.Output,
928
+ args: ["edited"]
929
+ }],
930
+ focused: [{
931
+ type: i0.Output,
932
+ args: ["focused"]
933
+ }],
934
+ blurred: [{
935
+ type: i0.Output,
936
+ args: ["blurred"]
937
+ }],
938
+ segments: [{
939
+ type: i0.ViewChildren,
940
+ args: ["segment", { isSignal: true }]
941
+ }]
942
+ }
943
+ });
944
+ export { ɵAerisDatePickerInput };
945
+
946
+ //# sourceMappingURL=aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map