@aeris-ui/core 22.0.0-alpha.10 → 22.0.0-alpha.12
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.
- package/README.md +35 -3
- package/THIRD_PARTY_LICENSES.md +48 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +34 -32
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
- package/fesm2022/aeris-ui-core-auto-complete.mjs +119 -50
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
- package/fesm2022/aeris-ui-core-avatar.mjs +6 -6
- package/fesm2022/aeris-ui-core-badge.mjs +6 -6
- package/fesm2022/aeris-ui-core-block-ui.mjs +18 -6
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +42 -24
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
- package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button-group.mjs +417 -14
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +191 -19
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +18 -18
- package/fesm2022/aeris-ui-core-carousel.mjs +81 -19
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +165 -46
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +171 -36
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +191 -22
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +702 -27
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
- package/fesm2022/aeris-ui-core-code-block.mjs +57 -7
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-color-picker.mjs +1223 -503
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
- package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-compare.mjs +61 -34
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +68 -38
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +46 -38
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +94 -43
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs +946 -0
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +1186 -650
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +157 -71
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +3 -3
- package/fesm2022/aeris-ui-core-drawer.mjs +751 -77
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +14 -6
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +847 -202
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +204 -68
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +5 -5
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
- package/fesm2022/aeris-ui-core-form-field.mjs +15 -15
- package/fesm2022/aeris-ui-core-galleria.mjs +472 -123
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +3 -3
- package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
- package/fesm2022/aeris-ui-core-inplace.mjs +56 -14
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +17 -17
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +61 -8
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +191 -28
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
- package/fesm2022/aeris-ui-core-input-text.mjs +102 -26
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
- package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
- package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
- package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs +59 -16
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +95 -52
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +103 -34
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +48 -14
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +33 -15
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +283 -65
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
- package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-order-list.mjs +191 -35
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +48 -14
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +300 -61
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +21 -29
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +166 -65
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +528 -56
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +504 -72
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +75 -21
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +24 -6
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +119 -19
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +6 -6
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
- package/fesm2022/aeris-ui-core-scroll-top.mjs +59 -12
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
- package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-select.mjs +206 -87
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
- package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
- package/fesm2022/aeris-ui-core-slider.mjs +3 -3
- package/fesm2022/aeris-ui-core-speed-dial.mjs +34 -13
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +26 -11
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +35 -20
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +23 -17
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
- package/fesm2022/aeris-ui-core-table.mjs +945 -106
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +81 -19
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +89 -28
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +202 -126
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +8 -8
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +94 -43
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +17 -17
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +73 -44
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
- package/fesm2022/aeris-ui-core-toolbar.mjs +916 -44
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
- package/fesm2022/aeris-ui-core-tree-select.mjs +252 -61
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +493 -124
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +165 -27
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +632 -12
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +29 -1
- package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +32 -0
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +8 -9
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +8 -21
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +6 -0
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +64 -91
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +7 -5
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +11 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +81 -10
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_choice-card.scss +93 -0
- package/styles/_icon-artwork.scss +14 -0
- package/styles/_icon-template.scss +42 -0
- package/styles/_selection-icons.scss +12 -0
- package/styles/_table-pinning.scss +119 -0
- package/styles/aeris.css +35 -12
- package/styles/controls.css +149 -11
- package/tools/aeris-theme.mjs +3 -3
- package/tools/aeris-theme.schema.json +13 -11
- package/types/aeris-ui-core-auto-complete.d.ts +12 -0
- package/types/aeris-ui-core-block-ui.d.ts +1 -0
- package/types/aeris-ui-core-button-forms.d.ts +18 -0
- package/types/aeris-ui-core-button-group.d.ts +116 -3
- package/types/aeris-ui-core-button.d.ts +52 -4
- package/types/aeris-ui-core-carousel.d.ts +12 -0
- package/types/aeris-ui-core-cascade-select.d.ts +18 -0
- package/types/aeris-ui-core-chart.d.ts +26 -10
- package/types/aeris-ui-core-checkbox.d.ts +36 -2
- package/types/aeris-ui-core-chip.d.ts +196 -1
- package/types/aeris-ui-core-code-block.d.ts +13 -4
- package/types/aeris-ui-core-color-picker.d.ts +117 -15
- package/types/aeris-ui-core-command-palette.d.ts +267 -0
- package/types/aeris-ui-core-compare.d.ts +6 -0
- package/types/aeris-ui-core-confirm-dialog.d.ts +9 -1
- package/types/aeris-ui-core-context-menu.d.ts +6 -0
- package/types/aeris-ui-core-date-picker.d.ts +90 -20
- package/types/aeris-ui-core-dialog.d.ts +15 -2
- package/types/aeris-ui-core-drawer.d.ts +105 -4
- package/types/aeris-ui-core-dynamic-dialog.d.ts +6 -2
- package/types/aeris-ui-core-editor.d.ts +8 -1
- package/types/aeris-ui-core-file-upload.d.ts +18 -0
- package/types/aeris-ui-core-galleria.d.ts +48 -0
- package/types/aeris-ui-core-inplace.d.ts +6 -0
- package/types/aeris-ui-core-input-mask.d.ts +8 -1
- package/types/aeris-ui-core-input-number.d.ts +20 -1
- package/types/aeris-ui-core-input-text.d.ts +11 -1
- package/types/aeris-ui-core-kbd.d.ts +74 -0
- package/types/aeris-ui-core-listbox.d.ts +222 -0
- package/types/aeris-ui-core-mega-menu.d.ts +6 -0
- package/types/aeris-ui-core-menu.d.ts +6 -0
- package/types/aeris-ui-core-menubar.d.ts +16 -0
- package/types/aeris-ui-core-message.d.ts +6 -0
- package/types/aeris-ui-core-meter-group.d.ts +6 -0
- package/types/aeris-ui-core-multi-select.d.ts +30 -0
- package/types/aeris-ui-core-navbar.d.ts +208 -0
- package/types/aeris-ui-core-order-list.d.ts +24 -0
- package/types/aeris-ui-core-organization-chart.d.ts +6 -0
- package/types/aeris-ui-core-paginator.d.ts +37 -1
- package/types/aeris-ui-core-password.d.ts +18 -0
- package/types/aeris-ui-core-pick-list.d.ts +54 -0
- package/types/aeris-ui-core-popover.d.ts +80 -5
- package/types/aeris-ui-core-progress-bar.d.ts +6 -0
- package/types/aeris-ui-core-progress-spinner.d.ts +6 -0
- package/types/aeris-ui-core-radio-button.d.ts +24 -2
- package/types/aeris-ui-core-rating.d.ts +1 -1
- package/types/aeris-ui-core-scroll-top.d.ts +7 -0
- package/types/aeris-ui-core-select-native.d.ts +40 -0
- package/types/aeris-ui-core-select.d.ts +12 -0
- package/types/aeris-ui-core-sidebar.d.ts +220 -0
- package/types/aeris-ui-core-splitter.d.ts +3 -4
- package/types/aeris-ui-core-table.d.ts +144 -11
- package/types/aeris-ui-core-tabs.d.ts +12 -0
- package/types/aeris-ui-core-textarea.d.ts +11 -1
- package/types/aeris-ui-core-theme-builder.d.ts +31 -296
- package/types/aeris-ui-core-tiered-menu.d.ts +6 -0
- package/types/aeris-ui-core-toast.d.ts +8 -2
- package/types/aeris-ui-core-toolbar.d.ts +213 -3
- package/types/aeris-ui-core-tree-select.d.ts +30 -0
- package/types/aeris-ui-core-tree-table.d.ts +75 -14
- package/types/aeris-ui-core-tree.d.ts +24 -0
- package/types/aeris-ui-core.d.ts +140 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeris-ui-core-menubar.mjs","names":[],"sources":["../../../projects/aeris-ui/menubar/aeris-menubar.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 viewChildren,\n} from '@angular/core';\nimport {\n aerisInternalCreateFrameScheduler,\n ɵregisterAerisOverlay,\n ɵunregisterAerisOverlay,\n} from '@aeris-ui/core';\nimport type { AerisButtonSeverity, AerisButtonVariant } from '@aeris-ui/core/button';\n\nexport type AerisMenubarSize = 'sm' | 'md' | 'lg';\nexport type AerisMenubarCloseReason = 'api' | 'escape' | 'outside' | 'select' | 'mouseleave';\nexport type AerisMenubarItemVariant = 'default' | AerisButtonVariant;\nexport type AerisMenubarAriaCurrent = 'page' | 'step' | 'location' | 'date' | 'time' | true | false;\n\nexport interface AerisMenubarItem<T = unknown> {\n readonly id?: string;\n readonly label?: string;\n readonly description?: string;\n readonly ariaLabel?: string;\n readonly icon?: string;\n readonly badge?: string | number;\n readonly shortcut?: string;\n readonly variant?: AerisButtonVariant;\n readonly severity?: AerisButtonSeverity;\n readonly active?: boolean;\n readonly ariaCurrent?: AerisMenubarAriaCurrent;\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 AerisMenubarItem<T>[];\n readonly data?: T;\n readonly command?: (event: AerisMenubarItemEvent<T>) => void;\n}\n\nexport interface AerisMenubarItemEvent<T = unknown> {\n readonly originalEvent: MouseEvent | KeyboardEvent;\n readonly item: AerisMenubarItem<T>;\n readonly path: readonly number[];\n}\n\nexport interface AerisMenubarVisibilityEvent<T = unknown> {\n readonly originalEvent: Event | null;\n readonly visible: boolean;\n readonly reason: AerisMenubarCloseReason;\n readonly item: AerisMenubarItem<T> | null;\n readonly path: readonly number[];\n}\n\nexport interface AerisMenubarItemTemplateContext<T = unknown> {\n readonly $implicit: AerisMenubarItem<T>;\n readonly item: AerisMenubarItem<T>;\n readonly path: readonly number[];\n readonly level: number;\n readonly root: boolean;\n readonly active: boolean;\n readonly current: boolean;\n readonly open: boolean;\n readonly disabled: boolean;\n readonly hasSubmenu: boolean;\n readonly variant: AerisMenubarItemVariant;\n readonly severity: AerisButtonSeverity;\n}\n\nexport type AerisMenubarNavigationHandler = (\n link: string | readonly (string | number)[],\n event: MouseEvent | KeyboardEvent,\n) => void;\n\ninterface AerisMenubarEntry<T> {\n readonly item: AerisMenubarItem<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 current: boolean;\n readonly open: boolean;\n readonly variant: AerisMenubarItemVariant;\n readonly severity: AerisButtonSeverity;\n readonly ariaCurrent: Exclude<AerisMenubarAriaCurrent, true | false> | null;\n readonly children: readonly AerisMenubarEntry<T>[];\n}\n\n@Directive({ selector: 'ng-template[aerisMenubarItem]' })\nexport class AerisMenubarItemTemplate<T = unknown> {\n readonly template = inject<TemplateRef<AerisMenubarItemTemplateContext<T>>>(TemplateRef);\n\n static ngTemplateContextGuard<T>(\n _directive: AerisMenubarItemTemplate<T>,\n context: unknown,\n ): context is AerisMenubarItemTemplateContext<T> {\n return true;\n }\n}\n\n@Directive({ selector: 'ng-template[aerisMenubarStart]' })\nexport class AerisMenubarStartTemplate {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisMenubarEnd]' })\nexport class AerisMenubarEndTemplate {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\nlet nextMenubarId = 0;\n\n@Component({\n selector: 'aeris-menubar',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #defaultItemTemplate let-item let-root=\"root\" let-hasSubmenu=\"hasSubmenu\">\n @if (item.icon) {\n <span class=\"aeris-menubar__icon\" aria-hidden=\"true\">{{ item.icon }}</span>\n }\n <span class=\"aeris-menubar__copy\">\n <span class=\"aeris-menubar__label\">{{ item.label }}</span>\n @if (item.description) {\n <span class=\"aeris-menubar__description\">{{ item.description }}</span>\n }\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"aeris-menubar__badge\">{{ item.badge }}</span>\n }\n @if (item.shortcut) {\n <kbd class=\"aeris-menubar__shortcut\">{{ item.shortcut }}</kbd>\n }\n @if (hasSubmenu) {\n <svg\n class=\"aeris-menubar__chevron\"\n [attr.data-root]=\"root || null\"\n viewBox=\"0 0 20 20\"\n aria-hidden=\"true\"\n >\n <path [attr.d]=\"root ? 'm6 8 4 4 4-4' : 'm7.5 4.5 5 5.5-5 5.5'\" />\n </svg>\n }\n </ng-template>\n\n <ng-template #menuList let-entries let-level=\"level\">\n <ul\n [class]=\"level === 0 ? 'aeris-menubar__root' : 'aeris-menubar__submenu-list'\"\n [attr.role]=\"level === 0 ? 'menubar' : 'menu'\"\n [attr.aria-orientation]=\"level === 0 ? 'horizontal' : 'vertical'\"\n [attr.aria-label]=\"level === 0 ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"level === 0 ? ariaLabelledBy() || null : null\"\n [attr.data-level]=\"level\"\n >\n @for (entry of entries; track entry.id) {\n @if (entry.separator) {\n <li class=\"aeris-menubar__separator\" role=\"separator\"></li>\n } @else {\n <li\n class=\"aeris-menubar__item-shell\"\n role=\"none\"\n [attr.data-root]=\"entry.level === 0 || null\"\n [attr.data-open]=\"entry.open || null\"\n [attr.data-active]=\"entry.active || null\"\n [attr.data-current]=\"entry.current || null\"\n [attr.data-disabled]=\"entry.disabled || null\"\n >\n @if (entry.href) {\n <a\n #menuItem\n class=\"aeris-menubar__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.aria-current]=\"entry.ariaCurrent\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-menubar-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n [attr.data-variant]=\"entry.variant\"\n [attr.data-severity]=\"entry.severity\"\n [attr.data-current]=\"entry.current || null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handlePointerEnter(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-menubar__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.aria-current]=\"entry.ariaCurrent\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-menubar-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n [attr.data-variant]=\"entry.variant\"\n [attr.data-severity]=\"entry.severity\"\n [attr.data-current]=\"entry.current || null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handlePointerEnter(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 #submenu\n class=\"aeris-menubar__submenu\"\n [id]=\"entry.id + '-submenu'\"\n [attr.data-level]=\"entry.level + 1\"\n animate.enter=\"aeris-overlay-enter\"\n animate.leave=\"aeris-overlay-leave\"\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 <nav\n class=\"aeris-menubar__nav\"\n [attr.aria-label]=\"navAriaLabel() || null\"\n [attr.aria-labelledby]=\"navAriaLabelledBy() || null\"\n (mouseleave)=\"handleNavMouseLeave($event)\"\n >\n <div class=\"aeris-menubar__surface\">\n @if (startTemplate()) {\n <div class=\"aeris-menubar__slot aeris-menubar__slot--start\">\n <ng-container [ngTemplateOutlet]=\"startTemplate()?.template ?? null\" />\n </div>\n }\n\n @if (collapsible()) {\n <button\n type=\"button\"\n class=\"aeris-menubar__toggle\"\n [attr.aria-label]=\"toggleAriaLabel()\"\n [attr.aria-expanded]=\"mobileOpen()\"\n [attr.aria-controls]=\"id() + '-menu'\"\n (click)=\"toggleMobile()\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n\n <div class=\"aeris-menubar__menu\" [id]=\"id() + '-menu'\">\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{ $implicit: entries(), level: 0 }\"\n />\n </div>\n\n @if (endTemplate()) {\n <div class=\"aeris-menubar__slot aeris-menubar__slot--end\">\n <ng-container [ngTemplateOutlet]=\"endTemplate()?.template ?? null\" />\n </div>\n }\n </div>\n </nav>\n `,\n styleUrl: './aeris-menubar.scss',\n host: {\n class: 'aeris-menubar',\n '[attr.data-size]': 'size()',\n '[attr.data-collapsible]': 'collapsible() || null',\n '[attr.data-mobile-open]': 'mobileOpen() || null',\n },\n})\nexport class AerisMenubar<T = unknown> {\n private readonly submenuPositionFrame = aerisInternalCreateFrameScheduler(() =>\n this.positionSubmenus(),\n );\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n private readonly generatedId = `aeris-menubar-${++nextMenubarId}`;\n\n protected readonly itemTemplate = contentChild(AerisMenubarItemTemplate<T>, {\n descendants: false,\n });\n protected readonly startTemplate = contentChild(AerisMenubarStartTemplate, {\n descendants: false,\n });\n protected readonly endTemplate = contentChild(AerisMenubarEndTemplate, { descendants: false });\n protected readonly menuItems = viewChildren<ElementRef<HTMLElement>>('menuItem');\n protected readonly submenus = viewChildren<ElementRef<HTMLElement>>('submenu');\n protected readonly activePathKey = signal('0');\n\n readonly id = input(this.generatedId);\n readonly model = input<readonly AerisMenubarItem<T>[]>([]);\n readonly openPath = model('');\n readonly mobileOpen = model(false);\n readonly size = input<AerisMenubarSize>('md');\n readonly rootItemVariant = input<AerisMenubarItemVariant>('default');\n readonly submenuItemVariant = input<AerisMenubarItemVariant>('default');\n readonly rootItemSeverity = input<AerisButtonSeverity>('primary');\n readonly submenuItemSeverity = input<AerisButtonSeverity>('primary');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly openOnHover = input(true, { transform: booleanAttribute });\n readonly closeOnMouseLeave = input(true, { transform: booleanAttribute });\n readonly closeOnSelect = input(true, { transform: booleanAttribute });\n readonly closeOnOutsideClick = input(true, { transform: booleanAttribute });\n readonly closeOnEscape = input(true, { transform: booleanAttribute });\n readonly collapsible = input(true, { transform: booleanAttribute });\n readonly ariaLabel = input('Menubar');\n readonly ariaLabelledBy = input('');\n readonly navAriaLabel = input('');\n readonly navAriaLabelledBy = input('');\n readonly toggleAriaLabel = input('Toggle navigation menu');\n readonly navigationHandler = input<AerisMenubarNavigationHandler>();\n\n readonly opened = output<AerisMenubarVisibilityEvent<T>>();\n readonly closed = output<AerisMenubarVisibilityEvent<T>>();\n readonly itemSelected = output<AerisMenubarItemEvent<T>>();\n\n protected readonly entries = computed(() =>\n this.buildEntries(this.model(), [], 0, this.activePathKey(), this.openPath()),\n );\n\n constructor() {\n effect((onCleanup) => {\n if (!this.openPath() && !this.mobileOpen()) return;\n const document = this.host.nativeElement.ownerDocument;\n ɵregisterAerisOverlay(document, this.host.nativeElement, () => {\n if (!this.closeOnEscape()) return false;\n this.close();\n this.mobileOpen.set(false);\n this.focus();\n return true;\n });\n const pointerdown = (event: PointerEvent) => this.handleDocumentPointerdown(event);\n const keydown = (event: KeyboardEvent) => this.handleDocumentKeydown(event);\n document.addEventListener('pointerdown', pointerdown);\n document.addEventListener('keydown', keydown);\n onCleanup(() => {\n ɵunregisterAerisOverlay(document, this.host.nativeElement);\n document.removeEventListener('pointerdown', pointerdown);\n document.removeEventListener('keydown', keydown);\n });\n });\n\n effect((onCleanup) => {\n if (!this.openPath()) return;\n const document = this.host.nativeElement.ownerDocument;\n const view = document.defaultView;\n const viewport = view?.visualViewport;\n const reposition = this.submenuPositionFrame.schedule;\n afterNextRender(reposition, { injector: this.injector });\n document.addEventListener('scroll', reposition, true);\n view?.addEventListener('resize', reposition);\n viewport?.addEventListener('resize', reposition);\n viewport?.addEventListener('scroll', reposition);\n onCleanup(() => {\n document.removeEventListener('scroll', reposition, true);\n view?.removeEventListener('resize', reposition);\n viewport?.removeEventListener('resize', reposition);\n viewport?.removeEventListener('scroll', reposition);\n this.submenuPositionFrame.cancel();\n });\n });\n }\n\n open(path: string | readonly number[], originalEvent: Event | null = null): void {\n const key = typeof path === 'string' ? path : this.pathKey(path);\n const entry = this.findEntry(key);\n if (!entry || entry.disabled || !entry.children.length) return;\n this.openPath.set(key);\n this.opened.emit(this.visibilityEvent(true, 'api', originalEvent, entry));\n }\n\n close(originalEvent: Event | null = null, reason: AerisMenubarCloseReason = 'api'): void {\n const entry = this.findEntry(this.openPath());\n this.openPath.set('');\n this.closed.emit(this.visibilityEvent(false, reason, originalEvent, entry));\n }\n\n focus(): void {\n this.focusEntry(this.findEntry(this.activePathKey()) ?? this.firstEnabledEntry(this.entries()));\n }\n\n protected toggleMobile(): void {\n this.mobileOpen.update((open) => !open);\n }\n\n protected setActivePath(path: readonly number[]): void {\n this.activePathKey.set(this.pathKey(path));\n }\n\n protected handlePointerEnter(entry: AerisMenubarEntry<T>): void {\n if (!this.openOnHover() || this.disabled() || entry.disabled || entry.separator) return;\n this.activePathKey.set(entry.pathKey);\n if (entry.children.length) {\n this.openPath.set(entry.pathKey);\n } else if (entry.level > 0) {\n this.openPath.set(entry.parentPathKey);\n }\n }\n\n protected handleNavMouseLeave(event: MouseEvent): void {\n if (this.closeOnMouseLeave() && this.openPath()) this.close(event, 'mouseleave');\n }\n\n protected activateEntry(event: MouseEvent | KeyboardEvent, entry: AerisMenubarEntry<T>): void {\n if (this.disabled() || entry.disabled || entry.separator) {\n event.preventDefault();\n return;\n }\n\n if (entry.children.length) {\n event.preventDefault();\n const next = entry.open ? entry.parentPathKey : entry.pathKey;\n this.openPath.set(next);\n if (!entry.open) this.opened.emit(this.visibilityEvent(true, 'api', event, entry));\n return;\n }\n\n const itemEvent = {\n originalEvent: event,\n item: entry.item,\n path: entry.path,\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 if (this.closeOnSelect()) {\n this.mobileOpen.set(false);\n this.close(event, 'select');\n }\n }\n\n protected handleItemKeydown(event: KeyboardEvent, entry: AerisMenubarEntry<T>): void {\n switch (event.key) {\n case 'ArrowRight':\n event.preventDefault();\n if (entry.level === 0) {\n this.focusRootSibling(entry, 1);\n } else if (entry.children.length) {\n this.openPath.set(entry.pathKey);\n this.focusFirstChild(entry);\n }\n break;\n case 'ArrowLeft':\n event.preventDefault();\n if (entry.level === 0) {\n this.focusRootSibling(entry, -1);\n } else {\n this.closeSubmenu(entry);\n }\n break;\n case 'ArrowDown':\n event.preventDefault();\n if (entry.level === 0 && entry.children.length) {\n this.openPath.set(entry.pathKey);\n this.focusFirstChild(entry);\n } else {\n this.focusSibling(entry, 1);\n }\n break;\n case 'ArrowUp':\n event.preventDefault();\n if (entry.level === 0 && entry.children.length) {\n this.openPath.set(entry.pathKey);\n this.focusLastChild(entry);\n } else {\n this.focusSibling(entry, -1);\n }\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 'Enter':\n case ' ':\n event.preventDefault();\n this.activateEntry(event, entry);\n if (entry.children.length) this.focusFirstChild(entry);\n break;\n case 'Escape':\n if (!this.closeOnEscape()) return;\n event.preventDefault();\n if (entry.level > 0) {\n const root = this.rootEntryFor(entry);\n this.close(event, 'escape');\n this.focusEntry(root);\n } else {\n this.close(event, 'escape');\n }\n break;\n case 'Tab':\n this.close(event, 'outside');\n break;\n }\n }\n\n protected handleDocumentPointerdown(event: PointerEvent): void {\n if (!this.closeOnOutsideClick() || (!this.openPath() && !this.mobileOpen())) return;\n const target = event.target;\n if (target instanceof Node && this.host.nativeElement.contains(target)) return;\n this.mobileOpen.set(false);\n this.close(event, 'outside');\n }\n\n protected handleDocumentKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || !this.closeOnEscape()) return;\n if (!this.openPath() && !this.mobileOpen()) return;\n this.mobileOpen.set(false);\n this.close(event, 'escape');\n }\n\n protected itemContext(entry: AerisMenubarEntry<T>): AerisMenubarItemTemplateContext<T> {\n return {\n $implicit: entry.item,\n item: entry.item,\n path: entry.path,\n level: entry.level,\n root: entry.level === 0,\n active: entry.active,\n current: entry.current,\n open: entry.open,\n disabled: entry.disabled,\n hasSubmenu: entry.children.length > 0,\n variant: entry.variant,\n severity: entry.severity,\n };\n }\n\n private buildEntries(\n items: readonly AerisMenubarItem<T>[],\n parentPath: readonly number[],\n level: number,\n activePathKey: string,\n openPathKey: string,\n ): readonly AerisMenubarEntry<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 children = this.buildEntries(\n item.items ?? [],\n path,\n level + 1,\n activePathKey,\n openPathKey,\n );\n const ariaCurrent = this.resolveAriaCurrent(item);\n return {\n item,\n index,\n id: item.id ?? `${this.id()}-item-${key.replace(/\\./g, '-')}`,\n path,\n pathKey: key,\n parentPathKey: this.pathKey(parentPath),\n level,\n href: this.resolveHref(item),\n separator: !!item.separator,\n disabled: !!item.disabled,\n active: activePathKey === key,\n current: !!item.active || ariaCurrent !== null,\n open: openPathKey === key || openPathKey.startsWith(`${key}.`),\n variant:\n item.variant ?? (level === 0 ? this.rootItemVariant() : this.submenuItemVariant()),\n severity:\n item.severity ?? (level === 0 ? this.rootItemSeverity() : this.submenuItemSeverity()),\n ariaCurrent,\n children,\n };\n });\n }\n\n private focusRootSibling(entry: AerisMenubarEntry<T>, step: 1 | -1): void {\n const roots = this.enabledEntriesForParent('');\n const current = roots.findIndex((item) => item.pathKey === entry.pathKey);\n this.focusEntry(roots[(current + step + roots.length) % roots.length]);\n }\n\n private focusSibling(entry: AerisMenubarEntry<T>, step: 1 | -1): void {\n const siblings = this.enabledEntriesForParent(entry.parentPathKey);\n const current = siblings.findIndex((item) => item.pathKey === entry.pathKey);\n this.focusEntry(siblings[(current + step + siblings.length) % siblings.length]);\n }\n\n private focusEdge(entry: AerisMenubarEntry<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: AerisMenubarEntry<T>): void {\n afterNextRender(() => this.focusEntry(this.firstEnabledEntry(entry.children)), {\n injector: this.injector,\n });\n }\n\n private focusLastChild(entry: AerisMenubarEntry<T>): void {\n afterNextRender(() => this.focusEntry(this.lastEnabledEntry(entry.children)), {\n injector: this.injector,\n });\n }\n\n private closeSubmenu(entry: AerisMenubarEntry<T>): void {\n const parent = this.findEntry(entry.parentPathKey);\n this.openPath.set(parent?.parentPathKey ?? '');\n this.focusEntry(parent);\n }\n\n private focusEntry(entry: AerisMenubarEntry<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-menubar-path') === entry.pathKey,\n )\n ?.nativeElement.focus();\n });\n }\n\n private rootEntryFor(entry: AerisMenubarEntry<T>): AerisMenubarEntry<T> | undefined {\n return this.findEntry(String(entry.path[0] ?? '0'));\n }\n\n private enabledEntriesForParent(parentPathKey: string): readonly AerisMenubarEntry<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 AerisMenubarEntry<T>[],\n ): AerisMenubarEntry<T> | undefined {\n return entries.find((entry) => !entry.separator && !entry.disabled);\n }\n\n private lastEnabledEntry(\n entries: readonly AerisMenubarEntry<T>[],\n ): AerisMenubarEntry<T> | undefined {\n return entries.filter((entry) => !entry.separator && !entry.disabled).at(-1);\n }\n\n private findEntry(pathKey: string): AerisMenubarEntry<T> | undefined {\n return this.flattenEntries(this.entries()).find((entry) => entry.pathKey === pathKey);\n }\n\n private flattenEntries(\n entries: readonly AerisMenubarEntry<T>[],\n ): readonly AerisMenubarEntry<T>[] {\n return entries.flatMap((entry) => [entry, ...this.flattenEntries(entry.children)]);\n }\n\n private visibilityEvent(\n visible: boolean,\n reason: AerisMenubarCloseReason,\n originalEvent: Event | null,\n entry: AerisMenubarEntry<T> | undefined,\n ): AerisMenubarVisibilityEvent<T> {\n return {\n originalEvent,\n visible,\n reason,\n item: entry?.item ?? null,\n path: entry?.path ?? [],\n };\n }\n\n private resolveHref(item: AerisMenubarItem<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 resolveAriaCurrent(\n item: AerisMenubarItem<T>,\n ): Exclude<AerisMenubarAriaCurrent, true | false> | null {\n if (item.ariaCurrent === false) return null;\n if (item.ariaCurrent === true) return 'page';\n return item.ariaCurrent ?? (item.active ? 'page' : null);\n }\n\n private pathKey(path: readonly number[]): string {\n return path.join('.');\n }\n\n private positionSubmenus(): void {\n const document = this.host.nativeElement.ownerDocument;\n const view = document.defaultView;\n if (!view) return;\n const viewport = view.visualViewport;\n const left = (viewport?.offsetLeft ?? 0) + 8;\n const top = (viewport?.offsetTop ?? 0) + 8;\n const right = (viewport?.offsetLeft ?? 0) + (viewport?.width ?? view.innerWidth) - 8;\n const bottom = (viewport?.offsetTop ?? 0) + (viewport?.height ?? view.innerHeight) - 8;\n\n for (const { nativeElement: submenu } of this.submenus()) {\n submenu.style.removeProperty('inset-inline-end');\n submenu.style.removeProperty('inset-block-end');\n submenu.style.removeProperty('translate');\n submenu.removeAttribute('data-flipped-inline');\n submenu.removeAttribute('data-flipped-block');\n\n const level = Number(submenu.dataset['level'] ?? 1);\n let rect = submenu.getBoundingClientRect();\n if (rect.right > right && level > 1) {\n submenu.style.insetInlineStart = 'auto';\n submenu.style.insetInlineEnd = 'calc(100% + var(--aeris-menubar-submenu-offset, 0.45rem))';\n submenu.setAttribute('data-flipped-inline', 'true');\n rect = submenu.getBoundingClientRect();\n } else {\n submenu.style.removeProperty('inset-inline-start');\n }\n\n const translateX =\n rect.right > right ? right - rect.right : rect.left < left ? left - rect.left : 0;\n const parentRect = submenu.parentElement?.getBoundingClientRect();\n if (\n rect.bottom > bottom &&\n level === 1 &&\n parentRect &&\n rect.height <= parentRect.top - top\n ) {\n submenu.style.insetBlockStart = 'auto';\n submenu.style.insetBlockEnd = 'calc(100% + var(--aeris-menubar-submenu-offset, 0.45rem))';\n submenu.setAttribute('data-flipped-block', 'true');\n rect = submenu.getBoundingClientRect();\n } else {\n submenu.style.removeProperty('inset-block-start');\n }\n const translateY =\n rect.bottom > bottom ? bottom - rect.bottom : rect.top < top ? top - rect.top : 0;\n if (translateX || translateY) submenu.style.translate = `${translateX}px ${translateY}px`;\n }\n }\n}\n\nexport const AerisMenubarModule = [\n AerisMenubar,\n AerisMenubarItemTemplate,\n AerisMenubarStartTemplate,\n AerisMenubarEndTemplate,\n] as const;\n"],"mappings":";;;;AA8GA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,WAAW,OAAwD,WAAW;CAEvF,OAAO,uBACL,YACA,SAAgB;EAEhB,OAAO;CACT;CARW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAwB,YAAA,CAAA;EADpC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,gCAA+B,CAAE;;;AAaxD,IAAa,4BAAb,MAAa,0BAAyB;CAC3B,WAAW,OAA6B,WAAW;CADjD,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAyB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAzB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA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AA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AA6c/E,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;AACQ"}
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-menubar.mjs","names":[],"sources":["../../../projects/aeris-ui/menubar/aeris-menubar.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 viewChildren,\n} from '@angular/core';\nimport {\n ɵAerisIcon,\n aerisInternalCreateFrameScheduler,\n ɵregisterAerisOverlay,\n ɵunregisterAerisOverlay,\n} from '@aeris-ui/core';\nimport type { AerisButtonSeverity, AerisButtonVariant } from '@aeris-ui/core/button';\n\nexport type AerisMenubarSize = 'sm' | 'md' | 'lg';\nexport type AerisMenubarCloseReason = 'api' | 'escape' | 'outside' | 'select' | 'mouseleave';\nexport type AerisMenubarItemVariant = 'default' | AerisButtonVariant;\nexport type AerisMenubarAriaCurrent = 'page' | 'step' | 'location' | 'date' | 'time' | true | false;\n\nexport interface AerisMenubarItem<T = unknown> {\n readonly id?: string;\n readonly label?: string;\n readonly description?: string;\n readonly ariaLabel?: string;\n readonly icon?: string;\n readonly badge?: string | number;\n readonly shortcut?: string;\n readonly variant?: AerisButtonVariant;\n readonly severity?: AerisButtonSeverity;\n readonly active?: boolean;\n readonly ariaCurrent?: AerisMenubarAriaCurrent;\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 AerisMenubarItem<T>[];\n readonly data?: T;\n readonly command?: (event: AerisMenubarItemEvent<T>) => void;\n}\n\nexport interface AerisMenubarItemEvent<T = unknown> {\n readonly originalEvent: MouseEvent | KeyboardEvent;\n readonly item: AerisMenubarItem<T>;\n readonly path: readonly number[];\n}\n\nexport interface AerisMenubarVisibilityEvent<T = unknown> {\n readonly originalEvent: Event | null;\n readonly visible: boolean;\n readonly reason: AerisMenubarCloseReason;\n readonly item: AerisMenubarItem<T> | null;\n readonly path: readonly number[];\n}\n\nexport interface AerisMenubarSubmenuIconContext {\n readonly $implicit: boolean;\n readonly root: boolean;\n}\n\nexport interface AerisMenubarItemTemplateContext<T = unknown> {\n readonly $implicit: AerisMenubarItem<T>;\n readonly item: AerisMenubarItem<T>;\n readonly path: readonly number[];\n readonly level: number;\n readonly root: boolean;\n readonly active: boolean;\n readonly current: boolean;\n readonly open: boolean;\n readonly disabled: boolean;\n readonly hasSubmenu: boolean;\n readonly variant: AerisMenubarItemVariant;\n readonly severity: AerisButtonSeverity;\n}\n\nexport type AerisMenubarNavigationHandler = (\n link: string | readonly (string | number)[],\n event: MouseEvent | KeyboardEvent,\n) => void;\n\ninterface AerisMenubarEntry<T> {\n readonly item: AerisMenubarItem<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 current: boolean;\n readonly open: boolean;\n readonly variant: AerisMenubarItemVariant;\n readonly severity: AerisButtonSeverity;\n readonly ariaCurrent: Exclude<AerisMenubarAriaCurrent, true | false> | null;\n readonly children: readonly AerisMenubarEntry<T>[];\n}\n\n@Directive({ selector: 'ng-template[aerisMenubarItem]' })\nexport class AerisMenubarItemTemplate<T = unknown> {\n readonly template = inject<TemplateRef<AerisMenubarItemTemplateContext<T>>>(TemplateRef);\n\n static ngTemplateContextGuard<T>(\n _directive: AerisMenubarItemTemplate<T>,\n context: unknown,\n ): context is AerisMenubarItemTemplateContext<T> {\n return true;\n }\n}\n\n@Directive({ selector: 'ng-template[aerisMenubarStart]' })\nexport class AerisMenubarStartTemplate {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisMenubarEnd]' })\nexport class AerisMenubarEndTemplate {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\nlet nextMenubarId = 0;\n\n@Component({\n selector: 'aeris-menubar',\n imports: [ɵAerisIcon, NgTemplateOutlet],\n template: `\n <ng-template #defaultItemTemplate let-item let-root=\"root\" let-hasSubmenu=\"hasSubmenu\">\n @if (item.icon) {\n <span class=\"aeris-menubar__icon\" aria-hidden=\"true\">{{ item.icon }}</span>\n }\n <span class=\"aeris-menubar__copy\">\n <span class=\"aeris-menubar__label\">{{ item.label }}</span>\n @if (item.description) {\n <span class=\"aeris-menubar__description\">{{ item.description }}</span>\n }\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"aeris-menubar__badge\">{{ item.badge }}</span>\n }\n @if (item.shortcut) {\n <kbd class=\"aeris-menubar__shortcut\">{{ item.shortcut }}</kbd>\n }\n @if (hasSubmenu) {\n @if (submenuIconTemplate(); as customIcon) {\n <span\n class=\"aeris-custom-icon aeris-menubar__chevron\"\n [attr.data-root]=\"root || null\"\n aria-hidden=\"true\"\n data-aeris-custom-icon\n ><ng-container\n [ngTemplateOutlet]=\"customIcon\"\n [ngTemplateOutletContext]=\"{ $implicit: root, root }\"\n /></span>\n } @else {\n <span\n [aerisInternalIcon]=\"root ? 'chevron' : 'chevronRight'\"\n class=\"aeris-menubar__chevron\"\n [attr.data-root]=\"root || null\"\n aria-hidden=\"true\"\n ></span>\n }\n }\n </ng-template>\n\n <ng-template #menuList let-entries let-level=\"level\">\n <ul\n [class]=\"level === 0 ? 'aeris-menubar__root' : 'aeris-menubar__submenu-list'\"\n [attr.role]=\"level === 0 ? 'menubar' : 'menu'\"\n [attr.aria-orientation]=\"level === 0 ? 'horizontal' : 'vertical'\"\n [attr.aria-label]=\"level === 0 ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"level === 0 ? ariaLabelledBy() || null : null\"\n [attr.data-level]=\"level\"\n >\n @for (entry of entries; track entry.id) {\n @if (entry.separator) {\n <li class=\"aeris-menubar__separator\" role=\"separator\"></li>\n } @else {\n <li\n class=\"aeris-menubar__item-shell\"\n role=\"none\"\n [attr.data-root]=\"entry.level === 0 || null\"\n [attr.data-open]=\"entry.open || null\"\n [attr.data-active]=\"entry.active || null\"\n [attr.data-current]=\"entry.current || null\"\n [attr.data-disabled]=\"entry.disabled || null\"\n >\n @if (entry.href) {\n <a\n #menuItem\n class=\"aeris-menubar__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.aria-current]=\"entry.ariaCurrent\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-menubar-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n [attr.data-variant]=\"entry.variant\"\n [attr.data-severity]=\"entry.severity\"\n [attr.data-current]=\"entry.current || null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handlePointerEnter(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-menubar__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.aria-current]=\"entry.ariaCurrent\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-menubar-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n [attr.data-variant]=\"entry.variant\"\n [attr.data-severity]=\"entry.severity\"\n [attr.data-current]=\"entry.current || null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handlePointerEnter(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 #submenu\n class=\"aeris-menubar__submenu\"\n [id]=\"entry.id + '-submenu'\"\n [attr.data-level]=\"entry.level + 1\"\n animate.enter=\"aeris-overlay-enter\"\n animate.leave=\"aeris-overlay-leave\"\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 <nav\n class=\"aeris-menubar__nav\"\n [attr.aria-label]=\"navAriaLabel() || null\"\n [attr.aria-labelledby]=\"navAriaLabelledBy() || null\"\n (mouseleave)=\"handleNavMouseLeave($event)\"\n >\n <div class=\"aeris-menubar__surface\">\n @if (startTemplate()) {\n <div class=\"aeris-menubar__slot aeris-menubar__slot--start\">\n <ng-container [ngTemplateOutlet]=\"startTemplate()?.template ?? null\" />\n </div>\n }\n\n @if (collapsible()) {\n <button\n type=\"button\"\n class=\"aeris-menubar__toggle\"\n [attr.aria-label]=\"toggleAriaLabel()\"\n [attr.aria-expanded]=\"mobileOpen()\"\n [attr.aria-controls]=\"id() + '-menu'\"\n (click)=\"toggleMobile()\"\n >\n @if (menuIconTemplate(); as customIcon) {\n <span aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <span aria-hidden=\"true\"></span>\n }\n </button>\n }\n\n <div class=\"aeris-menubar__menu\" [id]=\"id() + '-menu'\">\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{ $implicit: entries(), level: 0 }\"\n />\n </div>\n\n @if (endTemplate()) {\n <div class=\"aeris-menubar__slot aeris-menubar__slot--end\">\n <ng-container [ngTemplateOutlet]=\"endTemplate()?.template ?? null\" />\n </div>\n }\n </div>\n </nav>\n `,\n styleUrl: './aeris-menubar.scss',\n host: {\n class: 'aeris-menubar',\n '[attr.data-size]': 'size()',\n '[attr.data-collapsible]': 'collapsible() || null',\n '[attr.data-mobile-open]': 'mobileOpen() || null',\n },\n})\nexport class AerisMenubar<T = unknown> {\n readonly submenuIconTemplate = input<TemplateRef<AerisMenubarSubmenuIconContext>>();\n readonly menuIconTemplate = input<TemplateRef<void>>();\n\n private readonly submenuPositionFrame = aerisInternalCreateFrameScheduler(() =>\n this.positionSubmenus(),\n );\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n private readonly generatedId = `aeris-menubar-${++nextMenubarId}`;\n\n protected readonly itemTemplate = contentChild(AerisMenubarItemTemplate<T>, {\n descendants: false,\n });\n protected readonly startTemplate = contentChild(AerisMenubarStartTemplate, {\n descendants: false,\n });\n protected readonly endTemplate = contentChild(AerisMenubarEndTemplate, { descendants: false });\n protected readonly menuItems = viewChildren<ElementRef<HTMLElement>>('menuItem');\n protected readonly submenus = viewChildren<ElementRef<HTMLElement>>('submenu');\n protected readonly activePathKey = signal('0');\n\n readonly id = input(this.generatedId);\n readonly model = input<readonly AerisMenubarItem<T>[]>([]);\n readonly openPath = model('');\n readonly mobileOpen = model(false);\n readonly size = input<AerisMenubarSize>('md');\n readonly rootItemVariant = input<AerisMenubarItemVariant>('default');\n readonly submenuItemVariant = input<AerisMenubarItemVariant>('default');\n readonly rootItemSeverity = input<AerisButtonSeverity>('primary');\n readonly submenuItemSeverity = input<AerisButtonSeverity>('primary');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly openOnHover = input(true, { transform: booleanAttribute });\n readonly closeOnMouseLeave = input(true, { transform: booleanAttribute });\n readonly closeOnSelect = input(true, { transform: booleanAttribute });\n readonly closeOnOutsideClick = input(true, { transform: booleanAttribute });\n readonly closeOnEscape = input(true, { transform: booleanAttribute });\n readonly collapsible = input(true, { transform: booleanAttribute });\n readonly ariaLabel = input('Menubar');\n readonly ariaLabelledBy = input('');\n readonly navAriaLabel = input('');\n readonly navAriaLabelledBy = input('');\n readonly toggleAriaLabel = input('Toggle navigation menu');\n readonly navigationHandler = input<AerisMenubarNavigationHandler>();\n\n readonly opened = output<AerisMenubarVisibilityEvent<T>>();\n readonly closed = output<AerisMenubarVisibilityEvent<T>>();\n readonly itemSelected = output<AerisMenubarItemEvent<T>>();\n\n protected readonly entries = computed(() =>\n this.buildEntries(this.model(), [], 0, this.activePathKey(), this.openPath()),\n );\n\n constructor() {\n effect((onCleanup) => {\n if (!this.openPath() && !this.mobileOpen()) return;\n const document = this.host.nativeElement.ownerDocument;\n ɵregisterAerisOverlay(document, this.host.nativeElement, () => {\n if (!this.closeOnEscape()) return false;\n this.close();\n this.mobileOpen.set(false);\n this.focus();\n return true;\n });\n const pointerdown = (event: PointerEvent) => this.handleDocumentPointerdown(event);\n const keydown = (event: KeyboardEvent) => this.handleDocumentKeydown(event);\n document.addEventListener('pointerdown', pointerdown);\n document.addEventListener('keydown', keydown);\n onCleanup(() => {\n ɵunregisterAerisOverlay(document, this.host.nativeElement);\n document.removeEventListener('pointerdown', pointerdown);\n document.removeEventListener('keydown', keydown);\n });\n });\n\n effect((onCleanup) => {\n if (!this.openPath()) return;\n const document = this.host.nativeElement.ownerDocument;\n const view = document.defaultView;\n const viewport = view?.visualViewport;\n const reposition = this.submenuPositionFrame.schedule;\n afterNextRender(reposition, { injector: this.injector });\n document.addEventListener('scroll', reposition, true);\n view?.addEventListener('resize', reposition);\n viewport?.addEventListener('resize', reposition);\n viewport?.addEventListener('scroll', reposition);\n onCleanup(() => {\n document.removeEventListener('scroll', reposition, true);\n view?.removeEventListener('resize', reposition);\n viewport?.removeEventListener('resize', reposition);\n viewport?.removeEventListener('scroll', reposition);\n this.submenuPositionFrame.cancel();\n });\n });\n }\n\n open(path: string | readonly number[], originalEvent: Event | null = null): void {\n const key = typeof path === 'string' ? path : this.pathKey(path);\n const entry = this.findEntry(key);\n if (!entry || entry.disabled || !entry.children.length) return;\n this.openPath.set(key);\n this.opened.emit(this.visibilityEvent(true, 'api', originalEvent, entry));\n }\n\n close(originalEvent: Event | null = null, reason: AerisMenubarCloseReason = 'api'): void {\n const entry = this.findEntry(this.openPath());\n this.openPath.set('');\n this.closed.emit(this.visibilityEvent(false, reason, originalEvent, entry));\n }\n\n focus(): void {\n this.focusEntry(this.findEntry(this.activePathKey()) ?? this.firstEnabledEntry(this.entries()));\n }\n\n protected toggleMobile(): void {\n this.mobileOpen.update((open) => !open);\n }\n\n protected setActivePath(path: readonly number[]): void {\n this.activePathKey.set(this.pathKey(path));\n }\n\n protected handlePointerEnter(entry: AerisMenubarEntry<T>): void {\n if (!this.openOnHover() || this.disabled() || entry.disabled || entry.separator) return;\n this.activePathKey.set(entry.pathKey);\n if (entry.children.length) {\n this.openPath.set(entry.pathKey);\n } else if (entry.level > 0) {\n this.openPath.set(entry.parentPathKey);\n }\n }\n\n protected handleNavMouseLeave(event: MouseEvent): void {\n if (this.closeOnMouseLeave() && this.openPath()) this.close(event, 'mouseleave');\n }\n\n protected activateEntry(event: MouseEvent | KeyboardEvent, entry: AerisMenubarEntry<T>): void {\n if (this.disabled() || entry.disabled || entry.separator) {\n event.preventDefault();\n return;\n }\n\n if (entry.children.length) {\n event.preventDefault();\n const next = entry.open ? entry.parentPathKey : entry.pathKey;\n this.openPath.set(next);\n if (!entry.open) this.opened.emit(this.visibilityEvent(true, 'api', event, entry));\n return;\n }\n\n const itemEvent = {\n originalEvent: event,\n item: entry.item,\n path: entry.path,\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 if (this.closeOnSelect()) {\n this.mobileOpen.set(false);\n this.close(event, 'select');\n }\n }\n\n protected handleItemKeydown(event: KeyboardEvent, entry: AerisMenubarEntry<T>): void {\n switch (event.key) {\n case 'ArrowRight':\n event.preventDefault();\n if (entry.level === 0) {\n this.focusRootSibling(entry, 1);\n } else if (entry.children.length) {\n this.openPath.set(entry.pathKey);\n this.focusFirstChild(entry);\n }\n break;\n case 'ArrowLeft':\n event.preventDefault();\n if (entry.level === 0) {\n this.focusRootSibling(entry, -1);\n } else {\n this.closeSubmenu(entry);\n }\n break;\n case 'ArrowDown':\n event.preventDefault();\n if (entry.level === 0 && entry.children.length) {\n this.openPath.set(entry.pathKey);\n this.focusFirstChild(entry);\n } else {\n this.focusSibling(entry, 1);\n }\n break;\n case 'ArrowUp':\n event.preventDefault();\n if (entry.level === 0 && entry.children.length) {\n this.openPath.set(entry.pathKey);\n this.focusLastChild(entry);\n } else {\n this.focusSibling(entry, -1);\n }\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 'Enter':\n case ' ':\n event.preventDefault();\n this.activateEntry(event, entry);\n if (entry.children.length) this.focusFirstChild(entry);\n break;\n case 'Escape':\n if (!this.closeOnEscape()) return;\n event.preventDefault();\n if (entry.level > 0) {\n const root = this.rootEntryFor(entry);\n this.close(event, 'escape');\n this.focusEntry(root);\n } else {\n this.close(event, 'escape');\n }\n break;\n case 'Tab':\n this.close(event, 'outside');\n break;\n }\n }\n\n protected handleDocumentPointerdown(event: PointerEvent): void {\n if (!this.closeOnOutsideClick() || (!this.openPath() && !this.mobileOpen())) return;\n const target = event.target;\n if (target instanceof Node && this.host.nativeElement.contains(target)) return;\n this.mobileOpen.set(false);\n this.close(event, 'outside');\n }\n\n protected handleDocumentKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || !this.closeOnEscape()) return;\n if (!this.openPath() && !this.mobileOpen()) return;\n this.mobileOpen.set(false);\n this.close(event, 'escape');\n }\n\n protected itemContext(entry: AerisMenubarEntry<T>): AerisMenubarItemTemplateContext<T> {\n return {\n $implicit: entry.item,\n item: entry.item,\n path: entry.path,\n level: entry.level,\n root: entry.level === 0,\n active: entry.active,\n current: entry.current,\n open: entry.open,\n disabled: entry.disabled,\n hasSubmenu: entry.children.length > 0,\n variant: entry.variant,\n severity: entry.severity,\n };\n }\n\n private buildEntries(\n items: readonly AerisMenubarItem<T>[],\n parentPath: readonly number[],\n level: number,\n activePathKey: string,\n openPathKey: string,\n ): readonly AerisMenubarEntry<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 children = this.buildEntries(\n item.items ?? [],\n path,\n level + 1,\n activePathKey,\n openPathKey,\n );\n const ariaCurrent = this.resolveAriaCurrent(item);\n return {\n item,\n index,\n id: item.id ?? `${this.id()}-item-${key.replace(/\\./g, '-')}`,\n path,\n pathKey: key,\n parentPathKey: this.pathKey(parentPath),\n level,\n href: this.resolveHref(item),\n separator: !!item.separator,\n disabled: !!item.disabled,\n active: activePathKey === key,\n current: !!item.active || ariaCurrent !== null,\n open: openPathKey === key || openPathKey.startsWith(`${key}.`),\n variant:\n item.variant ?? (level === 0 ? this.rootItemVariant() : this.submenuItemVariant()),\n severity:\n item.severity ?? (level === 0 ? this.rootItemSeverity() : this.submenuItemSeverity()),\n ariaCurrent,\n children,\n };\n });\n }\n\n private focusRootSibling(entry: AerisMenubarEntry<T>, step: 1 | -1): void {\n const roots = this.enabledEntriesForParent('');\n const current = roots.findIndex((item) => item.pathKey === entry.pathKey);\n this.focusEntry(roots[(current + step + roots.length) % roots.length]);\n }\n\n private focusSibling(entry: AerisMenubarEntry<T>, step: 1 | -1): void {\n const siblings = this.enabledEntriesForParent(entry.parentPathKey);\n const current = siblings.findIndex((item) => item.pathKey === entry.pathKey);\n this.focusEntry(siblings[(current + step + siblings.length) % siblings.length]);\n }\n\n private focusEdge(entry: AerisMenubarEntry<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: AerisMenubarEntry<T>): void {\n afterNextRender(() => this.focusEntry(this.firstEnabledEntry(entry.children)), {\n injector: this.injector,\n });\n }\n\n private focusLastChild(entry: AerisMenubarEntry<T>): void {\n afterNextRender(() => this.focusEntry(this.lastEnabledEntry(entry.children)), {\n injector: this.injector,\n });\n }\n\n private closeSubmenu(entry: AerisMenubarEntry<T>): void {\n const parent = this.findEntry(entry.parentPathKey);\n this.openPath.set(parent?.parentPathKey ?? '');\n this.focusEntry(parent);\n }\n\n private focusEntry(entry: AerisMenubarEntry<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-menubar-path') === entry.pathKey,\n )\n ?.nativeElement.focus();\n });\n }\n\n private rootEntryFor(entry: AerisMenubarEntry<T>): AerisMenubarEntry<T> | undefined {\n return this.findEntry(String(entry.path[0] ?? '0'));\n }\n\n private enabledEntriesForParent(parentPathKey: string): readonly AerisMenubarEntry<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 AerisMenubarEntry<T>[],\n ): AerisMenubarEntry<T> | undefined {\n return entries.find((entry) => !entry.separator && !entry.disabled);\n }\n\n private lastEnabledEntry(\n entries: readonly AerisMenubarEntry<T>[],\n ): AerisMenubarEntry<T> | undefined {\n return entries.filter((entry) => !entry.separator && !entry.disabled).at(-1);\n }\n\n private findEntry(pathKey: string): AerisMenubarEntry<T> | undefined {\n return this.flattenEntries(this.entries()).find((entry) => entry.pathKey === pathKey);\n }\n\n private flattenEntries(\n entries: readonly AerisMenubarEntry<T>[],\n ): readonly AerisMenubarEntry<T>[] {\n return entries.flatMap((entry) => [entry, ...this.flattenEntries(entry.children)]);\n }\n\n private visibilityEvent(\n visible: boolean,\n reason: AerisMenubarCloseReason,\n originalEvent: Event | null,\n entry: AerisMenubarEntry<T> | undefined,\n ): AerisMenubarVisibilityEvent<T> {\n return {\n originalEvent,\n visible,\n reason,\n item: entry?.item ?? null,\n path: entry?.path ?? [],\n };\n }\n\n private resolveHref(item: AerisMenubarItem<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 resolveAriaCurrent(\n item: AerisMenubarItem<T>,\n ): Exclude<AerisMenubarAriaCurrent, true | false> | null {\n if (item.ariaCurrent === false) return null;\n if (item.ariaCurrent === true) return 'page';\n return item.ariaCurrent ?? (item.active ? 'page' : null);\n }\n\n private pathKey(path: readonly number[]): string {\n return path.join('.');\n }\n\n private positionSubmenus(): void {\n const document = this.host.nativeElement.ownerDocument;\n const view = document.defaultView;\n if (!view) return;\n const viewport = view.visualViewport;\n const left = (viewport?.offsetLeft ?? 0) + 8;\n const top = (viewport?.offsetTop ?? 0) + 8;\n const right = (viewport?.offsetLeft ?? 0) + (viewport?.width ?? view.innerWidth) - 8;\n const bottom = (viewport?.offsetTop ?? 0) + (viewport?.height ?? view.innerHeight) - 8;\n\n for (const { nativeElement: submenu } of this.submenus()) {\n submenu.style.removeProperty('inset-inline-end');\n submenu.style.removeProperty('inset-block-end');\n submenu.style.removeProperty('translate');\n submenu.removeAttribute('data-flipped-inline');\n submenu.removeAttribute('data-flipped-block');\n\n const level = Number(submenu.dataset['level'] ?? 1);\n let rect = submenu.getBoundingClientRect();\n if (rect.right > right && level > 1) {\n submenu.style.insetInlineStart = 'auto';\n submenu.style.insetInlineEnd = 'calc(100% + var(--aeris-menubar-submenu-offset, 0.45rem))';\n submenu.setAttribute('data-flipped-inline', 'true');\n rect = submenu.getBoundingClientRect();\n } else {\n submenu.style.removeProperty('inset-inline-start');\n }\n\n const translateX =\n rect.right > right ? right - rect.right : rect.left < left ? left - rect.left : 0;\n const parentRect = submenu.parentElement?.getBoundingClientRect();\n if (\n rect.bottom > bottom &&\n level === 1 &&\n parentRect &&\n rect.height <= parentRect.top - top\n ) {\n submenu.style.insetBlockStart = 'auto';\n submenu.style.insetBlockEnd = 'calc(100% + var(--aeris-menubar-submenu-offset, 0.45rem))';\n submenu.setAttribute('data-flipped-block', 'true');\n rect = submenu.getBoundingClientRect();\n } else {\n submenu.style.removeProperty('inset-block-start');\n }\n const translateY =\n rect.bottom > bottom ? bottom - rect.bottom : rect.top < top ? top - rect.top : 0;\n if (translateX || translateY) submenu.style.translate = `${translateX}px ${translateY}px`;\n }\n }\n}\n\nexport const AerisMenubarModule = [\n AerisMenubar,\n AerisMenubarItemTemplate,\n AerisMenubarStartTemplate,\n AerisMenubarEndTemplate,\n] as const;\n"],"mappings":";;;;AAoHA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,WAAW,OAAwD,WAAW;CAEvF,OAAO,uBACL,YACA,SAAgB;EAEhB,OAAO;CACT;CARW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAwB,YAAA,CAAA;EADpC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,gCAA+B,CAAE;;;AAaxD,IAAa,4BAAb,MAAa,0BAAyB;CAC3B,WAAW,OAA6B,WAAW;CADjD,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAyB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAzB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAyB,cAAA;EAAA,UAAA;EAAA,UAA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,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AA6c/E,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;AACQ"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, effect, inject, input, model, numberAttribute, output } from "@angular/core";
|
|
4
|
+
import { ɵAerisIcon } from "@aeris-ui/core";
|
|
4
5
|
var AerisMessageIconTemplate = class AerisMessageIconTemplate {
|
|
5
6
|
template = inject(TemplateRef);
|
|
6
7
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
7
8
|
minVersion: "12.0.0",
|
|
8
|
-
version: "22.2.
|
|
9
|
+
version: "22.2.4",
|
|
9
10
|
ngImport: i0,
|
|
10
11
|
type: AerisMessageIconTemplate,
|
|
11
12
|
deps: [],
|
|
@@ -13,7 +14,7 @@ var AerisMessageIconTemplate = class AerisMessageIconTemplate {
|
|
|
13
14
|
});
|
|
14
15
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
15
16
|
minVersion: "14.0.0",
|
|
16
|
-
version: "22.2.
|
|
17
|
+
version: "22.2.4",
|
|
17
18
|
type: AerisMessageIconTemplate,
|
|
18
19
|
isStandalone: true,
|
|
19
20
|
selector: "ng-template[aerisMessageIcon]",
|
|
@@ -22,7 +23,7 @@ var AerisMessageIconTemplate = class AerisMessageIconTemplate {
|
|
|
22
23
|
};
|
|
23
24
|
i0.ɵɵngDeclareClassMetadata({
|
|
24
25
|
minVersion: "12.0.0",
|
|
25
|
-
version: "22.2.
|
|
26
|
+
version: "22.2.4",
|
|
26
27
|
ngImport: i0,
|
|
27
28
|
type: AerisMessageIconTemplate,
|
|
28
29
|
decorators: [{
|
|
@@ -34,7 +35,7 @@ var AerisMessageContentTemplate = class AerisMessageContentTemplate {
|
|
|
34
35
|
template = inject(TemplateRef);
|
|
35
36
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
36
37
|
minVersion: "12.0.0",
|
|
37
|
-
version: "22.2.
|
|
38
|
+
version: "22.2.4",
|
|
38
39
|
ngImport: i0,
|
|
39
40
|
type: AerisMessageContentTemplate,
|
|
40
41
|
deps: [],
|
|
@@ -42,7 +43,7 @@ var AerisMessageContentTemplate = class AerisMessageContentTemplate {
|
|
|
42
43
|
});
|
|
43
44
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
44
45
|
minVersion: "14.0.0",
|
|
45
|
-
version: "22.2.
|
|
46
|
+
version: "22.2.4",
|
|
46
47
|
type: AerisMessageContentTemplate,
|
|
47
48
|
isStandalone: true,
|
|
48
49
|
selector: "ng-template[aerisMessageContent]",
|
|
@@ -51,7 +52,7 @@ var AerisMessageContentTemplate = class AerisMessageContentTemplate {
|
|
|
51
52
|
};
|
|
52
53
|
i0.ɵɵngDeclareClassMetadata({
|
|
53
54
|
minVersion: "12.0.0",
|
|
54
|
-
version: "22.2.
|
|
55
|
+
version: "22.2.4",
|
|
55
56
|
ngImport: i0,
|
|
56
57
|
type: AerisMessageContentTemplate,
|
|
57
58
|
decorators: [{
|
|
@@ -61,6 +62,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
61
62
|
});
|
|
62
63
|
let nextMessageId = 0;
|
|
63
64
|
var AerisMessage = class AerisMessage {
|
|
65
|
+
closeIconTemplate = input(...ngDevMode ? [void 0, { debugName: "closeIconTemplate" }] : /* istanbul ignore next */ []);
|
|
64
66
|
generatedId = `aeris-message-${++nextMessageId}`;
|
|
65
67
|
iconTemplate = contentChild(AerisMessageIconTemplate, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
|
|
66
68
|
contentTemplate = contentChild(AerisMessageContentTemplate, ...ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
|
|
@@ -142,7 +144,7 @@ var AerisMessage = class AerisMessage {
|
|
|
142
144
|
}
|
|
143
145
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
144
146
|
minVersion: "12.0.0",
|
|
145
|
-
version: "22.2.
|
|
147
|
+
version: "22.2.4",
|
|
146
148
|
ngImport: i0,
|
|
147
149
|
type: AerisMessage,
|
|
148
150
|
deps: [],
|
|
@@ -150,11 +152,18 @@ var AerisMessage = class AerisMessage {
|
|
|
150
152
|
});
|
|
151
153
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
152
154
|
minVersion: "17.0.0",
|
|
153
|
-
version: "22.2.
|
|
155
|
+
version: "22.2.4",
|
|
154
156
|
type: AerisMessage,
|
|
155
157
|
isStandalone: true,
|
|
156
158
|
selector: "aeris-message",
|
|
157
159
|
inputs: {
|
|
160
|
+
closeIconTemplate: {
|
|
161
|
+
classPropertyName: "closeIconTemplate",
|
|
162
|
+
publicName: "closeIconTemplate",
|
|
163
|
+
isSignal: true,
|
|
164
|
+
isRequired: false,
|
|
165
|
+
transformFunction: null
|
|
166
|
+
},
|
|
158
167
|
visible: {
|
|
159
168
|
classPropertyName: "visible",
|
|
160
169
|
publicName: "visible",
|
|
@@ -325,14 +334,25 @@ var AerisMessage = class AerisMessage {
|
|
|
325
334
|
[attr.aria-label]="closeAriaLabel()"
|
|
326
335
|
(click)="close($event, 'close-button')"
|
|
327
336
|
>
|
|
328
|
-
|
|
337
|
+
@if (closeIconTemplate(); as customIcon) {
|
|
338
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
339
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
340
|
+
/></span>
|
|
341
|
+
} @else {
|
|
342
|
+
<span aerisInternalIcon="close" aria-hidden="true"></span>
|
|
343
|
+
}
|
|
329
344
|
</button>
|
|
330
345
|
}
|
|
331
346
|
}
|
|
332
347
|
`,
|
|
333
348
|
isInline: true,
|
|
334
|
-
styles: [":host{--_accent: var(--aeris-primary, #111111);--_surface: color-mix( in srgb, var(--_accent) var(--aeris-message-severity-tint, 9%), var(--aeris-surface, #fff) );--_text: var(--aeris-text, #111111);--_muted: var(--aeris-text-2, #454545);min-width:0;display:inline-grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.625rem;padding:.625rem .75rem;border:1px solid var(--aeris-message-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-message-background, var(--_surface));color:var(--_text);box-shadow:var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-lg, .875rem);line-height:1.45;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}:host(:not([data-visible])){display:none}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68)}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793)}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a)}:host([data-severity=neutral]),:host([data-severity=secondary]){--_accent: var(--aeris-text-2, #454545)}:host([data-severity=contrast]){--_accent: var(--aeris-text, #111111)}:host([data-variant=outlined]){--_surface: transparent;background:transparent;box-shadow:none}:host([data-variant=simple]){--_surface: transparent;padding-inline:0;border-color:transparent;background:transparent;box-shadow:none}:host([data-size=sm]){gap:.5rem;padding:.45rem .625rem;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));font-size:var(--aeris-font-size-md, .8125rem)}:host([data-size=lg]){gap:.75rem;padding:.8125rem .95rem;font-size:var(--aeris-font-size-xl, .9375rem)}:host([data-size=sm][data-variant=simple]){padding-inline:0}:host([data-size=lg][data-variant=simple]){padding-inline:0}.aeris-message__icon{width:var(--aeris-message-icon-size, 1.15rem);height:var(--aeris-message-icon-size, 1.15rem);display:inline-grid;place-items:center;color:var(--_accent)}:host([data-size=sm]) .aeris-message__icon{--aeris-message-icon-size: 1rem}:host([data-size=lg]) .aeris-message__icon{--aeris-message-icon-size: 1.35rem}.aeris-message__default-icon{
|
|
349
|
+
styles: [":host{--_accent: var(--aeris-primary, #111111);--_surface: color-mix( in srgb, var(--_accent) var(--aeris-message-severity-tint, 9%), var(--aeris-surface, #fff) );--_text: var(--aeris-text, #111111);--_muted: var(--aeris-text-2, #454545);min-width:0;display:inline-grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.625rem;padding:.625rem .75rem;border:1px solid var(--aeris-message-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-message-background, var(--_surface));color:var(--_text);box-shadow:var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-lg, .875rem);line-height:1.45;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}:host(:not([data-visible])){display:none}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68)}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793)}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a)}:host([data-severity=neutral]),:host([data-severity=secondary]){--_accent: var(--aeris-text-2, #454545)}:host([data-severity=contrast]){--_accent: var(--aeris-text, #111111)}:host([data-variant=outlined]){--_surface: transparent;background:transparent;box-shadow:none}:host([data-variant=simple]){--_surface: transparent;padding-inline:0;border-color:transparent;background:transparent;box-shadow:none}:host([data-size=sm]){gap:.5rem;padding:.45rem .625rem;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));font-size:var(--aeris-font-size-md, .8125rem)}:host([data-size=lg]){gap:.75rem;padding:.8125rem .95rem;font-size:var(--aeris-font-size-xl, .9375rem)}:host([data-size=sm][data-variant=simple]){padding-inline:0}:host([data-size=lg][data-variant=simple]){padding-inline:0}.aeris-message__icon{width:var(--aeris-message-icon-size, 1.15rem);height:var(--aeris-message-icon-size, 1.15rem);display:inline-grid;place-items:center;color:var(--_accent)}:host([data-size=sm]) .aeris-message__icon{--aeris-message-icon-size: 1rem}:host([data-size=lg]) .aeris-message__icon{--aeris-message-icon-size: 1.35rem}.aeris-message__default-icon{display:block;width:var(--aeris-message-icon-size, 1.25rem);height:var(--aeris-message-icon-size, 1.25rem);background:currentColor;-webkit-mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}:host([data-severity=success]) .aeris-message__default-icon{-webkit-mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'))}:host([data-severity=warning]) .aeris-message__default-icon{-webkit-mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'))}:host([data-severity=danger]) .aeris-message__default-icon{-webkit-mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'))}.aeris-message__content{min-width:0;color:inherit}.aeris-message__close{width:1.875rem;height:1.875rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem -.25rem 0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--_muted);cursor:pointer}@media(hover:hover){.aeris-message__close:hover{background:color-mix(in srgb,var(--aeris-text, #111111) 8%,transparent);color:var(--aeris-text, #111111)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-message__close:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-message__close span{width:.8rem;height:.8rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}@media(prefers-reduced-motion:reduce){:host{transition:none}}\n"],
|
|
335
350
|
dependencies: [{
|
|
351
|
+
kind: "component",
|
|
352
|
+
type: ɵAerisIcon,
|
|
353
|
+
selector: "span[aerisInternalIcon]",
|
|
354
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
355
|
+
}, {
|
|
336
356
|
kind: "directive",
|
|
337
357
|
type: NgTemplateOutlet,
|
|
338
358
|
selector: "[ngTemplateOutlet]",
|
|
@@ -346,14 +366,14 @@ var AerisMessage = class AerisMessage {
|
|
|
346
366
|
};
|
|
347
367
|
i0.ɵɵngDeclareClassMetadata({
|
|
348
368
|
minVersion: "12.0.0",
|
|
349
|
-
version: "22.2.
|
|
369
|
+
version: "22.2.4",
|
|
350
370
|
ngImport: i0,
|
|
351
371
|
type: AerisMessage,
|
|
352
372
|
decorators: [{
|
|
353
373
|
type: Component,
|
|
354
374
|
args: [{
|
|
355
375
|
selector: "aeris-message",
|
|
356
|
-
imports: [NgTemplateOutlet],
|
|
376
|
+
imports: [ɵAerisIcon, NgTemplateOutlet],
|
|
357
377
|
template: `
|
|
358
378
|
@if (visible()) {
|
|
359
379
|
@if (showIcon()) {
|
|
@@ -389,7 +409,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
389
409
|
[attr.aria-label]="closeAriaLabel()"
|
|
390
410
|
(click)="close($event, 'close-button')"
|
|
391
411
|
>
|
|
392
|
-
|
|
412
|
+
@if (closeIconTemplate(); as customIcon) {
|
|
413
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
414
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
415
|
+
/></span>
|
|
416
|
+
} @else {
|
|
417
|
+
<span aerisInternalIcon="close" aria-hidden="true"></span>
|
|
418
|
+
}
|
|
393
419
|
</button>
|
|
394
420
|
}
|
|
395
421
|
}
|
|
@@ -409,11 +435,19 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
409
435
|
"[attr.data-closable]": "closable() || null",
|
|
410
436
|
"[attr.data-icon]": "showIcon() || null"
|
|
411
437
|
},
|
|
412
|
-
styles: [":host{--_accent: var(--aeris-primary, #111111);--_surface: color-mix( in srgb, var(--_accent) var(--aeris-message-severity-tint, 9%), var(--aeris-surface, #fff) );--_text: var(--aeris-text, #111111);--_muted: var(--aeris-text-2, #454545);min-width:0;display:inline-grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.625rem;padding:.625rem .75rem;border:1px solid var(--aeris-message-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-message-background, var(--_surface));color:var(--_text);box-shadow:var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-lg, .875rem);line-height:1.45;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}:host(:not([data-visible])){display:none}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68)}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793)}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a)}:host([data-severity=neutral]),:host([data-severity=secondary]){--_accent: var(--aeris-text-2, #454545)}:host([data-severity=contrast]){--_accent: var(--aeris-text, #111111)}:host([data-variant=outlined]){--_surface: transparent;background:transparent;box-shadow:none}:host([data-variant=simple]){--_surface: transparent;padding-inline:0;border-color:transparent;background:transparent;box-shadow:none}:host([data-size=sm]){gap:.5rem;padding:.45rem .625rem;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));font-size:var(--aeris-font-size-md, .8125rem)}:host([data-size=lg]){gap:.75rem;padding:.8125rem .95rem;font-size:var(--aeris-font-size-xl, .9375rem)}:host([data-size=sm][data-variant=simple]){padding-inline:0}:host([data-size=lg][data-variant=simple]){padding-inline:0}.aeris-message__icon{width:var(--aeris-message-icon-size, 1.15rem);height:var(--aeris-message-icon-size, 1.15rem);display:inline-grid;place-items:center;color:var(--_accent)}:host([data-size=sm]) .aeris-message__icon{--aeris-message-icon-size: 1rem}:host([data-size=lg]) .aeris-message__icon{--aeris-message-icon-size: 1.35rem}.aeris-message__default-icon{
|
|
438
|
+
styles: [":host{--_accent: var(--aeris-primary, #111111);--_surface: color-mix( in srgb, var(--_accent) var(--aeris-message-severity-tint, 9%), var(--aeris-surface, #fff) );--_text: var(--aeris-text, #111111);--_muted: var(--aeris-text-2, #454545);min-width:0;display:inline-grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.625rem;padding:.625rem .75rem;border:1px solid var(--aeris-message-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-message-background, var(--_surface));color:var(--_text);box-shadow:var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-lg, .875rem);line-height:1.45;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}:host(:not([data-visible])){display:none}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68)}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793)}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a)}:host([data-severity=neutral]),:host([data-severity=secondary]){--_accent: var(--aeris-text-2, #454545)}:host([data-severity=contrast]){--_accent: var(--aeris-text, #111111)}:host([data-variant=outlined]){--_surface: transparent;background:transparent;box-shadow:none}:host([data-variant=simple]){--_surface: transparent;padding-inline:0;border-color:transparent;background:transparent;box-shadow:none}:host([data-size=sm]){gap:.5rem;padding:.45rem .625rem;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));font-size:var(--aeris-font-size-md, .8125rem)}:host([data-size=lg]){gap:.75rem;padding:.8125rem .95rem;font-size:var(--aeris-font-size-xl, .9375rem)}:host([data-size=sm][data-variant=simple]){padding-inline:0}:host([data-size=lg][data-variant=simple]){padding-inline:0}.aeris-message__icon{width:var(--aeris-message-icon-size, 1.15rem);height:var(--aeris-message-icon-size, 1.15rem);display:inline-grid;place-items:center;color:var(--_accent)}:host([data-size=sm]) .aeris-message__icon{--aeris-message-icon-size: 1rem}:host([data-size=lg]) .aeris-message__icon{--aeris-message-icon-size: 1.35rem}.aeris-message__default-icon{display:block;width:var(--aeris-message-icon-size, 1.25rem);height:var(--aeris-message-icon-size, 1.25rem);background:currentColor;-webkit-mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}:host([data-severity=success]) .aeris-message__default-icon{-webkit-mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'))}:host([data-severity=warning]) .aeris-message__default-icon{-webkit-mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'))}:host([data-severity=danger]) .aeris-message__default-icon{-webkit-mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'))}.aeris-message__content{min-width:0;color:inherit}.aeris-message__close{width:1.875rem;height:1.875rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem -.25rem 0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--_muted);cursor:pointer}@media(hover:hover){.aeris-message__close:hover{background:color-mix(in srgb,var(--aeris-text, #111111) 8%,transparent);color:var(--aeris-text, #111111)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-message__close:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-message__close span{width:.8rem;height:.8rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}@media(prefers-reduced-motion:reduce){:host{transition:none}}\n"]
|
|
413
439
|
}]
|
|
414
440
|
}],
|
|
415
441
|
ctorParameters: () => [],
|
|
416
442
|
propDecorators: {
|
|
443
|
+
closeIconTemplate: [{
|
|
444
|
+
type: i0.Input,
|
|
445
|
+
args: [{
|
|
446
|
+
isSignal: true,
|
|
447
|
+
alias: "closeIconTemplate",
|
|
448
|
+
required: false
|
|
449
|
+
}]
|
|
450
|
+
}],
|
|
417
451
|
iconTemplate: [{
|
|
418
452
|
type: i0.ContentChild,
|
|
419
453
|
args: [i0.forwardRef(() => AerisMessageIconTemplate), { isSignal: true }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeris-ui-core-message.mjs","names":[],"sources":["../../../projects/aeris-ui/message/aeris-message.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n} from '@angular/core';\nimport type { AerisSeverity } from '@aeris-ui/core';\n\nexport type AerisMessageSeverity = AerisSeverity;\n\nexport type AerisMessageVariant = 'filled' | 'outlined' | 'simple';\nexport type AerisMessageSize = 'sm' | 'md' | 'lg';\nexport type AerisMessageCloseReason = 'api' | 'close-button' | 'timeout';\nexport type AerisMessageLive = 'polite' | 'assertive' | 'off';\nexport type AerisMessageRole = 'status' | 'alert' | 'note';\n\nexport interface AerisMessageCloseEvent {\n readonly originalEvent: Event | null;\n readonly reason: AerisMessageCloseReason;\n}\n\nexport interface AerisMessageTemplateContext {\n readonly $implicit: AerisMessage;\n readonly message: AerisMessage;\n readonly close: (event?: Event) => void;\n readonly severity: AerisMessageSeverity;\n}\n\n@Directive({ selector: 'ng-template[aerisMessageIcon]' })\nexport class AerisMessageIconTemplate {\n readonly template = inject<TemplateRef<AerisMessageTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisMessageContent]' })\nexport class AerisMessageContentTemplate {\n readonly template = inject<TemplateRef<AerisMessageTemplateContext>>(TemplateRef);\n}\n\nlet nextMessageId = 0;\n\n@Component({\n selector: 'aeris-message',\n imports: [NgTemplateOutlet],\n template: `\n @if (visible()) {\n @if (showIcon()) {\n <span class=\"aeris-message__icon\" aria-hidden=\"true\">\n @if (iconTemplate(); as iconTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"iconTemplateRef.template\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else {\n <span class=\"aeris-message__default-icon\"></span>\n }\n </span>\n }\n\n <span class=\"aeris-message__content\">\n @if (contentTemplate(); as contentTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"contentTemplateRef.template\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else if (text()) {\n {{ text() }}\n } @else {\n <ng-content />\n }\n </span>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"aeris-message__close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close($event, 'close-button')\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n }\n `,\n styleUrl: './aeris-message.scss',\n host: {\n class: 'aeris-message',\n '[attr.id]': 'id()',\n '[attr.role]': 'visible() ? resolvedRole() : null',\n '[attr.aria-live]': 'visible() ? resolvedLive() : null',\n '[attr.aria-atomic]': 'visible() ? \"true\" : null',\n '[attr.aria-label]': 'visible() && ariaLabel() ? ariaLabel() : null',\n '[attr.aria-labelledby]': 'visible() && ariaLabelledBy() ? ariaLabelledBy() : null',\n '[attr.data-visible]': 'visible() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'size()',\n '[attr.data-closable]': 'closable() || null',\n '[attr.data-icon]': 'showIcon() || null',\n },\n})\nexport class AerisMessage {\n private readonly generatedId = `aeris-message-${++nextMessageId}`;\n protected readonly iconTemplate = contentChild(AerisMessageIconTemplate);\n protected readonly contentTemplate = contentChild(AerisMessageContentTemplate);\n private lifeTimer: ReturnType<typeof setTimeout> | undefined;\n\n readonly visible = model(true);\n\n readonly id = input(this.generatedId);\n readonly severity = input<AerisMessageSeverity>('info');\n readonly variant = input<AerisMessageVariant>('filled');\n readonly size = input<AerisMessageSize>('md');\n readonly text = input('');\n readonly closable = input(false, { transform: booleanAttribute });\n readonly life = input(0, { transform: numberAttribute });\n readonly showIcon = input(true, { transform: booleanAttribute });\n readonly role = input<AerisMessageRole | ''>('');\n readonly ariaLive = input<AerisMessageLive | ''>('');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly closeAriaLabel = input('Close message');\n\n readonly closed = output<AerisMessageCloseEvent>();\n readonly visibilityChanged = output<boolean>();\n\n protected readonly resolvedRole = computed<AerisMessageRole>(() => {\n const role = this.role();\n if (role) return role;\n return this.severity() === 'danger' || this.severity() === 'warning' ? 'alert' : 'status';\n });\n\n protected readonly resolvedLive = computed<AerisMessageLive>(() => {\n const live = this.ariaLive();\n if (live) return live;\n return this.resolvedRole() === 'alert' ? 'assertive' : 'polite';\n });\n\n protected readonly templateContext = computed<AerisMessageTemplateContext>(() => ({\n $implicit: this,\n message: this,\n close: (event?: Event) => this.close(event ?? null, 'api'),\n severity: this.severity(),\n }));\n\n constructor() {\n effect((onCleanup) => {\n if (!this.visible()) {\n this.clearLifeTimer();\n return;\n }\n\n const life = this.life();\n if (Number.isFinite(life) && life > 0) {\n this.lifeTimer = globalThis.setTimeout(() => this.close(null, 'timeout'), life);\n }\n\n onCleanup(() => this.clearLifeTimer());\n });\n }\n\n close(originalEvent: Event | null = null, reason: AerisMessageCloseReason = 'api'): void {\n if (!this.visible()) return;\n\n this.clearLifeTimer();\n this.visible.set(false);\n this.visibilityChanged.emit(false);\n this.closed.emit({ originalEvent, reason });\n }\n\n show(): void {\n if (this.visible()) return;\n this.visible.set(true);\n this.visibilityChanged.emit(true);\n }\n\n hide(): void {\n this.close(null, 'api');\n }\n\n private clearLifeTimer(): void {\n if (!this.lifeTimer) return;\n globalThis.clearTimeout(this.lifeTimer);\n this.lifeTimer = undefined;\n }\n}\n\nex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"sources":["../../../projects/aeris-ui/message/aeris-message.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n} from '@angular/core';\nimport { ɵAerisIcon, AerisSeverity } from '@aeris-ui/core';\n\nexport type AerisMessageSeverity = AerisSeverity;\n\nexport type AerisMessageVariant = 'filled' | 'outlined' | 'simple';\nexport type AerisMessageSize = 'sm' | 'md' | 'lg';\nexport type AerisMessageCloseReason = 'api' | 'close-button' | 'timeout';\nexport type AerisMessageLive = 'polite' | 'assertive' | 'off';\nexport type AerisMessageRole = 'status' | 'alert' | 'note';\n\nexport interface AerisMessageCloseEvent {\n readonly originalEvent: Event | null;\n readonly reason: AerisMessageCloseReason;\n}\n\nexport interface AerisMessageTemplateContext {\n readonly $implicit: AerisMessage;\n readonly message: AerisMessage;\n readonly close: (event?: Event) => void;\n readonly severity: AerisMessageSeverity;\n}\n\n@Directive({ selector: 'ng-template[aerisMessageIcon]' })\nexport class AerisMessageIconTemplate {\n readonly template = inject<TemplateRef<AerisMessageTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisMessageContent]' })\nexport class AerisMessageContentTemplate {\n readonly template = inject<TemplateRef<AerisMessageTemplateContext>>(TemplateRef);\n}\n\nlet nextMessageId = 0;\n\n@Component({\n selector: 'aeris-message',\n imports: [ɵAerisIcon, NgTemplateOutlet],\n template: `\n @if (visible()) {\n @if (showIcon()) {\n <span class=\"aeris-message__icon\" aria-hidden=\"true\">\n @if (iconTemplate(); as iconTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"iconTemplateRef.template\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else {\n <span class=\"aeris-message__default-icon\"></span>\n }\n </span>\n }\n\n <span class=\"aeris-message__content\">\n @if (contentTemplate(); as contentTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"contentTemplateRef.template\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else if (text()) {\n {{ text() }}\n } @else {\n <ng-content />\n }\n </span>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"aeris-message__close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close($event, 'close-button')\"\n >\n @if (closeIconTemplate(); as customIcon) {\n <span aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <span aerisInternalIcon=\"close\" aria-hidden=\"true\"></span>\n }\n </button>\n }\n }\n `,\n styleUrl: './aeris-message.scss',\n host: {\n class: 'aeris-message',\n '[attr.id]': 'id()',\n '[attr.role]': 'visible() ? resolvedRole() : null',\n '[attr.aria-live]': 'visible() ? resolvedLive() : null',\n '[attr.aria-atomic]': 'visible() ? \"true\" : null',\n '[attr.aria-label]': 'visible() && ariaLabel() ? ariaLabel() : null',\n '[attr.aria-labelledby]': 'visible() && ariaLabelledBy() ? ariaLabelledBy() : null',\n '[attr.data-visible]': 'visible() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'size()',\n '[attr.data-closable]': 'closable() || null',\n '[attr.data-icon]': 'showIcon() || null',\n },\n})\nexport class AerisMessage {\n readonly closeIconTemplate = input<TemplateRef<void>>();\n\n private readonly generatedId = `aeris-message-${++nextMessageId}`;\n protected readonly iconTemplate = contentChild(AerisMessageIconTemplate);\n protected readonly contentTemplate = contentChild(AerisMessageContentTemplate);\n private lifeTimer: ReturnType<typeof setTimeout> | undefined;\n\n readonly visible = model(true);\n\n readonly id = input(this.generatedId);\n readonly severity = input<AerisMessageSeverity>('info');\n readonly variant = input<AerisMessageVariant>('filled');\n readonly size = input<AerisMessageSize>('md');\n readonly text = input('');\n readonly closable = input(false, { transform: booleanAttribute });\n readonly life = input(0, { transform: numberAttribute });\n readonly showIcon = input(true, { transform: booleanAttribute });\n readonly role = input<AerisMessageRole | ''>('');\n readonly ariaLive = input<AerisMessageLive | ''>('');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly closeAriaLabel = input('Close message');\n\n readonly closed = output<AerisMessageCloseEvent>();\n readonly visibilityChanged = output<boolean>();\n\n protected readonly resolvedRole = computed<AerisMessageRole>(() => {\n const role = this.role();\n if (role) return role;\n return this.severity() === 'danger' || this.severity() === 'warning' ? 'alert' : 'status';\n });\n\n protected readonly resolvedLive = computed<AerisMessageLive>(() => {\n const live = this.ariaLive();\n if (live) return live;\n return this.resolvedRole() === 'alert' ? 'assertive' : 'polite';\n });\n\n protected readonly templateContext = computed<AerisMessageTemplateContext>(() => ({\n $implicit: this,\n message: this,\n close: (event?: Event) => this.close(event ?? null, 'api'),\n severity: this.severity(),\n }));\n\n constructor() {\n effect((onCleanup) => {\n if (!this.visible()) {\n this.clearLifeTimer();\n return;\n }\n\n const life = this.life();\n if (Number.isFinite(life) && life > 0) {\n this.lifeTimer = globalThis.setTimeout(() => this.close(null, 'timeout'), life);\n }\n\n onCleanup(() => this.clearLifeTimer());\n });\n }\n\n close(originalEvent: Event | null = null, reason: AerisMessageCloseReason = 'api'): void {\n if (!this.visible()) return;\n\n this.clearLifeTimer();\n this.visible.set(false);\n this.visibilityChanged.emit(false);\n this.closed.emit({ originalEvent, reason });\n }\n\n show(): void {\n if (this.visible()) return;\n this.visible.set(true);\n this.visibilityChanged.emit(true);\n }\n\n hide(): void {\n this.close(null, 'api');\n }\n\n private clearLifeTimer(): void {\n if (!this.lifeTimer) return;\n globalThis.clearTimeout(this.lifeTimer);\n this.lifeTimer = undefined;\n }\n}\n\nexport const AerisMessageModule = [\n AerisMessage,\n AerisMessageIconTemplate,\n AerisMessageContentTemplate,\n] as const;\n"],"mappings":";;;;AAsCA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,WAAW,OAAiD,WAAW;CADrE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;E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