@aeris-ui/core 22.0.0-alpha.2 → 22.0.0-alpha.4

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 (187) hide show
  1. package/README.md +2 -2
  2. package/fesm2022/aeris-ui-core-accordion.mjs +14 -14
  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-auto-complete.mjs +41 -21
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  7. package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
  8. package/fesm2022/aeris-ui-core-avatar.mjs +9 -9
  9. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-badge.mjs +10 -10
  11. package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
  12. package/fesm2022/aeris-ui-core-breadcrumb.mjs +14 -14
  13. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-button-group.mjs +4 -4
  15. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-button.mjs +10 -10
  17. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-card.mjs +20 -20
  19. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-carousel.mjs +14 -14
  21. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-cascade-select.mjs +35 -15
  23. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-chart.mjs +5 -5
  25. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-checkbox.mjs +5 -5
  27. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chip.mjs +11 -11
  29. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  30. package/fesm2022/aeris-ui-core-color-picker.mjs +22 -11
  31. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-compare.mjs +14 -14
  33. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +26 -20
  35. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-confirm-popup.mjs +41 -25
  37. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  38. package/fesm2022/aeris-ui-core-context-menu.mjs +19 -12
  39. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-date-picker.mjs +20 -8
  41. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-dialog.mjs +28 -20
  43. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-divider.mjs +5 -5
  45. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-drawer.mjs +27 -20
  47. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +10 -7
  49. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-editor.mjs +5 -5
  51. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-file-upload.mjs +26 -26
  53. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  55. package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
  56. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  57. package/fesm2022/aeris-ui-core-galleria.mjs +29 -29
  58. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  59. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  60. package/fesm2022/aeris-ui-core-icon-field.mjs +14 -14
  61. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-inplace.mjs +11 -11
  63. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-input-group.mjs +16 -16
  65. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-input-mask.mjs +5 -5
  67. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-input-number.mjs +5 -5
  69. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-input-otp.mjs +8 -8
  71. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-input-text.mjs +8 -8
  73. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  75. package/fesm2022/aeris-ui-core-mega-menu.mjs +8 -8
  76. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  77. package/fesm2022/aeris-ui-core-menu.mjs +37 -21
  78. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  79. package/fesm2022/aeris-ui-core-menubar.mjs +14 -14
  80. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  81. package/fesm2022/aeris-ui-core-message.mjs +11 -11
  82. package/fesm2022/aeris-ui-core-meter-group.mjs +17 -17
  83. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-multi-select.mjs +44 -25
  85. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-order-list.mjs +11 -11
  87. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-organization-chart.mjs +11 -11
  89. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-paginator.mjs +41 -13
  91. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-panel.mjs +17 -17
  93. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-password.mjs +36 -18
  95. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-pick-list.mjs +11 -11
  97. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-popover.mjs +35 -22
  99. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-progress-bar.mjs +11 -11
  101. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-progress-spinner.mjs +8 -8
  103. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-radio-button.mjs +5 -5
  105. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-rating.mjs +5 -5
  107. package/fesm2022/aeris-ui-core-scroll-panel.mjs +5 -5
  108. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  109. package/fesm2022/aeris-ui-core-scroll-top.mjs +5 -5
  110. package/fesm2022/aeris-ui-core-select.mjs +62 -43
  111. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  113. package/fesm2022/aeris-ui-core-slider.mjs +5 -5
  114. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  115. package/fesm2022/aeris-ui-core-speed-dial.mjs +5 -5
  116. package/fesm2022/aeris-ui-core-split-button.mjs +21 -7
  117. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-splitter.mjs +8 -8
  119. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-stepper.mjs +14 -14
  121. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  123. package/fesm2022/aeris-ui-core-table.mjs +25 -21
  124. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  125. package/fesm2022/aeris-ui-core-tabs.mjs +11 -11
  126. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  127. package/fesm2022/aeris-ui-core-textarea.mjs +8 -8
  128. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  129. package/fesm2022/aeris-ui-core-theme-builder.mjs +41 -46
  130. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  131. package/fesm2022/aeris-ui-core-theming.mjs +6 -3
  132. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  133. package/fesm2022/aeris-ui-core-tiered-menu.mjs +31 -13
  134. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  135. package/fesm2022/aeris-ui-core-timeline.mjs +17 -17
  136. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  137. package/fesm2022/aeris-ui-core-toast.mjs +14 -14
  138. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  139. package/fesm2022/aeris-ui-core-toggle-switch.mjs +5 -5
  140. package/fesm2022/aeris-ui-core-toolbar.mjs +20 -20
  141. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-tooltip.mjs +32 -8
  143. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-tree-select.mjs +44 -24
  145. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-tree-table.mjs +22 -18
  147. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-tree.mjs +14 -14
  149. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core.mjs +350 -63
  151. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  152. package/package.json +7 -7
  153. package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
  154. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  155. package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
  156. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  157. package/schematics/runtime/theme-builder/aeris-theme.js +25 -25
  158. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  159. package/styles/_fallback-colors.scss +3 -3
  160. package/styles/_tokens.scss +5 -5
  161. package/styles/aeris.css +47 -31
  162. package/styles/controls.css +12 -9
  163. package/types/aeris-ui-core-auto-complete.d.ts +7 -3
  164. package/types/aeris-ui-core-cascade-select.d.ts +7 -3
  165. package/types/aeris-ui-core-color-picker.d.ts +6 -2
  166. package/types/aeris-ui-core-confirm-dialog.d.ts +5 -1
  167. package/types/aeris-ui-core-confirm-popup.d.ts +6 -1
  168. package/types/aeris-ui-core-context-menu.d.ts +4 -1
  169. package/types/aeris-ui-core-date-picker.d.ts +6 -2
  170. package/types/aeris-ui-core-dialog.d.ts +4 -1
  171. package/types/aeris-ui-core-drawer.d.ts +4 -1
  172. package/types/aeris-ui-core-dynamic-dialog.d.ts +3 -0
  173. package/types/aeris-ui-core-menu.d.ts +5 -1
  174. package/types/aeris-ui-core-multi-select.d.ts +7 -4
  175. package/types/aeris-ui-core-paginator.d.ts +8 -1
  176. package/types/aeris-ui-core-password.d.ts +5 -1
  177. package/types/aeris-ui-core-popover.d.ts +4 -1
  178. package/types/aeris-ui-core-select.d.ts +7 -4
  179. package/types/aeris-ui-core-split-button.d.ts +6 -3
  180. package/types/aeris-ui-core-table.d.ts +3 -1
  181. package/types/aeris-ui-core-theme-builder.d.ts +18 -17
  182. package/types/aeris-ui-core-theming.d.ts +4 -0
  183. package/types/aeris-ui-core-tiered-menu.d.ts +5 -1
  184. package/types/aeris-ui-core-tooltip.d.ts +7 -1
  185. package/types/aeris-ui-core-tree-select.d.ts +7 -3
  186. package/types/aeris-ui-core-tree-table.d.ts +3 -1
  187. package/types/aeris-ui-core.d.ts +43 -3
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-context-menu.mjs","sources":["../../../projects/aeris-ui/context-menu/aeris-context-menu.ts","../../../projects/aeris-ui/context-menu/aeris-ui-core-context-menu.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n Injector,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport {\n aerisInternalClampOverlayPoint,\n aerisInternalCreateFrameScheduler,\n} from '@aeris-ui/core';\n\nexport type AerisContextMenuSize = 'sm' | 'md' | 'lg';\nexport type AerisContextMenuCloseReason =\n 'api' | 'escape' | 'outside' | 'scroll' | 'select' | 'target';\nexport type AerisContextMenuTarget = Element | EventTarget | null | undefined;\n\nexport interface AerisContextMenuItem<T = unknown> {\n readonly id?: string;\n readonly label?: string;\n readonly ariaLabel?: string;\n readonly icon?: string;\n readonly badge?: string | number;\n readonly shortcut?: string;\n readonly disabled?: boolean;\n readonly visible?: boolean;\n readonly separator?: boolean;\n readonly url?: string;\n readonly routerLink?: string | readonly (string | number)[];\n readonly target?: '_blank' | '_self' | '_parent' | '_top' | string;\n readonly rel?: string;\n readonly items?: readonly AerisContextMenuItem<T>[];\n readonly data?: T;\n readonly command?: (event: AerisContextMenuItemEvent<T>) => void;\n}\n\nexport interface AerisContextMenuItemEvent<T = unknown> {\n readonly originalEvent: MouseEvent | KeyboardEvent;\n readonly item: AerisContextMenuItem<T>;\n readonly path: readonly number[];\n readonly target: Element | null;\n}\n\nexport interface AerisContextMenuVisibilityEvent {\n readonly originalEvent: Event | null;\n readonly visible: boolean;\n readonly reason: AerisContextMenuCloseReason;\n readonly target: Element | null;\n}\n\nexport interface AerisContextMenuItemTemplateContext<T = unknown> {\n readonly $implicit: AerisContextMenuItem<T>;\n readonly item: AerisContextMenuItem<T>;\n readonly path: readonly number[];\n readonly level: number;\n readonly active: boolean;\n readonly open: boolean;\n readonly disabled: boolean;\n readonly hasSubmenu: boolean;\n}\n\nexport type AerisContextMenuNavigationHandler = (\n link: string | readonly (string | number)[],\n event: MouseEvent | KeyboardEvent,\n) => void;\n\ninterface AerisContextMenuEntry<T> {\n readonly item: AerisContextMenuItem<T>;\n readonly index: number;\n readonly id: string;\n readonly path: readonly number[];\n readonly pathKey: string;\n readonly parentPathKey: string;\n readonly level: number;\n readonly href: string | null;\n readonly separator: boolean;\n readonly disabled: boolean;\n readonly active: boolean;\n readonly open: boolean;\n readonly children: readonly AerisContextMenuEntry<T>[];\n}\n\ninterface AerisContextMenuCoordinates {\n readonly x: number;\n readonly y: number;\n}\n\n@Directive({ selector: 'ng-template[aerisContextMenuItem]' })\nexport class AerisContextMenuItemTemplate<T = unknown> {\n readonly template = inject<TemplateRef<AerisContextMenuItemTemplateContext<T>>>(TemplateRef);\n}\n\nlet nextContextMenuId = 0;\n\n@Component({\n selector: 'aeris-context-menu',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #menuList let-entries let-level=\"level\">\n <ul\n class=\"aeris-context-menu__list\"\n [attr.role]=\"level === 0 ? rootRole() : 'menu'\"\n [attr.aria-label]=\"level === 0 ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"level === 0 ? ariaLabelledBy() || null : null\"\n [attr.aria-orientation]=\"level === 0 ? 'vertical' : null\"\n [attr.data-level]=\"level\"\n >\n @for (entry of entries; track entry.id) {\n @if (entry.separator) {\n <li class=\"aeris-context-menu__separator\" role=\"separator\"></li>\n } @else {\n <li\n class=\"aeris-context-menu__item-shell\"\n role=\"none\"\n [attr.data-open]=\"entry.open || null\"\n [attr.data-active]=\"entry.active || null\"\n [attr.data-disabled]=\"entry.disabled || null\"\n >\n @if (entry.href) {\n <a\n #menuItem\n class=\"aeris-context-menu__item\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [attr.href]=\"entry.disabled ? null : entry.href\"\n [attr.target]=\"entry.item.target || null\"\n [attr.rel]=\"\n entry.item.rel ||\n (entry.item.target === '_blank' ? 'noopener noreferrer' : null)\n \"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-disabled]=\"entry.disabled || null\"\n [attr.aria-haspopup]=\"entry.children.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.children.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.children.length ? entry.id + '-submenu' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-context-menu-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handleEntryPointerEnter(entry)\"\n (keydown)=\"handleItemKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()?.template ?? defaultItemTemplate\"\n [ngTemplateOutletContext]=\"itemContext(entry)\"\n />\n </a>\n } @else {\n <button\n #menuItem\n type=\"button\"\n class=\"aeris-context-menu__item\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [disabled]=\"entry.disabled\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-haspopup]=\"entry.children.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.children.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.children.length ? entry.id + '-submenu' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-context-menu-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handleEntryPointerEnter(entry)\"\n (keydown)=\"handleItemKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()?.template ?? defaultItemTemplate\"\n [ngTemplateOutletContext]=\"itemContext(entry)\"\n />\n </button>\n }\n\n @if (entry.children.length && entry.open) {\n <div\n class=\"aeris-context-menu__submenu\"\n [id]=\"entry.id + '-submenu'\"\n [attr.data-side]=\"submenuSide()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{\n $implicit: entry.children,\n level: entry.level + 1,\n }\"\n />\n </div>\n }\n </li>\n }\n }\n </ul>\n </ng-template>\n\n <ng-template #defaultItemTemplate let-item let-hasSubmenu=\"hasSubmenu\">\n @if (item.icon) {\n <span class=\"aeris-context-menu__icon\" aria-hidden=\"true\">{{ item.icon }}</span>\n }\n <span class=\"aeris-context-menu__label\">{{ item.label }}</span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"aeris-context-menu__badge\">{{ item.badge }}</span>\n }\n @if (item.shortcut) {\n <kbd class=\"aeris-context-menu__shortcut\">{{ item.shortcut }}</kbd>\n }\n @if (hasSubmenu) {\n <svg class=\"aeris-context-menu__submenu-icon\" viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path d=\"m7.5 4.5 5 5.5-5 5.5\" />\n </svg>\n }\n </ng-template>\n\n @if (open()) {\n <div class=\"aeris-context-menu__layer\" (contextmenu)=\"suppressNativeMenu($event)\">\n <div\n #panel\n class=\"aeris-context-menu__panel\"\n [id]=\"menuId()\"\n [class]=\"panelStyleClass()\"\n [attr.data-positioned]=\"positioned() || null\"\n [attr.data-size]=\"size()\"\n [style.left.px]=\"coordinates().x\"\n [style.top.px]=\"coordinates().y\"\n [style.--aeris-context-menu-width]=\"width() || null\"\n [style.--aeris-context-menu-max-width]=\"maxWidth() || null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{ $implicit: entries(), level: 0 }\"\n />\n </div>\n </div>\n }\n `,\n styleUrl: './aeris-context-menu.scss',\n host: {\n class: 'aeris-context-menu',\n '[attr.data-open]': 'open() || null',\n '(document:contextmenu)': 'handleDocumentContextMenu($event)',\n },\n})\nexport class AerisContextMenu<T = unknown> {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly repositionFrame = aerisInternalCreateFrameScheduler(() => this.reposition());\n private readonly injector = inject(Injector);\n private readonly generatedId = `aeris-context-menu-${++nextContextMenuId}`;\n private readonly activeTarget = signal<Element | null>(null);\n private readonly anchorPoint = signal<AerisContextMenuCoordinates>({ x: 0, y: 0 });\n private pendingOriginalEvent: Event | null = null;\n private pendingCloseReason: AerisContextMenuCloseReason = 'api';\n\n protected readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n protected readonly menuItems = viewChildren<ElementRef<HTMLElement>>('menuItem');\n protected readonly itemTemplate = contentChild(AerisContextMenuItemTemplate<T>, {\n descendants: false,\n });\n protected readonly activePathKey = signal('');\n protected readonly openPathKey = signal('');\n protected readonly coordinates = signal<AerisContextMenuCoordinates>({ x: 0, y: 0 });\n protected readonly positioned = signal(false);\n protected readonly submenuSide = signal<'start' | 'end'>('end');\n protected readonly entries = computed(() =>\n this.buildEntries(this.model(), [], 0, this.activePathKey(), this.openPathKey()),\n );\n protected readonly rootRole = computed(() => (this.useMenubarRole() ? 'menubar' : 'menu'));\n\n readonly id = input(this.generatedId);\n readonly model = input<readonly AerisContextMenuItem<T>[]>([]);\n readonly open = model(false);\n readonly target = input<AerisContextMenuTarget>(null);\n readonly global = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly size = input<AerisContextMenuSize>('md');\n readonly width = input('');\n readonly maxWidth = input('');\n readonly viewportMargin = input(8);\n readonly hideOnOutsideClick = input(true, { transform: booleanAttribute });\n readonly hideOnScroll = input(false, { transform: booleanAttribute });\n readonly closeOnEscape = input(true, { transform: booleanAttribute });\n readonly autoFocus = input(true, { transform: booleanAttribute });\n readonly restoreFocus = input(true, { transform: booleanAttribute });\n readonly useMenubarRole = input(false, { transform: booleanAttribute });\n readonly ariaLabel = input('Context menu');\n readonly ariaLabelledBy = input('');\n readonly panelStyleClass = input('');\n readonly navigationHandler = input<AerisContextMenuNavigationHandler>();\n\n readonly shown = output<AerisContextMenuVisibilityEvent>();\n readonly hidden = output<AerisContextMenuVisibilityEvent>();\n readonly visibilityChanged = output<AerisContextMenuVisibilityEvent>();\n readonly itemSelected = output<AerisContextMenuItemEvent<T>>();\n\n protected readonly menuId = computed(() => this.id());\n\n constructor() {\n effect((onCleanup) => {\n if (!this.open()) return;\n const document = this.host.nativeElement.ownerDocument;\n const view = document.defaultView;\n const pointerdown = (event: PointerEvent) => this.handleDocumentPointerdown(event);\n const keydown = (event: KeyboardEvent) => this.handleDocumentKeydown(event);\n const resize = this.repositionFrame.schedule;\n const scroll = (event: Event) => this.handleWindowScroll(event);\n document.addEventListener('pointerdown', pointerdown);\n document.addEventListener('keydown', keydown);\n view?.addEventListener('resize', resize);\n view?.addEventListener('scroll', scroll);\n onCleanup(() => {\n document.removeEventListener('pointerdown', pointerdown);\n document.removeEventListener('keydown', keydown);\n view?.removeEventListener('resize', resize);\n view?.removeEventListener('scroll', scroll);\n this.repositionFrame.cancel();\n });\n });\n }\n\n show(event: MouseEvent | PointerEvent): void {\n if (this.disabled()) return;\n event.preventDefault();\n this.openAt(event.clientX, event.clientY, event);\n }\n\n openAt(x: number, y: number, originalEvent: Event | null = null): void {\n if (this.disabled()) return;\n this.pendingOriginalEvent = originalEvent;\n this.pendingCloseReason = 'api';\n this.anchorPoint.set({ x, y });\n this.coordinates.set({ x, y });\n this.positioned.set(false);\n this.activeTarget.set(this.resolveEventTarget(originalEvent));\n this.open.set(true);\n this.openInitialItem();\n const event = this.visibilityEvent(true, 'api', originalEvent);\n this.shown.emit(event);\n this.visibilityChanged.emit(event);\n afterNextRender(\n () => {\n this.reposition();\n if (this.autoFocus()) this.focusActiveItem();\n },\n { injector: this.injector },\n );\n }\n\n hide(\n originalEvent: Event | null = null,\n reason: AerisContextMenuCloseReason = 'api',\n restoreFocus = this.restoreFocus(),\n ): void {\n if (!this.open()) return;\n this.pendingOriginalEvent = originalEvent;\n this.pendingCloseReason = reason;\n this.open.set(false);\n this.positioned.set(false);\n this.activePathKey.set('');\n this.openPathKey.set('');\n const event = this.visibilityEvent(false, reason, originalEvent);\n const target = this.activeTarget();\n this.hidden.emit(event);\n this.visibilityChanged.emit(event);\n this.activeTarget.set(null);\n if (restoreFocus && target instanceof HTMLElement) {\n queueMicrotask(() => target.focus());\n }\n }\n\n toggle(event: MouseEvent | PointerEvent): void {\n if (this.open()) {\n this.hide(event);\n } else {\n this.show(event);\n }\n }\n\n focus(): void {\n this.focusActiveItem();\n }\n\n reposition(): void {\n if (!this.open()) return;\n const panel = this.panel()?.nativeElement;\n const view = panel?.ownerDocument.defaultView;\n if (!panel || !view) return;\n\n const rect = panel.getBoundingClientRect();\n const width = rect.width || panel.offsetWidth || 240;\n const height = rect.height || panel.offsetHeight || 260;\n const anchor = this.anchorPoint();\n const { x, y } = aerisInternalClampOverlayPoint(\n anchor,\n width,\n height,\n view.innerWidth,\n view.innerHeight,\n this.viewportMargin(),\n );\n\n this.coordinates.set({ x, y });\n this.submenuSide.set(anchor.x > view.innerWidth / 2 ? 'start' : 'end');\n this.positioned.set(true);\n panel.style.left = `${x}px`;\n panel.style.top = `${y}px`;\n panel.setAttribute('data-positioned', 'true');\n }\n\n protected handleDocumentContextMenu(event: MouseEvent): void {\n if (this.disabled()) return;\n if (this.global()) {\n this.show(event);\n return;\n }\n\n const target = this.resolveTarget(this.target());\n const eventTarget = event.target;\n if (target && eventTarget instanceof Node && target.contains(eventTarget)) {\n this.show(event);\n }\n }\n\n protected handleDocumentPointerdown(event: PointerEvent): void {\n if (!this.open() || !this.hideOnOutsideClick()) return;\n const target = event.target;\n const panel = this.panel()?.nativeElement;\n if (target instanceof Node && panel?.contains(target)) return;\n this.hide(event, 'outside', false);\n }\n\n protected handleDocumentKeydown(event: KeyboardEvent): void {\n if (!this.open() || event.key !== 'Escape' || !this.closeOnEscape()) return;\n event.preventDefault();\n this.hide(event, 'escape');\n }\n\n protected handleWindowScroll(event: Event): void {\n if (!this.open()) return;\n if (this.hideOnScroll()) {\n this.hide(event, 'scroll', false);\n } else {\n this.repositionFrame.schedule();\n }\n }\n\n protected suppressNativeMenu(event: MouseEvent): void {\n event.preventDefault();\n }\n\n protected setActivePath(path: readonly number[]): void {\n this.activePathKey.set(this.pathKey(path));\n }\n\n protected handleEntryPointerEnter(entry: AerisContextMenuEntry<T>): void {\n if (entry.disabled || entry.separator) return;\n this.activePathKey.set(entry.pathKey);\n this.openPathKey.set(entry.children.length ? entry.pathKey : entry.parentPathKey);\n }\n\n protected activateEntry(\n event: MouseEvent | KeyboardEvent,\n entry: AerisContextMenuEntry<T>,\n ): void {\n if (entry.disabled || entry.separator) {\n event.preventDefault();\n return;\n }\n\n if (entry.children.length) {\n event.preventDefault();\n this.openPathKey.set(entry.open ? entry.parentPathKey : entry.pathKey);\n this.activePathKey.set(entry.pathKey);\n if (!entry.open) this.focusFirstChild(entry);\n return;\n }\n\n const itemEvent = {\n originalEvent: event,\n item: entry.item,\n path: entry.path,\n target: this.activeTarget(),\n };\n entry.item.command?.(itemEvent);\n this.itemSelected.emit(itemEvent);\n if (entry.item.routerLink && this.navigationHandler()) {\n event.preventDefault();\n this.navigationHandler()?.(entry.item.routerLink, event);\n }\n this.hide(event, 'select');\n }\n\n protected handleItemKeydown(event: KeyboardEvent, entry: AerisContextMenuEntry<T>): void {\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.focusSibling(entry, 1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.focusSibling(entry, -1);\n break;\n case 'Home':\n event.preventDefault();\n this.focusEdge(entry, 'first');\n break;\n case 'End':\n event.preventDefault();\n this.focusEdge(entry, 'last');\n break;\n case 'ArrowRight':\n event.preventDefault();\n if (entry.children.length) {\n this.openPathKey.set(entry.pathKey);\n this.focusFirstChild(entry);\n }\n break;\n case 'ArrowLeft':\n event.preventDefault();\n this.closeSubmenu(entry);\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.activateEntry(event, entry);\n break;\n case 'Tab':\n this.hide(event, 'outside', false);\n break;\n }\n }\n\n protected itemContext(entry: AerisContextMenuEntry<T>): AerisContextMenuItemTemplateContext<T> {\n return {\n $implicit: entry.item,\n item: entry.item,\n path: entry.path,\n level: entry.level,\n active: entry.active,\n open: entry.open,\n disabled: entry.disabled,\n hasSubmenu: entry.children.length > 0,\n };\n }\n\n private openInitialItem(): void {\n const first = this.firstEnabledEntry(this.entries());\n this.activePathKey.set(first?.pathKey ?? '');\n this.openPathKey.set('');\n }\n\n private buildEntries(\n items: readonly AerisContextMenuItem<T>[],\n parentPath: readonly number[],\n level: number,\n activePathKey: string,\n openPathKey: string,\n ): readonly AerisContextMenuEntry<T>[] {\n return items\n .map((item, index) => ({ item, index }))\n .filter(({ item }) => item.visible !== false)\n .map(({ item, index }) => {\n const path = [...parentPath, index];\n const key = this.pathKey(path);\n const parentKey = this.pathKey(parentPath);\n const children = this.buildEntries(\n item.items ?? [],\n path,\n level + 1,\n activePathKey,\n openPathKey,\n );\n return {\n item,\n index,\n id: item.id ?? `${this.id()}-item-${key || index}`,\n path,\n pathKey: key,\n parentPathKey: parentKey,\n level,\n href: this.resolveHref(item),\n separator: !!item.separator,\n disabled: !!item.disabled,\n active: activePathKey === key,\n open: openPathKey === key || openPathKey.startsWith(`${key}.`),\n children,\n };\n });\n }\n\n private focusSibling(entry: AerisContextMenuEntry<T>, step: 1 | -1): void {\n const siblings = this.enabledEntriesForParent(entry.parentPathKey);\n if (!siblings.length) return;\n const current = siblings.findIndex((item) => item.pathKey === entry.pathKey);\n const next =\n current < 0\n ? step === 1\n ? 0\n : siblings.length - 1\n : (current + step + siblings.length) % siblings.length;\n this.focusEntry(siblings[next]);\n }\n\n private focusEdge(entry: AerisContextMenuEntry<T>, edge: 'first' | 'last'): void {\n const siblings = this.enabledEntriesForParent(entry.parentPathKey);\n this.focusEntry(edge === 'first' ? siblings[0] : siblings.at(-1));\n }\n\n private focusFirstChild(entry: AerisContextMenuEntry<T>): void {\n this.focusEntry(this.firstEnabledEntry(entry.children));\n }\n\n private closeSubmenu(entry: AerisContextMenuEntry<T>): void {\n if (!entry.parentPathKey) return;\n const parent = this.findEntry(entry.parentPathKey);\n this.openPathKey.set(parent?.parentPathKey ?? '');\n this.focusEntry(parent);\n }\n\n private focusEntry(entry: AerisContextMenuEntry<T> | undefined): void {\n if (!entry) return;\n this.activePathKey.set(entry.pathKey);\n queueMicrotask(() => {\n this.menuItems()\n .find(\n ({ nativeElement }) =>\n nativeElement.getAttribute('data-aeris-context-menu-path') === entry.pathKey,\n )\n ?.nativeElement.focus();\n });\n }\n\n private focusActiveItem(): void {\n const active = this.findEntry(this.activePathKey()) ?? this.firstEnabledEntry(this.entries());\n this.focusEntry(active);\n }\n\n private enabledEntriesForParent(parentPathKey: string): readonly AerisContextMenuEntry<T>[] {\n return this.flattenEntries(this.entries()).filter(\n (entry) => entry.parentPathKey === parentPathKey && !entry.separator && !entry.disabled,\n );\n }\n\n private firstEnabledEntry(\n entries: readonly AerisContextMenuEntry<T>[],\n ): AerisContextMenuEntry<T> | undefined {\n return entries.find((entry) => !entry.separator && !entry.disabled);\n }\n\n private findEntry(pathKey: string): AerisContextMenuEntry<T> | undefined {\n return this.flattenEntries(this.entries()).find((entry) => entry.pathKey === pathKey);\n }\n\n private flattenEntries(\n entries: readonly AerisContextMenuEntry<T>[],\n ): readonly AerisContextMenuEntry<T>[] {\n return entries.flatMap((entry) => [entry, ...this.flattenEntries(entry.children)]);\n }\n\n private visibilityEvent(\n visible: boolean,\n reason: AerisContextMenuCloseReason,\n originalEvent: Event | null,\n ): AerisContextMenuVisibilityEvent {\n return {\n originalEvent,\n visible,\n reason,\n target: this.activeTarget(),\n };\n }\n\n private resolveTarget(target: AerisContextMenuTarget): Element | null {\n return target instanceof Element ? target : null;\n }\n\n private resolveEventTarget(event: Event | null): Element | null {\n const target = event?.target;\n if (target instanceof Element) return target;\n return this.resolveTarget(this.target()) ?? this.host.nativeElement;\n }\n\n private resolveHref(item: AerisContextMenuItem<T>): string | null {\n if (item.url) return item.url;\n if (!item.routerLink) return null;\n if (typeof item.routerLink === 'string') return item.routerLink;\n return `/${item.routerLink\n .map((segment) => String(segment).replace(/^\\/+|\\/+$/g, ''))\n .filter(Boolean)\n .join('/')}`;\n }\n\n private pathKey(path: readonly number[]): string {\n return path.join('.');\n }\n\n}\n\nexport const AerisContextMenuModule = [AerisContextMenu, AerisContextMenuItemTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAqGa,4BAA4B,CAAA;AAC9B,IAAA,QAAQ,GAAG,MAAM,CAAsD,WAAW,CAAC;uGADjF,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC,SAAS;mBAAC,EAAE,QAAQ,EAAE,mCAAmC,EAAE;;AAK5D,IAAI,iBAAiB,GAAG,CAAC;MAuJZ,gBAAgB,CAAA;AACV,IAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC;IAClD,eAAe,GAAG,iCAAiC,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;AAC5E,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,WAAW,GAAG,CAAA,mBAAA,EAAsB,EAAE,iBAAiB,EAAE;IACzD,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AAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MAwbU,sBAAsB,GAAG,CAAC,gBAAgB,EAAE,4BAA4B;;ACtsBrF;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-context-menu.mjs","sources":["../../../projects/aeris-ui/context-menu/aeris-context-menu.ts","../../../projects/aeris-ui/context-menu/aeris-ui-core-context-menu.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n Injector,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport {\n ɵAerisAppendTo,\n aerisInternalClampOverlayPoint,\n aerisInternalCreateFrameScheduler,\n type AerisAppendTo,\n} from '@aeris-ui/core';\n\nexport type AerisContextMenuSize = 'sm' | 'md' | 'lg';\nexport type AerisContextMenuCloseReason =\n 'api' | 'escape' | 'outside' | 'scroll' | 'select' | 'target';\nexport type AerisContextMenuTarget = Element | EventTarget | null | undefined;\n\nexport interface AerisContextMenuItem<T = unknown> {\n readonly id?: string;\n readonly label?: string;\n readonly ariaLabel?: string;\n readonly icon?: string;\n readonly badge?: string | number;\n readonly shortcut?: string;\n readonly disabled?: boolean;\n readonly visible?: boolean;\n readonly separator?: boolean;\n readonly url?: string;\n readonly routerLink?: string | readonly (string | number)[];\n readonly target?: '_blank' | '_self' | '_parent' | '_top' | string;\n readonly rel?: string;\n readonly items?: readonly AerisContextMenuItem<T>[];\n readonly data?: T;\n readonly command?: (event: AerisContextMenuItemEvent<T>) => void;\n}\n\nexport interface AerisContextMenuItemEvent<T = unknown> {\n readonly originalEvent: MouseEvent | KeyboardEvent;\n readonly item: AerisContextMenuItem<T>;\n readonly path: readonly number[];\n readonly target: Element | null;\n}\n\nexport interface AerisContextMenuVisibilityEvent {\n readonly originalEvent: Event | null;\n readonly visible: boolean;\n readonly reason: AerisContextMenuCloseReason;\n readonly target: Element | null;\n}\n\nexport interface AerisContextMenuItemTemplateContext<T = unknown> {\n readonly $implicit: AerisContextMenuItem<T>;\n readonly item: AerisContextMenuItem<T>;\n readonly path: readonly number[];\n readonly level: number;\n readonly active: boolean;\n readonly open: boolean;\n readonly disabled: boolean;\n readonly hasSubmenu: boolean;\n}\n\nexport type AerisContextMenuNavigationHandler = (\n link: string | readonly (string | number)[],\n event: MouseEvent | KeyboardEvent,\n) => void;\n\ninterface AerisContextMenuEntry<T> {\n readonly item: AerisContextMenuItem<T>;\n readonly index: number;\n readonly id: string;\n readonly path: readonly number[];\n readonly pathKey: string;\n readonly parentPathKey: string;\n readonly level: number;\n readonly href: string | null;\n readonly separator: boolean;\n readonly disabled: boolean;\n readonly active: boolean;\n readonly open: boolean;\n readonly children: readonly AerisContextMenuEntry<T>[];\n}\n\ninterface AerisContextMenuCoordinates {\n readonly x: number;\n readonly y: number;\n}\n\n@Directive({ selector: 'ng-template[aerisContextMenuItem]' })\nexport class AerisContextMenuItemTemplate<T = unknown> {\n readonly template = inject<TemplateRef<AerisContextMenuItemTemplateContext<T>>>(TemplateRef);\n}\n\nlet nextContextMenuId = 0;\n\n@Component({\n selector: 'aeris-context-menu',\n imports: [NgTemplateOutlet, ɵAerisAppendTo],\n template: `\n <ng-template #menuList let-entries let-level=\"level\">\n <ul\n class=\"aeris-context-menu__list\"\n [attr.role]=\"level === 0 ? rootRole() : 'menu'\"\n [attr.aria-label]=\"level === 0 ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"level === 0 ? ariaLabelledBy() || null : null\"\n [attr.aria-orientation]=\"level === 0 ? 'vertical' : null\"\n [attr.data-level]=\"level\"\n >\n @for (entry of entries; track entry.id) {\n @if (entry.separator) {\n <li class=\"aeris-context-menu__separator\" role=\"separator\"></li>\n } @else {\n <li\n class=\"aeris-context-menu__item-shell\"\n role=\"none\"\n [attr.data-open]=\"entry.open || null\"\n [attr.data-active]=\"entry.active || null\"\n [attr.data-disabled]=\"entry.disabled || null\"\n >\n @if (entry.href) {\n <a\n #menuItem\n class=\"aeris-context-menu__item\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [attr.href]=\"entry.disabled ? null : entry.href\"\n [attr.target]=\"entry.item.target || null\"\n [attr.rel]=\"\n entry.item.rel ||\n (entry.item.target === '_blank' ? 'noopener noreferrer' : null)\n \"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-disabled]=\"entry.disabled || null\"\n [attr.aria-haspopup]=\"entry.children.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.children.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.children.length ? entry.id + '-submenu' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-context-menu-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handleEntryPointerEnter(entry)\"\n (keydown)=\"handleItemKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()?.template ?? defaultItemTemplate\"\n [ngTemplateOutletContext]=\"itemContext(entry)\"\n />\n </a>\n } @else {\n <button\n #menuItem\n type=\"button\"\n class=\"aeris-context-menu__item\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [disabled]=\"entry.disabled\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-haspopup]=\"entry.children.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.children.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.children.length ? entry.id + '-submenu' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-context-menu-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handleEntryPointerEnter(entry)\"\n (keydown)=\"handleItemKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()?.template ?? defaultItemTemplate\"\n [ngTemplateOutletContext]=\"itemContext(entry)\"\n />\n </button>\n }\n\n @if (entry.children.length && entry.open) {\n <div\n class=\"aeris-context-menu__submenu\"\n [id]=\"entry.id + '-submenu'\"\n [attr.data-side]=\"submenuSide()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{\n $implicit: entry.children,\n level: entry.level + 1,\n }\"\n />\n </div>\n }\n </li>\n }\n }\n </ul>\n </ng-template>\n\n <ng-template #defaultItemTemplate let-item let-hasSubmenu=\"hasSubmenu\">\n @if (item.icon) {\n <span class=\"aeris-context-menu__icon\" aria-hidden=\"true\">{{ item.icon }}</span>\n }\n <span class=\"aeris-context-menu__label\">{{ item.label }}</span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"aeris-context-menu__badge\">{{ item.badge }}</span>\n }\n @if (item.shortcut) {\n <kbd class=\"aeris-context-menu__shortcut\">{{ item.shortcut }}</kbd>\n }\n @if (hasSubmenu) {\n <svg class=\"aeris-context-menu__submenu-icon\" viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path d=\"m7.5 4.5 5 5.5-5 5.5\" />\n </svg>\n }\n </ng-template>\n\n @if (open()) {\n <div class=\"aeris-context-menu__layer\" (contextmenu)=\"suppressNativeMenu($event)\">\n <div\n #panel\n class=\"aeris-context-menu__panel\"\n [aerisInternalAppendTo]=\"appendTo()\"\n [id]=\"menuId()\"\n [class]=\"panelStyleClass()\"\n [attr.data-positioned]=\"positioned() || null\"\n [attr.data-size]=\"size()\"\n [style.left.px]=\"coordinates().x\"\n [style.top.px]=\"coordinates().y\"\n [style.--aeris-context-menu-width]=\"width() || null\"\n [style.--aeris-context-menu-max-width]=\"maxWidth() || null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{ $implicit: entries(), level: 0 }\"\n />\n </div>\n </div>\n }\n `,\n styleUrl: './aeris-context-menu.scss',\n host: {\n class: 'aeris-context-menu',\n '[attr.data-open]': 'open() || null',\n '(document:contextmenu)': 'handleDocumentContextMenu($event)',\n },\n})\nexport class AerisContextMenu<T = unknown> {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly repositionFrame = aerisInternalCreateFrameScheduler(() => this.reposition());\n private readonly injector = inject(Injector);\n private readonly generatedId = `aeris-context-menu-${++nextContextMenuId}`;\n private readonly activeTarget = signal<Element | null>(null);\n private readonly anchorPoint = signal<AerisContextMenuCoordinates>({ x: 0, y: 0 });\n private pendingOriginalEvent: Event | null = null;\n private pendingCloseReason: AerisContextMenuCloseReason = 'api';\n\n protected readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n private readonly panelPortal = viewChild(ɵAerisAppendTo);\n protected readonly menuItems = viewChildren<ElementRef<HTMLElement>>('menuItem');\n protected readonly itemTemplate = contentChild(AerisContextMenuItemTemplate<T>, {\n descendants: false,\n });\n protected readonly activePathKey = signal('');\n protected readonly openPathKey = signal('');\n protected readonly coordinates = signal<AerisContextMenuCoordinates>({ x: 0, y: 0 });\n protected readonly positioned = signal(false);\n protected readonly submenuSide = signal<'start' | 'end'>('end');\n protected readonly entries = computed(() =>\n this.buildEntries(this.model(), [], 0, this.activePathKey(), this.openPathKey()),\n );\n protected readonly rootRole = computed(() => (this.useMenubarRole() ? 'menubar' : 'menu'));\n\n readonly id = input(this.generatedId);\n readonly model = input<readonly AerisContextMenuItem<T>[]>([]);\n readonly open = model(false);\n readonly appendTo = input<AerisAppendTo>();\n readonly target = input<AerisContextMenuTarget>(null);\n readonly global = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly size = input<AerisContextMenuSize>('md');\n readonly width = input('');\n readonly maxWidth = input('');\n readonly viewportMargin = input(8);\n readonly hideOnOutsideClick = input(true, { transform: booleanAttribute });\n readonly hideOnScroll = input(false, { transform: booleanAttribute });\n readonly closeOnEscape = input(true, { transform: booleanAttribute });\n readonly autoFocus = input(true, { transform: booleanAttribute });\n readonly restoreFocus = input(true, { transform: booleanAttribute });\n readonly useMenubarRole = input(false, { transform: booleanAttribute });\n readonly ariaLabel = input('Context menu');\n readonly ariaLabelledBy = input('');\n readonly panelStyleClass = input('');\n readonly navigationHandler = input<AerisContextMenuNavigationHandler>();\n\n readonly shown = output<AerisContextMenuVisibilityEvent>();\n readonly hidden = output<AerisContextMenuVisibilityEvent>();\n readonly visibilityChanged = output<AerisContextMenuVisibilityEvent>();\n readonly itemSelected = output<AerisContextMenuItemEvent<T>>();\n\n protected readonly menuId = computed(() => this.id());\n\n constructor() {\n effect((onCleanup) => {\n if (!this.open()) return;\n const document = this.host.nativeElement.ownerDocument;\n const view = document.defaultView;\n const pointerdown = (event: PointerEvent) => this.handleDocumentPointerdown(event);\n const keydown = (event: KeyboardEvent) => this.handleDocumentKeydown(event);\n const resize = this.repositionFrame.schedule;\n const scroll = (event: Event) => this.handleWindowScroll(event);\n document.addEventListener('pointerdown', pointerdown);\n document.addEventListener('keydown', keydown);\n view?.addEventListener('resize', resize);\n view?.addEventListener('scroll', scroll);\n onCleanup(() => {\n document.removeEventListener('pointerdown', pointerdown);\n document.removeEventListener('keydown', keydown);\n view?.removeEventListener('resize', resize);\n view?.removeEventListener('scroll', scroll);\n this.repositionFrame.cancel();\n });\n });\n }\n\n show(event: MouseEvent | PointerEvent): void {\n if (this.disabled()) return;\n event.preventDefault();\n this.openAt(event.clientX, event.clientY, event);\n }\n\n openAt(x: number, y: number, originalEvent: Event | null = null): void {\n if (this.disabled()) return;\n this.pendingOriginalEvent = originalEvent;\n this.pendingCloseReason = 'api';\n this.anchorPoint.set({ x, y });\n this.coordinates.set({ x, y });\n this.positioned.set(false);\n this.activeTarget.set(this.resolveEventTarget(originalEvent));\n this.open.set(true);\n this.openInitialItem();\n const event = this.visibilityEvent(true, 'api', originalEvent);\n this.shown.emit(event);\n this.visibilityChanged.emit(event);\n afterNextRender(\n () => {\n this.reposition();\n if (this.autoFocus()) this.focusActiveItem();\n },\n { injector: this.injector },\n );\n }\n\n hide(\n originalEvent: Event | null = null,\n reason: AerisContextMenuCloseReason = 'api',\n restoreFocus = this.restoreFocus(),\n ): void {\n if (!this.open()) return;\n this.pendingOriginalEvent = originalEvent;\n this.pendingCloseReason = reason;\n this.panelPortal()?.restore();\n this.open.set(false);\n this.positioned.set(false);\n this.activePathKey.set('');\n this.openPathKey.set('');\n const event = this.visibilityEvent(false, reason, originalEvent);\n const target = this.activeTarget();\n this.hidden.emit(event);\n this.visibilityChanged.emit(event);\n this.activeTarget.set(null);\n if (restoreFocus && target instanceof HTMLElement) {\n queueMicrotask(() => target.focus());\n }\n }\n\n toggle(event: MouseEvent | PointerEvent): void {\n if (this.open()) {\n this.hide(event);\n } else {\n this.show(event);\n }\n }\n\n focus(): void {\n this.focusActiveItem();\n }\n\n reposition(): void {\n if (!this.open()) return;\n const panel = this.panel()?.nativeElement;\n const view = panel?.ownerDocument.defaultView;\n if (!panel || !view) return;\n\n const rect = panel.getBoundingClientRect();\n const width = rect.width || panel.offsetWidth || 240;\n const height = rect.height || panel.offsetHeight || 260;\n const anchor = this.anchorPoint();\n const { x, y } = aerisInternalClampOverlayPoint(\n anchor,\n width,\n height,\n view.innerWidth,\n view.innerHeight,\n this.viewportMargin(),\n );\n\n this.coordinates.set({ x, y });\n this.submenuSide.set(anchor.x > view.innerWidth / 2 ? 'start' : 'end');\n this.positioned.set(true);\n panel.style.left = `${x}px`;\n panel.style.top = `${y}px`;\n panel.setAttribute('data-positioned', 'true');\n }\n\n protected handleDocumentContextMenu(event: MouseEvent): void {\n if (this.disabled()) return;\n if (this.global()) {\n this.show(event);\n return;\n }\n\n const target = this.resolveTarget(this.target());\n const eventTarget = event.target;\n if (target && eventTarget instanceof Node && target.contains(eventTarget)) {\n this.show(event);\n }\n }\n\n protected handleDocumentPointerdown(event: PointerEvent): void {\n if (!this.open() || !this.hideOnOutsideClick()) return;\n const target = event.target;\n const panel = this.panel()?.nativeElement;\n if (target instanceof Node && panel?.contains(target)) return;\n this.hide(event, 'outside', false);\n }\n\n protected handleDocumentKeydown(event: KeyboardEvent): void {\n if (!this.open() || event.key !== 'Escape' || !this.closeOnEscape()) return;\n event.preventDefault();\n this.hide(event, 'escape');\n }\n\n protected handleWindowScroll(event: Event): void {\n if (!this.open()) return;\n if (this.hideOnScroll()) {\n this.hide(event, 'scroll', false);\n } else {\n this.repositionFrame.schedule();\n }\n }\n\n protected suppressNativeMenu(event: MouseEvent): void {\n event.preventDefault();\n }\n\n protected setActivePath(path: readonly number[]): void {\n this.activePathKey.set(this.pathKey(path));\n }\n\n protected handleEntryPointerEnter(entry: AerisContextMenuEntry<T>): void {\n if (entry.disabled || entry.separator) return;\n this.activePathKey.set(entry.pathKey);\n this.openPathKey.set(entry.children.length ? entry.pathKey : entry.parentPathKey);\n }\n\n protected activateEntry(\n event: MouseEvent | KeyboardEvent,\n entry: AerisContextMenuEntry<T>,\n ): void {\n if (entry.disabled || entry.separator) {\n event.preventDefault();\n return;\n }\n\n if (entry.children.length) {\n event.preventDefault();\n this.openPathKey.set(entry.open ? entry.parentPathKey : entry.pathKey);\n this.activePathKey.set(entry.pathKey);\n if (!entry.open) this.focusFirstChild(entry);\n return;\n }\n\n const itemEvent = {\n originalEvent: event,\n item: entry.item,\n path: entry.path,\n target: this.activeTarget(),\n };\n entry.item.command?.(itemEvent);\n this.itemSelected.emit(itemEvent);\n if (entry.item.routerLink && this.navigationHandler()) {\n event.preventDefault();\n this.navigationHandler()?.(entry.item.routerLink, event);\n }\n this.hide(event, 'select');\n }\n\n protected handleItemKeydown(event: KeyboardEvent, entry: AerisContextMenuEntry<T>): void {\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.focusSibling(entry, 1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.focusSibling(entry, -1);\n break;\n case 'Home':\n event.preventDefault();\n this.focusEdge(entry, 'first');\n break;\n case 'End':\n event.preventDefault();\n this.focusEdge(entry, 'last');\n break;\n case 'ArrowRight':\n event.preventDefault();\n if (entry.children.length) {\n this.openPathKey.set(entry.pathKey);\n this.focusFirstChild(entry);\n }\n break;\n case 'ArrowLeft':\n event.preventDefault();\n this.closeSubmenu(entry);\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.activateEntry(event, entry);\n break;\n case 'Tab':\n this.hide(event, 'outside', false);\n break;\n }\n }\n\n protected itemContext(entry: AerisContextMenuEntry<T>): AerisContextMenuItemTemplateContext<T> {\n return {\n $implicit: entry.item,\n item: entry.item,\n path: entry.path,\n level: entry.level,\n active: entry.active,\n open: entry.open,\n disabled: entry.disabled,\n hasSubmenu: entry.children.length > 0,\n };\n }\n\n private openInitialItem(): void {\n const first = this.firstEnabledEntry(this.entries());\n this.activePathKey.set(first?.pathKey ?? '');\n this.openPathKey.set('');\n }\n\n private buildEntries(\n items: readonly AerisContextMenuItem<T>[],\n parentPath: readonly number[],\n level: number,\n activePathKey: string,\n openPathKey: string,\n ): readonly AerisContextMenuEntry<T>[] {\n return items\n .map((item, index) => ({ item, index }))\n .filter(({ item }) => item.visible !== false)\n .map(({ item, index }) => {\n const path = [...parentPath, index];\n const key = this.pathKey(path);\n const parentKey = this.pathKey(parentPath);\n const children = this.buildEntries(\n item.items ?? [],\n path,\n level + 1,\n activePathKey,\n openPathKey,\n );\n return {\n item,\n index,\n id: item.id ?? `${this.id()}-item-${key || index}`,\n path,\n pathKey: key,\n parentPathKey: parentKey,\n level,\n href: this.resolveHref(item),\n separator: !!item.separator,\n disabled: !!item.disabled,\n active: activePathKey === key,\n open: openPathKey === key || openPathKey.startsWith(`${key}.`),\n children,\n };\n });\n }\n\n private focusSibling(entry: AerisContextMenuEntry<T>, step: 1 | -1): void {\n const siblings = this.enabledEntriesForParent(entry.parentPathKey);\n if (!siblings.length) return;\n const current = siblings.findIndex((item) => item.pathKey === entry.pathKey);\n const next =\n current < 0\n ? step === 1\n ? 0\n : siblings.length - 1\n : (current + step + siblings.length) % siblings.length;\n this.focusEntry(siblings[next]);\n }\n\n private focusEdge(entry: AerisContextMenuEntry<T>, edge: 'first' | 'last'): void {\n const siblings = this.enabledEntriesForParent(entry.parentPathKey);\n this.focusEntry(edge === 'first' ? siblings[0] : siblings.at(-1));\n }\n\n private focusFirstChild(entry: AerisContextMenuEntry<T>): void {\n this.focusEntry(this.firstEnabledEntry(entry.children));\n }\n\n private closeSubmenu(entry: AerisContextMenuEntry<T>): void {\n if (!entry.parentPathKey) return;\n const parent = this.findEntry(entry.parentPathKey);\n this.openPathKey.set(parent?.parentPathKey ?? '');\n this.focusEntry(parent);\n }\n\n private focusEntry(entry: AerisContextMenuEntry<T> | undefined): void {\n if (!entry) return;\n this.activePathKey.set(entry.pathKey);\n queueMicrotask(() => {\n this.menuItems()\n .find(\n ({ nativeElement }) =>\n nativeElement.getAttribute('data-aeris-context-menu-path') === entry.pathKey,\n )\n ?.nativeElement.focus();\n });\n }\n\n private focusActiveItem(): void {\n const active = this.findEntry(this.activePathKey()) ?? this.firstEnabledEntry(this.entries());\n this.focusEntry(active);\n }\n\n private enabledEntriesForParent(parentPathKey: string): readonly AerisContextMenuEntry<T>[] {\n return this.flattenEntries(this.entries()).filter(\n (entry) => entry.parentPathKey === parentPathKey && !entry.separator && !entry.disabled,\n );\n }\n\n private firstEnabledEntry(\n entries: readonly AerisContextMenuEntry<T>[],\n ): AerisContextMenuEntry<T> | undefined {\n return entries.find((entry) => !entry.separator && !entry.disabled);\n }\n\n private findEntry(pathKey: string): AerisContextMenuEntry<T> | undefined {\n return this.flattenEntries(this.entries()).find((entry) => entry.pathKey === pathKey);\n }\n\n private flattenEntries(\n entries: readonly AerisContextMenuEntry<T>[],\n ): readonly AerisContextMenuEntry<T>[] {\n return entries.flatMap((entry) => [entry, ...this.flattenEntries(entry.children)]);\n }\n\n private visibilityEvent(\n visible: boolean,\n reason: AerisContextMenuCloseReason,\n originalEvent: Event | null,\n ): AerisContextMenuVisibilityEvent {\n return {\n originalEvent,\n visible,\n reason,\n target: this.activeTarget(),\n };\n }\n\n private resolveTarget(target: AerisContextMenuTarget): Element | null {\n return target instanceof Element ? target : null;\n }\n\n private resolveEventTarget(event: Event | null): Element | null {\n const target = event?.target;\n if (target instanceof Element) return target;\n return this.resolveTarget(this.target()) ?? this.host.nativeElement;\n }\n\n private resolveHref(item: AerisContextMenuItem<T>): string | null {\n if (item.url) return item.url;\n if (!item.routerLink) return null;\n if (typeof item.routerLink === 'string') return item.routerLink;\n return `/${item.routerLink\n .map((segment) => String(segment).replace(/^\\/+|\\/+$/g, ''))\n .filter(Boolean)\n .join('/')}`;\n }\n\n private pathKey(path: readonly number[]): string {\n return path.join('.');\n }\n\n}\n\nexport const AerisContextMenuModule = [AerisContextMenu, AerisContextMenuItemTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵAerisAppendTo"],"mappings":";;;;;MAuGa,4BAA4B,CAAA;AAC9B,IAAA,QAAQ,GAAG,MAAM,CAAsD,WAAW,CAAC;uGADjF,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC,SAAS;mBAAC,EAAE,QAAQ,EAAE,mCAAmC,EAAE;;AAK5D,IAAI,iBAAiB,GAAG,CAAC;MAwJZ,gBAAgB,CAAA;AACV,IAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC;IAClD,eAAe,GAAG,iCAAiC,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;AAC5E,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,WAAW,GAAG,CAAA,mBAAA,EAAsB,EAAE,iBAAiB,EAAE;IACzD,YAAY,GAAG,MAAM,CAAiB,IAAI;qFAAC;IAC3C,WAAW,GAAG,MAAM,CAA8B,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;oFAAC;IAC1E,oBAAoB,GAAiB,IAAI;IACzC,kBAAkB,GAAgC,KAAK;IAE5C,KAAK,GAAG,SAAS,CAA0B,OAAO;8EAAC;IACrD,WAAW,GAAG,SAAS,CAACA,cAAc;oFAAC;IACrC,SAAS,GAAG,YAAY,CAA0B,UAAU;kFAAC;IAC7D,YAAY,GAAG,YAAY,EAAC,4BAA+B,GAAA,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,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MA0bU,sBAAsB,GAAG,CAAC,gBAAgB,EAAE,4BAA4B;;AC5sBrF;;AAEG;;;;"}
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { model, input, booleanAttribute, numberAttribute, output, signal, computed, viewChild, viewChildren, inject, Injector, afterNextRender, forwardRef, Component } from '@angular/core';
3
3
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
+ import { ɵAerisAppendTo as _AerisAppendTo } from '@aeris-ui/core';
4
5
 
5
6
  function dateAtMidnight(date) {
6
7
  return new Date(date.getFullYear(), date.getMonth(), date.getDate());
@@ -140,6 +141,8 @@ class AerisDatePicker {
140
141
  showIcon = input(true, { ...(ngDevMode ? { debugName: "showIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
141
142
  clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
142
143
  inline = input(false, { ...(ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
144
+ appendTo = input(/* @ts-ignore */
145
+ ...(ngDevMode ? [undefined, { debugName: "appendTo" }] : /* istanbul ignore next */ []));
143
146
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
144
147
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
145
148
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
@@ -293,6 +296,8 @@ class AerisDatePicker {
293
296
  ...(ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []));
294
297
  trigger = viewChild('trigger', /* @ts-ignore */
295
298
  ...(ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []));
299
+ panelPortal = viewChild(_AerisAppendTo, /* @ts-ignore */
300
+ ...(ngDevMode ? [{ debugName: "panelPortal" }] : /* istanbul ignore next */ []));
296
301
  hourInput = viewChild('hourInput', /* @ts-ignore */
297
302
  ...(ngDevMode ? [{ debugName: "hourInput" }] : /* istanbul ignore next */ []));
298
303
  dayButtons = viewChildren('dayButton', /* @ts-ignore */
@@ -346,6 +351,7 @@ class AerisDatePicker {
346
351
  close(restoreFocus = false) {
347
352
  if (!this.open())
348
353
  return;
354
+ this.panelPortal()?.restore();
349
355
  this.open.set(false);
350
356
  this.closed.emit();
351
357
  if (restoreFocus)
@@ -844,14 +850,14 @@ class AerisDatePicker {
844
850
  scheduleChoiceFocus() {
845
851
  afterNextRender(() => this.moveChoiceFocus(this.choiceIndex()), { injector: this.injector });
846
852
  }
847
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: AerisDatePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
848
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: AerisDatePicker, isStandalone: true, selector: "aeris-date-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", 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 }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", 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 }, calendarAriaLabel: { classPropertyName: "calendarAriaLabel", publicName: "calendarAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, timeAriaLabel: { classPropertyName: "timeAriaLabel", publicName: "timeAriaLabel", 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 }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, dateStyle: { classPropertyName: "dateStyle", publicName: "dateStyle", isSignal: true, isRequired: false, transformFunction: null }, hourCycle: { classPropertyName: "hourCycle", publicName: "hourCycle", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, secondStep: { classPropertyName: "secondStep", publicName: "secondStep", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: true, isRequired: false, transformFunction: null }, dateDisabled: { classPropertyName: "dateDisabled", publicName: "dateDisabled", isSignal: true, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: true, isRequired: false, transformFunction: null }, showOtherMonths: { classPropertyName: "showOtherMonths", publicName: "showOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, selectOtherMonths: { classPropertyName: "selectOtherMonths", publicName: "selectOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, showWeekNumbers: { classPropertyName: "showWeekNumbers", publicName: "showWeekNumbers", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", 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 }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, todayLabel: { classPropertyName: "todayLabel", publicName: "todayLabel", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, hourLabel: { classPropertyName: "hourLabel", publicName: "hourLabel", isSignal: true, isRequired: false, transformFunction: null }, minuteLabel: { classPropertyName: "minuteLabel", publicName: "minuteLabel", isSignal: true, isRequired: false, transformFunction: null }, secondLabel: { classPropertyName: "secondLabel", publicName: "secondLabel", isSignal: true, isRequired: false, transformFunction: null }, periodLabel: { classPropertyName: "periodLabel", publicName: "periodLabel", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, previousButtonAriaLabel: { classPropertyName: "previousButtonAriaLabel", publicName: "previousButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nextButtonAriaLabel: { classPropertyName: "nextButtonAriaLabel", publicName: "nextButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", changed: "changed", opened: "opened", closed: "closed", cleared: "cleared", monthChanged: "monthChanged", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-open": "open() || null", "attr.data-inline": "inline() || null", "attr.data-disabled": "effectiveDisabled() || null", "attr.data-fluid": "fluid() || null" } }, providers: [
853
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisDatePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
854
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: AerisDatePicker, isStandalone: true, selector: "aeris-date-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", 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 }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", 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 }, calendarAriaLabel: { classPropertyName: "calendarAriaLabel", publicName: "calendarAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, timeAriaLabel: { classPropertyName: "timeAriaLabel", publicName: "timeAriaLabel", 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 }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, dateStyle: { classPropertyName: "dateStyle", publicName: "dateStyle", isSignal: true, isRequired: false, transformFunction: null }, hourCycle: { classPropertyName: "hourCycle", publicName: "hourCycle", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, secondStep: { classPropertyName: "secondStep", publicName: "secondStep", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: true, isRequired: false, transformFunction: null }, dateDisabled: { classPropertyName: "dateDisabled", publicName: "dateDisabled", isSignal: true, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: true, isRequired: false, transformFunction: null }, showOtherMonths: { classPropertyName: "showOtherMonths", publicName: "showOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, selectOtherMonths: { classPropertyName: "selectOtherMonths", publicName: "selectOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, showWeekNumbers: { classPropertyName: "showWeekNumbers", publicName: "showWeekNumbers", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", 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 }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, todayLabel: { classPropertyName: "todayLabel", publicName: "todayLabel", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, hourLabel: { classPropertyName: "hourLabel", publicName: "hourLabel", isSignal: true, isRequired: false, transformFunction: null }, minuteLabel: { classPropertyName: "minuteLabel", publicName: "minuteLabel", isSignal: true, isRequired: false, transformFunction: null }, secondLabel: { classPropertyName: "secondLabel", publicName: "secondLabel", isSignal: true, isRequired: false, transformFunction: null }, periodLabel: { classPropertyName: "periodLabel", publicName: "periodLabel", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, previousButtonAriaLabel: { classPropertyName: "previousButtonAriaLabel", publicName: "previousButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nextButtonAriaLabel: { classPropertyName: "nextButtonAriaLabel", publicName: "nextButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", changed: "changed", opened: "opened", closed: "closed", cleared: "cleared", monthChanged: "monthChanged", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-open": "open() || null", "attr.data-inline": "inline() || null", "attr.data-disabled": "effectiveDisabled() || null", "attr.data-fluid": "fluid() || null" } }, providers: [
849
855
  {
850
856
  provide: NG_VALUE_ACCESSOR,
851
857
  useExisting: forwardRef(() => AerisDatePicker),
852
858
  multi: true,
853
859
  },
854
- ], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "hourInput", first: true, predicate: ["hourInput"], descendants: true, isSignal: true }, { propertyName: "dayButtons", predicate: ["dayButton"], descendants: true, isSignal: true }, { propertyName: "choiceButtons", predicate: ["choiceButton"], descendants: true, isSignal: true }], ngImport: i0, template: `
860
+ ], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "panelPortal", first: true, predicate: _AerisAppendTo, descendants: true, isSignal: true }, { propertyName: "hourInput", first: true, predicate: ["hourInput"], descendants: true, isSignal: true }, { propertyName: "dayButtons", predicate: ["dayButton"], descendants: true, isSignal: true }, { propertyName: "choiceButtons", predicate: ["choiceButton"], descendants: true, isSignal: true }], ngImport: i0, template: `
855
861
  <div
856
862
  class="aeris-date-picker"
857
863
  [attr.data-size]="size()"
@@ -928,6 +934,9 @@ class AerisDatePicker {
928
934
 
929
935
  <div
930
936
  class="aeris-date-picker__panel"
937
+ [aerisInternalAppendTo]="inline() ? 'self' : appendTo()"
938
+ [aerisInternalAppendToAnchor]="this.trigger()?.nativeElement ?? null"
939
+ (aerisInternalAppendToOutside)="close(false)"
931
940
  [id]="panelId"
932
941
  role="dialog"
933
942
  aria-modal="false"
@@ -1148,11 +1157,11 @@ class AerisDatePicker {
1148
1157
  </div>
1149
1158
  }
1150
1159
  </div>
1151
- `, isInline: true, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;min-width:13rem;max-width:100%;color:var(--aeris-date-picker-text, var(--aeris-text, #222222));font:inherit}:host([data-fluid]),:host([data-inline]){width:100%}.aeris-date-picker{--aeris-date-picker-height: var(--aeris-control-height, 2.625rem);--aeris-date-picker-font-size: .875rem;--aeris-date-picker-padding: .75rem;position:relative;width:100%}.aeris-date-picker[data-size=xs]{--aeris-date-picker-height: 1.875rem;--aeris-date-picker-font-size: .75rem;--aeris-date-picker-padding: .5625rem}.aeris-date-picker[data-size=sm]{--aeris-date-picker-height: 2.25rem;--aeris-date-picker-font-size: .8125rem;--aeris-date-picker-padding: .6875rem}.aeris-date-picker[data-size=lg]{--aeris-date-picker-height: 3rem;--aeris-date-picker-font-size: .9375rem;--aeris-date-picker-padding: .875rem}.aeris-date-picker__control{position:relative}.aeris-date-picker__trigger{width:100%;min-height:var(--aeris-date-picker-height);display:flex;align-items:center;padding:0 3rem 0 var(--aeris-date-picker-padding);border:1px solid var(--aeris-date-picker-border, var(--aeris-border-strong, #c7c9c0));border-radius:var(--aeris-date-picker-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:var(--aeris-date-picker-background, var(--aeris-surface, #fff));color:inherit;font:inherit;font-size:var(--aeris-date-picker-font-size);text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.aeris-date-picker__control:has(.aeris-date-picker__clear) .aeris-date-picker__trigger{padding-right:4.625rem}.aeris-date-picker[data-appearance=filled] .aeris-date-picker__trigger{border-color:transparent;background:var(--aeris-date-picker-filled-background, var(--aeris-surface-2, #f2f0ec))}.aeris-date-picker__trigger:hover,.aeris-date-picker[data-open] .aeris-date-picker__trigger{border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b452a))}.aeris-date-picker__trigger:focus-visible{outline:0;border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b452a));box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #3b452a) 22%,transparent)}.aeris-date-picker[data-invalid] .aeris-date-picker__trigger{border-color:var(--aeris-danger, #c81e2a)}.aeris-date-picker[data-disabled] .aeris-date-picker__trigger{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-date-picker__placeholder{color:var(--aeris-date-picker-placeholder, var(--aeris-text-2, #555555))}.aeris-date-picker__clear{position:absolute;z-index:2;top:50%;right:2.25rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--aeris-text-2, #555555);transform:translateY(-50%);cursor:pointer}.aeris-date-picker__clear:hover,.aeris-date-picker__clear:focus-visible{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-date-picker__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b452a);outline-offset:1px}.aeris-date-picker__clear span{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}.aeris-date-picker__calendar-icon{position:absolute;top:50%;right:var(--aeris-date-picker-padding);width:1rem;height:1rem;border:1.5px solid currentColor;border-radius:.1875rem;color:var(--aeris-text-2, #555555);transform:translateY(-50%);pointer-events:none}.aeris-date-picker__calendar-icon:before{position:absolute;inset:.1875rem -.09375rem auto;height:1.5px;background:currentColor;content:\"\"}.aeris-date-picker__calendar-icon:after{position:absolute;top:-.25rem;left:.1875rem;width:.5rem;height:.25rem;border-right:1.5px solid currentColor;border-left:1.5px solid currentColor;content:\"\"}.aeris-date-picker__calendar-icon span{position:absolute;right:.1875rem;bottom:.1875rem;width:.1875rem;height:.1875rem;border-radius:50%;background:currentColor;box-shadow:-.3125rem 0 currentColor}.aeris-date-picker__chevron{position:absolute;top:50%;right:var(--aeris-date-picker-padding);width:1rem;height:1rem;color:var(--aeris-text-2, #555555);transform:translateY(-50%);pointer-events:none}.aeris-date-picker__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-date-picker__dismiss{position:fixed;z-index:89;inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;background:transparent;cursor:default}.aeris-date-picker__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);left:0;width:max-content;max-width:calc(100vw - 2rem);padding:.75rem;border:1px solid var(--aeris-date-picker-panel-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-date-picker-panel-radius, var(--aeris-radius-md, .6875rem));background:var(--aeris-date-picker-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-date-picker-panel-shadow, 0 1rem 2.5rem rgba(31, 35, 27, .16));scrollbar-color:var(--aeris-border-strong, #c7c9c0) transparent;scrollbar-width:thin}.aeris-date-picker__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-date-picker__panel::-webkit-scrollbar-track,.aeris-date-picker__panel::-webkit-scrollbar-corner{background:transparent}.aeris-date-picker__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border-strong, #c7c9c0);background-clip:content-box}.aeris-date-picker[data-inline] .aeris-date-picker__panel{position:relative;z-index:auto;top:auto;width:100%;box-shadow:none}.aeris-date-picker__header{min-height:2.25rem;display:grid;grid-template-columns:2.25rem 1fr 2.25rem;align-items:center;gap:.375rem;margin-bottom:.625rem}.aeris-date-picker__heading{display:flex;align-items:center;justify-content:center;gap:.25rem;color:var(--aeris-text, #222222);font-size:.875rem;font-weight:700}.aeris-date-picker__heading button,.aeris-date-picker__nav,.aeris-date-picker__footer button,.aeris-date-picker__choice-grid button{border:0;border-radius:.4375rem;background:transparent;color:inherit;font:inherit;cursor:pointer}.aeris-date-picker__heading button{padding:.35rem .4rem;font-weight:700}.aeris-date-picker__heading button:hover,.aeris-date-picker__nav:hover:not(:disabled),.aeris-date-picker__footer button:hover:not(:disabled),.aeris-date-picker__choice-grid button:hover:not(:disabled){background:var(--aeris-date-picker-hover, color-mix(in srgb, var(--aeris-primary, #606c38) 12%, transparent))}.aeris-date-picker__heading button:focus-visible,.aeris-date-picker__nav:focus-visible,.aeris-date-picker__footer button:focus-visible,.aeris-date-picker__choice-grid button:focus-visible{outline:2px solid var(--aeris-focus, #3b452a);outline-offset:1px}.aeris-date-picker__nav{width:2.25rem;height:2.25rem;display:grid;place-items:center;padding:0}.aeris-date-picker__nav:disabled,.aeris-date-picker__footer button:disabled,.aeris-date-picker__choice-grid button:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__nav span{position:relative;width:1rem;height:1rem}.aeris-date-picker__nav span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-date-picker__nav--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-date-picker__months{display:grid;grid-template-columns:repeat(var(--aeris-date-picker-month-count),minmax(15rem,1fr));gap:1rem}.aeris-date-picker__month{min-width:0}.aeris-date-picker__month h3{margin:0 0 .5rem;color:var(--aeris-text, #222222);font-size:.8125rem;text-align:center}.aeris-date-picker__weekdays,.aeris-date-picker__week{display:grid;grid-template-columns:repeat(7,minmax(1.75rem,1fr));gap:.125rem}.aeris-date-picker__weekdays:has(.aeris-date-picker__week-label),.aeris-date-picker__week:has(.aeris-date-picker__week-number){grid-template-columns:1.5rem repeat(7,minmax(1.75rem,1fr))}.aeris-date-picker__weekdays span,.aeris-date-picker__week-number{min-height:1.75rem;display:grid;place-items:center;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:650}.aeris-date-picker__day{position:relative;min-width:2rem;min-height:2rem;display:grid;place-items:center;padding:0;border:0;border-radius:.4375rem;background:transparent;color:var(--aeris-text, #222222);font:inherit;font-size:.8125rem;cursor:pointer}.aeris-date-picker__day:hover:not(:disabled),.aeris-date-picker__day:focus-visible{background:var(--aeris-date-picker-hover, color-mix(in srgb, var(--aeris-primary, #606c38) 12%, transparent))}.aeris-date-picker__day:focus-visible{z-index:1;outline:2px solid var(--aeris-focus, #3b452a);outline-offset:0}.aeris-date-picker__day[data-other-month]{color:var(--aeris-text-2, #555555);opacity:.58}.aeris-date-picker__day[data-in-range]{border-radius:0;background:color-mix(in srgb,var(--aeris-date-picker-selected-background, var(--aeris-primary, #606c38)) 16%,transparent)}.aeris-date-picker__day[data-selected],.aeris-date-picker__day[data-range-start],.aeris-date-picker__day[data-range-end]{border-radius:.4375rem;background:var(--aeris-date-picker-selected-background, var(--aeris-primary, #606c38));color:var(--aeris-date-picker-selected-text, var(--aeris-on-primary, #ffffff));font-weight:700}.aeris-date-picker__day[data-selected]:hover:not(:disabled),.aeris-date-picker__day[data-selected]:focus-visible,.aeris-date-picker__day[data-range-start]:hover:not(:disabled),.aeris-date-picker__day[data-range-start]:focus-visible,.aeris-date-picker__day[data-range-end]:hover:not(:disabled),.aeris-date-picker__day[data-range-end]:focus-visible{background:var(--aeris-date-picker-selected-hover-background, var(--aeris-primary-hover, var(--aeris-primary, #606c38)));color:var(--aeris-date-picker-selected-hover-text, var(--aeris-on-primary-hover, var(--aeris-on-primary, #ffffff)))}.aeris-date-picker__day[data-today]:not([data-selected]):after{position:absolute;bottom:.1875rem;width:.25rem;height:.25rem;border-radius:50%;background:var(--aeris-primary, #606c38);content:\"\"}.aeris-date-picker__day:disabled{opacity:var(--aeris-disabled-opacity, .38);cursor:not-allowed}.aeris-date-picker__choice-grid{min-width:15rem;display:grid;grid-template-columns:repeat(3,minmax(4rem,1fr));gap:.25rem}.aeris-date-picker__choice-grid button{min-height:2.75rem;padding:.5rem;font-size:.8125rem}.aeris-date-picker__choice-grid button[data-selected]{background:var(--aeris-date-picker-selected-background, var(--aeris-primary, #606c38));color:var(--aeris-date-picker-selected-text, var(--aeris-on-primary, #ffffff));font-weight:700}.aeris-date-picker__choice-grid button[data-selected]:hover:not(:disabled),.aeris-date-picker__choice-grid button[data-selected]:focus-visible{background:var(--aeris-date-picker-selected-hover-background, var(--aeris-primary-hover, var(--aeris-primary, #606c38)));color:var(--aeris-date-picker-selected-hover-text, var(--aeris-on-primary-hover, var(--aeris-on-primary, #ffffff)))}.aeris-date-picker__time{min-width:15rem;display:flex;align-items:end;gap:.375rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--aeris-border, #deddd7)}.aeris-date-picker__time[data-time-only]{margin-top:0;padding-top:0;border-top:0}.aeris-date-picker__time-field{min-width:0;flex:1 1 0;display:grid;gap:.3125rem;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:700}.aeris-date-picker__time-field--period{flex-basis:4.25rem}.aeris-date-picker__time-field input,.aeris-date-picker__time-field select{width:100%;min-height:2.25rem;padding:0 .5rem;border:1px solid var(--aeris-date-picker-border, var(--aeris-border-strong, #c7c9c0));border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-date-picker-background, var(--aeris-surface, #fff));color:var(--aeris-text, #222222);font:inherit;font-size:.8125rem}.aeris-date-picker__time-field input{text-align:center}.aeris-date-picker__time-field input:focus-visible,.aeris-date-picker__time-field select:focus-visible{outline:2px solid var(--aeris-focus, #3b452a);outline-offset:1px;border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b452a))}.aeris-date-picker__time-field input:disabled,.aeris-date-picker__time-field select:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__time-separator{min-height:2.25rem;display:grid;place-items:center;color:var(--aeris-text-2, #555555);font-size:1rem;font-weight:800}.aeris-date-picker__footer{display:flex;justify-content:space-between;gap:.75rem;margin-top:.625rem;padding-top:.625rem;border-top:1px solid var(--aeris-border, #deddd7)}.aeris-date-picker__footer button{min-height:2rem;padding:.375rem .625rem;color:var(--aeris-primary-text, #606c38);font-size:.8125rem;font-weight:700}@media(max-width:50rem){.aeris-date-picker__panel{width:min(100%,100vw - 2rem);overflow-x:auto}.aeris-date-picker__months{grid-template-columns:minmax(14rem,1fr)}}@media(prefers-reduced-motion:reduce){.aeris-date-picker__trigger{transition:none}}\n"] });
1160
+ `, isInline: true, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;min-width:13rem;max-width:100%;color:var(--aeris-date-picker-text, var(--aeris-text, #222222));font:inherit}:host([data-fluid]),:host([data-inline]){width:100%}.aeris-date-picker{--aeris-date-picker-height: var(--aeris-control-height, 2.625rem);--aeris-date-picker-font-size: .875rem;--aeris-date-picker-padding: .75rem;position:relative;width:100%}.aeris-date-picker[data-size=xs]{--aeris-date-picker-height: 1.875rem;--aeris-date-picker-font-size: .75rem;--aeris-date-picker-padding: .5625rem}.aeris-date-picker[data-size=sm]{--aeris-date-picker-height: 2.25rem;--aeris-date-picker-font-size: .8125rem;--aeris-date-picker-padding: .6875rem}.aeris-date-picker[data-size=lg]{--aeris-date-picker-height: 3rem;--aeris-date-picker-font-size: .9375rem;--aeris-date-picker-padding: .875rem}.aeris-date-picker__control{position:relative}.aeris-date-picker__trigger{width:100%;min-height:var(--aeris-date-picker-height);display:flex;align-items:center;padding:0 3rem 0 var(--aeris-date-picker-padding);border:1px solid var(--aeris-date-picker-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-date-picker-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:var(--aeris-date-picker-background, var(--aeris-surface, #fff));color:inherit;font:inherit;font-size:var(--aeris-date-picker-font-size);text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.aeris-date-picker__control:has(.aeris-date-picker__clear) .aeris-date-picker__trigger{padding-right:4.625rem}.aeris-date-picker[data-appearance=filled] .aeris-date-picker__trigger{border-color:transparent;background:var(--aeris-date-picker-filled-background, var(--aeris-surface-2, #f2f0ec))}.aeris-date-picker__trigger:hover,.aeris-date-picker[data-open] .aeris-date-picker__trigger{border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b4729))}.aeris-date-picker__trigger:focus-visible{outline:0;border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b4729));box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #3b4729) 22%,transparent)}.aeris-date-picker[data-invalid] .aeris-date-picker__trigger{border-color:var(--aeris-danger, #c81e2a)}.aeris-date-picker[data-disabled] .aeris-date-picker__trigger{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-date-picker__placeholder{color:var(--aeris-date-picker-placeholder, var(--aeris-text-2, #555555))}.aeris-date-picker__clear{position:absolute;z-index:2;top:50%;right:2.25rem;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);transform:translateY(-50%);cursor:pointer}.aeris-date-picker__clear:hover,.aeris-date-picker__clear:focus-visible{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-date-picker__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.aeris-date-picker__clear span{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}.aeris-date-picker__calendar-icon{position:absolute;top:50%;right:var(--aeris-date-picker-padding);width:1rem;height:1rem;border:1.5px solid currentColor;border-radius:.1875rem;color:var(--aeris-text-2, #555555);transform:translateY(-50%);pointer-events:none}.aeris-date-picker__calendar-icon:before{position:absolute;inset:.1875rem -.09375rem auto;height:1.5px;background:currentColor;content:\"\"}.aeris-date-picker__calendar-icon:after{position:absolute;top:-.25rem;left:.1875rem;width:.5rem;height:.25rem;border-right:1.5px solid currentColor;border-left:1.5px solid currentColor;content:\"\"}.aeris-date-picker__calendar-icon span{position:absolute;right:.1875rem;bottom:.1875rem;width:.1875rem;height:.1875rem;border-radius:50%;background:currentColor;box-shadow:-.3125rem 0 currentColor}.aeris-date-picker__chevron{position:absolute;top:50%;right:var(--aeris-date-picker-padding);width:1rem;height:1rem;color:var(--aeris-text-2, #555555);transform:translateY(-50%);pointer-events:none}.aeris-date-picker__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-date-picker__dismiss{position:fixed;z-index:89;inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;background:transparent;cursor:default}.aeris-date-picker__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);left:0;width:max-content;max-width:calc(100vw - 2rem);padding:.75rem;border:1px solid var(--aeris-date-picker-panel-border, var(--aeris-border));border-radius:var(--aeris-date-picker-panel-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-date-picker-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-date-picker-panel-shadow, 0 1rem 2.5rem rgba(31, 35, 27, .16));scrollbar-color:var(--aeris-border, #deddd7) transparent;scrollbar-width:thin}.aeris-date-picker__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-date-picker__panel::-webkit-scrollbar-track,.aeris-date-picker__panel::-webkit-scrollbar-corner{background:transparent}.aeris-date-picker__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #deddd7);background-clip:content-box}.aeris-date-picker[data-inline] .aeris-date-picker__panel{position:relative;z-index:auto;top:auto;width:100%;box-shadow:none}.aeris-date-picker__header{min-height:2.25rem;display:grid;grid-template-columns:2.25rem 1fr 2.25rem;align-items:center;gap:.375rem;margin-bottom:.625rem}.aeris-date-picker__heading{display:flex;align-items:center;justify-content:center;gap:.25rem;color:var(--aeris-text, #222222);font-size:.875rem;font-weight:700}.aeris-date-picker__heading button,.aeris-date-picker__nav,.aeris-date-picker__footer button,.aeris-date-picker__choice-grid button{border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;font:inherit;cursor:pointer}.aeris-date-picker__heading button{padding:.35rem .4rem;font-weight:700}.aeris-date-picker__heading button:hover,.aeris-date-picker__nav:hover:not(:disabled),.aeris-date-picker__footer button:hover:not(:disabled),.aeris-date-picker__choice-grid button:hover:not(:disabled){background:var(--aeris-date-picker-hover, color-mix(in srgb, var(--aeris-primary, #5f6f36) 12%, transparent))}.aeris-date-picker__heading button:focus-visible,.aeris-date-picker__nav:focus-visible,.aeris-date-picker__footer button:focus-visible,.aeris-date-picker__choice-grid button:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.aeris-date-picker__nav{width:2.25rem;height:2.25rem;display:grid;place-items:center;padding:0}.aeris-date-picker__nav:disabled,.aeris-date-picker__footer button:disabled,.aeris-date-picker__choice-grid button:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__nav span{position:relative;width:1rem;height:1rem}.aeris-date-picker__nav span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-date-picker__nav--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-date-picker__months{display:grid;grid-template-columns:repeat(var(--aeris-date-picker-month-count),minmax(15rem,1fr));gap:1rem}.aeris-date-picker__month{min-width:0}.aeris-date-picker__month h3{margin:0 0 .5rem;color:var(--aeris-text, #222222);font-size:.8125rem;text-align:center}.aeris-date-picker__weekdays,.aeris-date-picker__week{display:grid;grid-template-columns:repeat(7,minmax(1.75rem,1fr));gap:.125rem}.aeris-date-picker__weekdays:has(.aeris-date-picker__week-label),.aeris-date-picker__week:has(.aeris-date-picker__week-number){grid-template-columns:1.5rem repeat(7,minmax(1.75rem,1fr))}.aeris-date-picker__weekdays span,.aeris-date-picker__week-number{min-height:1.75rem;display:grid;place-items:center;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:650}.aeris-date-picker__day{position:relative;min-width:2rem;min-height:2rem;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, #222222);font:inherit;font-size:.8125rem;cursor:pointer}.aeris-date-picker__day:hover:not(:disabled),.aeris-date-picker__day:focus-visible{background:var(--aeris-date-picker-hover, color-mix(in srgb, var(--aeris-primary, #5f6f36) 12%, transparent))}.aeris-date-picker__day:focus-visible{z-index:1;outline:2px solid var(--aeris-focus, #3b4729);outline-offset:0}.aeris-date-picker__day[data-other-month]{color:var(--aeris-text-2, #555555);opacity:.58}.aeris-date-picker__day[data-in-range]{border-radius:0;background:color-mix(in srgb,var(--aeris-date-picker-selected-background, var(--aeris-primary, #5f6f36)) 16%,transparent)}.aeris-date-picker__day[data-selected],.aeris-date-picker__day[data-range-start],.aeris-date-picker__day[data-range-end]{border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-date-picker-selected-background, var(--aeris-primary, #5f6f36));color:var(--aeris-date-picker-selected-text, var(--aeris-on-primary, #ffffff));font-weight:700}.aeris-date-picker__day[data-selected]:hover:not(:disabled),.aeris-date-picker__day[data-selected]:focus-visible,.aeris-date-picker__day[data-range-start]:hover:not(:disabled),.aeris-date-picker__day[data-range-start]:focus-visible,.aeris-date-picker__day[data-range-end]:hover:not(:disabled),.aeris-date-picker__day[data-range-end]:focus-visible{background:var(--aeris-date-picker-selected-hover-background, var(--aeris-primary-hover, var(--aeris-primary, #5f6f36)));color:var(--aeris-date-picker-selected-hover-text, var(--aeris-on-primary-hover, var(--aeris-on-primary, #ffffff)))}.aeris-date-picker__day[data-today]:not([data-selected]):after{position:absolute;bottom:.1875rem;width:.25rem;height:.25rem;border-radius:50%;background:var(--aeris-primary, #5f6f36);content:\"\"}.aeris-date-picker__day:disabled{opacity:var(--aeris-disabled-opacity, .38);cursor:not-allowed}.aeris-date-picker__choice-grid{min-width:15rem;display:grid;grid-template-columns:repeat(3,minmax(4rem,1fr));gap:.25rem}.aeris-date-picker__choice-grid button{min-height:2.75rem;padding:.5rem;font-size:.8125rem}.aeris-date-picker__choice-grid button[data-selected]{background:var(--aeris-date-picker-selected-background, var(--aeris-primary, #5f6f36));color:var(--aeris-date-picker-selected-text, var(--aeris-on-primary, #ffffff));font-weight:700}.aeris-date-picker__choice-grid button[data-selected]:hover:not(:disabled),.aeris-date-picker__choice-grid button[data-selected]:focus-visible{background:var(--aeris-date-picker-selected-hover-background, var(--aeris-primary-hover, var(--aeris-primary, #5f6f36)));color:var(--aeris-date-picker-selected-hover-text, var(--aeris-on-primary-hover, var(--aeris-on-primary, #ffffff)))}.aeris-date-picker__time{min-width:15rem;display:flex;align-items:end;gap:.375rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--aeris-border, #deddd7)}.aeris-date-picker__time[data-time-only]{margin-top:0;padding-top:0;border-top:0}.aeris-date-picker__time-field{min-width:0;flex:1 1 0;display:grid;gap:.3125rem;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:700}.aeris-date-picker__time-field--period{flex-basis:4.25rem}.aeris-date-picker__time-field input,.aeris-date-picker__time-field select{width:100%;min-height:2.25rem;padding:0 .5rem;border:1px solid var(--aeris-date-picker-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-date-picker-background, var(--aeris-surface, #fff));color:var(--aeris-text, #222222);font:inherit;font-size:.8125rem}.aeris-date-picker__time-field input{text-align:center}.aeris-date-picker__time-field input:focus-visible,.aeris-date-picker__time-field select:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px;border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b4729))}.aeris-date-picker__time-field input:disabled,.aeris-date-picker__time-field select:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__time-separator{min-height:2.25rem;display:grid;place-items:center;color:var(--aeris-text-2, #555555);font-size:1rem;font-weight:800}.aeris-date-picker__footer{display:flex;justify-content:space-between;gap:.75rem;margin-top:.625rem;padding-top:.625rem;border-top:1px solid var(--aeris-border, #deddd7)}.aeris-date-picker__footer button{min-height:2rem;padding:.375rem .625rem;color:var(--aeris-primary-text, #5f6f36);font-size:.8125rem;font-weight:700}@media(max-width:50rem){.aeris-date-picker__panel{width:min(100%,100vw - 2rem);overflow-x:auto}.aeris-date-picker__months{grid-template-columns:minmax(14rem,1fr)}}@media(prefers-reduced-motion:reduce){.aeris-date-picker__trigger{transition:none}}\n"], dependencies: [{ kind: "directive", type: _AerisAppendTo, selector: "[aerisInternalAppendTo]", inputs: ["aerisInternalAppendTo", "aerisInternalAppendToAnchor", "aerisInternalAppendToOffset", "aerisInternalAppendToMatchWidth"], outputs: ["aerisInternalAppendToOutside"] }] });
1152
1161
  }
1153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: AerisDatePicker, decorators: [{
1162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisDatePicker, decorators: [{
1154
1163
  type: Component,
1155
- args: [{ selector: 'aeris-date-picker', template: `
1164
+ args: [{ selector: 'aeris-date-picker', imports: [_AerisAppendTo], template: `
1156
1165
  <div
1157
1166
  class="aeris-date-picker"
1158
1167
  [attr.data-size]="size()"
@@ -1229,6 +1238,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
1229
1238
 
1230
1239
  <div
1231
1240
  class="aeris-date-picker__panel"
1241
+ [aerisInternalAppendTo]="inline() ? 'self' : appendTo()"
1242
+ [aerisInternalAppendToAnchor]="this.trigger()?.nativeElement ?? null"
1243
+ (aerisInternalAppendToOutside)="close(false)"
1232
1244
  [id]="panelId"
1233
1245
  role="dialog"
1234
1246
  aria-modal="false"
@@ -1460,8 +1472,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
1460
1472
  '[attr.data-inline]': 'inline() || null',
1461
1473
  '[attr.data-disabled]': 'effectiveDisabled() || null',
1462
1474
  '[attr.data-fluid]': 'fluid() || null',
1463
- }, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;min-width:13rem;max-width:100%;color:var(--aeris-date-picker-text, var(--aeris-text, #222222));font:inherit}:host([data-fluid]),:host([data-inline]){width:100%}.aeris-date-picker{--aeris-date-picker-height: var(--aeris-control-height, 2.625rem);--aeris-date-picker-font-size: .875rem;--aeris-date-picker-padding: .75rem;position:relative;width:100%}.aeris-date-picker[data-size=xs]{--aeris-date-picker-height: 1.875rem;--aeris-date-picker-font-size: .75rem;--aeris-date-picker-padding: .5625rem}.aeris-date-picker[data-size=sm]{--aeris-date-picker-height: 2.25rem;--aeris-date-picker-font-size: .8125rem;--aeris-date-picker-padding: .6875rem}.aeris-date-picker[data-size=lg]{--aeris-date-picker-height: 3rem;--aeris-date-picker-font-size: .9375rem;--aeris-date-picker-padding: .875rem}.aeris-date-picker__control{position:relative}.aeris-date-picker__trigger{width:100%;min-height:var(--aeris-date-picker-height);display:flex;align-items:center;padding:0 3rem 0 var(--aeris-date-picker-padding);border:1px solid var(--aeris-date-picker-border, var(--aeris-border-strong, #c7c9c0));border-radius:var(--aeris-date-picker-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:var(--aeris-date-picker-background, var(--aeris-surface, #fff));color:inherit;font:inherit;font-size:var(--aeris-date-picker-font-size);text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.aeris-date-picker__control:has(.aeris-date-picker__clear) .aeris-date-picker__trigger{padding-right:4.625rem}.aeris-date-picker[data-appearance=filled] .aeris-date-picker__trigger{border-color:transparent;background:var(--aeris-date-picker-filled-background, var(--aeris-surface-2, #f2f0ec))}.aeris-date-picker__trigger:hover,.aeris-date-picker[data-open] .aeris-date-picker__trigger{border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b452a))}.aeris-date-picker__trigger:focus-visible{outline:0;border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b452a));box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #3b452a) 22%,transparent)}.aeris-date-picker[data-invalid] .aeris-date-picker__trigger{border-color:var(--aeris-danger, #c81e2a)}.aeris-date-picker[data-disabled] .aeris-date-picker__trigger{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-date-picker__placeholder{color:var(--aeris-date-picker-placeholder, var(--aeris-text-2, #555555))}.aeris-date-picker__clear{position:absolute;z-index:2;top:50%;right:2.25rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--aeris-text-2, #555555);transform:translateY(-50%);cursor:pointer}.aeris-date-picker__clear:hover,.aeris-date-picker__clear:focus-visible{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-date-picker__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b452a);outline-offset:1px}.aeris-date-picker__clear span{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}.aeris-date-picker__calendar-icon{position:absolute;top:50%;right:var(--aeris-date-picker-padding);width:1rem;height:1rem;border:1.5px solid currentColor;border-radius:.1875rem;color:var(--aeris-text-2, #555555);transform:translateY(-50%);pointer-events:none}.aeris-date-picker__calendar-icon:before{position:absolute;inset:.1875rem -.09375rem auto;height:1.5px;background:currentColor;content:\"\"}.aeris-date-picker__calendar-icon:after{position:absolute;top:-.25rem;left:.1875rem;width:.5rem;height:.25rem;border-right:1.5px solid currentColor;border-left:1.5px solid currentColor;content:\"\"}.aeris-date-picker__calendar-icon span{position:absolute;right:.1875rem;bottom:.1875rem;width:.1875rem;height:.1875rem;border-radius:50%;background:currentColor;box-shadow:-.3125rem 0 currentColor}.aeris-date-picker__chevron{position:absolute;top:50%;right:var(--aeris-date-picker-padding);width:1rem;height:1rem;color:var(--aeris-text-2, #555555);transform:translateY(-50%);pointer-events:none}.aeris-date-picker__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-date-picker__dismiss{position:fixed;z-index:89;inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;background:transparent;cursor:default}.aeris-date-picker__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);left:0;width:max-content;max-width:calc(100vw - 2rem);padding:.75rem;border:1px solid var(--aeris-date-picker-panel-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-date-picker-panel-radius, var(--aeris-radius-md, .6875rem));background:var(--aeris-date-picker-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-date-picker-panel-shadow, 0 1rem 2.5rem rgba(31, 35, 27, .16));scrollbar-color:var(--aeris-border-strong, #c7c9c0) transparent;scrollbar-width:thin}.aeris-date-picker__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-date-picker__panel::-webkit-scrollbar-track,.aeris-date-picker__panel::-webkit-scrollbar-corner{background:transparent}.aeris-date-picker__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border-strong, #c7c9c0);background-clip:content-box}.aeris-date-picker[data-inline] .aeris-date-picker__panel{position:relative;z-index:auto;top:auto;width:100%;box-shadow:none}.aeris-date-picker__header{min-height:2.25rem;display:grid;grid-template-columns:2.25rem 1fr 2.25rem;align-items:center;gap:.375rem;margin-bottom:.625rem}.aeris-date-picker__heading{display:flex;align-items:center;justify-content:center;gap:.25rem;color:var(--aeris-text, #222222);font-size:.875rem;font-weight:700}.aeris-date-picker__heading button,.aeris-date-picker__nav,.aeris-date-picker__footer button,.aeris-date-picker__choice-grid button{border:0;border-radius:.4375rem;background:transparent;color:inherit;font:inherit;cursor:pointer}.aeris-date-picker__heading button{padding:.35rem .4rem;font-weight:700}.aeris-date-picker__heading button:hover,.aeris-date-picker__nav:hover:not(:disabled),.aeris-date-picker__footer button:hover:not(:disabled),.aeris-date-picker__choice-grid button:hover:not(:disabled){background:var(--aeris-date-picker-hover, color-mix(in srgb, var(--aeris-primary, #606c38) 12%, transparent))}.aeris-date-picker__heading button:focus-visible,.aeris-date-picker__nav:focus-visible,.aeris-date-picker__footer button:focus-visible,.aeris-date-picker__choice-grid button:focus-visible{outline:2px solid var(--aeris-focus, #3b452a);outline-offset:1px}.aeris-date-picker__nav{width:2.25rem;height:2.25rem;display:grid;place-items:center;padding:0}.aeris-date-picker__nav:disabled,.aeris-date-picker__footer button:disabled,.aeris-date-picker__choice-grid button:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__nav span{position:relative;width:1rem;height:1rem}.aeris-date-picker__nav span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-date-picker__nav--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-date-picker__months{display:grid;grid-template-columns:repeat(var(--aeris-date-picker-month-count),minmax(15rem,1fr));gap:1rem}.aeris-date-picker__month{min-width:0}.aeris-date-picker__month h3{margin:0 0 .5rem;color:var(--aeris-text, #222222);font-size:.8125rem;text-align:center}.aeris-date-picker__weekdays,.aeris-date-picker__week{display:grid;grid-template-columns:repeat(7,minmax(1.75rem,1fr));gap:.125rem}.aeris-date-picker__weekdays:has(.aeris-date-picker__week-label),.aeris-date-picker__week:has(.aeris-date-picker__week-number){grid-template-columns:1.5rem repeat(7,minmax(1.75rem,1fr))}.aeris-date-picker__weekdays span,.aeris-date-picker__week-number{min-height:1.75rem;display:grid;place-items:center;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:650}.aeris-date-picker__day{position:relative;min-width:2rem;min-height:2rem;display:grid;place-items:center;padding:0;border:0;border-radius:.4375rem;background:transparent;color:var(--aeris-text, #222222);font:inherit;font-size:.8125rem;cursor:pointer}.aeris-date-picker__day:hover:not(:disabled),.aeris-date-picker__day:focus-visible{background:var(--aeris-date-picker-hover, color-mix(in srgb, var(--aeris-primary, #606c38) 12%, transparent))}.aeris-date-picker__day:focus-visible{z-index:1;outline:2px solid var(--aeris-focus, #3b452a);outline-offset:0}.aeris-date-picker__day[data-other-month]{color:var(--aeris-text-2, #555555);opacity:.58}.aeris-date-picker__day[data-in-range]{border-radius:0;background:color-mix(in srgb,var(--aeris-date-picker-selected-background, var(--aeris-primary, #606c38)) 16%,transparent)}.aeris-date-picker__day[data-selected],.aeris-date-picker__day[data-range-start],.aeris-date-picker__day[data-range-end]{border-radius:.4375rem;background:var(--aeris-date-picker-selected-background, var(--aeris-primary, #606c38));color:var(--aeris-date-picker-selected-text, var(--aeris-on-primary, #ffffff));font-weight:700}.aeris-date-picker__day[data-selected]:hover:not(:disabled),.aeris-date-picker__day[data-selected]:focus-visible,.aeris-date-picker__day[data-range-start]:hover:not(:disabled),.aeris-date-picker__day[data-range-start]:focus-visible,.aeris-date-picker__day[data-range-end]:hover:not(:disabled),.aeris-date-picker__day[data-range-end]:focus-visible{background:var(--aeris-date-picker-selected-hover-background, var(--aeris-primary-hover, var(--aeris-primary, #606c38)));color:var(--aeris-date-picker-selected-hover-text, var(--aeris-on-primary-hover, var(--aeris-on-primary, #ffffff)))}.aeris-date-picker__day[data-today]:not([data-selected]):after{position:absolute;bottom:.1875rem;width:.25rem;height:.25rem;border-radius:50%;background:var(--aeris-primary, #606c38);content:\"\"}.aeris-date-picker__day:disabled{opacity:var(--aeris-disabled-opacity, .38);cursor:not-allowed}.aeris-date-picker__choice-grid{min-width:15rem;display:grid;grid-template-columns:repeat(3,minmax(4rem,1fr));gap:.25rem}.aeris-date-picker__choice-grid button{min-height:2.75rem;padding:.5rem;font-size:.8125rem}.aeris-date-picker__choice-grid button[data-selected]{background:var(--aeris-date-picker-selected-background, var(--aeris-primary, #606c38));color:var(--aeris-date-picker-selected-text, var(--aeris-on-primary, #ffffff));font-weight:700}.aeris-date-picker__choice-grid button[data-selected]:hover:not(:disabled),.aeris-date-picker__choice-grid button[data-selected]:focus-visible{background:var(--aeris-date-picker-selected-hover-background, var(--aeris-primary-hover, var(--aeris-primary, #606c38)));color:var(--aeris-date-picker-selected-hover-text, var(--aeris-on-primary-hover, var(--aeris-on-primary, #ffffff)))}.aeris-date-picker__time{min-width:15rem;display:flex;align-items:end;gap:.375rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--aeris-border, #deddd7)}.aeris-date-picker__time[data-time-only]{margin-top:0;padding-top:0;border-top:0}.aeris-date-picker__time-field{min-width:0;flex:1 1 0;display:grid;gap:.3125rem;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:700}.aeris-date-picker__time-field--period{flex-basis:4.25rem}.aeris-date-picker__time-field input,.aeris-date-picker__time-field select{width:100%;min-height:2.25rem;padding:0 .5rem;border:1px solid var(--aeris-date-picker-border, var(--aeris-border-strong, #c7c9c0));border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-date-picker-background, var(--aeris-surface, #fff));color:var(--aeris-text, #222222);font:inherit;font-size:.8125rem}.aeris-date-picker__time-field input{text-align:center}.aeris-date-picker__time-field input:focus-visible,.aeris-date-picker__time-field select:focus-visible{outline:2px solid var(--aeris-focus, #3b452a);outline-offset:1px;border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b452a))}.aeris-date-picker__time-field input:disabled,.aeris-date-picker__time-field select:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__time-separator{min-height:2.25rem;display:grid;place-items:center;color:var(--aeris-text-2, #555555);font-size:1rem;font-weight:800}.aeris-date-picker__footer{display:flex;justify-content:space-between;gap:.75rem;margin-top:.625rem;padding-top:.625rem;border-top:1px solid var(--aeris-border, #deddd7)}.aeris-date-picker__footer button{min-height:2rem;padding:.375rem .625rem;color:var(--aeris-primary-text, #606c38);font-size:.8125rem;font-weight:700}@media(max-width:50rem){.aeris-date-picker__panel{width:min(100%,100vw - 2rem);overflow-x:auto}.aeris-date-picker__months{grid-template-columns:minmax(14rem,1fr)}}@media(prefers-reduced-motion:reduce){.aeris-date-picker__trigger{transition:none}}\n"] }]
1464
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", 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 }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", 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 }] }], calendarAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "calendarAriaLabel", required: false }] }], timeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeAriaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], dateStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateStyle", required: false }] }], hourCycle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourCycle", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], secondStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondStep", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDays", required: false }] }], dateDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateDisabled", required: false }] }], numberOfMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfMonths", required: false }] }], showOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOtherMonths", required: false }] }], selectOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOtherMonths", required: false }] }], showWeekNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeekNumbers", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", 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 }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], todayLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "todayLabel", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], hourLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourLabel", required: false }] }], minuteLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteLabel", required: false }] }], secondLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondLabel", required: false }] }], periodLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "periodLabel", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], previousButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousButtonAriaLabel", required: false }] }], nextButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextButtonAriaLabel", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], changed: [{ type: i0.Output, args: ["changed"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], monthChanged: [{ type: i0.Output, args: ["monthChanged"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], hourInput: [{ type: i0.ViewChild, args: ['hourInput', { isSignal: true }] }], dayButtons: [{ type: i0.ViewChildren, args: ['dayButton', { isSignal: true }] }], choiceButtons: [{ type: i0.ViewChildren, args: ['choiceButton', { isSignal: true }] }] } });
1475
+ }, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;min-width:13rem;max-width:100%;color:var(--aeris-date-picker-text, var(--aeris-text, #222222));font:inherit}:host([data-fluid]),:host([data-inline]){width:100%}.aeris-date-picker{--aeris-date-picker-height: var(--aeris-control-height, 2.625rem);--aeris-date-picker-font-size: .875rem;--aeris-date-picker-padding: .75rem;position:relative;width:100%}.aeris-date-picker[data-size=xs]{--aeris-date-picker-height: 1.875rem;--aeris-date-picker-font-size: .75rem;--aeris-date-picker-padding: .5625rem}.aeris-date-picker[data-size=sm]{--aeris-date-picker-height: 2.25rem;--aeris-date-picker-font-size: .8125rem;--aeris-date-picker-padding: .6875rem}.aeris-date-picker[data-size=lg]{--aeris-date-picker-height: 3rem;--aeris-date-picker-font-size: .9375rem;--aeris-date-picker-padding: .875rem}.aeris-date-picker__control{position:relative}.aeris-date-picker__trigger{width:100%;min-height:var(--aeris-date-picker-height);display:flex;align-items:center;padding:0 3rem 0 var(--aeris-date-picker-padding);border:1px solid var(--aeris-date-picker-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-date-picker-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:var(--aeris-date-picker-background, var(--aeris-surface, #fff));color:inherit;font:inherit;font-size:var(--aeris-date-picker-font-size);text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.aeris-date-picker__control:has(.aeris-date-picker__clear) .aeris-date-picker__trigger{padding-right:4.625rem}.aeris-date-picker[data-appearance=filled] .aeris-date-picker__trigger{border-color:transparent;background:var(--aeris-date-picker-filled-background, var(--aeris-surface-2, #f2f0ec))}.aeris-date-picker__trigger:hover,.aeris-date-picker[data-open] .aeris-date-picker__trigger{border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b4729))}.aeris-date-picker__trigger:focus-visible{outline:0;border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b4729));box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #3b4729) 22%,transparent)}.aeris-date-picker[data-invalid] .aeris-date-picker__trigger{border-color:var(--aeris-danger, #c81e2a)}.aeris-date-picker[data-disabled] .aeris-date-picker__trigger{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-date-picker__placeholder{color:var(--aeris-date-picker-placeholder, var(--aeris-text-2, #555555))}.aeris-date-picker__clear{position:absolute;z-index:2;top:50%;right:2.25rem;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);transform:translateY(-50%);cursor:pointer}.aeris-date-picker__clear:hover,.aeris-date-picker__clear:focus-visible{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-date-picker__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.aeris-date-picker__clear span{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}.aeris-date-picker__calendar-icon{position:absolute;top:50%;right:var(--aeris-date-picker-padding);width:1rem;height:1rem;border:1.5px solid currentColor;border-radius:.1875rem;color:var(--aeris-text-2, #555555);transform:translateY(-50%);pointer-events:none}.aeris-date-picker__calendar-icon:before{position:absolute;inset:.1875rem -.09375rem auto;height:1.5px;background:currentColor;content:\"\"}.aeris-date-picker__calendar-icon:after{position:absolute;top:-.25rem;left:.1875rem;width:.5rem;height:.25rem;border-right:1.5px solid currentColor;border-left:1.5px solid currentColor;content:\"\"}.aeris-date-picker__calendar-icon span{position:absolute;right:.1875rem;bottom:.1875rem;width:.1875rem;height:.1875rem;border-radius:50%;background:currentColor;box-shadow:-.3125rem 0 currentColor}.aeris-date-picker__chevron{position:absolute;top:50%;right:var(--aeris-date-picker-padding);width:1rem;height:1rem;color:var(--aeris-text-2, #555555);transform:translateY(-50%);pointer-events:none}.aeris-date-picker__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-date-picker__dismiss{position:fixed;z-index:89;inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;background:transparent;cursor:default}.aeris-date-picker__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);left:0;width:max-content;max-width:calc(100vw - 2rem);padding:.75rem;border:1px solid var(--aeris-date-picker-panel-border, var(--aeris-border));border-radius:var(--aeris-date-picker-panel-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-date-picker-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-date-picker-panel-shadow, 0 1rem 2.5rem rgba(31, 35, 27, .16));scrollbar-color:var(--aeris-border, #deddd7) transparent;scrollbar-width:thin}.aeris-date-picker__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-date-picker__panel::-webkit-scrollbar-track,.aeris-date-picker__panel::-webkit-scrollbar-corner{background:transparent}.aeris-date-picker__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #deddd7);background-clip:content-box}.aeris-date-picker[data-inline] .aeris-date-picker__panel{position:relative;z-index:auto;top:auto;width:100%;box-shadow:none}.aeris-date-picker__header{min-height:2.25rem;display:grid;grid-template-columns:2.25rem 1fr 2.25rem;align-items:center;gap:.375rem;margin-bottom:.625rem}.aeris-date-picker__heading{display:flex;align-items:center;justify-content:center;gap:.25rem;color:var(--aeris-text, #222222);font-size:.875rem;font-weight:700}.aeris-date-picker__heading button,.aeris-date-picker__nav,.aeris-date-picker__footer button,.aeris-date-picker__choice-grid button{border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;font:inherit;cursor:pointer}.aeris-date-picker__heading button{padding:.35rem .4rem;font-weight:700}.aeris-date-picker__heading button:hover,.aeris-date-picker__nav:hover:not(:disabled),.aeris-date-picker__footer button:hover:not(:disabled),.aeris-date-picker__choice-grid button:hover:not(:disabled){background:var(--aeris-date-picker-hover, color-mix(in srgb, var(--aeris-primary, #5f6f36) 12%, transparent))}.aeris-date-picker__heading button:focus-visible,.aeris-date-picker__nav:focus-visible,.aeris-date-picker__footer button:focus-visible,.aeris-date-picker__choice-grid button:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.aeris-date-picker__nav{width:2.25rem;height:2.25rem;display:grid;place-items:center;padding:0}.aeris-date-picker__nav:disabled,.aeris-date-picker__footer button:disabled,.aeris-date-picker__choice-grid button:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__nav span{position:relative;width:1rem;height:1rem}.aeris-date-picker__nav span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-date-picker__nav--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-date-picker__months{display:grid;grid-template-columns:repeat(var(--aeris-date-picker-month-count),minmax(15rem,1fr));gap:1rem}.aeris-date-picker__month{min-width:0}.aeris-date-picker__month h3{margin:0 0 .5rem;color:var(--aeris-text, #222222);font-size:.8125rem;text-align:center}.aeris-date-picker__weekdays,.aeris-date-picker__week{display:grid;grid-template-columns:repeat(7,minmax(1.75rem,1fr));gap:.125rem}.aeris-date-picker__weekdays:has(.aeris-date-picker__week-label),.aeris-date-picker__week:has(.aeris-date-picker__week-number){grid-template-columns:1.5rem repeat(7,minmax(1.75rem,1fr))}.aeris-date-picker__weekdays span,.aeris-date-picker__week-number{min-height:1.75rem;display:grid;place-items:center;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:650}.aeris-date-picker__day{position:relative;min-width:2rem;min-height:2rem;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, #222222);font:inherit;font-size:.8125rem;cursor:pointer}.aeris-date-picker__day:hover:not(:disabled),.aeris-date-picker__day:focus-visible{background:var(--aeris-date-picker-hover, color-mix(in srgb, var(--aeris-primary, #5f6f36) 12%, transparent))}.aeris-date-picker__day:focus-visible{z-index:1;outline:2px solid var(--aeris-focus, #3b4729);outline-offset:0}.aeris-date-picker__day[data-other-month]{color:var(--aeris-text-2, #555555);opacity:.58}.aeris-date-picker__day[data-in-range]{border-radius:0;background:color-mix(in srgb,var(--aeris-date-picker-selected-background, var(--aeris-primary, #5f6f36)) 16%,transparent)}.aeris-date-picker__day[data-selected],.aeris-date-picker__day[data-range-start],.aeris-date-picker__day[data-range-end]{border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-date-picker-selected-background, var(--aeris-primary, #5f6f36));color:var(--aeris-date-picker-selected-text, var(--aeris-on-primary, #ffffff));font-weight:700}.aeris-date-picker__day[data-selected]:hover:not(:disabled),.aeris-date-picker__day[data-selected]:focus-visible,.aeris-date-picker__day[data-range-start]:hover:not(:disabled),.aeris-date-picker__day[data-range-start]:focus-visible,.aeris-date-picker__day[data-range-end]:hover:not(:disabled),.aeris-date-picker__day[data-range-end]:focus-visible{background:var(--aeris-date-picker-selected-hover-background, var(--aeris-primary-hover, var(--aeris-primary, #5f6f36)));color:var(--aeris-date-picker-selected-hover-text, var(--aeris-on-primary-hover, var(--aeris-on-primary, #ffffff)))}.aeris-date-picker__day[data-today]:not([data-selected]):after{position:absolute;bottom:.1875rem;width:.25rem;height:.25rem;border-radius:50%;background:var(--aeris-primary, #5f6f36);content:\"\"}.aeris-date-picker__day:disabled{opacity:var(--aeris-disabled-opacity, .38);cursor:not-allowed}.aeris-date-picker__choice-grid{min-width:15rem;display:grid;grid-template-columns:repeat(3,minmax(4rem,1fr));gap:.25rem}.aeris-date-picker__choice-grid button{min-height:2.75rem;padding:.5rem;font-size:.8125rem}.aeris-date-picker__choice-grid button[data-selected]{background:var(--aeris-date-picker-selected-background, var(--aeris-primary, #5f6f36));color:var(--aeris-date-picker-selected-text, var(--aeris-on-primary, #ffffff));font-weight:700}.aeris-date-picker__choice-grid button[data-selected]:hover:not(:disabled),.aeris-date-picker__choice-grid button[data-selected]:focus-visible{background:var(--aeris-date-picker-selected-hover-background, var(--aeris-primary-hover, var(--aeris-primary, #5f6f36)));color:var(--aeris-date-picker-selected-hover-text, var(--aeris-on-primary-hover, var(--aeris-on-primary, #ffffff)))}.aeris-date-picker__time{min-width:15rem;display:flex;align-items:end;gap:.375rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--aeris-border, #deddd7)}.aeris-date-picker__time[data-time-only]{margin-top:0;padding-top:0;border-top:0}.aeris-date-picker__time-field{min-width:0;flex:1 1 0;display:grid;gap:.3125rem;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:700}.aeris-date-picker__time-field--period{flex-basis:4.25rem}.aeris-date-picker__time-field input,.aeris-date-picker__time-field select{width:100%;min-height:2.25rem;padding:0 .5rem;border:1px solid var(--aeris-date-picker-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-date-picker-background, var(--aeris-surface, #fff));color:var(--aeris-text, #222222);font:inherit;font-size:.8125rem}.aeris-date-picker__time-field input{text-align:center}.aeris-date-picker__time-field input:focus-visible,.aeris-date-picker__time-field select:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px;border-color:var(--aeris-date-picker-focus, var(--aeris-focus, #3b4729))}.aeris-date-picker__time-field input:disabled,.aeris-date-picker__time-field select:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-date-picker__time-separator{min-height:2.25rem;display:grid;place-items:center;color:var(--aeris-text-2, #555555);font-size:1rem;font-weight:800}.aeris-date-picker__footer{display:flex;justify-content:space-between;gap:.75rem;margin-top:.625rem;padding-top:.625rem;border-top:1px solid var(--aeris-border, #deddd7)}.aeris-date-picker__footer button{min-height:2rem;padding:.375rem .625rem;color:var(--aeris-primary-text, #5f6f36);font-size:.8125rem;font-weight:700}@media(max-width:50rem){.aeris-date-picker__panel{width:min(100%,100vw - 2rem);overflow-x:auto}.aeris-date-picker__months{grid-template-columns:minmax(14rem,1fr)}}@media(prefers-reduced-motion:reduce){.aeris-date-picker__trigger{transition:none}}\n"] }]
1476
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", 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 }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", 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 }] }], calendarAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "calendarAriaLabel", required: false }] }], timeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeAriaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], dateStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateStyle", required: false }] }], hourCycle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourCycle", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], secondStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondStep", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDays", required: false }] }], dateDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateDisabled", required: false }] }], numberOfMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfMonths", required: false }] }], showOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOtherMonths", required: false }] }], selectOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOtherMonths", required: false }] }], showWeekNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeekNumbers", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", 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 }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], todayLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "todayLabel", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], hourLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourLabel", required: false }] }], minuteLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteLabel", required: false }] }], secondLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondLabel", required: false }] }], periodLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "periodLabel", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], previousButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousButtonAriaLabel", required: false }] }], nextButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextButtonAriaLabel", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], changed: [{ type: i0.Output, args: ["changed"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], monthChanged: [{ type: i0.Output, args: ["monthChanged"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], panelPortal: [{ type: i0.ViewChild, args: [i0.forwardRef(() => _AerisAppendTo), { isSignal: true }] }], hourInput: [{ type: i0.ViewChild, args: ['hourInput', { isSignal: true }] }], dayButtons: [{ type: i0.ViewChildren, args: ['dayButton', { isSignal: true }] }], choiceButtons: [{ type: i0.ViewChildren, args: ['choiceButton', { isSignal: true }] }] } });
1465
1477
 
1466
1478
  /**
1467
1479
  * Generated bundle index. Do not edit.