@edsis/angular 22.1.6 → 22.2.10
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 +275 -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 +1319 -0
- package/fesm2022/edsis-angular-chart-line.mjs +544 -0
- package/fesm2022/edsis-angular-chart-pie.mjs +531 -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 +1 -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-D70Ju6_f.mjs +234 -0
- package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-BaFnh48V.mjs +834 -0
- package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-D39W0FQZ.mjs +823 -0
- package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-CpmsY8hb.mjs +670 -0
- package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-D35IfX6r.mjs +689 -0
- package/fesm2022/edsis-angular-navigation-navigation-item.component-X6JFy-ya.mjs +1522 -0
- package/fesm2022/edsis-angular-navigation-navigation-list.component-D6Ms8H5g.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 +1863 -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-on-fill.mjs +89 -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 +605 -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 +481 -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 +251 -0
- package/theme/styles/css/base/components.css +577 -0
- package/theme/styles/css/base/index.css +14 -0
- package/theme/styles/css/base/on-fill.css +153 -0
- package/theme/styles/css/base/package.css +10 -0
- package/theme/styles/css/base/prefers-dark.css +81 -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 +306 -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 +824 -0
- package/types/edsis-angular-chart-line.d.ts +148 -0
- package/types/edsis-angular-chart-pie.d.ts +207 -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-on-fill.d.ts +45 -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 +328 -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,1089 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, ElementRef, booleanAttribute, computed, effect, inject, input } from "@angular/core";
|
|
3
|
+
import { cn } from "@edsis/angular/component/utils/core";
|
|
4
|
+
import { LAYOUT_LOADING_HIDE_DELAY_MS, LAYOUT_LOADING_INITIAL_PROGRESS, LAYOUT_LOADING_SKIP, LAYOUT_LOADING_TRICKLE_CEILING, LAYOUT_LOADING_TRICKLE_INTERVAL_MS, LayoutLoadingService, LayoutLoadingService as LayoutLoadingService$1, LayoutService, LayoutService as LayoutService$1, layoutLoadingInterceptor } from "@edsis/angular/theme/layout/services";
|
|
5
|
+
import { ThemeRadiusService } from "@edsis/angular/theme/styles";
|
|
6
|
+
import { LAYOUT_APPEARANCES, LAYOUT_APPEARANCE_STORAGE_KEY, LAYOUT_DEFAULT_APPEARANCE, LAYOUT_DEFAULT_APPEARANCE as LAYOUT_DEFAULT_APPEARANCE$1, LAYOUT_DEFAULT_SURFACE, LAYOUT_DEFAULT_SURFACE as LAYOUT_DEFAULT_SURFACE$1, LAYOUT_DEFAULT_TYPE, LAYOUT_DEFAULT_WIDTH, LAYOUT_DEFAULT_WIDTH as LAYOUT_DEFAULT_WIDTH$1, LAYOUT_LOCKED_WIDTH, LAYOUT_LOCKED_WIDTH as LAYOUT_LOCKED_WIDTH$1, LAYOUT_SURFACES, LAYOUT_SURFACE_STORAGE_KEY, LAYOUT_TYPES, LAYOUT_TYPE_STORAGE_KEY, LAYOUT_WIDTHS, LAYOUT_WIDTH_STORAGE_KEY, isUiLayoutAppearance, isUiLayoutSurface, isUiLayoutType, isUiLayoutWidth } from "@edsis/angular/theme/layout/types";
|
|
7
|
+
import { DOCUMENT } from "@angular/common";
|
|
8
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
9
|
+
import { NavigationEnd, Router } from "@angular/router";
|
|
10
|
+
var LayoutLoadingComponent = class LayoutLoadingComponent {
|
|
11
|
+
loading = inject(LayoutLoadingService$1);
|
|
12
|
+
hostId = this.loading.registerHost();
|
|
13
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
14
|
+
ariaLabel = input("Loading page", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
15
|
+
isPrimary = computed(() => this.loading.primaryHostId() === this.hostId, ...ngDevMode ? [{ debugName: "isPrimary" }] : /* istanbul ignore next */ []);
|
|
16
|
+
state = computed(() => {
|
|
17
|
+
if (!this.isPrimary()) return "inert";
|
|
18
|
+
return this.loading.active() ? "active" : "idle";
|
|
19
|
+
}, ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
20
|
+
hostClasses = computed(() => cn("pointer-events-none fixed inset-x-0 top-0 z-50 block h-0.5", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
21
|
+
roundedProgress = computed(() => Math.round(this.loading.progress()), ...ngDevMode ? [{ debugName: "roundedProgress" }] : /* istanbul ignore next */ []);
|
|
22
|
+
constructor() {
|
|
23
|
+
inject(DestroyRef).onDestroy(() => this.loading.unregisterHost(this.hostId));
|
|
24
|
+
}
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
26
|
+
minVersion: "12.0.0",
|
|
27
|
+
version: "22.2.4",
|
|
28
|
+
ngImport: i0,
|
|
29
|
+
type: LayoutLoadingComponent,
|
|
30
|
+
deps: [],
|
|
31
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
32
|
+
});
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
34
|
+
minVersion: "17.0.0",
|
|
35
|
+
version: "22.2.4",
|
|
36
|
+
type: LayoutLoadingComponent,
|
|
37
|
+
isStandalone: true,
|
|
38
|
+
selector: "LayoutLoading",
|
|
39
|
+
inputs: {
|
|
40
|
+
class: {
|
|
41
|
+
classPropertyName: "class",
|
|
42
|
+
publicName: "class",
|
|
43
|
+
isSignal: true,
|
|
44
|
+
isRequired: false,
|
|
45
|
+
transformFunction: null
|
|
46
|
+
},
|
|
47
|
+
ariaLabel: {
|
|
48
|
+
classPropertyName: "ariaLabel",
|
|
49
|
+
publicName: "ariaLabel",
|
|
50
|
+
isSignal: true,
|
|
51
|
+
isRequired: false,
|
|
52
|
+
transformFunction: null
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
host: {
|
|
56
|
+
attributes: { "data-layout-loading": "" },
|
|
57
|
+
properties: {
|
|
58
|
+
"class": "hostClasses()",
|
|
59
|
+
"attr.data-state": "state()"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
ngImport: i0,
|
|
63
|
+
template: `
|
|
64
|
+
@if (isPrimary() && loading.active()) {
|
|
65
|
+
<div
|
|
66
|
+
role="progressbar"
|
|
67
|
+
data-layout-loading-track
|
|
68
|
+
class="h-full w-full"
|
|
69
|
+
[attr.aria-label]="ariaLabel()"
|
|
70
|
+
aria-valuemin="0"
|
|
71
|
+
aria-valuemax="100"
|
|
72
|
+
[attr.aria-valuenow]="roundedProgress()"
|
|
73
|
+
>
|
|
74
|
+
<div
|
|
75
|
+
data-layout-loading-bar
|
|
76
|
+
class="h-full rounded-r-full bg-primary transition-[width] duration-normal ease-out"
|
|
77
|
+
[style.width.%]="loading.progress()"
|
|
78
|
+
></div>
|
|
79
|
+
</div>
|
|
80
|
+
}
|
|
81
|
+
`,
|
|
82
|
+
isInline: true
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
86
|
+
minVersion: "12.0.0",
|
|
87
|
+
version: "22.2.4",
|
|
88
|
+
ngImport: i0,
|
|
89
|
+
type: LayoutLoadingComponent,
|
|
90
|
+
decorators: [{
|
|
91
|
+
type: Component,
|
|
92
|
+
args: [{
|
|
93
|
+
selector: "LayoutLoading",
|
|
94
|
+
host: {
|
|
95
|
+
"[class]": "hostClasses()",
|
|
96
|
+
"data-layout-loading": "",
|
|
97
|
+
"[attr.data-state]": "state()"
|
|
98
|
+
},
|
|
99
|
+
template: `
|
|
100
|
+
@if (isPrimary() && loading.active()) {
|
|
101
|
+
<div
|
|
102
|
+
role="progressbar"
|
|
103
|
+
data-layout-loading-track
|
|
104
|
+
class="h-full w-full"
|
|
105
|
+
[attr.aria-label]="ariaLabel()"
|
|
106
|
+
aria-valuemin="0"
|
|
107
|
+
aria-valuemax="100"
|
|
108
|
+
[attr.aria-valuenow]="roundedProgress()"
|
|
109
|
+
>
|
|
110
|
+
<div
|
|
111
|
+
data-layout-loading-bar
|
|
112
|
+
class="h-full rounded-r-full bg-primary transition-[width] duration-normal ease-out"
|
|
113
|
+
[style.width.%]="loading.progress()"
|
|
114
|
+
></div>
|
|
115
|
+
</div>
|
|
116
|
+
}
|
|
117
|
+
`
|
|
118
|
+
}]
|
|
119
|
+
}],
|
|
120
|
+
ctorParameters: () => [],
|
|
121
|
+
propDecorators: {
|
|
122
|
+
class: [{
|
|
123
|
+
type: i0.Input,
|
|
124
|
+
args: [{
|
|
125
|
+
isSignal: true,
|
|
126
|
+
alias: "class",
|
|
127
|
+
required: false
|
|
128
|
+
}]
|
|
129
|
+
}],
|
|
130
|
+
ariaLabel: [{
|
|
131
|
+
type: i0.Input,
|
|
132
|
+
args: [{
|
|
133
|
+
isSignal: true,
|
|
134
|
+
alias: "ariaLabel",
|
|
135
|
+
required: false
|
|
136
|
+
}]
|
|
137
|
+
}]
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
var LayoutComponent = class LayoutComponent {
|
|
141
|
+
layout = inject(LayoutService$1);
|
|
142
|
+
themeRadius = inject(ThemeRadiusService);
|
|
143
|
+
surface = input(null, ...ngDevMode ? [{ debugName: "surface" }] : /* istanbul ignore next */ []);
|
|
144
|
+
appearance = input(null, ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
145
|
+
layoutAppearanceAttribute = input(null, {
|
|
146
|
+
...ngDevMode ? { debugName: "layoutAppearanceAttribute" } : /* istanbul ignore next */ {},
|
|
147
|
+
alias: "layout-appearance"
|
|
148
|
+
});
|
|
149
|
+
width = input(null, ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
150
|
+
type = input(null, {
|
|
151
|
+
...ngDevMode ? { debugName: "type" } : /* istanbul ignore next */ {},
|
|
152
|
+
alias: "layout-type"
|
|
153
|
+
});
|
|
154
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
155
|
+
appearanceInput = computed(() => this.appearance() ?? this.layoutAppearanceAttribute(), ...ngDevMode ? [{ debugName: "appearanceInput" }] : /* istanbul ignore next */ []);
|
|
156
|
+
resolvedSurface = computed(() => this.surface() ?? this.layout.surface(), ...ngDevMode ? [{ debugName: "resolvedSurface" }] : /* istanbul ignore next */ []);
|
|
157
|
+
resolvedAppearance = computed(() => this.appearanceInput() ?? this.layout.appearance(), ...ngDevMode ? [{ debugName: "resolvedAppearance" }] : /* istanbul ignore next */ []);
|
|
158
|
+
resolvedWidth = computed(() => this.layout.widthLocked() ? LAYOUT_LOCKED_WIDTH$1 : this.width() ?? this.layout.width(), ...ngDevMode ? [{ debugName: "resolvedWidth" }] : /* istanbul ignore next */ []);
|
|
159
|
+
resolvedType = computed(() => this.type() ?? this.layout.type(), ...ngDevMode ? [{ debugName: "resolvedType" }] : /* istanbul ignore next */ []);
|
|
160
|
+
isBorderRail = computed(() => this.resolvedAppearance() === "border-rail", ...ngDevMode ? [{ debugName: "isBorderRail" }] : /* istanbul ignore next */ []);
|
|
161
|
+
isFluidFrame = computed(() => this.resolvedWidth() === "fluid" && this.resolvedType() === "fluid", ...ngDevMode ? [{ debugName: "isFluidFrame" }] : /* istanbul ignore next */ []);
|
|
162
|
+
isFullFlat = computed(() => this.resolvedWidth() === "full" && !this.isBorderRail(), ...ngDevMode ? [{ debugName: "isFullFlat" }] : /* istanbul ignore next */ []);
|
|
163
|
+
isGridLineSurface = computed(() => this.resolvedSurface() === "grid-line", ...ngDevMode ? [{ debugName: "isGridLineSurface" }] : /* istanbul ignore next */ []);
|
|
164
|
+
showsInsetRails = computed(() => {
|
|
165
|
+
const layoutType = this.resolvedType();
|
|
166
|
+
return this.isBorderRail() && (layoutType === "horizontal" || layoutType === "vertical");
|
|
167
|
+
}, ...ngDevMode ? [{ debugName: "showsInsetRails" }] : /* istanbul ignore next */ []);
|
|
168
|
+
frameStageClasses = computed(() => cn("relative grid min-h-0 min-w-0 grid-cols-1 grid-rows-1", this.frameSizeClasses()), ...ngDevMode ? [{ debugName: "frameStageClasses" }] : /* istanbul ignore next */ []);
|
|
169
|
+
railAnchorClasses = computed(() => "relative h-full min-h-0 w-full min-w-0", ...ngDevMode ? [{ debugName: "railAnchorClasses" }] : /* istanbul ignore next */ []);
|
|
170
|
+
contentShellClasses = computed(() => cn("relative z-10 min-h-0 min-w-0", this.isFluidFrame() ? "h-auto w-auto max-h-full max-w-full" : "h-full w-full", this.isBorderRail() ? "overflow-visible" : "overflow-hidden"), ...ngDevMode ? [{ debugName: "contentShellClasses" }] : /* istanbul ignore next */ []);
|
|
171
|
+
hostClasses = computed(() => cn("relative isolate h-[var(--layout-viewport-height,100dvh)] w-[var(--layout-viewport-width,100%)] min-w-0 box-border overflow-hidden text-foreground", this.isFluidFrame() ? "grid place-items-center" : "block", this.surfaceClasses(), this.widthPaddingClasses(), this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
172
|
+
frameClasses = computed(() => {
|
|
173
|
+
const gridLine = this.isGridLineSurface();
|
|
174
|
+
return cn("relative min-h-0 min-w-0 bg-background", this.frameSizeClasses(), this.isBorderRail() ? "border-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]" : gridLine ? "border-[hsl(var(--accent-foreground)/var(--layout-grid-line-border-opacity))]" : "border-border", this.isBorderRail() ? "overflow-visible border-[length:var(--layout-rail-width)]" : gridLine ? "overflow-hidden border rounded-none" : this.isFullFlat() ? "overflow-hidden" : "overflow-hidden border rounded-[var(--layout-frame-radius)]");
|
|
175
|
+
}, ...ngDevMode ? [{ debugName: "frameClasses" }] : /* istanbul ignore next */ []);
|
|
176
|
+
frameLayerClasses = computed(() => cn("col-start-1 row-start-1", this.frameClasses()), ...ngDevMode ? [{ debugName: "frameLayerClasses" }] : /* istanbul ignore next */ []);
|
|
177
|
+
constructor() {
|
|
178
|
+
effect(() => {
|
|
179
|
+
const surface = this.surface();
|
|
180
|
+
if (surface !== null) this.layout.setSurface(surface, { persist: false });
|
|
181
|
+
else this.layout.registerSurface(LAYOUT_DEFAULT_SURFACE$1);
|
|
182
|
+
const appearance = this.appearanceInput();
|
|
183
|
+
if (appearance !== null) this.layout.setAppearance(appearance, { persist: false });
|
|
184
|
+
else this.layout.registerAppearance(LAYOUT_DEFAULT_APPEARANCE$1);
|
|
185
|
+
if (this.resolvedAppearance() === "border-rail" && this.themeRadius.radius() !== "none") this.themeRadius.setRadius("none");
|
|
186
|
+
const width = this.width();
|
|
187
|
+
if (this.layout.widthLocked()) {} else if (width !== null) this.layout.setWidth(width, { persist: false });
|
|
188
|
+
else this.layout.registerWidth(LAYOUT_DEFAULT_WIDTH$1);
|
|
189
|
+
const type = this.type();
|
|
190
|
+
if (type !== null) this.layout.setType(type, { persist: false });
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
surfaceClasses() {
|
|
194
|
+
switch (this.resolvedSurface()) {
|
|
195
|
+
case "grid": return "[--layout-grid-size:2rem] bg-layout-canvas bg-[linear-gradient(var(--layout-grid-color)_1px,transparent_1px),linear-gradient(to_right,var(--layout-grid-color)_1px,transparent_1px)] bg-position-[center_center] bg-size-[var(--layout-grid-size)_var(--layout-grid-size)]";
|
|
196
|
+
case "grid-line": return "bg-layout-canvas layout-surface-grid-line";
|
|
197
|
+
case "honeycomb": return "bg-layout-canvas layout-surface-honeycomb";
|
|
198
|
+
case "matrix": return "bg-layout-canvas layout-surface-matrix";
|
|
199
|
+
case "circuit": return "bg-layout-canvas layout-surface-circuit";
|
|
200
|
+
case "line-vertical": return "bg-layout-canvas bg-[linear-gradient(to_right,var(--layout-line-color)_1px,transparent_1px)] bg-position-[center_center] bg-size-[2rem_2rem]";
|
|
201
|
+
case "line-horizontal": return "bg-layout-canvas bg-[linear-gradient(var(--layout-line-color)_1px,transparent_1px)] bg-position-[center_center] bg-size-[2rem_2rem]";
|
|
202
|
+
default: return "bg-layout-canvas";
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
widthPaddingClasses() {
|
|
206
|
+
if (this.isFullFlat()) return "";
|
|
207
|
+
switch (this.resolvedWidth()) {
|
|
208
|
+
case "wide": return "p-0 sm:p-4 lg:p-12";
|
|
209
|
+
case "container": return "p-0 sm:p-4 lg:px-0 lg:py-16";
|
|
210
|
+
case "fluid": return "p-0 sm:p-6 lg:p-8";
|
|
211
|
+
default: return "p-0 sm:p-4";
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
frameSizeClasses() {
|
|
215
|
+
if (this.isFluidFrame()) return "h-auto w-auto max-h-full max-w-full";
|
|
216
|
+
return this.resolvedWidth() === "container" ? "h-full w-full lg:container lg:mx-auto" : "h-full w-full";
|
|
217
|
+
}
|
|
218
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
219
|
+
minVersion: "12.0.0",
|
|
220
|
+
version: "22.2.4",
|
|
221
|
+
ngImport: i0,
|
|
222
|
+
type: LayoutComponent,
|
|
223
|
+
deps: [],
|
|
224
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
225
|
+
});
|
|
226
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
227
|
+
minVersion: "17.0.0",
|
|
228
|
+
version: "22.2.4",
|
|
229
|
+
type: LayoutComponent,
|
|
230
|
+
isStandalone: true,
|
|
231
|
+
selector: "Layout",
|
|
232
|
+
inputs: {
|
|
233
|
+
surface: {
|
|
234
|
+
classPropertyName: "surface",
|
|
235
|
+
publicName: "surface",
|
|
236
|
+
isSignal: true,
|
|
237
|
+
isRequired: false,
|
|
238
|
+
transformFunction: null
|
|
239
|
+
},
|
|
240
|
+
appearance: {
|
|
241
|
+
classPropertyName: "appearance",
|
|
242
|
+
publicName: "appearance",
|
|
243
|
+
isSignal: true,
|
|
244
|
+
isRequired: false,
|
|
245
|
+
transformFunction: null
|
|
246
|
+
},
|
|
247
|
+
layoutAppearanceAttribute: {
|
|
248
|
+
classPropertyName: "layoutAppearanceAttribute",
|
|
249
|
+
publicName: "layout-appearance",
|
|
250
|
+
isSignal: true,
|
|
251
|
+
isRequired: false,
|
|
252
|
+
transformFunction: null
|
|
253
|
+
},
|
|
254
|
+
width: {
|
|
255
|
+
classPropertyName: "width",
|
|
256
|
+
publicName: "width",
|
|
257
|
+
isSignal: true,
|
|
258
|
+
isRequired: false,
|
|
259
|
+
transformFunction: null
|
|
260
|
+
},
|
|
261
|
+
type: {
|
|
262
|
+
classPropertyName: "type",
|
|
263
|
+
publicName: "layout-type",
|
|
264
|
+
isSignal: true,
|
|
265
|
+
isRequired: false,
|
|
266
|
+
transformFunction: null
|
|
267
|
+
},
|
|
268
|
+
class: {
|
|
269
|
+
classPropertyName: "class",
|
|
270
|
+
publicName: "class",
|
|
271
|
+
isSignal: true,
|
|
272
|
+
isRequired: false,
|
|
273
|
+
transformFunction: null
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
host: {
|
|
277
|
+
attributes: { "data-layout-root": "" },
|
|
278
|
+
properties: {
|
|
279
|
+
"class": "hostClasses()",
|
|
280
|
+
"attr.data-surface": "resolvedSurface()",
|
|
281
|
+
"attr.data-layout-appearance": "resolvedAppearance()",
|
|
282
|
+
"attr.data-layout-width": "resolvedWidth()",
|
|
283
|
+
"attr.data-layout-type": "resolvedType()"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
ngImport: i0,
|
|
287
|
+
template: `
|
|
288
|
+
<LayoutLoading />
|
|
289
|
+
|
|
290
|
+
<div data-layout-stage [class]="frameStageClasses()">
|
|
291
|
+
@if (isBorderRail()) {
|
|
292
|
+
<div
|
|
293
|
+
aria-hidden="true"
|
|
294
|
+
data-layout-rail
|
|
295
|
+
class="pointer-events-none col-start-1 row-start-1 z-0 overflow-visible"
|
|
296
|
+
>
|
|
297
|
+
<div data-layout-rail-anchor [class]="railAnchorClasses()">
|
|
298
|
+
<div
|
|
299
|
+
data-layout-rail-top-left-horizontal
|
|
300
|
+
class="absolute top-0 right-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
301
|
+
></div>
|
|
302
|
+
<div
|
|
303
|
+
data-layout-rail-top-left-vertical
|
|
304
|
+
class="absolute bottom-full left-0 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
305
|
+
></div>
|
|
306
|
+
<div
|
|
307
|
+
data-layout-rail-top-right-horizontal
|
|
308
|
+
class="absolute top-0 left-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
309
|
+
></div>
|
|
310
|
+
<div
|
|
311
|
+
data-layout-rail-top-right-vertical
|
|
312
|
+
class="absolute bottom-full right-0 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
313
|
+
></div>
|
|
314
|
+
<div
|
|
315
|
+
data-layout-rail-bottom-left-horizontal
|
|
316
|
+
class="absolute bottom-0 right-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
317
|
+
></div>
|
|
318
|
+
<div
|
|
319
|
+
data-layout-rail-bottom-left-vertical
|
|
320
|
+
class="absolute top-full left-0 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
321
|
+
></div>
|
|
322
|
+
<div
|
|
323
|
+
data-layout-rail-bottom-right-horizontal
|
|
324
|
+
class="absolute bottom-0 left-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
325
|
+
></div>
|
|
326
|
+
<div
|
|
327
|
+
data-layout-rail-bottom-right-vertical
|
|
328
|
+
class="absolute top-full right-0 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
329
|
+
></div>
|
|
330
|
+
|
|
331
|
+
@if (showsInsetRails()) {
|
|
332
|
+
<div
|
|
333
|
+
data-layout-horizontal-top-rail
|
|
334
|
+
class="absolute inset-x-0 top-12 h-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
335
|
+
></div>
|
|
336
|
+
<div
|
|
337
|
+
data-layout-horizontal-top-left-extension
|
|
338
|
+
class="absolute top-12 right-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
339
|
+
></div>
|
|
340
|
+
<div
|
|
341
|
+
data-layout-horizontal-top-right-extension
|
|
342
|
+
class="absolute top-12 left-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
343
|
+
></div>
|
|
344
|
+
<div
|
|
345
|
+
data-layout-horizontal-bottom-rail
|
|
346
|
+
class="absolute inset-x-0 bottom-12 h-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
347
|
+
></div>
|
|
348
|
+
<div
|
|
349
|
+
data-layout-horizontal-bottom-left-extension
|
|
350
|
+
class="absolute bottom-12 right-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
351
|
+
></div>
|
|
352
|
+
<div
|
|
353
|
+
data-layout-horizontal-bottom-right-extension
|
|
354
|
+
class="absolute bottom-12 left-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
355
|
+
></div>
|
|
356
|
+
|
|
357
|
+
<div
|
|
358
|
+
data-layout-vertical-left-rail
|
|
359
|
+
class="absolute inset-y-0 -left-4 w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
360
|
+
></div>
|
|
361
|
+
<div
|
|
362
|
+
data-layout-vertical-left-top-extension
|
|
363
|
+
class="absolute bottom-full -left-4 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
364
|
+
></div>
|
|
365
|
+
<div
|
|
366
|
+
data-layout-vertical-left-bottom-extension
|
|
367
|
+
class="absolute top-full -left-4 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
368
|
+
></div>
|
|
369
|
+
<div
|
|
370
|
+
data-layout-vertical-right-rail
|
|
371
|
+
class="absolute inset-y-0 -right-4 w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
372
|
+
></div>
|
|
373
|
+
<div
|
|
374
|
+
data-layout-vertical-right-top-extension
|
|
375
|
+
class="absolute bottom-full -right-4 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
376
|
+
></div>
|
|
377
|
+
<div
|
|
378
|
+
data-layout-vertical-right-bottom-extension
|
|
379
|
+
class="absolute top-full -right-4 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
380
|
+
></div>
|
|
381
|
+
}
|
|
382
|
+
</div>
|
|
383
|
+
</div>
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
<div data-layout-frame [class]="frameLayerClasses()">
|
|
387
|
+
<div data-layout-content-shell [class]="contentShellClasses()">
|
|
388
|
+
<ng-content />
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
</div>
|
|
392
|
+
`,
|
|
393
|
+
isInline: true,
|
|
394
|
+
dependencies: [{
|
|
395
|
+
kind: "component",
|
|
396
|
+
type: LayoutLoadingComponent,
|
|
397
|
+
selector: "LayoutLoading",
|
|
398
|
+
inputs: ["class", "ariaLabel"]
|
|
399
|
+
}]
|
|
400
|
+
});
|
|
401
|
+
};
|
|
402
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
403
|
+
minVersion: "12.0.0",
|
|
404
|
+
version: "22.2.4",
|
|
405
|
+
ngImport: i0,
|
|
406
|
+
type: LayoutComponent,
|
|
407
|
+
decorators: [{
|
|
408
|
+
type: Component,
|
|
409
|
+
args: [{
|
|
410
|
+
selector: "Layout",
|
|
411
|
+
imports: [LayoutLoadingComponent],
|
|
412
|
+
host: {
|
|
413
|
+
"[class]": "hostClasses()",
|
|
414
|
+
"data-layout-root": "",
|
|
415
|
+
"[attr.data-surface]": "resolvedSurface()",
|
|
416
|
+
"[attr.data-layout-appearance]": "resolvedAppearance()",
|
|
417
|
+
"[attr.data-layout-width]": "resolvedWidth()",
|
|
418
|
+
"[attr.data-layout-type]": "resolvedType()"
|
|
419
|
+
},
|
|
420
|
+
template: `
|
|
421
|
+
<LayoutLoading />
|
|
422
|
+
|
|
423
|
+
<div data-layout-stage [class]="frameStageClasses()">
|
|
424
|
+
@if (isBorderRail()) {
|
|
425
|
+
<div
|
|
426
|
+
aria-hidden="true"
|
|
427
|
+
data-layout-rail
|
|
428
|
+
class="pointer-events-none col-start-1 row-start-1 z-0 overflow-visible"
|
|
429
|
+
>
|
|
430
|
+
<div data-layout-rail-anchor [class]="railAnchorClasses()">
|
|
431
|
+
<div
|
|
432
|
+
data-layout-rail-top-left-horizontal
|
|
433
|
+
class="absolute top-0 right-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
434
|
+
></div>
|
|
435
|
+
<div
|
|
436
|
+
data-layout-rail-top-left-vertical
|
|
437
|
+
class="absolute bottom-full left-0 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
438
|
+
></div>
|
|
439
|
+
<div
|
|
440
|
+
data-layout-rail-top-right-horizontal
|
|
441
|
+
class="absolute top-0 left-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
442
|
+
></div>
|
|
443
|
+
<div
|
|
444
|
+
data-layout-rail-top-right-vertical
|
|
445
|
+
class="absolute bottom-full right-0 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
446
|
+
></div>
|
|
447
|
+
<div
|
|
448
|
+
data-layout-rail-bottom-left-horizontal
|
|
449
|
+
class="absolute bottom-0 right-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
450
|
+
></div>
|
|
451
|
+
<div
|
|
452
|
+
data-layout-rail-bottom-left-vertical
|
|
453
|
+
class="absolute top-full left-0 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
454
|
+
></div>
|
|
455
|
+
<div
|
|
456
|
+
data-layout-rail-bottom-right-horizontal
|
|
457
|
+
class="absolute bottom-0 left-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
458
|
+
></div>
|
|
459
|
+
<div
|
|
460
|
+
data-layout-rail-bottom-right-vertical
|
|
461
|
+
class="absolute top-full right-0 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
462
|
+
></div>
|
|
463
|
+
|
|
464
|
+
@if (showsInsetRails()) {
|
|
465
|
+
<div
|
|
466
|
+
data-layout-horizontal-top-rail
|
|
467
|
+
class="absolute inset-x-0 top-12 h-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
468
|
+
></div>
|
|
469
|
+
<div
|
|
470
|
+
data-layout-horizontal-top-left-extension
|
|
471
|
+
class="absolute top-12 right-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
472
|
+
></div>
|
|
473
|
+
<div
|
|
474
|
+
data-layout-horizontal-top-right-extension
|
|
475
|
+
class="absolute top-12 left-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
476
|
+
></div>
|
|
477
|
+
<div
|
|
478
|
+
data-layout-horizontal-bottom-rail
|
|
479
|
+
class="absolute inset-x-0 bottom-12 h-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
480
|
+
></div>
|
|
481
|
+
<div
|
|
482
|
+
data-layout-horizontal-bottom-left-extension
|
|
483
|
+
class="absolute bottom-12 right-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
484
|
+
></div>
|
|
485
|
+
<div
|
|
486
|
+
data-layout-horizontal-bottom-right-extension
|
|
487
|
+
class="absolute bottom-12 left-full h-(--layout-rail-width) w-[calc((100vw-100%)/2)] bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
488
|
+
></div>
|
|
489
|
+
|
|
490
|
+
<div
|
|
491
|
+
data-layout-vertical-left-rail
|
|
492
|
+
class="absolute inset-y-0 -left-4 w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
493
|
+
></div>
|
|
494
|
+
<div
|
|
495
|
+
data-layout-vertical-left-top-extension
|
|
496
|
+
class="absolute bottom-full -left-4 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
497
|
+
></div>
|
|
498
|
+
<div
|
|
499
|
+
data-layout-vertical-left-bottom-extension
|
|
500
|
+
class="absolute top-full -left-4 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
501
|
+
></div>
|
|
502
|
+
<div
|
|
503
|
+
data-layout-vertical-right-rail
|
|
504
|
+
class="absolute inset-y-0 -right-4 w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
505
|
+
></div>
|
|
506
|
+
<div
|
|
507
|
+
data-layout-vertical-right-top-extension
|
|
508
|
+
class="absolute bottom-full -right-4 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
509
|
+
></div>
|
|
510
|
+
<div
|
|
511
|
+
data-layout-vertical-right-bottom-extension
|
|
512
|
+
class="absolute top-full -right-4 h-[calc((100dvh-100%)/2)] w-(--layout-rail-width) bg-[hsl(var(--layout-rail-color)/var(--layout-rail-opacity))]"
|
|
513
|
+
></div>
|
|
514
|
+
}
|
|
515
|
+
</div>
|
|
516
|
+
</div>
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
<div data-layout-frame [class]="frameLayerClasses()">
|
|
520
|
+
<div data-layout-content-shell [class]="contentShellClasses()">
|
|
521
|
+
<ng-content />
|
|
522
|
+
</div>
|
|
523
|
+
</div>
|
|
524
|
+
</div>
|
|
525
|
+
`
|
|
526
|
+
}]
|
|
527
|
+
}],
|
|
528
|
+
ctorParameters: () => [],
|
|
529
|
+
propDecorators: {
|
|
530
|
+
surface: [{
|
|
531
|
+
type: i0.Input,
|
|
532
|
+
args: [{
|
|
533
|
+
isSignal: true,
|
|
534
|
+
alias: "surface",
|
|
535
|
+
required: false
|
|
536
|
+
}]
|
|
537
|
+
}],
|
|
538
|
+
appearance: [{
|
|
539
|
+
type: i0.Input,
|
|
540
|
+
args: [{
|
|
541
|
+
isSignal: true,
|
|
542
|
+
alias: "appearance",
|
|
543
|
+
required: false
|
|
544
|
+
}]
|
|
545
|
+
}],
|
|
546
|
+
layoutAppearanceAttribute: [{
|
|
547
|
+
type: i0.Input,
|
|
548
|
+
args: [{
|
|
549
|
+
isSignal: true,
|
|
550
|
+
alias: "layout-appearance",
|
|
551
|
+
required: false
|
|
552
|
+
}]
|
|
553
|
+
}],
|
|
554
|
+
width: [{
|
|
555
|
+
type: i0.Input,
|
|
556
|
+
args: [{
|
|
557
|
+
isSignal: true,
|
|
558
|
+
alias: "width",
|
|
559
|
+
required: false
|
|
560
|
+
}]
|
|
561
|
+
}],
|
|
562
|
+
type: [{
|
|
563
|
+
type: i0.Input,
|
|
564
|
+
args: [{
|
|
565
|
+
isSignal: true,
|
|
566
|
+
alias: "layout-type",
|
|
567
|
+
required: false
|
|
568
|
+
}]
|
|
569
|
+
}],
|
|
570
|
+
class: [{
|
|
571
|
+
type: i0.Input,
|
|
572
|
+
args: [{
|
|
573
|
+
isSignal: true,
|
|
574
|
+
alias: "class",
|
|
575
|
+
required: false
|
|
576
|
+
}]
|
|
577
|
+
}]
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
var LayoutVerticalComponent = class LayoutVerticalComponent {
|
|
581
|
+
layout = inject(LayoutService$1);
|
|
582
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
583
|
+
classes = computed(() => cn("grid h-full min-h-0 w-full min-w-0 grid-cols-[auto_minmax(0,1fr)]", this.layout.appearance() === "border-rail" ? "overflow-visible" : "overflow-hidden", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
584
|
+
constructor() {
|
|
585
|
+
this.layout.setType("vertical", { persist: false });
|
|
586
|
+
}
|
|
587
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
588
|
+
minVersion: "12.0.0",
|
|
589
|
+
version: "22.2.4",
|
|
590
|
+
ngImport: i0,
|
|
591
|
+
type: LayoutVerticalComponent,
|
|
592
|
+
deps: [],
|
|
593
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
594
|
+
});
|
|
595
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
596
|
+
minVersion: "17.1.0",
|
|
597
|
+
version: "22.2.4",
|
|
598
|
+
type: LayoutVerticalComponent,
|
|
599
|
+
isStandalone: true,
|
|
600
|
+
selector: "LayoutVertical",
|
|
601
|
+
inputs: { class: {
|
|
602
|
+
classPropertyName: "class",
|
|
603
|
+
publicName: "class",
|
|
604
|
+
isSignal: true,
|
|
605
|
+
isRequired: false,
|
|
606
|
+
transformFunction: null
|
|
607
|
+
} },
|
|
608
|
+
host: {
|
|
609
|
+
attributes: {
|
|
610
|
+
"data-layout-variant": "",
|
|
611
|
+
"data-layout-type": "vertical"
|
|
612
|
+
},
|
|
613
|
+
properties: { "class": "classes()" }
|
|
614
|
+
},
|
|
615
|
+
ngImport: i0,
|
|
616
|
+
template: `<ng-content />`,
|
|
617
|
+
isInline: true
|
|
618
|
+
});
|
|
619
|
+
};
|
|
620
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
621
|
+
minVersion: "12.0.0",
|
|
622
|
+
version: "22.2.4",
|
|
623
|
+
ngImport: i0,
|
|
624
|
+
type: LayoutVerticalComponent,
|
|
625
|
+
decorators: [{
|
|
626
|
+
type: Component,
|
|
627
|
+
args: [{
|
|
628
|
+
selector: "LayoutVertical",
|
|
629
|
+
host: {
|
|
630
|
+
"[class]": "classes()",
|
|
631
|
+
"data-layout-variant": "",
|
|
632
|
+
"data-layout-type": "vertical"
|
|
633
|
+
},
|
|
634
|
+
template: `<ng-content />`
|
|
635
|
+
}]
|
|
636
|
+
}],
|
|
637
|
+
ctorParameters: () => [],
|
|
638
|
+
propDecorators: { class: [{
|
|
639
|
+
type: i0.Input,
|
|
640
|
+
args: [{
|
|
641
|
+
isSignal: true,
|
|
642
|
+
alias: "class",
|
|
643
|
+
required: false
|
|
644
|
+
}]
|
|
645
|
+
}] }
|
|
646
|
+
});
|
|
647
|
+
var LayoutHorizontalComponent = class LayoutHorizontalComponent {
|
|
648
|
+
layout = inject(LayoutService$1);
|
|
649
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
650
|
+
classes = computed(() => cn("flex h-full min-h-0 w-full min-w-0 flex-col overflow-hidden", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
651
|
+
constructor() {
|
|
652
|
+
this.layout.setType("horizontal", { persist: false });
|
|
653
|
+
}
|
|
654
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
655
|
+
minVersion: "12.0.0",
|
|
656
|
+
version: "22.2.4",
|
|
657
|
+
ngImport: i0,
|
|
658
|
+
type: LayoutHorizontalComponent,
|
|
659
|
+
deps: [],
|
|
660
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
661
|
+
});
|
|
662
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
663
|
+
minVersion: "17.1.0",
|
|
664
|
+
version: "22.2.4",
|
|
665
|
+
type: LayoutHorizontalComponent,
|
|
666
|
+
isStandalone: true,
|
|
667
|
+
selector: "LayoutHorizontal",
|
|
668
|
+
inputs: { class: {
|
|
669
|
+
classPropertyName: "class",
|
|
670
|
+
publicName: "class",
|
|
671
|
+
isSignal: true,
|
|
672
|
+
isRequired: false,
|
|
673
|
+
transformFunction: null
|
|
674
|
+
} },
|
|
675
|
+
host: {
|
|
676
|
+
attributes: {
|
|
677
|
+
"data-layout-variant": "",
|
|
678
|
+
"data-layout-type": "horizontal"
|
|
679
|
+
},
|
|
680
|
+
properties: { "class": "classes()" }
|
|
681
|
+
},
|
|
682
|
+
ngImport: i0,
|
|
683
|
+
template: `<ng-content />`,
|
|
684
|
+
isInline: true
|
|
685
|
+
});
|
|
686
|
+
};
|
|
687
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
688
|
+
minVersion: "12.0.0",
|
|
689
|
+
version: "22.2.4",
|
|
690
|
+
ngImport: i0,
|
|
691
|
+
type: LayoutHorizontalComponent,
|
|
692
|
+
decorators: [{
|
|
693
|
+
type: Component,
|
|
694
|
+
args: [{
|
|
695
|
+
selector: "LayoutHorizontal",
|
|
696
|
+
host: {
|
|
697
|
+
"[class]": "classes()",
|
|
698
|
+
"data-layout-variant": "",
|
|
699
|
+
"data-layout-type": "horizontal"
|
|
700
|
+
},
|
|
701
|
+
template: `<ng-content />`
|
|
702
|
+
}]
|
|
703
|
+
}],
|
|
704
|
+
ctorParameters: () => [],
|
|
705
|
+
propDecorators: { class: [{
|
|
706
|
+
type: i0.Input,
|
|
707
|
+
args: [{
|
|
708
|
+
isSignal: true,
|
|
709
|
+
alias: "class",
|
|
710
|
+
required: false
|
|
711
|
+
}]
|
|
712
|
+
}] }
|
|
713
|
+
});
|
|
714
|
+
var LayoutEmptyComponent = class LayoutEmptyComponent {
|
|
715
|
+
layout = inject(LayoutService$1);
|
|
716
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
717
|
+
classes = computed(() => cn("h-full min-h-0 w-full min-w-0 overflow-hidden", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
718
|
+
constructor() {
|
|
719
|
+
this.layout.setType("empty", { persist: false });
|
|
720
|
+
}
|
|
721
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
722
|
+
minVersion: "12.0.0",
|
|
723
|
+
version: "22.2.4",
|
|
724
|
+
ngImport: i0,
|
|
725
|
+
type: LayoutEmptyComponent,
|
|
726
|
+
deps: [],
|
|
727
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
728
|
+
});
|
|
729
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
730
|
+
minVersion: "17.1.0",
|
|
731
|
+
version: "22.2.4",
|
|
732
|
+
type: LayoutEmptyComponent,
|
|
733
|
+
isStandalone: true,
|
|
734
|
+
selector: "LayoutEmpty",
|
|
735
|
+
inputs: { class: {
|
|
736
|
+
classPropertyName: "class",
|
|
737
|
+
publicName: "class",
|
|
738
|
+
isSignal: true,
|
|
739
|
+
isRequired: false,
|
|
740
|
+
transformFunction: null
|
|
741
|
+
} },
|
|
742
|
+
host: {
|
|
743
|
+
attributes: {
|
|
744
|
+
"data-layout-variant": "",
|
|
745
|
+
"data-layout-type": "empty"
|
|
746
|
+
},
|
|
747
|
+
properties: { "class": "classes()" }
|
|
748
|
+
},
|
|
749
|
+
ngImport: i0,
|
|
750
|
+
template: `<ng-content />`,
|
|
751
|
+
isInline: true
|
|
752
|
+
});
|
|
753
|
+
};
|
|
754
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
755
|
+
minVersion: "12.0.0",
|
|
756
|
+
version: "22.2.4",
|
|
757
|
+
ngImport: i0,
|
|
758
|
+
type: LayoutEmptyComponent,
|
|
759
|
+
decorators: [{
|
|
760
|
+
type: Component,
|
|
761
|
+
args: [{
|
|
762
|
+
selector: "LayoutEmpty",
|
|
763
|
+
host: {
|
|
764
|
+
"[class]": "classes()",
|
|
765
|
+
"data-layout-variant": "",
|
|
766
|
+
"data-layout-type": "empty"
|
|
767
|
+
},
|
|
768
|
+
template: `<ng-content />`
|
|
769
|
+
}]
|
|
770
|
+
}],
|
|
771
|
+
ctorParameters: () => [],
|
|
772
|
+
propDecorators: { class: [{
|
|
773
|
+
type: i0.Input,
|
|
774
|
+
args: [{
|
|
775
|
+
isSignal: true,
|
|
776
|
+
alias: "class",
|
|
777
|
+
required: false
|
|
778
|
+
}]
|
|
779
|
+
}] }
|
|
780
|
+
});
|
|
781
|
+
var LayoutFluidComponent = class LayoutFluidComponent {
|
|
782
|
+
layout = inject(LayoutService$1);
|
|
783
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
784
|
+
classes = computed(() => cn("grid min-h-0 min-w-0 place-items-center overflow-auto", this.layout.width() === "fluid" ? "h-auto w-auto max-h-full max-w-full" : "h-full w-full", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
785
|
+
constructor() {
|
|
786
|
+
this.layout.setType("fluid", { persist: false });
|
|
787
|
+
}
|
|
788
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
789
|
+
minVersion: "12.0.0",
|
|
790
|
+
version: "22.2.4",
|
|
791
|
+
ngImport: i0,
|
|
792
|
+
type: LayoutFluidComponent,
|
|
793
|
+
deps: [],
|
|
794
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
795
|
+
});
|
|
796
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
797
|
+
minVersion: "17.1.0",
|
|
798
|
+
version: "22.2.4",
|
|
799
|
+
type: LayoutFluidComponent,
|
|
800
|
+
isStandalone: true,
|
|
801
|
+
selector: "LayoutFluid",
|
|
802
|
+
inputs: { class: {
|
|
803
|
+
classPropertyName: "class",
|
|
804
|
+
publicName: "class",
|
|
805
|
+
isSignal: true,
|
|
806
|
+
isRequired: false,
|
|
807
|
+
transformFunction: null
|
|
808
|
+
} },
|
|
809
|
+
host: {
|
|
810
|
+
attributes: {
|
|
811
|
+
"data-layout-variant": "",
|
|
812
|
+
"data-layout-type": "fluid"
|
|
813
|
+
},
|
|
814
|
+
properties: { "class": "classes()" }
|
|
815
|
+
},
|
|
816
|
+
ngImport: i0,
|
|
817
|
+
template: `<ng-content />`,
|
|
818
|
+
isInline: true
|
|
819
|
+
});
|
|
820
|
+
};
|
|
821
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
822
|
+
minVersion: "12.0.0",
|
|
823
|
+
version: "22.2.4",
|
|
824
|
+
ngImport: i0,
|
|
825
|
+
type: LayoutFluidComponent,
|
|
826
|
+
decorators: [{
|
|
827
|
+
type: Component,
|
|
828
|
+
args: [{
|
|
829
|
+
selector: "LayoutFluid",
|
|
830
|
+
host: {
|
|
831
|
+
"[class]": "classes()",
|
|
832
|
+
"data-layout-variant": "",
|
|
833
|
+
"data-layout-type": "fluid"
|
|
834
|
+
},
|
|
835
|
+
template: `<ng-content />`
|
|
836
|
+
}]
|
|
837
|
+
}],
|
|
838
|
+
ctorParameters: () => [],
|
|
839
|
+
propDecorators: { class: [{
|
|
840
|
+
type: i0.Input,
|
|
841
|
+
args: [{
|
|
842
|
+
isSignal: true,
|
|
843
|
+
alias: "class",
|
|
844
|
+
required: false
|
|
845
|
+
}]
|
|
846
|
+
}] }
|
|
847
|
+
});
|
|
848
|
+
var LayoutNavigationComponent = class LayoutNavigationComponent {
|
|
849
|
+
layout = inject(LayoutService$1);
|
|
850
|
+
ariaLabel = input("Layout navigation", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
851
|
+
landmark = input(true, {
|
|
852
|
+
...ngDevMode ? { debugName: "landmark" } : /* istanbul ignore next */ {},
|
|
853
|
+
transform: booleanAttribute
|
|
854
|
+
});
|
|
855
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
856
|
+
classes = computed(() => {
|
|
857
|
+
const layoutType = this.layout.type();
|
|
858
|
+
return cn("relative block min-h-0 min-w-0", layoutType === "horizontal" && "h-(--layout-topbar-height) min-h-(--layout-topbar-height) w-full shrink-0 overflow-visible", layoutType === "vertical" && "h-full w-max max-w-full shrink-0 overflow-visible", (layoutType === "empty" || layoutType === "fluid") && "hidden", this.class());
|
|
859
|
+
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
860
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
861
|
+
minVersion: "12.0.0",
|
|
862
|
+
version: "22.2.4",
|
|
863
|
+
ngImport: i0,
|
|
864
|
+
type: LayoutNavigationComponent,
|
|
865
|
+
deps: [],
|
|
866
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
867
|
+
});
|
|
868
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
869
|
+
minVersion: "17.1.0",
|
|
870
|
+
version: "22.2.4",
|
|
871
|
+
type: LayoutNavigationComponent,
|
|
872
|
+
isStandalone: true,
|
|
873
|
+
selector: "LayoutNavigation",
|
|
874
|
+
inputs: {
|
|
875
|
+
ariaLabel: {
|
|
876
|
+
classPropertyName: "ariaLabel",
|
|
877
|
+
publicName: "ariaLabel",
|
|
878
|
+
isSignal: true,
|
|
879
|
+
isRequired: false,
|
|
880
|
+
transformFunction: null
|
|
881
|
+
},
|
|
882
|
+
landmark: {
|
|
883
|
+
classPropertyName: "landmark",
|
|
884
|
+
publicName: "landmark",
|
|
885
|
+
isSignal: true,
|
|
886
|
+
isRequired: false,
|
|
887
|
+
transformFunction: null
|
|
888
|
+
},
|
|
889
|
+
class: {
|
|
890
|
+
classPropertyName: "class",
|
|
891
|
+
publicName: "class",
|
|
892
|
+
isSignal: true,
|
|
893
|
+
isRequired: false,
|
|
894
|
+
transformFunction: null
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
host: {
|
|
898
|
+
attributes: { "data-layout-navigation": "" },
|
|
899
|
+
properties: {
|
|
900
|
+
"class": "classes()",
|
|
901
|
+
"attr.role": "landmark() ? \"navigation\" : null",
|
|
902
|
+
"attr.aria-label": "landmark() ? ariaLabel() || null : null",
|
|
903
|
+
"attr.data-layout-type": "layout.type()",
|
|
904
|
+
"attr.data-layout-appearance": "layout.appearance()"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
ngImport: i0,
|
|
908
|
+
template: ` <ng-content /> `,
|
|
909
|
+
isInline: true
|
|
910
|
+
});
|
|
911
|
+
};
|
|
912
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
913
|
+
minVersion: "12.0.0",
|
|
914
|
+
version: "22.2.4",
|
|
915
|
+
ngImport: i0,
|
|
916
|
+
type: LayoutNavigationComponent,
|
|
917
|
+
decorators: [{
|
|
918
|
+
type: Component,
|
|
919
|
+
args: [{
|
|
920
|
+
selector: "LayoutNavigation",
|
|
921
|
+
host: {
|
|
922
|
+
"[class]": "classes()",
|
|
923
|
+
"data-layout-navigation": "",
|
|
924
|
+
"[attr.role]": "landmark() ? \"navigation\" : null",
|
|
925
|
+
"[attr.aria-label]": "landmark() ? ariaLabel() || null : null",
|
|
926
|
+
"[attr.data-layout-type]": "layout.type()",
|
|
927
|
+
"[attr.data-layout-appearance]": "layout.appearance()"
|
|
928
|
+
},
|
|
929
|
+
template: ` <ng-content /> `
|
|
930
|
+
}]
|
|
931
|
+
}],
|
|
932
|
+
propDecorators: {
|
|
933
|
+
ariaLabel: [{
|
|
934
|
+
type: i0.Input,
|
|
935
|
+
args: [{
|
|
936
|
+
isSignal: true,
|
|
937
|
+
alias: "ariaLabel",
|
|
938
|
+
required: false
|
|
939
|
+
}]
|
|
940
|
+
}],
|
|
941
|
+
landmark: [{
|
|
942
|
+
type: i0.Input,
|
|
943
|
+
args: [{
|
|
944
|
+
isSignal: true,
|
|
945
|
+
alias: "landmark",
|
|
946
|
+
required: false
|
|
947
|
+
}]
|
|
948
|
+
}],
|
|
949
|
+
class: [{
|
|
950
|
+
type: i0.Input,
|
|
951
|
+
args: [{
|
|
952
|
+
isSignal: true,
|
|
953
|
+
alias: "class",
|
|
954
|
+
required: false
|
|
955
|
+
}]
|
|
956
|
+
}]
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
var LayoutContentComponent = class LayoutContentComponent {
|
|
960
|
+
layout = inject(LayoutService$1);
|
|
961
|
+
document = inject(DOCUMENT, { optional: true });
|
|
962
|
+
host = inject(ElementRef);
|
|
963
|
+
router = inject(Router, { optional: true });
|
|
964
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
965
|
+
contentId = input("main-content", {
|
|
966
|
+
...ngDevMode ? { debugName: "contentId" } : /* istanbul ignore next */ {},
|
|
967
|
+
alias: "content-id"
|
|
968
|
+
});
|
|
969
|
+
focusOnNavigation = input(false, {
|
|
970
|
+
...ngDevMode ? { debugName: "focusOnNavigation" } : /* istanbul ignore next */ {},
|
|
971
|
+
alias: "focus-on-navigation"
|
|
972
|
+
});
|
|
973
|
+
classes = computed(() => {
|
|
974
|
+
const layoutType = this.layout.type();
|
|
975
|
+
return cn("block min-h-0 min-w-0 overflow-auto", layoutType === "horizontal" && "flex-1", layoutType === "vertical" && "h-full", layoutType === "empty" && "h-full w-full", layoutType === "fluid" && "max-h-full max-w-full", this.layout.width() === "container" && "w-full lg:container lg:mx-auto", this.class());
|
|
976
|
+
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
977
|
+
constructor() {
|
|
978
|
+
this.router?.events.pipe(takeUntilDestroyed()).subscribe((event) => {
|
|
979
|
+
if (!(event instanceof NavigationEnd) || !this.focusOnNavigation()) return;
|
|
980
|
+
const view = this.document?.defaultView;
|
|
981
|
+
if (!view) return;
|
|
982
|
+
view.requestAnimationFrame(() => this.host.nativeElement.focus());
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
986
|
+
minVersion: "12.0.0",
|
|
987
|
+
version: "22.2.4",
|
|
988
|
+
ngImport: i0,
|
|
989
|
+
type: LayoutContentComponent,
|
|
990
|
+
deps: [],
|
|
991
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
992
|
+
});
|
|
993
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
994
|
+
minVersion: "17.1.0",
|
|
995
|
+
version: "22.2.4",
|
|
996
|
+
type: LayoutContentComponent,
|
|
997
|
+
isStandalone: true,
|
|
998
|
+
selector: "LayoutContent",
|
|
999
|
+
inputs: {
|
|
1000
|
+
class: {
|
|
1001
|
+
classPropertyName: "class",
|
|
1002
|
+
publicName: "class",
|
|
1003
|
+
isSignal: true,
|
|
1004
|
+
isRequired: false,
|
|
1005
|
+
transformFunction: null
|
|
1006
|
+
},
|
|
1007
|
+
contentId: {
|
|
1008
|
+
classPropertyName: "contentId",
|
|
1009
|
+
publicName: "content-id",
|
|
1010
|
+
isSignal: true,
|
|
1011
|
+
isRequired: false,
|
|
1012
|
+
transformFunction: null
|
|
1013
|
+
},
|
|
1014
|
+
focusOnNavigation: {
|
|
1015
|
+
classPropertyName: "focusOnNavigation",
|
|
1016
|
+
publicName: "focus-on-navigation",
|
|
1017
|
+
isSignal: true,
|
|
1018
|
+
isRequired: false,
|
|
1019
|
+
transformFunction: null
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
host: {
|
|
1023
|
+
attributes: {
|
|
1024
|
+
"data-layout-content": "",
|
|
1025
|
+
"role": "main",
|
|
1026
|
+
"tabindex": "-1"
|
|
1027
|
+
},
|
|
1028
|
+
properties: {
|
|
1029
|
+
"class": "classes()",
|
|
1030
|
+
"attr.id": "contentId()",
|
|
1031
|
+
"attr.data-layout-type": "layout.type()",
|
|
1032
|
+
"attr.data-layout-width": "layout.width()"
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
ngImport: i0,
|
|
1036
|
+
template: `<ng-content />`,
|
|
1037
|
+
isInline: true
|
|
1038
|
+
});
|
|
1039
|
+
};
|
|
1040
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1041
|
+
minVersion: "12.0.0",
|
|
1042
|
+
version: "22.2.4",
|
|
1043
|
+
ngImport: i0,
|
|
1044
|
+
type: LayoutContentComponent,
|
|
1045
|
+
decorators: [{
|
|
1046
|
+
type: Component,
|
|
1047
|
+
args: [{
|
|
1048
|
+
selector: "LayoutContent",
|
|
1049
|
+
host: {
|
|
1050
|
+
"[class]": "classes()",
|
|
1051
|
+
"data-layout-content": "",
|
|
1052
|
+
"[attr.id]": "contentId()",
|
|
1053
|
+
role: "main",
|
|
1054
|
+
tabindex: "-1",
|
|
1055
|
+
"[attr.data-layout-type]": "layout.type()",
|
|
1056
|
+
"[attr.data-layout-width]": "layout.width()"
|
|
1057
|
+
},
|
|
1058
|
+
template: `<ng-content />`
|
|
1059
|
+
}]
|
|
1060
|
+
}],
|
|
1061
|
+
ctorParameters: () => [],
|
|
1062
|
+
propDecorators: {
|
|
1063
|
+
class: [{
|
|
1064
|
+
type: i0.Input,
|
|
1065
|
+
args: [{
|
|
1066
|
+
isSignal: true,
|
|
1067
|
+
alias: "class",
|
|
1068
|
+
required: false
|
|
1069
|
+
}]
|
|
1070
|
+
}],
|
|
1071
|
+
contentId: [{
|
|
1072
|
+
type: i0.Input,
|
|
1073
|
+
args: [{
|
|
1074
|
+
isSignal: true,
|
|
1075
|
+
alias: "content-id",
|
|
1076
|
+
required: false
|
|
1077
|
+
}]
|
|
1078
|
+
}],
|
|
1079
|
+
focusOnNavigation: [{
|
|
1080
|
+
type: i0.Input,
|
|
1081
|
+
args: [{
|
|
1082
|
+
isSignal: true,
|
|
1083
|
+
alias: "focus-on-navigation",
|
|
1084
|
+
required: false
|
|
1085
|
+
}]
|
|
1086
|
+
}]
|
|
1087
|
+
}
|
|
1088
|
+
});
|
|
1089
|
+
export { LAYOUT_APPEARANCES, LAYOUT_APPEARANCE_STORAGE_KEY, LAYOUT_DEFAULT_APPEARANCE, LAYOUT_DEFAULT_SURFACE, LAYOUT_DEFAULT_TYPE, LAYOUT_DEFAULT_WIDTH, LAYOUT_LOADING_HIDE_DELAY_MS, LAYOUT_LOADING_INITIAL_PROGRESS, LAYOUT_LOADING_SKIP, LAYOUT_LOADING_TRICKLE_CEILING, LAYOUT_LOADING_TRICKLE_INTERVAL_MS, LAYOUT_LOCKED_WIDTH, LAYOUT_SURFACES, LAYOUT_SURFACE_STORAGE_KEY, LAYOUT_TYPES, LAYOUT_TYPE_STORAGE_KEY, LAYOUT_WIDTHS, LAYOUT_WIDTH_STORAGE_KEY, LayoutComponent, LayoutContentComponent, LayoutEmptyComponent, LayoutFluidComponent, LayoutHorizontalComponent, LayoutLoadingComponent, LayoutLoadingService, LayoutNavigationComponent, LayoutService, LayoutVerticalComponent, isUiLayoutAppearance, isUiLayoutSurface, isUiLayoutType, isUiLayoutWidth, layoutLoadingInterceptor };
|