@aeris-ui/core 22.0.0-alpha.4 → 22.0.0-alpha.5
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 +2 -2
- package/fesm2022/aeris-ui-core-accordion.mjs +12 -12
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
- package/fesm2022/aeris-ui-core-auto-complete.mjs +21 -17
- 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 +9 -9
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +10 -10
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
- package/fesm2022/aeris-ui-core-button-group.mjs +3 -3
- package/fesm2022/aeris-ui-core-button.mjs +6 -6
- package/fesm2022/aeris-ui-core-card.mjs +18 -18
- package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
- package/fesm2022/aeris-ui-core-cascade-select.mjs +15 -11
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +3 -3
- package/fesm2022/aeris-ui-core-checkbox.mjs +3 -3
- package/fesm2022/aeris-ui-core-chip.mjs +9 -9
- package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
- package/fesm2022/aeris-ui-core-color-picker.mjs +9 -5
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +12 -12
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +18 -18
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +19 -19
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +15 -8
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +9 -5
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +17 -17
- 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 +16 -16
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +6 -6
- package/fesm2022/aeris-ui-core-editor.mjs +3 -3
- package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
- package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
- package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
- package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
- package/fesm2022/aeris-ui-core-form-field.mjs +181 -0
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +27 -27
- 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 +9 -9
- package/fesm2022/aeris-ui-core-input-group.mjs +15 -15
- package/fesm2022/aeris-ui-core-input-mask.mjs +3 -3
- package/fesm2022/aeris-ui-core-input-number.mjs +3 -3
- package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
- package/fesm2022/aeris-ui-core-input-text.mjs +6 -6
- package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
- package/fesm2022/aeris-ui-core-mega-menu.mjs +15 -7
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +38 -18
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +135 -15
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +9 -9
- package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
- package/fesm2022/aeris-ui-core-multi-select.mjs +24 -20
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
- package/fesm2022/aeris-ui-core-organization-chart.mjs +9 -9
- package/fesm2022/aeris-ui-core-paginator.mjs +9 -5
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +15 -15
- package/fesm2022/aeris-ui-core-password.mjs +18 -14
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
- package/fesm2022/aeris-ui-core-popover.mjs +30 -19
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
- package/fesm2022/aeris-ui-core-radio-button.mjs +3 -3
- package/fesm2022/aeris-ui-core-rating.mjs +3 -3
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
- package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
- package/fesm2022/aeris-ui-core-select.mjs +42 -38
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- 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 +3 -3
- package/fesm2022/aeris-ui-core-split-button.mjs +9 -5
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
- package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
- package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
- package/fesm2022/aeris-ui-core-table.mjs +19 -19
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +76 -25
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +6 -6
- package/fesm2022/aeris-ui-core-theming.mjs +3 -3
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +29 -10
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
- package/fesm2022/aeris-ui-core-toast.mjs +12 -12
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
- package/fesm2022/aeris-ui-core-toolbar.mjs +18 -18
- package/fesm2022/aeris-ui-core-tooltip.mjs +29 -30
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +24 -20
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +16 -16
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +12 -12
- package/fesm2022/aeris-ui-core.mjs +165 -42
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +6 -2
- package/styles/aeris.css +7 -0
- package/types/aeris-ui-core-auto-complete.d.ts +3 -2
- package/types/aeris-ui-core-cascade-select.d.ts +3 -2
- package/types/aeris-ui-core-color-picker.d.ts +3 -2
- package/types/aeris-ui-core-context-menu.d.ts +3 -1
- package/types/aeris-ui-core-date-picker.d.ts +3 -2
- package/types/aeris-ui-core-form-field.d.ts +65 -0
- package/types/aeris-ui-core-mega-menu.d.ts +4 -2
- package/types/aeris-ui-core-menu.d.ts +3 -2
- package/types/aeris-ui-core-menubar.d.ts +27 -3
- package/types/aeris-ui-core-multi-select.d.ts +3 -2
- package/types/aeris-ui-core-paginator.d.ts +3 -2
- package/types/aeris-ui-core-password.d.ts +3 -2
- package/types/aeris-ui-core-popover.d.ts +2 -2
- package/types/aeris-ui-core-select.d.ts +3 -2
- package/types/aeris-ui-core-split-button.d.ts +3 -2
- package/types/aeris-ui-core-tabs.d.ts +23 -5
- package/types/aeris-ui-core-tiered-menu.d.ts +5 -3
- package/types/aeris-ui-core-tooltip.d.ts +2 -4
- package/types/aeris-ui-core-tree-select.d.ts +3 -2
- package/types/aeris-ui-core.d.ts +40 -26
|
@@ -8,10 +8,10 @@ class AerisTieredMenuItemTemplate {
|
|
|
8
8
|
static ngTemplateContextGuard(_directive, context) {
|
|
9
9
|
return true;
|
|
10
10
|
}
|
|
11
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
12
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTieredMenuItemTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
12
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisTieredMenuItemTemplate, isStandalone: true, selector: "ng-template[aerisTieredMenuItem]", ngImport: i0 });
|
|
13
13
|
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTieredMenuItemTemplate, decorators: [{
|
|
15
15
|
type: Directive,
|
|
16
16
|
args: [{ selector: 'ng-template[aerisTieredMenuItem]' }]
|
|
17
17
|
}] });
|
|
@@ -67,6 +67,7 @@ class AerisTieredMenu {
|
|
|
67
67
|
viewportMargin = input(8, /* @ts-ignore */
|
|
68
68
|
...(ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []));
|
|
69
69
|
hideOnOutsideClick = input(true, { ...(ngDevMode ? { debugName: "hideOnOutsideClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
70
|
+
closeOnMouseLeave = input(true, { ...(ngDevMode ? { debugName: "closeOnMouseLeave" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
70
71
|
closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
71
72
|
closeOnSelect = input(true, { ...(ngDevMode ? { debugName: "closeOnSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
72
73
|
autoFocus = input(true, { ...(ngDevMode ? { debugName: "autoFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
@@ -93,13 +94,18 @@ class AerisTieredMenu {
|
|
|
93
94
|
const pointerdown = (event) => this.handleDocumentPointerdown(event);
|
|
94
95
|
const keydown = (event) => this.handleDocumentKeydown(event);
|
|
95
96
|
const reposition = this.repositionFrame.schedule;
|
|
97
|
+
const viewport = view?.visualViewport;
|
|
96
98
|
document.addEventListener('pointerdown', pointerdown);
|
|
97
99
|
document.addEventListener('keydown', keydown);
|
|
98
100
|
view?.addEventListener('resize', reposition);
|
|
101
|
+
viewport?.addEventListener('resize', reposition);
|
|
102
|
+
viewport?.addEventListener('scroll', reposition);
|
|
99
103
|
onCleanup(() => {
|
|
100
104
|
document.removeEventListener('pointerdown', pointerdown);
|
|
101
105
|
document.removeEventListener('keydown', keydown);
|
|
102
106
|
view?.removeEventListener('resize', reposition);
|
|
107
|
+
viewport?.removeEventListener('resize', reposition);
|
|
108
|
+
viewport?.removeEventListener('scroll', reposition);
|
|
103
109
|
this.repositionFrame.cancel();
|
|
104
110
|
});
|
|
105
111
|
});
|
|
@@ -150,10 +156,13 @@ class AerisTieredMenu {
|
|
|
150
156
|
const width = rect.width || panel.offsetWidth || 240;
|
|
151
157
|
const height = rect.height || panel.offsetHeight || 260;
|
|
152
158
|
const anchor = this.currentAnchorPoint();
|
|
153
|
-
const
|
|
159
|
+
const viewport = view.visualViewport;
|
|
160
|
+
const { x, y } = aerisInternalClampOverlayPoint(anchor, width, height, viewport?.width ?? view.innerWidth, viewport?.height ?? view.innerHeight, this.viewportMargin(), viewport?.offsetLeft ?? 0, viewport?.offsetTop ?? 0);
|
|
154
161
|
this.anchorPoint.set(anchor);
|
|
155
162
|
this.coordinates.set({ x, y });
|
|
156
|
-
this.submenuSide.set(anchor.x > view.innerWidth / 2
|
|
163
|
+
this.submenuSide.set(anchor.x > (viewport?.offsetLeft ?? 0) + (viewport?.width ?? view.innerWidth) / 2
|
|
164
|
+
? 'start'
|
|
165
|
+
: 'end');
|
|
157
166
|
this.positioned.set(true);
|
|
158
167
|
panel.style.left = `${x}px`;
|
|
159
168
|
panel.style.top = `${y}px`;
|
|
@@ -171,6 +180,10 @@ class AerisTieredMenu {
|
|
|
171
180
|
this.activePathKey.set(entry.pathKey);
|
|
172
181
|
this.openPathKey.set(entry.children.length ? entry.pathKey : entry.parentPathKey);
|
|
173
182
|
}
|
|
183
|
+
handlePanelMouseLeave() {
|
|
184
|
+
if (this.closeOnMouseLeave())
|
|
185
|
+
this.openPathKey.set('');
|
|
186
|
+
}
|
|
174
187
|
activateEntry(event, entry) {
|
|
175
188
|
if (this.disabled() || entry.disabled || entry.separator) {
|
|
176
189
|
event.preventDefault();
|
|
@@ -433,8 +446,8 @@ class AerisTieredMenu {
|
|
|
433
446
|
isRtl() {
|
|
434
447
|
return this.host.nativeElement.ownerDocument.documentElement.dir === 'rtl';
|
|
435
448
|
}
|
|
436
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
437
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
449
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTieredMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
450
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisTieredMenu, isStandalone: true, selector: "aeris-tiered-menu", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, viewportMargin: { classPropertyName: "viewportMargin", publicName: "viewportMargin", isSignal: true, isRequired: false, transformFunction: null }, hideOnOutsideClick: { classPropertyName: "hideOnOutsideClick", publicName: "hideOnOutsideClick", isSignal: true, isRequired: false, transformFunction: null }, closeOnMouseLeave: { classPropertyName: "closeOnMouseLeave", publicName: "closeOnMouseLeave", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, restoreFocus: { classPropertyName: "restoreFocus", publicName: "restoreFocus", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, navigationHandler: { classPropertyName: "navigationHandler", publicName: "navigationHandler", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", shown: "shown", hidden: "hidden", visibilityChanged: "visibilityChanged", itemSelected: "itemSelected" }, host: { properties: { "attr.data-popup": "popup() || null", "attr.data-open": "panelVisible() || null" }, classAttribute: "aeris-tiered-menu" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: (AerisTieredMenuItemTemplate), isSignal: true }], viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "panelPortal", first: true, predicate: _AerisAppendTo, descendants: true, isSignal: true }, { propertyName: "menuItems", predicate: ["menuItem"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
438
451
|
<ng-template #defaultItemTemplate let-item let-hasSubmenu="hasSubmenu">
|
|
439
452
|
@if (item.icon) {
|
|
440
453
|
<span class="aeris-tiered-menu__icon" aria-hidden="true">{{ item.icon }}</span>
|
|
@@ -557,6 +570,8 @@ class AerisTieredMenu {
|
|
|
557
570
|
class="aeris-tiered-menu__panel"
|
|
558
571
|
[aerisInternalAppendTo]="popup() ? appendTo() : 'self'"
|
|
559
572
|
[aerisInternalAppendToAnchor]="popup() ? portalAnchor() : null"
|
|
573
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
574
|
+
[aerisInternalAppendToPositionSelf]="false"
|
|
560
575
|
[id]="id()"
|
|
561
576
|
[class]="panelStyleClass()"
|
|
562
577
|
[attr.data-popup]="popup() || null"
|
|
@@ -567,6 +582,7 @@ class AerisTieredMenu {
|
|
|
567
582
|
[style.--aeris-tiered-menu-width]="width() || null"
|
|
568
583
|
[style.--aeris-tiered-menu-max-width]="maxWidth() || null"
|
|
569
584
|
(contextmenu)="suppressNativeMenu($event)"
|
|
585
|
+
(mouseleave)="handlePanelMouseLeave()"
|
|
570
586
|
>
|
|
571
587
|
<ng-container
|
|
572
588
|
[ngTemplateOutlet]="menuList"
|
|
@@ -574,9 +590,9 @@ class AerisTieredMenu {
|
|
|
574
590
|
/>
|
|
575
591
|
</div>
|
|
576
592
|
}
|
|
577
|
-
`, isInline: true, styles: ["aeris-tiered-menu,:host{display:inline-block;max-inline-size:100%;color:var(--aeris-tiered-menu-color, var(--aeris-text, #222222));font:inherit}:host([data-popup]){display:contents}.aeris-tiered-menu__panel{--aeris-tiered-menu-density-gap: var(--aeris-density-gap, .5rem);--aeris-tiered-menu-item-min-height: var(--aeris-item-height, 2.5rem);--aeris-tiered-menu-item-padding-block: var(--aeris-item-padding-y, .5rem);--aeris-tiered-menu-item-padding-inline: var(--aeris-item-padding-x, .75rem);position:relative;inline-size:var(--aeris-tiered-menu-width, 14rem);max-inline-size:var(--aeris-tiered-menu-max-width, min(22rem, 100%));padding:var(--aeris-tiered-menu-padding, .375rem);border:var(--aeris-tiered-menu-border-width, 1px) solid var(--aeris-tiered-menu-border, var(--aeris-border));border-radius:var(--aeris-tiered-menu-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-tiered-menu-background, var(--aeris-surface, #fff));color:var(--aeris-tiered-menu-color, var(--aeris-text, #222222));box-shadow:var(--aeris-tiered-menu-shadow, 0 1rem 2.75rem rgba(0, 0, 0, .14));overflow:visible}.aeris-tiered-menu__panel[data-popup]{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--aeris-tiered-menu-z-index, 1060);max-inline-size:var(--aeris-tiered-menu-max-width, min(22rem, 100vw - 1rem));opacity:0;transform:translateY(-.25rem) scale(.985);transform-origin:top left}.aeris-tiered-menu__panel[data-positioned=true]{opacity:1;transform:translateY(0) scale(1);transition:opacity .14s ease,transform .14s ease}.aeris-tiered-menu__list{display:grid;gap:var(--aeris-tiered-menu-list-gap, calc(var(--aeris-tiered-menu-density-gap) * .25));min-inline-size:0;margin:0;padding:0;list-style:none}.aeris-tiered-menu__list[data-level=\"0\"]{max-block-size:var(--aeris-tiered-menu-max-height, min(26rem, 100vh - 1rem));max-block-size:var(--aeris-tiered-menu-max-height, min(26rem, 100dvh - 1rem));overflow:visible}.aeris-tiered-menu__item-shell{position:relative;min-inline-size:0}.aeris-tiered-menu__item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:var(--aeris-tiered-menu-item-gap, var(--aeris-tiered-menu-density-gap));inline-size:100%;min-block-size:var(--aeris-tiered-menu-item-min-height, 2.25rem);padding:var(--aeris-tiered-menu-item-padding-block, .5rem) var(--aeris-tiered-menu-item-padding-inline, .625rem);border:0;border-radius:var(--aeris-tiered-menu-item-radius, var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem)));background:transparent;color:var(--aeris-tiered-menu-item-color, inherit);font:inherit;font-size:var(--aeris-tiered-menu-font-size, .875rem);font-weight:650;line-height:1.3;text-align:start;text-decoration:none;cursor:pointer}.aeris-tiered-menu__item[data-custom-template=true]{display:block}.aeris-tiered-menu__item:hover,.aeris-tiered-menu__item-shell[data-active=true]>.aeris-tiered-menu__item,.aeris-tiered-menu__item-shell[data-open=true]>.aeris-tiered-menu__item{background:var(--aeris-tiered-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)));color:var(--aeris-tiered-menu-item-hover-color, var(--aeris-text, #222222))}.aeris-tiered-menu__item:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, var(--aeris-primary, #5f6f36)) 42%,transparent);outline-offset:1px}.aeris-tiered-menu__item:disabled,.aeris-tiered-menu__item[aria-disabled=true]{cursor:not-allowed;opacity:var(--aeris-tiered-menu-disabled-opacity, .52)}.aeris-tiered-menu__icon,.aeris-tiered-menu__submenu-icon{display:inline-grid;place-items:center;inline-size:var(--aeris-tiered-menu-icon-size, 1.125rem);block-size:var(--aeris-tiered-menu-icon-size, 1.125rem);color:var(--aeris-tiered-menu-icon-color, currentColor)}.aeris-tiered-menu__submenu-icon{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.aeris-tiered-menu__label{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-tiered-menu__badge{inline-size:max-content;min-inline-size:1.35rem;max-inline-size:var(--aeris-tiered-menu-badge-max-width, min(7rem, 36vw));justify-self:end;padding:.125rem .375rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-tiered-menu-badge-background, color-mix(in srgb, var(--aeris-primary, #5f6f36) 16%, transparent));color:var(--aeris-tiered-menu-badge-color, var(--aeris-primary-text, #5f6f36));font-size:.75rem;font-weight:800;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.aeris-tiered-menu__shortcut{min-inline-size:0;max-inline-size:var(--aeris-tiered-menu-shortcut-max-width, min(8rem, 38vw));justify-self:end;color:var(--aeris-tiered-menu-shortcut-color, var(--aeris-text-2, #555555));font:inherit;font-size:.75rem;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-tiered-menu__separator{block-size:1px;margin:var(--aeris-tiered-menu-separator-margin, calc(var(--aeris-tiered-menu-density-gap) * .5) calc(var(--aeris-tiered-menu-density-gap) * .75));background:var(--aeris-tiered-menu-separator-color, var(--aeris-border, #deddd7))}.aeris-tiered-menu__submenu{position:absolute;inset-block-start:calc(-1 * var(--aeris-tiered-menu-padding, .375rem));min-inline-size:var(--aeris-tiered-menu-submenu-width, 14rem);padding:var(--aeris-tiered-menu-padding, .375rem);border:var(--aeris-tiered-menu-border-width, 1px) solid var(--aeris-tiered-menu-border, var(--aeris-border));border-radius:var(--aeris-tiered-menu-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-tiered-menu-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-tiered-menu-shadow, 0 1rem 2.75rem rgba(0, 0, 0, .14))}.aeris-tiered-menu__submenu[data-side=end]{inset-inline-start:calc(100% + var(--aeris-tiered-menu-submenu-offset, .375rem))}.aeris-tiered-menu__submenu[data-side=start]{inset-inline-end:calc(100% + var(--aeris-tiered-menu-submenu-offset, .375rem))}.aeris-tiered-menu__panel[data-size=sm]{--aeris-tiered-menu-font-size: .8125rem;--aeris-tiered-menu-item-min-height: calc(var(--aeris-item-height, 2.5rem) - .375rem);--aeris-tiered-menu-item-padding-block: calc(var(--aeris-item-padding-y, .5rem) * .8);--aeris-tiered-menu-item-padding-inline: calc(var(--aeris-item-padding-x, .75rem) * .85);--aeris-tiered-menu-icon-size: 1rem}.aeris-tiered-menu__panel[data-size=lg]{--aeris-tiered-menu-font-size: .9375rem;--aeris-tiered-menu-item-min-height: calc(var(--aeris-item-height, 2.5rem) + .25rem);--aeris-tiered-menu-item-padding-block: calc(var(--aeris-item-padding-y, .5rem) * 1.15);--aeris-tiered-menu-item-padding-inline: calc(var(--aeris-item-padding-x, .75rem) * 1.15);--aeris-tiered-menu-icon-size: 1.25rem}@media(max-width:40rem){.aeris-tiered-menu__panel:not([data-popup]){inline-size:100%}}@media(prefers-reduced-motion:reduce){.aeris-tiered-menu__panel[data-positioned=true]{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: _AerisAppendTo, selector: "[aerisInternalAppendTo]", inputs: ["aerisInternalAppendTo", "aerisInternalAppendToAnchor", "aerisInternalAppendToOffset", "aerisInternalAppendToMatchWidth"], outputs: ["aerisInternalAppendToOutside"] }] });
|
|
593
|
+
`, isInline: true, styles: ["aeris-tiered-menu,:host{display:inline-block;max-inline-size:100%;color:var(--aeris-tiered-menu-color, var(--aeris-text, #222222));font:inherit}:host([data-popup]){display:contents}.aeris-tiered-menu__panel{--aeris-tiered-menu-density-gap: var(--aeris-density-gap, .5rem);--aeris-tiered-menu-item-min-height: var(--aeris-item-height, 2.5rem);--aeris-tiered-menu-item-padding-block: var(--aeris-item-padding-y, .5rem);--aeris-tiered-menu-item-padding-inline: var(--aeris-item-padding-x, .75rem);position:relative;inline-size:var(--aeris-tiered-menu-width, 14rem);max-inline-size:var(--aeris-tiered-menu-max-width, min(22rem, 100%));padding:var(--aeris-tiered-menu-padding, .375rem);border:var(--aeris-tiered-menu-border-width, 1px) solid var(--aeris-tiered-menu-border, var(--aeris-border));border-radius:var(--aeris-tiered-menu-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-tiered-menu-background, var(--aeris-surface, #fff));color:var(--aeris-tiered-menu-color, var(--aeris-text, #222222));box-shadow:var(--aeris-tiered-menu-shadow, 0 1rem 2.75rem rgba(0, 0, 0, .14));overflow:visible}.aeris-tiered-menu__panel[data-popup]{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--aeris-tiered-menu-z-index, 1060);max-inline-size:var(--aeris-tiered-menu-max-width, min(22rem, 100vw - 1rem));opacity:0;transform:translateY(-.25rem) scale(.985);transform-origin:top left}.aeris-tiered-menu__panel[data-positioned=true]{opacity:1;transform:translateY(0) scale(1);transition:opacity .14s ease,transform .14s ease}.aeris-tiered-menu__list{display:grid;gap:var(--aeris-tiered-menu-list-gap, calc(var(--aeris-tiered-menu-density-gap) * .25));min-inline-size:0;margin:0;padding:0;list-style:none}.aeris-tiered-menu__list[data-level=\"0\"]{max-block-size:var(--aeris-tiered-menu-max-height, min(26rem, 100vh - 1rem));max-block-size:var(--aeris-tiered-menu-max-height, min(26rem, 100dvh - 1rem));overflow:visible}.aeris-tiered-menu__item-shell{position:relative;min-inline-size:0}.aeris-tiered-menu__item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:var(--aeris-tiered-menu-item-gap, var(--aeris-tiered-menu-density-gap));inline-size:100%;min-block-size:var(--aeris-tiered-menu-item-min-height, 2.25rem);padding:var(--aeris-tiered-menu-item-padding-block, .5rem) var(--aeris-tiered-menu-item-padding-inline, .625rem);border:0;border-radius:var(--aeris-tiered-menu-item-radius, var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem)));background:transparent;color:var(--aeris-tiered-menu-item-color, inherit);font:inherit;font-size:var(--aeris-tiered-menu-font-size, .875rem);font-weight:650;line-height:1.3;text-align:start;text-decoration:none;cursor:pointer}.aeris-tiered-menu__item[data-custom-template=true]{display:block}.aeris-tiered-menu__item:hover,.aeris-tiered-menu__item-shell[data-active=true]>.aeris-tiered-menu__item,.aeris-tiered-menu__item-shell[data-open=true]>.aeris-tiered-menu__item{background:var(--aeris-tiered-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)));color:var(--aeris-tiered-menu-item-hover-color, var(--aeris-text, #222222))}.aeris-tiered-menu__item:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, var(--aeris-primary, #5f6f36)) 42%,transparent);outline-offset:1px}.aeris-tiered-menu__item:disabled,.aeris-tiered-menu__item[aria-disabled=true]{cursor:not-allowed;opacity:var(--aeris-tiered-menu-disabled-opacity, .52)}.aeris-tiered-menu__icon,.aeris-tiered-menu__submenu-icon{display:inline-grid;place-items:center;inline-size:var(--aeris-tiered-menu-icon-size, 1.125rem);block-size:var(--aeris-tiered-menu-icon-size, 1.125rem);color:var(--aeris-tiered-menu-icon-color, currentColor)}.aeris-tiered-menu__submenu-icon{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.aeris-tiered-menu__label{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-tiered-menu__badge{inline-size:max-content;min-inline-size:1.35rem;max-inline-size:var(--aeris-tiered-menu-badge-max-width, min(7rem, 36vw));justify-self:end;padding:.125rem .375rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-tiered-menu-badge-background, color-mix(in srgb, var(--aeris-primary, #5f6f36) 16%, transparent));color:var(--aeris-tiered-menu-badge-color, var(--aeris-primary-text, #5f6f36));font-size:.75rem;font-weight:800;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.aeris-tiered-menu__shortcut{min-inline-size:0;max-inline-size:var(--aeris-tiered-menu-shortcut-max-width, min(8rem, 38vw));justify-self:end;color:var(--aeris-tiered-menu-shortcut-color, var(--aeris-text-2, #555555));font:inherit;font-size:.75rem;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-tiered-menu__separator{block-size:1px;margin:var(--aeris-tiered-menu-separator-margin, calc(var(--aeris-tiered-menu-density-gap) * .5) calc(var(--aeris-tiered-menu-density-gap) * .75));background:var(--aeris-tiered-menu-separator-color, var(--aeris-border, #deddd7))}.aeris-tiered-menu__submenu{position:absolute;inset-block-start:calc(-1 * var(--aeris-tiered-menu-padding, .375rem));min-inline-size:var(--aeris-tiered-menu-submenu-width, 14rem);padding:var(--aeris-tiered-menu-padding, .375rem);border:var(--aeris-tiered-menu-border-width, 1px) solid var(--aeris-tiered-menu-border, var(--aeris-border));border-radius:var(--aeris-tiered-menu-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-tiered-menu-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-tiered-menu-shadow, 0 1rem 2.75rem rgba(0, 0, 0, .14))}.aeris-tiered-menu__submenu[data-side=end]{inset-inline-start:calc(100% + var(--aeris-tiered-menu-submenu-offset, .375rem))}.aeris-tiered-menu__submenu[data-side=start]{inset-inline-end:calc(100% + var(--aeris-tiered-menu-submenu-offset, .375rem))}.aeris-tiered-menu__panel[data-size=sm]{--aeris-tiered-menu-font-size: .8125rem;--aeris-tiered-menu-item-min-height: calc(var(--aeris-item-height, 2.5rem) - .375rem);--aeris-tiered-menu-item-padding-block: calc(var(--aeris-item-padding-y, .5rem) * .8);--aeris-tiered-menu-item-padding-inline: calc(var(--aeris-item-padding-x, .75rem) * .85);--aeris-tiered-menu-icon-size: 1rem}.aeris-tiered-menu__panel[data-size=lg]{--aeris-tiered-menu-font-size: .9375rem;--aeris-tiered-menu-item-min-height: calc(var(--aeris-item-height, 2.5rem) + .25rem);--aeris-tiered-menu-item-padding-block: calc(var(--aeris-item-padding-y, .5rem) * 1.15);--aeris-tiered-menu-item-padding-inline: calc(var(--aeris-item-padding-x, .75rem) * 1.15);--aeris-tiered-menu-icon-size: 1.25rem}@media(max-width:40rem){.aeris-tiered-menu__panel:not([data-popup]){inline-size:100%}}@media(prefers-reduced-motion:reduce){.aeris-tiered-menu__panel[data-positioned=true]{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: _AerisAppendTo, selector: "[aerisInternalAppendTo]", inputs: ["aerisInternalAppendTo", "aerisInternalAppendToAnchor", "aerisInternalAppendToOffset", "aerisInternalAppendToMatchWidth", "aerisInternalAppendToPlacement", "aerisInternalAppendToAlignment", "aerisInternalAppendToCollisionPadding", "aerisInternalAppendToPositionSelf"], outputs: ["aerisInternalAppendToOutside"] }] });
|
|
578
594
|
}
|
|
579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTieredMenu, decorators: [{
|
|
580
596
|
type: Component,
|
|
581
597
|
args: [{ selector: 'aeris-tiered-menu', imports: [NgTemplateOutlet, _AerisAppendTo], template: `
|
|
582
598
|
<ng-template #defaultItemTemplate let-item let-hasSubmenu="hasSubmenu">
|
|
@@ -701,6 +717,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
701
717
|
class="aeris-tiered-menu__panel"
|
|
702
718
|
[aerisInternalAppendTo]="popup() ? appendTo() : 'self'"
|
|
703
719
|
[aerisInternalAppendToAnchor]="popup() ? portalAnchor() : null"
|
|
720
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
721
|
+
[aerisInternalAppendToPositionSelf]="false"
|
|
704
722
|
[id]="id()"
|
|
705
723
|
[class]="panelStyleClass()"
|
|
706
724
|
[attr.data-popup]="popup() || null"
|
|
@@ -711,6 +729,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
711
729
|
[style.--aeris-tiered-menu-width]="width() || null"
|
|
712
730
|
[style.--aeris-tiered-menu-max-width]="maxWidth() || null"
|
|
713
731
|
(contextmenu)="suppressNativeMenu($event)"
|
|
732
|
+
(mouseleave)="handlePanelMouseLeave()"
|
|
714
733
|
>
|
|
715
734
|
<ng-container
|
|
716
735
|
[ngTemplateOutlet]="menuList"
|
|
@@ -725,7 +744,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
725
744
|
}, styles: ["aeris-tiered-menu,:host{display:inline-block;max-inline-size:100%;color:var(--aeris-tiered-menu-color, var(--aeris-text, #222222));font:inherit}:host([data-popup]){display:contents}.aeris-tiered-menu__panel{--aeris-tiered-menu-density-gap: var(--aeris-density-gap, .5rem);--aeris-tiered-menu-item-min-height: var(--aeris-item-height, 2.5rem);--aeris-tiered-menu-item-padding-block: var(--aeris-item-padding-y, .5rem);--aeris-tiered-menu-item-padding-inline: var(--aeris-item-padding-x, .75rem);position:relative;inline-size:var(--aeris-tiered-menu-width, 14rem);max-inline-size:var(--aeris-tiered-menu-max-width, min(22rem, 100%));padding:var(--aeris-tiered-menu-padding, .375rem);border:var(--aeris-tiered-menu-border-width, 1px) solid var(--aeris-tiered-menu-border, var(--aeris-border));border-radius:var(--aeris-tiered-menu-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-tiered-menu-background, var(--aeris-surface, #fff));color:var(--aeris-tiered-menu-color, var(--aeris-text, #222222));box-shadow:var(--aeris-tiered-menu-shadow, 0 1rem 2.75rem rgba(0, 0, 0, .14));overflow:visible}.aeris-tiered-menu__panel[data-popup]{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--aeris-tiered-menu-z-index, 1060);max-inline-size:var(--aeris-tiered-menu-max-width, min(22rem, 100vw - 1rem));opacity:0;transform:translateY(-.25rem) scale(.985);transform-origin:top left}.aeris-tiered-menu__panel[data-positioned=true]{opacity:1;transform:translateY(0) scale(1);transition:opacity .14s ease,transform .14s ease}.aeris-tiered-menu__list{display:grid;gap:var(--aeris-tiered-menu-list-gap, calc(var(--aeris-tiered-menu-density-gap) * .25));min-inline-size:0;margin:0;padding:0;list-style:none}.aeris-tiered-menu__list[data-level=\"0\"]{max-block-size:var(--aeris-tiered-menu-max-height, min(26rem, 100vh - 1rem));max-block-size:var(--aeris-tiered-menu-max-height, min(26rem, 100dvh - 1rem));overflow:visible}.aeris-tiered-menu__item-shell{position:relative;min-inline-size:0}.aeris-tiered-menu__item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:var(--aeris-tiered-menu-item-gap, var(--aeris-tiered-menu-density-gap));inline-size:100%;min-block-size:var(--aeris-tiered-menu-item-min-height, 2.25rem);padding:var(--aeris-tiered-menu-item-padding-block, .5rem) var(--aeris-tiered-menu-item-padding-inline, .625rem);border:0;border-radius:var(--aeris-tiered-menu-item-radius, var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem)));background:transparent;color:var(--aeris-tiered-menu-item-color, inherit);font:inherit;font-size:var(--aeris-tiered-menu-font-size, .875rem);font-weight:650;line-height:1.3;text-align:start;text-decoration:none;cursor:pointer}.aeris-tiered-menu__item[data-custom-template=true]{display:block}.aeris-tiered-menu__item:hover,.aeris-tiered-menu__item-shell[data-active=true]>.aeris-tiered-menu__item,.aeris-tiered-menu__item-shell[data-open=true]>.aeris-tiered-menu__item{background:var(--aeris-tiered-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)));color:var(--aeris-tiered-menu-item-hover-color, var(--aeris-text, #222222))}.aeris-tiered-menu__item:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, var(--aeris-primary, #5f6f36)) 42%,transparent);outline-offset:1px}.aeris-tiered-menu__item:disabled,.aeris-tiered-menu__item[aria-disabled=true]{cursor:not-allowed;opacity:var(--aeris-tiered-menu-disabled-opacity, .52)}.aeris-tiered-menu__icon,.aeris-tiered-menu__submenu-icon{display:inline-grid;place-items:center;inline-size:var(--aeris-tiered-menu-icon-size, 1.125rem);block-size:var(--aeris-tiered-menu-icon-size, 1.125rem);color:var(--aeris-tiered-menu-icon-color, currentColor)}.aeris-tiered-menu__submenu-icon{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.aeris-tiered-menu__label{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-tiered-menu__badge{inline-size:max-content;min-inline-size:1.35rem;max-inline-size:var(--aeris-tiered-menu-badge-max-width, min(7rem, 36vw));justify-self:end;padding:.125rem .375rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-tiered-menu-badge-background, color-mix(in srgb, var(--aeris-primary, #5f6f36) 16%, transparent));color:var(--aeris-tiered-menu-badge-color, var(--aeris-primary-text, #5f6f36));font-size:.75rem;font-weight:800;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.aeris-tiered-menu__shortcut{min-inline-size:0;max-inline-size:var(--aeris-tiered-menu-shortcut-max-width, min(8rem, 38vw));justify-self:end;color:var(--aeris-tiered-menu-shortcut-color, var(--aeris-text-2, #555555));font:inherit;font-size:.75rem;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-tiered-menu__separator{block-size:1px;margin:var(--aeris-tiered-menu-separator-margin, calc(var(--aeris-tiered-menu-density-gap) * .5) calc(var(--aeris-tiered-menu-density-gap) * .75));background:var(--aeris-tiered-menu-separator-color, var(--aeris-border, #deddd7))}.aeris-tiered-menu__submenu{position:absolute;inset-block-start:calc(-1 * var(--aeris-tiered-menu-padding, .375rem));min-inline-size:var(--aeris-tiered-menu-submenu-width, 14rem);padding:var(--aeris-tiered-menu-padding, .375rem);border:var(--aeris-tiered-menu-border-width, 1px) solid var(--aeris-tiered-menu-border, var(--aeris-border));border-radius:var(--aeris-tiered-menu-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-tiered-menu-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-tiered-menu-shadow, 0 1rem 2.75rem rgba(0, 0, 0, .14))}.aeris-tiered-menu__submenu[data-side=end]{inset-inline-start:calc(100% + var(--aeris-tiered-menu-submenu-offset, .375rem))}.aeris-tiered-menu__submenu[data-side=start]{inset-inline-end:calc(100% + var(--aeris-tiered-menu-submenu-offset, .375rem))}.aeris-tiered-menu__panel[data-size=sm]{--aeris-tiered-menu-font-size: .8125rem;--aeris-tiered-menu-item-min-height: calc(var(--aeris-item-height, 2.5rem) - .375rem);--aeris-tiered-menu-item-padding-block: calc(var(--aeris-item-padding-y, .5rem) * .8);--aeris-tiered-menu-item-padding-inline: calc(var(--aeris-item-padding-x, .75rem) * .85);--aeris-tiered-menu-icon-size: 1rem}.aeris-tiered-menu__panel[data-size=lg]{--aeris-tiered-menu-font-size: .9375rem;--aeris-tiered-menu-item-min-height: calc(var(--aeris-item-height, 2.5rem) + .25rem);--aeris-tiered-menu-item-padding-block: calc(var(--aeris-item-padding-y, .5rem) * 1.15);--aeris-tiered-menu-item-padding-inline: calc(var(--aeris-item-padding-x, .75rem) * 1.15);--aeris-tiered-menu-icon-size: 1.25rem}@media(max-width:40rem){.aeris-tiered-menu__panel:not([data-popup]){inline-size:100%}}@media(prefers-reduced-motion:reduce){.aeris-tiered-menu__panel[data-positioned=true]{transition:none}}\n"] }]
|
|
726
745
|
}], ctorParameters: () => [], propDecorators: { panel: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], panelPortal: [{ type: i0.ViewChild, args: [i0.forwardRef(() => _AerisAppendTo), { isSignal: true }] }], menuItems: [{ type: i0.ViewChildren, args: ['menuItem', { isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisTieredMenuItemTemplate), { ...{
|
|
727
746
|
descendants: false,
|
|
728
|
-
}, isSignal: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], popup: [{ type: i0.Input, args: [{ isSignal: true, alias: "popup", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], viewportMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewportMargin", required: false }] }], hideOnOutsideClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnOutsideClick", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], restoreFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreFocus", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], navigationHandler: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigationHandler", required: false }] }], shown: [{ type: i0.Output, args: ["shown"] }], hidden: [{ type: i0.Output, args: ["hidden"] }], visibilityChanged: [{ type: i0.Output, args: ["visibilityChanged"] }], itemSelected: [{ type: i0.Output, args: ["itemSelected"] }] } });
|
|
747
|
+
}, isSignal: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], popup: [{ type: i0.Input, args: [{ isSignal: true, alias: "popup", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], viewportMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewportMargin", required: false }] }], hideOnOutsideClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnOutsideClick", required: false }] }], closeOnMouseLeave: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnMouseLeave", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], restoreFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreFocus", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], navigationHandler: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigationHandler", required: false }] }], shown: [{ type: i0.Output, args: ["shown"] }], hidden: [{ type: i0.Output, args: ["hidden"] }], visibilityChanged: [{ type: i0.Output, args: ["visibilityChanged"] }], itemSelected: [{ type: i0.Output, args: ["itemSelected"] }] } });
|
|
729
748
|
const AerisTieredMenuModule = [AerisTieredMenu, AerisTieredMenuItemTemplate];
|
|
730
749
|
|
|
731
750
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeris-ui-core-tiered-menu.mjs","sources":["../../../projects/aeris-ui/tiered-menu/aeris-tiered-menu.ts","../../../projects/aeris-ui/tiered-menu/aeris-ui-core-tiered-menu.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport {\n ɵAerisAppendTo,\n aerisInternalClampOverlayPoint,\n aerisInternalCreateFrameScheduler,\n type AerisAppendTo,\n} from '@aeris-ui/core';\n\nexport type AerisTieredMenuSize = 'sm' | 'md' | 'lg';\nexport type AerisTieredMenuCloseReason = 'api' | 'escape' | 'outside' | 'select';\n\nexport interface AerisTieredMenuItem<T = unknown> {\n readonly id?: string;\n readonly label?: string;\n readonly ariaLabel?: string;\n readonly icon?: string;\n readonly badge?: string | number;\n readonly shortcut?: string;\n readonly disabled?: boolean;\n readonly visible?: boolean;\n readonly separator?: boolean;\n readonly url?: string;\n readonly routerLink?: string | readonly (string | number)[];\n readonly target?: '_blank' | '_self' | '_parent' | '_top' | string;\n readonly rel?: string;\n readonly items?: readonly AerisTieredMenuItem<T>[];\n readonly data?: T;\n readonly command?: (event: AerisTieredMenuItemEvent<T>) => void;\n}\n\nexport interface AerisTieredMenuItemEvent<T = unknown> {\n readonly originalEvent: MouseEvent | KeyboardEvent;\n readonly item: AerisTieredMenuItem<T>;\n readonly path: readonly number[];\n readonly target: Element | null;\n}\n\nexport interface AerisTieredMenuVisibilityEvent {\n readonly originalEvent: Event | null;\n readonly visible: boolean;\n readonly reason: AerisTieredMenuCloseReason;\n readonly target: Element | null;\n}\n\nexport interface AerisTieredMenuItemTemplateContext<T = unknown> {\n readonly $implicit: AerisTieredMenuItem<T>;\n readonly item: AerisTieredMenuItem<T>;\n readonly path: readonly number[];\n readonly level: number;\n readonly active: boolean;\n readonly open: boolean;\n readonly disabled: boolean;\n readonly hasSubmenu: boolean;\n}\n\nexport type AerisTieredMenuNavigationHandler = (\n link: string | readonly (string | number)[],\n event: MouseEvent | KeyboardEvent,\n) => void;\n\ninterface AerisTieredMenuEntry<T> {\n readonly item: AerisTieredMenuItem<T>;\n readonly id: string;\n readonly path: readonly number[];\n readonly pathKey: string;\n readonly parentPathKey: string;\n readonly level: number;\n readonly href: string | null;\n readonly separator: boolean;\n readonly disabled: boolean;\n readonly active: boolean;\n readonly open: boolean;\n readonly children: readonly AerisTieredMenuEntry<T>[];\n}\n\ninterface AerisTieredMenuCoordinates {\n readonly x: number;\n readonly y: number;\n}\n\n@Directive({ selector: 'ng-template[aerisTieredMenuItem]' })\nexport class AerisTieredMenuItemTemplate<T = unknown> {\n readonly template = inject<TemplateRef<AerisTieredMenuItemTemplateContext<T>>>(TemplateRef);\n\n static ngTemplateContextGuard<T>(\n _directive: AerisTieredMenuItemTemplate<T>,\n context: unknown,\n ): context is AerisTieredMenuItemTemplateContext<T> {\n return true;\n }\n}\n\nlet nextTieredMenuId = 0;\n\n@Component({\n selector: 'aeris-tiered-menu',\n imports: [NgTemplateOutlet, ɵAerisAppendTo],\n template: `\n <ng-template #defaultItemTemplate let-item let-hasSubmenu=\"hasSubmenu\">\n @if (item.icon) {\n <span class=\"aeris-tiered-menu__icon\" aria-hidden=\"true\">{{ item.icon }}</span>\n }\n <span class=\"aeris-tiered-menu__label\">{{ item.label }}</span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"aeris-tiered-menu__badge\">{{ item.badge }}</span>\n }\n @if (item.shortcut) {\n <kbd class=\"aeris-tiered-menu__shortcut\">{{ item.shortcut }}</kbd>\n }\n @if (hasSubmenu) {\n <svg class=\"aeris-tiered-menu__submenu-icon\" viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path d=\"m7.5 4.5 5 5.5-5 5.5\" />\n </svg>\n }\n </ng-template>\n\n <ng-template #menuList let-entries let-level=\"level\">\n <ul\n class=\"aeris-tiered-menu__list\"\n [attr.role]=\"level === 0 ? 'menubar' : 'menu'\"\n [attr.aria-orientation]=\"level === 0 ? 'vertical' : null\"\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-tiered-menu__separator\" role=\"separator\"></li>\n } @else {\n <li\n class=\"aeris-tiered-menu__item-shell\"\n role=\"none\"\n [attr.data-open]=\"entry.open || null\"\n [attr.data-active]=\"entry.active || null\"\n [attr.data-disabled]=\"entry.disabled || null\"\n >\n @if (entry.href) {\n <a\n #menuItem\n class=\"aeris-tiered-menu__item\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [attr.href]=\"entry.disabled ? null : entry.href\"\n [attr.target]=\"entry.item.target || null\"\n [attr.rel]=\"\n entry.item.rel ||\n (entry.item.target === '_blank' ? 'noopener noreferrer' : null)\n \"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-disabled]=\"entry.disabled || null\"\n [attr.aria-haspopup]=\"entry.children.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.children.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.children.length ? entry.id + '-submenu' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-tiered-menu-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handleEntryPointerEnter(entry)\"\n (keydown)=\"handleItemKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()?.template ?? defaultItemTemplate\"\n [ngTemplateOutletContext]=\"itemContext(entry)\"\n />\n </a>\n } @else {\n <button\n #menuItem\n type=\"button\"\n class=\"aeris-tiered-menu__item\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [disabled]=\"entry.disabled\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-haspopup]=\"entry.children.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.children.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.children.length ? entry.id + '-submenu' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-tiered-menu-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handleEntryPointerEnter(entry)\"\n (keydown)=\"handleItemKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()?.template ?? defaultItemTemplate\"\n [ngTemplateOutletContext]=\"itemContext(entry)\"\n />\n </button>\n }\n\n @if (entry.children.length && entry.open) {\n <div\n class=\"aeris-tiered-menu__submenu\"\n [id]=\"entry.id + '-submenu'\"\n [attr.data-side]=\"submenuSide()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{\n $implicit: entry.children,\n level: entry.level + 1,\n }\"\n />\n </div>\n }\n </li>\n }\n }\n </ul>\n </ng-template>\n\n @if (panelVisible()) {\n <div\n #panel\n class=\"aeris-tiered-menu__panel\"\n [aerisInternalAppendTo]=\"popup() ? appendTo() : 'self'\"\n [aerisInternalAppendToAnchor]=\"popup() ? portalAnchor() : null\"\n [id]=\"id()\"\n [class]=\"panelStyleClass()\"\n [attr.data-popup]=\"popup() || null\"\n [attr.data-positioned]=\"!popup() || positioned() ? true : null\"\n [attr.data-size]=\"size()\"\n [style.left.px]=\"popup() ? coordinates().x : null\"\n [style.top.px]=\"popup() ? coordinates().y : null\"\n [style.--aeris-tiered-menu-width]=\"width() || null\"\n [style.--aeris-tiered-menu-max-width]=\"maxWidth() || null\"\n (contextmenu)=\"suppressNativeMenu($event)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{ $implicit: entries(), level: 0 }\"\n />\n </div>\n }\n `,\n styleUrl: './aeris-tiered-menu.scss',\n host: {\n class: 'aeris-tiered-menu',\n '[attr.data-popup]': 'popup() || null',\n '[attr.data-open]': 'panelVisible() || null',\n },\n})\nexport class AerisTieredMenu<T = unknown> {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly repositionFrame = aerisInternalCreateFrameScheduler(() => this.reposition());\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private readonly generatedId = `aeris-tiered-menu-${++nextTieredMenuId}`;\n private readonly activeTarget = signal<Element | null>(null);\n private readonly anchorPoint = signal<AerisTieredMenuCoordinates>({ x: 0, y: 0 });\n private scrollCleanup: (() => void) | null = null;\n\n protected readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n private readonly panelPortal = viewChild(ɵAerisAppendTo);\n protected readonly menuItems = viewChildren<ElementRef<HTMLElement>>('menuItem');\n protected readonly itemTemplate = contentChild(AerisTieredMenuItemTemplate<T>, {\n descendants: false,\n });\n protected readonly activePathKey = signal('');\n protected readonly openPathKey = signal('');\n protected readonly coordinates = signal<AerisTieredMenuCoordinates>({ x: 0, y: 0 });\n protected readonly positioned = signal(false);\n protected readonly submenuSide = signal<'start' | 'end'>('end');\n protected readonly panelVisible = computed(() => !this.popup() || this.open());\n protected readonly entries = computed(() =>\n this.buildEntries(this.model(), [], 0, this.activePathKey(), this.openPathKey()),\n );\n\n readonly id = input(this.generatedId);\n readonly model = input<readonly AerisTieredMenuItem<T>[]>([]);\n readonly open = model(false);\n readonly popup = input(false, { transform: booleanAttribute });\n readonly appendTo = input<AerisAppendTo>();\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly size = input<AerisTieredMenuSize>('md');\n readonly width = input('');\n readonly maxWidth = input('');\n readonly viewportMargin = input(8);\n readonly hideOnOutsideClick = input(true, { transform: booleanAttribute });\n readonly closeOnEscape = input(true, { transform: booleanAttribute });\n readonly closeOnSelect = input(true, { transform: booleanAttribute });\n readonly autoFocus = input(true, { transform: booleanAttribute });\n readonly restoreFocus = input(true, { transform: booleanAttribute });\n readonly ariaLabel = input('Tiered menu');\n readonly ariaLabelledBy = input('');\n readonly panelStyleClass = input('');\n readonly navigationHandler = input<AerisTieredMenuNavigationHandler>();\n\n readonly shown = output<AerisTieredMenuVisibilityEvent>();\n readonly hidden = output<AerisTieredMenuVisibilityEvent>();\n readonly visibilityChanged = output<AerisTieredMenuVisibilityEvent>();\n readonly itemSelected = output<AerisTieredMenuItemEvent<T>>();\n\n constructor() {\n this.destroyRef.onDestroy(() => this.stopScrollTracking());\n effect((onCleanup) => {\n if (!this.popup() || !this.open()) return;\n const document = this.host.nativeElement.ownerDocument;\n const view = document.defaultView;\n const pointerdown = (event: PointerEvent) => this.handleDocumentPointerdown(event);\n const keydown = (event: KeyboardEvent) => this.handleDocumentKeydown(event);\n const reposition = this.repositionFrame.schedule;\n document.addEventListener('pointerdown', pointerdown);\n document.addEventListener('keydown', keydown);\n view?.addEventListener('resize', reposition);\n onCleanup(() => {\n document.removeEventListener('pointerdown', pointerdown);\n document.removeEventListener('keydown', keydown);\n view?.removeEventListener('resize', reposition);\n this.repositionFrame.cancel();\n });\n });\n }\n\n show(event: MouseEvent | PointerEvent): void {\n if (this.disabled()) return;\n event.preventDefault();\n this.activeTarget.set(\n event.currentTarget instanceof Element ? event.currentTarget : this.host.nativeElement,\n );\n this.openAtTarget(event.currentTarget, event);\n }\n\n hide(\n originalEvent: Event | null = null,\n reason: AerisTieredMenuCloseReason = 'api',\n restoreFocus = this.restoreFocus(),\n ): void {\n this.openPathKey.set('');\n if (!this.popup() || !this.open()) return;\n this.stopScrollTracking();\n this.panelPortal()?.restore();\n this.open.set(false);\n this.positioned.set(false);\n const event = this.visibilityEvent(false, reason, originalEvent);\n const target = this.activeTarget();\n this.hidden.emit(event);\n this.visibilityChanged.emit(event);\n this.activeTarget.set(null);\n if (restoreFocus && target instanceof HTMLElement) queueMicrotask(() => target.focus());\n }\n\n toggle(event: MouseEvent | PointerEvent): void {\n if (this.open()) this.hide(event);\n else this.show(event);\n }\n\n focus(): void {\n this.openInitialItem();\n this.focusActiveItem();\n }\n\n reposition(): void {\n if (!this.popup() || !this.open()) return;\n const panel = this.panel()?.nativeElement;\n const view = panel?.ownerDocument.defaultView;\n if (!panel || !view) return;\n if (panel.hasAttribute('data-aeris-append-to')) return;\n\n const rect = panel.getBoundingClientRect();\n const width = rect.width || panel.offsetWidth || 240;\n const height = rect.height || panel.offsetHeight || 260;\n const anchor = this.currentAnchorPoint();\n const { x, y } = aerisInternalClampOverlayPoint(\n anchor,\n width,\n height,\n view.innerWidth,\n view.innerHeight,\n this.viewportMargin(),\n );\n this.anchorPoint.set(anchor);\n this.coordinates.set({ x, y });\n this.submenuSide.set(anchor.x > view.innerWidth / 2 ? 'start' : 'end');\n this.positioned.set(true);\n panel.style.left = `${x}px`;\n panel.style.top = `${y}px`;\n panel.setAttribute('data-positioned', 'true');\n }\n\n protected suppressNativeMenu(event: MouseEvent): void {\n event.preventDefault();\n }\n\n protected setActivePath(path: readonly number[]): void {\n this.activePathKey.set(this.pathKey(path));\n }\n\n protected handleEntryPointerEnter(entry: AerisTieredMenuEntry<T>): void {\n if (entry.disabled || entry.separator) return;\n this.activePathKey.set(entry.pathKey);\n this.openPathKey.set(entry.children.length ? entry.pathKey : entry.parentPathKey);\n }\n\n protected activateEntry(event: MouseEvent | KeyboardEvent, entry: AerisTieredMenuEntry<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 this.openPathKey.set(entry.open ? entry.parentPathKey : entry.pathKey);\n this.activePathKey.set(entry.pathKey);\n if (!entry.open) this.focusFirstChild(entry);\n return;\n }\n\n const itemEvent = {\n originalEvent: event,\n item: entry.item,\n path: entry.path,\n target: this.activeTarget(),\n };\n entry.item.command?.(itemEvent);\n this.itemSelected.emit(itemEvent);\n if (entry.item.routerLink && this.navigationHandler()) {\n event.preventDefault();\n this.navigationHandler()?.(entry.item.routerLink, event);\n }\n if (this.closeOnSelect()) this.hide(event, 'select');\n }\n\n protected handleItemKeydown(event: KeyboardEvent, entry: AerisTieredMenuEntry<T>): void {\n const openKey = this.isRtl() ? 'ArrowLeft' : 'ArrowRight';\n const closeKey = this.isRtl() ? 'ArrowRight' : 'ArrowLeft';\n\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.focusSibling(entry, 1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.focusSibling(entry, -1);\n break;\n case 'Home':\n event.preventDefault();\n this.focusEdge(entry, 'first');\n break;\n case 'End':\n event.preventDefault();\n this.focusEdge(entry, 'last');\n break;\n case openKey:\n event.preventDefault();\n if (entry.children.length) {\n this.openPathKey.set(entry.pathKey);\n this.focusFirstChild(entry);\n }\n break;\n case closeKey:\n event.preventDefault();\n this.closeSubmenu(entry);\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.activateEntry(event, entry);\n break;\n case 'Escape':\n if (!this.closeOnEscape()) return;\n event.preventDefault();\n if (entry.parentPathKey) {\n this.closeSubmenu(entry);\n } else {\n this.hide(event, 'escape');\n }\n break;\n case 'Tab':\n this.hide(event, 'outside', false);\n break;\n }\n }\n\n protected handleDocumentPointerdown(event: PointerEvent): void {\n if (!this.panelVisible() || !this.hideOnOutsideClick()) return;\n const target = event.target;\n const panel = this.panel()?.nativeElement;\n if (\n target instanceof Node &&\n (this.host.nativeElement.contains(target) || panel?.contains(target))\n ) return;\n this.hide(event, 'outside', false);\n }\n\n protected handleDocumentKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || !this.closeOnEscape()) return;\n if (!this.openPathKey() && (!this.popup() || !this.open())) return;\n event.preventDefault();\n this.hide(event, 'escape');\n }\n\n protected itemContext(entry: AerisTieredMenuEntry<T>): AerisTieredMenuItemTemplateContext<T> {\n return {\n $implicit: entry.item,\n item: entry.item,\n path: entry.path,\n level: entry.level,\n active: entry.active,\n open: entry.open,\n disabled: entry.disabled,\n hasSubmenu: entry.children.length > 0,\n };\n }\n\n private openAtTarget(target: EventTarget | null, originalEvent: Event): void {\n const element = target instanceof Element ? target : this.host.nativeElement;\n const rect = element.getBoundingClientRect();\n const y = rect.bottom + 6;\n this.anchorPoint.set({ x: rect.left, y });\n this.coordinates.set({ x: rect.left, y });\n this.positioned.set(false);\n this.open.set(true);\n this.startScrollTracking();\n this.openInitialItem();\n const event = this.visibilityEvent(true, 'api', originalEvent);\n this.shown.emit(event);\n this.visibilityChanged.emit(event);\n afterNextRender(\n () => {\n this.reposition();\n if (this.autoFocus()) this.focusActiveItem();\n },\n { injector: this.injector },\n );\n }\n\n protected readonly portalAnchor = computed(() => {\n const target = this.activeTarget();\n return target instanceof HTMLElement ? target : this.host.nativeElement;\n });\n\n private currentAnchorPoint(): AerisTieredMenuCoordinates {\n const target = this.activeTarget();\n if (!target) return this.anchorPoint();\n\n const rect = target.getBoundingClientRect();\n return { x: rect.left, y: rect.bottom + 6 };\n }\n\n private startScrollTracking(): void {\n if (this.scrollCleanup) return;\n const document = this.host.nativeElement.ownerDocument;\n const handleScroll = this.repositionFrame.schedule;\n document.addEventListener('scroll', handleScroll, true);\n this.scrollCleanup = (): void => {\n document.removeEventListener('scroll', handleScroll, true);\n this.repositionFrame.cancel();\n this.scrollCleanup = null;\n };\n }\n\n private stopScrollTracking(): void {\n this.scrollCleanup?.();\n }\n\n private buildEntries(\n items: readonly AerisTieredMenuItem<T>[],\n parentPath: readonly number[],\n level: number,\n activePathKey: string,\n openPathKey: string,\n ): readonly AerisTieredMenuEntry<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 return {\n item,\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 open: openPathKey === key || openPathKey.startsWith(`${key}.`),\n children,\n };\n });\n }\n\n private openInitialItem(): void {\n this.activePathKey.set(this.firstEnabledEntry(this.entries())?.pathKey ?? '');\n }\n\n private focusSibling(entry: AerisTieredMenuEntry<T>, step: 1 | -1): void {\n const siblings = this.enabledEntriesForParent(entry.parentPathKey);\n if (!siblings.length) return;\n const current = siblings.findIndex((item) => item.pathKey === entry.pathKey);\n const next =\n current < 0\n ? step === 1\n ? 0\n : siblings.length - 1\n : (current + step + siblings.length) % siblings.length;\n this.focusEntry(siblings[next]);\n }\n\n private focusEdge(entry: AerisTieredMenuEntry<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: AerisTieredMenuEntry<T>): void {\n afterNextRender(() => this.focusEntry(this.firstEnabledEntry(entry.children)), {\n injector: this.injector,\n });\n }\n\n private closeSubmenu(entry: AerisTieredMenuEntry<T>): void {\n if (!entry.parentPathKey) return;\n const parent = this.findEntry(entry.parentPathKey);\n this.openPathKey.set(parent?.parentPathKey ?? '');\n this.focusEntry(parent);\n }\n\n private focusActiveItem(): void {\n this.focusEntry(this.findEntry(this.activePathKey()) ?? this.firstEnabledEntry(this.entries()));\n }\n\n private focusEntry(entry: AerisTieredMenuEntry<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-tiered-menu-path') === entry.pathKey,\n )\n ?.nativeElement.focus();\n });\n }\n\n private enabledEntriesForParent(parentPathKey: string): readonly AerisTieredMenuEntry<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 AerisTieredMenuEntry<T>[],\n ): AerisTieredMenuEntry<T> | undefined {\n return entries.find((entry) => !entry.separator && !entry.disabled);\n }\n\n private findEntry(pathKey: string): AerisTieredMenuEntry<T> | undefined {\n return this.flattenEntries(this.entries()).find((entry) => entry.pathKey === pathKey);\n }\n\n private flattenEntries(\n entries: readonly AerisTieredMenuEntry<T>[],\n ): readonly AerisTieredMenuEntry<T>[] {\n return entries.flatMap((entry) => [entry, ...this.flattenEntries(entry.children)]);\n }\n\n private visibilityEvent(\n visible: boolean,\n reason: AerisTieredMenuCloseReason,\n originalEvent: Event | null,\n ): AerisTieredMenuVisibilityEvent {\n return {\n originalEvent,\n visible,\n reason,\n target: this.activeTarget(),\n };\n }\n\n private resolveHref(item: AerisTieredMenuItem<T>): string | null {\n if (item.url) return item.url;\n if (!item.routerLink) return null;\n if (typeof item.routerLink === 'string') return item.routerLink;\n return `/${item.routerLink\n .map((segment) => String(segment).replace(/^\\/+|\\/+$/g, ''))\n .filter(Boolean)\n .join('/')}`;\n }\n\n private pathKey(path: readonly number[]): string {\n return path.join('.');\n }\n\n private isRtl(): boolean {\n return this.host.nativeElement.ownerDocument.documentElement.dir === 'rtl';\n }\n\n}\n\nexport const AerisTieredMenuModule = [AerisTieredMenu, AerisTieredMenuItemTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵAerisAppendTo"],"mappings":";;;;;MAqGa,2BAA2B,CAAA;AAC7B,IAAA,QAAQ,GAAG,MAAM,CAAqD,WAAW,CAAC;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AAA,CAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MA4bU,qBAAqB,GAAG,CAAC,eAAe,EAAE,2BAA2B;;ACptBlF;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-tiered-menu.mjs","sources":["../../../projects/aeris-ui/tiered-menu/aeris-tiered-menu.ts","../../../projects/aeris-ui/tiered-menu/aeris-ui-core-tiered-menu.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport {\n ɵAerisAppendTo,\n aerisInternalClampOverlayPoint,\n aerisInternalCreateFrameScheduler,\n type AerisAppendTo,\n type AerisOverlayCollisionPadding,\n} from '@aeris-ui/core';\n\nexport type AerisTieredMenuSize = 'sm' | 'md' | 'lg';\nexport type AerisTieredMenuCloseReason = 'api' | 'escape' | 'outside' | 'select';\n\nexport interface AerisTieredMenuItem<T = unknown> {\n readonly id?: string;\n readonly label?: string;\n readonly ariaLabel?: string;\n readonly icon?: string;\n readonly badge?: string | number;\n readonly shortcut?: string;\n readonly disabled?: boolean;\n readonly visible?: boolean;\n readonly separator?: boolean;\n readonly url?: string;\n readonly routerLink?: string | readonly (string | number)[];\n readonly target?: '_blank' | '_self' | '_parent' | '_top' | string;\n readonly rel?: string;\n readonly items?: readonly AerisTieredMenuItem<T>[];\n readonly data?: T;\n readonly command?: (event: AerisTieredMenuItemEvent<T>) => void;\n}\n\nexport interface AerisTieredMenuItemEvent<T = unknown> {\n readonly originalEvent: MouseEvent | KeyboardEvent;\n readonly item: AerisTieredMenuItem<T>;\n readonly path: readonly number[];\n readonly target: Element | null;\n}\n\nexport interface AerisTieredMenuVisibilityEvent {\n readonly originalEvent: Event | null;\n readonly visible: boolean;\n readonly reason: AerisTieredMenuCloseReason;\n readonly target: Element | null;\n}\n\nexport interface AerisTieredMenuItemTemplateContext<T = unknown> {\n readonly $implicit: AerisTieredMenuItem<T>;\n readonly item: AerisTieredMenuItem<T>;\n readonly path: readonly number[];\n readonly level: number;\n readonly active: boolean;\n readonly open: boolean;\n readonly disabled: boolean;\n readonly hasSubmenu: boolean;\n}\n\nexport type AerisTieredMenuNavigationHandler = (\n link: string | readonly (string | number)[],\n event: MouseEvent | KeyboardEvent,\n) => void;\n\ninterface AerisTieredMenuEntry<T> {\n readonly item: AerisTieredMenuItem<T>;\n readonly id: string;\n readonly path: readonly number[];\n readonly pathKey: string;\n readonly parentPathKey: string;\n readonly level: number;\n readonly href: string | null;\n readonly separator: boolean;\n readonly disabled: boolean;\n readonly active: boolean;\n readonly open: boolean;\n readonly children: readonly AerisTieredMenuEntry<T>[];\n}\n\ninterface AerisTieredMenuCoordinates {\n readonly x: number;\n readonly y: number;\n}\n\n@Directive({ selector: 'ng-template[aerisTieredMenuItem]' })\nexport class AerisTieredMenuItemTemplate<T = unknown> {\n readonly template = inject<TemplateRef<AerisTieredMenuItemTemplateContext<T>>>(TemplateRef);\n\n static ngTemplateContextGuard<T>(\n _directive: AerisTieredMenuItemTemplate<T>,\n context: unknown,\n ): context is AerisTieredMenuItemTemplateContext<T> {\n return true;\n }\n}\n\nlet nextTieredMenuId = 0;\n\n@Component({\n selector: 'aeris-tiered-menu',\n imports: [NgTemplateOutlet, ɵAerisAppendTo],\n template: `\n <ng-template #defaultItemTemplate let-item let-hasSubmenu=\"hasSubmenu\">\n @if (item.icon) {\n <span class=\"aeris-tiered-menu__icon\" aria-hidden=\"true\">{{ item.icon }}</span>\n }\n <span class=\"aeris-tiered-menu__label\">{{ item.label }}</span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"aeris-tiered-menu__badge\">{{ item.badge }}</span>\n }\n @if (item.shortcut) {\n <kbd class=\"aeris-tiered-menu__shortcut\">{{ item.shortcut }}</kbd>\n }\n @if (hasSubmenu) {\n <svg class=\"aeris-tiered-menu__submenu-icon\" viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path d=\"m7.5 4.5 5 5.5-5 5.5\" />\n </svg>\n }\n </ng-template>\n\n <ng-template #menuList let-entries let-level=\"level\">\n <ul\n class=\"aeris-tiered-menu__list\"\n [attr.role]=\"level === 0 ? 'menubar' : 'menu'\"\n [attr.aria-orientation]=\"level === 0 ? 'vertical' : null\"\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-tiered-menu__separator\" role=\"separator\"></li>\n } @else {\n <li\n class=\"aeris-tiered-menu__item-shell\"\n role=\"none\"\n [attr.data-open]=\"entry.open || null\"\n [attr.data-active]=\"entry.active || null\"\n [attr.data-disabled]=\"entry.disabled || null\"\n >\n @if (entry.href) {\n <a\n #menuItem\n class=\"aeris-tiered-menu__item\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [attr.href]=\"entry.disabled ? null : entry.href\"\n [attr.target]=\"entry.item.target || null\"\n [attr.rel]=\"\n entry.item.rel ||\n (entry.item.target === '_blank' ? 'noopener noreferrer' : null)\n \"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-disabled]=\"entry.disabled || null\"\n [attr.aria-haspopup]=\"entry.children.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.children.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.children.length ? entry.id + '-submenu' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-tiered-menu-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handleEntryPointerEnter(entry)\"\n (keydown)=\"handleItemKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()?.template ?? defaultItemTemplate\"\n [ngTemplateOutletContext]=\"itemContext(entry)\"\n />\n </a>\n } @else {\n <button\n #menuItem\n type=\"button\"\n class=\"aeris-tiered-menu__item\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [disabled]=\"entry.disabled\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-haspopup]=\"entry.children.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.children.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.children.length ? entry.id + '-submenu' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-tiered-menu-path]=\"entry.pathKey\"\n [attr.data-custom-template]=\"itemTemplate() ? true : null\"\n (click)=\"activateEntry($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"handleEntryPointerEnter(entry)\"\n (keydown)=\"handleItemKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()?.template ?? defaultItemTemplate\"\n [ngTemplateOutletContext]=\"itemContext(entry)\"\n />\n </button>\n }\n\n @if (entry.children.length && entry.open) {\n <div\n class=\"aeris-tiered-menu__submenu\"\n [id]=\"entry.id + '-submenu'\"\n [attr.data-side]=\"submenuSide()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{\n $implicit: entry.children,\n level: entry.level + 1,\n }\"\n />\n </div>\n }\n </li>\n }\n }\n </ul>\n </ng-template>\n\n @if (panelVisible()) {\n <div\n #panel\n class=\"aeris-tiered-menu__panel\"\n [aerisInternalAppendTo]=\"popup() ? appendTo() : 'self'\"\n [aerisInternalAppendToAnchor]=\"popup() ? portalAnchor() : null\"\n [aerisInternalAppendToCollisionPadding]=\"viewportMargin()\"\n [aerisInternalAppendToPositionSelf]=\"false\"\n [id]=\"id()\"\n [class]=\"panelStyleClass()\"\n [attr.data-popup]=\"popup() || null\"\n [attr.data-positioned]=\"!popup() || positioned() ? true : null\"\n [attr.data-size]=\"size()\"\n [style.left.px]=\"popup() ? coordinates().x : null\"\n [style.top.px]=\"popup() ? coordinates().y : null\"\n [style.--aeris-tiered-menu-width]=\"width() || null\"\n [style.--aeris-tiered-menu-max-width]=\"maxWidth() || null\"\n (contextmenu)=\"suppressNativeMenu($event)\"\n (mouseleave)=\"handlePanelMouseLeave()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{ $implicit: entries(), level: 0 }\"\n />\n </div>\n }\n `,\n styleUrl: './aeris-tiered-menu.scss',\n host: {\n class: 'aeris-tiered-menu',\n '[attr.data-popup]': 'popup() || null',\n '[attr.data-open]': 'panelVisible() || null',\n },\n})\nexport class AerisTieredMenu<T = unknown> {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly repositionFrame = aerisInternalCreateFrameScheduler(() => this.reposition());\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private readonly generatedId = `aeris-tiered-menu-${++nextTieredMenuId}`;\n private readonly activeTarget = signal<Element | null>(null);\n private readonly anchorPoint = signal<AerisTieredMenuCoordinates>({ x: 0, y: 0 });\n private scrollCleanup: (() => void) | null = null;\n\n protected readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n private readonly panelPortal = viewChild(ɵAerisAppendTo);\n protected readonly menuItems = viewChildren<ElementRef<HTMLElement>>('menuItem');\n protected readonly itemTemplate = contentChild(AerisTieredMenuItemTemplate<T>, {\n descendants: false,\n });\n protected readonly activePathKey = signal('');\n protected readonly openPathKey = signal('');\n protected readonly coordinates = signal<AerisTieredMenuCoordinates>({ x: 0, y: 0 });\n protected readonly positioned = signal(false);\n protected readonly submenuSide = signal<'start' | 'end'>('end');\n protected readonly panelVisible = computed(() => !this.popup() || this.open());\n protected readonly entries = computed(() =>\n this.buildEntries(this.model(), [], 0, this.activePathKey(), this.openPathKey()),\n );\n\n readonly id = input(this.generatedId);\n readonly model = input<readonly AerisTieredMenuItem<T>[]>([]);\n readonly open = model(false);\n readonly popup = input(false, { transform: booleanAttribute });\n readonly appendTo = input<AerisAppendTo>();\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly size = input<AerisTieredMenuSize>('md');\n readonly width = input('');\n readonly maxWidth = input('');\n readonly viewportMargin = input<number | AerisOverlayCollisionPadding>(8);\n readonly hideOnOutsideClick = input(true, { transform: booleanAttribute });\n readonly closeOnMouseLeave = input(true, { transform: booleanAttribute });\n readonly closeOnEscape = input(true, { transform: booleanAttribute });\n readonly closeOnSelect = input(true, { transform: booleanAttribute });\n readonly autoFocus = input(true, { transform: booleanAttribute });\n readonly restoreFocus = input(true, { transform: booleanAttribute });\n readonly ariaLabel = input('Tiered menu');\n readonly ariaLabelledBy = input('');\n readonly panelStyleClass = input('');\n readonly navigationHandler = input<AerisTieredMenuNavigationHandler>();\n\n readonly shown = output<AerisTieredMenuVisibilityEvent>();\n readonly hidden = output<AerisTieredMenuVisibilityEvent>();\n readonly visibilityChanged = output<AerisTieredMenuVisibilityEvent>();\n readonly itemSelected = output<AerisTieredMenuItemEvent<T>>();\n\n constructor() {\n this.destroyRef.onDestroy(() => this.stopScrollTracking());\n effect((onCleanup) => {\n if (!this.popup() || !this.open()) return;\n const document = this.host.nativeElement.ownerDocument;\n const view = document.defaultView;\n const pointerdown = (event: PointerEvent) => this.handleDocumentPointerdown(event);\n const keydown = (event: KeyboardEvent) => this.handleDocumentKeydown(event);\n const reposition = this.repositionFrame.schedule;\n const viewport = view?.visualViewport;\n document.addEventListener('pointerdown', pointerdown);\n document.addEventListener('keydown', keydown);\n view?.addEventListener('resize', reposition);\n viewport?.addEventListener('resize', reposition);\n viewport?.addEventListener('scroll', reposition);\n onCleanup(() => {\n document.removeEventListener('pointerdown', pointerdown);\n document.removeEventListener('keydown', keydown);\n view?.removeEventListener('resize', reposition);\n viewport?.removeEventListener('resize', reposition);\n viewport?.removeEventListener('scroll', reposition);\n this.repositionFrame.cancel();\n });\n });\n }\n\n show(event: MouseEvent | PointerEvent): void {\n if (this.disabled()) return;\n event.preventDefault();\n this.activeTarget.set(\n event.currentTarget instanceof Element ? event.currentTarget : this.host.nativeElement,\n );\n this.openAtTarget(event.currentTarget, event);\n }\n\n hide(\n originalEvent: Event | null = null,\n reason: AerisTieredMenuCloseReason = 'api',\n restoreFocus = this.restoreFocus(),\n ): void {\n this.openPathKey.set('');\n if (!this.popup() || !this.open()) return;\n this.stopScrollTracking();\n this.panelPortal()?.restore();\n this.open.set(false);\n this.positioned.set(false);\n const event = this.visibilityEvent(false, reason, originalEvent);\n const target = this.activeTarget();\n this.hidden.emit(event);\n this.visibilityChanged.emit(event);\n this.activeTarget.set(null);\n if (restoreFocus && target instanceof HTMLElement) queueMicrotask(() => target.focus());\n }\n\n toggle(event: MouseEvent | PointerEvent): void {\n if (this.open()) this.hide(event);\n else this.show(event);\n }\n\n focus(): void {\n this.openInitialItem();\n this.focusActiveItem();\n }\n\n reposition(): void {\n if (!this.popup() || !this.open()) return;\n const panel = this.panel()?.nativeElement;\n const view = panel?.ownerDocument.defaultView;\n if (!panel || !view) return;\n if (panel.hasAttribute('data-aeris-append-to')) return;\n\n const rect = panel.getBoundingClientRect();\n const width = rect.width || panel.offsetWidth || 240;\n const height = rect.height || panel.offsetHeight || 260;\n const anchor = this.currentAnchorPoint();\n const viewport = view.visualViewport;\n const { x, y } = aerisInternalClampOverlayPoint(\n anchor,\n width,\n height,\n viewport?.width ?? view.innerWidth,\n viewport?.height ?? view.innerHeight,\n this.viewportMargin(),\n viewport?.offsetLeft ?? 0,\n viewport?.offsetTop ?? 0,\n );\n this.anchorPoint.set(anchor);\n this.coordinates.set({ x, y });\n this.submenuSide.set(\n anchor.x > (viewport?.offsetLeft ?? 0) + (viewport?.width ?? view.innerWidth) / 2\n ? 'start'\n : 'end',\n );\n this.positioned.set(true);\n panel.style.left = `${x}px`;\n panel.style.top = `${y}px`;\n panel.setAttribute('data-positioned', 'true');\n }\n\n protected suppressNativeMenu(event: MouseEvent): void {\n event.preventDefault();\n }\n\n protected setActivePath(path: readonly number[]): void {\n this.activePathKey.set(this.pathKey(path));\n }\n\n protected handleEntryPointerEnter(entry: AerisTieredMenuEntry<T>): void {\n if (entry.disabled || entry.separator) return;\n this.activePathKey.set(entry.pathKey);\n this.openPathKey.set(entry.children.length ? entry.pathKey : entry.parentPathKey);\n }\n\n protected handlePanelMouseLeave(): void {\n if (this.closeOnMouseLeave()) this.openPathKey.set('');\n }\n\n protected activateEntry(event: MouseEvent | KeyboardEvent, entry: AerisTieredMenuEntry<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 this.openPathKey.set(entry.open ? entry.parentPathKey : entry.pathKey);\n this.activePathKey.set(entry.pathKey);\n if (!entry.open) this.focusFirstChild(entry);\n return;\n }\n\n const itemEvent = {\n originalEvent: event,\n item: entry.item,\n path: entry.path,\n target: this.activeTarget(),\n };\n entry.item.command?.(itemEvent);\n this.itemSelected.emit(itemEvent);\n if (entry.item.routerLink && this.navigationHandler()) {\n event.preventDefault();\n this.navigationHandler()?.(entry.item.routerLink, event);\n }\n if (this.closeOnSelect()) this.hide(event, 'select');\n }\n\n protected handleItemKeydown(event: KeyboardEvent, entry: AerisTieredMenuEntry<T>): void {\n const openKey = this.isRtl() ? 'ArrowLeft' : 'ArrowRight';\n const closeKey = this.isRtl() ? 'ArrowRight' : 'ArrowLeft';\n\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.focusSibling(entry, 1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.focusSibling(entry, -1);\n break;\n case 'Home':\n event.preventDefault();\n this.focusEdge(entry, 'first');\n break;\n case 'End':\n event.preventDefault();\n this.focusEdge(entry, 'last');\n break;\n case openKey:\n event.preventDefault();\n if (entry.children.length) {\n this.openPathKey.set(entry.pathKey);\n this.focusFirstChild(entry);\n }\n break;\n case closeKey:\n event.preventDefault();\n this.closeSubmenu(entry);\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.activateEntry(event, entry);\n break;\n case 'Escape':\n if (!this.closeOnEscape()) return;\n event.preventDefault();\n if (entry.parentPathKey) {\n this.closeSubmenu(entry);\n } else {\n this.hide(event, 'escape');\n }\n break;\n case 'Tab':\n this.hide(event, 'outside', false);\n break;\n }\n }\n\n protected handleDocumentPointerdown(event: PointerEvent): void {\n if (!this.panelVisible() || !this.hideOnOutsideClick()) return;\n const target = event.target;\n const panel = this.panel()?.nativeElement;\n if (\n target instanceof Node &&\n (this.host.nativeElement.contains(target) || panel?.contains(target))\n )\n return;\n this.hide(event, 'outside', false);\n }\n\n protected handleDocumentKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || !this.closeOnEscape()) return;\n if (!this.openPathKey() && (!this.popup() || !this.open())) return;\n event.preventDefault();\n this.hide(event, 'escape');\n }\n\n protected itemContext(entry: AerisTieredMenuEntry<T>): AerisTieredMenuItemTemplateContext<T> {\n return {\n $implicit: entry.item,\n item: entry.item,\n path: entry.path,\n level: entry.level,\n active: entry.active,\n open: entry.open,\n disabled: entry.disabled,\n hasSubmenu: entry.children.length > 0,\n };\n }\n\n private openAtTarget(target: EventTarget | null, originalEvent: Event): void {\n const element = target instanceof Element ? target : this.host.nativeElement;\n const rect = element.getBoundingClientRect();\n const y = rect.bottom + 6;\n this.anchorPoint.set({ x: rect.left, y });\n this.coordinates.set({ x: rect.left, y });\n this.positioned.set(false);\n this.open.set(true);\n this.startScrollTracking();\n this.openInitialItem();\n const event = this.visibilityEvent(true, 'api', originalEvent);\n this.shown.emit(event);\n this.visibilityChanged.emit(event);\n afterNextRender(\n () => {\n this.reposition();\n if (this.autoFocus()) this.focusActiveItem();\n },\n { injector: this.injector },\n );\n }\n\n protected readonly portalAnchor = computed(() => {\n const target = this.activeTarget();\n return target instanceof HTMLElement ? target : this.host.nativeElement;\n });\n\n private currentAnchorPoint(): AerisTieredMenuCoordinates {\n const target = this.activeTarget();\n if (!target) return this.anchorPoint();\n\n const rect = target.getBoundingClientRect();\n return { x: rect.left, y: rect.bottom + 6 };\n }\n\n private startScrollTracking(): void {\n if (this.scrollCleanup) return;\n const document = this.host.nativeElement.ownerDocument;\n const handleScroll = this.repositionFrame.schedule;\n document.addEventListener('scroll', handleScroll, true);\n this.scrollCleanup = (): void => {\n document.removeEventListener('scroll', handleScroll, true);\n this.repositionFrame.cancel();\n this.scrollCleanup = null;\n };\n }\n\n private stopScrollTracking(): void {\n this.scrollCleanup?.();\n }\n\n private buildEntries(\n items: readonly AerisTieredMenuItem<T>[],\n parentPath: readonly number[],\n level: number,\n activePathKey: string,\n openPathKey: string,\n ): readonly AerisTieredMenuEntry<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 return {\n item,\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 open: openPathKey === key || openPathKey.startsWith(`${key}.`),\n children,\n };\n });\n }\n\n private openInitialItem(): void {\n this.activePathKey.set(this.firstEnabledEntry(this.entries())?.pathKey ?? '');\n }\n\n private focusSibling(entry: AerisTieredMenuEntry<T>, step: 1 | -1): void {\n const siblings = this.enabledEntriesForParent(entry.parentPathKey);\n if (!siblings.length) return;\n const current = siblings.findIndex((item) => item.pathKey === entry.pathKey);\n const next =\n current < 0\n ? step === 1\n ? 0\n : siblings.length - 1\n : (current + step + siblings.length) % siblings.length;\n this.focusEntry(siblings[next]);\n }\n\n private focusEdge(entry: AerisTieredMenuEntry<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: AerisTieredMenuEntry<T>): void {\n afterNextRender(() => this.focusEntry(this.firstEnabledEntry(entry.children)), {\n injector: this.injector,\n });\n }\n\n private closeSubmenu(entry: AerisTieredMenuEntry<T>): void {\n if (!entry.parentPathKey) return;\n const parent = this.findEntry(entry.parentPathKey);\n this.openPathKey.set(parent?.parentPathKey ?? '');\n this.focusEntry(parent);\n }\n\n private focusActiveItem(): void {\n this.focusEntry(this.findEntry(this.activePathKey()) ?? this.firstEnabledEntry(this.entries()));\n }\n\n private focusEntry(entry: AerisTieredMenuEntry<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-tiered-menu-path') === entry.pathKey,\n )\n ?.nativeElement.focus();\n });\n }\n\n private enabledEntriesForParent(parentPathKey: string): readonly AerisTieredMenuEntry<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 AerisTieredMenuEntry<T>[],\n ): AerisTieredMenuEntry<T> | undefined {\n return entries.find((entry) => !entry.separator && !entry.disabled);\n }\n\n private findEntry(pathKey: string): AerisTieredMenuEntry<T> | undefined {\n return this.flattenEntries(this.entries()).find((entry) => entry.pathKey === pathKey);\n }\n\n private flattenEntries(\n entries: readonly AerisTieredMenuEntry<T>[],\n ): readonly AerisTieredMenuEntry<T>[] {\n return entries.flatMap((entry) => [entry, ...this.flattenEntries(entry.children)]);\n }\n\n private visibilityEvent(\n visible: boolean,\n reason: AerisTieredMenuCloseReason,\n originalEvent: Event | null,\n ): AerisTieredMenuVisibilityEvent {\n return {\n originalEvent,\n visible,\n reason,\n target: this.activeTarget(),\n };\n }\n\n private resolveHref(item: AerisTieredMenuItem<T>): string | null {\n if (item.url) return item.url;\n if (!item.routerLink) return null;\n if (typeof item.routerLink === 'string') return item.routerLink;\n return `/${item.routerLink\n .map((segment) => String(segment).replace(/^\\/+|\\/+$/g, ''))\n .filter(Boolean)\n .join('/')}`;\n }\n\n private pathKey(path: readonly number[]): string {\n return path.join('.');\n }\n\n private isRtl(): boolean {\n return this.host.nativeElement.ownerDocument.documentElement.dir === 'rtl';\n }\n}\n\nexport const AerisTieredMenuModule = [AerisTieredMenu, AerisTieredMenuItemTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵAerisAppendTo"],"mappings":";;;;;MAsGa,2BAA2B,CAAA;AAC7B,IAAA,QAAQ,GAAG,MAAM,CAAqD,WAAW,CAAC;AAE3F,IAAA,OAAO,sBAAsB,CAC3B,UAA0C,EAC1C,OAAgB,EAAA;AAEhB,QAAA,OAAO,IAAI;IACb;uGARW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBADvC,SAAS;mBAAC,EAAE,QAAQ,EAAE,kCAAkC,EAAE;;AAY3D,IAAI,gBAAgB,GAAG,CAAC;MA4JX,eAAe,CAAA;AACT,IAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC;IAClD,eAAe,GAAG,iCAAiC,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;AAC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,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MA6cU,qBAAqB,GAAG,CAAC,eAAe,EAAE,2BAA2B;;ACzuBlF;;AAEG;;;;"}
|
|
@@ -7,10 +7,10 @@ class AerisTimelineMarkerTemplate {
|
|
|
7
7
|
static ngTemplateContextGuard(_directive, context) {
|
|
8
8
|
return true;
|
|
9
9
|
}
|
|
10
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
11
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTimelineMarkerTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisTimelineMarkerTemplate, isStandalone: true, selector: "ng-template[aerisTimelineMarker]", ngImport: i0 });
|
|
12
12
|
}
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTimelineMarkerTemplate, decorators: [{
|
|
14
14
|
type: Directive,
|
|
15
15
|
args: [{ selector: 'ng-template[aerisTimelineMarker]' }]
|
|
16
16
|
}] });
|
|
@@ -19,10 +19,10 @@ class AerisTimelineContentTemplate {
|
|
|
19
19
|
static ngTemplateContextGuard(_directive, context) {
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
23
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTimelineContentTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
23
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisTimelineContentTemplate, isStandalone: true, selector: "ng-template[aerisTimelineContent]", ngImport: i0 });
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTimelineContentTemplate, decorators: [{
|
|
26
26
|
type: Directive,
|
|
27
27
|
args: [{ selector: 'ng-template[aerisTimelineContent]' }]
|
|
28
28
|
}] });
|
|
@@ -31,19 +31,19 @@ class AerisTimelineOppositeTemplate {
|
|
|
31
31
|
static ngTemplateContextGuard(_directive, context) {
|
|
32
32
|
return true;
|
|
33
33
|
}
|
|
34
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
35
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTimelineOppositeTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
35
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisTimelineOppositeTemplate, isStandalone: true, selector: "ng-template[aerisTimelineOpposite]", ngImport: i0 });
|
|
36
36
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTimelineOppositeTemplate, decorators: [{
|
|
38
38
|
type: Directive,
|
|
39
39
|
args: [{ selector: 'ng-template[aerisTimelineOpposite]' }]
|
|
40
40
|
}] });
|
|
41
41
|
class AerisTimelineEmptyTemplate {
|
|
42
42
|
template = inject(TemplateRef);
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
44
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTimelineEmptyTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
44
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisTimelineEmptyTemplate, isStandalone: true, selector: "ng-template[aerisTimelineEmpty]", ngImport: i0 });
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTimelineEmptyTemplate, decorators: [{
|
|
47
47
|
type: Directive,
|
|
48
48
|
args: [{ selector: 'ng-template[aerisTimelineEmpty]' }]
|
|
49
49
|
}] });
|
|
@@ -109,8 +109,8 @@ class AerisTimeline {
|
|
|
109
109
|
return 'upcoming';
|
|
110
110
|
return index === activeIndex ? 'current' : 'complete';
|
|
111
111
|
}
|
|
112
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
113
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTimeline, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
113
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisTimeline, isStandalone: true, selector: "aeris-timeline", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null }, reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: true, isRequired: false, transformFunction: null }, responsive: { classPropertyName: "responsive", publicName: "responsive", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "markerTemplate", first: true, predicate: (AerisTimelineMarkerTemplate), descendants: true, isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: (AerisTimelineContentTemplate), descendants: true, isSignal: true }, { propertyName: "oppositeTemplate", first: true, predicate: (AerisTimelineOppositeTemplate), descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: AerisTimelineEmptyTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
114
114
|
<div
|
|
115
115
|
class="aeris-timeline"
|
|
116
116
|
[attr.data-orientation]="orientation()"
|
|
@@ -185,7 +185,7 @@ class AerisTimeline {
|
|
|
185
185
|
</div>
|
|
186
186
|
`, isInline: true, styles: [":host{display:block;min-width:0}.aeris-timeline{width:100%;color:var(--aeris-text, #222222)}.aeris-timeline__list{padding:0;margin:0;list-style:none}.aeris-timeline__item{min-width:0}.aeris-timeline__opposite,.aeris-timeline__content{min-width:0;padding:var(--aeris-timeline-content-padding, .125rem .875rem 1.5rem)}.aeris-timeline__opposite{color:var(--aeris-text-muted, #6d7068);font-size:.75rem;line-height:1.5}.aeris-timeline__content strong{display:block;color:var(--aeris-text, #222222);font-size:.9375rem;line-height:1.4}.aeris-timeline__content p{max-width:38rem;margin:.375rem 0 0;color:var(--aeris-text-2, #555555);font-size:.8125rem;line-height:1.65}.aeris-timeline__separator{display:flex;align-items:center}.aeris-timeline__marker{position:relative;z-index:1;width:var(--aeris-timeline-marker-size, 1rem);height:var(--aeris-timeline-marker-size, 1rem);flex:0 0 var(--aeris-timeline-marker-size, 1rem);display:grid;place-items:center;border:2px solid var(--aeris-timeline-marker-color, var(--aeris-border, #deddd7));border-radius:50%;background:var(--aeris-surface, #fff);color:var(--aeris-timeline-marker-color, var(--aeris-text-muted, #6d7068))}.aeris-timeline__marker-dot{width:.375rem;height:.375rem;border-radius:50%;background:currentColor}.aeris-timeline__marker[data-custom=true]{border:0;background:transparent}.aeris-timeline__connector{flex:1 1 auto;background:var(--aeris-timeline-connector-color, var(--aeris-border, #deddd7))}.aeris-timeline__item[data-status=info]{--aeris-timeline-marker-color: var(--aeris-info, #58798a)}.aeris-timeline__item[data-status=success]{--aeris-timeline-marker-color: var(--aeris-success, #557345)}.aeris-timeline__item[data-status=warning]{--aeris-timeline-marker-color: var(--aeris-warning, #c38600)}.aeris-timeline__item[data-status=danger]{--aeris-timeline-marker-color: var(--aeris-danger, #c81e2a)}.aeris-timeline__item[data-state=complete]{--aeris-timeline-connector-color: color-mix( in srgb, var(--aeris-primary, #5f6f36) 58%, var(--aeris-border, #deddd7) )}.aeris-timeline__item[data-state=complete][data-status=neutral],.aeris-timeline__item[data-state=current][data-status=neutral]{--aeris-timeline-marker-color: var(--aeris-primary, #5f6f36)}.aeris-timeline__item[data-state=current] .aeris-timeline__marker{box-shadow:0 0 0 4px color-mix(in srgb,var(--aeris-timeline-marker-color, var(--aeris-primary, #5f6f36)) 18%,transparent)}.aeris-timeline[data-orientation=vertical] .aeris-timeline__item{min-height:var(--aeris-timeline-item-min-height, 5.5rem);display:grid;grid-template-columns:minmax(0,1fr) var(--aeris-timeline-separator-size, 2rem) minmax(0,1fr);align-items:start}.aeris-timeline[data-orientation=vertical] .aeris-timeline__opposite{grid-column:1;grid-row:1;text-align:end}.aeris-timeline[data-orientation=vertical] .aeris-timeline__separator{height:100%;grid-column:2;grid-row:1;flex-direction:column}.aeris-timeline[data-orientation=vertical] .aeris-timeline__connector{width:var(--aeris-timeline-connector-width, 2px);min-height:1.5rem}.aeris-timeline[data-orientation=vertical] .aeris-timeline__content{grid-column:3;grid-row:1}.aeris-timeline[data-orientation=vertical] .aeris-timeline__item[data-side=end] .aeris-timeline__opposite{grid-column:3;text-align:start}.aeris-timeline[data-orientation=vertical] .aeris-timeline__item[data-side=end] .aeris-timeline__content{grid-column:1;text-align:end}.aeris-timeline[data-orientation=vertical] .aeris-timeline__item[data-side=end] .aeris-timeline__content p{margin-inline-start:auto}.aeris-timeline[data-orientation=horizontal]{overflow-x:auto;overscroll-behavior-inline:contain}.aeris-timeline[data-orientation=horizontal] .aeris-timeline__list{min-width:max-content;display:flex}.aeris-timeline[data-orientation=horizontal] .aeris-timeline__item{width:var(--aeris-timeline-horizontal-item-width, 14rem);display:grid;grid-template-rows:minmax(4.5rem,1fr) var(--aeris-timeline-separator-size, 2rem) minmax(4.5rem,1fr);flex:0 0 var(--aeris-timeline-horizontal-item-width, 14rem)}.aeris-timeline[data-orientation=horizontal] .aeris-timeline__opposite{grid-column:1;grid-row:1;align-self:end;padding-bottom:.75rem}.aeris-timeline[data-orientation=horizontal] .aeris-timeline__separator{position:relative;display:block;grid-column:1;grid-row:2;width:100%}.aeris-timeline[data-orientation=horizontal] .aeris-timeline__marker{position:absolute;top:50%;left:0;transform:translateY(-50%)}.aeris-timeline[data-orientation=horizontal] .aeris-timeline__connector{position:absolute;top:50%;right:0;left:var(--aeris-timeline-marker-size, 1rem);height:var(--aeris-timeline-connector-width, 2px);transform:translateY(-50%)}.aeris-timeline[data-orientation=horizontal] .aeris-timeline__content{grid-column:1;grid-row:3;padding-top:.75rem}.aeris-timeline[data-orientation=horizontal] .aeris-timeline__item[data-side=end] .aeris-timeline__opposite{grid-row:3;align-self:start;padding-top:.75rem;padding-bottom:1.5rem}.aeris-timeline[data-orientation=horizontal] .aeris-timeline__item[data-side=end] .aeris-timeline__content{grid-row:1;align-self:end;padding-top:.125rem;padding-bottom:.75rem}.aeris-timeline__empty{min-height:9rem;display:grid;place-items:center;padding:1.5rem;border:1px dashed var(--aeris-border);border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));color:var(--aeris-text-muted, #6d7068);font-size:.8125rem;text-align:center}@media(max-width:42rem){.aeris-timeline[data-responsive=true][data-orientation=vertical] .aeris-timeline__item{grid-template-columns:var(--aeris-timeline-separator-size, 2rem) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.aeris-timeline[data-responsive=true][data-orientation=vertical] .aeris-timeline__separator{grid-column:1;grid-row:1/span 2}.aeris-timeline[data-responsive=true][data-orientation=vertical] .aeris-timeline__opposite,.aeris-timeline[data-responsive=true][data-orientation=vertical] .aeris-timeline__item[data-side=end] .aeris-timeline__opposite{grid-column:2;grid-row:1;padding-bottom:.25rem;text-align:start}.aeris-timeline[data-responsive=true][data-orientation=vertical] .aeris-timeline__content,.aeris-timeline[data-responsive=true][data-orientation=vertical] .aeris-timeline__item[data-side=end] .aeris-timeline__content{grid-column:2;grid-row:2;text-align:start}.aeris-timeline[data-responsive=true][data-orientation=vertical] .aeris-timeline__item[data-side=end] .aeris-timeline__content p{margin-inline-start:0}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
187
187
|
}
|
|
188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisTimeline, decorators: [{
|
|
189
189
|
type: Component,
|
|
190
190
|
args: [{ selector: 'aeris-timeline', imports: [NgTemplateOutlet], template: `
|
|
191
191
|
<div
|