@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +232 -191
- package/THIRD_PARTY_LICENSES.md +48 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +666 -273
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +1301 -450
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +562 -115
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +221 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +609 -199
- 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 +554 -36
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +911 -137
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +371 -101
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +835 -369
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +1294 -525
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +594 -262
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +619 -150
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +1109 -121
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-code-block.mjs +687 -0
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +2436 -1076
- 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 +870 -338
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1454 -575
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1499 -760
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +975 -449
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +2538 -1183
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1187 -368
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +204 -43
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +1712 -345
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +418 -254
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +1808 -783
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1529 -536
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +2821 -1143
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +110 -33
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +496 -132
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +713 -257
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +1095 -297
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +703 -160
- 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 +263 -201
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- 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 +662 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1111 -478
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +1081 -411
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +513 -147
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +641 -230
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1832 -577
- 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 +748 -220
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +521 -201
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +671 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +602 -210
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +1046 -269
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1796 -703
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +1354 -385
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +609 -182
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +428 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +502 -132
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +506 -231
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +279 -69
- 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 +1984 -668
- 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 +149 -45
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +884 -430
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +882 -337
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +972 -268
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +831 -356
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +705 -256
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +2927 -923
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +855 -283
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +919 -221
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1368 -1407
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -144
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +966 -447
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +1109 -384
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +1340 -131
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1650 -627
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2442 -994
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1257 -670
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +1601 -312
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +48 -8
- package/schematics/ng-add/schema.json +1 -1
- package/schematics/runtime/schematics/ng-add/options.js +4 -4
- package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +38 -17
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +13 -8
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +33 -23
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +8 -2
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +63 -76
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +15 -5
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +18 -2
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +121 -34
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_choice-card.scss +93 -0
- package/styles/_fallback-colors.scss +10 -0
- package/styles/_icon-artwork.scss +14 -0
- package/styles/_icon-template.scss +42 -0
- package/styles/_mobile.scss +16 -0
- package/styles/_selection-icons.scss +12 -0
- package/styles/_table-pinning.scss +119 -0
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +447 -137
- package/styles/controls.css +205 -35
- package/tools/aeris-theme.mjs +4 -4
- package/tools/aeris-theme.schema.json +18 -13
- package/types/aeris-ui-core-accordion.d.ts +167 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
- package/types/aeris-ui-core-auto-complete.d.ts +339 -140
- package/types/aeris-ui-core-auto-focus.d.ts +24 -16
- package/types/aeris-ui-core-avatar.d.ts +112 -42
- package/types/aeris-ui-core-badge.d.ts +160 -46
- package/types/aeris-ui-core-block-ui.d.ts +48 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
- package/types/aeris-ui-core-button-forms.d.ts +18 -0
- package/types/aeris-ui-core-button-group.d.ts +150 -16
- package/types/aeris-ui-core-button.d.ts +274 -67
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +213 -117
- package/types/aeris-ui-core-cascade-select.d.ts +275 -123
- package/types/aeris-ui-core-chart.d.ts +150 -84
- package/types/aeris-ui-core-checkbox.d.ts +173 -54
- package/types/aeris-ui-core-chip.d.ts +316 -56
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-code-block.d.ts +201 -0
- package/types/aeris-ui-core-color-picker.d.ts +450 -143
- package/types/aeris-ui-core-command-palette.d.ts +267 -0
- package/types/aeris-ui-core-compare.d.ts +230 -102
- package/types/aeris-ui-core-confirm-dialog.d.ts +450 -245
- package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
- package/types/aeris-ui-core-context-menu.d.ts +270 -146
- package/types/aeris-ui-core-date-picker.d.ts +594 -219
- package/types/aeris-ui-core-dialog.d.ts +301 -117
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +380 -112
- package/types/aeris-ui-core-dynamic-dialog.d.ts +162 -137
- package/types/aeris-ui-core-editor.d.ts +257 -123
- package/types/aeris-ui-core-file-upload.d.ts +385 -197
- package/types/aeris-ui-core-filter-service.d.ts +48 -52
- package/types/aeris-ui-core-fluid.d.ts +12 -9
- package/types/aeris-ui-core-focus-trap.d.ts +39 -31
- package/types/aeris-ui-core-form-field.d.ts +163 -0
- package/types/aeris-ui-core-galleria.d.ts +636 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -32
- package/types/aeris-ui-core-inplace.d.ts +129 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -33
- package/types/aeris-ui-core-input-mask.d.ts +201 -69
- package/types/aeris-ui-core-input-number.d.ts +291 -87
- package/types/aeris-ui-core-input-otp.d.ts +191 -81
- package/types/aeris-ui-core-input-text.d.ts +195 -60
- package/types/aeris-ui-core-kbd.d.ts +74 -0
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-listbox.d.ts +222 -0
- package/types/aeris-ui-core-mega-menu.d.ts +181 -121
- package/types/aeris-ui-core-menu.d.ts +283 -168
- package/types/aeris-ui-core-menubar.d.ts +289 -135
- package/types/aeris-ui-core-message.d.ts +138 -60
- package/types/aeris-ui-core-meter-group.d.ts +169 -90
- package/types/aeris-ui-core-multi-select.d.ts +469 -180
- package/types/aeris-ui-core-navbar.d.ts +208 -0
- package/types/aeris-ui-core-order-list.d.ts +168 -66
- package/types/aeris-ui-core-organization-chart.d.ts +139 -77
- package/types/aeris-ui-core-paginator.d.ts +129 -38
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +276 -102
- package/types/aeris-ui-core-pick-list.d.ts +428 -179
- package/types/aeris-ui-core-popover.d.ts +294 -105
- package/types/aeris-ui-core-progress-bar.d.ts +163 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +116 -48
- package/types/aeris-ui-core-radio-button.d.ts +146 -50
- package/types/aeris-ui-core-rating.d.ts +149 -76
- package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
- package/types/aeris-ui-core-scroll-top.d.ts +73 -29
- package/types/aeris-ui-core-select-native.d.ts +40 -0
- package/types/aeris-ui-core-select.d.ts +487 -217
- package/types/aeris-ui-core-sidebar.d.ts +220 -0
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -115
- package/types/aeris-ui-core-speed-dial.d.ts +241 -111
- package/types/aeris-ui-core-split-button.d.ts +267 -113
- package/types/aeris-ui-core-splitter.d.ts +224 -106
- package/types/aeris-ui-core-stepper.d.ts +184 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +729 -304
- package/types/aeris-ui-core-tabs.d.ts +193 -76
- package/types/aeris-ui-core-textarea.d.ts +271 -78
- package/types/aeris-ui-core-theme-builder.d.ts +220 -463
- package/types/aeris-ui-core-theming.d.ts +42 -45
- package/types/aeris-ui-core-tiered-menu.d.ts +257 -142
- package/types/aeris-ui-core-timeline.d.ts +109 -71
- package/types/aeris-ui-core-toast.d.ts +231 -115
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
- package/types/aeris-ui-core-toolbar.d.ts +314 -47
- package/types/aeris-ui-core-tooltip.d.ts +157 -88
- package/types/aeris-ui-core-tree-select.d.ts +394 -171
- package/types/aeris-ui-core-tree-table.d.ts +629 -288
- package/types/aeris-ui-core-tree.d.ts +294 -165
- package/types/aeris-ui-core.d.ts +338 -74
|
@@ -0,0 +1,1407 @@
|
|
|
1
|
+
import { DOCUMENT } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, ElementRef, InjectionToken, Renderer2, ViewEncapsulation, afterRenderEffect, booleanAttribute, computed, contentChild, contentChildren, effect, forwardRef, inject, input, model, signal, untracked, viewChild } from "@angular/core";
|
|
4
|
+
import { aerisInternalFocusableElements, ɵAerisAppendTo, ɵAerisIcon } from "@aeris-ui/core";
|
|
5
|
+
const navbarContext = new InjectionToken("AerisNavbar context");
|
|
6
|
+
let nextNavbarId = 0;
|
|
7
|
+
let nextDisclosureId = 0;
|
|
8
|
+
var AerisNavbarBrand = class AerisNavbarBrand {
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
10
|
+
minVersion: "12.0.0",
|
|
11
|
+
version: "22.2.3",
|
|
12
|
+
ngImport: i0,
|
|
13
|
+
type: AerisNavbarBrand,
|
|
14
|
+
deps: [],
|
|
15
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
16
|
+
});
|
|
17
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
18
|
+
minVersion: "14.0.0",
|
|
19
|
+
version: "22.2.3",
|
|
20
|
+
type: AerisNavbarBrand,
|
|
21
|
+
isStandalone: true,
|
|
22
|
+
selector: "[aerisNavbarBrand]",
|
|
23
|
+
host: { classAttribute: "aeris-navbar__brand" },
|
|
24
|
+
ngImport: i0
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
28
|
+
minVersion: "12.0.0",
|
|
29
|
+
version: "22.2.3",
|
|
30
|
+
ngImport: i0,
|
|
31
|
+
type: AerisNavbarBrand,
|
|
32
|
+
decorators: [{
|
|
33
|
+
type: Directive,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: "[aerisNavbarBrand]",
|
|
36
|
+
host: { class: "aeris-navbar__brand" }
|
|
37
|
+
}]
|
|
38
|
+
}]
|
|
39
|
+
});
|
|
40
|
+
var AerisNavbarLinks = class AerisNavbarLinks {
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
42
|
+
minVersion: "12.0.0",
|
|
43
|
+
version: "22.2.3",
|
|
44
|
+
ngImport: i0,
|
|
45
|
+
type: AerisNavbarLinks,
|
|
46
|
+
deps: [],
|
|
47
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
48
|
+
});
|
|
49
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
50
|
+
minVersion: "14.0.0",
|
|
51
|
+
version: "22.2.3",
|
|
52
|
+
type: AerisNavbarLinks,
|
|
53
|
+
isStandalone: true,
|
|
54
|
+
selector: "[aerisNavbarLinks]",
|
|
55
|
+
host: { classAttribute: "aeris-navbar__links" },
|
|
56
|
+
ngImport: i0
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
60
|
+
minVersion: "12.0.0",
|
|
61
|
+
version: "22.2.3",
|
|
62
|
+
ngImport: i0,
|
|
63
|
+
type: AerisNavbarLinks,
|
|
64
|
+
decorators: [{
|
|
65
|
+
type: Directive,
|
|
66
|
+
args: [{
|
|
67
|
+
selector: "[aerisNavbarLinks]",
|
|
68
|
+
host: { class: "aeris-navbar__links" }
|
|
69
|
+
}]
|
|
70
|
+
}]
|
|
71
|
+
});
|
|
72
|
+
var AerisNavbarActions = class AerisNavbarActions {
|
|
73
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
74
|
+
minVersion: "12.0.0",
|
|
75
|
+
version: "22.2.3",
|
|
76
|
+
ngImport: i0,
|
|
77
|
+
type: AerisNavbarActions,
|
|
78
|
+
deps: [],
|
|
79
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
80
|
+
});
|
|
81
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
82
|
+
minVersion: "14.0.0",
|
|
83
|
+
version: "22.2.3",
|
|
84
|
+
type: AerisNavbarActions,
|
|
85
|
+
isStandalone: true,
|
|
86
|
+
selector: "[aerisNavbarActions]",
|
|
87
|
+
host: { classAttribute: "aeris-navbar__actions" },
|
|
88
|
+
ngImport: i0
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
92
|
+
minVersion: "12.0.0",
|
|
93
|
+
version: "22.2.3",
|
|
94
|
+
ngImport: i0,
|
|
95
|
+
type: AerisNavbarActions,
|
|
96
|
+
decorators: [{
|
|
97
|
+
type: Directive,
|
|
98
|
+
args: [{
|
|
99
|
+
selector: "[aerisNavbarActions]",
|
|
100
|
+
host: { class: "aeris-navbar__actions" }
|
|
101
|
+
}]
|
|
102
|
+
}]
|
|
103
|
+
});
|
|
104
|
+
var AerisNavbarIcon = class AerisNavbarIcon {
|
|
105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
106
|
+
minVersion: "12.0.0",
|
|
107
|
+
version: "22.2.3",
|
|
108
|
+
ngImport: i0,
|
|
109
|
+
type: AerisNavbarIcon,
|
|
110
|
+
deps: [],
|
|
111
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
112
|
+
});
|
|
113
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
114
|
+
minVersion: "14.0.0",
|
|
115
|
+
version: "22.2.3",
|
|
116
|
+
type: AerisNavbarIcon,
|
|
117
|
+
isStandalone: true,
|
|
118
|
+
selector: "[aerisNavbarIcon]",
|
|
119
|
+
host: {
|
|
120
|
+
attributes: { "aria-hidden": "true" },
|
|
121
|
+
classAttribute: "aeris-navbar__icon"
|
|
122
|
+
},
|
|
123
|
+
ngImport: i0
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
127
|
+
minVersion: "12.0.0",
|
|
128
|
+
version: "22.2.3",
|
|
129
|
+
ngImport: i0,
|
|
130
|
+
type: AerisNavbarIcon,
|
|
131
|
+
decorators: [{
|
|
132
|
+
type: Directive,
|
|
133
|
+
args: [{
|
|
134
|
+
selector: "[aerisNavbarIcon]",
|
|
135
|
+
host: {
|
|
136
|
+
class: "aeris-navbar__icon",
|
|
137
|
+
"aria-hidden": "true"
|
|
138
|
+
}
|
|
139
|
+
}]
|
|
140
|
+
}]
|
|
141
|
+
});
|
|
142
|
+
var AerisNavbarToggle = class AerisNavbarToggle {
|
|
143
|
+
navbar = inject(navbarContext);
|
|
144
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
145
|
+
minVersion: "12.0.0",
|
|
146
|
+
version: "22.2.3",
|
|
147
|
+
ngImport: i0,
|
|
148
|
+
type: AerisNavbarToggle,
|
|
149
|
+
deps: [],
|
|
150
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
151
|
+
});
|
|
152
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
153
|
+
minVersion: "14.0.0",
|
|
154
|
+
version: "22.2.3",
|
|
155
|
+
type: AerisNavbarToggle,
|
|
156
|
+
isStandalone: true,
|
|
157
|
+
selector: "button[aerisNavbarToggle]",
|
|
158
|
+
host: {
|
|
159
|
+
attributes: { "type": "button" },
|
|
160
|
+
listeners: { "click": "navbar.toggle()" },
|
|
161
|
+
properties: {
|
|
162
|
+
"attr.aria-controls": "navbar.navigationId",
|
|
163
|
+
"attr.aria-expanded": "navbar.expanded()",
|
|
164
|
+
"attr.aria-label": "navbar.expanded() ? navbar.closeAriaLabel() : navbar.openAriaLabel()",
|
|
165
|
+
"hidden": "!navbar.mobile()"
|
|
166
|
+
},
|
|
167
|
+
classAttribute: "aeris-navbar__toggle"
|
|
168
|
+
},
|
|
169
|
+
ngImport: i0
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
173
|
+
minVersion: "12.0.0",
|
|
174
|
+
version: "22.2.3",
|
|
175
|
+
ngImport: i0,
|
|
176
|
+
type: AerisNavbarToggle,
|
|
177
|
+
decorators: [{
|
|
178
|
+
type: Directive,
|
|
179
|
+
args: [{
|
|
180
|
+
selector: "button[aerisNavbarToggle]",
|
|
181
|
+
host: {
|
|
182
|
+
class: "aeris-navbar__toggle",
|
|
183
|
+
type: "button",
|
|
184
|
+
"[attr.aria-controls]": "navbar.navigationId",
|
|
185
|
+
"[attr.aria-expanded]": "navbar.expanded()",
|
|
186
|
+
"[attr.aria-label]": "navbar.expanded() ? navbar.closeAriaLabel() : navbar.openAriaLabel()",
|
|
187
|
+
"[hidden]": "!navbar.mobile()",
|
|
188
|
+
"(click)": "navbar.toggle()"
|
|
189
|
+
}
|
|
190
|
+
}]
|
|
191
|
+
}]
|
|
192
|
+
});
|
|
193
|
+
var AerisNavbar = class AerisNavbar {
|
|
194
|
+
host = inject(ElementRef).nativeElement;
|
|
195
|
+
document = inject(DOCUMENT);
|
|
196
|
+
renderer = inject(Renderer2);
|
|
197
|
+
navigation = viewChild("navigation", ...ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []);
|
|
198
|
+
bar = viewChild("bar", ...ngDevMode ? [{ debugName: "bar" }] : /* istanbul ignore next */ []);
|
|
199
|
+
defaultToggle = viewChild("defaultToggle", ...ngDevMode ? [{ debugName: "defaultToggle" }] : /* istanbul ignore next */ []);
|
|
200
|
+
ɵdropdowns = contentChildren(AerisNavbarDropdown, {
|
|
201
|
+
...ngDevMode ? { debugName: "ɵdropdowns" } : /* istanbul ignore next */ {},
|
|
202
|
+
descendants: true
|
|
203
|
+
});
|
|
204
|
+
dropdownElements = contentChildren(AerisNavbarDropdown, {
|
|
205
|
+
...ngDevMode ? { debugName: "dropdownElements" } : /* istanbul ignore next */ {},
|
|
206
|
+
descendants: true,
|
|
207
|
+
read: ElementRef
|
|
208
|
+
});
|
|
209
|
+
customToggle = contentChild(AerisNavbarToggle, ...ngDevMode ? [{ debugName: "customToggle" }] : /* istanbul ignore next */ []);
|
|
210
|
+
compact = signal(false, ...ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []);
|
|
211
|
+
restoreFocus = signal(null, ...ngDevMode ? [{ debugName: "restoreFocus" }] : /* istanbul ignore next */ []);
|
|
212
|
+
items = contentChildren(AerisNavbarItem, {
|
|
213
|
+
...ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {},
|
|
214
|
+
descendants: true
|
|
215
|
+
});
|
|
216
|
+
itemElements = contentChildren(AerisNavbarItem, {
|
|
217
|
+
...ngDevMode ? { debugName: "itemElements" } : /* istanbul ignore next */ {},
|
|
218
|
+
descendants: true,
|
|
219
|
+
read: ElementRef
|
|
220
|
+
});
|
|
221
|
+
indicator = signal(null, ...ngDevMode ? [{ debugName: "indicator" }] : /* istanbul ignore next */ []);
|
|
222
|
+
indicatorReady = signal(false, ...ngDevMode ? [{ debugName: "indicatorReady" }] : /* istanbul ignore next */ []);
|
|
223
|
+
expanded = model(false, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
|
|
224
|
+
mode = input("auto", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
|
|
225
|
+
breakpoint = input(768, ...ngDevMode ? [{ debugName: "breakpoint" }] : /* istanbul ignore next */ []);
|
|
226
|
+
variant = input("standard", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
227
|
+
maxWidth = input("72rem", ...ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []);
|
|
228
|
+
alignment = input("center", ...ngDevMode ? [{ debugName: "alignment" }] : /* istanbul ignore next */ []);
|
|
229
|
+
sticky = input(false, {
|
|
230
|
+
...ngDevMode ? { debugName: "sticky" } : /* istanbul ignore next */ {},
|
|
231
|
+
transform: booleanAttribute
|
|
232
|
+
});
|
|
233
|
+
closeOnNavigate = input(true, {
|
|
234
|
+
...ngDevMode ? { debugName: "closeOnNavigate" } : /* istanbul ignore next */ {},
|
|
235
|
+
transform: booleanAttribute
|
|
236
|
+
});
|
|
237
|
+
closeOnOutsideClick = input(true, {
|
|
238
|
+
...ngDevMode ? { debugName: "closeOnOutsideClick" } : /* istanbul ignore next */ {},
|
|
239
|
+
transform: booleanAttribute
|
|
240
|
+
});
|
|
241
|
+
ariaLabel = input("Primary navigation", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
242
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
243
|
+
openAriaLabel = input("Open navigation", ...ngDevMode ? [{ debugName: "openAriaLabel" }] : /* istanbul ignore next */ []);
|
|
244
|
+
closeAriaLabel = input("Close navigation", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
|
|
245
|
+
navigationId = `aeris-navbar-${nextNavbarId++}`;
|
|
246
|
+
mobile = computed(() => this.mode() === "mobile" || this.mode() === "auto" && this.compact(), ...ngDevMode ? [{ debugName: "mobile" }] : /* istanbul ignore next */ []);
|
|
247
|
+
constructor() {
|
|
248
|
+
afterRenderEffect((onCleanup) => {
|
|
249
|
+
const navigation = this.navigation()?.nativeElement;
|
|
250
|
+
const elements = this.itemElements();
|
|
251
|
+
const active = this.items().findIndex((item, index) => item.active() && !item.disabled() && elements[index]?.nativeElement.parentElement?.matches("[aerisNavbarLinks]"));
|
|
252
|
+
const dropdownElements = this.dropdownElements();
|
|
253
|
+
const activeDropdown = this.ɵdropdowns().findIndex((dropdown, index) => dropdown.active() && dropdownElements[index]?.nativeElement.parentElement?.matches("[aerisNavbarLinks]"));
|
|
254
|
+
const target = elements[active]?.nativeElement ?? dropdownElements[activeDropdown]?.nativeElement.querySelector(".aeris-navbar__dropdown-trigger");
|
|
255
|
+
if (this.mobile() || !navigation || !target) {
|
|
256
|
+
this.indicator.set(null);
|
|
257
|
+
this.indicatorReady.set(false);
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
let frame = 0;
|
|
261
|
+
let readyFrame = 0;
|
|
262
|
+
const update = () => {
|
|
263
|
+
this.indicator.set({
|
|
264
|
+
x: target.offsetLeft + 12,
|
|
265
|
+
y: target.offsetTop + target.offsetHeight,
|
|
266
|
+
width: Math.max(2, target.offsetWidth - 24)
|
|
267
|
+
});
|
|
268
|
+
if (!untracked(this.indicatorReady)) readyFrame = requestAnimationFrame(() => this.indicatorReady.set(true));
|
|
269
|
+
};
|
|
270
|
+
frame = requestAnimationFrame(update);
|
|
271
|
+
const observer = typeof ResizeObserver === "function" ? new ResizeObserver(() => {
|
|
272
|
+
cancelAnimationFrame(frame);
|
|
273
|
+
frame = requestAnimationFrame(update);
|
|
274
|
+
}) : null;
|
|
275
|
+
observer?.observe(navigation);
|
|
276
|
+
for (const element of elements) if (element.nativeElement.parentElement?.matches("[aerisNavbarLinks]")) observer?.observe(element.nativeElement);
|
|
277
|
+
for (const element of dropdownElements) {
|
|
278
|
+
const trigger = element.nativeElement.querySelector(".aeris-navbar__dropdown-trigger");
|
|
279
|
+
if (trigger && element.nativeElement.parentElement?.matches("[aerisNavbarLinks]")) observer?.observe(trigger);
|
|
280
|
+
}
|
|
281
|
+
onCleanup(() => {
|
|
282
|
+
observer?.disconnect();
|
|
283
|
+
cancelAnimationFrame(frame);
|
|
284
|
+
cancelAnimationFrame(readyFrame);
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
afterRenderEffect((onCleanup) => {
|
|
288
|
+
if (this.mode() !== "auto") return;
|
|
289
|
+
const value = this.breakpoint();
|
|
290
|
+
this.alignment();
|
|
291
|
+
this.maxWidth();
|
|
292
|
+
const bar = this.bar()?.nativeElement ?? this.host;
|
|
293
|
+
const breakpoint = value !== "auto" && Number.isFinite(value) ? Math.max(0, value) : 768;
|
|
294
|
+
const update = () => {
|
|
295
|
+
if (value === "auto" && !bar.clientWidth) return;
|
|
296
|
+
const compact = value === "auto" ? this.contentOverflows(bar) : (bar.clientWidth || this.host.clientWidth) <= breakpoint;
|
|
297
|
+
if (compact && !this.mobile() && this.navigation()?.nativeElement.contains(this.document.activeElement)) this.restoreFocus.set("toggle");
|
|
298
|
+
this.compact.set(compact);
|
|
299
|
+
};
|
|
300
|
+
untracked(update);
|
|
301
|
+
let frame = 0;
|
|
302
|
+
let disposed = false;
|
|
303
|
+
const schedule = () => {
|
|
304
|
+
if (disposed || frame) return;
|
|
305
|
+
frame = requestAnimationFrame(() => {
|
|
306
|
+
frame = 0;
|
|
307
|
+
update();
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
const observer = new ResizeObserver(value === "auto" ? schedule : update);
|
|
311
|
+
observer.observe(bar);
|
|
312
|
+
const mutations = value === "auto" ? new MutationObserver(schedule) : null;
|
|
313
|
+
if (value === "auto") {
|
|
314
|
+
for (const element of bar.querySelectorAll(".aeris-navbar__brand, .aeris-navbar__actions, [aerisNavbarLinks] > *")) observer.observe(element);
|
|
315
|
+
mutations?.observe(this.host, {
|
|
316
|
+
subtree: true,
|
|
317
|
+
childList: true,
|
|
318
|
+
characterData: true,
|
|
319
|
+
attributes: true,
|
|
320
|
+
attributeFilter: [
|
|
321
|
+
"class",
|
|
322
|
+
"style",
|
|
323
|
+
"hidden",
|
|
324
|
+
"dir",
|
|
325
|
+
"data-active"
|
|
326
|
+
]
|
|
327
|
+
});
|
|
328
|
+
this.document.fonts?.addEventListener("loadingdone", schedule);
|
|
329
|
+
this.document.fonts?.ready.then(schedule);
|
|
330
|
+
}
|
|
331
|
+
onCleanup(() => {
|
|
332
|
+
disposed = true;
|
|
333
|
+
cancelAnimationFrame(frame);
|
|
334
|
+
observer.disconnect();
|
|
335
|
+
mutations?.disconnect();
|
|
336
|
+
this.document.fonts?.removeEventListener("loadingdone", schedule);
|
|
337
|
+
});
|
|
338
|
+
});
|
|
339
|
+
let previousMobile = false;
|
|
340
|
+
effect(() => {
|
|
341
|
+
const mobile = this.mobile();
|
|
342
|
+
const expanded = this.expanded();
|
|
343
|
+
if (!mobile && previousMobile) {
|
|
344
|
+
if (this.host.querySelector(".aeris-navbar__toggle")?.contains(this.document.activeElement)) this.restoreFocus.set("navigation");
|
|
345
|
+
this.expanded.set(false);
|
|
346
|
+
}
|
|
347
|
+
if (mobile && !expanded && this.navigation()?.nativeElement.contains(this.document.activeElement)) this.restoreFocus.set("toggle");
|
|
348
|
+
previousMobile = mobile;
|
|
349
|
+
});
|
|
350
|
+
afterRenderEffect(() => {
|
|
351
|
+
const target = this.restoreFocus();
|
|
352
|
+
if (target === "toggle" && this.mobile()) (this.defaultToggle()?.nativeElement ?? this.host.querySelector("button[aerisNavbarToggle]"))?.focus({ preventScroll: true });
|
|
353
|
+
else if (target === "navigation" && !this.mobile()) {
|
|
354
|
+
const navigation = this.navigation()?.nativeElement;
|
|
355
|
+
if (navigation) aerisInternalFocusableElements(navigation, { checkComputedVisibility: true })[0]?.focus({ preventScroll: true });
|
|
356
|
+
}
|
|
357
|
+
this.restoreFocus.set(null);
|
|
358
|
+
});
|
|
359
|
+
effect((onCleanup) => {
|
|
360
|
+
if (!this.mobile() || !this.expanded() || !this.closeOnOutsideClick()) return;
|
|
361
|
+
onCleanup(this.renderer.listen(this.document, "click", (event) => {
|
|
362
|
+
if (event.target instanceof Node && !this.host.contains(event.target)) this.expanded.set(false);
|
|
363
|
+
}, { capture: true }));
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
contentOverflows(bar) {
|
|
367
|
+
this.host.setAttribute("data-measuring", "");
|
|
368
|
+
try {
|
|
369
|
+
const view = this.document.defaultView;
|
|
370
|
+
if (!view) return false;
|
|
371
|
+
const width = (selector) => {
|
|
372
|
+
const element = bar.querySelector(selector);
|
|
373
|
+
if (!element) return 0;
|
|
374
|
+
const style = view.getComputedStyle(element);
|
|
375
|
+
return element.offsetWidth + (parseFloat(style.marginLeft) || 0) + (parseFloat(style.marginRight) || 0);
|
|
376
|
+
};
|
|
377
|
+
const brand = width(":scope > .aeris-navbar__brand");
|
|
378
|
+
const actions = width(":scope > .aeris-navbar__actions");
|
|
379
|
+
const navigation = width(":scope > .aeris-navbar__navigation");
|
|
380
|
+
const style = view.getComputedStyle(bar);
|
|
381
|
+
const spacing = (parseFloat(style.paddingLeft) || 0) + (parseFloat(style.paddingRight) || 0) + 2 * (parseFloat(style.columnGap) || 0);
|
|
382
|
+
return navigation + (this.alignment() === "center" ? 2 * Math.max(brand, actions) : brand + actions) + spacing > bar.clientWidth + .5;
|
|
383
|
+
} finally {
|
|
384
|
+
this.host.removeAttribute("data-measuring");
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
toggle() {
|
|
388
|
+
if (this.mobile()) this.expanded.update((expanded) => !expanded);
|
|
389
|
+
}
|
|
390
|
+
close() {
|
|
391
|
+
this.expanded.set(false);
|
|
392
|
+
}
|
|
393
|
+
handleNavigationClick(event) {
|
|
394
|
+
if (!this.closeOnNavigate() || !normalActivation(event)) return;
|
|
395
|
+
const item = event.target instanceof Element ? event.target.closest(".aeris-navbar__item") : null;
|
|
396
|
+
if (item && !item.hasAttribute("disabled") && item.getAttribute("aria-disabled") !== "true" && !(item instanceof HTMLAnchorElement && item.target && item.target !== "_self")) this.close();
|
|
397
|
+
}
|
|
398
|
+
handleKeydown(event) {
|
|
399
|
+
if (event.key === "Escape" && this.mobile() && this.expanded()) {
|
|
400
|
+
event.preventDefault();
|
|
401
|
+
event.stopPropagation();
|
|
402
|
+
this.close();
|
|
403
|
+
this.restoreFocus.set("toggle");
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
407
|
+
minVersion: "12.0.0",
|
|
408
|
+
version: "22.2.3",
|
|
409
|
+
ngImport: i0,
|
|
410
|
+
type: AerisNavbar,
|
|
411
|
+
deps: [],
|
|
412
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
413
|
+
});
|
|
414
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
415
|
+
minVersion: "17.0.0",
|
|
416
|
+
version: "22.2.3",
|
|
417
|
+
type: AerisNavbar,
|
|
418
|
+
isStandalone: true,
|
|
419
|
+
selector: "aeris-navbar",
|
|
420
|
+
inputs: {
|
|
421
|
+
expanded: {
|
|
422
|
+
classPropertyName: "expanded",
|
|
423
|
+
publicName: "expanded",
|
|
424
|
+
isSignal: true,
|
|
425
|
+
isRequired: false,
|
|
426
|
+
transformFunction: null
|
|
427
|
+
},
|
|
428
|
+
mode: {
|
|
429
|
+
classPropertyName: "mode",
|
|
430
|
+
publicName: "mode",
|
|
431
|
+
isSignal: true,
|
|
432
|
+
isRequired: false,
|
|
433
|
+
transformFunction: null
|
|
434
|
+
},
|
|
435
|
+
breakpoint: {
|
|
436
|
+
classPropertyName: "breakpoint",
|
|
437
|
+
publicName: "breakpoint",
|
|
438
|
+
isSignal: true,
|
|
439
|
+
isRequired: false,
|
|
440
|
+
transformFunction: null
|
|
441
|
+
},
|
|
442
|
+
variant: {
|
|
443
|
+
classPropertyName: "variant",
|
|
444
|
+
publicName: "variant",
|
|
445
|
+
isSignal: true,
|
|
446
|
+
isRequired: false,
|
|
447
|
+
transformFunction: null
|
|
448
|
+
},
|
|
449
|
+
maxWidth: {
|
|
450
|
+
classPropertyName: "maxWidth",
|
|
451
|
+
publicName: "maxWidth",
|
|
452
|
+
isSignal: true,
|
|
453
|
+
isRequired: false,
|
|
454
|
+
transformFunction: null
|
|
455
|
+
},
|
|
456
|
+
alignment: {
|
|
457
|
+
classPropertyName: "alignment",
|
|
458
|
+
publicName: "alignment",
|
|
459
|
+
isSignal: true,
|
|
460
|
+
isRequired: false,
|
|
461
|
+
transformFunction: null
|
|
462
|
+
},
|
|
463
|
+
sticky: {
|
|
464
|
+
classPropertyName: "sticky",
|
|
465
|
+
publicName: "sticky",
|
|
466
|
+
isSignal: true,
|
|
467
|
+
isRequired: false,
|
|
468
|
+
transformFunction: null
|
|
469
|
+
},
|
|
470
|
+
closeOnNavigate: {
|
|
471
|
+
classPropertyName: "closeOnNavigate",
|
|
472
|
+
publicName: "closeOnNavigate",
|
|
473
|
+
isSignal: true,
|
|
474
|
+
isRequired: false,
|
|
475
|
+
transformFunction: null
|
|
476
|
+
},
|
|
477
|
+
closeOnOutsideClick: {
|
|
478
|
+
classPropertyName: "closeOnOutsideClick",
|
|
479
|
+
publicName: "closeOnOutsideClick",
|
|
480
|
+
isSignal: true,
|
|
481
|
+
isRequired: false,
|
|
482
|
+
transformFunction: null
|
|
483
|
+
},
|
|
484
|
+
ariaLabel: {
|
|
485
|
+
classPropertyName: "ariaLabel",
|
|
486
|
+
publicName: "ariaLabel",
|
|
487
|
+
isSignal: true,
|
|
488
|
+
isRequired: false,
|
|
489
|
+
transformFunction: null
|
|
490
|
+
},
|
|
491
|
+
ariaLabelledBy: {
|
|
492
|
+
classPropertyName: "ariaLabelledBy",
|
|
493
|
+
publicName: "ariaLabelledBy",
|
|
494
|
+
isSignal: true,
|
|
495
|
+
isRequired: false,
|
|
496
|
+
transformFunction: null
|
|
497
|
+
},
|
|
498
|
+
openAriaLabel: {
|
|
499
|
+
classPropertyName: "openAriaLabel",
|
|
500
|
+
publicName: "openAriaLabel",
|
|
501
|
+
isSignal: true,
|
|
502
|
+
isRequired: false,
|
|
503
|
+
transformFunction: null
|
|
504
|
+
},
|
|
505
|
+
closeAriaLabel: {
|
|
506
|
+
classPropertyName: "closeAriaLabel",
|
|
507
|
+
publicName: "closeAriaLabel",
|
|
508
|
+
isSignal: true,
|
|
509
|
+
isRequired: false,
|
|
510
|
+
transformFunction: null
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
outputs: { expanded: "expandedChange" },
|
|
514
|
+
host: {
|
|
515
|
+
listeners: { "keydown": "handleKeydown($event)" },
|
|
516
|
+
properties: {
|
|
517
|
+
"style.--aeris-navbar-max-width": "maxWidth()",
|
|
518
|
+
"attr.data-alignment": "alignment()",
|
|
519
|
+
"attr.data-mobile": "mobile() || null",
|
|
520
|
+
"attr.data-expanded": "(mobile() && expanded()) || null",
|
|
521
|
+
"attr.data-sticky": "sticky() || null",
|
|
522
|
+
"attr.data-variant": "variant()"
|
|
523
|
+
},
|
|
524
|
+
classAttribute: "aeris-navbar"
|
|
525
|
+
},
|
|
526
|
+
providers: [{
|
|
527
|
+
provide: navbarContext,
|
|
528
|
+
useExisting: forwardRef(() => AerisNavbar)
|
|
529
|
+
}],
|
|
530
|
+
queries: [
|
|
531
|
+
{
|
|
532
|
+
propertyName: "ɵdropdowns",
|
|
533
|
+
predicate: AerisNavbarDropdown,
|
|
534
|
+
descendants: true,
|
|
535
|
+
isSignal: true
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
propertyName: "dropdownElements",
|
|
539
|
+
predicate: AerisNavbarDropdown,
|
|
540
|
+
descendants: true,
|
|
541
|
+
read: ElementRef,
|
|
542
|
+
isSignal: true
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
propertyName: "customToggle",
|
|
546
|
+
first: true,
|
|
547
|
+
predicate: AerisNavbarToggle,
|
|
548
|
+
descendants: true,
|
|
549
|
+
isSignal: true
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
propertyName: "items",
|
|
553
|
+
predicate: AerisNavbarItem,
|
|
554
|
+
descendants: true,
|
|
555
|
+
isSignal: true
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
propertyName: "itemElements",
|
|
559
|
+
predicate: AerisNavbarItem,
|
|
560
|
+
descendants: true,
|
|
561
|
+
read: ElementRef,
|
|
562
|
+
isSignal: true
|
|
563
|
+
}
|
|
564
|
+
],
|
|
565
|
+
viewQueries: [
|
|
566
|
+
{
|
|
567
|
+
propertyName: "navigation",
|
|
568
|
+
first: true,
|
|
569
|
+
predicate: ["navigation"],
|
|
570
|
+
descendants: true,
|
|
571
|
+
isSignal: true
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
propertyName: "bar",
|
|
575
|
+
first: true,
|
|
576
|
+
predicate: ["bar"],
|
|
577
|
+
descendants: true,
|
|
578
|
+
isSignal: true
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
propertyName: "defaultToggle",
|
|
582
|
+
first: true,
|
|
583
|
+
predicate: ["defaultToggle"],
|
|
584
|
+
descendants: true,
|
|
585
|
+
isSignal: true
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
ngImport: i0,
|
|
589
|
+
template: `
|
|
590
|
+
<div #bar class="aeris-navbar__bar">
|
|
591
|
+
<ng-content select="[aerisNavbarBrand]" />
|
|
592
|
+
<nav
|
|
593
|
+
#navigation
|
|
594
|
+
class="aeris-navbar__navigation"
|
|
595
|
+
[id]="navigationId"
|
|
596
|
+
[attr.aria-label]="ariaLabelledBy() ? null : ariaLabel()"
|
|
597
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
598
|
+
[hidden]="mobile() && !expanded()"
|
|
599
|
+
(click)="handleNavigationClick($event)"
|
|
600
|
+
>
|
|
601
|
+
<ng-content select="[aerisNavbarLinks]" />
|
|
602
|
+
@if (indicator(); as line) {
|
|
603
|
+
<span
|
|
604
|
+
class="aeris-navbar__indicator"
|
|
605
|
+
aria-hidden="true"
|
|
606
|
+
[attr.data-ready]="indicatorReady() || null"
|
|
607
|
+
[style.width.px]="line.width"
|
|
608
|
+
[style.transform]="'translate3d(' + line.x + 'px, ' + line.y + 'px, 0)'"
|
|
609
|
+
></span>
|
|
610
|
+
}
|
|
611
|
+
</nav>
|
|
612
|
+
<ng-content select="[aerisNavbarActions]" />
|
|
613
|
+
<ng-content select="[aerisNavbarToggle]" />
|
|
614
|
+
@if (mobile() && !customToggle()) {
|
|
615
|
+
<button
|
|
616
|
+
#defaultToggle
|
|
617
|
+
type="button"
|
|
618
|
+
class="aeris-navbar__toggle"
|
|
619
|
+
[attr.aria-controls]="navigationId"
|
|
620
|
+
[attr.aria-expanded]="expanded()"
|
|
621
|
+
[attr.aria-label]="expanded() ? closeAriaLabel() : openAriaLabel()"
|
|
622
|
+
(click)="toggle()"
|
|
623
|
+
>
|
|
624
|
+
@if (expanded()) {
|
|
625
|
+
<span
|
|
626
|
+
aerisInternalIcon="close"
|
|
627
|
+
class="aeris-navbar__close-icon"
|
|
628
|
+
aria-hidden="true"
|
|
629
|
+
></span>
|
|
630
|
+
} @else {
|
|
631
|
+
<span
|
|
632
|
+
aerisInternalIcon="menu"
|
|
633
|
+
class="aeris-navbar__menu-icon"
|
|
634
|
+
aria-hidden="true"
|
|
635
|
+
></span>
|
|
636
|
+
}
|
|
637
|
+
</button>
|
|
638
|
+
}
|
|
639
|
+
</div>
|
|
640
|
+
`,
|
|
641
|
+
isInline: true,
|
|
642
|
+
styles: [".aeris-navbar{position:relative;display:block;min-inline-size:0;max-inline-size:100%;container-type:inline-size;background:var(--aeris-navbar-background, var(--aeris-surface));color:var(--aeris-navbar-color, var(--aeris-text));border-block-end:1px solid var(--aeris-navbar-border, var(--aeris-border));font-size:var(--aeris-navbar-font-size, var(--aeris-body-font-size, .875rem))}.aeris-navbar[data-variant=floating]{border:1px solid var(--aeris-navbar-border, var(--aeris-border));border-radius:var(--aeris-navbar-radius, var(--aeris-radius-surface));box-shadow:var(--aeris-shadow-xs)}.aeris-navbar[data-variant=transparent]{background:transparent;border-color:transparent}.aeris-navbar[data-sticky]{position:sticky;inset-block-start:var(--aeris-navbar-top, 0px);z-index:var(--aeris-navbar-z-index, 30)}.aeris-navbar__bar{box-sizing:border-box;display:grid;grid-template-areas:\"brand links actions\";grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:var(--aeris-navbar-gap, 1.5rem);min-block-size:var(--aeris-navbar-height, calc(var(--aeris-control-height, 2.625rem) + 1.5rem));max-inline-size:var(--aeris-navbar-max-width, 72rem);margin-inline:auto;padding-inline:var(--aeris-navbar-padding, 1.25rem)}.aeris-navbar[data-alignment=start] .aeris-navbar__bar{grid-template-columns:auto minmax(0,1fr) auto}.aeris-navbar[data-alignment=end] .aeris-navbar__bar{grid-template-columns:minmax(0,1fr) auto auto}.aeris-navbar__brand{grid-area:brand;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;text-decoration:none;font-weight:650;letter-spacing:-.025em;font-size:1rem}.aeris-navbar__brand>:last-child{min-inline-size:0;overflow:hidden;text-overflow:ellipsis}.aeris-navbar__navigation{position:relative;grid-area:links;min-inline-size:0}.aeris-navbar__navigation[hidden],.aeris-navbar__toggle[hidden]{display:none}.aeris-navbar__links,.aeris-navbar__actions{display:flex;align-items:center;gap:var(--aeris-density-gap, .5rem);min-inline-size:0}.aeris-navbar__actions{grid-area:actions;justify-content:end}.aeris-navbar__actions>*{flex-shrink:0;max-inline-size:100%}.aeris-navbar__item,.aeris-navbar__dropdown-trigger,.aeris-navbar__toggle{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--aeris-action-gap, .5rem);min-inline-size:0;min-block-size:var(--aeris-action-height, var(--aeris-control-height, 2.625rem));padding:.375rem .75rem;border:0;border-radius:var(--aeris-navbar-item-radius, var(--aeris-radius-item));background:transparent;color:var(--aeris-text-2);font:inherit;font-weight:500;line-height:var(--aeris-line-height-tight, 1.25);text-decoration:none;text-align:start;white-space:nowrap;cursor:pointer;transition:color var(--aeris-motion-normal, .15s),background-color var(--aeris-motion-normal, .15s)}.aeris-navbar__indicator{position:absolute;top:0;left:0;block-size:2px;border-radius:1px;background:var(--aeris-navbar-active-color, var(--aeris-text));pointer-events:none}.aeris-navbar__indicator[data-ready]{transition:width var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, cubic-bezier(.2, 0, 0, 1)),transform var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, cubic-bezier(.2, 0, 0, 1))}.aeris-navbar__item[data-active],.aeris-navbar__dropdown-trigger[data-active]{color:var(--aeris-navbar-active-color, var(--aeris-text));font-weight:600}@media(hover:hover){.aeris-navbar__item:hover:not([aria-disabled=true]),.aeris-navbar__dropdown-trigger:hover,.aeris-navbar__toggle:hover{color:var(--aeris-text);background:var(--aeris-navbar-hover-background, var(--aeris-interactive-hover))}}.aeris-navbar__item[aria-disabled=true]{opacity:.48;cursor:not-allowed}.aeris-navbar__item:focus-visible,.aeris-navbar__dropdown-trigger:focus-visible,.aeris-navbar__toggle:focus-visible,.aeris-navbar__brand:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus-ring-color, var(--aeris-focus));outline-offset:2px}.aeris-navbar__toggle{grid-area:toggle;inline-size:var(--aeris-control-height, 2.625rem);padding:0;color:var(--aeris-text)}.aeris-navbar__icon,.aeris-navbar__toggle>span,.aeris-navbar__chevron{display:inline-flex;flex:0 0 auto;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem)}.aeris-navbar__icon svg{inline-size:100%;block-size:100%}.aeris-navbar__menu-icon:not([data-aeris-custom-icon]),.aeris-navbar__close-icon:not([data-aeris-custom-icon]),.aeris-navbar__chevron:not([data-aeris-custom-icon]){background:currentColor;-webkit-mask:var(--_navbar-icon) center/100% 100% no-repeat;mask:var(--_navbar-icon) center/100% 100% no-repeat}.aeris-navbar__menu-icon{--_navbar-icon: var(--aeris-icon-menu, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M4 5h16\"/%3E%3Cpath d=\"M4 12h16\"/%3E%3Cpath d=\"M4 19h16\"/%3E%3C/svg%3E'))}.aeris-navbar__close-icon{--_navbar-icon: var(--aeris-icon-close)}.aeris-navbar__chevron{--_navbar-icon: var(--aeris-icon-chevron);inline-size:.875rem;block-size:.875rem;transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out)}.aeris-navbar__disclosure[data-expanded]>.aeris-navbar__dropdown-trigger .aeris-navbar__chevron{transform:rotate(180deg)}.aeris-navbar__disclosure[data-nested]:not([data-mobile])>.aeris-navbar__dropdown-trigger .aeris-navbar__chevron{transform:rotate(-90deg)}.aeris-navbar__disclosure[data-nested][data-rtl]:not([data-mobile])>.aeris-navbar__dropdown-trigger .aeris-navbar__chevron{transform:rotate(90deg)}.aeris-navbar__dropdown{box-sizing:border-box;display:grid;gap:.125rem;inline-size:var(--aeris-navbar-dropdown-width, 17rem);max-inline-size:calc(100dvw - 1rem);padding:var(--aeris-overlay-padding, .375rem);border:1px solid var(--aeris-navbar-border, var(--aeris-border));border-radius:var(--aeris-navbar-radius, var(--aeris-radius-surface));background:var(--aeris-navbar-background, var(--aeris-surface));color:var(--aeris-navbar-color, var(--aeris-text));font-size:var(--aeris-navbar-font-size, var(--aeris-body-font-size, .875rem));box-shadow:var(--aeris-overlay-shadow);animation:aeris-navbar-reveal var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out)}.aeris-navbar__dropdown .aeris-navbar__item,.aeris-navbar__dropdown .aeris-navbar__dropdown-trigger{inline-size:100%;justify-content:start;white-space:normal;overflow-wrap:anywhere}.aeris-navbar__dropdown .aeris-navbar__item[data-active],.aeris-navbar__dropdown .aeris-navbar__dropdown-trigger[data-active]{background:var(--aeris-navbar-active-background, var(--aeris-primary-soft));color:var(--aeris-on-primary-soft, var(--aeris-text))}.aeris-navbar__dropdown-trigger .aeris-navbar__chevron{margin-inline-start:auto}.aeris-navbar__dropdown[data-inline]{position:static;inline-size:auto;max-inline-size:100%;margin-block:.25rem;margin-inline-start:.75rem;border:0;box-shadow:none;background:var(--aeris-surface-2)}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__bar{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:\"brand actions toggle\" \"links links links\";column-gap:var(--aeris-density-gap, .5rem)}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__brand{min-inline-size:2rem}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__actions{flex-wrap:wrap;max-inline-size:50cqi}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__navigation{max-block-size:var(--aeris-navbar-mobile-max-height, 60dvh);overflow:auto;margin-block-end:1rem;padding-block-start:.75rem;border-block-start:1px solid var(--aeris-border);animation:aeris-navbar-reveal var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out)}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__brand,.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__actions,.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__toggle{margin-block:.75rem}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__links{flex-direction:column;align-items:stretch;gap:.25rem}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__item,.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__dropdown-trigger{justify-content:start;inline-size:100%;min-block-size:max(2.75rem,var(--aeris-control-height));padding-inline:.875rem;white-space:normal;overflow-wrap:anywhere}.aeris-navbar[data-mobile] .aeris-navbar__item[data-active],.aeris-navbar[data-mobile] .aeris-navbar__dropdown-trigger[data-active]{background:var(--aeris-navbar-active-background, var(--aeris-primary-soft));color:var(--aeris-on-primary-soft, var(--aeris-text))}.aeris-navbar[data-mobile] .aeris-navbar__indicator{display:none}.aeris-navbar[data-measuring] .aeris-navbar__navigation[hidden]{display:block}.aeris-navbar[data-measuring] .aeris-navbar__brand,.aeris-navbar[data-measuring] .aeris-navbar__navigation,.aeris-navbar[data-measuring] .aeris-navbar__actions{inline-size:max-content;max-inline-size:none}.aeris-navbar[data-measuring] [aerisNavbarLinks]>*{flex-shrink:0}.aeris-navbar[data-sticky] .aeris-navbar__bar{padding-left:max(var(--aeris-navbar-padding, 1.25rem),env(safe-area-inset-left,0px));padding-right:max(var(--aeris-navbar-padding, 1.25rem),env(safe-area-inset-right,0px))}@keyframes aeris-navbar-reveal{0%{opacity:0;transform:translateY(-.25rem)}}@media(prefers-reduced-motion:reduce){.aeris-navbar__item,.aeris-navbar__indicator[data-ready],.aeris-navbar__toggle,.aeris-navbar__chevron,.aeris-navbar__dropdown-trigger{transition:none}.aeris-navbar__dropdown,.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__navigation{animation:none}}\n"],
|
|
643
|
+
dependencies: [{
|
|
644
|
+
kind: "component",
|
|
645
|
+
type: ɵAerisIcon,
|
|
646
|
+
selector: "span[aerisInternalIcon]",
|
|
647
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
648
|
+
}],
|
|
649
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
650
|
+
});
|
|
651
|
+
};
|
|
652
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
653
|
+
minVersion: "12.0.0",
|
|
654
|
+
version: "22.2.3",
|
|
655
|
+
ngImport: i0,
|
|
656
|
+
type: AerisNavbar,
|
|
657
|
+
decorators: [{
|
|
658
|
+
type: Component,
|
|
659
|
+
args: [{
|
|
660
|
+
selector: "aeris-navbar",
|
|
661
|
+
imports: [ɵAerisIcon],
|
|
662
|
+
providers: [{
|
|
663
|
+
provide: navbarContext,
|
|
664
|
+
useExisting: forwardRef(() => AerisNavbar)
|
|
665
|
+
}],
|
|
666
|
+
encapsulation: ViewEncapsulation.None,
|
|
667
|
+
template: `
|
|
668
|
+
<div #bar class="aeris-navbar__bar">
|
|
669
|
+
<ng-content select="[aerisNavbarBrand]" />
|
|
670
|
+
<nav
|
|
671
|
+
#navigation
|
|
672
|
+
class="aeris-navbar__navigation"
|
|
673
|
+
[id]="navigationId"
|
|
674
|
+
[attr.aria-label]="ariaLabelledBy() ? null : ariaLabel()"
|
|
675
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
676
|
+
[hidden]="mobile() && !expanded()"
|
|
677
|
+
(click)="handleNavigationClick($event)"
|
|
678
|
+
>
|
|
679
|
+
<ng-content select="[aerisNavbarLinks]" />
|
|
680
|
+
@if (indicator(); as line) {
|
|
681
|
+
<span
|
|
682
|
+
class="aeris-navbar__indicator"
|
|
683
|
+
aria-hidden="true"
|
|
684
|
+
[attr.data-ready]="indicatorReady() || null"
|
|
685
|
+
[style.width.px]="line.width"
|
|
686
|
+
[style.transform]="'translate3d(' + line.x + 'px, ' + line.y + 'px, 0)'"
|
|
687
|
+
></span>
|
|
688
|
+
}
|
|
689
|
+
</nav>
|
|
690
|
+
<ng-content select="[aerisNavbarActions]" />
|
|
691
|
+
<ng-content select="[aerisNavbarToggle]" />
|
|
692
|
+
@if (mobile() && !customToggle()) {
|
|
693
|
+
<button
|
|
694
|
+
#defaultToggle
|
|
695
|
+
type="button"
|
|
696
|
+
class="aeris-navbar__toggle"
|
|
697
|
+
[attr.aria-controls]="navigationId"
|
|
698
|
+
[attr.aria-expanded]="expanded()"
|
|
699
|
+
[attr.aria-label]="expanded() ? closeAriaLabel() : openAriaLabel()"
|
|
700
|
+
(click)="toggle()"
|
|
701
|
+
>
|
|
702
|
+
@if (expanded()) {
|
|
703
|
+
<span
|
|
704
|
+
aerisInternalIcon="close"
|
|
705
|
+
class="aeris-navbar__close-icon"
|
|
706
|
+
aria-hidden="true"
|
|
707
|
+
></span>
|
|
708
|
+
} @else {
|
|
709
|
+
<span
|
|
710
|
+
aerisInternalIcon="menu"
|
|
711
|
+
class="aeris-navbar__menu-icon"
|
|
712
|
+
aria-hidden="true"
|
|
713
|
+
></span>
|
|
714
|
+
}
|
|
715
|
+
</button>
|
|
716
|
+
}
|
|
717
|
+
</div>
|
|
718
|
+
`,
|
|
719
|
+
host: {
|
|
720
|
+
class: "aeris-navbar",
|
|
721
|
+
"[style.--aeris-navbar-max-width]": "maxWidth()",
|
|
722
|
+
"[attr.data-alignment]": "alignment()",
|
|
723
|
+
"[attr.data-mobile]": "mobile() || null",
|
|
724
|
+
"[attr.data-expanded]": "(mobile() && expanded()) || null",
|
|
725
|
+
"[attr.data-sticky]": "sticky() || null",
|
|
726
|
+
"[attr.data-variant]": "variant()",
|
|
727
|
+
"(keydown)": "handleKeydown($event)"
|
|
728
|
+
},
|
|
729
|
+
styles: [".aeris-navbar{position:relative;display:block;min-inline-size:0;max-inline-size:100%;container-type:inline-size;background:var(--aeris-navbar-background, var(--aeris-surface));color:var(--aeris-navbar-color, var(--aeris-text));border-block-end:1px solid var(--aeris-navbar-border, var(--aeris-border));font-size:var(--aeris-navbar-font-size, var(--aeris-body-font-size, .875rem))}.aeris-navbar[data-variant=floating]{border:1px solid var(--aeris-navbar-border, var(--aeris-border));border-radius:var(--aeris-navbar-radius, var(--aeris-radius-surface));box-shadow:var(--aeris-shadow-xs)}.aeris-navbar[data-variant=transparent]{background:transparent;border-color:transparent}.aeris-navbar[data-sticky]{position:sticky;inset-block-start:var(--aeris-navbar-top, 0px);z-index:var(--aeris-navbar-z-index, 30)}.aeris-navbar__bar{box-sizing:border-box;display:grid;grid-template-areas:\"brand links actions\";grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:var(--aeris-navbar-gap, 1.5rem);min-block-size:var(--aeris-navbar-height, calc(var(--aeris-control-height, 2.625rem) + 1.5rem));max-inline-size:var(--aeris-navbar-max-width, 72rem);margin-inline:auto;padding-inline:var(--aeris-navbar-padding, 1.25rem)}.aeris-navbar[data-alignment=start] .aeris-navbar__bar{grid-template-columns:auto minmax(0,1fr) auto}.aeris-navbar[data-alignment=end] .aeris-navbar__bar{grid-template-columns:minmax(0,1fr) auto auto}.aeris-navbar__brand{grid-area:brand;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;text-decoration:none;font-weight:650;letter-spacing:-.025em;font-size:1rem}.aeris-navbar__brand>:last-child{min-inline-size:0;overflow:hidden;text-overflow:ellipsis}.aeris-navbar__navigation{position:relative;grid-area:links;min-inline-size:0}.aeris-navbar__navigation[hidden],.aeris-navbar__toggle[hidden]{display:none}.aeris-navbar__links,.aeris-navbar__actions{display:flex;align-items:center;gap:var(--aeris-density-gap, .5rem);min-inline-size:0}.aeris-navbar__actions{grid-area:actions;justify-content:end}.aeris-navbar__actions>*{flex-shrink:0;max-inline-size:100%}.aeris-navbar__item,.aeris-navbar__dropdown-trigger,.aeris-navbar__toggle{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--aeris-action-gap, .5rem);min-inline-size:0;min-block-size:var(--aeris-action-height, var(--aeris-control-height, 2.625rem));padding:.375rem .75rem;border:0;border-radius:var(--aeris-navbar-item-radius, var(--aeris-radius-item));background:transparent;color:var(--aeris-text-2);font:inherit;font-weight:500;line-height:var(--aeris-line-height-tight, 1.25);text-decoration:none;text-align:start;white-space:nowrap;cursor:pointer;transition:color var(--aeris-motion-normal, .15s),background-color var(--aeris-motion-normal, .15s)}.aeris-navbar__indicator{position:absolute;top:0;left:0;block-size:2px;border-radius:1px;background:var(--aeris-navbar-active-color, var(--aeris-text));pointer-events:none}.aeris-navbar__indicator[data-ready]{transition:width var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, cubic-bezier(.2, 0, 0, 1)),transform var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, cubic-bezier(.2, 0, 0, 1))}.aeris-navbar__item[data-active],.aeris-navbar__dropdown-trigger[data-active]{color:var(--aeris-navbar-active-color, var(--aeris-text));font-weight:600}@media(hover:hover){.aeris-navbar__item:hover:not([aria-disabled=true]),.aeris-navbar__dropdown-trigger:hover,.aeris-navbar__toggle:hover{color:var(--aeris-text);background:var(--aeris-navbar-hover-background, var(--aeris-interactive-hover))}}.aeris-navbar__item[aria-disabled=true]{opacity:.48;cursor:not-allowed}.aeris-navbar__item:focus-visible,.aeris-navbar__dropdown-trigger:focus-visible,.aeris-navbar__toggle:focus-visible,.aeris-navbar__brand:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus-ring-color, var(--aeris-focus));outline-offset:2px}.aeris-navbar__toggle{grid-area:toggle;inline-size:var(--aeris-control-height, 2.625rem);padding:0;color:var(--aeris-text)}.aeris-navbar__icon,.aeris-navbar__toggle>span,.aeris-navbar__chevron{display:inline-flex;flex:0 0 auto;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem)}.aeris-navbar__icon svg{inline-size:100%;block-size:100%}.aeris-navbar__menu-icon:not([data-aeris-custom-icon]),.aeris-navbar__close-icon:not([data-aeris-custom-icon]),.aeris-navbar__chevron:not([data-aeris-custom-icon]){background:currentColor;-webkit-mask:var(--_navbar-icon) center/100% 100% no-repeat;mask:var(--_navbar-icon) center/100% 100% no-repeat}.aeris-navbar__menu-icon{--_navbar-icon: var(--aeris-icon-menu, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M4 5h16\"/%3E%3Cpath d=\"M4 12h16\"/%3E%3Cpath d=\"M4 19h16\"/%3E%3C/svg%3E'))}.aeris-navbar__close-icon{--_navbar-icon: var(--aeris-icon-close)}.aeris-navbar__chevron{--_navbar-icon: var(--aeris-icon-chevron);inline-size:.875rem;block-size:.875rem;transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out)}.aeris-navbar__disclosure[data-expanded]>.aeris-navbar__dropdown-trigger .aeris-navbar__chevron{transform:rotate(180deg)}.aeris-navbar__disclosure[data-nested]:not([data-mobile])>.aeris-navbar__dropdown-trigger .aeris-navbar__chevron{transform:rotate(-90deg)}.aeris-navbar__disclosure[data-nested][data-rtl]:not([data-mobile])>.aeris-navbar__dropdown-trigger .aeris-navbar__chevron{transform:rotate(90deg)}.aeris-navbar__dropdown{box-sizing:border-box;display:grid;gap:.125rem;inline-size:var(--aeris-navbar-dropdown-width, 17rem);max-inline-size:calc(100dvw - 1rem);padding:var(--aeris-overlay-padding, .375rem);border:1px solid var(--aeris-navbar-border, var(--aeris-border));border-radius:var(--aeris-navbar-radius, var(--aeris-radius-surface));background:var(--aeris-navbar-background, var(--aeris-surface));color:var(--aeris-navbar-color, var(--aeris-text));font-size:var(--aeris-navbar-font-size, var(--aeris-body-font-size, .875rem));box-shadow:var(--aeris-overlay-shadow);animation:aeris-navbar-reveal var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out)}.aeris-navbar__dropdown .aeris-navbar__item,.aeris-navbar__dropdown .aeris-navbar__dropdown-trigger{inline-size:100%;justify-content:start;white-space:normal;overflow-wrap:anywhere}.aeris-navbar__dropdown .aeris-navbar__item[data-active],.aeris-navbar__dropdown .aeris-navbar__dropdown-trigger[data-active]{background:var(--aeris-navbar-active-background, var(--aeris-primary-soft));color:var(--aeris-on-primary-soft, var(--aeris-text))}.aeris-navbar__dropdown-trigger .aeris-navbar__chevron{margin-inline-start:auto}.aeris-navbar__dropdown[data-inline]{position:static;inline-size:auto;max-inline-size:100%;margin-block:.25rem;margin-inline-start:.75rem;border:0;box-shadow:none;background:var(--aeris-surface-2)}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__bar{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:\"brand actions toggle\" \"links links links\";column-gap:var(--aeris-density-gap, .5rem)}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__brand{min-inline-size:2rem}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__actions{flex-wrap:wrap;max-inline-size:50cqi}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__navigation{max-block-size:var(--aeris-navbar-mobile-max-height, 60dvh);overflow:auto;margin-block-end:1rem;padding-block-start:.75rem;border-block-start:1px solid var(--aeris-border);animation:aeris-navbar-reveal var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out)}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__brand,.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__actions,.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__toggle{margin-block:.75rem}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__links{flex-direction:column;align-items:stretch;gap:.25rem}.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__item,.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__dropdown-trigger{justify-content:start;inline-size:100%;min-block-size:max(2.75rem,var(--aeris-control-height));padding-inline:.875rem;white-space:normal;overflow-wrap:anywhere}.aeris-navbar[data-mobile] .aeris-navbar__item[data-active],.aeris-navbar[data-mobile] .aeris-navbar__dropdown-trigger[data-active]{background:var(--aeris-navbar-active-background, var(--aeris-primary-soft));color:var(--aeris-on-primary-soft, var(--aeris-text))}.aeris-navbar[data-mobile] .aeris-navbar__indicator{display:none}.aeris-navbar[data-measuring] .aeris-navbar__navigation[hidden]{display:block}.aeris-navbar[data-measuring] .aeris-navbar__brand,.aeris-navbar[data-measuring] .aeris-navbar__navigation,.aeris-navbar[data-measuring] .aeris-navbar__actions{inline-size:max-content;max-inline-size:none}.aeris-navbar[data-measuring] [aerisNavbarLinks]>*{flex-shrink:0}.aeris-navbar[data-sticky] .aeris-navbar__bar{padding-left:max(var(--aeris-navbar-padding, 1.25rem),env(safe-area-inset-left,0px));padding-right:max(var(--aeris-navbar-padding, 1.25rem),env(safe-area-inset-right,0px))}@keyframes aeris-navbar-reveal{0%{opacity:0;transform:translateY(-.25rem)}}@media(prefers-reduced-motion:reduce){.aeris-navbar__item,.aeris-navbar__indicator[data-ready],.aeris-navbar__toggle,.aeris-navbar__chevron,.aeris-navbar__dropdown-trigger{transition:none}.aeris-navbar__dropdown,.aeris-navbar[data-mobile]:not([data-measuring]) .aeris-navbar__navigation{animation:none}}\n"]
|
|
730
|
+
}]
|
|
731
|
+
}],
|
|
732
|
+
ctorParameters: () => [],
|
|
733
|
+
propDecorators: {
|
|
734
|
+
navigation: [{
|
|
735
|
+
type: i0.ViewChild,
|
|
736
|
+
args: ["navigation", { isSignal: true }]
|
|
737
|
+
}],
|
|
738
|
+
bar: [{
|
|
739
|
+
type: i0.ViewChild,
|
|
740
|
+
args: ["bar", { isSignal: true }]
|
|
741
|
+
}],
|
|
742
|
+
defaultToggle: [{
|
|
743
|
+
type: i0.ViewChild,
|
|
744
|
+
args: ["defaultToggle", { isSignal: true }]
|
|
745
|
+
}],
|
|
746
|
+
ɵdropdowns: [{
|
|
747
|
+
type: i0.ContentChildren,
|
|
748
|
+
args: [i0.forwardRef(() => AerisNavbarDropdown), {
|
|
749
|
+
descendants: true,
|
|
750
|
+
isSignal: true
|
|
751
|
+
}]
|
|
752
|
+
}],
|
|
753
|
+
dropdownElements: [{
|
|
754
|
+
type: i0.ContentChildren,
|
|
755
|
+
args: [i0.forwardRef(() => AerisNavbarDropdown), {
|
|
756
|
+
descendants: true,
|
|
757
|
+
read: ElementRef,
|
|
758
|
+
isSignal: true
|
|
759
|
+
}]
|
|
760
|
+
}],
|
|
761
|
+
customToggle: [{
|
|
762
|
+
type: i0.ContentChild,
|
|
763
|
+
args: [i0.forwardRef(() => AerisNavbarToggle), { isSignal: true }]
|
|
764
|
+
}],
|
|
765
|
+
items: [{
|
|
766
|
+
type: i0.ContentChildren,
|
|
767
|
+
args: [i0.forwardRef(() => AerisNavbarItem), {
|
|
768
|
+
descendants: true,
|
|
769
|
+
isSignal: true
|
|
770
|
+
}]
|
|
771
|
+
}],
|
|
772
|
+
itemElements: [{
|
|
773
|
+
type: i0.ContentChildren,
|
|
774
|
+
args: [i0.forwardRef(() => AerisNavbarItem), {
|
|
775
|
+
descendants: true,
|
|
776
|
+
read: ElementRef,
|
|
777
|
+
isSignal: true
|
|
778
|
+
}]
|
|
779
|
+
}],
|
|
780
|
+
expanded: [{
|
|
781
|
+
type: i0.Input,
|
|
782
|
+
args: [{
|
|
783
|
+
isSignal: true,
|
|
784
|
+
alias: "expanded",
|
|
785
|
+
required: false
|
|
786
|
+
}]
|
|
787
|
+
}, {
|
|
788
|
+
type: i0.Output,
|
|
789
|
+
args: ["expandedChange"]
|
|
790
|
+
}],
|
|
791
|
+
mode: [{
|
|
792
|
+
type: i0.Input,
|
|
793
|
+
args: [{
|
|
794
|
+
isSignal: true,
|
|
795
|
+
alias: "mode",
|
|
796
|
+
required: false
|
|
797
|
+
}]
|
|
798
|
+
}],
|
|
799
|
+
breakpoint: [{
|
|
800
|
+
type: i0.Input,
|
|
801
|
+
args: [{
|
|
802
|
+
isSignal: true,
|
|
803
|
+
alias: "breakpoint",
|
|
804
|
+
required: false
|
|
805
|
+
}]
|
|
806
|
+
}],
|
|
807
|
+
variant: [{
|
|
808
|
+
type: i0.Input,
|
|
809
|
+
args: [{
|
|
810
|
+
isSignal: true,
|
|
811
|
+
alias: "variant",
|
|
812
|
+
required: false
|
|
813
|
+
}]
|
|
814
|
+
}],
|
|
815
|
+
maxWidth: [{
|
|
816
|
+
type: i0.Input,
|
|
817
|
+
args: [{
|
|
818
|
+
isSignal: true,
|
|
819
|
+
alias: "maxWidth",
|
|
820
|
+
required: false
|
|
821
|
+
}]
|
|
822
|
+
}],
|
|
823
|
+
alignment: [{
|
|
824
|
+
type: i0.Input,
|
|
825
|
+
args: [{
|
|
826
|
+
isSignal: true,
|
|
827
|
+
alias: "alignment",
|
|
828
|
+
required: false
|
|
829
|
+
}]
|
|
830
|
+
}],
|
|
831
|
+
sticky: [{
|
|
832
|
+
type: i0.Input,
|
|
833
|
+
args: [{
|
|
834
|
+
isSignal: true,
|
|
835
|
+
alias: "sticky",
|
|
836
|
+
required: false
|
|
837
|
+
}]
|
|
838
|
+
}],
|
|
839
|
+
closeOnNavigate: [{
|
|
840
|
+
type: i0.Input,
|
|
841
|
+
args: [{
|
|
842
|
+
isSignal: true,
|
|
843
|
+
alias: "closeOnNavigate",
|
|
844
|
+
required: false
|
|
845
|
+
}]
|
|
846
|
+
}],
|
|
847
|
+
closeOnOutsideClick: [{
|
|
848
|
+
type: i0.Input,
|
|
849
|
+
args: [{
|
|
850
|
+
isSignal: true,
|
|
851
|
+
alias: "closeOnOutsideClick",
|
|
852
|
+
required: false
|
|
853
|
+
}]
|
|
854
|
+
}],
|
|
855
|
+
ariaLabel: [{
|
|
856
|
+
type: i0.Input,
|
|
857
|
+
args: [{
|
|
858
|
+
isSignal: true,
|
|
859
|
+
alias: "ariaLabel",
|
|
860
|
+
required: false
|
|
861
|
+
}]
|
|
862
|
+
}],
|
|
863
|
+
ariaLabelledBy: [{
|
|
864
|
+
type: i0.Input,
|
|
865
|
+
args: [{
|
|
866
|
+
isSignal: true,
|
|
867
|
+
alias: "ariaLabelledBy",
|
|
868
|
+
required: false
|
|
869
|
+
}]
|
|
870
|
+
}],
|
|
871
|
+
openAriaLabel: [{
|
|
872
|
+
type: i0.Input,
|
|
873
|
+
args: [{
|
|
874
|
+
isSignal: true,
|
|
875
|
+
alias: "openAriaLabel",
|
|
876
|
+
required: false
|
|
877
|
+
}]
|
|
878
|
+
}],
|
|
879
|
+
closeAriaLabel: [{
|
|
880
|
+
type: i0.Input,
|
|
881
|
+
args: [{
|
|
882
|
+
isSignal: true,
|
|
883
|
+
alias: "closeAriaLabel",
|
|
884
|
+
required: false
|
|
885
|
+
}]
|
|
886
|
+
}]
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
var AerisNavbarItem = class AerisNavbarItem {
|
|
890
|
+
element = inject(ElementRef).nativeElement;
|
|
891
|
+
isButton = this.element.tagName === "BUTTON";
|
|
892
|
+
active = input(false, {
|
|
893
|
+
...ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {},
|
|
894
|
+
transform: booleanAttribute
|
|
895
|
+
});
|
|
896
|
+
disabled = input(false, {
|
|
897
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
898
|
+
transform: booleanAttribute
|
|
899
|
+
});
|
|
900
|
+
constructor() {
|
|
901
|
+
const renderer = inject(Renderer2);
|
|
902
|
+
const stop = renderer.listen(this.element, "click", (event) => {
|
|
903
|
+
if (this.disabled()) {
|
|
904
|
+
event.preventDefault();
|
|
905
|
+
event.stopImmediatePropagation();
|
|
906
|
+
}
|
|
907
|
+
}, { capture: true });
|
|
908
|
+
inject(DestroyRef).onDestroy(stop);
|
|
909
|
+
effect((onCleanup) => {
|
|
910
|
+
if (!this.disabled() || this.isButton) return;
|
|
911
|
+
const previous = this.element.getAttribute("tabindex");
|
|
912
|
+
renderer.setAttribute(this.element, "tabindex", "-1");
|
|
913
|
+
onCleanup(() => {
|
|
914
|
+
if (previous === null) renderer.removeAttribute(this.element, "tabindex");
|
|
915
|
+
else renderer.setAttribute(this.element, "tabindex", previous);
|
|
916
|
+
});
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
920
|
+
minVersion: "12.0.0",
|
|
921
|
+
version: "22.2.3",
|
|
922
|
+
ngImport: i0,
|
|
923
|
+
type: AerisNavbarItem,
|
|
924
|
+
deps: [],
|
|
925
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
926
|
+
});
|
|
927
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
928
|
+
minVersion: "17.1.0",
|
|
929
|
+
version: "22.2.3",
|
|
930
|
+
type: AerisNavbarItem,
|
|
931
|
+
isStandalone: true,
|
|
932
|
+
selector: "a[aerisNavbarItem], button[aerisNavbarItem]",
|
|
933
|
+
inputs: {
|
|
934
|
+
active: {
|
|
935
|
+
classPropertyName: "active",
|
|
936
|
+
publicName: "active",
|
|
937
|
+
isSignal: true,
|
|
938
|
+
isRequired: false,
|
|
939
|
+
transformFunction: null
|
|
940
|
+
},
|
|
941
|
+
disabled: {
|
|
942
|
+
classPropertyName: "disabled",
|
|
943
|
+
publicName: "disabled",
|
|
944
|
+
isSignal: true,
|
|
945
|
+
isRequired: false,
|
|
946
|
+
transformFunction: null
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
host: {
|
|
950
|
+
properties: {
|
|
951
|
+
"attr.data-active": "active() || null",
|
|
952
|
+
"attr.aria-current": "active() ? \"page\" : null",
|
|
953
|
+
"attr.aria-disabled": "disabled() || null",
|
|
954
|
+
"attr.disabled": "isButton && disabled() ? \"\" : null",
|
|
955
|
+
"attr.type": "isButton ? \"button\" : null"
|
|
956
|
+
},
|
|
957
|
+
classAttribute: "aeris-navbar__item"
|
|
958
|
+
},
|
|
959
|
+
ngImport: i0
|
|
960
|
+
});
|
|
961
|
+
};
|
|
962
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
963
|
+
minVersion: "12.0.0",
|
|
964
|
+
version: "22.2.3",
|
|
965
|
+
ngImport: i0,
|
|
966
|
+
type: AerisNavbarItem,
|
|
967
|
+
decorators: [{
|
|
968
|
+
type: Directive,
|
|
969
|
+
args: [{
|
|
970
|
+
selector: "a[aerisNavbarItem], button[aerisNavbarItem]",
|
|
971
|
+
host: {
|
|
972
|
+
class: "aeris-navbar__item",
|
|
973
|
+
"[attr.data-active]": "active() || null",
|
|
974
|
+
"[attr.aria-current]": "active() ? \"page\" : null",
|
|
975
|
+
"[attr.aria-disabled]": "disabled() || null",
|
|
976
|
+
"[attr.disabled]": "isButton && disabled() ? \"\" : null",
|
|
977
|
+
"[attr.type]": "isButton ? \"button\" : null"
|
|
978
|
+
}
|
|
979
|
+
}]
|
|
980
|
+
}],
|
|
981
|
+
ctorParameters: () => [],
|
|
982
|
+
propDecorators: {
|
|
983
|
+
active: [{
|
|
984
|
+
type: i0.Input,
|
|
985
|
+
args: [{
|
|
986
|
+
isSignal: true,
|
|
987
|
+
alias: "active",
|
|
988
|
+
required: false
|
|
989
|
+
}]
|
|
990
|
+
}],
|
|
991
|
+
disabled: [{
|
|
992
|
+
type: i0.Input,
|
|
993
|
+
args: [{
|
|
994
|
+
isSignal: true,
|
|
995
|
+
alias: "disabled",
|
|
996
|
+
required: false
|
|
997
|
+
}]
|
|
998
|
+
}]
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
var AerisNavbarDropdown = class AerisNavbarDropdown {
|
|
1002
|
+
navbar = inject(navbarContext);
|
|
1003
|
+
document = inject(DOCUMENT);
|
|
1004
|
+
parent = inject(AerisNavbarDropdown, {
|
|
1005
|
+
optional: true,
|
|
1006
|
+
skipSelf: true
|
|
1007
|
+
});
|
|
1008
|
+
trigger = viewChild("trigger", ...ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []);
|
|
1009
|
+
panel = viewChild("panel", ...ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []);
|
|
1010
|
+
focusFirst = signal(false, ...ngDevMode ? [{ debugName: "focusFirst" }] : /* istanbul ignore next */ []);
|
|
1011
|
+
rtl = signal(false, ...ngDevMode ? [{ debugName: "rtl" }] : /* istanbul ignore next */ []);
|
|
1012
|
+
closeTimer;
|
|
1013
|
+
host = inject(ElementRef).nativeElement;
|
|
1014
|
+
label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
1015
|
+
expanded = model(false, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
|
|
1016
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
1017
|
+
items = contentChildren(AerisNavbarItem, {
|
|
1018
|
+
...ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {},
|
|
1019
|
+
descendants: true
|
|
1020
|
+
});
|
|
1021
|
+
active = computed(() => this.items().some((item) => item.active() && !item.disabled()), ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
1022
|
+
contentId = `aeris-navbar-dropdown-${nextDisclosureId++}`;
|
|
1023
|
+
dismiss = () => {
|
|
1024
|
+
if (!this.expanded()) return false;
|
|
1025
|
+
this.close(true);
|
|
1026
|
+
return true;
|
|
1027
|
+
};
|
|
1028
|
+
constructor() {
|
|
1029
|
+
inject(DestroyRef).onDestroy(() => clearTimeout(this.closeTimer));
|
|
1030
|
+
afterRenderEffect(() => {
|
|
1031
|
+
this.expanded();
|
|
1032
|
+
this.navbar.mobile();
|
|
1033
|
+
const trigger = this.trigger()?.nativeElement;
|
|
1034
|
+
if (trigger) this.rtl.set(this.document.defaultView?.getComputedStyle(trigger).direction === "rtl");
|
|
1035
|
+
});
|
|
1036
|
+
afterRenderEffect(() => {
|
|
1037
|
+
if (!this.focusFirst()) return;
|
|
1038
|
+
const panel = this.panel()?.nativeElement;
|
|
1039
|
+
if (this.expanded() && panel) aerisInternalFocusableElements(panel)[0]?.focus({ preventScroll: true });
|
|
1040
|
+
this.focusFirst.set(false);
|
|
1041
|
+
});
|
|
1042
|
+
effect(() => {
|
|
1043
|
+
if (!this.expanded()) return;
|
|
1044
|
+
for (const dropdown of this.navbar.ɵdropdowns()) if (dropdown !== this && dropdown.parent === this.parent) dropdown.close(false);
|
|
1045
|
+
});
|
|
1046
|
+
effect(() => {
|
|
1047
|
+
if (this.parent && !this.parent.expanded() || this.navbar.mobile() && !this.navbar.expanded()) this.expanded.set(false);
|
|
1048
|
+
});
|
|
1049
|
+
effect((onCleanup) => {
|
|
1050
|
+
if (!this.expanded()) return;
|
|
1051
|
+
const onFocus = (event) => {
|
|
1052
|
+
const target = event.target;
|
|
1053
|
+
if (target instanceof Node && !this.containsTarget(target)) this.close(false);
|
|
1054
|
+
};
|
|
1055
|
+
this.document.addEventListener("focusin", onFocus);
|
|
1056
|
+
onCleanup(() => this.document.removeEventListener("focusin", onFocus));
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
close(restoreFocus = false) {
|
|
1060
|
+
clearTimeout(this.closeTimer);
|
|
1061
|
+
this.expanded.set(false);
|
|
1062
|
+
if (restoreFocus) this.trigger()?.nativeElement.focus({ preventScroll: true });
|
|
1063
|
+
}
|
|
1064
|
+
closeOutside(event) {
|
|
1065
|
+
if (event.target instanceof Node && this.containsTarget(event.target)) return;
|
|
1066
|
+
this.close(false);
|
|
1067
|
+
}
|
|
1068
|
+
containsTarget(target) {
|
|
1069
|
+
return this.host.contains(target) || !!this.panel()?.nativeElement.contains(target) || this.navbar.ɵdropdowns().some((child) => child.parent === this && child.containsTarget(target));
|
|
1070
|
+
}
|
|
1071
|
+
handlePointerEnter(event) {
|
|
1072
|
+
if (event.pointerType !== "mouse" || this.navbar.mobile()) return;
|
|
1073
|
+
for (let dropdown = this; dropdown; dropdown = dropdown.parent) clearTimeout(dropdown.closeTimer);
|
|
1074
|
+
if (this.parent) this.expanded.set(true);
|
|
1075
|
+
}
|
|
1076
|
+
handlePointerLeave(event) {
|
|
1077
|
+
if (event.pointerType !== "mouse" || this.navbar.mobile() || !this.parent) return;
|
|
1078
|
+
if (event.relatedTarget instanceof Node && this.containsTarget(event.relatedTarget)) return;
|
|
1079
|
+
clearTimeout(this.closeTimer);
|
|
1080
|
+
this.closeTimer = setTimeout(() => this.close(false), 150);
|
|
1081
|
+
}
|
|
1082
|
+
handleTriggerClick(event) {
|
|
1083
|
+
if (this.parent && !this.navbar.mobile() && this.expanded() && event instanceof PointerEvent && event.pointerType === "mouse") return;
|
|
1084
|
+
this.expanded.update((expanded) => !expanded);
|
|
1085
|
+
}
|
|
1086
|
+
handleKeydown(event) {
|
|
1087
|
+
if ((event.key === "Escape" || this.parent && event.key === (this.rtl() ? "ArrowRight" : "ArrowLeft")) && this.expanded()) {
|
|
1088
|
+
event.preventDefault();
|
|
1089
|
+
event.stopPropagation();
|
|
1090
|
+
this.close(true);
|
|
1091
|
+
} else if (event.key === "Tab" && !this.navbar.mobile()) {
|
|
1092
|
+
const panel = this.panel()?.nativeElement;
|
|
1093
|
+
if (!panel) return;
|
|
1094
|
+
const items = aerisInternalFocusableElements(panel);
|
|
1095
|
+
if (event.shiftKey && this.document.activeElement === items[0]) {
|
|
1096
|
+
event.preventDefault();
|
|
1097
|
+
this.trigger()?.nativeElement.focus();
|
|
1098
|
+
} else if (!event.shiftKey && this.document.activeElement === items.at(-1)) {
|
|
1099
|
+
event.preventDefault();
|
|
1100
|
+
event.stopPropagation();
|
|
1101
|
+
this.focusAfterBranch();
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
handleTriggerKeydown(event) {
|
|
1106
|
+
if (event.key === "ArrowDown" || this.parent && event.key === (this.rtl() ? "ArrowLeft" : "ArrowRight")) {
|
|
1107
|
+
event.preventDefault();
|
|
1108
|
+
event.stopPropagation();
|
|
1109
|
+
this.expanded.set(true);
|
|
1110
|
+
this.focusFirst.set(true);
|
|
1111
|
+
} else if (event.key === "Tab" && !event.shiftKey && this.expanded() && !this.navbar.mobile()) {
|
|
1112
|
+
const panel = this.panel()?.nativeElement;
|
|
1113
|
+
const first = panel ? aerisInternalFocusableElements(panel)[0] : void 0;
|
|
1114
|
+
if (first) {
|
|
1115
|
+
event.preventDefault();
|
|
1116
|
+
first.focus();
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
focusAfterBranch() {
|
|
1121
|
+
const scope = this.parent?.panel()?.nativeElement ?? this.document.body;
|
|
1122
|
+
const trigger = this.trigger()?.nativeElement;
|
|
1123
|
+
const others = aerisInternalFocusableElements(scope).filter((item) => item === trigger || !this.containsTarget(item));
|
|
1124
|
+
const next = trigger ? others[others.indexOf(trigger) + 1] : void 0;
|
|
1125
|
+
this.close();
|
|
1126
|
+
if (next) next.focus();
|
|
1127
|
+
else this.parent?.focusAfterBranch();
|
|
1128
|
+
}
|
|
1129
|
+
handleClick(event) {
|
|
1130
|
+
if (!this.navbar.closeOnNavigate() || !normalActivation(event) || !(event.target instanceof Element)) return;
|
|
1131
|
+
const item = event.target.closest(".aeris-navbar__item");
|
|
1132
|
+
if (item && !(item instanceof HTMLAnchorElement && item.target && item.target !== "_self")) {
|
|
1133
|
+
let top = this;
|
|
1134
|
+
for (let dropdown = this; dropdown; dropdown = dropdown.parent) {
|
|
1135
|
+
dropdown.close();
|
|
1136
|
+
top = dropdown;
|
|
1137
|
+
}
|
|
1138
|
+
top.close(true);
|
|
1139
|
+
this.navbar.close();
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1143
|
+
minVersion: "12.0.0",
|
|
1144
|
+
version: "22.2.3",
|
|
1145
|
+
ngImport: i0,
|
|
1146
|
+
type: AerisNavbarDropdown,
|
|
1147
|
+
deps: [],
|
|
1148
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1149
|
+
});
|
|
1150
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1151
|
+
minVersion: "17.0.0",
|
|
1152
|
+
version: "22.2.3",
|
|
1153
|
+
type: AerisNavbarDropdown,
|
|
1154
|
+
isStandalone: true,
|
|
1155
|
+
selector: "aeris-navbar-dropdown",
|
|
1156
|
+
inputs: {
|
|
1157
|
+
label: {
|
|
1158
|
+
classPropertyName: "label",
|
|
1159
|
+
publicName: "label",
|
|
1160
|
+
isSignal: true,
|
|
1161
|
+
isRequired: true,
|
|
1162
|
+
transformFunction: null
|
|
1163
|
+
},
|
|
1164
|
+
expanded: {
|
|
1165
|
+
classPropertyName: "expanded",
|
|
1166
|
+
publicName: "expanded",
|
|
1167
|
+
isSignal: true,
|
|
1168
|
+
isRequired: false,
|
|
1169
|
+
transformFunction: null
|
|
1170
|
+
},
|
|
1171
|
+
appendTo: {
|
|
1172
|
+
classPropertyName: "appendTo",
|
|
1173
|
+
publicName: "appendTo",
|
|
1174
|
+
isSignal: true,
|
|
1175
|
+
isRequired: false,
|
|
1176
|
+
transformFunction: null
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1179
|
+
outputs: { expanded: "expandedChange" },
|
|
1180
|
+
host: {
|
|
1181
|
+
listeners: {
|
|
1182
|
+
"keydown": "handleKeydown($event)",
|
|
1183
|
+
"pointerenter": "handlePointerEnter($event)",
|
|
1184
|
+
"pointerleave": "handlePointerLeave($event)"
|
|
1185
|
+
},
|
|
1186
|
+
properties: {
|
|
1187
|
+
"attr.data-expanded": "expanded() || null",
|
|
1188
|
+
"attr.data-nested": "!!parent || null",
|
|
1189
|
+
"attr.data-mobile": "navbar.mobile() || null",
|
|
1190
|
+
"attr.data-rtl": "rtl() || null"
|
|
1191
|
+
},
|
|
1192
|
+
classAttribute: "aeris-navbar__disclosure"
|
|
1193
|
+
},
|
|
1194
|
+
queries: [{
|
|
1195
|
+
propertyName: "items",
|
|
1196
|
+
predicate: AerisNavbarItem,
|
|
1197
|
+
descendants: true,
|
|
1198
|
+
isSignal: true
|
|
1199
|
+
}],
|
|
1200
|
+
viewQueries: [{
|
|
1201
|
+
propertyName: "trigger",
|
|
1202
|
+
first: true,
|
|
1203
|
+
predicate: ["trigger"],
|
|
1204
|
+
descendants: true,
|
|
1205
|
+
isSignal: true
|
|
1206
|
+
}, {
|
|
1207
|
+
propertyName: "panel",
|
|
1208
|
+
first: true,
|
|
1209
|
+
predicate: ["panel"],
|
|
1210
|
+
descendants: true,
|
|
1211
|
+
isSignal: true
|
|
1212
|
+
}],
|
|
1213
|
+
ngImport: i0,
|
|
1214
|
+
template: `
|
|
1215
|
+
<button
|
|
1216
|
+
#trigger
|
|
1217
|
+
type="button"
|
|
1218
|
+
class="aeris-navbar__dropdown-trigger"
|
|
1219
|
+
[attr.data-active]="active() || null"
|
|
1220
|
+
[attr.aria-expanded]="expanded()"
|
|
1221
|
+
[attr.aria-controls]="expanded() ? contentId : null"
|
|
1222
|
+
(click)="handleTriggerClick($event)"
|
|
1223
|
+
(keydown)="handleTriggerKeydown($event)"
|
|
1224
|
+
>
|
|
1225
|
+
{{ label() }}
|
|
1226
|
+
<span aerisInternalIcon="chevron" class="aeris-navbar__chevron"></span>
|
|
1227
|
+
</button>
|
|
1228
|
+
@if (expanded()) {
|
|
1229
|
+
<div
|
|
1230
|
+
#panel
|
|
1231
|
+
class="aeris-navbar__dropdown"
|
|
1232
|
+
role="group"
|
|
1233
|
+
[attr.aria-label]="label()"
|
|
1234
|
+
[id]="contentId"
|
|
1235
|
+
[attr.data-inline]="navbar.mobile() || null"
|
|
1236
|
+
[aerisInternalAppendTo]="navbar.mobile() ? 'self' : appendTo()"
|
|
1237
|
+
[aerisInternalAppendToAnchor]="navbar.mobile() ? null : trigger"
|
|
1238
|
+
[aerisInternalAppendToPositionSelf]="!navbar.mobile()"
|
|
1239
|
+
[aerisInternalAppendToDismiss]="dismiss"
|
|
1240
|
+
aerisInternalAppendToDefault="body"
|
|
1241
|
+
[aerisInternalAppendToPlacement]="
|
|
1242
|
+
parent && !navbar.mobile() ? (rtl() ? 'left' : 'right') : 'bottom'
|
|
1243
|
+
"
|
|
1244
|
+
[aerisInternalAppendToOffset]="parent ? 6 : 7"
|
|
1245
|
+
aerisInternalAppendToAlignment="start"
|
|
1246
|
+
(aerisInternalAppendToOutside)="closeOutside($event)"
|
|
1247
|
+
(pointerenter)="handlePointerEnter($event)"
|
|
1248
|
+
(pointerleave)="handlePointerLeave($event)"
|
|
1249
|
+
(keydown)="handleKeydown($event)"
|
|
1250
|
+
(click)="handleClick($event)"
|
|
1251
|
+
>
|
|
1252
|
+
<ng-content />
|
|
1253
|
+
</div>
|
|
1254
|
+
}
|
|
1255
|
+
`,
|
|
1256
|
+
isInline: true,
|
|
1257
|
+
dependencies: [{
|
|
1258
|
+
kind: "component",
|
|
1259
|
+
type: ɵAerisIcon,
|
|
1260
|
+
selector: "span[aerisInternalIcon]",
|
|
1261
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
1262
|
+
}, {
|
|
1263
|
+
kind: "directive",
|
|
1264
|
+
type: ɵAerisAppendTo,
|
|
1265
|
+
selector: "[aerisInternalAppendTo]",
|
|
1266
|
+
inputs: [
|
|
1267
|
+
"aerisInternalAppendTo",
|
|
1268
|
+
"aerisInternalAppendToDefault",
|
|
1269
|
+
"aerisInternalAppendToAnchor",
|
|
1270
|
+
"aerisInternalAppendToOffset",
|
|
1271
|
+
"aerisInternalAppendToMatchWidth",
|
|
1272
|
+
"aerisInternalAppendToPlacement",
|
|
1273
|
+
"aerisInternalAppendToAlignment",
|
|
1274
|
+
"aerisInternalAppendToCollisionPadding",
|
|
1275
|
+
"aerisInternalAppendToPositionSelf",
|
|
1276
|
+
"aerisInternalAppendToDismiss"
|
|
1277
|
+
],
|
|
1278
|
+
outputs: ["aerisInternalAppendToOutside"]
|
|
1279
|
+
}]
|
|
1280
|
+
});
|
|
1281
|
+
};
|
|
1282
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1283
|
+
minVersion: "12.0.0",
|
|
1284
|
+
version: "22.2.3",
|
|
1285
|
+
ngImport: i0,
|
|
1286
|
+
type: AerisNavbarDropdown,
|
|
1287
|
+
decorators: [{
|
|
1288
|
+
type: Component,
|
|
1289
|
+
args: [{
|
|
1290
|
+
selector: "aeris-navbar-dropdown",
|
|
1291
|
+
imports: [ɵAerisIcon, ɵAerisAppendTo],
|
|
1292
|
+
template: `
|
|
1293
|
+
<button
|
|
1294
|
+
#trigger
|
|
1295
|
+
type="button"
|
|
1296
|
+
class="aeris-navbar__dropdown-trigger"
|
|
1297
|
+
[attr.data-active]="active() || null"
|
|
1298
|
+
[attr.aria-expanded]="expanded()"
|
|
1299
|
+
[attr.aria-controls]="expanded() ? contentId : null"
|
|
1300
|
+
(click)="handleTriggerClick($event)"
|
|
1301
|
+
(keydown)="handleTriggerKeydown($event)"
|
|
1302
|
+
>
|
|
1303
|
+
{{ label() }}
|
|
1304
|
+
<span aerisInternalIcon="chevron" class="aeris-navbar__chevron"></span>
|
|
1305
|
+
</button>
|
|
1306
|
+
@if (expanded()) {
|
|
1307
|
+
<div
|
|
1308
|
+
#panel
|
|
1309
|
+
class="aeris-navbar__dropdown"
|
|
1310
|
+
role="group"
|
|
1311
|
+
[attr.aria-label]="label()"
|
|
1312
|
+
[id]="contentId"
|
|
1313
|
+
[attr.data-inline]="navbar.mobile() || null"
|
|
1314
|
+
[aerisInternalAppendTo]="navbar.mobile() ? 'self' : appendTo()"
|
|
1315
|
+
[aerisInternalAppendToAnchor]="navbar.mobile() ? null : trigger"
|
|
1316
|
+
[aerisInternalAppendToPositionSelf]="!navbar.mobile()"
|
|
1317
|
+
[aerisInternalAppendToDismiss]="dismiss"
|
|
1318
|
+
aerisInternalAppendToDefault="body"
|
|
1319
|
+
[aerisInternalAppendToPlacement]="
|
|
1320
|
+
parent && !navbar.mobile() ? (rtl() ? 'left' : 'right') : 'bottom'
|
|
1321
|
+
"
|
|
1322
|
+
[aerisInternalAppendToOffset]="parent ? 6 : 7"
|
|
1323
|
+
aerisInternalAppendToAlignment="start"
|
|
1324
|
+
(aerisInternalAppendToOutside)="closeOutside($event)"
|
|
1325
|
+
(pointerenter)="handlePointerEnter($event)"
|
|
1326
|
+
(pointerleave)="handlePointerLeave($event)"
|
|
1327
|
+
(keydown)="handleKeydown($event)"
|
|
1328
|
+
(click)="handleClick($event)"
|
|
1329
|
+
>
|
|
1330
|
+
<ng-content />
|
|
1331
|
+
</div>
|
|
1332
|
+
}
|
|
1333
|
+
`,
|
|
1334
|
+
host: {
|
|
1335
|
+
class: "aeris-navbar__disclosure",
|
|
1336
|
+
"[attr.data-expanded]": "expanded() || null",
|
|
1337
|
+
"[attr.data-nested]": "!!parent || null",
|
|
1338
|
+
"[attr.data-mobile]": "navbar.mobile() || null",
|
|
1339
|
+
"[attr.data-rtl]": "rtl() || null",
|
|
1340
|
+
"(keydown)": "handleKeydown($event)",
|
|
1341
|
+
"(pointerenter)": "handlePointerEnter($event)",
|
|
1342
|
+
"(pointerleave)": "handlePointerLeave($event)"
|
|
1343
|
+
}
|
|
1344
|
+
}]
|
|
1345
|
+
}],
|
|
1346
|
+
ctorParameters: () => [],
|
|
1347
|
+
propDecorators: {
|
|
1348
|
+
trigger: [{
|
|
1349
|
+
type: i0.ViewChild,
|
|
1350
|
+
args: ["trigger", { isSignal: true }]
|
|
1351
|
+
}],
|
|
1352
|
+
panel: [{
|
|
1353
|
+
type: i0.ViewChild,
|
|
1354
|
+
args: ["panel", { isSignal: true }]
|
|
1355
|
+
}],
|
|
1356
|
+
label: [{
|
|
1357
|
+
type: i0.Input,
|
|
1358
|
+
args: [{
|
|
1359
|
+
isSignal: true,
|
|
1360
|
+
alias: "label",
|
|
1361
|
+
required: true
|
|
1362
|
+
}]
|
|
1363
|
+
}],
|
|
1364
|
+
expanded: [{
|
|
1365
|
+
type: i0.Input,
|
|
1366
|
+
args: [{
|
|
1367
|
+
isSignal: true,
|
|
1368
|
+
alias: "expanded",
|
|
1369
|
+
required: false
|
|
1370
|
+
}]
|
|
1371
|
+
}, {
|
|
1372
|
+
type: i0.Output,
|
|
1373
|
+
args: ["expandedChange"]
|
|
1374
|
+
}],
|
|
1375
|
+
appendTo: [{
|
|
1376
|
+
type: i0.Input,
|
|
1377
|
+
args: [{
|
|
1378
|
+
isSignal: true,
|
|
1379
|
+
alias: "appendTo",
|
|
1380
|
+
required: false
|
|
1381
|
+
}]
|
|
1382
|
+
}],
|
|
1383
|
+
items: [{
|
|
1384
|
+
type: i0.ContentChildren,
|
|
1385
|
+
args: [i0.forwardRef(() => AerisNavbarItem), {
|
|
1386
|
+
descendants: true,
|
|
1387
|
+
isSignal: true
|
|
1388
|
+
}]
|
|
1389
|
+
}]
|
|
1390
|
+
}
|
|
1391
|
+
});
|
|
1392
|
+
function normalActivation(event) {
|
|
1393
|
+
return event.button === 0 && !event.ctrlKey && !event.metaKey && !event.altKey && !event.shiftKey;
|
|
1394
|
+
}
|
|
1395
|
+
const AerisNavbarModule = [
|
|
1396
|
+
AerisNavbar,
|
|
1397
|
+
AerisNavbarBrand,
|
|
1398
|
+
AerisNavbarLinks,
|
|
1399
|
+
AerisNavbarActions,
|
|
1400
|
+
AerisNavbarIcon,
|
|
1401
|
+
AerisNavbarToggle,
|
|
1402
|
+
AerisNavbarItem,
|
|
1403
|
+
AerisNavbarDropdown
|
|
1404
|
+
];
|
|
1405
|
+
export { AerisNavbar, AerisNavbarActions, AerisNavbarBrand, AerisNavbarDropdown, AerisNavbarIcon, AerisNavbarItem, AerisNavbarLinks, AerisNavbarModule, AerisNavbarToggle };
|
|
1406
|
+
|
|
1407
|
+
//# sourceMappingURL=aeris-ui-core-navbar.mjs.map
|