@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,315 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Service, computed, effect, signal } from "@angular/core";
|
|
3
|
+
const PAGE_VARIANTS = ["stacked", "side"];
|
|
4
|
+
const PAGE_SIDE_POSITIONS = ["left", "right"];
|
|
5
|
+
const PAGE_SIDE_MODES = [
|
|
6
|
+
"sticky",
|
|
7
|
+
"drawer",
|
|
8
|
+
"overlay"
|
|
9
|
+
];
|
|
10
|
+
const PAGE_SCROLL_VALUES = ["content", "page"];
|
|
11
|
+
const PAGE_HEIGHT_VALUES = ["auto", "fix"];
|
|
12
|
+
const PAGE_APPEARANCES = ["flat", "border-rail"];
|
|
13
|
+
const PAGE_FILTER_PLACEMENTS = ["stacked", "side"];
|
|
14
|
+
const PAGE_DEFAULT_VARIANT = "stacked";
|
|
15
|
+
const PAGE_DEFAULT_SIDE_POSITION = "left";
|
|
16
|
+
const PAGE_DEFAULT_SIDE_MODE = "sticky";
|
|
17
|
+
const PAGE_DEFAULT_SCROLL = "content";
|
|
18
|
+
const PAGE_DEFAULT_HEIGHT = "auto";
|
|
19
|
+
const PAGE_DEFAULT_APPEARANCE = "flat";
|
|
20
|
+
const PAGE_DEFAULT_SIDE_WIDTH = "16rem";
|
|
21
|
+
const PAGE_DEFAULT_FILTER_PLACEMENT = "stacked";
|
|
22
|
+
const PAGE_DEFAULT_FILTER_MODE = "sticky";
|
|
23
|
+
const PAGE_DEFAULT_FILTER_POSITION = "left";
|
|
24
|
+
const PAGE_DEFAULT_FILTER_WIDTH = "18rem";
|
|
25
|
+
function isUiPageVariant(value) {
|
|
26
|
+
return value !== null && PAGE_VARIANTS.includes(value);
|
|
27
|
+
}
|
|
28
|
+
function isUiPageSidePosition(value) {
|
|
29
|
+
return value !== null && PAGE_SIDE_POSITIONS.includes(value);
|
|
30
|
+
}
|
|
31
|
+
function isUiPageSideMode(value) {
|
|
32
|
+
return value !== null && PAGE_SIDE_MODES.includes(value);
|
|
33
|
+
}
|
|
34
|
+
function isUiPageScroll(value) {
|
|
35
|
+
return value !== null && PAGE_SCROLL_VALUES.includes(value);
|
|
36
|
+
}
|
|
37
|
+
function isUiPageHeight(value) {
|
|
38
|
+
return value !== null && PAGE_HEIGHT_VALUES.includes(value);
|
|
39
|
+
}
|
|
40
|
+
function isUiPageAppearance(value) {
|
|
41
|
+
return value !== null && PAGE_APPEARANCES.includes(value);
|
|
42
|
+
}
|
|
43
|
+
function isUiPageFilterPlacement(value) {
|
|
44
|
+
return value !== null && PAGE_FILTER_PLACEMENTS.includes(value);
|
|
45
|
+
}
|
|
46
|
+
var PageStateService = class PageStateService {
|
|
47
|
+
variantState = signal(PAGE_DEFAULT_VARIANT, ...ngDevMode ? [{ debugName: "variantState" }] : /* istanbul ignore next */ []);
|
|
48
|
+
heightState = signal(PAGE_DEFAULT_HEIGHT, ...ngDevMode ? [{ debugName: "heightState" }] : /* istanbul ignore next */ []);
|
|
49
|
+
scrollState = signal(PAGE_DEFAULT_SCROLL, ...ngDevMode ? [{ debugName: "scrollState" }] : /* istanbul ignore next */ []);
|
|
50
|
+
appearanceState = signal(PAGE_DEFAULT_APPEARANCE, ...ngDevMode ? [{ debugName: "appearanceState" }] : /* istanbul ignore next */ []);
|
|
51
|
+
positionState = signal(PAGE_DEFAULT_SIDE_POSITION, ...ngDevMode ? [{ debugName: "positionState" }] : /* istanbul ignore next */ []);
|
|
52
|
+
sideModeState = signal(PAGE_DEFAULT_SIDE_MODE, ...ngDevMode ? [{ debugName: "sideModeState" }] : /* istanbul ignore next */ []);
|
|
53
|
+
internalSideOpenState = signal(false, ...ngDevMode ? [{ debugName: "internalSideOpenState" }] : /* istanbul ignore next */ []);
|
|
54
|
+
controlledSideOpenState = signal(null, ...ngDevMode ? [{ debugName: "controlledSideOpenState" }] : /* istanbul ignore next */ []);
|
|
55
|
+
sideWidthState = signal(PAGE_DEFAULT_SIDE_WIDTH, ...ngDevMode ? [{ debugName: "sideWidthState" }] : /* istanbul ignore next */ []);
|
|
56
|
+
sideIdState = signal(null, ...ngDevMode ? [{ debugName: "sideIdState" }] : /* istanbul ignore next */ []);
|
|
57
|
+
sideOpenRequestState = signal(null, ...ngDevMode ? [{ debugName: "sideOpenRequestState" }] : /* istanbul ignore next */ []);
|
|
58
|
+
sideOpenRequestVersionState = signal(0, ...ngDevMode ? [{ debugName: "sideOpenRequestVersionState" }] : /* istanbul ignore next */ []);
|
|
59
|
+
sideReturnFocus = null;
|
|
60
|
+
appsLauncherReserveState = signal(false, ...ngDevMode ? [{ debugName: "appsLauncherReserveState" }] : /* istanbul ignore next */ []);
|
|
61
|
+
filterPlacementState = signal(PAGE_DEFAULT_FILTER_PLACEMENT, ...ngDevMode ? [{ debugName: "filterPlacementState" }] : /* istanbul ignore next */ []);
|
|
62
|
+
filterModeState = signal(PAGE_DEFAULT_FILTER_MODE, ...ngDevMode ? [{ debugName: "filterModeState" }] : /* istanbul ignore next */ []);
|
|
63
|
+
filterPositionState = signal(PAGE_DEFAULT_FILTER_POSITION, ...ngDevMode ? [{ debugName: "filterPositionState" }] : /* istanbul ignore next */ []);
|
|
64
|
+
filterWidthState = signal(PAGE_DEFAULT_FILTER_WIDTH, ...ngDevMode ? [{ debugName: "filterWidthState" }] : /* istanbul ignore next */ []);
|
|
65
|
+
filterIdState = signal(null, ...ngDevMode ? [{ debugName: "filterIdState" }] : /* istanbul ignore next */ []);
|
|
66
|
+
internalFilterOpenState = signal(false, ...ngDevMode ? [{ debugName: "internalFilterOpenState" }] : /* istanbul ignore next */ []);
|
|
67
|
+
controlledFilterOpenState = signal(null, ...ngDevMode ? [{ debugName: "controlledFilterOpenState" }] : /* istanbul ignore next */ []);
|
|
68
|
+
filterOpenRequestState = signal(null, ...ngDevMode ? [{ debugName: "filterOpenRequestState" }] : /* istanbul ignore next */ []);
|
|
69
|
+
filterOpenRequestVersionState = signal(0, ...ngDevMode ? [{ debugName: "filterOpenRequestVersionState" }] : /* istanbul ignore next */ []);
|
|
70
|
+
filterReturnFocus = null;
|
|
71
|
+
variant = this.variantState.asReadonly();
|
|
72
|
+
height = this.heightState.asReadonly();
|
|
73
|
+
scroll = this.scrollState.asReadonly();
|
|
74
|
+
appearance = this.appearanceState.asReadonly();
|
|
75
|
+
position = this.positionState.asReadonly();
|
|
76
|
+
sideMode = this.sideModeState.asReadonly();
|
|
77
|
+
sideWidth = this.sideWidthState.asReadonly();
|
|
78
|
+
sideId = this.sideIdState.asReadonly();
|
|
79
|
+
sideOpenRequest = this.sideOpenRequestState.asReadonly();
|
|
80
|
+
sideOpenRequestVersion = this.sideOpenRequestVersionState.asReadonly();
|
|
81
|
+
appsLauncherReserve = this.appsLauncherReserveState.asReadonly();
|
|
82
|
+
sideOpen = computed(() => this.controlledSideOpenState() ?? this.internalSideOpenState(), ...ngDevMode ? [{ debugName: "sideOpen" }] : /* istanbul ignore next */ []);
|
|
83
|
+
isSideInteractive = computed(() => this.sideMode() === "drawer" || this.sideMode() === "overlay", ...ngDevMode ? [{ debugName: "isSideInteractive" }] : /* istanbul ignore next */ []);
|
|
84
|
+
isSideVisible = computed(() => this.sideMode() === "sticky" || this.sideOpen(), ...ngDevMode ? [{ debugName: "isSideVisible" }] : /* istanbul ignore next */ []);
|
|
85
|
+
filterPlacement = this.filterPlacementState.asReadonly();
|
|
86
|
+
filterMode = this.filterModeState.asReadonly();
|
|
87
|
+
filterPosition = this.filterPositionState.asReadonly();
|
|
88
|
+
filterWidth = this.filterWidthState.asReadonly();
|
|
89
|
+
filterId = this.filterIdState.asReadonly();
|
|
90
|
+
filterOpenRequest = this.filterOpenRequestState.asReadonly();
|
|
91
|
+
filterOpenRequestVersion = this.filterOpenRequestVersionState.asReadonly();
|
|
92
|
+
filterOpen = computed(() => this.controlledFilterOpenState() ?? this.internalFilterOpenState(), ...ngDevMode ? [{ debugName: "filterOpen" }] : /* istanbul ignore next */ []);
|
|
93
|
+
isFilterInteractive = computed(() => this.filterMode() === "drawer" || this.filterMode() === "overlay", ...ngDevMode ? [{ debugName: "isFilterInteractive" }] : /* istanbul ignore next */ []);
|
|
94
|
+
isFilterVisible = computed(() => this.filterMode() === "sticky" || this.filterOpen(), ...ngDevMode ? [{ debugName: "isFilterVisible" }] : /* istanbul ignore next */ []);
|
|
95
|
+
registerRoot(config) {
|
|
96
|
+
this.variantState.set(config.variant);
|
|
97
|
+
this.heightState.set(config.height);
|
|
98
|
+
this.scrollState.set(config.scroll);
|
|
99
|
+
this.appearanceState.set(config.appearance);
|
|
100
|
+
this.positionState.set(config.position);
|
|
101
|
+
this.sideModeState.set(config.sideMode);
|
|
102
|
+
this.sideWidthState.set(config.sideWidth);
|
|
103
|
+
}
|
|
104
|
+
registerSide(config) {
|
|
105
|
+
this.sideModeState.set(config.mode);
|
|
106
|
+
this.positionState.set(config.position);
|
|
107
|
+
this.sideWidthState.set(config.width);
|
|
108
|
+
this.sideIdState.set(config.id);
|
|
109
|
+
}
|
|
110
|
+
setAppsLauncherReserve(reserve) {
|
|
111
|
+
this.appsLauncherReserveState.set(reserve);
|
|
112
|
+
}
|
|
113
|
+
setControlledSideOpen(open) {
|
|
114
|
+
this.controlledSideOpenState.set(open);
|
|
115
|
+
if (open !== null) this.internalSideOpenState.set(open);
|
|
116
|
+
}
|
|
117
|
+
setSideOpen(open) {
|
|
118
|
+
this.internalSideOpenState.set(open);
|
|
119
|
+
}
|
|
120
|
+
openSide() {
|
|
121
|
+
return this.requestSideOpenChange(true);
|
|
122
|
+
}
|
|
123
|
+
closeSide() {
|
|
124
|
+
return this.requestSideOpenChange(false);
|
|
125
|
+
}
|
|
126
|
+
toggleSide() {
|
|
127
|
+
return this.requestSideOpenChange(!this.sideOpen());
|
|
128
|
+
}
|
|
129
|
+
setSideReturnFocus(element) {
|
|
130
|
+
this.sideReturnFocus = element;
|
|
131
|
+
}
|
|
132
|
+
takeSideReturnFocus() {
|
|
133
|
+
const element = this.sideReturnFocus;
|
|
134
|
+
this.sideReturnFocus = null;
|
|
135
|
+
return element;
|
|
136
|
+
}
|
|
137
|
+
requestSideOpenChange(open) {
|
|
138
|
+
if (this.controlledSideOpenState() === null) this.internalSideOpenState.set(open);
|
|
139
|
+
this.sideOpenRequestState.set(open);
|
|
140
|
+
this.sideOpenRequestVersionState.update((version) => version + 1);
|
|
141
|
+
return open;
|
|
142
|
+
}
|
|
143
|
+
registerFilter(config) {
|
|
144
|
+
this.filterPlacementState.set(config.placement);
|
|
145
|
+
this.filterModeState.set(config.mode);
|
|
146
|
+
this.filterPositionState.set(config.position);
|
|
147
|
+
this.filterWidthState.set(config.width);
|
|
148
|
+
this.filterIdState.set(config.id);
|
|
149
|
+
}
|
|
150
|
+
setControlledFilterOpen(open) {
|
|
151
|
+
this.controlledFilterOpenState.set(open);
|
|
152
|
+
if (open !== null) this.internalFilterOpenState.set(open);
|
|
153
|
+
}
|
|
154
|
+
setFilterOpen(open) {
|
|
155
|
+
this.internalFilterOpenState.set(open);
|
|
156
|
+
}
|
|
157
|
+
openFilter() {
|
|
158
|
+
return this.requestFilterOpenChange(true);
|
|
159
|
+
}
|
|
160
|
+
closeFilter() {
|
|
161
|
+
return this.requestFilterOpenChange(false);
|
|
162
|
+
}
|
|
163
|
+
toggleFilter() {
|
|
164
|
+
return this.requestFilterOpenChange(!this.filterOpen());
|
|
165
|
+
}
|
|
166
|
+
setFilterReturnFocus(element) {
|
|
167
|
+
this.filterReturnFocus = element;
|
|
168
|
+
}
|
|
169
|
+
takeFilterReturnFocus() {
|
|
170
|
+
const element = this.filterReturnFocus;
|
|
171
|
+
this.filterReturnFocus = null;
|
|
172
|
+
return element;
|
|
173
|
+
}
|
|
174
|
+
requestFilterOpenChange(open) {
|
|
175
|
+
if (this.controlledFilterOpenState() === null) this.internalFilterOpenState.set(open);
|
|
176
|
+
this.filterOpenRequestState.set(open);
|
|
177
|
+
this.filterOpenRequestVersionState.update((version) => version + 1);
|
|
178
|
+
return open;
|
|
179
|
+
}
|
|
180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
181
|
+
minVersion: "12.0.0",
|
|
182
|
+
version: "22.2.3",
|
|
183
|
+
ngImport: i0,
|
|
184
|
+
type: PageStateService,
|
|
185
|
+
deps: [],
|
|
186
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
187
|
+
});
|
|
188
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
189
|
+
minVersion: "22.0.0",
|
|
190
|
+
version: "22.2.3",
|
|
191
|
+
ngImport: i0,
|
|
192
|
+
type: PageStateService,
|
|
193
|
+
autoProvided: false
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
197
|
+
minVersion: "12.0.0",
|
|
198
|
+
version: "22.2.3",
|
|
199
|
+
ngImport: i0,
|
|
200
|
+
type: PageStateService,
|
|
201
|
+
decorators: [{
|
|
202
|
+
type: Service,
|
|
203
|
+
args: [{ autoProvided: false }]
|
|
204
|
+
}]
|
|
205
|
+
});
|
|
206
|
+
const FOCUSABLE_SELECTOR = [
|
|
207
|
+
"a[href]",
|
|
208
|
+
"button:not([disabled])",
|
|
209
|
+
"input:not([disabled])",
|
|
210
|
+
"select:not([disabled])",
|
|
211
|
+
"textarea:not([disabled])",
|
|
212
|
+
"[tabindex]:not([tabindex=\"-1\"])"
|
|
213
|
+
].join(",");
|
|
214
|
+
const inertLocks = /* @__PURE__ */ new WeakMap();
|
|
215
|
+
const scrollLocks = /* @__PURE__ */ new WeakMap();
|
|
216
|
+
function ɵsetupOverlayFocusManagement(config) {
|
|
217
|
+
effect((onCleanup) => {
|
|
218
|
+
if (!config.isInteractive() || !config.isOpen()) return;
|
|
219
|
+
const document = config.document;
|
|
220
|
+
const view = document?.defaultView;
|
|
221
|
+
if (!document || !view) return;
|
|
222
|
+
const returnFocus = config.takeReturnFocus?.() ?? document.activeElement;
|
|
223
|
+
const modal = config.isModal();
|
|
224
|
+
const inertSnapshots = modal ? makeBackgroundInert(config.host) : [];
|
|
225
|
+
if (modal) lockDocumentScroll(document);
|
|
226
|
+
const handleKeydown = (event) => {
|
|
227
|
+
if (!modal || event.key !== "Tab") return;
|
|
228
|
+
const focusable = getFocusableElements(config.host);
|
|
229
|
+
if (focusable.length === 0) {
|
|
230
|
+
event.preventDefault();
|
|
231
|
+
config.host.focus();
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
const active = document.activeElement;
|
|
235
|
+
const first = focusable[0];
|
|
236
|
+
const last = focusable.at(-1);
|
|
237
|
+
const activeIndex = focusable.indexOf(active);
|
|
238
|
+
if (event.shiftKey && activeIndex <= 0) {
|
|
239
|
+
event.preventDefault();
|
|
240
|
+
last.focus();
|
|
241
|
+
} else if (!event.shiftKey && (activeIndex === -1 || active === last)) {
|
|
242
|
+
event.preventDefault();
|
|
243
|
+
first.focus();
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
config.host.addEventListener("keydown", handleKeydown);
|
|
247
|
+
const animationFrame = view.requestAnimationFrame(() => {
|
|
248
|
+
(config.host.querySelector("[data-page-initial-focus], [autofocus]") ?? getFocusableElements(config.host)[0] ?? config.host).focus();
|
|
249
|
+
});
|
|
250
|
+
onCleanup(() => {
|
|
251
|
+
view.cancelAnimationFrame(animationFrame);
|
|
252
|
+
config.host.removeEventListener("keydown", handleKeydown);
|
|
253
|
+
restoreBackground(inertSnapshots);
|
|
254
|
+
if (modal) unlockDocumentScroll(document);
|
|
255
|
+
if (returnFocus?.isConnected && typeof returnFocus.focus === "function") view.requestAnimationFrame(() => returnFocus.focus());
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
function getFocusableElements(host) {
|
|
260
|
+
return Array.from(host.querySelectorAll(FOCUSABLE_SELECTOR)).filter((element) => !element.hidden && !element.inert && element.getAttribute("aria-hidden") !== "true");
|
|
261
|
+
}
|
|
262
|
+
function makeBackgroundInert(host) {
|
|
263
|
+
const snapshots = [];
|
|
264
|
+
const pageRoot = host.closest("Page");
|
|
265
|
+
if (!pageRoot) return snapshots;
|
|
266
|
+
let branch = host;
|
|
267
|
+
let parent = branch.parentElement;
|
|
268
|
+
while (parent) {
|
|
269
|
+
for (const sibling of Array.from(parent.children)) {
|
|
270
|
+
if (sibling === branch || !(sibling instanceof HTMLElement) || sibling.hasAttribute("data-page-overlay-backdrop")) continue;
|
|
271
|
+
const lock = inertLocks.get(sibling);
|
|
272
|
+
if (lock) lock.count += 1;
|
|
273
|
+
else inertLocks.set(sibling, {
|
|
274
|
+
count: 1,
|
|
275
|
+
initial: sibling.inert === true
|
|
276
|
+
});
|
|
277
|
+
snapshots.push({ element: sibling });
|
|
278
|
+
sibling.inert = true;
|
|
279
|
+
}
|
|
280
|
+
if (parent === pageRoot) break;
|
|
281
|
+
branch = parent;
|
|
282
|
+
parent = parent.parentElement;
|
|
283
|
+
}
|
|
284
|
+
return snapshots;
|
|
285
|
+
}
|
|
286
|
+
function restoreBackground(snapshots) {
|
|
287
|
+
for (const snapshot of snapshots) {
|
|
288
|
+
const lock = inertLocks.get(snapshot.element);
|
|
289
|
+
if (!lock) continue;
|
|
290
|
+
lock.count -= 1;
|
|
291
|
+
if (lock.count === 0) {
|
|
292
|
+
snapshot.element.inert = lock.initial;
|
|
293
|
+
inertLocks.delete(snapshot.element);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
function lockDocumentScroll(document) {
|
|
298
|
+
const lock = scrollLocks.get(document);
|
|
299
|
+
if (lock) lock.count += 1;
|
|
300
|
+
else scrollLocks.set(document, {
|
|
301
|
+
count: 1,
|
|
302
|
+
initialOverflow: document.body.style.overflow
|
|
303
|
+
});
|
|
304
|
+
document.body.style.overflow = "hidden";
|
|
305
|
+
}
|
|
306
|
+
function unlockDocumentScroll(document) {
|
|
307
|
+
const lock = scrollLocks.get(document);
|
|
308
|
+
if (!lock) return;
|
|
309
|
+
lock.count -= 1;
|
|
310
|
+
if (lock.count === 0) {
|
|
311
|
+
document.body.style.overflow = lock.initialOverflow;
|
|
312
|
+
scrollLocks.delete(document);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
export { PAGE_APPEARANCES, PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_POSITION, 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, PAGE_FILTER_PLACEMENTS, PAGE_HEIGHT_VALUES, PAGE_SCROLL_VALUES, PAGE_SIDE_MODES, PAGE_SIDE_POSITIONS, PAGE_VARIANTS, PageStateService, isUiPageAppearance, isUiPageFilterPlacement, isUiPageHeight, isUiPageScroll, isUiPageSideMode, isUiPageSidePosition, isUiPageVariant, ɵsetupOverlayFocusManagement };
|