@edsis/angular 22.1.6 → 22.2.8
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/LICENSE +21 -0
- package/README.md +87 -399
- package/SECURITY.md +18 -0
- package/SUPPORT.md +15 -0
- package/chart/README.md +272 -0
- package/component/README.md +89 -0
- package/component/accordion/README.md +195 -0
- package/component/alert/README.md +184 -0
- package/component/alert-dialog/README.md +255 -0
- package/component/aspect-ratio/README.md +116 -0
- package/component/avatar/README.md +182 -0
- package/component/badge/README.md +143 -0
- package/component/breadcrumb/README.md +223 -0
- package/component/button/README.md +141 -0
- package/component/button-group/README.md +214 -0
- package/component/calendar/README.md +125 -0
- package/component/card/README.md +232 -0
- package/component/carousel/README.md +276 -0
- package/component/checkbox/README.md +153 -0
- package/component/collapsible/README.md +216 -0
- package/component/combobox/README.md +202 -0
- package/component/command/README.md +287 -0
- package/component/composer/README.md +241 -0
- package/component/context-menu/README.md +268 -0
- package/component/date-picker/README.md +202 -0
- package/component/dialog/README.md +276 -0
- package/component/drawer/README.md +146 -0
- package/component/dropdown-menu/README.md +336 -0
- package/component/editor/README.md +152 -0
- package/component/empty/README.md +193 -0
- package/component/form/README.md +216 -0
- package/component/hover-card/README.md +150 -0
- package/component/icon/README.md +52 -0
- package/component/input/README.md +160 -0
- package/component/input-group/README.md +245 -0
- package/component/input-otp/README.md +331 -0
- package/component/item/README.md +254 -0
- package/component/kanban/README.md +81 -0
- package/component/kbd/README.md +141 -0
- package/component/label/README.md +137 -0
- package/component/menubar/README.md +270 -0
- package/component/native-select/README.md +176 -0
- package/component/navigation-menu/README.md +165 -0
- package/component/pagination/README.md +151 -0
- package/component/pillbox/README.md +68 -0
- package/component/popover/README.md +54 -0
- package/component/progress/README.md +160 -0
- package/component/radio/README.md +212 -0
- package/component/resizable/README.md +178 -0
- package/component/scroll-area/README.md +150 -0
- package/component/select/README.md +228 -0
- package/component/separator/README.md +175 -0
- package/component/sheet/README.md +190 -0
- package/component/skeleton/README.md +158 -0
- package/component/slider/README.md +207 -0
- package/component/spinner/README.md +160 -0
- package/component/switch/README.md +170 -0
- package/component/table/README.md +292 -0
- package/component/tabs/README.md +220 -0
- package/component/textarea/README.md +169 -0
- package/component/timeline/README.md +94 -0
- package/component/toast/README.md +173 -0
- package/component/toggle/README.md +133 -0
- package/component/toggle-group/README.md +234 -0
- package/component/tooltip/README.md +230 -0
- package/fesm2022/edsis-angular-chart-area.mjs +508 -0
- package/fesm2022/edsis-angular-chart-bar.mjs +946 -0
- package/fesm2022/edsis-angular-chart-core.mjs +1282 -0
- package/fesm2022/edsis-angular-chart-line.mjs +544 -0
- package/fesm2022/edsis-angular-chart-pie.mjs +524 -0
- package/fesm2022/edsis-angular-chart-primitives.mjs +1647 -0
- package/fesm2022/edsis-angular-chart-radar.mjs +693 -0
- package/fesm2022/edsis-angular-chart-radial.mjs +542 -0
- package/fesm2022/edsis-angular-chart-scatter.mjs +486 -0
- package/fesm2022/edsis-angular-chart.mjs +3 -0
- package/fesm2022/edsis-angular-component-accordion.mjs +513 -0
- package/fesm2022/edsis-angular-component-alert-dialog.mjs +1001 -0
- package/fesm2022/edsis-angular-component-alert.mjs +268 -0
- package/fesm2022/edsis-angular-component-aspect-ratio.mjs +80 -0
- package/fesm2022/edsis-angular-component-avatar.mjs +410 -0
- package/fesm2022/edsis-angular-component-badge.mjs +111 -0
- package/fesm2022/edsis-angular-component-breadcrumb.mjs +464 -0
- package/fesm2022/edsis-angular-component-button-group.mjs +252 -0
- package/fesm2022/edsis-angular-component-button.mjs +155 -0
- package/fesm2022/edsis-angular-component-calendar.mjs +835 -0
- package/fesm2022/edsis-angular-component-card.mjs +460 -0
- package/fesm2022/edsis-angular-component-carousel.mjs +700 -0
- package/fesm2022/edsis-angular-component-checkbox.mjs +398 -0
- package/fesm2022/edsis-angular-component-collapsible.mjs +305 -0
- package/fesm2022/edsis-angular-component-combobox.mjs +544 -0
- package/fesm2022/edsis-angular-component-command.mjs +815 -0
- package/fesm2022/edsis-angular-component-composer.mjs +840 -0
- package/fesm2022/edsis-angular-component-context-menu.mjs +197 -0
- package/fesm2022/edsis-angular-component-date-picker.mjs +798 -0
- package/fesm2022/edsis-angular-component-dialog.mjs +798 -0
- package/fesm2022/edsis-angular-component-drawer.mjs +2 -0
- package/fesm2022/edsis-angular-component-dropdown-menu.mjs +1259 -0
- package/fesm2022/edsis-angular-component-editor.mjs +1000 -0
- package/fesm2022/edsis-angular-component-empty.mjs +351 -0
- package/fesm2022/edsis-angular-component-form.mjs +821 -0
- package/fesm2022/edsis-angular-component-hover-card.mjs +486 -0
- package/fesm2022/edsis-angular-component-icon.mjs +253 -0
- package/fesm2022/edsis-angular-component-input-group.mjs +453 -0
- package/fesm2022/edsis-angular-component-input-otp.mjs +957 -0
- package/fesm2022/edsis-angular-component-input.mjs +87 -0
- package/fesm2022/edsis-angular-component-item.mjs +720 -0
- package/fesm2022/edsis-angular-component-kanban.mjs +812 -0
- package/fesm2022/edsis-angular-component-kbd.mjs +124 -0
- package/fesm2022/edsis-angular-component-label.mjs +82 -0
- package/fesm2022/edsis-angular-component-menubar.mjs +481 -0
- package/fesm2022/edsis-angular-component-native-select.mjs +168 -0
- package/fesm2022/edsis-angular-component-navigation-menu.mjs +685 -0
- package/fesm2022/edsis-angular-component-pagination.mjs +425 -0
- package/fesm2022/edsis-angular-component-pillbox.mjs +1679 -0
- package/fesm2022/edsis-angular-component-popover.mjs +292 -0
- package/fesm2022/edsis-angular-component-progress.mjs +184 -0
- package/fesm2022/edsis-angular-component-radio.mjs +491 -0
- package/fesm2022/edsis-angular-component-resizable.mjs +703 -0
- package/fesm2022/edsis-angular-component-scroll-area.mjs +133 -0
- package/fesm2022/edsis-angular-component-segmented-control.mjs +408 -0
- package/fesm2022/edsis-angular-component-select.mjs +743 -0
- package/fesm2022/edsis-angular-component-separator.mjs +102 -0
- package/fesm2022/edsis-angular-component-sheet.mjs +874 -0
- package/fesm2022/edsis-angular-component-skeleton.mjs +62 -0
- package/fesm2022/edsis-angular-component-slider.mjs +676 -0
- package/fesm2022/edsis-angular-component-spinner.mjs +157 -0
- package/fesm2022/edsis-angular-component-switch.mjs +361 -0
- package/fesm2022/edsis-angular-component-table.mjs +446 -0
- package/fesm2022/edsis-angular-component-tabs.mjs +592 -0
- package/fesm2022/edsis-angular-component-textarea.mjs +85 -0
- package/fesm2022/edsis-angular-component-timeline.mjs +619 -0
- package/fesm2022/edsis-angular-component-toast.mjs +231 -0
- package/fesm2022/edsis-angular-component-toggle-group.mjs +579 -0
- package/fesm2022/edsis-angular-component-toggle.mjs +189 -0
- package/fesm2022/edsis-angular-component-tooltip.mjs +804 -0
- package/fesm2022/edsis-angular-component-utils-core.mjs +181 -0
- package/fesm2022/edsis-angular-component-utils-overlay.mjs +54 -0
- package/fesm2022/edsis-angular-component-utils-scale.mjs +76 -0
- package/fesm2022/edsis-angular-component-utils.mjs +2 -0
- package/fesm2022/edsis-angular-component.mjs +0 -0
- package/fesm2022/edsis-angular-navigation-core.mjs +15 -0
- package/fesm2022/edsis-angular-navigation-icon.mjs +35 -0
- package/fesm2022/edsis-angular-navigation-navigation-badge-count.component-BWWWaUgy.mjs +234 -0
- package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-Bx2bxTID.mjs +834 -0
- package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-Duzt1ffz.mjs +823 -0
- package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-cJ8Q1vM6.mjs +670 -0
- package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-CDQ1wt2_.mjs +689 -0
- package/fesm2022/edsis-angular-navigation-navigation-item.component-C1VzerJp.mjs +1522 -0
- package/fesm2022/edsis-angular-navigation-navigation-list.component-BPYLfrID.mjs +346 -0
- package/fesm2022/edsis-angular-navigation-service.mjs +558 -0
- package/fesm2022/edsis-angular-navigation-types.mjs +151 -0
- package/fesm2022/edsis-angular-navigation.mjs +3338 -0
- package/fesm2022/edsis-angular-sdk.mjs +100 -0
- package/fesm2022/edsis-angular-theme-component-settings.mjs +1877 -0
- package/fesm2022/edsis-angular-theme-layout-services.mjs +252 -0
- package/fesm2022/edsis-angular-theme-layout-types.mjs +45 -0
- package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +2568 -0
- package/fesm2022/edsis-angular-theme-layout.mjs +1089 -0
- package/fesm2022/edsis-angular-theme-page-core.mjs +315 -0
- package/fesm2022/edsis-angular-theme-page-filter.mjs +409 -0
- package/fesm2022/edsis-angular-theme-page-overview.mjs +88 -0
- package/fesm2022/edsis-angular-theme-page-root.mjs +693 -0
- package/fesm2022/edsis-angular-theme-page-side.mjs +342 -0
- package/fesm2022/edsis-angular-theme-page-slots.mjs +258 -0
- package/fesm2022/edsis-angular-theme-page.mjs +7 -0
- package/fesm2022/edsis-angular-theme-shell-services.mjs +231 -0
- package/fesm2022/edsis-angular-theme-shell-types.mjs +102 -0
- package/fesm2022/edsis-angular-theme-shell.mjs +1352 -0
- package/fesm2022/edsis-angular-theme-styles.mjs +572 -0
- package/fesm2022/edsis-angular-theme.mjs +0 -0
- package/fesm2022/edsis-angular.mjs +5 -8
- package/navigation/README.md +576 -0
- package/package.json +477 -52
- package/sdk/README.md +212 -0
- package/sdk/schematics/collection.json +20 -0
- package/sdk/schematics/init/index.js +83 -0
- package/sdk/schematics/init/schema.json +19 -0
- package/sdk/schematics/ng-add/index.js +147 -0
- package/sdk/schematics/ng-add/schema.json +14 -0
- package/sdk/schematics/package.json +3 -0
- package/sdk/schematics/sdk/index.js +175 -0
- package/sdk/schematics/sdk/schema.json +19 -0
- package/sdk/sdk.config.example.json +24 -0
- package/sdk/src/config/loader.js +43 -0
- package/sdk/src/config/schema.js +59 -0
- package/sdk/src/emit/client.js +251 -0
- package/sdk/src/emit/metadata.js +310 -0
- package/sdk/src/emit/models.js +104 -0
- package/sdk/src/emit/navigation.js +56 -0
- package/sdk/src/emit/operations.js +118 -0
- package/sdk/src/emit/public-api.js +54 -0
- package/sdk/src/emit/services.js +110 -0
- package/sdk/src/engine.js +67 -0
- package/sdk/src/layout/per-domain.js +360 -0
- package/sdk/src/package.json +3 -0
- package/sdk/src/parser/bundle.js +25 -0
- package/sdk/src/parser/ir.js +429 -0
- package/sdk/src/parser/types.js +7 -0
- package/sdk/src/render/template.js +152 -0
- package/sdk/src/writer/index.js +286 -0
- package/theme/README.md +120 -0
- package/theme/component/settings/README.md +154 -0
- package/theme/layout/README.md +604 -0
- package/theme/page/README.md +505 -0
- package/theme/shell/README.md +344 -0
- package/theme/styles/README.md +202 -0
- package/theme/styles/css/base/components.css +577 -0
- package/theme/styles/css/base/index.css +14 -0
- package/theme/styles/css/base/package.css +9 -0
- package/theme/styles/css/base/prefers-dark.css +86 -0
- package/theme/styles/css/base/print.css +62 -0
- package/theme/styles/css/base/status.css +38 -0
- package/theme/styles/css/base/tailwind.css +208 -0
- package/theme/styles/css/base/theme.css +353 -0
- package/theme/styles/css/base/tokens.css +388 -0
- package/theme/styles/css/color/amber.css +72 -0
- package/theme/styles/css/color/blue.css +72 -0
- package/theme/styles/css/color/brand.css +38 -0
- package/theme/styles/css/color/cyan.css +72 -0
- package/theme/styles/css/color/emerald.css +72 -0
- package/theme/styles/css/color/fuchsia.css +72 -0
- package/theme/styles/css/color/green.css +72 -0
- package/theme/styles/css/color/index.css +19 -0
- package/theme/styles/css/color/indigo.css +72 -0
- package/theme/styles/css/color/lime.css +72 -0
- package/theme/styles/css/color/orange.css +72 -0
- package/theme/styles/css/color/pink.css +72 -0
- package/theme/styles/css/color/purple.css +72 -0
- package/theme/styles/css/color/red.css +72 -0
- package/theme/styles/css/color/rose.css +72 -0
- package/theme/styles/css/color/sky.css +72 -0
- package/theme/styles/css/color/teal.css +72 -0
- package/theme/styles/css/color/violet.css +72 -0
- package/theme/styles/css/color/yellow.css +72 -0
- package/theme/styles/css/fonts.css +85 -0
- package/theme/styles/css/index.css +18 -0
- package/theme/styles/css/neutral/gray.css +63 -0
- package/theme/styles/css/neutral/index.css +11 -0
- package/theme/styles/css/neutral/mauve.css +63 -0
- package/theme/styles/css/neutral/mist.css +63 -0
- package/theme/styles/css/neutral/neutral.css +63 -0
- package/theme/styles/css/neutral/olive.css +63 -0
- package/theme/styles/css/neutral/slate.css +63 -0
- package/theme/styles/css/neutral/stone.css +63 -0
- package/theme/styles/css/neutral/taupe.css +63 -0
- package/theme/styles/css/neutral/zinc.css +63 -0
- package/theme/styles/css/radius/index.css +30 -0
- package/theme/styles/css/space/index.css +20 -0
- package/types/edsis-angular-chart-area.d.ts +139 -0
- package/types/edsis-angular-chart-bar.d.ts +291 -0
- package/types/edsis-angular-chart-core.d.ts +822 -0
- package/types/edsis-angular-chart-line.d.ts +148 -0
- package/types/edsis-angular-chart-pie.d.ts +202 -0
- package/types/edsis-angular-chart-primitives.d.ts +360 -0
- package/types/edsis-angular-chart-radar.d.ts +198 -0
- package/types/edsis-angular-chart-radial.d.ts +187 -0
- package/types/edsis-angular-chart-scatter.d.ts +181 -0
- package/types/edsis-angular-chart.d.ts +3 -0
- package/types/edsis-angular-component-accordion.d.ts +139 -0
- package/types/edsis-angular-component-alert-dialog.d.ts +288 -0
- package/types/edsis-angular-component-alert.d.ts +72 -0
- package/types/edsis-angular-component-aspect-ratio.d.ts +20 -0
- package/types/edsis-angular-component-avatar.d.ts +111 -0
- package/types/edsis-angular-component-badge.d.ts +36 -0
- package/types/edsis-angular-component-breadcrumb.d.ts +85 -0
- package/types/edsis-angular-component-button-group.d.ts +50 -0
- package/types/edsis-angular-component-button.d.ts +44 -0
- package/types/edsis-angular-component-calendar.d.ts +150 -0
- package/types/edsis-angular-component-card.d.ts +123 -0
- package/types/edsis-angular-component-carousel.d.ts +155 -0
- package/types/edsis-angular-component-checkbox.d.ts +100 -0
- package/types/edsis-angular-component-collapsible.d.ts +68 -0
- package/types/edsis-angular-component-combobox.d.ts +105 -0
- package/types/edsis-angular-component-command.d.ts +215 -0
- package/types/edsis-angular-component-composer.d.ts +190 -0
- package/types/edsis-angular-component-context-menu.d.ts +64 -0
- package/types/edsis-angular-component-date-picker.d.ts +199 -0
- package/types/edsis-angular-component-dialog.d.ts +231 -0
- package/types/edsis-angular-component-drawer.d.ts +2 -0
- package/types/edsis-angular-component-dropdown-menu.d.ts +370 -0
- package/types/edsis-angular-component-editor.d.ts +234 -0
- package/types/edsis-angular-component-empty.d.ts +85 -0
- package/types/edsis-angular-component-form.d.ts +223 -0
- package/types/edsis-angular-component-hover-card.d.ts +133 -0
- package/types/edsis-angular-component-icon.d.ts +90 -0
- package/types/edsis-angular-component-input-group.d.ts +98 -0
- package/types/edsis-angular-component-input-otp.d.ts +249 -0
- package/types/edsis-angular-component-input.d.ts +31 -0
- package/types/edsis-angular-component-item.d.ts +169 -0
- package/types/edsis-angular-component-kanban.d.ts +165 -0
- package/types/edsis-angular-component-kbd.d.ts +25 -0
- package/types/edsis-angular-component-label.d.ts +19 -0
- package/types/edsis-angular-component-menubar.d.ts +123 -0
- package/types/edsis-angular-component-native-select.d.ts +39 -0
- package/types/edsis-angular-component-navigation-menu.d.ts +163 -0
- package/types/edsis-angular-component-pagination.d.ts +83 -0
- package/types/edsis-angular-component-pillbox.d.ts +380 -0
- package/types/edsis-angular-component-popover.d.ts +96 -0
- package/types/edsis-angular-component-progress.d.ts +45 -0
- package/types/edsis-angular-component-radio.d.ts +137 -0
- package/types/edsis-angular-component-resizable.d.ts +166 -0
- package/types/edsis-angular-component-scroll-area.d.ts +37 -0
- package/types/edsis-angular-component-segmented-control.d.ts +102 -0
- package/types/edsis-angular-component-select.d.ts +138 -0
- package/types/edsis-angular-component-separator.d.ts +26 -0
- package/types/edsis-angular-component-sheet.d.ts +240 -0
- package/types/edsis-angular-component-skeleton.d.ts +13 -0
- package/types/edsis-angular-component-slider.d.ts +148 -0
- package/types/edsis-angular-component-spinner.d.ts +31 -0
- package/types/edsis-angular-component-switch.d.ts +101 -0
- package/types/edsis-angular-component-table.d.ts +109 -0
- package/types/edsis-angular-component-tabs.d.ts +183 -0
- package/types/edsis-angular-component-textarea.d.ts +27 -0
- package/types/edsis-angular-component-timeline.d.ts +146 -0
- package/types/edsis-angular-component-toast.d.ts +60 -0
- package/types/edsis-angular-component-toggle-group.d.ts +161 -0
- package/types/edsis-angular-component-toggle.d.ts +47 -0
- package/types/edsis-angular-component-tooltip.d.ts +233 -0
- package/types/edsis-angular-component-utils-core.d.ts +175 -0
- package/types/edsis-angular-component-utils-overlay.d.ts +17 -0
- package/types/edsis-angular-component-utils-scale.d.ts +27 -0
- package/types/edsis-angular-component-utils.d.ts +2 -0
- package/types/edsis-angular-component.d.ts +1 -0
- package/types/edsis-angular-navigation-core.d.ts +55 -0
- package/types/edsis-angular-navigation-icon.d.ts +9 -0
- package/types/edsis-angular-navigation-service.d.ts +121 -0
- package/types/edsis-angular-navigation-types.d.ts +185 -0
- package/types/edsis-angular-navigation.d.ts +862 -0
- package/types/edsis-angular-sdk.d.ts +87 -0
- package/types/edsis-angular-theme-component-settings.d.ts +205 -0
- package/types/edsis-angular-theme-layout-services.d.ts +143 -0
- package/types/edsis-angular-theme-layout-types.d.ts +36 -0
- package/types/edsis-angular-theme-layout-wrapper.d.ts +670 -0
- package/types/edsis-angular-theme-layout.d.ts +218 -0
- package/types/edsis-angular-theme-page-core.d.ts +151 -0
- package/types/edsis-angular-theme-page-filter.d.ts +127 -0
- package/types/edsis-angular-theme-page-overview.d.ts +28 -0
- package/types/edsis-angular-theme-page-root.d.ts +172 -0
- package/types/edsis-angular-theme-page-side.d.ts +90 -0
- package/types/edsis-angular-theme-page-slots.d.ts +61 -0
- package/types/edsis-angular-theme-page.d.ts +7 -0
- package/types/edsis-angular-theme-shell-services.d.ts +188 -0
- package/types/edsis-angular-theme-shell-types.d.ts +102 -0
- package/types/edsis-angular-theme-shell.d.ts +178 -0
- package/types/edsis-angular-theme-styles.d.ts +295 -0
- package/types/edsis-angular-theme.d.ts +1 -0
- package/types/edsis-angular.d.ts +5 -2
- package/fesm2022/edsis-angular-block-shell.mjs +0 -1329
- package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
- package/fesm2022/edsis-angular-block-themes.mjs +0 -1007
- package/fesm2022/edsis-angular-block-themes.mjs.map +0 -1
- package/fesm2022/edsis-angular-module-auth.mjs +0 -2582
- package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
- package/fesm2022/edsis-angular-platform-mfe.mjs +0 -329
- package/fesm2022/edsis-angular-platform-mfe.mjs.map +0 -1
- package/fesm2022/edsis-angular-services-runtime.mjs +0 -385
- package/fesm2022/edsis-angular-services-runtime.mjs.map +0 -1
- package/fesm2022/edsis-angular.mjs.map +0 -1
- package/types/edsis-angular-block-shell.d.ts +0 -190
- package/types/edsis-angular-block-themes.d.ts +0 -94
- package/types/edsis-angular-module-auth.d.ts +0 -533
- package/types/edsis-angular-platform-mfe.d.ts +0 -126
- package/types/edsis-angular-services-runtime.d.ts +0 -118
|
@@ -0,0 +1,823 @@
|
|
|
1
|
+
import { i as NavigationItemBadgeComponent, n as navigationPanelId, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-C1VzerJp.mjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, computed, inject, input, output, signal } from "@angular/core";
|
|
4
|
+
import { ActivatedRoute, Router, RouterLink } from "@angular/router";
|
|
5
|
+
import { cn } from "@edsis/angular/component/utils/core";
|
|
6
|
+
import { NAVIGATION_ADAPTER, NAVIGATION_ROUTE_CONTEXT_ADAPTER } from "@edsis/angular/navigation/core";
|
|
7
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
8
|
+
import { LucideChevronRight } from "@lucide/angular";
|
|
9
|
+
import { IconComponent, provideIcons } from "@edsis/angular/component/icon";
|
|
10
|
+
var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
11
|
+
nav = inject(NAVIGATION_ADAPTER);
|
|
12
|
+
routeContext = inject(NAVIGATION_ROUTE_CONTEXT_ADAPTER);
|
|
13
|
+
router = inject(Router, { optional: true });
|
|
14
|
+
activatedRoute = inject(ActivatedRoute, { optional: true });
|
|
15
|
+
badgeContext = input({}, ...ngDevMode ? [{ debugName: "badgeContext" }] : /* istanbul ignore next */ []);
|
|
16
|
+
navId = input("default", ...ngDevMode ? [{ debugName: "navId" }] : /* istanbul ignore next */ []);
|
|
17
|
+
branch = input.required(...ngDevMode ? [{ debugName: "branch" }] : /* istanbul ignore next */ []);
|
|
18
|
+
typeStyle = input("flat", ...ngDevMode ? [{ debugName: "typeStyle" }] : /* istanbul ignore next */ []);
|
|
19
|
+
itemClass = input("", ...ngDevMode ? [{ debugName: "itemClass" }] : /* istanbul ignore next */ []);
|
|
20
|
+
activeIds = input(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "activeIds" }] : /* istanbul ignore next */ []);
|
|
21
|
+
activeUrl = input(null, ...ngDevMode ? [{ debugName: "activeUrl" }] : /* istanbul ignore next */ []);
|
|
22
|
+
iconTemplate = input(void 0, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
|
|
23
|
+
collapseTree = input("stairs", ...ngDevMode ? [{ debugName: "collapseTree" }] : /* istanbul ignore next */ []);
|
|
24
|
+
openedIds = input([], ...ngDevMode ? [{ debugName: "openedIds" }] : /* istanbul ignore next */ []);
|
|
25
|
+
openedIdsChange = output();
|
|
26
|
+
itemSelected = output();
|
|
27
|
+
isBorderRail = computed(() => this.typeStyle() === "border-rail", ...ngDevMode ? [{ debugName: "isBorderRail" }] : /* istanbul ignore next */ []);
|
|
28
|
+
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "rounded-none hover:bg-transparent hover:text-primary"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
29
|
+
collapsedEntryKeys = signal(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "collapsedEntryKeys" }] : /* istanbul ignore next */ []);
|
|
30
|
+
entryState = computed(() => {
|
|
31
|
+
const activeIds = this.activeIds();
|
|
32
|
+
const activeUrl = this.activeUrl();
|
|
33
|
+
const navId = this.navId();
|
|
34
|
+
return new Map(this.branch().children.map((child) => [child, {
|
|
35
|
+
active: this.nav.isItemActive(child, activeIds, activeUrl),
|
|
36
|
+
routeActive: this.nav.isRouterItem(child) && this.isRouteActive(child),
|
|
37
|
+
panelId: navigationPanelId(navId, child)
|
|
38
|
+
}]));
|
|
39
|
+
}, ...ngDevMode ? [{ debugName: "entryState" }] : /* istanbul ignore next */ []);
|
|
40
|
+
isItemActive(item) {
|
|
41
|
+
return this.entryState().get(item)?.active ?? this.nav.isItemActive(item, this.activeIds(), this.activeUrl());
|
|
42
|
+
}
|
|
43
|
+
isRouterEntryActive(item) {
|
|
44
|
+
return (this.entryState().get(item)?.routeActive ?? this.isRouteActive(item)) || this.isItemActive(item);
|
|
45
|
+
}
|
|
46
|
+
isRouteActive(item) {
|
|
47
|
+
if (item.disabled || !this.router?.lastSuccessfulNavigation()) return false;
|
|
48
|
+
return this.routeContext.isItemRouteActive(item, null, this.activatedRoute);
|
|
49
|
+
}
|
|
50
|
+
panelIdFor(item) {
|
|
51
|
+
return this.entryState().get(item)?.panelId ?? navigationPanelId(this.navId(), item);
|
|
52
|
+
}
|
|
53
|
+
isEntryOpen(item) {
|
|
54
|
+
return !this.collapsedEntryKeys().has(item.stateId);
|
|
55
|
+
}
|
|
56
|
+
toggleEntry(item) {
|
|
57
|
+
if (item.disabled) return;
|
|
58
|
+
const next = new Set(this.collapsedEntryKeys());
|
|
59
|
+
if (next.has(item.stateId)) next.delete(item.stateId);
|
|
60
|
+
else next.add(item.stateId);
|
|
61
|
+
this.collapsedEntryKeys.set(next);
|
|
62
|
+
}
|
|
63
|
+
selectEntry(item, event) {
|
|
64
|
+
if (item.disabled) {
|
|
65
|
+
event.preventDefault();
|
|
66
|
+
event.stopPropagation();
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
item.action?.(item.source);
|
|
70
|
+
this.itemSelected.emit({
|
|
71
|
+
item: item.source,
|
|
72
|
+
key: item.key,
|
|
73
|
+
type: item.type,
|
|
74
|
+
link: item.link,
|
|
75
|
+
external: !!this.nav.hrefFor(item)
|
|
76
|
+
});
|
|
77
|
+
this.nav.closePanel(this.navId());
|
|
78
|
+
this.nav.closeDrawer(this.navId());
|
|
79
|
+
}
|
|
80
|
+
isRouterItem(item) {
|
|
81
|
+
return this.nav.isRouterItem(item);
|
|
82
|
+
}
|
|
83
|
+
hrefFor(item) {
|
|
84
|
+
return this.nav.hrefFor(item);
|
|
85
|
+
}
|
|
86
|
+
relFor(item) {
|
|
87
|
+
return this.nav.relFor(item);
|
|
88
|
+
}
|
|
89
|
+
iconContext(item, active) {
|
|
90
|
+
return this.nav.iconContext(item, active, 1, "horizontal");
|
|
91
|
+
}
|
|
92
|
+
fallbackInitials(item) {
|
|
93
|
+
return this.nav.compactFallback(item);
|
|
94
|
+
}
|
|
95
|
+
contentGridClasses(branch) {
|
|
96
|
+
const columns = Math.min(Math.max(branch.columns ?? 4, 1), 4);
|
|
97
|
+
return cn("m-0 grid list-none grid-cols-1 gap-1 p-0", columns >= 2 && "sm:grid-cols-2", columns >= 3 && "md:grid-cols-3", columns >= 4 && "lg:grid-cols-4");
|
|
98
|
+
}
|
|
99
|
+
entryClasses(item, active) {
|
|
100
|
+
return cn("group/nav nav-text flex w-full items-center gap-3 px-(--nav-item-padding-x) py-2 text-left transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", this.isBorderRail() ? cn("rounded-none", active ? "text-primary" : "text-foreground hover:text-primary") : cn("rounded-lg", active ? "bg-accent text-accent-foreground" : "text-foreground hover:bg-accent hover:text-accent-foreground"), item.disabled && "pointer-events-none opacity-50", item.classes?.wrapper, this.itemClass());
|
|
101
|
+
}
|
|
102
|
+
entryIconClasses(active) {
|
|
103
|
+
if (this.isBorderRail()) return cn("relative flex size-(--nav-entry-box-size) shrink-0 items-center justify-center self-center text-foreground transition-colors group-hover/nav:text-primary", active && "text-primary");
|
|
104
|
+
return cn("relative flex size-(--nav-entry-box-size) shrink-0 items-center justify-center self-center rounded-lg border bg-background text-foreground shadow-sm transition-colors", active ? "border-primary text-primary" : "border-[hsl(var(--border)/var(--section-border-opacity))]");
|
|
105
|
+
}
|
|
106
|
+
entryIconGlyphClasses(item) {
|
|
107
|
+
return cn("text-(length:--nav-icon-size) text-current", item.classes?.icon);
|
|
108
|
+
}
|
|
109
|
+
entryTitleClasses(item) {
|
|
110
|
+
return cn("block truncate", this.isBorderRail() ? "text-current" : "text-foreground", item.classes?.title);
|
|
111
|
+
}
|
|
112
|
+
entrySubtitleClasses(item) {
|
|
113
|
+
return cn("nav-subtitle mt-0.5 block truncate text-muted-foreground", item.classes?.subtitle);
|
|
114
|
+
}
|
|
115
|
+
entryChevronClasses(item) {
|
|
116
|
+
return cn("shrink-0 self-center text-(length:--nav-icon-size-sub) text-muted-foreground transition-transform duration-normal", this.isEntryOpen(item) && "rotate-90");
|
|
117
|
+
}
|
|
118
|
+
nestedListClasses() {
|
|
119
|
+
return cn("relative mt-1 flex list-none flex-col gap-0.5 p-0 pl-[calc((var(--nav-entry-box-size)-var(--nav-icon-size))/2)] before:pointer-events-none before:absolute before:inset-y-0 before:left-[calc(var(--nav-item-padding-x)+var(--nav-entry-box-size)/2)] before:w-0 before:border-l before:content-['']", this.isBorderRail() ? "before:border-dashed before:border-border/40" : "before:border-[hsl(var(--border)/var(--section-border-opacity))]");
|
|
120
|
+
}
|
|
121
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
122
|
+
minVersion: "12.0.0",
|
|
123
|
+
version: "22.2.3",
|
|
124
|
+
ngImport: i0,
|
|
125
|
+
type: NavigationEntryGridComponent,
|
|
126
|
+
deps: [],
|
|
127
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
128
|
+
});
|
|
129
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
130
|
+
minVersion: "17.0.0",
|
|
131
|
+
version: "22.2.3",
|
|
132
|
+
type: NavigationEntryGridComponent,
|
|
133
|
+
isStandalone: true,
|
|
134
|
+
selector: "NavigationEntryGrid",
|
|
135
|
+
inputs: {
|
|
136
|
+
badgeContext: {
|
|
137
|
+
classPropertyName: "badgeContext",
|
|
138
|
+
publicName: "badgeContext",
|
|
139
|
+
isSignal: true,
|
|
140
|
+
isRequired: false,
|
|
141
|
+
transformFunction: null
|
|
142
|
+
},
|
|
143
|
+
navId: {
|
|
144
|
+
classPropertyName: "navId",
|
|
145
|
+
publicName: "navId",
|
|
146
|
+
isSignal: true,
|
|
147
|
+
isRequired: false,
|
|
148
|
+
transformFunction: null
|
|
149
|
+
},
|
|
150
|
+
branch: {
|
|
151
|
+
classPropertyName: "branch",
|
|
152
|
+
publicName: "branch",
|
|
153
|
+
isSignal: true,
|
|
154
|
+
isRequired: true,
|
|
155
|
+
transformFunction: null
|
|
156
|
+
},
|
|
157
|
+
typeStyle: {
|
|
158
|
+
classPropertyName: "typeStyle",
|
|
159
|
+
publicName: "typeStyle",
|
|
160
|
+
isSignal: true,
|
|
161
|
+
isRequired: false,
|
|
162
|
+
transformFunction: null
|
|
163
|
+
},
|
|
164
|
+
itemClass: {
|
|
165
|
+
classPropertyName: "itemClass",
|
|
166
|
+
publicName: "itemClass",
|
|
167
|
+
isSignal: true,
|
|
168
|
+
isRequired: false,
|
|
169
|
+
transformFunction: null
|
|
170
|
+
},
|
|
171
|
+
activeIds: {
|
|
172
|
+
classPropertyName: "activeIds",
|
|
173
|
+
publicName: "activeIds",
|
|
174
|
+
isSignal: true,
|
|
175
|
+
isRequired: false,
|
|
176
|
+
transformFunction: null
|
|
177
|
+
},
|
|
178
|
+
activeUrl: {
|
|
179
|
+
classPropertyName: "activeUrl",
|
|
180
|
+
publicName: "activeUrl",
|
|
181
|
+
isSignal: true,
|
|
182
|
+
isRequired: false,
|
|
183
|
+
transformFunction: null
|
|
184
|
+
},
|
|
185
|
+
iconTemplate: {
|
|
186
|
+
classPropertyName: "iconTemplate",
|
|
187
|
+
publicName: "iconTemplate",
|
|
188
|
+
isSignal: true,
|
|
189
|
+
isRequired: false,
|
|
190
|
+
transformFunction: null
|
|
191
|
+
},
|
|
192
|
+
collapseTree: {
|
|
193
|
+
classPropertyName: "collapseTree",
|
|
194
|
+
publicName: "collapseTree",
|
|
195
|
+
isSignal: true,
|
|
196
|
+
isRequired: false,
|
|
197
|
+
transformFunction: null
|
|
198
|
+
},
|
|
199
|
+
openedIds: {
|
|
200
|
+
classPropertyName: "openedIds",
|
|
201
|
+
publicName: "openedIds",
|
|
202
|
+
isSignal: true,
|
|
203
|
+
isRequired: false,
|
|
204
|
+
transformFunction: null
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
outputs: {
|
|
208
|
+
openedIdsChange: "openedIdsChange",
|
|
209
|
+
itemSelected: "itemSelected"
|
|
210
|
+
},
|
|
211
|
+
host: { classAttribute: "contents" },
|
|
212
|
+
providers: [provideIcons(LucideChevronRight)],
|
|
213
|
+
ngImport: i0,
|
|
214
|
+
template: `
|
|
215
|
+
@let branchItem = branch();
|
|
216
|
+
|
|
217
|
+
<!--
|
|
218
|
+
No id here: the surface that owns the branch id is the panel rendering
|
|
219
|
+
this grid (the navbar mega panel), and repeating it put two elements with
|
|
220
|
+
the same id on every navbar page.
|
|
221
|
+
-->
|
|
222
|
+
<div
|
|
223
|
+
role="group"
|
|
224
|
+
[attr.aria-label]="branchItem.title || null"
|
|
225
|
+
[attr.data-navigation-flyout-content]="branchItem.key"
|
|
226
|
+
class="p-2 md:p-3"
|
|
227
|
+
>
|
|
228
|
+
<ul role="none" [class]="contentGridClasses(branchItem)">
|
|
229
|
+
@for (child of branchItem.children; track child.key) {
|
|
230
|
+
@switch (child.type) {
|
|
231
|
+
@case ('divider') {
|
|
232
|
+
<li role="separator" class="col-span-full my-1 h-px bg-border"></li>
|
|
233
|
+
}
|
|
234
|
+
@case ('spacer') {}
|
|
235
|
+
@default {
|
|
236
|
+
@if (child.children.length > 0) {
|
|
237
|
+
<li role="none" class="min-w-0" [attr.data-navigation-item-key]="child.key">
|
|
238
|
+
<button
|
|
239
|
+
type="button"
|
|
240
|
+
role="menuitem"
|
|
241
|
+
data-navigation-flyout-entry="true"
|
|
242
|
+
[class]="entryClasses(child, isItemActive(child))"
|
|
243
|
+
[attr.aria-expanded]="isEntryOpen(child)"
|
|
244
|
+
[attr.aria-controls]="isEntryOpen(child) ? panelIdFor(child) : null"
|
|
245
|
+
[disabled]="child.disabled || null"
|
|
246
|
+
(click)="toggleEntry(child)"
|
|
247
|
+
>
|
|
248
|
+
<ng-container
|
|
249
|
+
[ngTemplateOutlet]="entryContent"
|
|
250
|
+
[ngTemplateOutletContext]="{ $implicit: child, active: isItemActive(child) }"
|
|
251
|
+
/>
|
|
252
|
+
<Icon
|
|
253
|
+
name="chevron-right"
|
|
254
|
+
size="inherit"
|
|
255
|
+
[class]="entryChevronClasses(child)"
|
|
256
|
+
/>
|
|
257
|
+
</button>
|
|
258
|
+
|
|
259
|
+
@if (isEntryOpen(child)) {
|
|
260
|
+
<ul [id]="panelIdFor(child)" role="none" [class]="nestedListClasses()">
|
|
261
|
+
@for (nested of child.children; track nested.key) {
|
|
262
|
+
<li
|
|
263
|
+
NavigationItem
|
|
264
|
+
[navId]="navId()"
|
|
265
|
+
[item]="nested"
|
|
266
|
+
[level]="2"
|
|
267
|
+
[orientation]="'horizontal'"
|
|
268
|
+
[compact]="false"
|
|
269
|
+
[itemClass]="navItemClass()"
|
|
270
|
+
[activeIds]="activeIds()"
|
|
271
|
+
[activeUrl]="activeUrl()"
|
|
272
|
+
[badgeContext]="badgeContext()"
|
|
273
|
+
[iconTemplate]="iconTemplate()"
|
|
274
|
+
[collapseTree]="collapseTree()"
|
|
275
|
+
[openedIds]="openedIds()"
|
|
276
|
+
(openedIdsChange)="openedIdsChange.emit($event)"
|
|
277
|
+
(itemSelected)="itemSelected.emit($event)"
|
|
278
|
+
></li>
|
|
279
|
+
}
|
|
280
|
+
</ul>
|
|
281
|
+
}
|
|
282
|
+
</li>
|
|
283
|
+
} @else {
|
|
284
|
+
<li role="none" class="min-w-0" [attr.data-navigation-item-key]="child.key">
|
|
285
|
+
@if (isRouterItem(child)) {
|
|
286
|
+
@let entryActive = isRouterEntryActive(child);
|
|
287
|
+
<a
|
|
288
|
+
role="menuitem"
|
|
289
|
+
data-navigation-flyout-entry="true"
|
|
290
|
+
[class]="entryClasses(child, entryActive)"
|
|
291
|
+
[routerLink]="child.disabled ? null : (child.link ?? null)"
|
|
292
|
+
[queryParams]="child.queryParams ?? null"
|
|
293
|
+
[queryParamsHandling]="child.queryParamsHandling ?? null"
|
|
294
|
+
[fragment]="child.fragment ?? undefined"
|
|
295
|
+
[preserveFragment]="child.preserveFragment ?? false"
|
|
296
|
+
[target]="child.target ?? undefined"
|
|
297
|
+
[attr.rel]="relFor(child)"
|
|
298
|
+
[attr.aria-current]="entryActive ? 'page' : null"
|
|
299
|
+
[attr.aria-disabled]="child.disabled || null"
|
|
300
|
+
(click)="selectEntry(child, $event)"
|
|
301
|
+
>
|
|
302
|
+
<ng-container
|
|
303
|
+
[ngTemplateOutlet]="entryContent"
|
|
304
|
+
[ngTemplateOutletContext]="{ $implicit: child, active: entryActive }"
|
|
305
|
+
/>
|
|
306
|
+
</a>
|
|
307
|
+
} @else if (hrefFor(child)) {
|
|
308
|
+
<a
|
|
309
|
+
role="menuitem"
|
|
310
|
+
data-navigation-flyout-entry="true"
|
|
311
|
+
[class]="entryClasses(child, isItemActive(child))"
|
|
312
|
+
[attr.href]="hrefFor(child)"
|
|
313
|
+
[attr.target]="child.target ?? (child.externalLink ? '_blank' : null)"
|
|
314
|
+
[attr.rel]="relFor(child)"
|
|
315
|
+
[attr.aria-current]="isItemActive(child) ? 'page' : null"
|
|
316
|
+
[attr.aria-disabled]="child.disabled || null"
|
|
317
|
+
(click)="selectEntry(child, $event)"
|
|
318
|
+
>
|
|
319
|
+
<ng-container
|
|
320
|
+
[ngTemplateOutlet]="entryContent"
|
|
321
|
+
[ngTemplateOutletContext]="{
|
|
322
|
+
$implicit: child,
|
|
323
|
+
active: isItemActive(child),
|
|
324
|
+
}"
|
|
325
|
+
/>
|
|
326
|
+
</a>
|
|
327
|
+
} @else {
|
|
328
|
+
<button
|
|
329
|
+
type="button"
|
|
330
|
+
role="menuitem"
|
|
331
|
+
data-navigation-flyout-entry="true"
|
|
332
|
+
[class]="entryClasses(child, isItemActive(child))"
|
|
333
|
+
[disabled]="child.disabled || null"
|
|
334
|
+
[attr.aria-current]="isItemActive(child) ? 'page' : null"
|
|
335
|
+
(click)="selectEntry(child, $event)"
|
|
336
|
+
>
|
|
337
|
+
<ng-container
|
|
338
|
+
[ngTemplateOutlet]="entryContent"
|
|
339
|
+
[ngTemplateOutletContext]="{
|
|
340
|
+
$implicit: child,
|
|
341
|
+
active: isItemActive(child),
|
|
342
|
+
}"
|
|
343
|
+
/>
|
|
344
|
+
</button>
|
|
345
|
+
}
|
|
346
|
+
</li>
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
</ul>
|
|
352
|
+
</div>
|
|
353
|
+
|
|
354
|
+
<ng-template #entryContent let-child let-active="active">
|
|
355
|
+
<span [class]="entryIconClasses(active)">
|
|
356
|
+
@if (isBorderRail()) {
|
|
357
|
+
<span
|
|
358
|
+
aria-hidden="true"
|
|
359
|
+
data-navigation-icon-rail="top"
|
|
360
|
+
class="pointer-events-none absolute -inset-x-1.5 top-0 h-px bg-border/50"
|
|
361
|
+
></span>
|
|
362
|
+
<span
|
|
363
|
+
aria-hidden="true"
|
|
364
|
+
data-navigation-icon-rail="bottom"
|
|
365
|
+
class="pointer-events-none absolute -inset-x-1.5 bottom-0 h-px bg-border/50"
|
|
366
|
+
></span>
|
|
367
|
+
<span
|
|
368
|
+
aria-hidden="true"
|
|
369
|
+
data-navigation-icon-rail="left"
|
|
370
|
+
class="pointer-events-none absolute -inset-y-1.5 left-0 w-px bg-border/50"
|
|
371
|
+
></span>
|
|
372
|
+
<span
|
|
373
|
+
aria-hidden="true"
|
|
374
|
+
data-navigation-icon-rail="right"
|
|
375
|
+
class="pointer-events-none absolute -inset-y-1.5 right-0 w-px bg-border/50"
|
|
376
|
+
></span>
|
|
377
|
+
<span
|
|
378
|
+
aria-hidden="true"
|
|
379
|
+
data-navigation-icon-rail="center-horizontal"
|
|
380
|
+
class="pointer-events-none absolute -inset-x-1.5 top-1/2 border-t border-dashed border-border/40"
|
|
381
|
+
></span>
|
|
382
|
+
<span
|
|
383
|
+
aria-hidden="true"
|
|
384
|
+
data-navigation-icon-rail="center-vertical"
|
|
385
|
+
class="pointer-events-none absolute -inset-y-1.5 left-1/2 border-l border-dashed border-border/40"
|
|
386
|
+
></span>
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
@if (child.icon) {
|
|
390
|
+
@if (iconTemplate(); as customIcon) {
|
|
391
|
+
<ng-container
|
|
392
|
+
[ngTemplateOutlet]="customIcon.template"
|
|
393
|
+
[ngTemplateOutletContext]="iconContext(child, active)"
|
|
394
|
+
/>
|
|
395
|
+
} @else {
|
|
396
|
+
<Icon [name]="child.icon" size="inherit" [class]="entryIconGlyphClasses(child)" />
|
|
397
|
+
}
|
|
398
|
+
} @else {
|
|
399
|
+
<span
|
|
400
|
+
aria-hidden="true"
|
|
401
|
+
class="text-(length:--nav-icon-size-sub) font-semibold uppercase"
|
|
402
|
+
>{{ fallbackInitials(child) }}</span
|
|
403
|
+
>
|
|
404
|
+
}
|
|
405
|
+
</span>
|
|
406
|
+
|
|
407
|
+
<span class="min-w-0 flex-1">
|
|
408
|
+
<span [class]="entryTitleClasses(child)">{{ child.title }}</span>
|
|
409
|
+
@if (child.subtitle) {
|
|
410
|
+
<span [class]="entrySubtitleClasses(child)">{{ child.subtitle }}</span>
|
|
411
|
+
}
|
|
412
|
+
</span>
|
|
413
|
+
|
|
414
|
+
<NavigationItemBadge
|
|
415
|
+
[children]="child.children"
|
|
416
|
+
[itemBadge]="child.badge"
|
|
417
|
+
[badgeContext]="badgeContext()"
|
|
418
|
+
/>
|
|
419
|
+
</ng-template>
|
|
420
|
+
`,
|
|
421
|
+
isInline: true,
|
|
422
|
+
dependencies: [
|
|
423
|
+
{
|
|
424
|
+
kind: "directive",
|
|
425
|
+
type: NgTemplateOutlet,
|
|
426
|
+
selector: "[ngTemplateOutlet]",
|
|
427
|
+
inputs: [
|
|
428
|
+
"ngTemplateOutletContext",
|
|
429
|
+
"ngTemplateOutlet",
|
|
430
|
+
"ngTemplateOutletInjector"
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
kind: "directive",
|
|
435
|
+
type: RouterLink,
|
|
436
|
+
selector: "[routerLink]",
|
|
437
|
+
inputs: [
|
|
438
|
+
"target",
|
|
439
|
+
"queryParams",
|
|
440
|
+
"fragment",
|
|
441
|
+
"queryParamsHandling",
|
|
442
|
+
"state",
|
|
443
|
+
"info",
|
|
444
|
+
"relativeTo",
|
|
445
|
+
"preserveFragment",
|
|
446
|
+
"skipLocationChange",
|
|
447
|
+
"replaceUrl",
|
|
448
|
+
"browserUrl",
|
|
449
|
+
"routerLink"
|
|
450
|
+
]
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
kind: "component",
|
|
454
|
+
type: IconComponent,
|
|
455
|
+
selector: "Icon",
|
|
456
|
+
inputs: [
|
|
457
|
+
"name",
|
|
458
|
+
"class",
|
|
459
|
+
"size",
|
|
460
|
+
"strokeWidth",
|
|
461
|
+
"label"
|
|
462
|
+
]
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
kind: "component",
|
|
466
|
+
type: NavigationItemComponent,
|
|
467
|
+
selector: "li[NavigationItem]",
|
|
468
|
+
inputs: [
|
|
469
|
+
"badgeContext",
|
|
470
|
+
"navId",
|
|
471
|
+
"item",
|
|
472
|
+
"level",
|
|
473
|
+
"orientation",
|
|
474
|
+
"compact",
|
|
475
|
+
"itemClass",
|
|
476
|
+
"activeIds",
|
|
477
|
+
"activeUrl",
|
|
478
|
+
"iconTemplate",
|
|
479
|
+
"tooltip-position",
|
|
480
|
+
"collapseTree",
|
|
481
|
+
"straightRail",
|
|
482
|
+
"stairsRail",
|
|
483
|
+
"straightRailActive",
|
|
484
|
+
"firstInBranch",
|
|
485
|
+
"lastInBranch",
|
|
486
|
+
"openedIds"
|
|
487
|
+
],
|
|
488
|
+
outputs: ["openedIdsChange", "itemSelected"]
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
kind: "component",
|
|
492
|
+
type: NavigationItemBadgeComponent,
|
|
493
|
+
selector: "NavigationItemBadge",
|
|
494
|
+
inputs: [
|
|
495
|
+
"staticClass",
|
|
496
|
+
"compact",
|
|
497
|
+
"itemBadge",
|
|
498
|
+
"badgeContext",
|
|
499
|
+
"children"
|
|
500
|
+
]
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
});
|
|
504
|
+
};
|
|
505
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
506
|
+
minVersion: "12.0.0",
|
|
507
|
+
version: "22.2.3",
|
|
508
|
+
ngImport: i0,
|
|
509
|
+
type: NavigationEntryGridComponent,
|
|
510
|
+
decorators: [{
|
|
511
|
+
type: Component,
|
|
512
|
+
args: [{
|
|
513
|
+
selector: "NavigationEntryGrid",
|
|
514
|
+
imports: [
|
|
515
|
+
NgTemplateOutlet,
|
|
516
|
+
RouterLink,
|
|
517
|
+
IconComponent,
|
|
518
|
+
NavigationItemComponent,
|
|
519
|
+
NavigationItemBadgeComponent
|
|
520
|
+
],
|
|
521
|
+
providers: [provideIcons(LucideChevronRight)],
|
|
522
|
+
host: { class: "contents" },
|
|
523
|
+
template: `
|
|
524
|
+
@let branchItem = branch();
|
|
525
|
+
|
|
526
|
+
<!--
|
|
527
|
+
No id here: the surface that owns the branch id is the panel rendering
|
|
528
|
+
this grid (the navbar mega panel), and repeating it put two elements with
|
|
529
|
+
the same id on every navbar page.
|
|
530
|
+
-->
|
|
531
|
+
<div
|
|
532
|
+
role="group"
|
|
533
|
+
[attr.aria-label]="branchItem.title || null"
|
|
534
|
+
[attr.data-navigation-flyout-content]="branchItem.key"
|
|
535
|
+
class="p-2 md:p-3"
|
|
536
|
+
>
|
|
537
|
+
<ul role="none" [class]="contentGridClasses(branchItem)">
|
|
538
|
+
@for (child of branchItem.children; track child.key) {
|
|
539
|
+
@switch (child.type) {
|
|
540
|
+
@case ('divider') {
|
|
541
|
+
<li role="separator" class="col-span-full my-1 h-px bg-border"></li>
|
|
542
|
+
}
|
|
543
|
+
@case ('spacer') {}
|
|
544
|
+
@default {
|
|
545
|
+
@if (child.children.length > 0) {
|
|
546
|
+
<li role="none" class="min-w-0" [attr.data-navigation-item-key]="child.key">
|
|
547
|
+
<button
|
|
548
|
+
type="button"
|
|
549
|
+
role="menuitem"
|
|
550
|
+
data-navigation-flyout-entry="true"
|
|
551
|
+
[class]="entryClasses(child, isItemActive(child))"
|
|
552
|
+
[attr.aria-expanded]="isEntryOpen(child)"
|
|
553
|
+
[attr.aria-controls]="isEntryOpen(child) ? panelIdFor(child) : null"
|
|
554
|
+
[disabled]="child.disabled || null"
|
|
555
|
+
(click)="toggleEntry(child)"
|
|
556
|
+
>
|
|
557
|
+
<ng-container
|
|
558
|
+
[ngTemplateOutlet]="entryContent"
|
|
559
|
+
[ngTemplateOutletContext]="{ $implicit: child, active: isItemActive(child) }"
|
|
560
|
+
/>
|
|
561
|
+
<Icon
|
|
562
|
+
name="chevron-right"
|
|
563
|
+
size="inherit"
|
|
564
|
+
[class]="entryChevronClasses(child)"
|
|
565
|
+
/>
|
|
566
|
+
</button>
|
|
567
|
+
|
|
568
|
+
@if (isEntryOpen(child)) {
|
|
569
|
+
<ul [id]="panelIdFor(child)" role="none" [class]="nestedListClasses()">
|
|
570
|
+
@for (nested of child.children; track nested.key) {
|
|
571
|
+
<li
|
|
572
|
+
NavigationItem
|
|
573
|
+
[navId]="navId()"
|
|
574
|
+
[item]="nested"
|
|
575
|
+
[level]="2"
|
|
576
|
+
[orientation]="'horizontal'"
|
|
577
|
+
[compact]="false"
|
|
578
|
+
[itemClass]="navItemClass()"
|
|
579
|
+
[activeIds]="activeIds()"
|
|
580
|
+
[activeUrl]="activeUrl()"
|
|
581
|
+
[badgeContext]="badgeContext()"
|
|
582
|
+
[iconTemplate]="iconTemplate()"
|
|
583
|
+
[collapseTree]="collapseTree()"
|
|
584
|
+
[openedIds]="openedIds()"
|
|
585
|
+
(openedIdsChange)="openedIdsChange.emit($event)"
|
|
586
|
+
(itemSelected)="itemSelected.emit($event)"
|
|
587
|
+
></li>
|
|
588
|
+
}
|
|
589
|
+
</ul>
|
|
590
|
+
}
|
|
591
|
+
</li>
|
|
592
|
+
} @else {
|
|
593
|
+
<li role="none" class="min-w-0" [attr.data-navigation-item-key]="child.key">
|
|
594
|
+
@if (isRouterItem(child)) {
|
|
595
|
+
@let entryActive = isRouterEntryActive(child);
|
|
596
|
+
<a
|
|
597
|
+
role="menuitem"
|
|
598
|
+
data-navigation-flyout-entry="true"
|
|
599
|
+
[class]="entryClasses(child, entryActive)"
|
|
600
|
+
[routerLink]="child.disabled ? null : (child.link ?? null)"
|
|
601
|
+
[queryParams]="child.queryParams ?? null"
|
|
602
|
+
[queryParamsHandling]="child.queryParamsHandling ?? null"
|
|
603
|
+
[fragment]="child.fragment ?? undefined"
|
|
604
|
+
[preserveFragment]="child.preserveFragment ?? false"
|
|
605
|
+
[target]="child.target ?? undefined"
|
|
606
|
+
[attr.rel]="relFor(child)"
|
|
607
|
+
[attr.aria-current]="entryActive ? 'page' : null"
|
|
608
|
+
[attr.aria-disabled]="child.disabled || null"
|
|
609
|
+
(click)="selectEntry(child, $event)"
|
|
610
|
+
>
|
|
611
|
+
<ng-container
|
|
612
|
+
[ngTemplateOutlet]="entryContent"
|
|
613
|
+
[ngTemplateOutletContext]="{ $implicit: child, active: entryActive }"
|
|
614
|
+
/>
|
|
615
|
+
</a>
|
|
616
|
+
} @else if (hrefFor(child)) {
|
|
617
|
+
<a
|
|
618
|
+
role="menuitem"
|
|
619
|
+
data-navigation-flyout-entry="true"
|
|
620
|
+
[class]="entryClasses(child, isItemActive(child))"
|
|
621
|
+
[attr.href]="hrefFor(child)"
|
|
622
|
+
[attr.target]="child.target ?? (child.externalLink ? '_blank' : null)"
|
|
623
|
+
[attr.rel]="relFor(child)"
|
|
624
|
+
[attr.aria-current]="isItemActive(child) ? 'page' : null"
|
|
625
|
+
[attr.aria-disabled]="child.disabled || null"
|
|
626
|
+
(click)="selectEntry(child, $event)"
|
|
627
|
+
>
|
|
628
|
+
<ng-container
|
|
629
|
+
[ngTemplateOutlet]="entryContent"
|
|
630
|
+
[ngTemplateOutletContext]="{
|
|
631
|
+
$implicit: child,
|
|
632
|
+
active: isItemActive(child),
|
|
633
|
+
}"
|
|
634
|
+
/>
|
|
635
|
+
</a>
|
|
636
|
+
} @else {
|
|
637
|
+
<button
|
|
638
|
+
type="button"
|
|
639
|
+
role="menuitem"
|
|
640
|
+
data-navigation-flyout-entry="true"
|
|
641
|
+
[class]="entryClasses(child, isItemActive(child))"
|
|
642
|
+
[disabled]="child.disabled || null"
|
|
643
|
+
[attr.aria-current]="isItemActive(child) ? 'page' : null"
|
|
644
|
+
(click)="selectEntry(child, $event)"
|
|
645
|
+
>
|
|
646
|
+
<ng-container
|
|
647
|
+
[ngTemplateOutlet]="entryContent"
|
|
648
|
+
[ngTemplateOutletContext]="{
|
|
649
|
+
$implicit: child,
|
|
650
|
+
active: isItemActive(child),
|
|
651
|
+
}"
|
|
652
|
+
/>
|
|
653
|
+
</button>
|
|
654
|
+
}
|
|
655
|
+
</li>
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
</ul>
|
|
661
|
+
</div>
|
|
662
|
+
|
|
663
|
+
<ng-template #entryContent let-child let-active="active">
|
|
664
|
+
<span [class]="entryIconClasses(active)">
|
|
665
|
+
@if (isBorderRail()) {
|
|
666
|
+
<span
|
|
667
|
+
aria-hidden="true"
|
|
668
|
+
data-navigation-icon-rail="top"
|
|
669
|
+
class="pointer-events-none absolute -inset-x-1.5 top-0 h-px bg-border/50"
|
|
670
|
+
></span>
|
|
671
|
+
<span
|
|
672
|
+
aria-hidden="true"
|
|
673
|
+
data-navigation-icon-rail="bottom"
|
|
674
|
+
class="pointer-events-none absolute -inset-x-1.5 bottom-0 h-px bg-border/50"
|
|
675
|
+
></span>
|
|
676
|
+
<span
|
|
677
|
+
aria-hidden="true"
|
|
678
|
+
data-navigation-icon-rail="left"
|
|
679
|
+
class="pointer-events-none absolute -inset-y-1.5 left-0 w-px bg-border/50"
|
|
680
|
+
></span>
|
|
681
|
+
<span
|
|
682
|
+
aria-hidden="true"
|
|
683
|
+
data-navigation-icon-rail="right"
|
|
684
|
+
class="pointer-events-none absolute -inset-y-1.5 right-0 w-px bg-border/50"
|
|
685
|
+
></span>
|
|
686
|
+
<span
|
|
687
|
+
aria-hidden="true"
|
|
688
|
+
data-navigation-icon-rail="center-horizontal"
|
|
689
|
+
class="pointer-events-none absolute -inset-x-1.5 top-1/2 border-t border-dashed border-border/40"
|
|
690
|
+
></span>
|
|
691
|
+
<span
|
|
692
|
+
aria-hidden="true"
|
|
693
|
+
data-navigation-icon-rail="center-vertical"
|
|
694
|
+
class="pointer-events-none absolute -inset-y-1.5 left-1/2 border-l border-dashed border-border/40"
|
|
695
|
+
></span>
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
@if (child.icon) {
|
|
699
|
+
@if (iconTemplate(); as customIcon) {
|
|
700
|
+
<ng-container
|
|
701
|
+
[ngTemplateOutlet]="customIcon.template"
|
|
702
|
+
[ngTemplateOutletContext]="iconContext(child, active)"
|
|
703
|
+
/>
|
|
704
|
+
} @else {
|
|
705
|
+
<Icon [name]="child.icon" size="inherit" [class]="entryIconGlyphClasses(child)" />
|
|
706
|
+
}
|
|
707
|
+
} @else {
|
|
708
|
+
<span
|
|
709
|
+
aria-hidden="true"
|
|
710
|
+
class="text-(length:--nav-icon-size-sub) font-semibold uppercase"
|
|
711
|
+
>{{ fallbackInitials(child) }}</span
|
|
712
|
+
>
|
|
713
|
+
}
|
|
714
|
+
</span>
|
|
715
|
+
|
|
716
|
+
<span class="min-w-0 flex-1">
|
|
717
|
+
<span [class]="entryTitleClasses(child)">{{ child.title }}</span>
|
|
718
|
+
@if (child.subtitle) {
|
|
719
|
+
<span [class]="entrySubtitleClasses(child)">{{ child.subtitle }}</span>
|
|
720
|
+
}
|
|
721
|
+
</span>
|
|
722
|
+
|
|
723
|
+
<NavigationItemBadge
|
|
724
|
+
[children]="child.children"
|
|
725
|
+
[itemBadge]="child.badge"
|
|
726
|
+
[badgeContext]="badgeContext()"
|
|
727
|
+
/>
|
|
728
|
+
</ng-template>
|
|
729
|
+
`
|
|
730
|
+
}]
|
|
731
|
+
}],
|
|
732
|
+
propDecorators: {
|
|
733
|
+
badgeContext: [{
|
|
734
|
+
type: i0.Input,
|
|
735
|
+
args: [{
|
|
736
|
+
isSignal: true,
|
|
737
|
+
alias: "badgeContext",
|
|
738
|
+
required: false
|
|
739
|
+
}]
|
|
740
|
+
}],
|
|
741
|
+
navId: [{
|
|
742
|
+
type: i0.Input,
|
|
743
|
+
args: [{
|
|
744
|
+
isSignal: true,
|
|
745
|
+
alias: "navId",
|
|
746
|
+
required: false
|
|
747
|
+
}]
|
|
748
|
+
}],
|
|
749
|
+
branch: [{
|
|
750
|
+
type: i0.Input,
|
|
751
|
+
args: [{
|
|
752
|
+
isSignal: true,
|
|
753
|
+
alias: "branch",
|
|
754
|
+
required: true
|
|
755
|
+
}]
|
|
756
|
+
}],
|
|
757
|
+
typeStyle: [{
|
|
758
|
+
type: i0.Input,
|
|
759
|
+
args: [{
|
|
760
|
+
isSignal: true,
|
|
761
|
+
alias: "typeStyle",
|
|
762
|
+
required: false
|
|
763
|
+
}]
|
|
764
|
+
}],
|
|
765
|
+
itemClass: [{
|
|
766
|
+
type: i0.Input,
|
|
767
|
+
args: [{
|
|
768
|
+
isSignal: true,
|
|
769
|
+
alias: "itemClass",
|
|
770
|
+
required: false
|
|
771
|
+
}]
|
|
772
|
+
}],
|
|
773
|
+
activeIds: [{
|
|
774
|
+
type: i0.Input,
|
|
775
|
+
args: [{
|
|
776
|
+
isSignal: true,
|
|
777
|
+
alias: "activeIds",
|
|
778
|
+
required: false
|
|
779
|
+
}]
|
|
780
|
+
}],
|
|
781
|
+
activeUrl: [{
|
|
782
|
+
type: i0.Input,
|
|
783
|
+
args: [{
|
|
784
|
+
isSignal: true,
|
|
785
|
+
alias: "activeUrl",
|
|
786
|
+
required: false
|
|
787
|
+
}]
|
|
788
|
+
}],
|
|
789
|
+
iconTemplate: [{
|
|
790
|
+
type: i0.Input,
|
|
791
|
+
args: [{
|
|
792
|
+
isSignal: true,
|
|
793
|
+
alias: "iconTemplate",
|
|
794
|
+
required: false
|
|
795
|
+
}]
|
|
796
|
+
}],
|
|
797
|
+
collapseTree: [{
|
|
798
|
+
type: i0.Input,
|
|
799
|
+
args: [{
|
|
800
|
+
isSignal: true,
|
|
801
|
+
alias: "collapseTree",
|
|
802
|
+
required: false
|
|
803
|
+
}]
|
|
804
|
+
}],
|
|
805
|
+
openedIds: [{
|
|
806
|
+
type: i0.Input,
|
|
807
|
+
args: [{
|
|
808
|
+
isSignal: true,
|
|
809
|
+
alias: "openedIds",
|
|
810
|
+
required: false
|
|
811
|
+
}]
|
|
812
|
+
}],
|
|
813
|
+
openedIdsChange: [{
|
|
814
|
+
type: i0.Output,
|
|
815
|
+
args: ["openedIdsChange"]
|
|
816
|
+
}],
|
|
817
|
+
itemSelected: [{
|
|
818
|
+
type: i0.Output,
|
|
819
|
+
args: ["itemSelected"]
|
|
820
|
+
}]
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
export { NavigationEntryGridComponent as t };
|