@aeris-ui/core 22.0.0-alpha.10 → 22.0.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -3
- package/THIRD_PARTY_LICENSES.md +48 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +34 -32
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
- package/fesm2022/aeris-ui-core-auto-complete.mjs +119 -50
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
- package/fesm2022/aeris-ui-core-avatar.mjs +6 -6
- package/fesm2022/aeris-ui-core-badge.mjs +6 -6
- package/fesm2022/aeris-ui-core-block-ui.mjs +18 -6
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +42 -24
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
- package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button-group.mjs +417 -14
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +191 -19
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +18 -18
- package/fesm2022/aeris-ui-core-carousel.mjs +81 -19
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +165 -46
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +171 -36
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +191 -22
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +702 -27
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
- package/fesm2022/aeris-ui-core-code-block.mjs +57 -7
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-color-picker.mjs +1223 -503
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
- package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-compare.mjs +61 -34
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +68 -38
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +46 -38
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +94 -43
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs +946 -0
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +1186 -650
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +157 -71
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +3 -3
- package/fesm2022/aeris-ui-core-drawer.mjs +751 -77
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +14 -6
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +847 -202
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +204 -68
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +5 -5
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
- package/fesm2022/aeris-ui-core-form-field.mjs +15 -15
- package/fesm2022/aeris-ui-core-galleria.mjs +472 -123
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +3 -3
- package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
- package/fesm2022/aeris-ui-core-inplace.mjs +56 -14
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +17 -17
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +61 -8
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +191 -28
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
- package/fesm2022/aeris-ui-core-input-text.mjs +102 -26
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
- package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
- package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
- package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs +59 -16
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +95 -52
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +103 -34
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +48 -14
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +33 -15
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +283 -65
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
- package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-order-list.mjs +191 -35
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +48 -14
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +300 -61
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +21 -29
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +166 -65
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +528 -56
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +504 -72
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +75 -21
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +24 -6
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +119 -19
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +6 -6
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
- package/fesm2022/aeris-ui-core-scroll-top.mjs +59 -12
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
- package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-select.mjs +206 -87
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
- package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
- package/fesm2022/aeris-ui-core-slider.mjs +3 -3
- package/fesm2022/aeris-ui-core-speed-dial.mjs +34 -13
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +26 -11
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +35 -20
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +23 -17
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
- package/fesm2022/aeris-ui-core-table.mjs +945 -106
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +81 -19
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +89 -28
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +202 -126
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +8 -8
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +94 -43
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +17 -17
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +73 -44
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
- package/fesm2022/aeris-ui-core-toolbar.mjs +916 -44
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
- package/fesm2022/aeris-ui-core-tree-select.mjs +252 -61
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +493 -124
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +165 -27
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +632 -12
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +29 -1
- package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +32 -0
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +8 -9
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +8 -21
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +6 -0
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +64 -91
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +7 -5
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +11 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +81 -10
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_choice-card.scss +93 -0
- package/styles/_icon-artwork.scss +14 -0
- package/styles/_icon-template.scss +42 -0
- package/styles/_selection-icons.scss +12 -0
- package/styles/_table-pinning.scss +119 -0
- package/styles/aeris.css +35 -12
- package/styles/controls.css +149 -11
- package/tools/aeris-theme.mjs +3 -3
- package/tools/aeris-theme.schema.json +13 -11
- package/types/aeris-ui-core-auto-complete.d.ts +12 -0
- package/types/aeris-ui-core-block-ui.d.ts +1 -0
- package/types/aeris-ui-core-button-forms.d.ts +18 -0
- package/types/aeris-ui-core-button-group.d.ts +116 -3
- package/types/aeris-ui-core-button.d.ts +52 -4
- package/types/aeris-ui-core-carousel.d.ts +12 -0
- package/types/aeris-ui-core-cascade-select.d.ts +18 -0
- package/types/aeris-ui-core-chart.d.ts +26 -10
- package/types/aeris-ui-core-checkbox.d.ts +36 -2
- package/types/aeris-ui-core-chip.d.ts +196 -1
- package/types/aeris-ui-core-code-block.d.ts +13 -4
- package/types/aeris-ui-core-color-picker.d.ts +117 -15
- package/types/aeris-ui-core-command-palette.d.ts +267 -0
- package/types/aeris-ui-core-compare.d.ts +6 -0
- package/types/aeris-ui-core-confirm-dialog.d.ts +9 -1
- package/types/aeris-ui-core-context-menu.d.ts +6 -0
- package/types/aeris-ui-core-date-picker.d.ts +90 -20
- package/types/aeris-ui-core-dialog.d.ts +15 -2
- package/types/aeris-ui-core-drawer.d.ts +105 -4
- package/types/aeris-ui-core-dynamic-dialog.d.ts +6 -2
- package/types/aeris-ui-core-editor.d.ts +8 -1
- package/types/aeris-ui-core-file-upload.d.ts +18 -0
- package/types/aeris-ui-core-galleria.d.ts +48 -0
- package/types/aeris-ui-core-inplace.d.ts +6 -0
- package/types/aeris-ui-core-input-mask.d.ts +8 -1
- package/types/aeris-ui-core-input-number.d.ts +20 -1
- package/types/aeris-ui-core-input-text.d.ts +11 -1
- package/types/aeris-ui-core-kbd.d.ts +74 -0
- package/types/aeris-ui-core-listbox.d.ts +222 -0
- package/types/aeris-ui-core-mega-menu.d.ts +6 -0
- package/types/aeris-ui-core-menu.d.ts +6 -0
- package/types/aeris-ui-core-menubar.d.ts +16 -0
- package/types/aeris-ui-core-message.d.ts +6 -0
- package/types/aeris-ui-core-meter-group.d.ts +6 -0
- package/types/aeris-ui-core-multi-select.d.ts +30 -0
- package/types/aeris-ui-core-navbar.d.ts +208 -0
- package/types/aeris-ui-core-order-list.d.ts +24 -0
- package/types/aeris-ui-core-organization-chart.d.ts +6 -0
- package/types/aeris-ui-core-paginator.d.ts +37 -1
- package/types/aeris-ui-core-password.d.ts +18 -0
- package/types/aeris-ui-core-pick-list.d.ts +54 -0
- package/types/aeris-ui-core-popover.d.ts +80 -5
- package/types/aeris-ui-core-progress-bar.d.ts +6 -0
- package/types/aeris-ui-core-progress-spinner.d.ts +6 -0
- package/types/aeris-ui-core-radio-button.d.ts +24 -2
- package/types/aeris-ui-core-rating.d.ts +1 -1
- package/types/aeris-ui-core-scroll-top.d.ts +7 -0
- package/types/aeris-ui-core-select-native.d.ts +40 -0
- package/types/aeris-ui-core-select.d.ts +12 -0
- package/types/aeris-ui-core-sidebar.d.ts +220 -0
- package/types/aeris-ui-core-splitter.d.ts +3 -4
- package/types/aeris-ui-core-table.d.ts +144 -11
- package/types/aeris-ui-core-tabs.d.ts +12 -0
- package/types/aeris-ui-core-textarea.d.ts +11 -1
- package/types/aeris-ui-core-theme-builder.d.ts +31 -296
- package/types/aeris-ui-core-tiered-menu.d.ts +6 -0
- package/types/aeris-ui-core-toast.d.ts +8 -2
- package/types/aeris-ui-core-toolbar.d.ts +213 -3
- package/types/aeris-ui-core-tree-select.d.ts +30 -0
- package/types/aeris-ui-core-tree-table.d.ts +75 -14
- package/types/aeris-ui-core-tree.d.ts +24 -0
- package/types/aeris-ui-core.d.ts +140 -3
|
@@ -0,0 +1,1293 @@
|
|
|
1
|
+
import { DOCUMENT, NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, ElementRef, InjectionToken, Renderer2, ViewEncapsulation, afterRenderEffect, booleanAttribute, computed, effect, forwardRef, inject, input, linkedSignal, model, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { aerisInternalFocusableElements, ɵAerisIcon } from "@aeris-ui/core";
|
|
5
|
+
import * as i1 from "@aeris-ui/core/drawer";
|
|
6
|
+
import { AerisDrawerModule } from "@aeris-ui/core/drawer";
|
|
7
|
+
import { AerisTooltip } from "@aeris-ui/core/tooltip";
|
|
8
|
+
const sidebarContext = new InjectionToken("AerisSidebar context");
|
|
9
|
+
const toggleElements = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
let nextSidebarId = 0;
|
|
11
|
+
let nextGroupId = 0;
|
|
12
|
+
var AerisSidebarHeader = class AerisSidebarHeader {
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
14
|
+
minVersion: "12.0.0",
|
|
15
|
+
version: "22.2.4",
|
|
16
|
+
ngImport: i0,
|
|
17
|
+
type: AerisSidebarHeader,
|
|
18
|
+
deps: [],
|
|
19
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
20
|
+
});
|
|
21
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
22
|
+
minVersion: "14.0.0",
|
|
23
|
+
version: "22.2.4",
|
|
24
|
+
type: AerisSidebarHeader,
|
|
25
|
+
isStandalone: true,
|
|
26
|
+
selector: "[aerisSidebarHeader]",
|
|
27
|
+
host: { classAttribute: "aeris-sidebar__brand" },
|
|
28
|
+
ngImport: i0
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
32
|
+
minVersion: "12.0.0",
|
|
33
|
+
version: "22.2.4",
|
|
34
|
+
ngImport: i0,
|
|
35
|
+
type: AerisSidebarHeader,
|
|
36
|
+
decorators: [{
|
|
37
|
+
type: Directive,
|
|
38
|
+
args: [{
|
|
39
|
+
selector: "[aerisSidebarHeader]",
|
|
40
|
+
host: { class: "aeris-sidebar__brand" }
|
|
41
|
+
}]
|
|
42
|
+
}]
|
|
43
|
+
});
|
|
44
|
+
var AerisSidebarFooter = class AerisSidebarFooter {
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
46
|
+
minVersion: "12.0.0",
|
|
47
|
+
version: "22.2.4",
|
|
48
|
+
ngImport: i0,
|
|
49
|
+
type: AerisSidebarFooter,
|
|
50
|
+
deps: [],
|
|
51
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
52
|
+
});
|
|
53
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
54
|
+
minVersion: "14.0.0",
|
|
55
|
+
version: "22.2.4",
|
|
56
|
+
type: AerisSidebarFooter,
|
|
57
|
+
isStandalone: true,
|
|
58
|
+
selector: "[aerisSidebarFooter]",
|
|
59
|
+
host: { classAttribute: "aeris-sidebar__footer" },
|
|
60
|
+
ngImport: i0
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
64
|
+
minVersion: "12.0.0",
|
|
65
|
+
version: "22.2.4",
|
|
66
|
+
ngImport: i0,
|
|
67
|
+
type: AerisSidebarFooter,
|
|
68
|
+
decorators: [{
|
|
69
|
+
type: Directive,
|
|
70
|
+
args: [{
|
|
71
|
+
selector: "[aerisSidebarFooter]",
|
|
72
|
+
host: { class: "aeris-sidebar__footer" }
|
|
73
|
+
}]
|
|
74
|
+
}]
|
|
75
|
+
});
|
|
76
|
+
var AerisSidebarIcon = class AerisSidebarIcon {
|
|
77
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
78
|
+
minVersion: "12.0.0",
|
|
79
|
+
version: "22.2.4",
|
|
80
|
+
ngImport: i0,
|
|
81
|
+
type: AerisSidebarIcon,
|
|
82
|
+
deps: [],
|
|
83
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
84
|
+
});
|
|
85
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
86
|
+
minVersion: "14.0.0",
|
|
87
|
+
version: "22.2.4",
|
|
88
|
+
type: AerisSidebarIcon,
|
|
89
|
+
isStandalone: true,
|
|
90
|
+
selector: "[aerisSidebarIcon]",
|
|
91
|
+
host: {
|
|
92
|
+
attributes: { "aria-hidden": "true" },
|
|
93
|
+
classAttribute: "aeris-sidebar__icon"
|
|
94
|
+
},
|
|
95
|
+
ngImport: i0
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
99
|
+
minVersion: "12.0.0",
|
|
100
|
+
version: "22.2.4",
|
|
101
|
+
ngImport: i0,
|
|
102
|
+
type: AerisSidebarIcon,
|
|
103
|
+
decorators: [{
|
|
104
|
+
type: Directive,
|
|
105
|
+
args: [{
|
|
106
|
+
selector: "[aerisSidebarIcon]",
|
|
107
|
+
host: {
|
|
108
|
+
class: "aeris-sidebar__icon",
|
|
109
|
+
"aria-hidden": "true"
|
|
110
|
+
}
|
|
111
|
+
}]
|
|
112
|
+
}]
|
|
113
|
+
});
|
|
114
|
+
var AerisSidebarBadge = class AerisSidebarBadge {
|
|
115
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
116
|
+
minVersion: "12.0.0",
|
|
117
|
+
version: "22.2.4",
|
|
118
|
+
ngImport: i0,
|
|
119
|
+
type: AerisSidebarBadge,
|
|
120
|
+
deps: [],
|
|
121
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
122
|
+
});
|
|
123
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
124
|
+
minVersion: "14.0.0",
|
|
125
|
+
version: "22.2.4",
|
|
126
|
+
type: AerisSidebarBadge,
|
|
127
|
+
isStandalone: true,
|
|
128
|
+
selector: "[aerisSidebarBadge]",
|
|
129
|
+
host: { classAttribute: "aeris-sidebar__badge" },
|
|
130
|
+
ngImport: i0
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
134
|
+
minVersion: "12.0.0",
|
|
135
|
+
version: "22.2.4",
|
|
136
|
+
ngImport: i0,
|
|
137
|
+
type: AerisSidebarBadge,
|
|
138
|
+
decorators: [{
|
|
139
|
+
type: Directive,
|
|
140
|
+
args: [{
|
|
141
|
+
selector: "[aerisSidebarBadge]",
|
|
142
|
+
host: { class: "aeris-sidebar__badge" }
|
|
143
|
+
}]
|
|
144
|
+
}]
|
|
145
|
+
});
|
|
146
|
+
var AerisSidebar = class AerisSidebar {
|
|
147
|
+
host = inject(ElementRef).nativeElement;
|
|
148
|
+
document = inject(DOCUMENT);
|
|
149
|
+
navigation = viewChild("navigationElement", ...ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []);
|
|
150
|
+
responsiveMobile = signal(false, ...ngDevMode ? [{ debugName: "responsiveMobile" }] : /* istanbul ignore next */ []);
|
|
151
|
+
inheritedDirection = signal(null, ...ngDevMode ? [{ debugName: "inheritedDirection" }] : /* istanbul ignore next */ []);
|
|
152
|
+
direction = computed(() => this.inheritedDirection() ?? (this.document.documentElement.getAttribute("dir") === "rtl" ? "rtl" : "ltr"), ...ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []);
|
|
153
|
+
pendingFocus = signal(null, ...ngDevMode ? [{ debugName: "pendingFocus" }] : /* istanbul ignore next */ []);
|
|
154
|
+
collapsed = model(false, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
|
|
155
|
+
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
156
|
+
mode = input("auto", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
|
|
157
|
+
breakpoint = input(768, ...ngDevMode ? [{ debugName: "breakpoint" }] : /* istanbul ignore next */ []);
|
|
158
|
+
side = input("start", ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
|
|
159
|
+
width = input("", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
160
|
+
collapsedWidth = input("", ...ngDevMode ? [{ debugName: "collapsedWidth" }] : /* istanbul ignore next */ []);
|
|
161
|
+
mobileWidth = input("min(20rem, calc(100vw - 2rem))", ...ngDevMode ? [{ debugName: "mobileWidth" }] : /* istanbul ignore next */ []);
|
|
162
|
+
collapsible = input(true, {
|
|
163
|
+
...ngDevMode ? { debugName: "collapsible" } : /* istanbul ignore next */ {},
|
|
164
|
+
transform: booleanAttribute
|
|
165
|
+
});
|
|
166
|
+
closeOnNavigate = input(true, {
|
|
167
|
+
...ngDevMode ? { debugName: "closeOnNavigate" } : /* istanbul ignore next */ {},
|
|
168
|
+
transform: booleanAttribute
|
|
169
|
+
});
|
|
170
|
+
swipeToClose = input(true, {
|
|
171
|
+
...ngDevMode ? { debugName: "swipeToClose" } : /* istanbul ignore next */ {},
|
|
172
|
+
transform: booleanAttribute
|
|
173
|
+
});
|
|
174
|
+
ariaLabel = input("Navigation", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
175
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
176
|
+
collapseAriaLabel = input("Collapse navigation", ...ngDevMode ? [{ debugName: "collapseAriaLabel" }] : /* istanbul ignore next */ []);
|
|
177
|
+
expandAriaLabel = input("Expand navigation", ...ngDevMode ? [{ debugName: "expandAriaLabel" }] : /* istanbul ignore next */ []);
|
|
178
|
+
closeAriaLabel = input("Close navigation", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
|
|
179
|
+
navigationId = `aeris-sidebar-${nextSidebarId++}`;
|
|
180
|
+
mobile = computed(() => this.mode() === "mobile" || this.mode() === "auto" && this.responsiveMobile(), ...ngDevMode ? [{ debugName: "mobile" }] : /* istanbul ignore next */ []);
|
|
181
|
+
iconOnly = computed(() => !this.mobile() && this.collapsed(), ...ngDevMode ? [{ debugName: "iconOnly" }] : /* istanbul ignore next */ []);
|
|
182
|
+
hasCollapsed = linkedSignal({
|
|
183
|
+
...ngDevMode ? { debugName: "hasCollapsed" } : /* istanbul ignore next */ {},
|
|
184
|
+
source: this.iconOnly,
|
|
185
|
+
computation: (iconOnly, previous) => iconOnly || previous?.value === true
|
|
186
|
+
});
|
|
187
|
+
drawerPosition = computed(() => this.side() === "start" === (this.direction() === "ltr") ? "left" : "right", ...ngDevMode ? [{ debugName: "drawerPosition" }] : /* istanbul ignore next */ []);
|
|
188
|
+
constructor() {
|
|
189
|
+
afterRenderEffect((onCleanup) => {
|
|
190
|
+
const breakpoint = this.breakpoint();
|
|
191
|
+
if (this.mode() !== "auto") return;
|
|
192
|
+
const view = this.document.defaultView;
|
|
193
|
+
if (!view?.matchMedia) return;
|
|
194
|
+
const pixels = Number.isFinite(breakpoint) ? Math.max(0, breakpoint) : 768;
|
|
195
|
+
const query = view.matchMedia(`(max-width: ${pixels}px)`);
|
|
196
|
+
const update = () => {
|
|
197
|
+
if (query.matches && this.host.contains(this.document.activeElement)) this.pendingFocus.set("toggle");
|
|
198
|
+
this.responsiveMobile.set(query.matches);
|
|
199
|
+
};
|
|
200
|
+
update();
|
|
201
|
+
query.addEventListener("change", update);
|
|
202
|
+
onCleanup(() => query.removeEventListener("change", update));
|
|
203
|
+
});
|
|
204
|
+
afterRenderEffect((onCleanup) => {
|
|
205
|
+
const view = this.document.defaultView;
|
|
206
|
+
if (!view) return;
|
|
207
|
+
const update = () => this.inheritedDirection.set(view.getComputedStyle(this.host).direction === "rtl" ? "rtl" : "ltr");
|
|
208
|
+
update();
|
|
209
|
+
const observer = new MutationObserver(update);
|
|
210
|
+
for (let node = this.host; node; node = node.parentElement) observer.observe(node, {
|
|
211
|
+
attributes: true,
|
|
212
|
+
attributeFilter: ["dir"]
|
|
213
|
+
});
|
|
214
|
+
onCleanup(() => observer.disconnect());
|
|
215
|
+
});
|
|
216
|
+
let previousMobile = false;
|
|
217
|
+
effect(() => {
|
|
218
|
+
const mobile = this.mobile();
|
|
219
|
+
if (mobile === previousMobile) return;
|
|
220
|
+
const focused = this.navigation()?.nativeElement.contains(this.document.activeElement);
|
|
221
|
+
if (!mobile && this.open()) {
|
|
222
|
+
this.pendingFocus.set("navigation");
|
|
223
|
+
this.open.set(false);
|
|
224
|
+
}
|
|
225
|
+
if (focused) this.pendingFocus.set(mobile ? "toggle" : "navigation");
|
|
226
|
+
previousMobile = mobile;
|
|
227
|
+
});
|
|
228
|
+
afterRenderEffect(() => {
|
|
229
|
+
const destination = this.pendingFocus();
|
|
230
|
+
if (!destination) return;
|
|
231
|
+
const navigation = this.navigation()?.nativeElement;
|
|
232
|
+
if (destination === "navigation" && navigation) (navigation.querySelector("[aria-current=\"page\"]") ?? aerisInternalFocusableElements(navigation)[0])?.focus();
|
|
233
|
+
else {
|
|
234
|
+
const toggles = toggleElements.get(this);
|
|
235
|
+
if (toggles) {
|
|
236
|
+
for (const toggle of toggles) if (toggle.isConnected && toggle.getClientRects().length) {
|
|
237
|
+
toggle.focus();
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
this.pendingFocus.set(null);
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
toggle() {
|
|
246
|
+
if (this.mobile()) this.open.update((open) => !open);
|
|
247
|
+
else if (this.collapsible()) this.collapsed.update((collapsed) => !collapsed);
|
|
248
|
+
}
|
|
249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
250
|
+
minVersion: "12.0.0",
|
|
251
|
+
version: "22.2.4",
|
|
252
|
+
ngImport: i0,
|
|
253
|
+
type: AerisSidebar,
|
|
254
|
+
deps: [],
|
|
255
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
256
|
+
});
|
|
257
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
258
|
+
minVersion: "17.0.0",
|
|
259
|
+
version: "22.2.4",
|
|
260
|
+
type: AerisSidebar,
|
|
261
|
+
isStandalone: true,
|
|
262
|
+
selector: "aeris-sidebar",
|
|
263
|
+
inputs: {
|
|
264
|
+
collapsed: {
|
|
265
|
+
classPropertyName: "collapsed",
|
|
266
|
+
publicName: "collapsed",
|
|
267
|
+
isSignal: true,
|
|
268
|
+
isRequired: false,
|
|
269
|
+
transformFunction: null
|
|
270
|
+
},
|
|
271
|
+
open: {
|
|
272
|
+
classPropertyName: "open",
|
|
273
|
+
publicName: "open",
|
|
274
|
+
isSignal: true,
|
|
275
|
+
isRequired: false,
|
|
276
|
+
transformFunction: null
|
|
277
|
+
},
|
|
278
|
+
mode: {
|
|
279
|
+
classPropertyName: "mode",
|
|
280
|
+
publicName: "mode",
|
|
281
|
+
isSignal: true,
|
|
282
|
+
isRequired: false,
|
|
283
|
+
transformFunction: null
|
|
284
|
+
},
|
|
285
|
+
breakpoint: {
|
|
286
|
+
classPropertyName: "breakpoint",
|
|
287
|
+
publicName: "breakpoint",
|
|
288
|
+
isSignal: true,
|
|
289
|
+
isRequired: false,
|
|
290
|
+
transformFunction: null
|
|
291
|
+
},
|
|
292
|
+
side: {
|
|
293
|
+
classPropertyName: "side",
|
|
294
|
+
publicName: "side",
|
|
295
|
+
isSignal: true,
|
|
296
|
+
isRequired: false,
|
|
297
|
+
transformFunction: null
|
|
298
|
+
},
|
|
299
|
+
width: {
|
|
300
|
+
classPropertyName: "width",
|
|
301
|
+
publicName: "width",
|
|
302
|
+
isSignal: true,
|
|
303
|
+
isRequired: false,
|
|
304
|
+
transformFunction: null
|
|
305
|
+
},
|
|
306
|
+
collapsedWidth: {
|
|
307
|
+
classPropertyName: "collapsedWidth",
|
|
308
|
+
publicName: "collapsedWidth",
|
|
309
|
+
isSignal: true,
|
|
310
|
+
isRequired: false,
|
|
311
|
+
transformFunction: null
|
|
312
|
+
},
|
|
313
|
+
mobileWidth: {
|
|
314
|
+
classPropertyName: "mobileWidth",
|
|
315
|
+
publicName: "mobileWidth",
|
|
316
|
+
isSignal: true,
|
|
317
|
+
isRequired: false,
|
|
318
|
+
transformFunction: null
|
|
319
|
+
},
|
|
320
|
+
collapsible: {
|
|
321
|
+
classPropertyName: "collapsible",
|
|
322
|
+
publicName: "collapsible",
|
|
323
|
+
isSignal: true,
|
|
324
|
+
isRequired: false,
|
|
325
|
+
transformFunction: null
|
|
326
|
+
},
|
|
327
|
+
closeOnNavigate: {
|
|
328
|
+
classPropertyName: "closeOnNavigate",
|
|
329
|
+
publicName: "closeOnNavigate",
|
|
330
|
+
isSignal: true,
|
|
331
|
+
isRequired: false,
|
|
332
|
+
transformFunction: null
|
|
333
|
+
},
|
|
334
|
+
swipeToClose: {
|
|
335
|
+
classPropertyName: "swipeToClose",
|
|
336
|
+
publicName: "swipeToClose",
|
|
337
|
+
isSignal: true,
|
|
338
|
+
isRequired: false,
|
|
339
|
+
transformFunction: null
|
|
340
|
+
},
|
|
341
|
+
ariaLabel: {
|
|
342
|
+
classPropertyName: "ariaLabel",
|
|
343
|
+
publicName: "ariaLabel",
|
|
344
|
+
isSignal: true,
|
|
345
|
+
isRequired: false,
|
|
346
|
+
transformFunction: null
|
|
347
|
+
},
|
|
348
|
+
ariaLabelledBy: {
|
|
349
|
+
classPropertyName: "ariaLabelledBy",
|
|
350
|
+
publicName: "ariaLabelledBy",
|
|
351
|
+
isSignal: true,
|
|
352
|
+
isRequired: false,
|
|
353
|
+
transformFunction: null
|
|
354
|
+
},
|
|
355
|
+
collapseAriaLabel: {
|
|
356
|
+
classPropertyName: "collapseAriaLabel",
|
|
357
|
+
publicName: "collapseAriaLabel",
|
|
358
|
+
isSignal: true,
|
|
359
|
+
isRequired: false,
|
|
360
|
+
transformFunction: null
|
|
361
|
+
},
|
|
362
|
+
expandAriaLabel: {
|
|
363
|
+
classPropertyName: "expandAriaLabel",
|
|
364
|
+
publicName: "expandAriaLabel",
|
|
365
|
+
isSignal: true,
|
|
366
|
+
isRequired: false,
|
|
367
|
+
transformFunction: null
|
|
368
|
+
},
|
|
369
|
+
closeAriaLabel: {
|
|
370
|
+
classPropertyName: "closeAriaLabel",
|
|
371
|
+
publicName: "closeAriaLabel",
|
|
372
|
+
isSignal: true,
|
|
373
|
+
isRequired: false,
|
|
374
|
+
transformFunction: null
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
outputs: {
|
|
378
|
+
collapsed: "collapsedChange",
|
|
379
|
+
open: "openChange"
|
|
380
|
+
},
|
|
381
|
+
host: {
|
|
382
|
+
properties: {
|
|
383
|
+
"attr.data-mobile": "mobile() || null",
|
|
384
|
+
"attr.data-icon-only": "iconOnly() || null",
|
|
385
|
+
"attr.data-reveal-labels": "(hasCollapsed() && !iconOnly() && !mobile()) || null",
|
|
386
|
+
"style.--aeris-sidebar-width": "width() || null",
|
|
387
|
+
"style.--aeris-sidebar-collapsed-width": "collapsedWidth() || null"
|
|
388
|
+
},
|
|
389
|
+
classAttribute: "aeris-sidebar"
|
|
390
|
+
},
|
|
391
|
+
providers: [{
|
|
392
|
+
provide: sidebarContext,
|
|
393
|
+
useExisting: forwardRef(() => AerisSidebar)
|
|
394
|
+
}],
|
|
395
|
+
viewQueries: [{
|
|
396
|
+
propertyName: "navigation",
|
|
397
|
+
first: true,
|
|
398
|
+
predicate: ["navigationElement"],
|
|
399
|
+
descendants: true,
|
|
400
|
+
isSignal: true
|
|
401
|
+
}],
|
|
402
|
+
ngImport: i0,
|
|
403
|
+
template: `
|
|
404
|
+
<ng-template #navigation>
|
|
405
|
+
<nav
|
|
406
|
+
#navigationElement
|
|
407
|
+
class="aeris-sidebar__navigation"
|
|
408
|
+
[id]="navigationId"
|
|
409
|
+
[attr.aria-label]="ariaLabelledBy() ? null : ariaLabel()"
|
|
410
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
411
|
+
[attr.data-icon-only]="iconOnly() || null"
|
|
412
|
+
[attr.data-side]="side()"
|
|
413
|
+
[attr.dir]="inheritedDirection()"
|
|
414
|
+
[attr.data-mobile]="mobile() || null"
|
|
415
|
+
>
|
|
416
|
+
<header class="aeris-sidebar__header">
|
|
417
|
+
<ng-content select="[aerisSidebarHeader]" />
|
|
418
|
+
@if (mobile() || collapsible()) {
|
|
419
|
+
<button
|
|
420
|
+
class="aeris-sidebar__collapse"
|
|
421
|
+
type="button"
|
|
422
|
+
[attr.aria-label]="
|
|
423
|
+
mobile() ? closeAriaLabel() : collapsed() ? expandAriaLabel() : collapseAriaLabel()
|
|
424
|
+
"
|
|
425
|
+
[attr.aria-expanded]="mobile() ? open() : !collapsed()"
|
|
426
|
+
[attr.aria-controls]="navigationId"
|
|
427
|
+
(click)="toggle()"
|
|
428
|
+
>
|
|
429
|
+
@if (mobile()) {
|
|
430
|
+
<span
|
|
431
|
+
aerisInternalIcon="close"
|
|
432
|
+
class="aeris-sidebar__close-icon"
|
|
433
|
+
aria-hidden="true"
|
|
434
|
+
></span>
|
|
435
|
+
} @else {
|
|
436
|
+
<span
|
|
437
|
+
aerisInternalIcon="chevronRight"
|
|
438
|
+
class="aeris-sidebar__collapse-icon"
|
|
439
|
+
aria-hidden="true"
|
|
440
|
+
></span>
|
|
441
|
+
}
|
|
442
|
+
</button>
|
|
443
|
+
}
|
|
444
|
+
</header>
|
|
445
|
+
<div class="aeris-sidebar__body"><ng-content /></div>
|
|
446
|
+
<ng-content select="[aerisSidebarFooter]" />
|
|
447
|
+
</nav>
|
|
448
|
+
</ng-template>
|
|
449
|
+
@if (mobile()) {
|
|
450
|
+
<aeris-drawer
|
|
451
|
+
[visible]="open()"
|
|
452
|
+
(visibleChange)="open.set($event)"
|
|
453
|
+
[position]="drawerPosition()"
|
|
454
|
+
[ariaLabel]="ariaLabel()"
|
|
455
|
+
[ariaLabelledBy]="ariaLabelledBy()"
|
|
456
|
+
[width]="mobileWidth()"
|
|
457
|
+
[mobileFullScreen]="false"
|
|
458
|
+
[swipeToClose]="swipeToClose()"
|
|
459
|
+
>
|
|
460
|
+
<ng-template aerisDrawerHeadless
|
|
461
|
+
><ng-container [ngTemplateOutlet]="navigation"
|
|
462
|
+
/></ng-template>
|
|
463
|
+
</aeris-drawer>
|
|
464
|
+
} @else {
|
|
465
|
+
<ng-container [ngTemplateOutlet]="navigation" />
|
|
466
|
+
}
|
|
467
|
+
`,
|
|
468
|
+
isInline: true,
|
|
469
|
+
styles: [".aeris-sidebar{display:block;flex:0 0 auto;inline-size:var(--aeris-sidebar-width, 16rem);min-inline-size:0;block-size:100%;transition:inline-size var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-sidebar[data-icon-only]{inline-size:var(--aeris-sidebar-collapsed-width, 4.25rem)}.aeris-sidebar[data-mobile]{display:contents}.aeris-sidebar[data-reveal-labels] :is(.aeris-sidebar__brand,.aeris-sidebar__label,.aeris-sidebar__group-label,.aeris-sidebar__badge){animation:aeris-sidebar-label-layout var(--aeris-motion-normal, .15s) step-end,aeris-sidebar-label-reveal var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease) var(--aeris-motion-normal, .15s) backwards}@keyframes aeris-sidebar-label-layout{0%,to{white-space:nowrap;overflow:hidden}}@keyframes aeris-sidebar-label-reveal{0%{opacity:0}to{opacity:1}}.aeris-sidebar__navigation{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--aeris-sidebar-gap, var(--aeris-density-gap, .5rem));block-size:100%;min-block-size:0;min-inline-size:0;padding:var(--aeris-sidebar-padding, var(--aeris-overlay-padding, .375rem));background:var(--aeris-sidebar-background, var(--aeris-surface, #fff));color:var(--aeris-sidebar-color, var(--aeris-text, #111));font-size:var(--aeris-sidebar-font-size, var(--aeris-body-font-size, .875rem));border-inline-end:1px solid var(--aeris-sidebar-border, var(--aeris-border))}.aeris-sidebar__navigation[data-side=end]{border-inline-end:0;border-inline-start:1px solid var(--aeris-sidebar-border, var(--aeris-border))}.aeris-sidebar__header{display:flex;flex:0 0 auto;gap:.5rem;align-items:center;min-inline-size:0}.aeris-sidebar__brand{min-inline-size:0;flex:1;overflow-wrap:anywhere}.aeris-sidebar__footer{flex:0 0 auto;min-inline-size:0;padding-block-start:var(--aeris-density-gap, .5rem)}.aeris-sidebar__body{display:flex;flex:1 1 auto;flex-direction:column;gap:.25rem;min-block-size:0;min-inline-size:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--aeris-border) transparent}.aeris-sidebar__item,.aeris-sidebar__collapse,.aeris-sidebar__group-toggle{box-sizing:border-box;border:0;border-radius:var(--aeris-sidebar-item-radius, var(--aeris-radius-item, .4375rem));background:transparent;color:inherit;font:inherit;line-height:var(--aeris-line-height-tight, 1.25);text-align:start;text-decoration:none;cursor:pointer;flex-shrink:0;transition:background-color var(--aeris-motion-fast, .1s),color var(--aeris-motion-fast, .1s)}.aeris-sidebar__item{display:block;inline-size:100%;min-inline-size:0;padding:0}.aeris-sidebar__item-content{display:flex;align-items:center;gap:var(--aeris-density-gap, .5rem);min-inline-size:0;min-block-size:var(--aeris-sidebar-item-height, var(--aeris-item-height, 2.5rem));padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);box-sizing:border-box}.aeris-sidebar__item:not([data-icon-only]) .aeris-sidebar__item-content,.aeris-sidebar__group-toggle{padding-inline:max(var(--aeris-item-padding-x, .75rem),min(var(--aeris-sidebar-item-radius, var(--aeris-radius-control, .4375rem)),1.25em))}.aeris-sidebar__label,.aeris-sidebar__group-label{flex:1;min-inline-size:0;overflow-wrap:anywhere}.aeris-sidebar__icon{display:inline-flex;flex:0 0 auto;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);align-items:center;justify-content:center}.aeris-sidebar__icon svg{inline-size:100%;block-size:100%}.aeris-sidebar__badge{flex:0 0 auto;margin-inline-start:auto;max-inline-size:45%}@media(hover:hover){.aeris-sidebar__item:hover:not([data-disabled]),.aeris-sidebar__collapse:hover,.aeris-sidebar__group-toggle:hover{background:var(--aeris-sidebar-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2)))}}.aeris-sidebar__item[data-active]{background:var(--aeris-sidebar-active-background, var(--aeris-primary-soft));color:var(--aeris-sidebar-active-color, var(--aeris-on-primary-soft, var(--aeris-primary-text)));font-weight:600}.aeris-sidebar__item[data-active]:hover{background:var(--aeris-sidebar-active-background, var(--aeris-primary-soft))}.aeris-sidebar__item[data-disabled]{opacity:.5;cursor:not-allowed}.aeris-sidebar__item:focus-visible,.aeris-sidebar__collapse:focus-visible,.aeris-sidebar__group-toggle:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus-ring-color, var(--aeris-focus));outline-offset:calc(-1 * var(--aeris-focus-ring-width, 3px))}.aeris-sidebar__collapse{display:grid;place-items:center;margin-inline-start:auto;min-inline-size:var(--aeris-control-height, 2.625rem);min-block-size:var(--aeris-control-height, 2.625rem);padding:0}.aeris-sidebar__collapse>span,.aeris-sidebar__group-chevron{display:inline-flex;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem)}.aeris-sidebar__collapse-icon:not([data-aeris-custom-icon]),.aeris-sidebar__group-chevron:not([data-aeris-custom-icon]){background:currentColor;-webkit-mask:var(--aeris-icon-chevron-right) center/100% 100% no-repeat;mask:var(--aeris-icon-chevron-right) center/100% 100% no-repeat}.aeris-sidebar__close-icon:not([data-aeris-custom-icon]){background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-sidebar__collapse-icon{transform:rotate(180deg);transition:transform var(--aeris-motion-normal, .15s)}.aeris-sidebar__navigation[data-side=end] .aeris-sidebar__collapse-icon,.aeris-sidebar__navigation[data-icon-only] .aeris-sidebar__collapse-icon{transform:none}.aeris-sidebar__navigation[data-icon-only][data-side=end] .aeris-sidebar__collapse-icon{transform:rotate(180deg)}.aeris-sidebar__collapse-icon:dir(rtl){scale:-1 1}.aeris-sidebar__group{display:block;min-inline-size:0}.aeris-sidebar__group-toggle{display:flex;align-items:center;gap:.5rem;inline-size:100%;padding-block:var(--aeris-item-padding-y, .5rem)}.aeris-sidebar__group-label{font-size:inherit;font-weight:600}.aeris-sidebar__group-heading{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem)}.aeris-sidebar__group-chevron{flex:0 0 auto;transition:transform var(--aeris-motion-normal, .15s)}.aeris-sidebar__group-chevron:dir(rtl){scale:-1 1}.aeris-sidebar__group-chevron[data-expanded]{transform:rotate(90deg)}.aeris-sidebar__group-content{display:flex;flex-direction:column;gap:.25rem;min-inline-size:0}.aeris-sidebar__group-content[hidden]{display:none}.aeris-sidebar__group-content .aeris-sidebar__group{margin-inline-start:var(--aeris-sidebar-indent, .75rem)}.aeris-sidebar__navigation[data-icon-only] .aeris-sidebar__brand,.aeris-sidebar__item[data-icon-only] .aeris-sidebar__label,.aeris-sidebar__item[data-icon-only] .aeris-sidebar__badge{display:none}.aeris-sidebar__navigation[data-icon-only] .aeris-sidebar__header{justify-content:center}.aeris-sidebar__navigation[data-icon-only] .aeris-sidebar__collapse{margin-inline:0}.aeris-sidebar__item[data-icon-only] .aeris-sidebar__item-content{justify-content:center}.aeris-sidebar__navigation[data-icon-only] .aeris-sidebar__group{margin-inline-start:0}.aeris-sidebar__navigation[data-mobile]{padding-block-start:max(var(--aeris-sidebar-padding, .375rem),var(--aeris-safe-area-top, 0px));padding-block-end:max(var(--aeris-sidebar-padding, .375rem),var(--aeris-safe-area-bottom, 0px))}@media(prefers-reduced-motion:reduce){.aeris-sidebar[data-reveal-labels] :is(.aeris-sidebar__brand,.aeris-sidebar__label,.aeris-sidebar__group-label,.aeris-sidebar__badge){animation:none}.aeris-sidebar,.aeris-sidebar__item,.aeris-sidebar__collapse,.aeris-sidebar__group-toggle,.aeris-sidebar__collapse-icon,.aeris-sidebar__group-chevron{transition:none}}\n"],
|
|
470
|
+
dependencies: [
|
|
471
|
+
{
|
|
472
|
+
kind: "directive",
|
|
473
|
+
type: NgTemplateOutlet,
|
|
474
|
+
selector: "[ngTemplateOutlet]",
|
|
475
|
+
inputs: [
|
|
476
|
+
"ngTemplateOutletContext",
|
|
477
|
+
"ngTemplateOutlet",
|
|
478
|
+
"ngTemplateOutletInjector"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
kind: "component",
|
|
483
|
+
type: ɵAerisIcon,
|
|
484
|
+
selector: "span[aerisInternalIcon]",
|
|
485
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
kind: "component",
|
|
489
|
+
type: i1.AerisDrawer,
|
|
490
|
+
selector: "aeris-drawer",
|
|
491
|
+
inputs: [
|
|
492
|
+
"closeIconTemplate",
|
|
493
|
+
"maximizeIconTemplate",
|
|
494
|
+
"visible",
|
|
495
|
+
"maximized",
|
|
496
|
+
"activeSnapPoint",
|
|
497
|
+
"snapPoints",
|
|
498
|
+
"snapAriaLabel",
|
|
499
|
+
"header",
|
|
500
|
+
"appendTo",
|
|
501
|
+
"position",
|
|
502
|
+
"size",
|
|
503
|
+
"modal",
|
|
504
|
+
"backdrop",
|
|
505
|
+
"backdropBlur",
|
|
506
|
+
"backdropBlurAmount",
|
|
507
|
+
"closeOnBackdropClick",
|
|
508
|
+
"closeOnEscape",
|
|
509
|
+
"swipeToClose",
|
|
510
|
+
"swipeHandle",
|
|
511
|
+
"swipeThreshold",
|
|
512
|
+
"closable",
|
|
513
|
+
"maximizable",
|
|
514
|
+
"blockScroll",
|
|
515
|
+
"focusTrap",
|
|
516
|
+
"restoreFocus",
|
|
517
|
+
"autoFocus",
|
|
518
|
+
"initialFocus",
|
|
519
|
+
"width",
|
|
520
|
+
"height",
|
|
521
|
+
"maxWidth",
|
|
522
|
+
"maxHeight",
|
|
523
|
+
"mobileWidth",
|
|
524
|
+
"mobileHeight",
|
|
525
|
+
"mobileFullScreen",
|
|
526
|
+
"footerLayout",
|
|
527
|
+
"closeAriaLabel",
|
|
528
|
+
"ariaLabel",
|
|
529
|
+
"ariaLabelledBy",
|
|
530
|
+
"ariaDescribedBy"
|
|
531
|
+
],
|
|
532
|
+
outputs: [
|
|
533
|
+
"visibleChange",
|
|
534
|
+
"maximizedChange",
|
|
535
|
+
"activeSnapPointChange",
|
|
536
|
+
"opened",
|
|
537
|
+
"closed"
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
kind: "directive",
|
|
542
|
+
type: i1.AerisDrawerHeadlessTemplate,
|
|
543
|
+
selector: "ng-template[aerisDrawerHeadless]"
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
547
|
+
});
|
|
548
|
+
};
|
|
549
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
550
|
+
minVersion: "12.0.0",
|
|
551
|
+
version: "22.2.4",
|
|
552
|
+
ngImport: i0,
|
|
553
|
+
type: AerisSidebar,
|
|
554
|
+
decorators: [{
|
|
555
|
+
type: Component,
|
|
556
|
+
args: [{
|
|
557
|
+
selector: "aeris-sidebar",
|
|
558
|
+
imports: [
|
|
559
|
+
NgTemplateOutlet,
|
|
560
|
+
ɵAerisIcon,
|
|
561
|
+
AerisDrawerModule
|
|
562
|
+
],
|
|
563
|
+
providers: [{
|
|
564
|
+
provide: sidebarContext,
|
|
565
|
+
useExisting: forwardRef(() => AerisSidebar)
|
|
566
|
+
}],
|
|
567
|
+
encapsulation: ViewEncapsulation.None,
|
|
568
|
+
template: `
|
|
569
|
+
<ng-template #navigation>
|
|
570
|
+
<nav
|
|
571
|
+
#navigationElement
|
|
572
|
+
class="aeris-sidebar__navigation"
|
|
573
|
+
[id]="navigationId"
|
|
574
|
+
[attr.aria-label]="ariaLabelledBy() ? null : ariaLabel()"
|
|
575
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
576
|
+
[attr.data-icon-only]="iconOnly() || null"
|
|
577
|
+
[attr.data-side]="side()"
|
|
578
|
+
[attr.dir]="inheritedDirection()"
|
|
579
|
+
[attr.data-mobile]="mobile() || null"
|
|
580
|
+
>
|
|
581
|
+
<header class="aeris-sidebar__header">
|
|
582
|
+
<ng-content select="[aerisSidebarHeader]" />
|
|
583
|
+
@if (mobile() || collapsible()) {
|
|
584
|
+
<button
|
|
585
|
+
class="aeris-sidebar__collapse"
|
|
586
|
+
type="button"
|
|
587
|
+
[attr.aria-label]="
|
|
588
|
+
mobile() ? closeAriaLabel() : collapsed() ? expandAriaLabel() : collapseAriaLabel()
|
|
589
|
+
"
|
|
590
|
+
[attr.aria-expanded]="mobile() ? open() : !collapsed()"
|
|
591
|
+
[attr.aria-controls]="navigationId"
|
|
592
|
+
(click)="toggle()"
|
|
593
|
+
>
|
|
594
|
+
@if (mobile()) {
|
|
595
|
+
<span
|
|
596
|
+
aerisInternalIcon="close"
|
|
597
|
+
class="aeris-sidebar__close-icon"
|
|
598
|
+
aria-hidden="true"
|
|
599
|
+
></span>
|
|
600
|
+
} @else {
|
|
601
|
+
<span
|
|
602
|
+
aerisInternalIcon="chevronRight"
|
|
603
|
+
class="aeris-sidebar__collapse-icon"
|
|
604
|
+
aria-hidden="true"
|
|
605
|
+
></span>
|
|
606
|
+
}
|
|
607
|
+
</button>
|
|
608
|
+
}
|
|
609
|
+
</header>
|
|
610
|
+
<div class="aeris-sidebar__body"><ng-content /></div>
|
|
611
|
+
<ng-content select="[aerisSidebarFooter]" />
|
|
612
|
+
</nav>
|
|
613
|
+
</ng-template>
|
|
614
|
+
@if (mobile()) {
|
|
615
|
+
<aeris-drawer
|
|
616
|
+
[visible]="open()"
|
|
617
|
+
(visibleChange)="open.set($event)"
|
|
618
|
+
[position]="drawerPosition()"
|
|
619
|
+
[ariaLabel]="ariaLabel()"
|
|
620
|
+
[ariaLabelledBy]="ariaLabelledBy()"
|
|
621
|
+
[width]="mobileWidth()"
|
|
622
|
+
[mobileFullScreen]="false"
|
|
623
|
+
[swipeToClose]="swipeToClose()"
|
|
624
|
+
>
|
|
625
|
+
<ng-template aerisDrawerHeadless
|
|
626
|
+
><ng-container [ngTemplateOutlet]="navigation"
|
|
627
|
+
/></ng-template>
|
|
628
|
+
</aeris-drawer>
|
|
629
|
+
} @else {
|
|
630
|
+
<ng-container [ngTemplateOutlet]="navigation" />
|
|
631
|
+
}
|
|
632
|
+
`,
|
|
633
|
+
host: {
|
|
634
|
+
class: "aeris-sidebar",
|
|
635
|
+
"[attr.data-mobile]": "mobile() || null",
|
|
636
|
+
"[attr.data-icon-only]": "iconOnly() || null",
|
|
637
|
+
"[attr.data-reveal-labels]": "(hasCollapsed() && !iconOnly() && !mobile()) || null",
|
|
638
|
+
"[style.--aeris-sidebar-width]": "width() || null",
|
|
639
|
+
"[style.--aeris-sidebar-collapsed-width]": "collapsedWidth() || null"
|
|
640
|
+
},
|
|
641
|
+
styles: [".aeris-sidebar{display:block;flex:0 0 auto;inline-size:var(--aeris-sidebar-width, 16rem);min-inline-size:0;block-size:100%;transition:inline-size var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-sidebar[data-icon-only]{inline-size:var(--aeris-sidebar-collapsed-width, 4.25rem)}.aeris-sidebar[data-mobile]{display:contents}.aeris-sidebar[data-reveal-labels] :is(.aeris-sidebar__brand,.aeris-sidebar__label,.aeris-sidebar__group-label,.aeris-sidebar__badge){animation:aeris-sidebar-label-layout var(--aeris-motion-normal, .15s) step-end,aeris-sidebar-label-reveal var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease) var(--aeris-motion-normal, .15s) backwards}@keyframes aeris-sidebar-label-layout{0%,to{white-space:nowrap;overflow:hidden}}@keyframes aeris-sidebar-label-reveal{0%{opacity:0}to{opacity:1}}.aeris-sidebar__navigation{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--aeris-sidebar-gap, var(--aeris-density-gap, .5rem));block-size:100%;min-block-size:0;min-inline-size:0;padding:var(--aeris-sidebar-padding, var(--aeris-overlay-padding, .375rem));background:var(--aeris-sidebar-background, var(--aeris-surface, #fff));color:var(--aeris-sidebar-color, var(--aeris-text, #111));font-size:var(--aeris-sidebar-font-size, var(--aeris-body-font-size, .875rem));border-inline-end:1px solid var(--aeris-sidebar-border, var(--aeris-border))}.aeris-sidebar__navigation[data-side=end]{border-inline-end:0;border-inline-start:1px solid var(--aeris-sidebar-border, var(--aeris-border))}.aeris-sidebar__header{display:flex;flex:0 0 auto;gap:.5rem;align-items:center;min-inline-size:0}.aeris-sidebar__brand{min-inline-size:0;flex:1;overflow-wrap:anywhere}.aeris-sidebar__footer{flex:0 0 auto;min-inline-size:0;padding-block-start:var(--aeris-density-gap, .5rem)}.aeris-sidebar__body{display:flex;flex:1 1 auto;flex-direction:column;gap:.25rem;min-block-size:0;min-inline-size:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--aeris-border) transparent}.aeris-sidebar__item,.aeris-sidebar__collapse,.aeris-sidebar__group-toggle{box-sizing:border-box;border:0;border-radius:var(--aeris-sidebar-item-radius, var(--aeris-radius-item, .4375rem));background:transparent;color:inherit;font:inherit;line-height:var(--aeris-line-height-tight, 1.25);text-align:start;text-decoration:none;cursor:pointer;flex-shrink:0;transition:background-color var(--aeris-motion-fast, .1s),color var(--aeris-motion-fast, .1s)}.aeris-sidebar__item{display:block;inline-size:100%;min-inline-size:0;padding:0}.aeris-sidebar__item-content{display:flex;align-items:center;gap:var(--aeris-density-gap, .5rem);min-inline-size:0;min-block-size:var(--aeris-sidebar-item-height, var(--aeris-item-height, 2.5rem));padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);box-sizing:border-box}.aeris-sidebar__item:not([data-icon-only]) .aeris-sidebar__item-content,.aeris-sidebar__group-toggle{padding-inline:max(var(--aeris-item-padding-x, .75rem),min(var(--aeris-sidebar-item-radius, var(--aeris-radius-control, .4375rem)),1.25em))}.aeris-sidebar__label,.aeris-sidebar__group-label{flex:1;min-inline-size:0;overflow-wrap:anywhere}.aeris-sidebar__icon{display:inline-flex;flex:0 0 auto;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);align-items:center;justify-content:center}.aeris-sidebar__icon svg{inline-size:100%;block-size:100%}.aeris-sidebar__badge{flex:0 0 auto;margin-inline-start:auto;max-inline-size:45%}@media(hover:hover){.aeris-sidebar__item:hover:not([data-disabled]),.aeris-sidebar__collapse:hover,.aeris-sidebar__group-toggle:hover{background:var(--aeris-sidebar-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2)))}}.aeris-sidebar__item[data-active]{background:var(--aeris-sidebar-active-background, var(--aeris-primary-soft));color:var(--aeris-sidebar-active-color, var(--aeris-on-primary-soft, var(--aeris-primary-text)));font-weight:600}.aeris-sidebar__item[data-active]:hover{background:var(--aeris-sidebar-active-background, var(--aeris-primary-soft))}.aeris-sidebar__item[data-disabled]{opacity:.5;cursor:not-allowed}.aeris-sidebar__item:focus-visible,.aeris-sidebar__collapse:focus-visible,.aeris-sidebar__group-toggle:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus-ring-color, var(--aeris-focus));outline-offset:calc(-1 * var(--aeris-focus-ring-width, 3px))}.aeris-sidebar__collapse{display:grid;place-items:center;margin-inline-start:auto;min-inline-size:var(--aeris-control-height, 2.625rem);min-block-size:var(--aeris-control-height, 2.625rem);padding:0}.aeris-sidebar__collapse>span,.aeris-sidebar__group-chevron{display:inline-flex;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem)}.aeris-sidebar__collapse-icon:not([data-aeris-custom-icon]),.aeris-sidebar__group-chevron:not([data-aeris-custom-icon]){background:currentColor;-webkit-mask:var(--aeris-icon-chevron-right) center/100% 100% no-repeat;mask:var(--aeris-icon-chevron-right) center/100% 100% no-repeat}.aeris-sidebar__close-icon:not([data-aeris-custom-icon]){background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-sidebar__collapse-icon{transform:rotate(180deg);transition:transform var(--aeris-motion-normal, .15s)}.aeris-sidebar__navigation[data-side=end] .aeris-sidebar__collapse-icon,.aeris-sidebar__navigation[data-icon-only] .aeris-sidebar__collapse-icon{transform:none}.aeris-sidebar__navigation[data-icon-only][data-side=end] .aeris-sidebar__collapse-icon{transform:rotate(180deg)}.aeris-sidebar__collapse-icon:dir(rtl){scale:-1 1}.aeris-sidebar__group{display:block;min-inline-size:0}.aeris-sidebar__group-toggle{display:flex;align-items:center;gap:.5rem;inline-size:100%;padding-block:var(--aeris-item-padding-y, .5rem)}.aeris-sidebar__group-label{font-size:inherit;font-weight:600}.aeris-sidebar__group-heading{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem)}.aeris-sidebar__group-chevron{flex:0 0 auto;transition:transform var(--aeris-motion-normal, .15s)}.aeris-sidebar__group-chevron:dir(rtl){scale:-1 1}.aeris-sidebar__group-chevron[data-expanded]{transform:rotate(90deg)}.aeris-sidebar__group-content{display:flex;flex-direction:column;gap:.25rem;min-inline-size:0}.aeris-sidebar__group-content[hidden]{display:none}.aeris-sidebar__group-content .aeris-sidebar__group{margin-inline-start:var(--aeris-sidebar-indent, .75rem)}.aeris-sidebar__navigation[data-icon-only] .aeris-sidebar__brand,.aeris-sidebar__item[data-icon-only] .aeris-sidebar__label,.aeris-sidebar__item[data-icon-only] .aeris-sidebar__badge{display:none}.aeris-sidebar__navigation[data-icon-only] .aeris-sidebar__header{justify-content:center}.aeris-sidebar__navigation[data-icon-only] .aeris-sidebar__collapse{margin-inline:0}.aeris-sidebar__item[data-icon-only] .aeris-sidebar__item-content{justify-content:center}.aeris-sidebar__navigation[data-icon-only] .aeris-sidebar__group{margin-inline-start:0}.aeris-sidebar__navigation[data-mobile]{padding-block-start:max(var(--aeris-sidebar-padding, .375rem),var(--aeris-safe-area-top, 0px));padding-block-end:max(var(--aeris-sidebar-padding, .375rem),var(--aeris-safe-area-bottom, 0px))}@media(prefers-reduced-motion:reduce){.aeris-sidebar[data-reveal-labels] :is(.aeris-sidebar__brand,.aeris-sidebar__label,.aeris-sidebar__group-label,.aeris-sidebar__badge){animation:none}.aeris-sidebar,.aeris-sidebar__item,.aeris-sidebar__collapse,.aeris-sidebar__group-toggle,.aeris-sidebar__collapse-icon,.aeris-sidebar__group-chevron{transition:none}}\n"]
|
|
642
|
+
}]
|
|
643
|
+
}],
|
|
644
|
+
ctorParameters: () => [],
|
|
645
|
+
propDecorators: {
|
|
646
|
+
navigation: [{
|
|
647
|
+
type: i0.ViewChild,
|
|
648
|
+
args: ["navigationElement", { isSignal: true }]
|
|
649
|
+
}],
|
|
650
|
+
collapsed: [{
|
|
651
|
+
type: i0.Input,
|
|
652
|
+
args: [{
|
|
653
|
+
isSignal: true,
|
|
654
|
+
alias: "collapsed",
|
|
655
|
+
required: false
|
|
656
|
+
}]
|
|
657
|
+
}, {
|
|
658
|
+
type: i0.Output,
|
|
659
|
+
args: ["collapsedChange"]
|
|
660
|
+
}],
|
|
661
|
+
open: [{
|
|
662
|
+
type: i0.Input,
|
|
663
|
+
args: [{
|
|
664
|
+
isSignal: true,
|
|
665
|
+
alias: "open",
|
|
666
|
+
required: false
|
|
667
|
+
}]
|
|
668
|
+
}, {
|
|
669
|
+
type: i0.Output,
|
|
670
|
+
args: ["openChange"]
|
|
671
|
+
}],
|
|
672
|
+
mode: [{
|
|
673
|
+
type: i0.Input,
|
|
674
|
+
args: [{
|
|
675
|
+
isSignal: true,
|
|
676
|
+
alias: "mode",
|
|
677
|
+
required: false
|
|
678
|
+
}]
|
|
679
|
+
}],
|
|
680
|
+
breakpoint: [{
|
|
681
|
+
type: i0.Input,
|
|
682
|
+
args: [{
|
|
683
|
+
isSignal: true,
|
|
684
|
+
alias: "breakpoint",
|
|
685
|
+
required: false
|
|
686
|
+
}]
|
|
687
|
+
}],
|
|
688
|
+
side: [{
|
|
689
|
+
type: i0.Input,
|
|
690
|
+
args: [{
|
|
691
|
+
isSignal: true,
|
|
692
|
+
alias: "side",
|
|
693
|
+
required: false
|
|
694
|
+
}]
|
|
695
|
+
}],
|
|
696
|
+
width: [{
|
|
697
|
+
type: i0.Input,
|
|
698
|
+
args: [{
|
|
699
|
+
isSignal: true,
|
|
700
|
+
alias: "width",
|
|
701
|
+
required: false
|
|
702
|
+
}]
|
|
703
|
+
}],
|
|
704
|
+
collapsedWidth: [{
|
|
705
|
+
type: i0.Input,
|
|
706
|
+
args: [{
|
|
707
|
+
isSignal: true,
|
|
708
|
+
alias: "collapsedWidth",
|
|
709
|
+
required: false
|
|
710
|
+
}]
|
|
711
|
+
}],
|
|
712
|
+
mobileWidth: [{
|
|
713
|
+
type: i0.Input,
|
|
714
|
+
args: [{
|
|
715
|
+
isSignal: true,
|
|
716
|
+
alias: "mobileWidth",
|
|
717
|
+
required: false
|
|
718
|
+
}]
|
|
719
|
+
}],
|
|
720
|
+
collapsible: [{
|
|
721
|
+
type: i0.Input,
|
|
722
|
+
args: [{
|
|
723
|
+
isSignal: true,
|
|
724
|
+
alias: "collapsible",
|
|
725
|
+
required: false
|
|
726
|
+
}]
|
|
727
|
+
}],
|
|
728
|
+
closeOnNavigate: [{
|
|
729
|
+
type: i0.Input,
|
|
730
|
+
args: [{
|
|
731
|
+
isSignal: true,
|
|
732
|
+
alias: "closeOnNavigate",
|
|
733
|
+
required: false
|
|
734
|
+
}]
|
|
735
|
+
}],
|
|
736
|
+
swipeToClose: [{
|
|
737
|
+
type: i0.Input,
|
|
738
|
+
args: [{
|
|
739
|
+
isSignal: true,
|
|
740
|
+
alias: "swipeToClose",
|
|
741
|
+
required: false
|
|
742
|
+
}]
|
|
743
|
+
}],
|
|
744
|
+
ariaLabel: [{
|
|
745
|
+
type: i0.Input,
|
|
746
|
+
args: [{
|
|
747
|
+
isSignal: true,
|
|
748
|
+
alias: "ariaLabel",
|
|
749
|
+
required: false
|
|
750
|
+
}]
|
|
751
|
+
}],
|
|
752
|
+
ariaLabelledBy: [{
|
|
753
|
+
type: i0.Input,
|
|
754
|
+
args: [{
|
|
755
|
+
isSignal: true,
|
|
756
|
+
alias: "ariaLabelledBy",
|
|
757
|
+
required: false
|
|
758
|
+
}]
|
|
759
|
+
}],
|
|
760
|
+
collapseAriaLabel: [{
|
|
761
|
+
type: i0.Input,
|
|
762
|
+
args: [{
|
|
763
|
+
isSignal: true,
|
|
764
|
+
alias: "collapseAriaLabel",
|
|
765
|
+
required: false
|
|
766
|
+
}]
|
|
767
|
+
}],
|
|
768
|
+
expandAriaLabel: [{
|
|
769
|
+
type: i0.Input,
|
|
770
|
+
args: [{
|
|
771
|
+
isSignal: true,
|
|
772
|
+
alias: "expandAriaLabel",
|
|
773
|
+
required: false
|
|
774
|
+
}]
|
|
775
|
+
}],
|
|
776
|
+
closeAriaLabel: [{
|
|
777
|
+
type: i0.Input,
|
|
778
|
+
args: [{
|
|
779
|
+
isSignal: true,
|
|
780
|
+
alias: "closeAriaLabel",
|
|
781
|
+
required: false
|
|
782
|
+
}]
|
|
783
|
+
}]
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
var AerisSidebarToggle = class AerisSidebarToggle {
|
|
787
|
+
element = inject(ElementRef).nativeElement;
|
|
788
|
+
sidebar = input.required({
|
|
789
|
+
...ngDevMode ? { debugName: "sidebar" } : /* istanbul ignore next */ {},
|
|
790
|
+
alias: "aerisSidebarToggle"
|
|
791
|
+
});
|
|
792
|
+
label = input("", {
|
|
793
|
+
...ngDevMode ? { debugName: "label" } : /* istanbul ignore next */ {},
|
|
794
|
+
alias: "aerisSidebarToggleLabel"
|
|
795
|
+
});
|
|
796
|
+
constructor() {
|
|
797
|
+
const element = this.element;
|
|
798
|
+
effect((onCleanup) => {
|
|
799
|
+
const sidebar = this.sidebar();
|
|
800
|
+
const toggles = toggleElements.get(sidebar) ?? /* @__PURE__ */ new Set();
|
|
801
|
+
toggles.add(element);
|
|
802
|
+
toggleElements.set(sidebar, toggles);
|
|
803
|
+
onCleanup(() => {
|
|
804
|
+
toggles.delete(element);
|
|
805
|
+
});
|
|
806
|
+
});
|
|
807
|
+
}
|
|
808
|
+
handleClick() {
|
|
809
|
+
const sidebar = this.sidebar();
|
|
810
|
+
if (sidebar.mobile() && !sidebar.open()) this.element.focus({ preventScroll: true });
|
|
811
|
+
sidebar.toggle();
|
|
812
|
+
}
|
|
813
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
814
|
+
minVersion: "12.0.0",
|
|
815
|
+
version: "22.2.4",
|
|
816
|
+
ngImport: i0,
|
|
817
|
+
type: AerisSidebarToggle,
|
|
818
|
+
deps: [],
|
|
819
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
820
|
+
});
|
|
821
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
822
|
+
minVersion: "17.1.0",
|
|
823
|
+
version: "22.2.4",
|
|
824
|
+
type: AerisSidebarToggle,
|
|
825
|
+
isStandalone: true,
|
|
826
|
+
selector: "button[aerisSidebarToggle]",
|
|
827
|
+
inputs: {
|
|
828
|
+
sidebar: {
|
|
829
|
+
classPropertyName: "sidebar",
|
|
830
|
+
publicName: "aerisSidebarToggle",
|
|
831
|
+
isSignal: true,
|
|
832
|
+
isRequired: true,
|
|
833
|
+
transformFunction: null
|
|
834
|
+
},
|
|
835
|
+
label: {
|
|
836
|
+
classPropertyName: "label",
|
|
837
|
+
publicName: "aerisSidebarToggleLabel",
|
|
838
|
+
isSignal: true,
|
|
839
|
+
isRequired: false,
|
|
840
|
+
transformFunction: null
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
host: {
|
|
844
|
+
attributes: { "type": "button" },
|
|
845
|
+
listeners: { "click": "handleClick()" },
|
|
846
|
+
properties: {
|
|
847
|
+
"attr.aria-controls": "sidebar().navigationId",
|
|
848
|
+
"attr.aria-expanded": "sidebar().mobile() ? sidebar().open() : !sidebar().collapsed()",
|
|
849
|
+
"attr.aria-label": "label() || (sidebar().mobile() ? (sidebar().open() ? sidebar().closeAriaLabel() : sidebar().expandAriaLabel()) : (sidebar().collapsed() ? sidebar().expandAriaLabel() : sidebar().collapseAriaLabel()))"
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
ngImport: i0
|
|
853
|
+
});
|
|
854
|
+
};
|
|
855
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
856
|
+
minVersion: "12.0.0",
|
|
857
|
+
version: "22.2.4",
|
|
858
|
+
ngImport: i0,
|
|
859
|
+
type: AerisSidebarToggle,
|
|
860
|
+
decorators: [{
|
|
861
|
+
type: Directive,
|
|
862
|
+
args: [{
|
|
863
|
+
selector: "button[aerisSidebarToggle]",
|
|
864
|
+
host: {
|
|
865
|
+
type: "button",
|
|
866
|
+
"[attr.aria-controls]": "sidebar().navigationId",
|
|
867
|
+
"[attr.aria-expanded]": "sidebar().mobile() ? sidebar().open() : !sidebar().collapsed()",
|
|
868
|
+
"[attr.aria-label]": "label() || (sidebar().mobile() ? (sidebar().open() ? sidebar().closeAriaLabel() : sidebar().expandAriaLabel()) : (sidebar().collapsed() ? sidebar().expandAriaLabel() : sidebar().collapseAriaLabel()))",
|
|
869
|
+
"(click)": "handleClick()"
|
|
870
|
+
}
|
|
871
|
+
}]
|
|
872
|
+
}],
|
|
873
|
+
ctorParameters: () => [],
|
|
874
|
+
propDecorators: {
|
|
875
|
+
sidebar: [{
|
|
876
|
+
type: i0.Input,
|
|
877
|
+
args: [{
|
|
878
|
+
isSignal: true,
|
|
879
|
+
alias: "aerisSidebarToggle",
|
|
880
|
+
required: true
|
|
881
|
+
}]
|
|
882
|
+
}],
|
|
883
|
+
label: [{
|
|
884
|
+
type: i0.Input,
|
|
885
|
+
args: [{
|
|
886
|
+
isSignal: true,
|
|
887
|
+
alias: "aerisSidebarToggleLabel",
|
|
888
|
+
required: false
|
|
889
|
+
}]
|
|
890
|
+
}]
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
var AerisSidebarItem = class AerisSidebarItem {
|
|
894
|
+
sidebar = inject(sidebarContext, { optional: true });
|
|
895
|
+
element = inject(ElementRef).nativeElement;
|
|
896
|
+
tooltip = viewChild(AerisTooltip, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
897
|
+
isButton = this.element.tagName === "BUTTON";
|
|
898
|
+
label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
899
|
+
active = input(false, {
|
|
900
|
+
...ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {},
|
|
901
|
+
transform: booleanAttribute
|
|
902
|
+
});
|
|
903
|
+
disabled = input(false, {
|
|
904
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
905
|
+
transform: booleanAttribute
|
|
906
|
+
});
|
|
907
|
+
iconOnly = computed(() => this.sidebar?.iconOnly() ?? false, ...ngDevMode ? [{ debugName: "iconOnly" }] : /* istanbul ignore next */ []);
|
|
908
|
+
tooltipPosition = computed(() => this.sidebar?.side() === "end" !== (this.sidebar?.direction() === "rtl") ? "left" : "right", ...ngDevMode ? [{ debugName: "tooltipPosition" }] : /* istanbul ignore next */ []);
|
|
909
|
+
constructor() {
|
|
910
|
+
const renderer = inject(Renderer2);
|
|
911
|
+
const stop = renderer.listen(this.element, "click", (event) => {
|
|
912
|
+
if (this.disabled()) {
|
|
913
|
+
event.preventDefault();
|
|
914
|
+
event.stopImmediatePropagation();
|
|
915
|
+
}
|
|
916
|
+
}, { capture: true });
|
|
917
|
+
inject(DestroyRef).onDestroy(stop);
|
|
918
|
+
effect((onCleanup) => {
|
|
919
|
+
if (!this.disabled() || this.isButton) return;
|
|
920
|
+
const previous = this.element.getAttribute("tabindex");
|
|
921
|
+
renderer.setAttribute(this.element, "tabindex", "-1");
|
|
922
|
+
onCleanup(() => {
|
|
923
|
+
if (previous === null) renderer.removeAttribute(this.element, "tabindex");
|
|
924
|
+
else renderer.setAttribute(this.element, "tabindex", previous);
|
|
925
|
+
});
|
|
926
|
+
});
|
|
927
|
+
effect(() => {
|
|
928
|
+
if (!this.iconOnly()) this.tooltip()?.hide();
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
handleClick(event) {
|
|
932
|
+
if (!(event instanceof MouseEvent)) return;
|
|
933
|
+
if (this.disabled() || event.button !== 0 || event.metaKey || event.ctrlKey || event.altKey || event.shiftKey || this.element instanceof HTMLAnchorElement && this.element.target && this.element.target !== "_self") return;
|
|
934
|
+
if (this.sidebar?.mobile() && this.sidebar.closeOnNavigate()) this.sidebar.open.set(false);
|
|
935
|
+
}
|
|
936
|
+
showTooltip() {
|
|
937
|
+
if (this.iconOnly()) this.tooltip()?.show();
|
|
938
|
+
}
|
|
939
|
+
hideTooltip() {
|
|
940
|
+
this.tooltip()?.hide();
|
|
941
|
+
}
|
|
942
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
943
|
+
minVersion: "12.0.0",
|
|
944
|
+
version: "22.2.4",
|
|
945
|
+
ngImport: i0,
|
|
946
|
+
type: AerisSidebarItem,
|
|
947
|
+
deps: [],
|
|
948
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
949
|
+
});
|
|
950
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
951
|
+
minVersion: "17.2.0",
|
|
952
|
+
version: "22.2.4",
|
|
953
|
+
type: AerisSidebarItem,
|
|
954
|
+
isStandalone: true,
|
|
955
|
+
selector: "a[aerisSidebarItem], button[aerisSidebarItem]",
|
|
956
|
+
inputs: {
|
|
957
|
+
label: {
|
|
958
|
+
classPropertyName: "label",
|
|
959
|
+
publicName: "label",
|
|
960
|
+
isSignal: true,
|
|
961
|
+
isRequired: true,
|
|
962
|
+
transformFunction: null
|
|
963
|
+
},
|
|
964
|
+
active: {
|
|
965
|
+
classPropertyName: "active",
|
|
966
|
+
publicName: "active",
|
|
967
|
+
isSignal: true,
|
|
968
|
+
isRequired: false,
|
|
969
|
+
transformFunction: null
|
|
970
|
+
},
|
|
971
|
+
disabled: {
|
|
972
|
+
classPropertyName: "disabled",
|
|
973
|
+
publicName: "disabled",
|
|
974
|
+
isSignal: true,
|
|
975
|
+
isRequired: false,
|
|
976
|
+
transformFunction: null
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
host: {
|
|
980
|
+
listeners: {
|
|
981
|
+
"click": "handleClick($event)",
|
|
982
|
+
"focusin": "showTooltip()",
|
|
983
|
+
"focusout": "hideTooltip()"
|
|
984
|
+
},
|
|
985
|
+
properties: {
|
|
986
|
+
"attr.data-active": "active() || null",
|
|
987
|
+
"attr.data-disabled": "disabled() || null",
|
|
988
|
+
"attr.data-icon-only": "iconOnly() || null",
|
|
989
|
+
"attr.aria-label": "iconOnly() ? label() : null",
|
|
990
|
+
"attr.aria-current": "active() ? \"page\" : null",
|
|
991
|
+
"attr.aria-disabled": "disabled() || null",
|
|
992
|
+
"attr.disabled": "isButton && disabled() ? \"\" : null",
|
|
993
|
+
"attr.type": "isButton ? \"button\" : null"
|
|
994
|
+
},
|
|
995
|
+
classAttribute: "aeris-sidebar__item"
|
|
996
|
+
},
|
|
997
|
+
viewQueries: [{
|
|
998
|
+
propertyName: "tooltip",
|
|
999
|
+
first: true,
|
|
1000
|
+
predicate: AerisTooltip,
|
|
1001
|
+
descendants: true,
|
|
1002
|
+
isSignal: true
|
|
1003
|
+
}],
|
|
1004
|
+
ngImport: i0,
|
|
1005
|
+
template: `
|
|
1006
|
+
<span
|
|
1007
|
+
class="aeris-sidebar__item-content"
|
|
1008
|
+
[aerisTooltip]="iconOnly() ? label() : ''"
|
|
1009
|
+
aerisTooltipEvent="hover"
|
|
1010
|
+
[aerisTooltipPosition]="tooltipPosition()"
|
|
1011
|
+
>
|
|
1012
|
+
<ng-content select="[aerisSidebarIcon]" />
|
|
1013
|
+
<span class="aeris-sidebar__label">{{ label() }}</span>
|
|
1014
|
+
<ng-content select="[aerisSidebarBadge]" />
|
|
1015
|
+
</span>
|
|
1016
|
+
`,
|
|
1017
|
+
isInline: true,
|
|
1018
|
+
dependencies: [{
|
|
1019
|
+
kind: "directive",
|
|
1020
|
+
type: AerisTooltip,
|
|
1021
|
+
selector: "[aerisTooltip]",
|
|
1022
|
+
inputs: [
|
|
1023
|
+
"aerisTooltip",
|
|
1024
|
+
"aerisTooltipPosition",
|
|
1025
|
+
"aerisTooltipEvent",
|
|
1026
|
+
"aerisTooltipShowDelay",
|
|
1027
|
+
"aerisTooltipHideDelay",
|
|
1028
|
+
"aerisTooltipDisabled",
|
|
1029
|
+
"aerisTooltipAutoHide",
|
|
1030
|
+
"aerisTooltipOffset",
|
|
1031
|
+
"aerisTooltipViewportMargin",
|
|
1032
|
+
"aerisTooltipMaxWidth",
|
|
1033
|
+
"aerisTooltipStyleClass",
|
|
1034
|
+
"aerisTooltipAppendTo",
|
|
1035
|
+
"aerisTooltipTruncatedOnly"
|
|
1036
|
+
],
|
|
1037
|
+
outputs: ["aerisTooltipOpened", "aerisTooltipClosed"],
|
|
1038
|
+
exportAs: ["aerisTooltip"]
|
|
1039
|
+
}]
|
|
1040
|
+
});
|
|
1041
|
+
};
|
|
1042
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1043
|
+
minVersion: "12.0.0",
|
|
1044
|
+
version: "22.2.4",
|
|
1045
|
+
ngImport: i0,
|
|
1046
|
+
type: AerisSidebarItem,
|
|
1047
|
+
decorators: [{
|
|
1048
|
+
type: Component,
|
|
1049
|
+
args: [{
|
|
1050
|
+
selector: "a[aerisSidebarItem], button[aerisSidebarItem]",
|
|
1051
|
+
imports: [AerisTooltip],
|
|
1052
|
+
template: `
|
|
1053
|
+
<span
|
|
1054
|
+
class="aeris-sidebar__item-content"
|
|
1055
|
+
[aerisTooltip]="iconOnly() ? label() : ''"
|
|
1056
|
+
aerisTooltipEvent="hover"
|
|
1057
|
+
[aerisTooltipPosition]="tooltipPosition()"
|
|
1058
|
+
>
|
|
1059
|
+
<ng-content select="[aerisSidebarIcon]" />
|
|
1060
|
+
<span class="aeris-sidebar__label">{{ label() }}</span>
|
|
1061
|
+
<ng-content select="[aerisSidebarBadge]" />
|
|
1062
|
+
</span>
|
|
1063
|
+
`,
|
|
1064
|
+
host: {
|
|
1065
|
+
class: "aeris-sidebar__item",
|
|
1066
|
+
"[attr.data-active]": "active() || null",
|
|
1067
|
+
"[attr.data-disabled]": "disabled() || null",
|
|
1068
|
+
"[attr.data-icon-only]": "iconOnly() || null",
|
|
1069
|
+
"[attr.aria-label]": "iconOnly() ? label() : null",
|
|
1070
|
+
"[attr.aria-current]": "active() ? \"page\" : null",
|
|
1071
|
+
"[attr.aria-disabled]": "disabled() || null",
|
|
1072
|
+
"[attr.disabled]": "isButton && disabled() ? \"\" : null",
|
|
1073
|
+
"[attr.type]": "isButton ? \"button\" : null",
|
|
1074
|
+
"(click)": "handleClick($event)",
|
|
1075
|
+
"(focusin)": "showTooltip()",
|
|
1076
|
+
"(focusout)": "hideTooltip()"
|
|
1077
|
+
}
|
|
1078
|
+
}]
|
|
1079
|
+
}],
|
|
1080
|
+
ctorParameters: () => [],
|
|
1081
|
+
propDecorators: {
|
|
1082
|
+
tooltip: [{
|
|
1083
|
+
type: i0.ViewChild,
|
|
1084
|
+
args: [i0.forwardRef(() => AerisTooltip), { isSignal: true }]
|
|
1085
|
+
}],
|
|
1086
|
+
label: [{
|
|
1087
|
+
type: i0.Input,
|
|
1088
|
+
args: [{
|
|
1089
|
+
isSignal: true,
|
|
1090
|
+
alias: "label",
|
|
1091
|
+
required: true
|
|
1092
|
+
}]
|
|
1093
|
+
}],
|
|
1094
|
+
active: [{
|
|
1095
|
+
type: i0.Input,
|
|
1096
|
+
args: [{
|
|
1097
|
+
isSignal: true,
|
|
1098
|
+
alias: "active",
|
|
1099
|
+
required: false
|
|
1100
|
+
}]
|
|
1101
|
+
}],
|
|
1102
|
+
disabled: [{
|
|
1103
|
+
type: i0.Input,
|
|
1104
|
+
args: [{
|
|
1105
|
+
isSignal: true,
|
|
1106
|
+
alias: "disabled",
|
|
1107
|
+
required: false
|
|
1108
|
+
}]
|
|
1109
|
+
}]
|
|
1110
|
+
}
|
|
1111
|
+
});
|
|
1112
|
+
var AerisSidebarGroup = class AerisSidebarGroup {
|
|
1113
|
+
sidebar = inject(sidebarContext, { optional: true });
|
|
1114
|
+
label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
1115
|
+
expanded = model(true, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
|
|
1116
|
+
collapsible = input(true, {
|
|
1117
|
+
...ngDevMode ? { debugName: "collapsible" } : /* istanbul ignore next */ {},
|
|
1118
|
+
transform: booleanAttribute
|
|
1119
|
+
});
|
|
1120
|
+
iconOnly = computed(() => this.sidebar?.iconOnly() ?? false, ...ngDevMode ? [{ debugName: "iconOnly" }] : /* istanbul ignore next */ []);
|
|
1121
|
+
contentId = `aeris-sidebar-group-${nextGroupId++}`;
|
|
1122
|
+
toggleExpanded = (expanded) => !expanded;
|
|
1123
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1124
|
+
minVersion: "12.0.0",
|
|
1125
|
+
version: "22.2.4",
|
|
1126
|
+
ngImport: i0,
|
|
1127
|
+
type: AerisSidebarGroup,
|
|
1128
|
+
deps: [],
|
|
1129
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1130
|
+
});
|
|
1131
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1132
|
+
minVersion: "17.0.0",
|
|
1133
|
+
version: "22.2.4",
|
|
1134
|
+
type: AerisSidebarGroup,
|
|
1135
|
+
isStandalone: true,
|
|
1136
|
+
selector: "aeris-sidebar-group",
|
|
1137
|
+
inputs: {
|
|
1138
|
+
label: {
|
|
1139
|
+
classPropertyName: "label",
|
|
1140
|
+
publicName: "label",
|
|
1141
|
+
isSignal: true,
|
|
1142
|
+
isRequired: true,
|
|
1143
|
+
transformFunction: null
|
|
1144
|
+
},
|
|
1145
|
+
expanded: {
|
|
1146
|
+
classPropertyName: "expanded",
|
|
1147
|
+
publicName: "expanded",
|
|
1148
|
+
isSignal: true,
|
|
1149
|
+
isRequired: false,
|
|
1150
|
+
transformFunction: null
|
|
1151
|
+
},
|
|
1152
|
+
collapsible: {
|
|
1153
|
+
classPropertyName: "collapsible",
|
|
1154
|
+
publicName: "collapsible",
|
|
1155
|
+
isSignal: true,
|
|
1156
|
+
isRequired: false,
|
|
1157
|
+
transformFunction: null
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
outputs: { expanded: "expandedChange" },
|
|
1161
|
+
host: {
|
|
1162
|
+
properties: { "attr.data-icon-only": "iconOnly() || null" },
|
|
1163
|
+
classAttribute: "aeris-sidebar__group"
|
|
1164
|
+
},
|
|
1165
|
+
ngImport: i0,
|
|
1166
|
+
template: `
|
|
1167
|
+
@if (!iconOnly()) {
|
|
1168
|
+
@if (collapsible()) {
|
|
1169
|
+
<button
|
|
1170
|
+
class="aeris-sidebar__group-toggle"
|
|
1171
|
+
type="button"
|
|
1172
|
+
[attr.aria-expanded]="expanded()"
|
|
1173
|
+
[attr.aria-controls]="contentId"
|
|
1174
|
+
(click)="expanded.update(toggleExpanded)"
|
|
1175
|
+
>
|
|
1176
|
+
<span class="aeris-sidebar__group-label">{{ label() }}</span>
|
|
1177
|
+
<span
|
|
1178
|
+
aerisInternalIcon="chevronRight"
|
|
1179
|
+
class="aeris-sidebar__group-chevron"
|
|
1180
|
+
[attr.data-expanded]="expanded() || null"
|
|
1181
|
+
aria-hidden="true"
|
|
1182
|
+
></span>
|
|
1183
|
+
</button>
|
|
1184
|
+
} @else {
|
|
1185
|
+
<div class="aeris-sidebar__group-label aeris-sidebar__group-heading">{{ label() }}</div>
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
<div
|
|
1189
|
+
class="aeris-sidebar__group-content"
|
|
1190
|
+
[id]="contentId"
|
|
1191
|
+
[hidden]="!iconOnly() && !expanded() && collapsible()"
|
|
1192
|
+
>
|
|
1193
|
+
<ng-content />
|
|
1194
|
+
</div>
|
|
1195
|
+
`,
|
|
1196
|
+
isInline: true,
|
|
1197
|
+
dependencies: [{
|
|
1198
|
+
kind: "component",
|
|
1199
|
+
type: ɵAerisIcon,
|
|
1200
|
+
selector: "span[aerisInternalIcon]",
|
|
1201
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
1202
|
+
}]
|
|
1203
|
+
});
|
|
1204
|
+
};
|
|
1205
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1206
|
+
minVersion: "12.0.0",
|
|
1207
|
+
version: "22.2.4",
|
|
1208
|
+
ngImport: i0,
|
|
1209
|
+
type: AerisSidebarGroup,
|
|
1210
|
+
decorators: [{
|
|
1211
|
+
type: Component,
|
|
1212
|
+
args: [{
|
|
1213
|
+
selector: "aeris-sidebar-group",
|
|
1214
|
+
imports: [ɵAerisIcon],
|
|
1215
|
+
template: `
|
|
1216
|
+
@if (!iconOnly()) {
|
|
1217
|
+
@if (collapsible()) {
|
|
1218
|
+
<button
|
|
1219
|
+
class="aeris-sidebar__group-toggle"
|
|
1220
|
+
type="button"
|
|
1221
|
+
[attr.aria-expanded]="expanded()"
|
|
1222
|
+
[attr.aria-controls]="contentId"
|
|
1223
|
+
(click)="expanded.update(toggleExpanded)"
|
|
1224
|
+
>
|
|
1225
|
+
<span class="aeris-sidebar__group-label">{{ label() }}</span>
|
|
1226
|
+
<span
|
|
1227
|
+
aerisInternalIcon="chevronRight"
|
|
1228
|
+
class="aeris-sidebar__group-chevron"
|
|
1229
|
+
[attr.data-expanded]="expanded() || null"
|
|
1230
|
+
aria-hidden="true"
|
|
1231
|
+
></span>
|
|
1232
|
+
</button>
|
|
1233
|
+
} @else {
|
|
1234
|
+
<div class="aeris-sidebar__group-label aeris-sidebar__group-heading">{{ label() }}</div>
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
<div
|
|
1238
|
+
class="aeris-sidebar__group-content"
|
|
1239
|
+
[id]="contentId"
|
|
1240
|
+
[hidden]="!iconOnly() && !expanded() && collapsible()"
|
|
1241
|
+
>
|
|
1242
|
+
<ng-content />
|
|
1243
|
+
</div>
|
|
1244
|
+
`,
|
|
1245
|
+
host: {
|
|
1246
|
+
class: "aeris-sidebar__group",
|
|
1247
|
+
"[attr.data-icon-only]": "iconOnly() || null"
|
|
1248
|
+
}
|
|
1249
|
+
}]
|
|
1250
|
+
}],
|
|
1251
|
+
propDecorators: {
|
|
1252
|
+
label: [{
|
|
1253
|
+
type: i0.Input,
|
|
1254
|
+
args: [{
|
|
1255
|
+
isSignal: true,
|
|
1256
|
+
alias: "label",
|
|
1257
|
+
required: true
|
|
1258
|
+
}]
|
|
1259
|
+
}],
|
|
1260
|
+
expanded: [{
|
|
1261
|
+
type: i0.Input,
|
|
1262
|
+
args: [{
|
|
1263
|
+
isSignal: true,
|
|
1264
|
+
alias: "expanded",
|
|
1265
|
+
required: false
|
|
1266
|
+
}]
|
|
1267
|
+
}, {
|
|
1268
|
+
type: i0.Output,
|
|
1269
|
+
args: ["expandedChange"]
|
|
1270
|
+
}],
|
|
1271
|
+
collapsible: [{
|
|
1272
|
+
type: i0.Input,
|
|
1273
|
+
args: [{
|
|
1274
|
+
isSignal: true,
|
|
1275
|
+
alias: "collapsible",
|
|
1276
|
+
required: false
|
|
1277
|
+
}]
|
|
1278
|
+
}]
|
|
1279
|
+
}
|
|
1280
|
+
});
|
|
1281
|
+
const AerisSidebarModule = [
|
|
1282
|
+
AerisSidebar,
|
|
1283
|
+
AerisSidebarItem,
|
|
1284
|
+
AerisSidebarGroup,
|
|
1285
|
+
AerisSidebarToggle,
|
|
1286
|
+
AerisSidebarHeader,
|
|
1287
|
+
AerisSidebarFooter,
|
|
1288
|
+
AerisSidebarIcon,
|
|
1289
|
+
AerisSidebarBadge
|
|
1290
|
+
];
|
|
1291
|
+
export { AerisSidebar, AerisSidebarBadge, AerisSidebarFooter, AerisSidebarGroup, AerisSidebarHeader, AerisSidebarIcon, AerisSidebarItem, AerisSidebarModule, AerisSidebarToggle };
|
|
1292
|
+
|
|
1293
|
+
//# sourceMappingURL=aeris-ui-core-sidebar.mjs.map
|