@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,2568 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, InjectionToken, Service, booleanAttribute, computed, effect, inject, input, model, output, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { NavigationAsideFooterDirective, NavigationContainerComponent, NavigationDockbarComponent, NavigationFlyoutComponent, NavigationFooterActionComponent, NavigationFooterComponent, NavigationFooterInitialComponent, NavigationFooterTitleComponent, NavigationHeaderComponent, NavigationHeaderInitialComponent, NavigationHeaderTitleComponent, NavigationMinidockComponent, NavigationNavbarComponent, NavigationSidebarComponent } from "@edsis/angular/navigation";
|
|
4
|
+
import { cn } from "@edsis/angular/component/utils/core";
|
|
5
|
+
import { LucideDoorOpen, LucideGrip, LucideLogOut } from "@lucide/angular";
|
|
6
|
+
import { IconComponent, provideIcons } from "@edsis/angular/component/icon";
|
|
7
|
+
import { ThemeSettingsComponent } from "@edsis/angular/theme/component/settings";
|
|
8
|
+
import { DOCUMENT, NgTemplateOutlet } from "@angular/common";
|
|
9
|
+
import { LayoutComponent, LayoutContentComponent, LayoutEmptyComponent, LayoutFluidComponent, LayoutHorizontalComponent, LayoutNavigationComponent, LayoutVerticalComponent } from "@edsis/angular/theme/layout";
|
|
10
|
+
import { LAYOUT_DEFAULT_APPEARANCE, LAYOUT_DEFAULT_SURFACE, LAYOUT_DEFAULT_TYPE, LAYOUT_DEFAULT_WIDTH } from "@edsis/angular/theme/layout/types";
|
|
11
|
+
import { toMinidockItems } from "@edsis/angular/navigation/types";
|
|
12
|
+
import { NAVIGATION_ADAPTER } from "@edsis/angular/navigation/core";
|
|
13
|
+
const LAYOUT_DESKTOP_NAVIGATION_DATA_ID = "__layout-desktop-navigation";
|
|
14
|
+
var LayoutIdentityService = class LayoutIdentityService {
|
|
15
|
+
brandState = signal(null, ...ngDevMode ? [{ debugName: "brandState" }] : /* istanbul ignore next */ []);
|
|
16
|
+
userState = signal(null, ...ngDevMode ? [{ debugName: "userState" }] : /* istanbul ignore next */ []);
|
|
17
|
+
brand = this.brandState.asReadonly();
|
|
18
|
+
user = this.userState.asReadonly();
|
|
19
|
+
setBrand(brand) {
|
|
20
|
+
this.brandState.set(brand);
|
|
21
|
+
}
|
|
22
|
+
setUser(user) {
|
|
23
|
+
this.userState.set(user);
|
|
24
|
+
}
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
26
|
+
minVersion: "12.0.0",
|
|
27
|
+
version: "22.2.3",
|
|
28
|
+
ngImport: i0,
|
|
29
|
+
type: LayoutIdentityService,
|
|
30
|
+
deps: [],
|
|
31
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
32
|
+
});
|
|
33
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
34
|
+
minVersion: "22.0.0",
|
|
35
|
+
version: "22.2.3",
|
|
36
|
+
ngImport: i0,
|
|
37
|
+
type: LayoutIdentityService
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
41
|
+
minVersion: "12.0.0",
|
|
42
|
+
version: "22.2.3",
|
|
43
|
+
ngImport: i0,
|
|
44
|
+
type: LayoutIdentityService,
|
|
45
|
+
decorators: [{ type: Service }]
|
|
46
|
+
});
|
|
47
|
+
const LAYOUT_USER_OPTIONS = new InjectionToken("LAYOUT_USER_OPTIONS");
|
|
48
|
+
function provideLayoutUserOptions(options) {
|
|
49
|
+
return [{
|
|
50
|
+
provide: LAYOUT_USER_OPTIONS,
|
|
51
|
+
useValue: options
|
|
52
|
+
}];
|
|
53
|
+
}
|
|
54
|
+
var LayoutBrand = class LayoutBrand {
|
|
55
|
+
brand = input.required(...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
|
|
56
|
+
compact = input(false, {
|
|
57
|
+
...ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {},
|
|
58
|
+
transform: booleanAttribute
|
|
59
|
+
});
|
|
60
|
+
wordmarkClasses = computed(() => cn("block truncate font-semibold tracking-tight text-foreground", this.compact() ? "text-xs leading-none" : "nav-text in-data-[collapsed=true]:text-xs in-data-[collapsed=true]:leading-none"), ...ngDevMode ? [{ debugName: "wordmarkClasses" }] : /* istanbul ignore next */ []);
|
|
61
|
+
taglineClasses = computed(() => cn("block truncate text-muted-foreground", this.compact() ? "text-2xs leading-none" : "nav-subtitle in-data-[collapsed=true]:text-2xs in-data-[collapsed=true]:leading-none"), ...ngDevMode ? [{ debugName: "taglineClasses" }] : /* istanbul ignore next */ []);
|
|
62
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
63
|
+
minVersion: "12.0.0",
|
|
64
|
+
version: "22.2.3",
|
|
65
|
+
ngImport: i0,
|
|
66
|
+
type: LayoutBrand,
|
|
67
|
+
deps: [],
|
|
68
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
69
|
+
});
|
|
70
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
71
|
+
minVersion: "17.0.0",
|
|
72
|
+
version: "22.2.3",
|
|
73
|
+
type: LayoutBrand,
|
|
74
|
+
isStandalone: true,
|
|
75
|
+
selector: "LayoutBrand",
|
|
76
|
+
inputs: {
|
|
77
|
+
brand: {
|
|
78
|
+
classPropertyName: "brand",
|
|
79
|
+
publicName: "brand",
|
|
80
|
+
isSignal: true,
|
|
81
|
+
isRequired: true,
|
|
82
|
+
transformFunction: null
|
|
83
|
+
},
|
|
84
|
+
compact: {
|
|
85
|
+
classPropertyName: "compact",
|
|
86
|
+
publicName: "compact",
|
|
87
|
+
isSignal: true,
|
|
88
|
+
isRequired: false,
|
|
89
|
+
transformFunction: null
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
host: { classAttribute: "contents" },
|
|
93
|
+
ngImport: i0,
|
|
94
|
+
template: `
|
|
95
|
+
@if (brand().wordmark; as wordmark) {
|
|
96
|
+
<span
|
|
97
|
+
data-layout-brand-mark
|
|
98
|
+
role="img"
|
|
99
|
+
[attr.aria-label]="brand().name"
|
|
100
|
+
[attr.data-compact]="compact()"
|
|
101
|
+
class="inline-flex min-w-0 max-w-full flex-col justify-center"
|
|
102
|
+
>
|
|
103
|
+
<span data-layout-brand-wordmark [class]="wordmarkClasses()">{{ wordmark }}</span>
|
|
104
|
+
@if (brand().tagline; as tagline) {
|
|
105
|
+
<span data-layout-brand-tagline [class]="taglineClasses()">{{ tagline }}</span>
|
|
106
|
+
}
|
|
107
|
+
</span>
|
|
108
|
+
} @else {
|
|
109
|
+
<NavigationHeaderInitial [name]="brand().name" [icon]="brand().icon" [compact]="compact()" />
|
|
110
|
+
}
|
|
111
|
+
@if (!compact()) {
|
|
112
|
+
<NavigationHeaderTitle [title]="brand().title" [subtitle]="brand().subtitle" />
|
|
113
|
+
}
|
|
114
|
+
`,
|
|
115
|
+
isInline: true,
|
|
116
|
+
dependencies: [{
|
|
117
|
+
kind: "component",
|
|
118
|
+
type: NavigationHeaderInitialComponent,
|
|
119
|
+
selector: "NavigationHeaderInitial",
|
|
120
|
+
inputs: [
|
|
121
|
+
"name",
|
|
122
|
+
"src",
|
|
123
|
+
"initials",
|
|
124
|
+
"icon",
|
|
125
|
+
"compact",
|
|
126
|
+
"class"
|
|
127
|
+
]
|
|
128
|
+
}, {
|
|
129
|
+
kind: "component",
|
|
130
|
+
type: NavigationHeaderTitleComponent,
|
|
131
|
+
selector: "NavigationHeaderTitle",
|
|
132
|
+
inputs: [
|
|
133
|
+
"title",
|
|
134
|
+
"subtitle",
|
|
135
|
+
"class"
|
|
136
|
+
]
|
|
137
|
+
}]
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
141
|
+
minVersion: "12.0.0",
|
|
142
|
+
version: "22.2.3",
|
|
143
|
+
ngImport: i0,
|
|
144
|
+
type: LayoutBrand,
|
|
145
|
+
decorators: [{
|
|
146
|
+
type: Component,
|
|
147
|
+
args: [{
|
|
148
|
+
selector: "LayoutBrand",
|
|
149
|
+
imports: [NavigationHeaderInitialComponent, NavigationHeaderTitleComponent],
|
|
150
|
+
host: { class: "contents" },
|
|
151
|
+
template: `
|
|
152
|
+
@if (brand().wordmark; as wordmark) {
|
|
153
|
+
<span
|
|
154
|
+
data-layout-brand-mark
|
|
155
|
+
role="img"
|
|
156
|
+
[attr.aria-label]="brand().name"
|
|
157
|
+
[attr.data-compact]="compact()"
|
|
158
|
+
class="inline-flex min-w-0 max-w-full flex-col justify-center"
|
|
159
|
+
>
|
|
160
|
+
<span data-layout-brand-wordmark [class]="wordmarkClasses()">{{ wordmark }}</span>
|
|
161
|
+
@if (brand().tagline; as tagline) {
|
|
162
|
+
<span data-layout-brand-tagline [class]="taglineClasses()">{{ tagline }}</span>
|
|
163
|
+
}
|
|
164
|
+
</span>
|
|
165
|
+
} @else {
|
|
166
|
+
<NavigationHeaderInitial [name]="brand().name" [icon]="brand().icon" [compact]="compact()" />
|
|
167
|
+
}
|
|
168
|
+
@if (!compact()) {
|
|
169
|
+
<NavigationHeaderTitle [title]="brand().title" [subtitle]="brand().subtitle" />
|
|
170
|
+
}
|
|
171
|
+
`
|
|
172
|
+
}]
|
|
173
|
+
}],
|
|
174
|
+
propDecorators: {
|
|
175
|
+
brand: [{
|
|
176
|
+
type: i0.Input,
|
|
177
|
+
args: [{
|
|
178
|
+
isSignal: true,
|
|
179
|
+
alias: "brand",
|
|
180
|
+
required: true
|
|
181
|
+
}]
|
|
182
|
+
}],
|
|
183
|
+
compact: [{
|
|
184
|
+
type: i0.Input,
|
|
185
|
+
args: [{
|
|
186
|
+
isSignal: true,
|
|
187
|
+
alias: "compact",
|
|
188
|
+
required: false
|
|
189
|
+
}]
|
|
190
|
+
}]
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
function optionalBooleanAttribute(value) {
|
|
194
|
+
return value === null || value === void 0 ? null : booleanAttribute(value);
|
|
195
|
+
}
|
|
196
|
+
var LayoutUser = class LayoutUser {
|
|
197
|
+
options = inject(LAYOUT_USER_OPTIONS, { optional: true });
|
|
198
|
+
user = input.required(...ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []);
|
|
199
|
+
detailed = input(false, {
|
|
200
|
+
...ngDevMode ? { debugName: "detailed" } : /* istanbul ignore next */ {},
|
|
201
|
+
transform: booleanAttribute
|
|
202
|
+
});
|
|
203
|
+
showInitial = input(true, {
|
|
204
|
+
...ngDevMode ? { debugName: "showInitial" } : /* istanbul ignore next */ {},
|
|
205
|
+
alias: "show-initial",
|
|
206
|
+
transform: booleanAttribute
|
|
207
|
+
});
|
|
208
|
+
showEmail = input(null, {
|
|
209
|
+
...ngDevMode ? { debugName: "showEmail" } : /* istanbul ignore next */ {},
|
|
210
|
+
alias: "show-email",
|
|
211
|
+
transform: optionalBooleanAttribute
|
|
212
|
+
});
|
|
213
|
+
showThemeSettings = input(null, {
|
|
214
|
+
...ngDevMode ? { debugName: "showThemeSettings" } : /* istanbul ignore next */ {},
|
|
215
|
+
alias: "show-theme-settings",
|
|
216
|
+
transform: optionalBooleanAttribute
|
|
217
|
+
});
|
|
218
|
+
logoutLabel = input(null, ...ngDevMode ? [{ debugName: "logoutLabel" }] : /* istanbul ignore next */ []);
|
|
219
|
+
logoutIcon = input(null, ...ngDevMode ? [{ debugName: "logoutIcon" }] : /* istanbul ignore next */ []);
|
|
220
|
+
logout = output();
|
|
221
|
+
showsIdentity = computed(() => this.detailed() || this.options?.detailed === true, ...ngDevMode ? [{ debugName: "showsIdentity" }] : /* istanbul ignore next */ []);
|
|
222
|
+
showsEmail = computed(() => this.showEmail() ?? this.options?.showEmail ?? true, ...ngDevMode ? [{ debugName: "showsEmail" }] : /* istanbul ignore next */ []);
|
|
223
|
+
showsThemeSettings = computed(() => this.showThemeSettings() ?? this.options?.showThemeSettings ?? true, ...ngDevMode ? [{ debugName: "showsThemeSettings" }] : /* istanbul ignore next */ []);
|
|
224
|
+
resolvedLogoutLabel = computed(() => this.logoutLabel() ?? this.options?.logoutLabel ?? "Logout", ...ngDevMode ? [{ debugName: "resolvedLogoutLabel" }] : /* istanbul ignore next */ []);
|
|
225
|
+
resolvedLogoutIcon = computed(() => this.logoutIcon() ?? this.options?.logoutIcon ?? "log-out", ...ngDevMode ? [{ debugName: "resolvedLogoutIcon" }] : /* istanbul ignore next */ []);
|
|
226
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
227
|
+
minVersion: "12.0.0",
|
|
228
|
+
version: "22.2.3",
|
|
229
|
+
ngImport: i0,
|
|
230
|
+
type: LayoutUser,
|
|
231
|
+
deps: [],
|
|
232
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
233
|
+
});
|
|
234
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
235
|
+
minVersion: "17.0.0",
|
|
236
|
+
version: "22.2.3",
|
|
237
|
+
type: LayoutUser,
|
|
238
|
+
isStandalone: true,
|
|
239
|
+
selector: "LayoutUser",
|
|
240
|
+
inputs: {
|
|
241
|
+
user: {
|
|
242
|
+
classPropertyName: "user",
|
|
243
|
+
publicName: "user",
|
|
244
|
+
isSignal: true,
|
|
245
|
+
isRequired: true,
|
|
246
|
+
transformFunction: null
|
|
247
|
+
},
|
|
248
|
+
detailed: {
|
|
249
|
+
classPropertyName: "detailed",
|
|
250
|
+
publicName: "detailed",
|
|
251
|
+
isSignal: true,
|
|
252
|
+
isRequired: false,
|
|
253
|
+
transformFunction: null
|
|
254
|
+
},
|
|
255
|
+
showInitial: {
|
|
256
|
+
classPropertyName: "showInitial",
|
|
257
|
+
publicName: "show-initial",
|
|
258
|
+
isSignal: true,
|
|
259
|
+
isRequired: false,
|
|
260
|
+
transformFunction: null
|
|
261
|
+
},
|
|
262
|
+
showEmail: {
|
|
263
|
+
classPropertyName: "showEmail",
|
|
264
|
+
publicName: "show-email",
|
|
265
|
+
isSignal: true,
|
|
266
|
+
isRequired: false,
|
|
267
|
+
transformFunction: null
|
|
268
|
+
},
|
|
269
|
+
showThemeSettings: {
|
|
270
|
+
classPropertyName: "showThemeSettings",
|
|
271
|
+
publicName: "show-theme-settings",
|
|
272
|
+
isSignal: true,
|
|
273
|
+
isRequired: false,
|
|
274
|
+
transformFunction: null
|
|
275
|
+
},
|
|
276
|
+
logoutLabel: {
|
|
277
|
+
classPropertyName: "logoutLabel",
|
|
278
|
+
publicName: "logoutLabel",
|
|
279
|
+
isSignal: true,
|
|
280
|
+
isRequired: false,
|
|
281
|
+
transformFunction: null
|
|
282
|
+
},
|
|
283
|
+
logoutIcon: {
|
|
284
|
+
classPropertyName: "logoutIcon",
|
|
285
|
+
publicName: "logoutIcon",
|
|
286
|
+
isSignal: true,
|
|
287
|
+
isRequired: false,
|
|
288
|
+
transformFunction: null
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
outputs: { logout: "logout" },
|
|
292
|
+
host: { classAttribute: "contents" },
|
|
293
|
+
providers: [provideIcons(LucideLogOut, LucideDoorOpen)],
|
|
294
|
+
ngImport: i0,
|
|
295
|
+
template: `
|
|
296
|
+
@if (showsIdentity()) {
|
|
297
|
+
@if (showInitial()) {
|
|
298
|
+
<NavigationFooterInitial [name]="user().name" />
|
|
299
|
+
}
|
|
300
|
+
<NavigationFooterTitle
|
|
301
|
+
class="min-w-0 max-w-64 flex-1"
|
|
302
|
+
[title]="user().name"
|
|
303
|
+
[subtitle]="showsEmail() ? user().email : null"
|
|
304
|
+
/>
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
<NavigationFooterAction class="ml-auto">
|
|
308
|
+
<button
|
|
309
|
+
type="button"
|
|
310
|
+
[attr.aria-label]="resolvedLogoutLabel()"
|
|
311
|
+
[attr.title]="resolvedLogoutLabel()"
|
|
312
|
+
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
313
|
+
(click)="logout.emit()"
|
|
314
|
+
>
|
|
315
|
+
<Icon [name]="resolvedLogoutIcon()" [size]="18" />
|
|
316
|
+
</button>
|
|
317
|
+
@if (showsThemeSettings()) {
|
|
318
|
+
<ThemeSettings [trigger-icon-only]="true" class="size-8! min-h-8!" />
|
|
319
|
+
}
|
|
320
|
+
</NavigationFooterAction>
|
|
321
|
+
`,
|
|
322
|
+
isInline: true,
|
|
323
|
+
dependencies: [
|
|
324
|
+
{
|
|
325
|
+
kind: "component",
|
|
326
|
+
type: IconComponent,
|
|
327
|
+
selector: "Icon",
|
|
328
|
+
inputs: [
|
|
329
|
+
"name",
|
|
330
|
+
"class",
|
|
331
|
+
"size",
|
|
332
|
+
"strokeWidth",
|
|
333
|
+
"label"
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
kind: "component",
|
|
338
|
+
type: ThemeSettingsComponent,
|
|
339
|
+
selector: "ThemeSettings",
|
|
340
|
+
inputs: [
|
|
341
|
+
"open",
|
|
342
|
+
"inline",
|
|
343
|
+
"trigger",
|
|
344
|
+
"triggerLabel",
|
|
345
|
+
"trigger-icon-only",
|
|
346
|
+
"show-trigger",
|
|
347
|
+
"side",
|
|
348
|
+
"class"
|
|
349
|
+
],
|
|
350
|
+
outputs: ["openChange"]
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
kind: "component",
|
|
354
|
+
type: NavigationFooterActionComponent,
|
|
355
|
+
selector: "NavigationFooterAction",
|
|
356
|
+
inputs: ["class"]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
kind: "component",
|
|
360
|
+
type: NavigationFooterInitialComponent,
|
|
361
|
+
selector: "NavigationFooterInitial",
|
|
362
|
+
inputs: [
|
|
363
|
+
"name",
|
|
364
|
+
"src",
|
|
365
|
+
"initials",
|
|
366
|
+
"icon",
|
|
367
|
+
"class"
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
kind: "component",
|
|
372
|
+
type: NavigationFooterTitleComponent,
|
|
373
|
+
selector: "NavigationFooterTitle",
|
|
374
|
+
inputs: [
|
|
375
|
+
"title",
|
|
376
|
+
"subtitle",
|
|
377
|
+
"class"
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
384
|
+
minVersion: "12.0.0",
|
|
385
|
+
version: "22.2.3",
|
|
386
|
+
ngImport: i0,
|
|
387
|
+
type: LayoutUser,
|
|
388
|
+
decorators: [{
|
|
389
|
+
type: Component,
|
|
390
|
+
args: [{
|
|
391
|
+
selector: "LayoutUser",
|
|
392
|
+
providers: [provideIcons(LucideLogOut, LucideDoorOpen)],
|
|
393
|
+
imports: [
|
|
394
|
+
IconComponent,
|
|
395
|
+
ThemeSettingsComponent,
|
|
396
|
+
NavigationFooterActionComponent,
|
|
397
|
+
NavigationFooterInitialComponent,
|
|
398
|
+
NavigationFooterTitleComponent
|
|
399
|
+
],
|
|
400
|
+
host: { class: "contents" },
|
|
401
|
+
template: `
|
|
402
|
+
@if (showsIdentity()) {
|
|
403
|
+
@if (showInitial()) {
|
|
404
|
+
<NavigationFooterInitial [name]="user().name" />
|
|
405
|
+
}
|
|
406
|
+
<NavigationFooterTitle
|
|
407
|
+
class="min-w-0 max-w-64 flex-1"
|
|
408
|
+
[title]="user().name"
|
|
409
|
+
[subtitle]="showsEmail() ? user().email : null"
|
|
410
|
+
/>
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
<NavigationFooterAction class="ml-auto">
|
|
414
|
+
<button
|
|
415
|
+
type="button"
|
|
416
|
+
[attr.aria-label]="resolvedLogoutLabel()"
|
|
417
|
+
[attr.title]="resolvedLogoutLabel()"
|
|
418
|
+
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
419
|
+
(click)="logout.emit()"
|
|
420
|
+
>
|
|
421
|
+
<Icon [name]="resolvedLogoutIcon()" [size]="18" />
|
|
422
|
+
</button>
|
|
423
|
+
@if (showsThemeSettings()) {
|
|
424
|
+
<ThemeSettings [trigger-icon-only]="true" class="size-8! min-h-8!" />
|
|
425
|
+
}
|
|
426
|
+
</NavigationFooterAction>
|
|
427
|
+
`
|
|
428
|
+
}]
|
|
429
|
+
}],
|
|
430
|
+
propDecorators: {
|
|
431
|
+
user: [{
|
|
432
|
+
type: i0.Input,
|
|
433
|
+
args: [{
|
|
434
|
+
isSignal: true,
|
|
435
|
+
alias: "user",
|
|
436
|
+
required: true
|
|
437
|
+
}]
|
|
438
|
+
}],
|
|
439
|
+
detailed: [{
|
|
440
|
+
type: i0.Input,
|
|
441
|
+
args: [{
|
|
442
|
+
isSignal: true,
|
|
443
|
+
alias: "detailed",
|
|
444
|
+
required: false
|
|
445
|
+
}]
|
|
446
|
+
}],
|
|
447
|
+
showInitial: [{
|
|
448
|
+
type: i0.Input,
|
|
449
|
+
args: [{
|
|
450
|
+
isSignal: true,
|
|
451
|
+
alias: "show-initial",
|
|
452
|
+
required: false
|
|
453
|
+
}]
|
|
454
|
+
}],
|
|
455
|
+
showEmail: [{
|
|
456
|
+
type: i0.Input,
|
|
457
|
+
args: [{
|
|
458
|
+
isSignal: true,
|
|
459
|
+
alias: "show-email",
|
|
460
|
+
required: false
|
|
461
|
+
}]
|
|
462
|
+
}],
|
|
463
|
+
showThemeSettings: [{
|
|
464
|
+
type: i0.Input,
|
|
465
|
+
args: [{
|
|
466
|
+
isSignal: true,
|
|
467
|
+
alias: "show-theme-settings",
|
|
468
|
+
required: false
|
|
469
|
+
}]
|
|
470
|
+
}],
|
|
471
|
+
logoutLabel: [{
|
|
472
|
+
type: i0.Input,
|
|
473
|
+
args: [{
|
|
474
|
+
isSignal: true,
|
|
475
|
+
alias: "logoutLabel",
|
|
476
|
+
required: false
|
|
477
|
+
}]
|
|
478
|
+
}],
|
|
479
|
+
logoutIcon: [{
|
|
480
|
+
type: i0.Input,
|
|
481
|
+
args: [{
|
|
482
|
+
isSignal: true,
|
|
483
|
+
alias: "logoutIcon",
|
|
484
|
+
required: false
|
|
485
|
+
}]
|
|
486
|
+
}],
|
|
487
|
+
logout: [{
|
|
488
|
+
type: i0.Output,
|
|
489
|
+
args: ["logout"]
|
|
490
|
+
}]
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
var LayoutNavSidebar = class LayoutNavSidebar {
|
|
494
|
+
brand = input.required(...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
|
|
495
|
+
user = input.required(...ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []);
|
|
496
|
+
appearance = input("flat", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
497
|
+
navTypeMode = input("default", {
|
|
498
|
+
...ngDevMode ? { debugName: "navTypeMode" } : /* istanbul ignore next */ {},
|
|
499
|
+
alias: "nav-type-mode"
|
|
500
|
+
});
|
|
501
|
+
logout = output();
|
|
502
|
+
isBorderRail = computed(() => this.appearance() === "border-rail", ...ngDevMode ? [{ debugName: "isBorderRail" }] : /* istanbul ignore next */ []);
|
|
503
|
+
isCollapsed = computed(() => this.navTypeMode() === "collapsed", ...ngDevMode ? [{ debugName: "isCollapsed" }] : /* istanbul ignore next */ []);
|
|
504
|
+
shellClass = computed(() => this.isBorderRail() ? "border-r-[length:var(--layout-rail-width)] border-border" : "border-r border-border", ...ngDevMode ? [{ debugName: "shellClass" }] : /* istanbul ignore next */ []);
|
|
505
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
506
|
+
minVersion: "12.0.0",
|
|
507
|
+
version: "22.2.3",
|
|
508
|
+
ngImport: i0,
|
|
509
|
+
type: LayoutNavSidebar,
|
|
510
|
+
deps: [],
|
|
511
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
512
|
+
});
|
|
513
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
514
|
+
minVersion: "17.1.0",
|
|
515
|
+
version: "22.2.3",
|
|
516
|
+
type: LayoutNavSidebar,
|
|
517
|
+
isStandalone: true,
|
|
518
|
+
selector: "LayoutNavSidebar",
|
|
519
|
+
inputs: {
|
|
520
|
+
brand: {
|
|
521
|
+
classPropertyName: "brand",
|
|
522
|
+
publicName: "brand",
|
|
523
|
+
isSignal: true,
|
|
524
|
+
isRequired: true,
|
|
525
|
+
transformFunction: null
|
|
526
|
+
},
|
|
527
|
+
user: {
|
|
528
|
+
classPropertyName: "user",
|
|
529
|
+
publicName: "user",
|
|
530
|
+
isSignal: true,
|
|
531
|
+
isRequired: true,
|
|
532
|
+
transformFunction: null
|
|
533
|
+
},
|
|
534
|
+
appearance: {
|
|
535
|
+
classPropertyName: "appearance",
|
|
536
|
+
publicName: "appearance",
|
|
537
|
+
isSignal: true,
|
|
538
|
+
isRequired: false,
|
|
539
|
+
transformFunction: null
|
|
540
|
+
},
|
|
541
|
+
navTypeMode: {
|
|
542
|
+
classPropertyName: "navTypeMode",
|
|
543
|
+
publicName: "nav-type-mode",
|
|
544
|
+
isSignal: true,
|
|
545
|
+
isRequired: false,
|
|
546
|
+
transformFunction: null
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
outputs: { logout: "logout" },
|
|
550
|
+
host: { classAttribute: "contents" },
|
|
551
|
+
ngImport: i0,
|
|
552
|
+
template: `
|
|
553
|
+
<NavigationSidebar nav-sidebar-collapse [collapsed]="isCollapsed()" [class]="shellClass()">
|
|
554
|
+
<NavigationHeader>
|
|
555
|
+
<LayoutBrand [brand]="brand()" />
|
|
556
|
+
</NavigationHeader>
|
|
557
|
+
<NavigationFooter class="px-3">
|
|
558
|
+
<LayoutUser [user]="user()" detailed (logout)="logout.emit()" />
|
|
559
|
+
</NavigationFooter>
|
|
560
|
+
</NavigationSidebar>
|
|
561
|
+
`,
|
|
562
|
+
isInline: true,
|
|
563
|
+
dependencies: [
|
|
564
|
+
{
|
|
565
|
+
kind: "component",
|
|
566
|
+
type: NavigationSidebarComponent,
|
|
567
|
+
selector: "NavigationSidebar",
|
|
568
|
+
inputs: [
|
|
569
|
+
"position",
|
|
570
|
+
"collapsed",
|
|
571
|
+
"nav-sidebar-collapse",
|
|
572
|
+
"previewExpanded",
|
|
573
|
+
"class"
|
|
574
|
+
]
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
kind: "component",
|
|
578
|
+
type: NavigationHeaderComponent,
|
|
579
|
+
selector: "NavigationHeader",
|
|
580
|
+
inputs: ["toggle", "class"]
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
kind: "component",
|
|
584
|
+
type: NavigationFooterComponent,
|
|
585
|
+
selector: "NavigationFooter",
|
|
586
|
+
inputs: ["class"]
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
kind: "component",
|
|
590
|
+
type: LayoutBrand,
|
|
591
|
+
selector: "LayoutBrand",
|
|
592
|
+
inputs: ["brand", "compact"]
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
kind: "component",
|
|
596
|
+
type: LayoutUser,
|
|
597
|
+
selector: "LayoutUser",
|
|
598
|
+
inputs: [
|
|
599
|
+
"user",
|
|
600
|
+
"detailed",
|
|
601
|
+
"show-initial",
|
|
602
|
+
"show-email",
|
|
603
|
+
"show-theme-settings",
|
|
604
|
+
"logoutLabel",
|
|
605
|
+
"logoutIcon"
|
|
606
|
+
],
|
|
607
|
+
outputs: ["logout"]
|
|
608
|
+
}
|
|
609
|
+
]
|
|
610
|
+
});
|
|
611
|
+
};
|
|
612
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
613
|
+
minVersion: "12.0.0",
|
|
614
|
+
version: "22.2.3",
|
|
615
|
+
ngImport: i0,
|
|
616
|
+
type: LayoutNavSidebar,
|
|
617
|
+
decorators: [{
|
|
618
|
+
type: Component,
|
|
619
|
+
args: [{
|
|
620
|
+
selector: "LayoutNavSidebar",
|
|
621
|
+
imports: [
|
|
622
|
+
NavigationSidebarComponent,
|
|
623
|
+
NavigationHeaderComponent,
|
|
624
|
+
NavigationFooterComponent,
|
|
625
|
+
LayoutBrand,
|
|
626
|
+
LayoutUser
|
|
627
|
+
],
|
|
628
|
+
host: { class: "contents" },
|
|
629
|
+
template: `
|
|
630
|
+
<NavigationSidebar nav-sidebar-collapse [collapsed]="isCollapsed()" [class]="shellClass()">
|
|
631
|
+
<NavigationHeader>
|
|
632
|
+
<LayoutBrand [brand]="brand()" />
|
|
633
|
+
</NavigationHeader>
|
|
634
|
+
<NavigationFooter class="px-3">
|
|
635
|
+
<LayoutUser [user]="user()" detailed (logout)="logout.emit()" />
|
|
636
|
+
</NavigationFooter>
|
|
637
|
+
</NavigationSidebar>
|
|
638
|
+
`
|
|
639
|
+
}]
|
|
640
|
+
}],
|
|
641
|
+
propDecorators: {
|
|
642
|
+
brand: [{
|
|
643
|
+
type: i0.Input,
|
|
644
|
+
args: [{
|
|
645
|
+
isSignal: true,
|
|
646
|
+
alias: "brand",
|
|
647
|
+
required: true
|
|
648
|
+
}]
|
|
649
|
+
}],
|
|
650
|
+
user: [{
|
|
651
|
+
type: i0.Input,
|
|
652
|
+
args: [{
|
|
653
|
+
isSignal: true,
|
|
654
|
+
alias: "user",
|
|
655
|
+
required: true
|
|
656
|
+
}]
|
|
657
|
+
}],
|
|
658
|
+
appearance: [{
|
|
659
|
+
type: i0.Input,
|
|
660
|
+
args: [{
|
|
661
|
+
isSignal: true,
|
|
662
|
+
alias: "appearance",
|
|
663
|
+
required: false
|
|
664
|
+
}]
|
|
665
|
+
}],
|
|
666
|
+
navTypeMode: [{
|
|
667
|
+
type: i0.Input,
|
|
668
|
+
args: [{
|
|
669
|
+
isSignal: true,
|
|
670
|
+
alias: "nav-type-mode",
|
|
671
|
+
required: false
|
|
672
|
+
}]
|
|
673
|
+
}],
|
|
674
|
+
logout: [{
|
|
675
|
+
type: i0.Output,
|
|
676
|
+
args: ["logout"]
|
|
677
|
+
}]
|
|
678
|
+
}
|
|
679
|
+
});
|
|
680
|
+
const EMPTY_NAVIGATION_BADGE_CONTEXT$1 = Object.freeze({});
|
|
681
|
+
var LayoutNavDockbar = class LayoutNavDockbar {
|
|
682
|
+
brand = input.required(...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
|
|
683
|
+
user = input.required(...ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []);
|
|
684
|
+
appearance = input("flat", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
685
|
+
navTypeMode = input("default", {
|
|
686
|
+
...ngDevMode ? { debugName: "navTypeMode" } : /* istanbul ignore next */ {},
|
|
687
|
+
alias: "nav-type-mode"
|
|
688
|
+
});
|
|
689
|
+
dockbarRouteContext = input(null, {
|
|
690
|
+
...ngDevMode ? { debugName: "dockbarRouteContext" } : /* istanbul ignore next */ {},
|
|
691
|
+
alias: "dockbar-route-context"
|
|
692
|
+
});
|
|
693
|
+
badgeContext = input(null, {
|
|
694
|
+
...ngDevMode ? { debugName: "badgeContext" } : /* istanbul ignore next */ {},
|
|
695
|
+
alias: "badge-context"
|
|
696
|
+
});
|
|
697
|
+
dockbarBadgeContext = input(EMPTY_NAVIGATION_BADGE_CONTEXT$1, {
|
|
698
|
+
...ngDevMode ? { debugName: "dockbarBadgeContext" } : /* istanbul ignore next */ {},
|
|
699
|
+
alias: "dockbar-badge"
|
|
700
|
+
});
|
|
701
|
+
logout = output();
|
|
702
|
+
isBorderRail = computed(() => this.appearance() === "border-rail", ...ngDevMode ? [{ debugName: "isBorderRail" }] : /* istanbul ignore next */ []);
|
|
703
|
+
dockbarMode = computed(() => this.navTypeMode() === "drawer" ? "drawer" : "sticky", ...ngDevMode ? [{ debugName: "dockbarMode" }] : /* istanbul ignore next */ []);
|
|
704
|
+
routeContextEnabled = computed(() => {
|
|
705
|
+
const context = this.dockbarRouteContext();
|
|
706
|
+
return context !== null && context !== false;
|
|
707
|
+
}, ...ngDevMode ? [{ debugName: "routeContextEnabled" }] : /* istanbul ignore next */ []);
|
|
708
|
+
shellClass = computed(() => this.isBorderRail() ? "border-r-[length:var(--layout-rail-width)] border-border" : "border-r border-border", ...ngDevMode ? [{ debugName: "shellClass" }] : /* istanbul ignore next */ []);
|
|
709
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
710
|
+
minVersion: "12.0.0",
|
|
711
|
+
version: "22.2.3",
|
|
712
|
+
ngImport: i0,
|
|
713
|
+
type: LayoutNavDockbar,
|
|
714
|
+
deps: [],
|
|
715
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
716
|
+
});
|
|
717
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
718
|
+
minVersion: "17.0.0",
|
|
719
|
+
version: "22.2.3",
|
|
720
|
+
type: LayoutNavDockbar,
|
|
721
|
+
isStandalone: true,
|
|
722
|
+
selector: "LayoutNavDockbar",
|
|
723
|
+
inputs: {
|
|
724
|
+
brand: {
|
|
725
|
+
classPropertyName: "brand",
|
|
726
|
+
publicName: "brand",
|
|
727
|
+
isSignal: true,
|
|
728
|
+
isRequired: true,
|
|
729
|
+
transformFunction: null
|
|
730
|
+
},
|
|
731
|
+
user: {
|
|
732
|
+
classPropertyName: "user",
|
|
733
|
+
publicName: "user",
|
|
734
|
+
isSignal: true,
|
|
735
|
+
isRequired: true,
|
|
736
|
+
transformFunction: null
|
|
737
|
+
},
|
|
738
|
+
appearance: {
|
|
739
|
+
classPropertyName: "appearance",
|
|
740
|
+
publicName: "appearance",
|
|
741
|
+
isSignal: true,
|
|
742
|
+
isRequired: false,
|
|
743
|
+
transformFunction: null
|
|
744
|
+
},
|
|
745
|
+
navTypeMode: {
|
|
746
|
+
classPropertyName: "navTypeMode",
|
|
747
|
+
publicName: "nav-type-mode",
|
|
748
|
+
isSignal: true,
|
|
749
|
+
isRequired: false,
|
|
750
|
+
transformFunction: null
|
|
751
|
+
},
|
|
752
|
+
dockbarRouteContext: {
|
|
753
|
+
classPropertyName: "dockbarRouteContext",
|
|
754
|
+
publicName: "dockbar-route-context",
|
|
755
|
+
isSignal: true,
|
|
756
|
+
isRequired: false,
|
|
757
|
+
transformFunction: null
|
|
758
|
+
},
|
|
759
|
+
badgeContext: {
|
|
760
|
+
classPropertyName: "badgeContext",
|
|
761
|
+
publicName: "badge-context",
|
|
762
|
+
isSignal: true,
|
|
763
|
+
isRequired: false,
|
|
764
|
+
transformFunction: null
|
|
765
|
+
},
|
|
766
|
+
dockbarBadgeContext: {
|
|
767
|
+
classPropertyName: "dockbarBadgeContext",
|
|
768
|
+
publicName: "dockbar-badge",
|
|
769
|
+
isSignal: true,
|
|
770
|
+
isRequired: false,
|
|
771
|
+
transformFunction: null
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
outputs: { logout: "logout" },
|
|
775
|
+
host: { classAttribute: "contents" },
|
|
776
|
+
ngImport: i0,
|
|
777
|
+
template: `
|
|
778
|
+
<NavigationDockbar
|
|
779
|
+
[mode]="dockbarMode()"
|
|
780
|
+
[dockbar-route-context]="dockbarRouteContext()"
|
|
781
|
+
[badge-context]="badgeContext() ?? dockbarBadgeContext()"
|
|
782
|
+
[class]="shellClass()"
|
|
783
|
+
>
|
|
784
|
+
@if (!routeContextEnabled()) {
|
|
785
|
+
<NavigationHeader>
|
|
786
|
+
<LayoutBrand [brand]="brand()" compact />
|
|
787
|
+
</NavigationHeader>
|
|
788
|
+
}
|
|
789
|
+
<NavigationFooter class="px-3">
|
|
790
|
+
<LayoutUser [user]="user()" detailed (logout)="logout.emit()" />
|
|
791
|
+
</NavigationFooter>
|
|
792
|
+
|
|
793
|
+
<ng-template NavigationAsideFooter>
|
|
794
|
+
<LayoutUser [user]="user()" detailed [show-initial]="false" (logout)="logout.emit()" />
|
|
795
|
+
</ng-template>
|
|
796
|
+
</NavigationDockbar>
|
|
797
|
+
`,
|
|
798
|
+
isInline: true,
|
|
799
|
+
dependencies: [
|
|
800
|
+
{
|
|
801
|
+
kind: "directive",
|
|
802
|
+
type: NavigationAsideFooterDirective,
|
|
803
|
+
selector: "ng-template[NavigationAsideFooter]"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
kind: "component",
|
|
807
|
+
type: NavigationDockbarComponent,
|
|
808
|
+
selector: "NavigationDockbar",
|
|
809
|
+
inputs: [
|
|
810
|
+
"mode",
|
|
811
|
+
"position",
|
|
812
|
+
"dockbar-route-context",
|
|
813
|
+
"dockbar-badge",
|
|
814
|
+
"badge-context",
|
|
815
|
+
"class"
|
|
816
|
+
]
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
kind: "component",
|
|
820
|
+
type: NavigationHeaderComponent,
|
|
821
|
+
selector: "NavigationHeader",
|
|
822
|
+
inputs: ["toggle", "class"]
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
kind: "component",
|
|
826
|
+
type: NavigationFooterComponent,
|
|
827
|
+
selector: "NavigationFooter",
|
|
828
|
+
inputs: ["class"]
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
kind: "component",
|
|
832
|
+
type: LayoutBrand,
|
|
833
|
+
selector: "LayoutBrand",
|
|
834
|
+
inputs: ["brand", "compact"]
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
kind: "component",
|
|
838
|
+
type: LayoutUser,
|
|
839
|
+
selector: "LayoutUser",
|
|
840
|
+
inputs: [
|
|
841
|
+
"user",
|
|
842
|
+
"detailed",
|
|
843
|
+
"show-initial",
|
|
844
|
+
"show-email",
|
|
845
|
+
"show-theme-settings",
|
|
846
|
+
"logoutLabel",
|
|
847
|
+
"logoutIcon"
|
|
848
|
+
],
|
|
849
|
+
outputs: ["logout"]
|
|
850
|
+
}
|
|
851
|
+
]
|
|
852
|
+
});
|
|
853
|
+
};
|
|
854
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
855
|
+
minVersion: "12.0.0",
|
|
856
|
+
version: "22.2.3",
|
|
857
|
+
ngImport: i0,
|
|
858
|
+
type: LayoutNavDockbar,
|
|
859
|
+
decorators: [{
|
|
860
|
+
type: Component,
|
|
861
|
+
args: [{
|
|
862
|
+
selector: "LayoutNavDockbar",
|
|
863
|
+
imports: [
|
|
864
|
+
NavigationAsideFooterDirective,
|
|
865
|
+
NavigationDockbarComponent,
|
|
866
|
+
NavigationHeaderComponent,
|
|
867
|
+
NavigationFooterComponent,
|
|
868
|
+
LayoutBrand,
|
|
869
|
+
LayoutUser
|
|
870
|
+
],
|
|
871
|
+
host: { class: "contents" },
|
|
872
|
+
template: `
|
|
873
|
+
<NavigationDockbar
|
|
874
|
+
[mode]="dockbarMode()"
|
|
875
|
+
[dockbar-route-context]="dockbarRouteContext()"
|
|
876
|
+
[badge-context]="badgeContext() ?? dockbarBadgeContext()"
|
|
877
|
+
[class]="shellClass()"
|
|
878
|
+
>
|
|
879
|
+
@if (!routeContextEnabled()) {
|
|
880
|
+
<NavigationHeader>
|
|
881
|
+
<LayoutBrand [brand]="brand()" compact />
|
|
882
|
+
</NavigationHeader>
|
|
883
|
+
}
|
|
884
|
+
<NavigationFooter class="px-3">
|
|
885
|
+
<LayoutUser [user]="user()" detailed (logout)="logout.emit()" />
|
|
886
|
+
</NavigationFooter>
|
|
887
|
+
|
|
888
|
+
<ng-template NavigationAsideFooter>
|
|
889
|
+
<LayoutUser [user]="user()" detailed [show-initial]="false" (logout)="logout.emit()" />
|
|
890
|
+
</ng-template>
|
|
891
|
+
</NavigationDockbar>
|
|
892
|
+
`
|
|
893
|
+
}]
|
|
894
|
+
}],
|
|
895
|
+
propDecorators: {
|
|
896
|
+
brand: [{
|
|
897
|
+
type: i0.Input,
|
|
898
|
+
args: [{
|
|
899
|
+
isSignal: true,
|
|
900
|
+
alias: "brand",
|
|
901
|
+
required: true
|
|
902
|
+
}]
|
|
903
|
+
}],
|
|
904
|
+
user: [{
|
|
905
|
+
type: i0.Input,
|
|
906
|
+
args: [{
|
|
907
|
+
isSignal: true,
|
|
908
|
+
alias: "user",
|
|
909
|
+
required: true
|
|
910
|
+
}]
|
|
911
|
+
}],
|
|
912
|
+
appearance: [{
|
|
913
|
+
type: i0.Input,
|
|
914
|
+
args: [{
|
|
915
|
+
isSignal: true,
|
|
916
|
+
alias: "appearance",
|
|
917
|
+
required: false
|
|
918
|
+
}]
|
|
919
|
+
}],
|
|
920
|
+
navTypeMode: [{
|
|
921
|
+
type: i0.Input,
|
|
922
|
+
args: [{
|
|
923
|
+
isSignal: true,
|
|
924
|
+
alias: "nav-type-mode",
|
|
925
|
+
required: false
|
|
926
|
+
}]
|
|
927
|
+
}],
|
|
928
|
+
dockbarRouteContext: [{
|
|
929
|
+
type: i0.Input,
|
|
930
|
+
args: [{
|
|
931
|
+
isSignal: true,
|
|
932
|
+
alias: "dockbar-route-context",
|
|
933
|
+
required: false
|
|
934
|
+
}]
|
|
935
|
+
}],
|
|
936
|
+
badgeContext: [{
|
|
937
|
+
type: i0.Input,
|
|
938
|
+
args: [{
|
|
939
|
+
isSignal: true,
|
|
940
|
+
alias: "badge-context",
|
|
941
|
+
required: false
|
|
942
|
+
}]
|
|
943
|
+
}],
|
|
944
|
+
dockbarBadgeContext: [{
|
|
945
|
+
type: i0.Input,
|
|
946
|
+
args: [{
|
|
947
|
+
isSignal: true,
|
|
948
|
+
alias: "dockbar-badge",
|
|
949
|
+
required: false
|
|
950
|
+
}]
|
|
951
|
+
}],
|
|
952
|
+
logout: [{
|
|
953
|
+
type: i0.Output,
|
|
954
|
+
args: ["logout"]
|
|
955
|
+
}]
|
|
956
|
+
}
|
|
957
|
+
});
|
|
958
|
+
var LayoutNavMinidock = class LayoutNavMinidock {
|
|
959
|
+
brand = input.required(...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
|
|
960
|
+
user = input.required(...ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []);
|
|
961
|
+
appearance = input("flat", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
962
|
+
logout = output();
|
|
963
|
+
isBorderRail = computed(() => this.appearance() === "border-rail", ...ngDevMode ? [{ debugName: "isBorderRail" }] : /* istanbul ignore next */ []);
|
|
964
|
+
shellClass = computed(() => this.isBorderRail() ? "border-r-[length:var(--layout-rail-width)] border-border" : "border-r border-border", ...ngDevMode ? [{ debugName: "shellClass" }] : /* istanbul ignore next */ []);
|
|
965
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
966
|
+
minVersion: "12.0.0",
|
|
967
|
+
version: "22.2.3",
|
|
968
|
+
ngImport: i0,
|
|
969
|
+
type: LayoutNavMinidock,
|
|
970
|
+
deps: [],
|
|
971
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
972
|
+
});
|
|
973
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
974
|
+
minVersion: "17.1.0",
|
|
975
|
+
version: "22.2.3",
|
|
976
|
+
type: LayoutNavMinidock,
|
|
977
|
+
isStandalone: true,
|
|
978
|
+
selector: "LayoutNavMinidock",
|
|
979
|
+
inputs: {
|
|
980
|
+
brand: {
|
|
981
|
+
classPropertyName: "brand",
|
|
982
|
+
publicName: "brand",
|
|
983
|
+
isSignal: true,
|
|
984
|
+
isRequired: true,
|
|
985
|
+
transformFunction: null
|
|
986
|
+
},
|
|
987
|
+
user: {
|
|
988
|
+
classPropertyName: "user",
|
|
989
|
+
publicName: "user",
|
|
990
|
+
isSignal: true,
|
|
991
|
+
isRequired: true,
|
|
992
|
+
transformFunction: null
|
|
993
|
+
},
|
|
994
|
+
appearance: {
|
|
995
|
+
classPropertyName: "appearance",
|
|
996
|
+
publicName: "appearance",
|
|
997
|
+
isSignal: true,
|
|
998
|
+
isRequired: false,
|
|
999
|
+
transformFunction: null
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
outputs: { logout: "logout" },
|
|
1003
|
+
host: { classAttribute: "contents" },
|
|
1004
|
+
ngImport: i0,
|
|
1005
|
+
template: `
|
|
1006
|
+
<NavigationMinidock [class]="shellClass()">
|
|
1007
|
+
<NavigationHeader>
|
|
1008
|
+
<LayoutBrand [brand]="brand()" />
|
|
1009
|
+
</NavigationHeader>
|
|
1010
|
+
<NavigationFooter class="px-3">
|
|
1011
|
+
<LayoutUser [user]="user()" detailed (logout)="logout.emit()" />
|
|
1012
|
+
</NavigationFooter>
|
|
1013
|
+
</NavigationMinidock>
|
|
1014
|
+
`,
|
|
1015
|
+
isInline: true,
|
|
1016
|
+
dependencies: [
|
|
1017
|
+
{
|
|
1018
|
+
kind: "component",
|
|
1019
|
+
type: NavigationMinidockComponent,
|
|
1020
|
+
selector: "NavigationMinidock",
|
|
1021
|
+
inputs: ["position", "class"]
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
kind: "component",
|
|
1025
|
+
type: NavigationHeaderComponent,
|
|
1026
|
+
selector: "NavigationHeader",
|
|
1027
|
+
inputs: ["toggle", "class"]
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
kind: "component",
|
|
1031
|
+
type: NavigationFooterComponent,
|
|
1032
|
+
selector: "NavigationFooter",
|
|
1033
|
+
inputs: ["class"]
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
kind: "component",
|
|
1037
|
+
type: LayoutBrand,
|
|
1038
|
+
selector: "LayoutBrand",
|
|
1039
|
+
inputs: ["brand", "compact"]
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
kind: "component",
|
|
1043
|
+
type: LayoutUser,
|
|
1044
|
+
selector: "LayoutUser",
|
|
1045
|
+
inputs: [
|
|
1046
|
+
"user",
|
|
1047
|
+
"detailed",
|
|
1048
|
+
"show-initial",
|
|
1049
|
+
"show-email",
|
|
1050
|
+
"show-theme-settings",
|
|
1051
|
+
"logoutLabel",
|
|
1052
|
+
"logoutIcon"
|
|
1053
|
+
],
|
|
1054
|
+
outputs: ["logout"]
|
|
1055
|
+
}
|
|
1056
|
+
]
|
|
1057
|
+
});
|
|
1058
|
+
};
|
|
1059
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1060
|
+
minVersion: "12.0.0",
|
|
1061
|
+
version: "22.2.3",
|
|
1062
|
+
ngImport: i0,
|
|
1063
|
+
type: LayoutNavMinidock,
|
|
1064
|
+
decorators: [{
|
|
1065
|
+
type: Component,
|
|
1066
|
+
args: [{
|
|
1067
|
+
selector: "LayoutNavMinidock",
|
|
1068
|
+
imports: [
|
|
1069
|
+
NavigationMinidockComponent,
|
|
1070
|
+
NavigationHeaderComponent,
|
|
1071
|
+
NavigationFooterComponent,
|
|
1072
|
+
LayoutBrand,
|
|
1073
|
+
LayoutUser
|
|
1074
|
+
],
|
|
1075
|
+
host: { class: "contents" },
|
|
1076
|
+
template: `
|
|
1077
|
+
<NavigationMinidock [class]="shellClass()">
|
|
1078
|
+
<NavigationHeader>
|
|
1079
|
+
<LayoutBrand [brand]="brand()" />
|
|
1080
|
+
</NavigationHeader>
|
|
1081
|
+
<NavigationFooter class="px-3">
|
|
1082
|
+
<LayoutUser [user]="user()" detailed (logout)="logout.emit()" />
|
|
1083
|
+
</NavigationFooter>
|
|
1084
|
+
</NavigationMinidock>
|
|
1085
|
+
`
|
|
1086
|
+
}]
|
|
1087
|
+
}],
|
|
1088
|
+
propDecorators: {
|
|
1089
|
+
brand: [{
|
|
1090
|
+
type: i0.Input,
|
|
1091
|
+
args: [{
|
|
1092
|
+
isSignal: true,
|
|
1093
|
+
alias: "brand",
|
|
1094
|
+
required: true
|
|
1095
|
+
}]
|
|
1096
|
+
}],
|
|
1097
|
+
user: [{
|
|
1098
|
+
type: i0.Input,
|
|
1099
|
+
args: [{
|
|
1100
|
+
isSignal: true,
|
|
1101
|
+
alias: "user",
|
|
1102
|
+
required: true
|
|
1103
|
+
}]
|
|
1104
|
+
}],
|
|
1105
|
+
appearance: [{
|
|
1106
|
+
type: i0.Input,
|
|
1107
|
+
args: [{
|
|
1108
|
+
isSignal: true,
|
|
1109
|
+
alias: "appearance",
|
|
1110
|
+
required: false
|
|
1111
|
+
}]
|
|
1112
|
+
}],
|
|
1113
|
+
logout: [{
|
|
1114
|
+
type: i0.Output,
|
|
1115
|
+
args: ["logout"]
|
|
1116
|
+
}]
|
|
1117
|
+
}
|
|
1118
|
+
});
|
|
1119
|
+
var LayoutNavNavbar = class LayoutNavNavbar {
|
|
1120
|
+
brand = input.required(...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
|
|
1121
|
+
user = input.required(...ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []);
|
|
1122
|
+
appearance = input("flat", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
1123
|
+
logout = output();
|
|
1124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1125
|
+
minVersion: "12.0.0",
|
|
1126
|
+
version: "22.2.3",
|
|
1127
|
+
ngImport: i0,
|
|
1128
|
+
type: LayoutNavNavbar,
|
|
1129
|
+
deps: [],
|
|
1130
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1131
|
+
});
|
|
1132
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1133
|
+
minVersion: "17.1.0",
|
|
1134
|
+
version: "22.2.3",
|
|
1135
|
+
type: LayoutNavNavbar,
|
|
1136
|
+
isStandalone: true,
|
|
1137
|
+
selector: "LayoutNavNavbar",
|
|
1138
|
+
inputs: {
|
|
1139
|
+
brand: {
|
|
1140
|
+
classPropertyName: "brand",
|
|
1141
|
+
publicName: "brand",
|
|
1142
|
+
isSignal: true,
|
|
1143
|
+
isRequired: true,
|
|
1144
|
+
transformFunction: null
|
|
1145
|
+
},
|
|
1146
|
+
user: {
|
|
1147
|
+
classPropertyName: "user",
|
|
1148
|
+
publicName: "user",
|
|
1149
|
+
isSignal: true,
|
|
1150
|
+
isRequired: true,
|
|
1151
|
+
transformFunction: null
|
|
1152
|
+
},
|
|
1153
|
+
appearance: {
|
|
1154
|
+
classPropertyName: "appearance",
|
|
1155
|
+
publicName: "appearance",
|
|
1156
|
+
isSignal: true,
|
|
1157
|
+
isRequired: false,
|
|
1158
|
+
transformFunction: null
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
outputs: { logout: "logout" },
|
|
1162
|
+
host: { classAttribute: "contents" },
|
|
1163
|
+
ngImport: i0,
|
|
1164
|
+
template: `
|
|
1165
|
+
<NavigationNavbar [nav-type-style]="appearance()" class="border-b border-border">
|
|
1166
|
+
<NavigationHeader>
|
|
1167
|
+
<LayoutBrand [brand]="brand()" />
|
|
1168
|
+
</NavigationHeader>
|
|
1169
|
+
<NavigationFooter class="px-3">
|
|
1170
|
+
<LayoutUser [user]="user()" (logout)="logout.emit()" />
|
|
1171
|
+
</NavigationFooter>
|
|
1172
|
+
</NavigationNavbar>
|
|
1173
|
+
`,
|
|
1174
|
+
isInline: true,
|
|
1175
|
+
dependencies: [
|
|
1176
|
+
{
|
|
1177
|
+
kind: "component",
|
|
1178
|
+
type: NavigationNavbarComponent,
|
|
1179
|
+
selector: "NavigationNavbar",
|
|
1180
|
+
inputs: [
|
|
1181
|
+
"nav-position",
|
|
1182
|
+
"nav-type-style",
|
|
1183
|
+
"class"
|
|
1184
|
+
]
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
kind: "component",
|
|
1188
|
+
type: NavigationHeaderComponent,
|
|
1189
|
+
selector: "NavigationHeader",
|
|
1190
|
+
inputs: ["toggle", "class"]
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
kind: "component",
|
|
1194
|
+
type: NavigationFooterComponent,
|
|
1195
|
+
selector: "NavigationFooter",
|
|
1196
|
+
inputs: ["class"]
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
kind: "component",
|
|
1200
|
+
type: LayoutBrand,
|
|
1201
|
+
selector: "LayoutBrand",
|
|
1202
|
+
inputs: ["brand", "compact"]
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
kind: "component",
|
|
1206
|
+
type: LayoutUser,
|
|
1207
|
+
selector: "LayoutUser",
|
|
1208
|
+
inputs: [
|
|
1209
|
+
"user",
|
|
1210
|
+
"detailed",
|
|
1211
|
+
"show-initial",
|
|
1212
|
+
"show-email",
|
|
1213
|
+
"show-theme-settings",
|
|
1214
|
+
"logoutLabel",
|
|
1215
|
+
"logoutIcon"
|
|
1216
|
+
],
|
|
1217
|
+
outputs: ["logout"]
|
|
1218
|
+
}
|
|
1219
|
+
]
|
|
1220
|
+
});
|
|
1221
|
+
};
|
|
1222
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1223
|
+
minVersion: "12.0.0",
|
|
1224
|
+
version: "22.2.3",
|
|
1225
|
+
ngImport: i0,
|
|
1226
|
+
type: LayoutNavNavbar,
|
|
1227
|
+
decorators: [{
|
|
1228
|
+
type: Component,
|
|
1229
|
+
args: [{
|
|
1230
|
+
selector: "LayoutNavNavbar",
|
|
1231
|
+
imports: [
|
|
1232
|
+
NavigationNavbarComponent,
|
|
1233
|
+
NavigationHeaderComponent,
|
|
1234
|
+
NavigationFooterComponent,
|
|
1235
|
+
LayoutBrand,
|
|
1236
|
+
LayoutUser
|
|
1237
|
+
],
|
|
1238
|
+
host: { class: "contents" },
|
|
1239
|
+
template: `
|
|
1240
|
+
<NavigationNavbar [nav-type-style]="appearance()" class="border-b border-border">
|
|
1241
|
+
<NavigationHeader>
|
|
1242
|
+
<LayoutBrand [brand]="brand()" />
|
|
1243
|
+
</NavigationHeader>
|
|
1244
|
+
<NavigationFooter class="px-3">
|
|
1245
|
+
<LayoutUser [user]="user()" (logout)="logout.emit()" />
|
|
1246
|
+
</NavigationFooter>
|
|
1247
|
+
</NavigationNavbar>
|
|
1248
|
+
`
|
|
1249
|
+
}]
|
|
1250
|
+
}],
|
|
1251
|
+
propDecorators: {
|
|
1252
|
+
brand: [{
|
|
1253
|
+
type: i0.Input,
|
|
1254
|
+
args: [{
|
|
1255
|
+
isSignal: true,
|
|
1256
|
+
alias: "brand",
|
|
1257
|
+
required: true
|
|
1258
|
+
}]
|
|
1259
|
+
}],
|
|
1260
|
+
user: [{
|
|
1261
|
+
type: i0.Input,
|
|
1262
|
+
args: [{
|
|
1263
|
+
isSignal: true,
|
|
1264
|
+
alias: "user",
|
|
1265
|
+
required: true
|
|
1266
|
+
}]
|
|
1267
|
+
}],
|
|
1268
|
+
appearance: [{
|
|
1269
|
+
type: i0.Input,
|
|
1270
|
+
args: [{
|
|
1271
|
+
isSignal: true,
|
|
1272
|
+
alias: "appearance",
|
|
1273
|
+
required: false
|
|
1274
|
+
}]
|
|
1275
|
+
}],
|
|
1276
|
+
logout: [{
|
|
1277
|
+
type: i0.Output,
|
|
1278
|
+
args: ["logout"]
|
|
1279
|
+
}]
|
|
1280
|
+
}
|
|
1281
|
+
});
|
|
1282
|
+
var LayoutNavFlyout = class LayoutNavFlyout {
|
|
1283
|
+
brand = input.required(...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
|
|
1284
|
+
user = input.required(...ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []);
|
|
1285
|
+
appearance = input("flat", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
1286
|
+
logout = output();
|
|
1287
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1288
|
+
minVersion: "12.0.0",
|
|
1289
|
+
version: "22.2.3",
|
|
1290
|
+
ngImport: i0,
|
|
1291
|
+
type: LayoutNavFlyout,
|
|
1292
|
+
deps: [],
|
|
1293
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1294
|
+
});
|
|
1295
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1296
|
+
minVersion: "17.1.0",
|
|
1297
|
+
version: "22.2.3",
|
|
1298
|
+
type: LayoutNavFlyout,
|
|
1299
|
+
isStandalone: true,
|
|
1300
|
+
selector: "LayoutNavFlyout",
|
|
1301
|
+
inputs: {
|
|
1302
|
+
brand: {
|
|
1303
|
+
classPropertyName: "brand",
|
|
1304
|
+
publicName: "brand",
|
|
1305
|
+
isSignal: true,
|
|
1306
|
+
isRequired: true,
|
|
1307
|
+
transformFunction: null
|
|
1308
|
+
},
|
|
1309
|
+
user: {
|
|
1310
|
+
classPropertyName: "user",
|
|
1311
|
+
publicName: "user",
|
|
1312
|
+
isSignal: true,
|
|
1313
|
+
isRequired: true,
|
|
1314
|
+
transformFunction: null
|
|
1315
|
+
},
|
|
1316
|
+
appearance: {
|
|
1317
|
+
classPropertyName: "appearance",
|
|
1318
|
+
publicName: "appearance",
|
|
1319
|
+
isSignal: true,
|
|
1320
|
+
isRequired: false,
|
|
1321
|
+
transformFunction: null
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
outputs: { logout: "logout" },
|
|
1325
|
+
host: { classAttribute: "contents" },
|
|
1326
|
+
providers: [provideIcons(LucideGrip)],
|
|
1327
|
+
ngImport: i0,
|
|
1328
|
+
template: `
|
|
1329
|
+
<NavigationFlyout
|
|
1330
|
+
[nav-type-style]="appearance()"
|
|
1331
|
+
label="Menu"
|
|
1332
|
+
icon="grip"
|
|
1333
|
+
class="border-b border-border"
|
|
1334
|
+
>
|
|
1335
|
+
<NavigationHeader>
|
|
1336
|
+
<LayoutBrand [brand]="brand()" />
|
|
1337
|
+
</NavigationHeader>
|
|
1338
|
+
<NavigationFooter class="px-3">
|
|
1339
|
+
<LayoutUser [user]="user()" (logout)="logout.emit()" />
|
|
1340
|
+
</NavigationFooter>
|
|
1341
|
+
</NavigationFlyout>
|
|
1342
|
+
`,
|
|
1343
|
+
isInline: true,
|
|
1344
|
+
dependencies: [
|
|
1345
|
+
{
|
|
1346
|
+
kind: "component",
|
|
1347
|
+
type: NavigationFlyoutComponent,
|
|
1348
|
+
selector: "NavigationFlyout",
|
|
1349
|
+
inputs: [
|
|
1350
|
+
"label",
|
|
1351
|
+
"icon",
|
|
1352
|
+
"icon-only",
|
|
1353
|
+
"icon-position",
|
|
1354
|
+
"trigger-variant",
|
|
1355
|
+
"trigger-floating",
|
|
1356
|
+
"panel-viewport",
|
|
1357
|
+
"trigger-class",
|
|
1358
|
+
"trigger-button-class",
|
|
1359
|
+
"nav-position",
|
|
1360
|
+
"nav-type-style",
|
|
1361
|
+
"class"
|
|
1362
|
+
]
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
kind: "component",
|
|
1366
|
+
type: NavigationHeaderComponent,
|
|
1367
|
+
selector: "NavigationHeader",
|
|
1368
|
+
inputs: ["toggle", "class"]
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
kind: "component",
|
|
1372
|
+
type: NavigationFooterComponent,
|
|
1373
|
+
selector: "NavigationFooter",
|
|
1374
|
+
inputs: ["class"]
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
kind: "component",
|
|
1378
|
+
type: LayoutBrand,
|
|
1379
|
+
selector: "LayoutBrand",
|
|
1380
|
+
inputs: ["brand", "compact"]
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
kind: "component",
|
|
1384
|
+
type: LayoutUser,
|
|
1385
|
+
selector: "LayoutUser",
|
|
1386
|
+
inputs: [
|
|
1387
|
+
"user",
|
|
1388
|
+
"detailed",
|
|
1389
|
+
"show-initial",
|
|
1390
|
+
"show-email",
|
|
1391
|
+
"show-theme-settings",
|
|
1392
|
+
"logoutLabel",
|
|
1393
|
+
"logoutIcon"
|
|
1394
|
+
],
|
|
1395
|
+
outputs: ["logout"]
|
|
1396
|
+
}
|
|
1397
|
+
]
|
|
1398
|
+
});
|
|
1399
|
+
};
|
|
1400
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1401
|
+
minVersion: "12.0.0",
|
|
1402
|
+
version: "22.2.3",
|
|
1403
|
+
ngImport: i0,
|
|
1404
|
+
type: LayoutNavFlyout,
|
|
1405
|
+
decorators: [{
|
|
1406
|
+
type: Component,
|
|
1407
|
+
args: [{
|
|
1408
|
+
selector: "LayoutNavFlyout",
|
|
1409
|
+
providers: [provideIcons(LucideGrip)],
|
|
1410
|
+
imports: [
|
|
1411
|
+
NavigationFlyoutComponent,
|
|
1412
|
+
NavigationHeaderComponent,
|
|
1413
|
+
NavigationFooterComponent,
|
|
1414
|
+
LayoutBrand,
|
|
1415
|
+
LayoutUser
|
|
1416
|
+
],
|
|
1417
|
+
host: { class: "contents" },
|
|
1418
|
+
template: `
|
|
1419
|
+
<NavigationFlyout
|
|
1420
|
+
[nav-type-style]="appearance()"
|
|
1421
|
+
label="Menu"
|
|
1422
|
+
icon="grip"
|
|
1423
|
+
class="border-b border-border"
|
|
1424
|
+
>
|
|
1425
|
+
<NavigationHeader>
|
|
1426
|
+
<LayoutBrand [brand]="brand()" />
|
|
1427
|
+
</NavigationHeader>
|
|
1428
|
+
<NavigationFooter class="px-3">
|
|
1429
|
+
<LayoutUser [user]="user()" (logout)="logout.emit()" />
|
|
1430
|
+
</NavigationFooter>
|
|
1431
|
+
</NavigationFlyout>
|
|
1432
|
+
`
|
|
1433
|
+
}]
|
|
1434
|
+
}],
|
|
1435
|
+
propDecorators: {
|
|
1436
|
+
brand: [{
|
|
1437
|
+
type: i0.Input,
|
|
1438
|
+
args: [{
|
|
1439
|
+
isSignal: true,
|
|
1440
|
+
alias: "brand",
|
|
1441
|
+
required: true
|
|
1442
|
+
}]
|
|
1443
|
+
}],
|
|
1444
|
+
user: [{
|
|
1445
|
+
type: i0.Input,
|
|
1446
|
+
args: [{
|
|
1447
|
+
isSignal: true,
|
|
1448
|
+
alias: "user",
|
|
1449
|
+
required: true
|
|
1450
|
+
}]
|
|
1451
|
+
}],
|
|
1452
|
+
appearance: [{
|
|
1453
|
+
type: i0.Input,
|
|
1454
|
+
args: [{
|
|
1455
|
+
isSignal: true,
|
|
1456
|
+
alias: "appearance",
|
|
1457
|
+
required: false
|
|
1458
|
+
}]
|
|
1459
|
+
}],
|
|
1460
|
+
logout: [{
|
|
1461
|
+
type: i0.Output,
|
|
1462
|
+
args: ["logout"]
|
|
1463
|
+
}]
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
var LayoutNavMinimal = class LayoutNavMinimal {
|
|
1467
|
+
brand = input.required(...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
|
|
1468
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1469
|
+
minVersion: "12.0.0",
|
|
1470
|
+
version: "22.2.3",
|
|
1471
|
+
ngImport: i0,
|
|
1472
|
+
type: LayoutNavMinimal,
|
|
1473
|
+
deps: [],
|
|
1474
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1475
|
+
});
|
|
1476
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1477
|
+
minVersion: "17.1.0",
|
|
1478
|
+
version: "22.2.3",
|
|
1479
|
+
type: LayoutNavMinimal,
|
|
1480
|
+
isStandalone: true,
|
|
1481
|
+
selector: "LayoutNavMinimal",
|
|
1482
|
+
inputs: { brand: {
|
|
1483
|
+
classPropertyName: "brand",
|
|
1484
|
+
publicName: "brand",
|
|
1485
|
+
isSignal: true,
|
|
1486
|
+
isRequired: true,
|
|
1487
|
+
transformFunction: null
|
|
1488
|
+
} },
|
|
1489
|
+
host: { classAttribute: "contents" },
|
|
1490
|
+
ngImport: i0,
|
|
1491
|
+
template: `
|
|
1492
|
+
<NavigationSidebar>
|
|
1493
|
+
<NavigationHeader>
|
|
1494
|
+
<LayoutBrand [brand]="brand()" />
|
|
1495
|
+
</NavigationHeader>
|
|
1496
|
+
</NavigationSidebar>
|
|
1497
|
+
`,
|
|
1498
|
+
isInline: true,
|
|
1499
|
+
dependencies: [
|
|
1500
|
+
{
|
|
1501
|
+
kind: "component",
|
|
1502
|
+
type: NavigationSidebarComponent,
|
|
1503
|
+
selector: "NavigationSidebar",
|
|
1504
|
+
inputs: [
|
|
1505
|
+
"position",
|
|
1506
|
+
"collapsed",
|
|
1507
|
+
"nav-sidebar-collapse",
|
|
1508
|
+
"previewExpanded",
|
|
1509
|
+
"class"
|
|
1510
|
+
]
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
kind: "component",
|
|
1514
|
+
type: NavigationHeaderComponent,
|
|
1515
|
+
selector: "NavigationHeader",
|
|
1516
|
+
inputs: ["toggle", "class"]
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
kind: "component",
|
|
1520
|
+
type: LayoutBrand,
|
|
1521
|
+
selector: "LayoutBrand",
|
|
1522
|
+
inputs: ["brand", "compact"]
|
|
1523
|
+
}
|
|
1524
|
+
]
|
|
1525
|
+
});
|
|
1526
|
+
};
|
|
1527
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1528
|
+
minVersion: "12.0.0",
|
|
1529
|
+
version: "22.2.3",
|
|
1530
|
+
ngImport: i0,
|
|
1531
|
+
type: LayoutNavMinimal,
|
|
1532
|
+
decorators: [{
|
|
1533
|
+
type: Component,
|
|
1534
|
+
args: [{
|
|
1535
|
+
selector: "LayoutNavMinimal",
|
|
1536
|
+
imports: [
|
|
1537
|
+
NavigationSidebarComponent,
|
|
1538
|
+
NavigationHeaderComponent,
|
|
1539
|
+
LayoutBrand
|
|
1540
|
+
],
|
|
1541
|
+
host: { class: "contents" },
|
|
1542
|
+
template: `
|
|
1543
|
+
<NavigationSidebar>
|
|
1544
|
+
<NavigationHeader>
|
|
1545
|
+
<LayoutBrand [brand]="brand()" />
|
|
1546
|
+
</NavigationHeader>
|
|
1547
|
+
</NavigationSidebar>
|
|
1548
|
+
`
|
|
1549
|
+
}]
|
|
1550
|
+
}],
|
|
1551
|
+
propDecorators: { brand: [{
|
|
1552
|
+
type: i0.Input,
|
|
1553
|
+
args: [{
|
|
1554
|
+
isSignal: true,
|
|
1555
|
+
alias: "brand",
|
|
1556
|
+
required: true
|
|
1557
|
+
}]
|
|
1558
|
+
}] }
|
|
1559
|
+
});
|
|
1560
|
+
const EMPTY_NAVIGATION_BADGE_CONTEXT = Object.freeze({});
|
|
1561
|
+
const MAIN_NAVIGATION_ID = "main";
|
|
1562
|
+
const MINIDOCK_NAVIGATION_DATA_ID = "main-minidock";
|
|
1563
|
+
var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
1564
|
+
surface = input(LAYOUT_DEFAULT_SURFACE, ...ngDevMode ? [{ debugName: "surface" }] : /* istanbul ignore next */ []);
|
|
1565
|
+
appearance = input(LAYOUT_DEFAULT_APPEARANCE, {
|
|
1566
|
+
...ngDevMode ? { debugName: "appearance" } : /* istanbul ignore next */ {},
|
|
1567
|
+
alias: "layout-appearance"
|
|
1568
|
+
});
|
|
1569
|
+
width = input(LAYOUT_DEFAULT_WIDTH, ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
1570
|
+
layoutType = input(LAYOUT_DEFAULT_TYPE, {
|
|
1571
|
+
...ngDevMode ? { debugName: "layoutType" } : /* istanbul ignore next */ {},
|
|
1572
|
+
alias: "layout-type"
|
|
1573
|
+
});
|
|
1574
|
+
navType = input("sidebar", {
|
|
1575
|
+
...ngDevMode ? { debugName: "navType" } : /* istanbul ignore next */ {},
|
|
1576
|
+
alias: "nav-type"
|
|
1577
|
+
});
|
|
1578
|
+
navTypeMode = input("default", {
|
|
1579
|
+
...ngDevMode ? { debugName: "navTypeMode" } : /* istanbul ignore next */ {},
|
|
1580
|
+
alias: "nav-type-mode"
|
|
1581
|
+
});
|
|
1582
|
+
dockbarRouteContext = input(null, {
|
|
1583
|
+
...ngDevMode ? { debugName: "dockbarRouteContext" } : /* istanbul ignore next */ {},
|
|
1584
|
+
alias: "dockbar-route-context"
|
|
1585
|
+
});
|
|
1586
|
+
badgeContext = input(null, {
|
|
1587
|
+
...ngDevMode ? { debugName: "badgeContext" } : /* istanbul ignore next */ {},
|
|
1588
|
+
alias: "badge-context"
|
|
1589
|
+
});
|
|
1590
|
+
resolvedBadgeContext = computed(() => this.badgeContext() ?? this.dockbarBadgeContext(), ...ngDevMode ? [{ debugName: "resolvedBadgeContext" }] : /* istanbul ignore next */ []);
|
|
1591
|
+
dockbarBadgeContext = input(EMPTY_NAVIGATION_BADGE_CONTEXT, {
|
|
1592
|
+
...ngDevMode ? { debugName: "dockbarBadgeContext" } : /* istanbul ignore next */ {},
|
|
1593
|
+
alias: "dockbar-badge"
|
|
1594
|
+
});
|
|
1595
|
+
data = input.required(...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
1596
|
+
brand = input.required(...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
|
|
1597
|
+
user = input.required(...ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []);
|
|
1598
|
+
contentId = input("main-content", {
|
|
1599
|
+
...ngDevMode ? { debugName: "contentId" } : /* istanbul ignore next */ {},
|
|
1600
|
+
alias: "content-id"
|
|
1601
|
+
});
|
|
1602
|
+
skipLinkLabel = input("Skip to main content", {
|
|
1603
|
+
...ngDevMode ? { debugName: "skipLinkLabel" } : /* istanbul ignore next */ {},
|
|
1604
|
+
alias: "skip-link-label"
|
|
1605
|
+
});
|
|
1606
|
+
focusOnNavigation = input(false, {
|
|
1607
|
+
...ngDevMode ? { debugName: "focusOnNavigation" } : /* istanbul ignore next */ {},
|
|
1608
|
+
alias: "focus-on-navigation"
|
|
1609
|
+
});
|
|
1610
|
+
mobileNavOpen = model(false, {
|
|
1611
|
+
...ngDevMode ? { debugName: "mobileNavOpen" } : /* istanbul ignore next */ {},
|
|
1612
|
+
alias: "mobile-nav-open"
|
|
1613
|
+
});
|
|
1614
|
+
mobileNavLabel = input("Open navigation", {
|
|
1615
|
+
...ngDevMode ? { debugName: "mobileNavLabel" } : /* istanbul ignore next */ {},
|
|
1616
|
+
alias: "mobile-nav-label"
|
|
1617
|
+
});
|
|
1618
|
+
closeMobileNavLabel = input("Close navigation", {
|
|
1619
|
+
...ngDevMode ? { debugName: "closeMobileNavLabel" } : /* istanbul ignore next */ {},
|
|
1620
|
+
alias: "close-mobile-nav-label"
|
|
1621
|
+
});
|
|
1622
|
+
logout = output();
|
|
1623
|
+
identity = inject(LayoutIdentityService);
|
|
1624
|
+
navigation = inject(NAVIGATION_ADAPTER);
|
|
1625
|
+
desktopNavigationDataOwner = {};
|
|
1626
|
+
minidockMainDataOwner = {};
|
|
1627
|
+
document = inject(DOCUMENT, { optional: true });
|
|
1628
|
+
mobileNavTriggerRef = viewChild("mobileNavTrigger", ...ngDevMode ? [{ debugName: "mobileNavTriggerRef" }] : /* istanbul ignore next */ []);
|
|
1629
|
+
constructor() {
|
|
1630
|
+
effect(() => this.identity.setBrand(this.brand()));
|
|
1631
|
+
effect(() => this.identity.setUser(this.user()));
|
|
1632
|
+
effect((onCleanup) => {
|
|
1633
|
+
if (this.navType() !== "desktop") return;
|
|
1634
|
+
const dataId = this.effectiveLayoutType() === "empty" ? MAIN_NAVIGATION_ID : LAYOUT_DESKTOP_NAVIGATION_DATA_ID;
|
|
1635
|
+
this.navigation.publishData(dataId, this.data(), this.desktopNavigationDataOwner);
|
|
1636
|
+
onCleanup(() => this.navigation.clearData(dataId, this.desktopNavigationDataOwner));
|
|
1637
|
+
});
|
|
1638
|
+
effect((onCleanup) => {
|
|
1639
|
+
if (this.navKind() !== "minidock") return;
|
|
1640
|
+
this.navigation.publishData(MAIN_NAVIGATION_ID, this.data(), this.minidockMainDataOwner);
|
|
1641
|
+
onCleanup(() => this.navigation.clearData(MAIN_NAVIGATION_ID, this.minidockMainDataOwner));
|
|
1642
|
+
});
|
|
1643
|
+
effect((onCleanup) => {
|
|
1644
|
+
const media = this.document?.defaultView?.matchMedia?.("(min-width: 640px)");
|
|
1645
|
+
if (!media) return;
|
|
1646
|
+
const closeOnDesktop = (event) => {
|
|
1647
|
+
if (event.matches) this.mobileNavOpen.set(false);
|
|
1648
|
+
};
|
|
1649
|
+
closeOnDesktop(media);
|
|
1650
|
+
media.addEventListener("change", closeOnDesktop);
|
|
1651
|
+
onCleanup(() => media.removeEventListener("change", closeOnDesktop));
|
|
1652
|
+
});
|
|
1653
|
+
}
|
|
1654
|
+
contentClassInput = input("", {
|
|
1655
|
+
...ngDevMode ? { debugName: "contentClassInput" } : /* istanbul ignore next */ {},
|
|
1656
|
+
alias: "content-class"
|
|
1657
|
+
});
|
|
1658
|
+
effectiveLayoutType = computed(() => {
|
|
1659
|
+
const layoutType = this.layoutType();
|
|
1660
|
+
if (layoutType === "empty" || layoutType === "fluid") return layoutType;
|
|
1661
|
+
return this.navType() === "navbar" || this.navType() === "flyout" || this.navType() === "desktop" ? "horizontal" : "vertical";
|
|
1662
|
+
}, ...ngDevMode ? [{ debugName: "effectiveLayoutType" }] : /* istanbul ignore next */ []);
|
|
1663
|
+
navKind = computed(() => {
|
|
1664
|
+
const layoutType = this.layoutType();
|
|
1665
|
+
const navType = this.navType();
|
|
1666
|
+
return layoutType === "empty" || layoutType === "fluid" || navType === "desktop" ? "brand" : navType;
|
|
1667
|
+
}, ...ngDevMode ? [{ debugName: "navKind" }] : /* istanbul ignore next */ []);
|
|
1668
|
+
minidockData = computed(() => toMinidockItems(this.data()), ...ngDevMode ? [{ debugName: "minidockData" }] : /* istanbul ignore next */ []);
|
|
1669
|
+
desktopDataId = computed(() => this.navKind() === "minidock" ? MINIDOCK_NAVIGATION_DATA_ID : MAIN_NAVIGATION_ID, ...ngDevMode ? [{ debugName: "desktopDataId" }] : /* istanbul ignore next */ []);
|
|
1670
|
+
desktopData = computed(() => this.navKind() === "minidock" ? this.minidockData() : this.data(), ...ngDevMode ? [{ debugName: "desktopData" }] : /* istanbul ignore next */ []);
|
|
1671
|
+
navClass = computed(() => this.effectiveLayoutType() === "horizontal" ? "w-full" : "h-full", ...ngDevMode ? [{ debugName: "navClass" }] : /* istanbul ignore next */ []);
|
|
1672
|
+
showsMobileNavigation = computed(() => {
|
|
1673
|
+
if (this.navType() === "desktop") return false;
|
|
1674
|
+
const type = this.effectiveLayoutType();
|
|
1675
|
+
return type === "vertical" || type === "horizontal";
|
|
1676
|
+
}, ...ngDevMode ? [{ debugName: "showsMobileNavigation" }] : /* istanbul ignore next */ []);
|
|
1677
|
+
defaultShellClasses = computed(() => {
|
|
1678
|
+
const type = this.effectiveLayoutType();
|
|
1679
|
+
if (type === "empty" || type === "fluid" || this.navType() === "desktop") return "contents";
|
|
1680
|
+
return cn("relative grid h-full min-h-0 w-full min-w-0 grid-cols-1 grid-rows-[3rem_minmax(0,1fr)]", type === "horizontal" ? "sm:flex sm:flex-col" : "col-span-2 sm:grid-cols-[auto_minmax(0,1fr)] sm:grid-rows-1");
|
|
1681
|
+
}, ...ngDevMode ? [{ debugName: "defaultShellClasses" }] : /* istanbul ignore next */ []);
|
|
1682
|
+
contentClass = computed(() => cn(this.effectiveLayoutType() === "fluid" ? "w-full max-w-3xl" : "", this.contentClassInput()), ...ngDevMode ? [{ debugName: "contentClass" }] : /* istanbul ignore next */ []);
|
|
1683
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1684
|
+
minVersion: "12.0.0",
|
|
1685
|
+
version: "22.2.3",
|
|
1686
|
+
ngImport: i0,
|
|
1687
|
+
type: LayoutWrapperDefault,
|
|
1688
|
+
deps: [],
|
|
1689
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1690
|
+
});
|
|
1691
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1692
|
+
minVersion: "17.0.0",
|
|
1693
|
+
version: "22.2.3",
|
|
1694
|
+
type: LayoutWrapperDefault,
|
|
1695
|
+
isStandalone: true,
|
|
1696
|
+
selector: "LayoutWrapperDefault",
|
|
1697
|
+
inputs: {
|
|
1698
|
+
surface: {
|
|
1699
|
+
classPropertyName: "surface",
|
|
1700
|
+
publicName: "surface",
|
|
1701
|
+
isSignal: true,
|
|
1702
|
+
isRequired: false,
|
|
1703
|
+
transformFunction: null
|
|
1704
|
+
},
|
|
1705
|
+
appearance: {
|
|
1706
|
+
classPropertyName: "appearance",
|
|
1707
|
+
publicName: "layout-appearance",
|
|
1708
|
+
isSignal: true,
|
|
1709
|
+
isRequired: false,
|
|
1710
|
+
transformFunction: null
|
|
1711
|
+
},
|
|
1712
|
+
width: {
|
|
1713
|
+
classPropertyName: "width",
|
|
1714
|
+
publicName: "width",
|
|
1715
|
+
isSignal: true,
|
|
1716
|
+
isRequired: false,
|
|
1717
|
+
transformFunction: null
|
|
1718
|
+
},
|
|
1719
|
+
layoutType: {
|
|
1720
|
+
classPropertyName: "layoutType",
|
|
1721
|
+
publicName: "layout-type",
|
|
1722
|
+
isSignal: true,
|
|
1723
|
+
isRequired: false,
|
|
1724
|
+
transformFunction: null
|
|
1725
|
+
},
|
|
1726
|
+
navType: {
|
|
1727
|
+
classPropertyName: "navType",
|
|
1728
|
+
publicName: "nav-type",
|
|
1729
|
+
isSignal: true,
|
|
1730
|
+
isRequired: false,
|
|
1731
|
+
transformFunction: null
|
|
1732
|
+
},
|
|
1733
|
+
navTypeMode: {
|
|
1734
|
+
classPropertyName: "navTypeMode",
|
|
1735
|
+
publicName: "nav-type-mode",
|
|
1736
|
+
isSignal: true,
|
|
1737
|
+
isRequired: false,
|
|
1738
|
+
transformFunction: null
|
|
1739
|
+
},
|
|
1740
|
+
dockbarRouteContext: {
|
|
1741
|
+
classPropertyName: "dockbarRouteContext",
|
|
1742
|
+
publicName: "dockbar-route-context",
|
|
1743
|
+
isSignal: true,
|
|
1744
|
+
isRequired: false,
|
|
1745
|
+
transformFunction: null
|
|
1746
|
+
},
|
|
1747
|
+
badgeContext: {
|
|
1748
|
+
classPropertyName: "badgeContext",
|
|
1749
|
+
publicName: "badge-context",
|
|
1750
|
+
isSignal: true,
|
|
1751
|
+
isRequired: false,
|
|
1752
|
+
transformFunction: null
|
|
1753
|
+
},
|
|
1754
|
+
dockbarBadgeContext: {
|
|
1755
|
+
classPropertyName: "dockbarBadgeContext",
|
|
1756
|
+
publicName: "dockbar-badge",
|
|
1757
|
+
isSignal: true,
|
|
1758
|
+
isRequired: false,
|
|
1759
|
+
transformFunction: null
|
|
1760
|
+
},
|
|
1761
|
+
data: {
|
|
1762
|
+
classPropertyName: "data",
|
|
1763
|
+
publicName: "data",
|
|
1764
|
+
isSignal: true,
|
|
1765
|
+
isRequired: true,
|
|
1766
|
+
transformFunction: null
|
|
1767
|
+
},
|
|
1768
|
+
brand: {
|
|
1769
|
+
classPropertyName: "brand",
|
|
1770
|
+
publicName: "brand",
|
|
1771
|
+
isSignal: true,
|
|
1772
|
+
isRequired: true,
|
|
1773
|
+
transformFunction: null
|
|
1774
|
+
},
|
|
1775
|
+
user: {
|
|
1776
|
+
classPropertyName: "user",
|
|
1777
|
+
publicName: "user",
|
|
1778
|
+
isSignal: true,
|
|
1779
|
+
isRequired: true,
|
|
1780
|
+
transformFunction: null
|
|
1781
|
+
},
|
|
1782
|
+
contentId: {
|
|
1783
|
+
classPropertyName: "contentId",
|
|
1784
|
+
publicName: "content-id",
|
|
1785
|
+
isSignal: true,
|
|
1786
|
+
isRequired: false,
|
|
1787
|
+
transformFunction: null
|
|
1788
|
+
},
|
|
1789
|
+
skipLinkLabel: {
|
|
1790
|
+
classPropertyName: "skipLinkLabel",
|
|
1791
|
+
publicName: "skip-link-label",
|
|
1792
|
+
isSignal: true,
|
|
1793
|
+
isRequired: false,
|
|
1794
|
+
transformFunction: null
|
|
1795
|
+
},
|
|
1796
|
+
focusOnNavigation: {
|
|
1797
|
+
classPropertyName: "focusOnNavigation",
|
|
1798
|
+
publicName: "focus-on-navigation",
|
|
1799
|
+
isSignal: true,
|
|
1800
|
+
isRequired: false,
|
|
1801
|
+
transformFunction: null
|
|
1802
|
+
},
|
|
1803
|
+
mobileNavOpen: {
|
|
1804
|
+
classPropertyName: "mobileNavOpen",
|
|
1805
|
+
publicName: "mobile-nav-open",
|
|
1806
|
+
isSignal: true,
|
|
1807
|
+
isRequired: false,
|
|
1808
|
+
transformFunction: null
|
|
1809
|
+
},
|
|
1810
|
+
mobileNavLabel: {
|
|
1811
|
+
classPropertyName: "mobileNavLabel",
|
|
1812
|
+
publicName: "mobile-nav-label",
|
|
1813
|
+
isSignal: true,
|
|
1814
|
+
isRequired: false,
|
|
1815
|
+
transformFunction: null
|
|
1816
|
+
},
|
|
1817
|
+
closeMobileNavLabel: {
|
|
1818
|
+
classPropertyName: "closeMobileNavLabel",
|
|
1819
|
+
publicName: "close-mobile-nav-label",
|
|
1820
|
+
isSignal: true,
|
|
1821
|
+
isRequired: false,
|
|
1822
|
+
transformFunction: null
|
|
1823
|
+
},
|
|
1824
|
+
contentClassInput: {
|
|
1825
|
+
classPropertyName: "contentClassInput",
|
|
1826
|
+
publicName: "content-class",
|
|
1827
|
+
isSignal: true,
|
|
1828
|
+
isRequired: false,
|
|
1829
|
+
transformFunction: null
|
|
1830
|
+
}
|
|
1831
|
+
},
|
|
1832
|
+
outputs: {
|
|
1833
|
+
mobileNavOpen: "mobile-nav-openChange",
|
|
1834
|
+
logout: "logout"
|
|
1835
|
+
},
|
|
1836
|
+
host: { classAttribute: "contents" },
|
|
1837
|
+
viewQueries: [{
|
|
1838
|
+
propertyName: "mobileNavTriggerRef",
|
|
1839
|
+
first: true,
|
|
1840
|
+
predicate: ["mobileNavTrigger"],
|
|
1841
|
+
descendants: true,
|
|
1842
|
+
isSignal: true
|
|
1843
|
+
}],
|
|
1844
|
+
ngImport: i0,
|
|
1845
|
+
template: `
|
|
1846
|
+
<Layout
|
|
1847
|
+
[surface]="surface()"
|
|
1848
|
+
[layout-appearance]="appearance()"
|
|
1849
|
+
[width]="width()"
|
|
1850
|
+
[layout-type]="effectiveLayoutType()"
|
|
1851
|
+
>
|
|
1852
|
+
<!-- Skeleton bersama: dipakai ulang oleh setiap wrapper di @switch bawah. -->
|
|
1853
|
+
<ng-template #body>
|
|
1854
|
+
<div data-layout-default-shell [class]="defaultShellClasses()">
|
|
1855
|
+
<a
|
|
1856
|
+
[attr.href]="'#' + contentId()"
|
|
1857
|
+
class="sr-only z-50 rounded-md bg-background px-3 py-2 text-sm text-foreground shadow-md focus:not-sr-only focus:absolute focus:left-2 focus:top-2 focus:outline-none focus:ring-2 focus:ring-ring"
|
|
1858
|
+
>
|
|
1859
|
+
{{ skipLinkLabel() }}
|
|
1860
|
+
</a>
|
|
1861
|
+
|
|
1862
|
+
@if (showsMobileNavigation()) {
|
|
1863
|
+
<div
|
|
1864
|
+
data-layout-mobile-app-bar
|
|
1865
|
+
class="flex h-12 min-h-12 items-center gap-2 border-b border-border bg-background px-2 sm:hidden"
|
|
1866
|
+
>
|
|
1867
|
+
<button
|
|
1868
|
+
type="button"
|
|
1869
|
+
#mobileNavTrigger
|
|
1870
|
+
class="inline-flex size-10 shrink-0 items-center justify-center rounded-md text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none"
|
|
1871
|
+
[attr.aria-label]="mobileNavLabel()"
|
|
1872
|
+
aria-haspopup="dialog"
|
|
1873
|
+
[attr.aria-expanded]="mobileNavOpen()"
|
|
1874
|
+
(click)="mobileNavOpen.set(true)"
|
|
1875
|
+
>
|
|
1876
|
+
<span aria-hidden="true" class="grid w-5 gap-1">
|
|
1877
|
+
<span class="h-0.5 rounded-full bg-current"></span>
|
|
1878
|
+
<span class="h-0.5 rounded-full bg-current"></span>
|
|
1879
|
+
<span class="h-0.5 rounded-full bg-current"></span>
|
|
1880
|
+
</span>
|
|
1881
|
+
</button>
|
|
1882
|
+
|
|
1883
|
+
<div class="flex min-w-0 flex-1 items-center gap-2">
|
|
1884
|
+
<LayoutBrand [brand]="brand()" />
|
|
1885
|
+
</div>
|
|
1886
|
+
|
|
1887
|
+
@defer (when mobileNavOpen()) {
|
|
1888
|
+
<!-- Inside the sheet, closing is the action: the sidebar's own collapse
|
|
1889
|
+
toggle is hidden so the sheet close is the one control in the corner. -->
|
|
1890
|
+
<Sheet
|
|
1891
|
+
[open]="mobileNavOpen()"
|
|
1892
|
+
(openChange)="mobileNavOpen.set($event)"
|
|
1893
|
+
[restoreFocus]="mobileNavTriggerRef()?.nativeElement ?? null"
|
|
1894
|
+
side="left"
|
|
1895
|
+
class="w-3/4 p-0! sm:max-w-sm [&_.sheet-close-button]:z-50 [&_[data-navigation-header-toggle]]:hidden"
|
|
1896
|
+
[closeButtonLabel]="closeMobileNavLabel()"
|
|
1897
|
+
>
|
|
1898
|
+
<SheetTitle class="sr-only">{{ mobileNavLabel() }}</SheetTitle>
|
|
1899
|
+
<Navigation
|
|
1900
|
+
id="main-mobile"
|
|
1901
|
+
data-id="main"
|
|
1902
|
+
[data]="data()"
|
|
1903
|
+
[badge-context]="resolvedBadgeContext()"
|
|
1904
|
+
ariaLabel="Primary navigation"
|
|
1905
|
+
class="h-full w-full"
|
|
1906
|
+
(itemSelected)="mobileNavOpen.set(false)"
|
|
1907
|
+
>
|
|
1908
|
+
<LayoutNavSidebar
|
|
1909
|
+
[brand]="brand()"
|
|
1910
|
+
[user]="user()"
|
|
1911
|
+
[appearance]="appearance()"
|
|
1912
|
+
(logout)="logout.emit()"
|
|
1913
|
+
/>
|
|
1914
|
+
</Navigation>
|
|
1915
|
+
</Sheet>
|
|
1916
|
+
}
|
|
1917
|
+
</div>
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
@if (navType() !== 'desktop') {
|
|
1921
|
+
<LayoutNavigation
|
|
1922
|
+
ariaLabel="Primary navigation"
|
|
1923
|
+
[landmark]="false"
|
|
1924
|
+
class="max-sm:hidden"
|
|
1925
|
+
>
|
|
1926
|
+
<Navigation
|
|
1927
|
+
id="main"
|
|
1928
|
+
[data-id]="desktopDataId()"
|
|
1929
|
+
[data]="desktopData()"
|
|
1930
|
+
[badge-context]="resolvedBadgeContext()"
|
|
1931
|
+
[class]="navClass()"
|
|
1932
|
+
>
|
|
1933
|
+
@switch (navKind()) {
|
|
1934
|
+
@case ('navbar') {
|
|
1935
|
+
<LayoutNavNavbar
|
|
1936
|
+
[brand]="brand()"
|
|
1937
|
+
[user]="user()"
|
|
1938
|
+
[appearance]="appearance()"
|
|
1939
|
+
(logout)="logout.emit()"
|
|
1940
|
+
/>
|
|
1941
|
+
}
|
|
1942
|
+
@case ('flyout') {
|
|
1943
|
+
<LayoutNavFlyout
|
|
1944
|
+
[brand]="brand()"
|
|
1945
|
+
[user]="user()"
|
|
1946
|
+
[appearance]="appearance()"
|
|
1947
|
+
(logout)="logout.emit()"
|
|
1948
|
+
/>
|
|
1949
|
+
}
|
|
1950
|
+
@case ('dockbar') {
|
|
1951
|
+
<LayoutNavDockbar
|
|
1952
|
+
[brand]="brand()"
|
|
1953
|
+
[user]="user()"
|
|
1954
|
+
[appearance]="appearance()"
|
|
1955
|
+
[nav-type-mode]="navTypeMode()"
|
|
1956
|
+
[dockbar-route-context]="dockbarRouteContext()"
|
|
1957
|
+
[dockbar-badge]="dockbarBadgeContext()"
|
|
1958
|
+
(logout)="logout.emit()"
|
|
1959
|
+
/>
|
|
1960
|
+
}
|
|
1961
|
+
@case ('minidock') {
|
|
1962
|
+
<LayoutNavMinidock
|
|
1963
|
+
[brand]="brand()"
|
|
1964
|
+
[user]="user()"
|
|
1965
|
+
[appearance]="appearance()"
|
|
1966
|
+
(logout)="logout.emit()"
|
|
1967
|
+
/>
|
|
1968
|
+
}
|
|
1969
|
+
@case ('brand') {
|
|
1970
|
+
<LayoutNavMinimal [brand]="brand()" />
|
|
1971
|
+
}
|
|
1972
|
+
@default {
|
|
1973
|
+
<LayoutNavSidebar
|
|
1974
|
+
[brand]="brand()"
|
|
1975
|
+
[user]="user()"
|
|
1976
|
+
[appearance]="appearance()"
|
|
1977
|
+
[nav-type-mode]="navTypeMode()"
|
|
1978
|
+
(logout)="logout.emit()"
|
|
1979
|
+
/>
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
</Navigation>
|
|
1983
|
+
</LayoutNavigation>
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
<LayoutContent
|
|
1987
|
+
[class]="contentClass()"
|
|
1988
|
+
[content-id]="contentId()"
|
|
1989
|
+
[focus-on-navigation]="focusOnNavigation()"
|
|
1990
|
+
>
|
|
1991
|
+
<ng-content />
|
|
1992
|
+
</LayoutContent>
|
|
1993
|
+
</div>
|
|
1994
|
+
</ng-template>
|
|
1995
|
+
|
|
1996
|
+
@switch (effectiveLayoutType()) {
|
|
1997
|
+
@case ('empty') {
|
|
1998
|
+
<LayoutEmpty>
|
|
1999
|
+
<ng-container [ngTemplateOutlet]="body" />
|
|
2000
|
+
</LayoutEmpty>
|
|
2001
|
+
}
|
|
2002
|
+
@case ('fluid') {
|
|
2003
|
+
<LayoutFluid>
|
|
2004
|
+
<ng-container [ngTemplateOutlet]="body" />
|
|
2005
|
+
</LayoutFluid>
|
|
2006
|
+
}
|
|
2007
|
+
@case ('horizontal') {
|
|
2008
|
+
<LayoutHorizontal>
|
|
2009
|
+
<ng-container [ngTemplateOutlet]="body" />
|
|
2010
|
+
</LayoutHorizontal>
|
|
2011
|
+
}
|
|
2012
|
+
@default {
|
|
2013
|
+
<LayoutVertical>
|
|
2014
|
+
<ng-container [ngTemplateOutlet]="body" />
|
|
2015
|
+
</LayoutVertical>
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
</Layout>
|
|
2019
|
+
`,
|
|
2020
|
+
isInline: true,
|
|
2021
|
+
dependencies: [
|
|
2022
|
+
{
|
|
2023
|
+
kind: "directive",
|
|
2024
|
+
type: NgTemplateOutlet,
|
|
2025
|
+
selector: "[ngTemplateOutlet]",
|
|
2026
|
+
inputs: [
|
|
2027
|
+
"ngTemplateOutletContext",
|
|
2028
|
+
"ngTemplateOutlet",
|
|
2029
|
+
"ngTemplateOutletInjector"
|
|
2030
|
+
]
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
kind: "component",
|
|
2034
|
+
type: LayoutComponent,
|
|
2035
|
+
selector: "Layout",
|
|
2036
|
+
inputs: [
|
|
2037
|
+
"surface",
|
|
2038
|
+
"appearance",
|
|
2039
|
+
"layout-appearance",
|
|
2040
|
+
"width",
|
|
2041
|
+
"layout-type",
|
|
2042
|
+
"class"
|
|
2043
|
+
]
|
|
2044
|
+
},
|
|
2045
|
+
{
|
|
2046
|
+
kind: "component",
|
|
2047
|
+
type: LayoutVerticalComponent,
|
|
2048
|
+
selector: "LayoutVertical",
|
|
2049
|
+
inputs: ["class"]
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
kind: "component",
|
|
2053
|
+
type: LayoutHorizontalComponent,
|
|
2054
|
+
selector: "LayoutHorizontal",
|
|
2055
|
+
inputs: ["class"]
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
kind: "component",
|
|
2059
|
+
type: LayoutEmptyComponent,
|
|
2060
|
+
selector: "LayoutEmpty",
|
|
2061
|
+
inputs: ["class"]
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
kind: "component",
|
|
2065
|
+
type: LayoutFluidComponent,
|
|
2066
|
+
selector: "LayoutFluid",
|
|
2067
|
+
inputs: ["class"]
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
kind: "component",
|
|
2071
|
+
type: LayoutNavigationComponent,
|
|
2072
|
+
selector: "LayoutNavigation",
|
|
2073
|
+
inputs: [
|
|
2074
|
+
"ariaLabel",
|
|
2075
|
+
"landmark",
|
|
2076
|
+
"class"
|
|
2077
|
+
]
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
kind: "component",
|
|
2081
|
+
type: LayoutContentComponent,
|
|
2082
|
+
selector: "LayoutContent",
|
|
2083
|
+
inputs: [
|
|
2084
|
+
"class",
|
|
2085
|
+
"content-id",
|
|
2086
|
+
"focus-on-navigation"
|
|
2087
|
+
]
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
kind: "component",
|
|
2091
|
+
type: NavigationContainerComponent,
|
|
2092
|
+
selector: "Navigation",
|
|
2093
|
+
inputs: [
|
|
2094
|
+
"id",
|
|
2095
|
+
"data-id",
|
|
2096
|
+
"data",
|
|
2097
|
+
"badge-context",
|
|
2098
|
+
"ariaLabel",
|
|
2099
|
+
"compact",
|
|
2100
|
+
"collapse-tree",
|
|
2101
|
+
"class",
|
|
2102
|
+
"itemClass",
|
|
2103
|
+
"nav-group-class",
|
|
2104
|
+
"activeIds",
|
|
2105
|
+
"activeUrl",
|
|
2106
|
+
"openedIds"
|
|
2107
|
+
],
|
|
2108
|
+
outputs: ["openedIdsChange", "itemSelected"]
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
kind: "component",
|
|
2112
|
+
type: LayoutBrand,
|
|
2113
|
+
selector: "LayoutBrand",
|
|
2114
|
+
inputs: ["brand", "compact"]
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
kind: "component",
|
|
2118
|
+
type: LayoutNavSidebar,
|
|
2119
|
+
selector: "LayoutNavSidebar",
|
|
2120
|
+
inputs: [
|
|
2121
|
+
"brand",
|
|
2122
|
+
"user",
|
|
2123
|
+
"appearance",
|
|
2124
|
+
"nav-type-mode"
|
|
2125
|
+
],
|
|
2126
|
+
outputs: ["logout"]
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
kind: "component",
|
|
2130
|
+
type: LayoutNavDockbar,
|
|
2131
|
+
selector: "LayoutNavDockbar",
|
|
2132
|
+
inputs: [
|
|
2133
|
+
"brand",
|
|
2134
|
+
"user",
|
|
2135
|
+
"appearance",
|
|
2136
|
+
"nav-type-mode",
|
|
2137
|
+
"dockbar-route-context",
|
|
2138
|
+
"badge-context",
|
|
2139
|
+
"dockbar-badge"
|
|
2140
|
+
],
|
|
2141
|
+
outputs: ["logout"]
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
kind: "component",
|
|
2145
|
+
type: LayoutNavMinidock,
|
|
2146
|
+
selector: "LayoutNavMinidock",
|
|
2147
|
+
inputs: [
|
|
2148
|
+
"brand",
|
|
2149
|
+
"user",
|
|
2150
|
+
"appearance"
|
|
2151
|
+
],
|
|
2152
|
+
outputs: ["logout"]
|
|
2153
|
+
},
|
|
2154
|
+
{
|
|
2155
|
+
kind: "component",
|
|
2156
|
+
type: LayoutNavNavbar,
|
|
2157
|
+
selector: "LayoutNavNavbar",
|
|
2158
|
+
inputs: [
|
|
2159
|
+
"brand",
|
|
2160
|
+
"user",
|
|
2161
|
+
"appearance"
|
|
2162
|
+
],
|
|
2163
|
+
outputs: ["logout"]
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
kind: "component",
|
|
2167
|
+
type: LayoutNavFlyout,
|
|
2168
|
+
selector: "LayoutNavFlyout",
|
|
2169
|
+
inputs: [
|
|
2170
|
+
"brand",
|
|
2171
|
+
"user",
|
|
2172
|
+
"appearance"
|
|
2173
|
+
],
|
|
2174
|
+
outputs: ["logout"]
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
kind: "component",
|
|
2178
|
+
type: LayoutNavMinimal,
|
|
2179
|
+
selector: "LayoutNavMinimal",
|
|
2180
|
+
inputs: ["brand"]
|
|
2181
|
+
}
|
|
2182
|
+
],
|
|
2183
|
+
deferBlockDependencies: [() => [
|
|
2184
|
+
import("@edsis/angular/component/sheet").then((m) => m.SheetComponent),
|
|
2185
|
+
import("@edsis/angular/component/sheet").then((m) => m.SheetTitleComponent),
|
|
2186
|
+
NavigationContainerComponent,
|
|
2187
|
+
LayoutNavSidebar
|
|
2188
|
+
]]
|
|
2189
|
+
});
|
|
2190
|
+
};
|
|
2191
|
+
i0.ɵɵngDeclareClassMetadataAsync({
|
|
2192
|
+
minVersion: "18.0.0",
|
|
2193
|
+
version: "22.2.3",
|
|
2194
|
+
ngImport: i0,
|
|
2195
|
+
type: LayoutWrapperDefault,
|
|
2196
|
+
resolveDeferredDeps: () => [import("@edsis/angular/component/sheet").then((m) => m.SheetComponent), import("@edsis/angular/component/sheet").then((m) => m.SheetTitleComponent)],
|
|
2197
|
+
resolveMetadata: (SheetComponent, SheetTitleComponent) => ({
|
|
2198
|
+
decorators: [{
|
|
2199
|
+
type: Component,
|
|
2200
|
+
args: [{
|
|
2201
|
+
selector: "LayoutWrapperDefault",
|
|
2202
|
+
host: { class: "contents" },
|
|
2203
|
+
imports: [
|
|
2204
|
+
NgTemplateOutlet,
|
|
2205
|
+
LayoutComponent,
|
|
2206
|
+
LayoutVerticalComponent,
|
|
2207
|
+
LayoutHorizontalComponent,
|
|
2208
|
+
LayoutEmptyComponent,
|
|
2209
|
+
LayoutFluidComponent,
|
|
2210
|
+
LayoutNavigationComponent,
|
|
2211
|
+
LayoutContentComponent,
|
|
2212
|
+
SheetComponent,
|
|
2213
|
+
SheetTitleComponent,
|
|
2214
|
+
NavigationContainerComponent,
|
|
2215
|
+
LayoutBrand,
|
|
2216
|
+
LayoutNavSidebar,
|
|
2217
|
+
LayoutNavDockbar,
|
|
2218
|
+
LayoutNavMinidock,
|
|
2219
|
+
LayoutNavNavbar,
|
|
2220
|
+
LayoutNavFlyout,
|
|
2221
|
+
LayoutNavMinimal
|
|
2222
|
+
],
|
|
2223
|
+
template: `
|
|
2224
|
+
<Layout
|
|
2225
|
+
[surface]="surface()"
|
|
2226
|
+
[layout-appearance]="appearance()"
|
|
2227
|
+
[width]="width()"
|
|
2228
|
+
[layout-type]="effectiveLayoutType()"
|
|
2229
|
+
>
|
|
2230
|
+
<!-- Skeleton bersama: dipakai ulang oleh setiap wrapper di @switch bawah. -->
|
|
2231
|
+
<ng-template #body>
|
|
2232
|
+
<div data-layout-default-shell [class]="defaultShellClasses()">
|
|
2233
|
+
<a
|
|
2234
|
+
[attr.href]="'#' + contentId()"
|
|
2235
|
+
class="sr-only z-50 rounded-md bg-background px-3 py-2 text-sm text-foreground shadow-md focus:not-sr-only focus:absolute focus:left-2 focus:top-2 focus:outline-none focus:ring-2 focus:ring-ring"
|
|
2236
|
+
>
|
|
2237
|
+
{{ skipLinkLabel() }}
|
|
2238
|
+
</a>
|
|
2239
|
+
|
|
2240
|
+
@if (showsMobileNavigation()) {
|
|
2241
|
+
<div
|
|
2242
|
+
data-layout-mobile-app-bar
|
|
2243
|
+
class="flex h-12 min-h-12 items-center gap-2 border-b border-border bg-background px-2 sm:hidden"
|
|
2244
|
+
>
|
|
2245
|
+
<button
|
|
2246
|
+
type="button"
|
|
2247
|
+
#mobileNavTrigger
|
|
2248
|
+
class="inline-flex size-10 shrink-0 items-center justify-center rounded-md text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none"
|
|
2249
|
+
[attr.aria-label]="mobileNavLabel()"
|
|
2250
|
+
aria-haspopup="dialog"
|
|
2251
|
+
[attr.aria-expanded]="mobileNavOpen()"
|
|
2252
|
+
(click)="mobileNavOpen.set(true)"
|
|
2253
|
+
>
|
|
2254
|
+
<span aria-hidden="true" class="grid w-5 gap-1">
|
|
2255
|
+
<span class="h-0.5 rounded-full bg-current"></span>
|
|
2256
|
+
<span class="h-0.5 rounded-full bg-current"></span>
|
|
2257
|
+
<span class="h-0.5 rounded-full bg-current"></span>
|
|
2258
|
+
</span>
|
|
2259
|
+
</button>
|
|
2260
|
+
|
|
2261
|
+
<div class="flex min-w-0 flex-1 items-center gap-2">
|
|
2262
|
+
<LayoutBrand [brand]="brand()" />
|
|
2263
|
+
</div>
|
|
2264
|
+
|
|
2265
|
+
@defer (when mobileNavOpen()) {
|
|
2266
|
+
<!-- Inside the sheet, closing is the action: the sidebar's own collapse
|
|
2267
|
+
toggle is hidden so the sheet close is the one control in the corner. -->
|
|
2268
|
+
<Sheet
|
|
2269
|
+
[open]="mobileNavOpen()"
|
|
2270
|
+
(openChange)="mobileNavOpen.set($event)"
|
|
2271
|
+
[restoreFocus]="mobileNavTriggerRef()?.nativeElement ?? null"
|
|
2272
|
+
side="left"
|
|
2273
|
+
class="w-3/4 p-0! sm:max-w-sm [&_.sheet-close-button]:z-50 [&_[data-navigation-header-toggle]]:hidden"
|
|
2274
|
+
[closeButtonLabel]="closeMobileNavLabel()"
|
|
2275
|
+
>
|
|
2276
|
+
<SheetTitle class="sr-only">{{ mobileNavLabel() }}</SheetTitle>
|
|
2277
|
+
<Navigation
|
|
2278
|
+
id="main-mobile"
|
|
2279
|
+
data-id="main"
|
|
2280
|
+
[data]="data()"
|
|
2281
|
+
[badge-context]="resolvedBadgeContext()"
|
|
2282
|
+
ariaLabel="Primary navigation"
|
|
2283
|
+
class="h-full w-full"
|
|
2284
|
+
(itemSelected)="mobileNavOpen.set(false)"
|
|
2285
|
+
>
|
|
2286
|
+
<LayoutNavSidebar
|
|
2287
|
+
[brand]="brand()"
|
|
2288
|
+
[user]="user()"
|
|
2289
|
+
[appearance]="appearance()"
|
|
2290
|
+
(logout)="logout.emit()"
|
|
2291
|
+
/>
|
|
2292
|
+
</Navigation>
|
|
2293
|
+
</Sheet>
|
|
2294
|
+
}
|
|
2295
|
+
</div>
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
@if (navType() !== 'desktop') {
|
|
2299
|
+
<LayoutNavigation
|
|
2300
|
+
ariaLabel="Primary navigation"
|
|
2301
|
+
[landmark]="false"
|
|
2302
|
+
class="max-sm:hidden"
|
|
2303
|
+
>
|
|
2304
|
+
<Navigation
|
|
2305
|
+
id="main"
|
|
2306
|
+
[data-id]="desktopDataId()"
|
|
2307
|
+
[data]="desktopData()"
|
|
2308
|
+
[badge-context]="resolvedBadgeContext()"
|
|
2309
|
+
[class]="navClass()"
|
|
2310
|
+
>
|
|
2311
|
+
@switch (navKind()) {
|
|
2312
|
+
@case ('navbar') {
|
|
2313
|
+
<LayoutNavNavbar
|
|
2314
|
+
[brand]="brand()"
|
|
2315
|
+
[user]="user()"
|
|
2316
|
+
[appearance]="appearance()"
|
|
2317
|
+
(logout)="logout.emit()"
|
|
2318
|
+
/>
|
|
2319
|
+
}
|
|
2320
|
+
@case ('flyout') {
|
|
2321
|
+
<LayoutNavFlyout
|
|
2322
|
+
[brand]="brand()"
|
|
2323
|
+
[user]="user()"
|
|
2324
|
+
[appearance]="appearance()"
|
|
2325
|
+
(logout)="logout.emit()"
|
|
2326
|
+
/>
|
|
2327
|
+
}
|
|
2328
|
+
@case ('dockbar') {
|
|
2329
|
+
<LayoutNavDockbar
|
|
2330
|
+
[brand]="brand()"
|
|
2331
|
+
[user]="user()"
|
|
2332
|
+
[appearance]="appearance()"
|
|
2333
|
+
[nav-type-mode]="navTypeMode()"
|
|
2334
|
+
[dockbar-route-context]="dockbarRouteContext()"
|
|
2335
|
+
[dockbar-badge]="dockbarBadgeContext()"
|
|
2336
|
+
(logout)="logout.emit()"
|
|
2337
|
+
/>
|
|
2338
|
+
}
|
|
2339
|
+
@case ('minidock') {
|
|
2340
|
+
<LayoutNavMinidock
|
|
2341
|
+
[brand]="brand()"
|
|
2342
|
+
[user]="user()"
|
|
2343
|
+
[appearance]="appearance()"
|
|
2344
|
+
(logout)="logout.emit()"
|
|
2345
|
+
/>
|
|
2346
|
+
}
|
|
2347
|
+
@case ('brand') {
|
|
2348
|
+
<LayoutNavMinimal [brand]="brand()" />
|
|
2349
|
+
}
|
|
2350
|
+
@default {
|
|
2351
|
+
<LayoutNavSidebar
|
|
2352
|
+
[brand]="brand()"
|
|
2353
|
+
[user]="user()"
|
|
2354
|
+
[appearance]="appearance()"
|
|
2355
|
+
[nav-type-mode]="navTypeMode()"
|
|
2356
|
+
(logout)="logout.emit()"
|
|
2357
|
+
/>
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
</Navigation>
|
|
2361
|
+
</LayoutNavigation>
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
<LayoutContent
|
|
2365
|
+
[class]="contentClass()"
|
|
2366
|
+
[content-id]="contentId()"
|
|
2367
|
+
[focus-on-navigation]="focusOnNavigation()"
|
|
2368
|
+
>
|
|
2369
|
+
<ng-content />
|
|
2370
|
+
</LayoutContent>
|
|
2371
|
+
</div>
|
|
2372
|
+
</ng-template>
|
|
2373
|
+
|
|
2374
|
+
@switch (effectiveLayoutType()) {
|
|
2375
|
+
@case ('empty') {
|
|
2376
|
+
<LayoutEmpty>
|
|
2377
|
+
<ng-container [ngTemplateOutlet]="body" />
|
|
2378
|
+
</LayoutEmpty>
|
|
2379
|
+
}
|
|
2380
|
+
@case ('fluid') {
|
|
2381
|
+
<LayoutFluid>
|
|
2382
|
+
<ng-container [ngTemplateOutlet]="body" />
|
|
2383
|
+
</LayoutFluid>
|
|
2384
|
+
}
|
|
2385
|
+
@case ('horizontal') {
|
|
2386
|
+
<LayoutHorizontal>
|
|
2387
|
+
<ng-container [ngTemplateOutlet]="body" />
|
|
2388
|
+
</LayoutHorizontal>
|
|
2389
|
+
}
|
|
2390
|
+
@default {
|
|
2391
|
+
<LayoutVertical>
|
|
2392
|
+
<ng-container [ngTemplateOutlet]="body" />
|
|
2393
|
+
</LayoutVertical>
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
</Layout>
|
|
2397
|
+
`
|
|
2398
|
+
}]
|
|
2399
|
+
}],
|
|
2400
|
+
ctorParameters: () => [],
|
|
2401
|
+
propDecorators: {
|
|
2402
|
+
surface: [{
|
|
2403
|
+
type: i0.Input,
|
|
2404
|
+
args: [{
|
|
2405
|
+
isSignal: true,
|
|
2406
|
+
alias: "surface",
|
|
2407
|
+
required: false
|
|
2408
|
+
}]
|
|
2409
|
+
}],
|
|
2410
|
+
appearance: [{
|
|
2411
|
+
type: i0.Input,
|
|
2412
|
+
args: [{
|
|
2413
|
+
isSignal: true,
|
|
2414
|
+
alias: "layout-appearance",
|
|
2415
|
+
required: false
|
|
2416
|
+
}]
|
|
2417
|
+
}],
|
|
2418
|
+
width: [{
|
|
2419
|
+
type: i0.Input,
|
|
2420
|
+
args: [{
|
|
2421
|
+
isSignal: true,
|
|
2422
|
+
alias: "width",
|
|
2423
|
+
required: false
|
|
2424
|
+
}]
|
|
2425
|
+
}],
|
|
2426
|
+
layoutType: [{
|
|
2427
|
+
type: i0.Input,
|
|
2428
|
+
args: [{
|
|
2429
|
+
isSignal: true,
|
|
2430
|
+
alias: "layout-type",
|
|
2431
|
+
required: false
|
|
2432
|
+
}]
|
|
2433
|
+
}],
|
|
2434
|
+
navType: [{
|
|
2435
|
+
type: i0.Input,
|
|
2436
|
+
args: [{
|
|
2437
|
+
isSignal: true,
|
|
2438
|
+
alias: "nav-type",
|
|
2439
|
+
required: false
|
|
2440
|
+
}]
|
|
2441
|
+
}],
|
|
2442
|
+
navTypeMode: [{
|
|
2443
|
+
type: i0.Input,
|
|
2444
|
+
args: [{
|
|
2445
|
+
isSignal: true,
|
|
2446
|
+
alias: "nav-type-mode",
|
|
2447
|
+
required: false
|
|
2448
|
+
}]
|
|
2449
|
+
}],
|
|
2450
|
+
dockbarRouteContext: [{
|
|
2451
|
+
type: i0.Input,
|
|
2452
|
+
args: [{
|
|
2453
|
+
isSignal: true,
|
|
2454
|
+
alias: "dockbar-route-context",
|
|
2455
|
+
required: false
|
|
2456
|
+
}]
|
|
2457
|
+
}],
|
|
2458
|
+
badgeContext: [{
|
|
2459
|
+
type: i0.Input,
|
|
2460
|
+
args: [{
|
|
2461
|
+
isSignal: true,
|
|
2462
|
+
alias: "badge-context",
|
|
2463
|
+
required: false
|
|
2464
|
+
}]
|
|
2465
|
+
}],
|
|
2466
|
+
dockbarBadgeContext: [{
|
|
2467
|
+
type: i0.Input,
|
|
2468
|
+
args: [{
|
|
2469
|
+
isSignal: true,
|
|
2470
|
+
alias: "dockbar-badge",
|
|
2471
|
+
required: false
|
|
2472
|
+
}]
|
|
2473
|
+
}],
|
|
2474
|
+
data: [{
|
|
2475
|
+
type: i0.Input,
|
|
2476
|
+
args: [{
|
|
2477
|
+
isSignal: true,
|
|
2478
|
+
alias: "data",
|
|
2479
|
+
required: true
|
|
2480
|
+
}]
|
|
2481
|
+
}],
|
|
2482
|
+
brand: [{
|
|
2483
|
+
type: i0.Input,
|
|
2484
|
+
args: [{
|
|
2485
|
+
isSignal: true,
|
|
2486
|
+
alias: "brand",
|
|
2487
|
+
required: true
|
|
2488
|
+
}]
|
|
2489
|
+
}],
|
|
2490
|
+
user: [{
|
|
2491
|
+
type: i0.Input,
|
|
2492
|
+
args: [{
|
|
2493
|
+
isSignal: true,
|
|
2494
|
+
alias: "user",
|
|
2495
|
+
required: true
|
|
2496
|
+
}]
|
|
2497
|
+
}],
|
|
2498
|
+
contentId: [{
|
|
2499
|
+
type: i0.Input,
|
|
2500
|
+
args: [{
|
|
2501
|
+
isSignal: true,
|
|
2502
|
+
alias: "content-id",
|
|
2503
|
+
required: false
|
|
2504
|
+
}]
|
|
2505
|
+
}],
|
|
2506
|
+
skipLinkLabel: [{
|
|
2507
|
+
type: i0.Input,
|
|
2508
|
+
args: [{
|
|
2509
|
+
isSignal: true,
|
|
2510
|
+
alias: "skip-link-label",
|
|
2511
|
+
required: false
|
|
2512
|
+
}]
|
|
2513
|
+
}],
|
|
2514
|
+
focusOnNavigation: [{
|
|
2515
|
+
type: i0.Input,
|
|
2516
|
+
args: [{
|
|
2517
|
+
isSignal: true,
|
|
2518
|
+
alias: "focus-on-navigation",
|
|
2519
|
+
required: false
|
|
2520
|
+
}]
|
|
2521
|
+
}],
|
|
2522
|
+
mobileNavOpen: [{
|
|
2523
|
+
type: i0.Input,
|
|
2524
|
+
args: [{
|
|
2525
|
+
isSignal: true,
|
|
2526
|
+
alias: "mobile-nav-open",
|
|
2527
|
+
required: false
|
|
2528
|
+
}]
|
|
2529
|
+
}, {
|
|
2530
|
+
type: i0.Output,
|
|
2531
|
+
args: ["mobile-nav-openChange"]
|
|
2532
|
+
}],
|
|
2533
|
+
mobileNavLabel: [{
|
|
2534
|
+
type: i0.Input,
|
|
2535
|
+
args: [{
|
|
2536
|
+
isSignal: true,
|
|
2537
|
+
alias: "mobile-nav-label",
|
|
2538
|
+
required: false
|
|
2539
|
+
}]
|
|
2540
|
+
}],
|
|
2541
|
+
closeMobileNavLabel: [{
|
|
2542
|
+
type: i0.Input,
|
|
2543
|
+
args: [{
|
|
2544
|
+
isSignal: true,
|
|
2545
|
+
alias: "close-mobile-nav-label",
|
|
2546
|
+
required: false
|
|
2547
|
+
}]
|
|
2548
|
+
}],
|
|
2549
|
+
logout: [{
|
|
2550
|
+
type: i0.Output,
|
|
2551
|
+
args: ["logout"]
|
|
2552
|
+
}],
|
|
2553
|
+
mobileNavTriggerRef: [{
|
|
2554
|
+
type: i0.ViewChild,
|
|
2555
|
+
args: ["mobileNavTrigger", { isSignal: true }]
|
|
2556
|
+
}],
|
|
2557
|
+
contentClassInput: [{
|
|
2558
|
+
type: i0.Input,
|
|
2559
|
+
args: [{
|
|
2560
|
+
isSignal: true,
|
|
2561
|
+
alias: "content-class",
|
|
2562
|
+
required: false
|
|
2563
|
+
}]
|
|
2564
|
+
}]
|
|
2565
|
+
}
|
|
2566
|
+
})
|
|
2567
|
+
});
|
|
2568
|
+
export { LAYOUT_DESKTOP_NAVIGATION_DATA_ID, LAYOUT_USER_OPTIONS, LayoutBrand, LayoutIdentityService, LayoutNavDockbar, LayoutNavFlyout, LayoutNavMinidock, LayoutNavMinimal, LayoutNavNavbar, LayoutNavSidebar, LayoutUser, LayoutWrapperDefault, provideLayoutUserOptions };
|