@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,693 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, booleanAttribute, computed, contentChild, effect, inject, input, output } from "@angular/core";
|
|
3
|
+
import { LucideGrip } from "@lucide/angular";
|
|
4
|
+
import { provideIcons } from "@edsis/angular/component/icon";
|
|
5
|
+
import { cn } from "@edsis/angular/component/utils/core";
|
|
6
|
+
import { NavigationContainerComponent, NavigationFlyoutComponent, NavigationFooterComponent, NavigationHeaderComponent } from "@edsis/angular/navigation";
|
|
7
|
+
import { NAVIGATION_ADAPTER } from "@edsis/angular/navigation/core";
|
|
8
|
+
import { LayoutService } from "@edsis/angular/theme/layout";
|
|
9
|
+
import { LayoutBrand, LayoutIdentityService, LayoutUser } from "@edsis/angular/theme/layout/wrapper";
|
|
10
|
+
import { PageFilterComponent } from "@edsis/angular/theme/page/filter";
|
|
11
|
+
import { PageOverviewComponent } from "@edsis/angular/theme/page/overview";
|
|
12
|
+
import { PageHeaderComponent } from "@edsis/angular/theme/page/slots";
|
|
13
|
+
import { PageSideComponent } from "@edsis/angular/theme/page/side";
|
|
14
|
+
import { PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_HEIGHT, PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_MODE, PAGE_DEFAULT_SIDE_POSITION, PAGE_DEFAULT_SIDE_WIDTH, PAGE_DEFAULT_VARIANT, PageStateService } from "@edsis/angular/theme/page/core";
|
|
15
|
+
const OVERVIEW_STACKED_ROWS = [
|
|
16
|
+
"grid-rows-[auto_auto_minmax(0,1fr)]",
|
|
17
|
+
"[&>[data-page-slot=filter]]:row-start-1",
|
|
18
|
+
"[&>[data-page-slot=overview]]:row-start-2",
|
|
19
|
+
"[&>[data-page-slot=content]]:row-start-3",
|
|
20
|
+
"[&>[data-page-slot=dashboard]]:row-start-3"
|
|
21
|
+
].join(" ");
|
|
22
|
+
const OVERVIEW_ROWS = [
|
|
23
|
+
"grid-rows-[auto_minmax(0,1fr)]",
|
|
24
|
+
"[&>[data-page-slot=overview]]:row-start-1",
|
|
25
|
+
"[&>[data-page-slot=content]]:row-start-2",
|
|
26
|
+
"[&>[data-page-slot=dashboard]]:row-start-2"
|
|
27
|
+
].join(" ");
|
|
28
|
+
let pageAppsLauncherInstanceId = 0;
|
|
29
|
+
var PageComponent = class PageComponent {
|
|
30
|
+
page = inject(PageStateService);
|
|
31
|
+
layout = inject(LayoutService, { optional: true });
|
|
32
|
+
navigation = inject(NAVIGATION_ADAPTER, { optional: true });
|
|
33
|
+
identity = inject(LayoutIdentityService, { optional: true });
|
|
34
|
+
projectedSide = contentChild(PageSideComponent, ...ngDevMode ? [{ debugName: "projectedSide" }] : /* istanbul ignore next */ []);
|
|
35
|
+
projectedHeader = contentChild(PageHeaderComponent, ...ngDevMode ? [{ debugName: "projectedHeader" }] : /* istanbul ignore next */ []);
|
|
36
|
+
projectedFilter = contentChild(PageFilterComponent, ...ngDevMode ? [{ debugName: "projectedFilter" }] : /* istanbul ignore next */ []);
|
|
37
|
+
projectedOverview = contentChild(PageOverviewComponent, ...ngDevMode ? [{ debugName: "projectedOverview" }] : /* istanbul ignore next */ []);
|
|
38
|
+
variant = input(PAGE_DEFAULT_VARIANT, ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
39
|
+
height = input(PAGE_DEFAULT_HEIGHT, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
40
|
+
scroll = input(PAGE_DEFAULT_SCROLL, ...ngDevMode ? [{ debugName: "scroll" }] : /* istanbul ignore next */ []);
|
|
41
|
+
appearance = input(PAGE_DEFAULT_APPEARANCE, ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
42
|
+
position = input(PAGE_DEFAULT_SIDE_POSITION, ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
43
|
+
sideMode = input(PAGE_DEFAULT_SIDE_MODE, ...ngDevMode ? [{ debugName: "sideMode" }] : /* istanbul ignore next */ []);
|
|
44
|
+
sideOpen = input(null, ...ngDevMode ? [{ debugName: "sideOpen" }] : /* istanbul ignore next */ []);
|
|
45
|
+
sideWidth = input(PAGE_DEFAULT_SIDE_WIDTH, ...ngDevMode ? [{ debugName: "sideWidth" }] : /* istanbul ignore next */ []);
|
|
46
|
+
filterOpen = input(null, ...ngDevMode ? [{ debugName: "filterOpen" }] : /* istanbul ignore next */ []);
|
|
47
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
48
|
+
sideOpenChange = output();
|
|
49
|
+
filterOpenChange = output();
|
|
50
|
+
appsLauncher = input(true, {
|
|
51
|
+
...ngDevMode ? { debugName: "appsLauncher" } : /* istanbul ignore next */ {},
|
|
52
|
+
transform: booleanAttribute
|
|
53
|
+
});
|
|
54
|
+
appsNavId = input("main", ...ngDevMode ? [{ debugName: "appsNavId" }] : /* istanbul ignore next */ []);
|
|
55
|
+
appsIcon = input("grip", ...ngDevMode ? [{ debugName: "appsIcon" }] : /* istanbul ignore next */ []);
|
|
56
|
+
appsLabel = input("Open navigation", ...ngDevMode ? [{ debugName: "appsLabel" }] : /* istanbul ignore next */ []);
|
|
57
|
+
overlayCloseLabel = input("Close overlay panel", ...ngDevMode ? [{ debugName: "overlayCloseLabel" }] : /* istanbul ignore next */ []);
|
|
58
|
+
launcherNavId = `__page-apps-${pageAppsLauncherInstanceId += 1}`;
|
|
59
|
+
resolvedPosition = computed(() => this.projectedSide()?.position() ?? this.position(), ...ngDevMode ? [{ debugName: "resolvedPosition" }] : /* istanbul ignore next */ []);
|
|
60
|
+
resolvedSideMode = computed(() => this.projectedSide()?.mode() ?? this.sideMode(), ...ngDevMode ? [{ debugName: "resolvedSideMode" }] : /* istanbul ignore next */ []);
|
|
61
|
+
isLeftSide = computed(() => this.resolvedPosition() === "left", ...ngDevMode ? [{ debugName: "isLeftSide" }] : /* istanbul ignore next */ []);
|
|
62
|
+
isRightSide = computed(() => this.resolvedPosition() === "right", ...ngDevMode ? [{ debugName: "isRightSide" }] : /* istanbul ignore next */ []);
|
|
63
|
+
hasFilter = computed(() => this.projectedFilter() !== void 0, ...ngDevMode ? [{ debugName: "hasFilter" }] : /* istanbul ignore next */ []);
|
|
64
|
+
filterPlacement = computed(() => this.projectedFilter()?.placement() ?? this.page.filterPlacement() ?? PAGE_DEFAULT_FILTER_PLACEMENT, ...ngDevMode ? [{ debugName: "filterPlacement" }] : /* istanbul ignore next */ []);
|
|
65
|
+
filterMode = computed(() => this.filterPlacement() === "stacked" ? "sticky" : this.projectedFilter()?.mode() ?? this.page.filterMode(), ...ngDevMode ? [{ debugName: "filterMode" }] : /* istanbul ignore next */ []);
|
|
66
|
+
filterPosition = computed(() => this.projectedFilter()?.position() ?? this.page.filterPosition(), ...ngDevMode ? [{ debugName: "filterPosition" }] : /* istanbul ignore next */ []);
|
|
67
|
+
filterWidthVar = computed(() => this.projectedFilter()?.width() ?? this.page.filterWidth() ?? PAGE_DEFAULT_FILTER_WIDTH, ...ngDevMode ? [{ debugName: "filterWidthVar" }] : /* istanbul ignore next */ []);
|
|
68
|
+
hasOverview = computed(() => this.projectedOverview() !== void 0, ...ngDevMode ? [{ debugName: "hasOverview" }] : /* istanbul ignore next */ []);
|
|
69
|
+
showsSideOverlayBackdrop = computed(() => this.variant() === "side" && this.resolvedSideMode() === "overlay" && this.page.sideOpen(), ...ngDevMode ? [{ debugName: "showsSideOverlayBackdrop" }] : /* istanbul ignore next */ []);
|
|
70
|
+
showsFilterOverlayBackdrop = computed(() => this.hasFilter() && this.filterMode() === "overlay" && this.page.filterOpen(), ...ngDevMode ? [{ debugName: "showsFilterOverlayBackdrop" }] : /* istanbul ignore next */ []);
|
|
71
|
+
showsOverlayBackdrop = computed(() => this.showsSideOverlayBackdrop() || this.showsFilterOverlayBackdrop(), ...ngDevMode ? [{ debugName: "showsOverlayBackdrop" }] : /* istanbul ignore next */ []);
|
|
72
|
+
appsNavSource = computed(() => this.navigation?.data(this.appsNavId()) ?? null, ...ngDevMode ? [{ debugName: "appsNavSource" }] : /* istanbul ignore next */ []);
|
|
73
|
+
appsNavData = computed(() => this.appsNavSource()?.() ?? [], ...ngDevMode ? [{ debugName: "appsNavData" }] : /* istanbul ignore next */ []);
|
|
74
|
+
showsAppsLauncher = computed(() => this.appsLauncher() && this.layout?.type() === "empty" && this.appsNavData().length > 0, ...ngDevMode ? [{ debugName: "showsAppsLauncher" }] : /* istanbul ignore next */ []);
|
|
75
|
+
appsLauncherHostClass = computed(() => cn("absolute z-30 h-auto w-auto", this.projectedHeader() ? "right-2 top-1.5" : "right-3 top-3"), ...ngDevMode ? [{ debugName: "appsLauncherHostClass" }] : /* istanbul ignore next */ []);
|
|
76
|
+
appsLauncherAppearance = computed(() => this.layout?.appearance() ?? this.appearance(), ...ngDevMode ? [{ debugName: "appsLauncherAppearance" }] : /* istanbul ignore next */ []);
|
|
77
|
+
appsBrand = computed(() => this.identity?.brand() ?? null, ...ngDevMode ? [{ debugName: "appsBrand" }] : /* istanbul ignore next */ []);
|
|
78
|
+
appsUser = computed(() => this.identity?.user() ?? null, ...ngDevMode ? [{ debugName: "appsUser" }] : /* istanbul ignore next */ []);
|
|
79
|
+
hostClasses = computed(() => cn("relative block h-full min-h-0 w-full min-w-0 overflow-hidden text-foreground", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
80
|
+
shellClasses = computed(() => cn("relative z-10 h-full min-h-0 w-full min-w-0", this.scroll() === "content" && "grid grid-rows-[auto_minmax(0,1fr)_auto]", this.scroll() === "page" && "overflow-auto"), ...ngDevMode ? [{ debugName: "shellClasses" }] : /* istanbul ignore next */ []);
|
|
81
|
+
bodyClasses = computed(() => {
|
|
82
|
+
if (this.variant() !== "side") return cn("relative min-w-0", this.scroll() === "content" && "min-h-0");
|
|
83
|
+
const sideMode = this.resolvedSideMode();
|
|
84
|
+
const position = this.resolvedPosition();
|
|
85
|
+
if (sideMode === "sticky") return cn("grid min-w-0", this.scroll() === "content" && "min-h-0", position === "left" ? "grid-cols-[var(--page-side-width)_minmax(0,1fr)]" : "grid-cols-[minmax(0,1fr)_var(--page-side-width)]");
|
|
86
|
+
return cn("relative min-w-0", this.scroll() === "content" && "min-h-0");
|
|
87
|
+
}, ...ngDevMode ? [{ debugName: "bodyClasses" }] : /* istanbul ignore next */ []);
|
|
88
|
+
contentRegionClasses = computed(() => {
|
|
89
|
+
if (this.hasOverview()) return this.overviewRegionClasses();
|
|
90
|
+
if (!this.hasFilter()) return "contents";
|
|
91
|
+
const scroll = this.scroll();
|
|
92
|
+
if (this.filterMode() !== "sticky") return cn("relative min-w-0", scroll === "content" && "min-h-0 h-full");
|
|
93
|
+
if (this.filterPlacement() === "stacked") return scroll === "content" ? "grid min-w-0 min-h-0 h-full grid-rows-[auto_minmax(0,1fr)]" : "block min-w-0";
|
|
94
|
+
return cn("grid min-w-0", scroll === "content" && "min-h-0 h-full", this.filterPosition() === "left" ? "grid-cols-[var(--page-filter-width)_minmax(0,1fr)]" : "grid-cols-[minmax(0,1fr)_var(--page-filter-width)]");
|
|
95
|
+
}, ...ngDevMode ? [{ debugName: "contentRegionClasses" }] : /* istanbul ignore next */ []);
|
|
96
|
+
overviewRegionClasses() {
|
|
97
|
+
const scroll = this.scroll();
|
|
98
|
+
const fill = scroll === "content" && "min-h-0 h-full";
|
|
99
|
+
if (!this.hasFilter() || this.filterPlacement() === "stacked") return scroll === "content" ? cn("grid min-w-0", fill, OVERVIEW_STACKED_ROWS) : "block min-w-0";
|
|
100
|
+
if (this.filterMode() !== "sticky") return cn("relative grid min-w-0", fill, OVERVIEW_ROWS);
|
|
101
|
+
const left = this.filterPosition() === "left";
|
|
102
|
+
return cn("grid min-w-0", fill, OVERVIEW_ROWS, "[&>[data-page-slot=filter]]:row-[1/span_2]", left ? "grid-cols-[var(--page-filter-width)_minmax(0,1fr)] [&>[data-page-slot=filter]]:col-start-1 [&>:not([data-page-slot=filter])]:col-start-2" : "grid-cols-[minmax(0,1fr)_var(--page-filter-width)] [&>[data-page-slot=filter]]:col-start-2 [&>:not([data-page-slot=filter])]:col-start-1");
|
|
103
|
+
}
|
|
104
|
+
constructor() {
|
|
105
|
+
effect(() => {
|
|
106
|
+
this.page.registerRoot({
|
|
107
|
+
variant: this.variant(),
|
|
108
|
+
height: this.height(),
|
|
109
|
+
scroll: this.scroll(),
|
|
110
|
+
appearance: this.appearance(),
|
|
111
|
+
position: this.position(),
|
|
112
|
+
sideMode: this.sideMode(),
|
|
113
|
+
sideWidth: this.sideWidth()
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
effect(() => {
|
|
117
|
+
this.page.setControlledSideOpen(this.sideOpen());
|
|
118
|
+
});
|
|
119
|
+
effect(() => {
|
|
120
|
+
this.page.setControlledFilterOpen(this.filterOpen());
|
|
121
|
+
});
|
|
122
|
+
effect(() => {
|
|
123
|
+
this.page.setAppsLauncherReserve(this.showsAppsLauncher() && this.projectedHeader() !== void 0);
|
|
124
|
+
});
|
|
125
|
+
effect(() => {
|
|
126
|
+
if (this.page.sideOpenRequestVersion() === 0) return;
|
|
127
|
+
this.sideOpenChange.emit(this.page.sideOpenRequest() ?? false);
|
|
128
|
+
});
|
|
129
|
+
effect(() => {
|
|
130
|
+
if (this.page.filterOpenRequestVersion() === 0) return;
|
|
131
|
+
this.filterOpenChange.emit(this.page.filterOpenRequest() ?? false);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
handleBackdropClick() {
|
|
135
|
+
if (this.showsSideOverlayBackdrop()) this.page.closeSide();
|
|
136
|
+
if (this.showsFilterOverlayBackdrop()) this.page.closeFilter();
|
|
137
|
+
}
|
|
138
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
139
|
+
minVersion: "12.0.0",
|
|
140
|
+
version: "22.2.3",
|
|
141
|
+
ngImport: i0,
|
|
142
|
+
type: PageComponent,
|
|
143
|
+
deps: [],
|
|
144
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
145
|
+
});
|
|
146
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
147
|
+
minVersion: "17.0.0",
|
|
148
|
+
version: "22.2.3",
|
|
149
|
+
type: PageComponent,
|
|
150
|
+
isStandalone: true,
|
|
151
|
+
selector: "Page",
|
|
152
|
+
inputs: {
|
|
153
|
+
variant: {
|
|
154
|
+
classPropertyName: "variant",
|
|
155
|
+
publicName: "variant",
|
|
156
|
+
isSignal: true,
|
|
157
|
+
isRequired: false,
|
|
158
|
+
transformFunction: null
|
|
159
|
+
},
|
|
160
|
+
height: {
|
|
161
|
+
classPropertyName: "height",
|
|
162
|
+
publicName: "height",
|
|
163
|
+
isSignal: true,
|
|
164
|
+
isRequired: false,
|
|
165
|
+
transformFunction: null
|
|
166
|
+
},
|
|
167
|
+
scroll: {
|
|
168
|
+
classPropertyName: "scroll",
|
|
169
|
+
publicName: "scroll",
|
|
170
|
+
isSignal: true,
|
|
171
|
+
isRequired: false,
|
|
172
|
+
transformFunction: null
|
|
173
|
+
},
|
|
174
|
+
appearance: {
|
|
175
|
+
classPropertyName: "appearance",
|
|
176
|
+
publicName: "appearance",
|
|
177
|
+
isSignal: true,
|
|
178
|
+
isRequired: false,
|
|
179
|
+
transformFunction: null
|
|
180
|
+
},
|
|
181
|
+
position: {
|
|
182
|
+
classPropertyName: "position",
|
|
183
|
+
publicName: "position",
|
|
184
|
+
isSignal: true,
|
|
185
|
+
isRequired: false,
|
|
186
|
+
transformFunction: null
|
|
187
|
+
},
|
|
188
|
+
sideMode: {
|
|
189
|
+
classPropertyName: "sideMode",
|
|
190
|
+
publicName: "sideMode",
|
|
191
|
+
isSignal: true,
|
|
192
|
+
isRequired: false,
|
|
193
|
+
transformFunction: null
|
|
194
|
+
},
|
|
195
|
+
sideOpen: {
|
|
196
|
+
classPropertyName: "sideOpen",
|
|
197
|
+
publicName: "sideOpen",
|
|
198
|
+
isSignal: true,
|
|
199
|
+
isRequired: false,
|
|
200
|
+
transformFunction: null
|
|
201
|
+
},
|
|
202
|
+
sideWidth: {
|
|
203
|
+
classPropertyName: "sideWidth",
|
|
204
|
+
publicName: "sideWidth",
|
|
205
|
+
isSignal: true,
|
|
206
|
+
isRequired: false,
|
|
207
|
+
transformFunction: null
|
|
208
|
+
},
|
|
209
|
+
filterOpen: {
|
|
210
|
+
classPropertyName: "filterOpen",
|
|
211
|
+
publicName: "filterOpen",
|
|
212
|
+
isSignal: true,
|
|
213
|
+
isRequired: false,
|
|
214
|
+
transformFunction: null
|
|
215
|
+
},
|
|
216
|
+
class: {
|
|
217
|
+
classPropertyName: "class",
|
|
218
|
+
publicName: "class",
|
|
219
|
+
isSignal: true,
|
|
220
|
+
isRequired: false,
|
|
221
|
+
transformFunction: null
|
|
222
|
+
},
|
|
223
|
+
appsLauncher: {
|
|
224
|
+
classPropertyName: "appsLauncher",
|
|
225
|
+
publicName: "appsLauncher",
|
|
226
|
+
isSignal: true,
|
|
227
|
+
isRequired: false,
|
|
228
|
+
transformFunction: null
|
|
229
|
+
},
|
|
230
|
+
appsNavId: {
|
|
231
|
+
classPropertyName: "appsNavId",
|
|
232
|
+
publicName: "appsNavId",
|
|
233
|
+
isSignal: true,
|
|
234
|
+
isRequired: false,
|
|
235
|
+
transformFunction: null
|
|
236
|
+
},
|
|
237
|
+
appsIcon: {
|
|
238
|
+
classPropertyName: "appsIcon",
|
|
239
|
+
publicName: "appsIcon",
|
|
240
|
+
isSignal: true,
|
|
241
|
+
isRequired: false,
|
|
242
|
+
transformFunction: null
|
|
243
|
+
},
|
|
244
|
+
appsLabel: {
|
|
245
|
+
classPropertyName: "appsLabel",
|
|
246
|
+
publicName: "appsLabel",
|
|
247
|
+
isSignal: true,
|
|
248
|
+
isRequired: false,
|
|
249
|
+
transformFunction: null
|
|
250
|
+
},
|
|
251
|
+
overlayCloseLabel: {
|
|
252
|
+
classPropertyName: "overlayCloseLabel",
|
|
253
|
+
publicName: "overlayCloseLabel",
|
|
254
|
+
isSignal: true,
|
|
255
|
+
isRequired: false,
|
|
256
|
+
transformFunction: null
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
outputs: {
|
|
260
|
+
sideOpenChange: "sideOpenChange",
|
|
261
|
+
filterOpenChange: "filterOpenChange"
|
|
262
|
+
},
|
|
263
|
+
host: {
|
|
264
|
+
attributes: { "data-page-root": "" },
|
|
265
|
+
properties: {
|
|
266
|
+
"class": "hostClasses()",
|
|
267
|
+
"attr.data-page-variant": "variant()",
|
|
268
|
+
"attr.data-page-height": "height()",
|
|
269
|
+
"attr.data-page-scroll": "scroll()",
|
|
270
|
+
"attr.data-page-appearance": "appearance()",
|
|
271
|
+
"attr.data-page-position": "resolvedPosition()",
|
|
272
|
+
"attr.data-page-side-mode": "resolvedSideMode()",
|
|
273
|
+
"attr.data-page-side-open": "page.sideOpen()",
|
|
274
|
+
"attr.data-page-filter-placement": "hasFilter() ? filterPlacement() : null",
|
|
275
|
+
"attr.data-page-filter-mode": "hasFilter() ? filterMode() : null",
|
|
276
|
+
"attr.data-page-filter-open": "hasFilter() ? page.filterOpen() : null",
|
|
277
|
+
"attr.data-page-overview": "hasOverview() ? \"\" : null",
|
|
278
|
+
"style.--page-side-width": "sideWidth()",
|
|
279
|
+
"style.--page-filter-width": "filterWidthVar()"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
providers: [PageStateService, provideIcons(LucideGrip)],
|
|
283
|
+
queries: [
|
|
284
|
+
{
|
|
285
|
+
propertyName: "projectedSide",
|
|
286
|
+
first: true,
|
|
287
|
+
predicate: PageSideComponent,
|
|
288
|
+
descendants: true,
|
|
289
|
+
isSignal: true
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
propertyName: "projectedHeader",
|
|
293
|
+
first: true,
|
|
294
|
+
predicate: PageHeaderComponent,
|
|
295
|
+
descendants: true,
|
|
296
|
+
isSignal: true
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
propertyName: "projectedFilter",
|
|
300
|
+
first: true,
|
|
301
|
+
predicate: PageFilterComponent,
|
|
302
|
+
descendants: true,
|
|
303
|
+
isSignal: true
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
propertyName: "projectedOverview",
|
|
307
|
+
first: true,
|
|
308
|
+
predicate: PageOverviewComponent,
|
|
309
|
+
descendants: true,
|
|
310
|
+
isSignal: true
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
ngImport: i0,
|
|
314
|
+
template: `
|
|
315
|
+
@if (showsOverlayBackdrop()) {
|
|
316
|
+
<button
|
|
317
|
+
type="button"
|
|
318
|
+
[attr.aria-label]="overlayCloseLabel()"
|
|
319
|
+
data-page-overlay-backdrop
|
|
320
|
+
class="absolute inset-0 z-20 bg-[hsl(var(--overlay-backdrop))]"
|
|
321
|
+
(click)="handleBackdropClick()"
|
|
322
|
+
></button>
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
<div data-page-shell [class]="shellClasses()">
|
|
326
|
+
<ng-content select="PageHeader" />
|
|
327
|
+
<ng-content select="PageSideToggle, PageFilterToggle" />
|
|
328
|
+
|
|
329
|
+
<div [class]="bodyClasses()" data-page-body>
|
|
330
|
+
@if (variant() === 'side') {
|
|
331
|
+
<ng-content select="PageSide" />
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
<div [class]="contentRegionClasses()" data-page-content-region>
|
|
335
|
+
<ng-content select="PageFilter" />
|
|
336
|
+
<ng-content select="PageOverview" />
|
|
337
|
+
<ng-content select="PageContent, PageDashboard" />
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
|
|
341
|
+
<ng-content select="PageFooter" />
|
|
342
|
+
</div>
|
|
343
|
+
|
|
344
|
+
@if (showsAppsLauncher()) {
|
|
345
|
+
<Navigation
|
|
346
|
+
[id]="launcherNavId"
|
|
347
|
+
[data]="appsNavData()"
|
|
348
|
+
ariaLabel="Application navigation"
|
|
349
|
+
[class]="appsLauncherHostClass()"
|
|
350
|
+
>
|
|
351
|
+
<NavigationFlyout
|
|
352
|
+
[icon]="appsIcon()"
|
|
353
|
+
icon-only
|
|
354
|
+
trigger-variant="plain"
|
|
355
|
+
[nav-type-style]="appsLauncherAppearance()"
|
|
356
|
+
[label]="appsLabel()"
|
|
357
|
+
>
|
|
358
|
+
@if (appsBrand(); as brand) {
|
|
359
|
+
<NavigationHeader>
|
|
360
|
+
<LayoutBrand [brand]="brand" />
|
|
361
|
+
</NavigationHeader>
|
|
362
|
+
}
|
|
363
|
+
@if (appsUser(); as user) {
|
|
364
|
+
<NavigationFooter class="px-3">
|
|
365
|
+
<LayoutUser [user]="user" />
|
|
366
|
+
</NavigationFooter>
|
|
367
|
+
}
|
|
368
|
+
</NavigationFlyout>
|
|
369
|
+
</Navigation>
|
|
370
|
+
}
|
|
371
|
+
`,
|
|
372
|
+
isInline: true,
|
|
373
|
+
dependencies: [
|
|
374
|
+
{
|
|
375
|
+
kind: "component",
|
|
376
|
+
type: NavigationContainerComponent,
|
|
377
|
+
selector: "Navigation",
|
|
378
|
+
inputs: [
|
|
379
|
+
"id",
|
|
380
|
+
"data-id",
|
|
381
|
+
"data",
|
|
382
|
+
"badge-context",
|
|
383
|
+
"ariaLabel",
|
|
384
|
+
"compact",
|
|
385
|
+
"collapse-tree",
|
|
386
|
+
"class",
|
|
387
|
+
"itemClass",
|
|
388
|
+
"nav-group-class",
|
|
389
|
+
"activeIds",
|
|
390
|
+
"activeUrl",
|
|
391
|
+
"openedIds"
|
|
392
|
+
],
|
|
393
|
+
outputs: ["openedIdsChange", "itemSelected"]
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
kind: "component",
|
|
397
|
+
type: NavigationFlyoutComponent,
|
|
398
|
+
selector: "NavigationFlyout",
|
|
399
|
+
inputs: [
|
|
400
|
+
"label",
|
|
401
|
+
"icon",
|
|
402
|
+
"icon-only",
|
|
403
|
+
"icon-position",
|
|
404
|
+
"trigger-variant",
|
|
405
|
+
"trigger-floating",
|
|
406
|
+
"panel-viewport",
|
|
407
|
+
"trigger-class",
|
|
408
|
+
"trigger-button-class",
|
|
409
|
+
"nav-position",
|
|
410
|
+
"nav-type-style",
|
|
411
|
+
"class"
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
kind: "component",
|
|
416
|
+
type: NavigationHeaderComponent,
|
|
417
|
+
selector: "NavigationHeader",
|
|
418
|
+
inputs: ["toggle", "class"]
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
kind: "component",
|
|
422
|
+
type: NavigationFooterComponent,
|
|
423
|
+
selector: "NavigationFooter",
|
|
424
|
+
inputs: ["class"]
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
kind: "component",
|
|
428
|
+
type: LayoutBrand,
|
|
429
|
+
selector: "LayoutBrand",
|
|
430
|
+
inputs: ["brand", "compact"]
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
kind: "component",
|
|
434
|
+
type: LayoutUser,
|
|
435
|
+
selector: "LayoutUser",
|
|
436
|
+
inputs: [
|
|
437
|
+
"user",
|
|
438
|
+
"detailed",
|
|
439
|
+
"show-initial",
|
|
440
|
+
"show-email",
|
|
441
|
+
"show-theme-settings",
|
|
442
|
+
"logoutLabel",
|
|
443
|
+
"logoutIcon"
|
|
444
|
+
],
|
|
445
|
+
outputs: ["logout"]
|
|
446
|
+
}
|
|
447
|
+
]
|
|
448
|
+
});
|
|
449
|
+
};
|
|
450
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
451
|
+
minVersion: "12.0.0",
|
|
452
|
+
version: "22.2.3",
|
|
453
|
+
ngImport: i0,
|
|
454
|
+
type: PageComponent,
|
|
455
|
+
decorators: [{
|
|
456
|
+
type: Component,
|
|
457
|
+
args: [{
|
|
458
|
+
selector: "Page",
|
|
459
|
+
providers: [PageStateService, provideIcons(LucideGrip)],
|
|
460
|
+
imports: [
|
|
461
|
+
NavigationContainerComponent,
|
|
462
|
+
NavigationFlyoutComponent,
|
|
463
|
+
NavigationHeaderComponent,
|
|
464
|
+
NavigationFooterComponent,
|
|
465
|
+
LayoutBrand,
|
|
466
|
+
LayoutUser
|
|
467
|
+
],
|
|
468
|
+
host: {
|
|
469
|
+
"[class]": "hostClasses()",
|
|
470
|
+
"data-page-root": "",
|
|
471
|
+
"[attr.data-page-variant]": "variant()",
|
|
472
|
+
"[attr.data-page-height]": "height()",
|
|
473
|
+
"[attr.data-page-scroll]": "scroll()",
|
|
474
|
+
"[attr.data-page-appearance]": "appearance()",
|
|
475
|
+
"[attr.data-page-position]": "resolvedPosition()",
|
|
476
|
+
"[attr.data-page-side-mode]": "resolvedSideMode()",
|
|
477
|
+
"[attr.data-page-side-open]": "page.sideOpen()",
|
|
478
|
+
"[attr.data-page-filter-placement]": "hasFilter() ? filterPlacement() : null",
|
|
479
|
+
"[attr.data-page-filter-mode]": "hasFilter() ? filterMode() : null",
|
|
480
|
+
"[attr.data-page-filter-open]": "hasFilter() ? page.filterOpen() : null",
|
|
481
|
+
"[attr.data-page-overview]": "hasOverview() ? \"\" : null",
|
|
482
|
+
"[style.--page-side-width]": "sideWidth()",
|
|
483
|
+
"[style.--page-filter-width]": "filterWidthVar()"
|
|
484
|
+
},
|
|
485
|
+
template: `
|
|
486
|
+
@if (showsOverlayBackdrop()) {
|
|
487
|
+
<button
|
|
488
|
+
type="button"
|
|
489
|
+
[attr.aria-label]="overlayCloseLabel()"
|
|
490
|
+
data-page-overlay-backdrop
|
|
491
|
+
class="absolute inset-0 z-20 bg-[hsl(var(--overlay-backdrop))]"
|
|
492
|
+
(click)="handleBackdropClick()"
|
|
493
|
+
></button>
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
<div data-page-shell [class]="shellClasses()">
|
|
497
|
+
<ng-content select="PageHeader" />
|
|
498
|
+
<ng-content select="PageSideToggle, PageFilterToggle" />
|
|
499
|
+
|
|
500
|
+
<div [class]="bodyClasses()" data-page-body>
|
|
501
|
+
@if (variant() === 'side') {
|
|
502
|
+
<ng-content select="PageSide" />
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
<div [class]="contentRegionClasses()" data-page-content-region>
|
|
506
|
+
<ng-content select="PageFilter" />
|
|
507
|
+
<ng-content select="PageOverview" />
|
|
508
|
+
<ng-content select="PageContent, PageDashboard" />
|
|
509
|
+
</div>
|
|
510
|
+
</div>
|
|
511
|
+
|
|
512
|
+
<ng-content select="PageFooter" />
|
|
513
|
+
</div>
|
|
514
|
+
|
|
515
|
+
@if (showsAppsLauncher()) {
|
|
516
|
+
<Navigation
|
|
517
|
+
[id]="launcherNavId"
|
|
518
|
+
[data]="appsNavData()"
|
|
519
|
+
ariaLabel="Application navigation"
|
|
520
|
+
[class]="appsLauncherHostClass()"
|
|
521
|
+
>
|
|
522
|
+
<NavigationFlyout
|
|
523
|
+
[icon]="appsIcon()"
|
|
524
|
+
icon-only
|
|
525
|
+
trigger-variant="plain"
|
|
526
|
+
[nav-type-style]="appsLauncherAppearance()"
|
|
527
|
+
[label]="appsLabel()"
|
|
528
|
+
>
|
|
529
|
+
@if (appsBrand(); as brand) {
|
|
530
|
+
<NavigationHeader>
|
|
531
|
+
<LayoutBrand [brand]="brand" />
|
|
532
|
+
</NavigationHeader>
|
|
533
|
+
}
|
|
534
|
+
@if (appsUser(); as user) {
|
|
535
|
+
<NavigationFooter class="px-3">
|
|
536
|
+
<LayoutUser [user]="user" />
|
|
537
|
+
</NavigationFooter>
|
|
538
|
+
}
|
|
539
|
+
</NavigationFlyout>
|
|
540
|
+
</Navigation>
|
|
541
|
+
}
|
|
542
|
+
`
|
|
543
|
+
}]
|
|
544
|
+
}],
|
|
545
|
+
ctorParameters: () => [],
|
|
546
|
+
propDecorators: {
|
|
547
|
+
projectedSide: [{
|
|
548
|
+
type: i0.ContentChild,
|
|
549
|
+
args: [i0.forwardRef(() => PageSideComponent), { isSignal: true }]
|
|
550
|
+
}],
|
|
551
|
+
projectedHeader: [{
|
|
552
|
+
type: i0.ContentChild,
|
|
553
|
+
args: [i0.forwardRef(() => PageHeaderComponent), { isSignal: true }]
|
|
554
|
+
}],
|
|
555
|
+
projectedFilter: [{
|
|
556
|
+
type: i0.ContentChild,
|
|
557
|
+
args: [i0.forwardRef(() => PageFilterComponent), { isSignal: true }]
|
|
558
|
+
}],
|
|
559
|
+
projectedOverview: [{
|
|
560
|
+
type: i0.ContentChild,
|
|
561
|
+
args: [i0.forwardRef(() => PageOverviewComponent), { isSignal: true }]
|
|
562
|
+
}],
|
|
563
|
+
variant: [{
|
|
564
|
+
type: i0.Input,
|
|
565
|
+
args: [{
|
|
566
|
+
isSignal: true,
|
|
567
|
+
alias: "variant",
|
|
568
|
+
required: false
|
|
569
|
+
}]
|
|
570
|
+
}],
|
|
571
|
+
height: [{
|
|
572
|
+
type: i0.Input,
|
|
573
|
+
args: [{
|
|
574
|
+
isSignal: true,
|
|
575
|
+
alias: "height",
|
|
576
|
+
required: false
|
|
577
|
+
}]
|
|
578
|
+
}],
|
|
579
|
+
scroll: [{
|
|
580
|
+
type: i0.Input,
|
|
581
|
+
args: [{
|
|
582
|
+
isSignal: true,
|
|
583
|
+
alias: "scroll",
|
|
584
|
+
required: false
|
|
585
|
+
}]
|
|
586
|
+
}],
|
|
587
|
+
appearance: [{
|
|
588
|
+
type: i0.Input,
|
|
589
|
+
args: [{
|
|
590
|
+
isSignal: true,
|
|
591
|
+
alias: "appearance",
|
|
592
|
+
required: false
|
|
593
|
+
}]
|
|
594
|
+
}],
|
|
595
|
+
position: [{
|
|
596
|
+
type: i0.Input,
|
|
597
|
+
args: [{
|
|
598
|
+
isSignal: true,
|
|
599
|
+
alias: "position",
|
|
600
|
+
required: false
|
|
601
|
+
}]
|
|
602
|
+
}],
|
|
603
|
+
sideMode: [{
|
|
604
|
+
type: i0.Input,
|
|
605
|
+
args: [{
|
|
606
|
+
isSignal: true,
|
|
607
|
+
alias: "sideMode",
|
|
608
|
+
required: false
|
|
609
|
+
}]
|
|
610
|
+
}],
|
|
611
|
+
sideOpen: [{
|
|
612
|
+
type: i0.Input,
|
|
613
|
+
args: [{
|
|
614
|
+
isSignal: true,
|
|
615
|
+
alias: "sideOpen",
|
|
616
|
+
required: false
|
|
617
|
+
}]
|
|
618
|
+
}],
|
|
619
|
+
sideWidth: [{
|
|
620
|
+
type: i0.Input,
|
|
621
|
+
args: [{
|
|
622
|
+
isSignal: true,
|
|
623
|
+
alias: "sideWidth",
|
|
624
|
+
required: false
|
|
625
|
+
}]
|
|
626
|
+
}],
|
|
627
|
+
filterOpen: [{
|
|
628
|
+
type: i0.Input,
|
|
629
|
+
args: [{
|
|
630
|
+
isSignal: true,
|
|
631
|
+
alias: "filterOpen",
|
|
632
|
+
required: false
|
|
633
|
+
}]
|
|
634
|
+
}],
|
|
635
|
+
class: [{
|
|
636
|
+
type: i0.Input,
|
|
637
|
+
args: [{
|
|
638
|
+
isSignal: true,
|
|
639
|
+
alias: "class",
|
|
640
|
+
required: false
|
|
641
|
+
}]
|
|
642
|
+
}],
|
|
643
|
+
sideOpenChange: [{
|
|
644
|
+
type: i0.Output,
|
|
645
|
+
args: ["sideOpenChange"]
|
|
646
|
+
}],
|
|
647
|
+
filterOpenChange: [{
|
|
648
|
+
type: i0.Output,
|
|
649
|
+
args: ["filterOpenChange"]
|
|
650
|
+
}],
|
|
651
|
+
appsLauncher: [{
|
|
652
|
+
type: i0.Input,
|
|
653
|
+
args: [{
|
|
654
|
+
isSignal: true,
|
|
655
|
+
alias: "appsLauncher",
|
|
656
|
+
required: false
|
|
657
|
+
}]
|
|
658
|
+
}],
|
|
659
|
+
appsNavId: [{
|
|
660
|
+
type: i0.Input,
|
|
661
|
+
args: [{
|
|
662
|
+
isSignal: true,
|
|
663
|
+
alias: "appsNavId",
|
|
664
|
+
required: false
|
|
665
|
+
}]
|
|
666
|
+
}],
|
|
667
|
+
appsIcon: [{
|
|
668
|
+
type: i0.Input,
|
|
669
|
+
args: [{
|
|
670
|
+
isSignal: true,
|
|
671
|
+
alias: "appsIcon",
|
|
672
|
+
required: false
|
|
673
|
+
}]
|
|
674
|
+
}],
|
|
675
|
+
appsLabel: [{
|
|
676
|
+
type: i0.Input,
|
|
677
|
+
args: [{
|
|
678
|
+
isSignal: true,
|
|
679
|
+
alias: "appsLabel",
|
|
680
|
+
required: false
|
|
681
|
+
}]
|
|
682
|
+
}],
|
|
683
|
+
overlayCloseLabel: [{
|
|
684
|
+
type: i0.Input,
|
|
685
|
+
args: [{
|
|
686
|
+
isSignal: true,
|
|
687
|
+
alias: "overlayCloseLabel",
|
|
688
|
+
required: false
|
|
689
|
+
}]
|
|
690
|
+
}]
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
export { PageComponent };
|