@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
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, makeEnvironmentProviders } from '@angular/core';
|
|
2
|
-
import { provideAppPreferences, provideRuntimeThemeDevice } from '@edsis/angular/block/themes';
|
|
3
|
-
import { provideEdsisAuth } from '@edsis/angular/module/auth';
|
|
4
|
-
import { provideEdsisRuntime } from '@edsis/angular/services/runtime';
|
|
5
|
-
import { provideUiTheme } from '@edsis/theme/styles';
|
|
6
|
-
|
|
7
|
-
const APPLICATION_PROFILE_NAMES = ['mfe-standalone'];
|
|
8
|
-
const DEFAULT_APPLICATION_PROFILE_NAME = 'mfe-standalone';
|
|
9
|
-
|
|
10
|
-
const MFE_STANDALONE_APPLICATION_PROFILE = deepFreezeProfile({
|
|
11
|
-
name: 'mfe-standalone',
|
|
12
|
-
defaults: {
|
|
13
|
-
theme: {
|
|
14
|
-
mode: 'light',
|
|
15
|
-
space: 'compact',
|
|
16
|
-
radius: 'medium',
|
|
17
|
-
appearance: 'desktop',
|
|
18
|
-
color: 'default',
|
|
19
|
-
brand: 'default',
|
|
20
|
-
},
|
|
21
|
-
layout: {
|
|
22
|
-
surface: 'base',
|
|
23
|
-
type: 'horizontal',
|
|
24
|
-
width: 'full',
|
|
25
|
-
},
|
|
26
|
-
navigation: {
|
|
27
|
-
orientation: 'horizontal',
|
|
28
|
-
type: 'flyout',
|
|
29
|
-
position: 'top',
|
|
30
|
-
collapsed: false,
|
|
31
|
-
dockbarMode: 'default',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
const APPLICATION_PROFILES = Object.freeze({
|
|
36
|
-
'mfe-standalone': MFE_STANDALONE_APPLICATION_PROFILE,
|
|
37
|
-
});
|
|
38
|
-
const MFE_APPLICATION_PROFILE = new InjectionToken('MFE_APPLICATION_PROFILE');
|
|
39
|
-
function applicationProfile(name = DEFAULT_APPLICATION_PROFILE_NAME) {
|
|
40
|
-
const profiles = APPLICATION_PROFILES;
|
|
41
|
-
const profile = profiles[name];
|
|
42
|
-
if (!profile) {
|
|
43
|
-
throw new Error(`Unknown EDSIS application profile "${String(name)}".`);
|
|
44
|
-
}
|
|
45
|
-
return profile;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Composes the global providers used only by a standalone MFE application.
|
|
49
|
-
* Federated feature routes must inherit these singletons from their host and
|
|
50
|
-
* therefore must never call this provider.
|
|
51
|
-
*/
|
|
52
|
-
function provideStandaloneMfe(config) {
|
|
53
|
-
const profile = applicationProfile(config.standaloneProfile);
|
|
54
|
-
return makeEnvironmentProviders([
|
|
55
|
-
{ provide: MFE_APPLICATION_PROFILE, useValue: profile },
|
|
56
|
-
provideEdsisRuntime(config.runtime),
|
|
57
|
-
provideUiTheme(themeOptionsForProfile(profile)),
|
|
58
|
-
provideAppPreferences({ defaults: profile.defaults }),
|
|
59
|
-
provideRuntimeThemeDevice({ appearanceFallback: false }),
|
|
60
|
-
provideEdsisAuth(config.auth),
|
|
61
|
-
]);
|
|
62
|
-
}
|
|
63
|
-
function themeOptionsForProfile(profile) {
|
|
64
|
-
return {
|
|
65
|
-
mode: profile.defaults.theme.mode,
|
|
66
|
-
space: profile.defaults.theme.space,
|
|
67
|
-
radius: profile.defaults.theme.radius,
|
|
68
|
-
appearance: profile.defaults.theme.appearance,
|
|
69
|
-
color: profile.defaults.theme.color,
|
|
70
|
-
brand: profile.defaults.theme.brand,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
function deepFreezeProfile(profile) {
|
|
74
|
-
Object.freeze(profile.defaults.theme);
|
|
75
|
-
Object.freeze(profile.defaults.layout);
|
|
76
|
-
Object.freeze(profile.defaults.navigation);
|
|
77
|
-
Object.freeze(profile.defaults);
|
|
78
|
-
return Object.freeze(profile);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
const MFE_CONTRACT_VERSION = 1;
|
|
82
|
-
const MFE_ENTRY_EXPOSURE = './Mfe';
|
|
83
|
-
const MFE_EXPOSURE_KINDS = ['contract', 'routes', 'page', 'component'];
|
|
84
|
-
const MFE_CAPABILITY_MODES = ['required', 'optional', 'provided'];
|
|
85
|
-
const MFE_PLATFORM_CAPABILITIES = {
|
|
86
|
-
auth: 'edsis.auth',
|
|
87
|
-
loading: 'edsis.loading',
|
|
88
|
-
navigation: 'edsis.navigation',
|
|
89
|
-
runtime: 'edsis.runtime',
|
|
90
|
-
theme: 'edsis.theme',
|
|
91
|
-
};
|
|
92
|
-
class MfeContractValidationError extends Error {
|
|
93
|
-
issues;
|
|
94
|
-
constructor(issuesOrMessage) {
|
|
95
|
-
const issues = typeof issuesOrMessage === 'string' ? [] : issuesOrMessage;
|
|
96
|
-
super(typeof issuesOrMessage === 'string'
|
|
97
|
-
? issuesOrMessage
|
|
98
|
-
: `Invalid EDSIS MFE contract: ${issues
|
|
99
|
-
.map((issue) => `${issue.path} ${issue.message}`)
|
|
100
|
-
.join('; ')}`);
|
|
101
|
-
this.name = 'MfeContractValidationError';
|
|
102
|
-
this.issues = issues;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
/** Keeps literal inference while rejecting an invalid contract during remote evaluation. */
|
|
106
|
-
function defineMfe(contract) {
|
|
107
|
-
assertMfeContract(contract);
|
|
108
|
-
return contract;
|
|
109
|
-
}
|
|
110
|
-
function isMfeContract(value) {
|
|
111
|
-
return validateMfeContract(value).valid;
|
|
112
|
-
}
|
|
113
|
-
function assertMfeContract(value) {
|
|
114
|
-
const result = validateMfeContract(value);
|
|
115
|
-
if (!result.valid) {
|
|
116
|
-
throw new MfeContractValidationError(result.issues);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Reads the exact named `mfe` export from an untrusted federation namespace.
|
|
121
|
-
* Shape validation runs before registry identity and supported-major checks.
|
|
122
|
-
*/
|
|
123
|
-
function readMfeContract(remoteModule, expectation) {
|
|
124
|
-
if (!isRecord(remoteModule) || !('mfe' in remoteModule)) {
|
|
125
|
-
throw new MfeContractValidationError('The remote module does not export a named "mfe" contract.');
|
|
126
|
-
}
|
|
127
|
-
const result = validateMfeContract(remoteModule['mfe']);
|
|
128
|
-
if (!result.valid) {
|
|
129
|
-
throw new MfeContractValidationError(result.issues);
|
|
130
|
-
}
|
|
131
|
-
const contract = result.contract;
|
|
132
|
-
if (contract.id !== expectation.id) {
|
|
133
|
-
throw new MfeContractValidationError(`Expected MFE id "${expectation.id}" but received "${contract.id}".`);
|
|
134
|
-
}
|
|
135
|
-
if (!expectation.supportedContractVersions.includes(contract.contractVersion)) {
|
|
136
|
-
throw new MfeContractValidationError(`MFE "${expectation.id}" uses unsupported contract version "${contract.contractVersion}".`);
|
|
137
|
-
}
|
|
138
|
-
return contract;
|
|
139
|
-
}
|
|
140
|
-
/** Validates an untrusted remote value before the host reads routes or exposures from it. */
|
|
141
|
-
function validateMfeContract(value) {
|
|
142
|
-
if (!isRecord(value)) {
|
|
143
|
-
return invalid([issue('invalid_contract', '$', 'must be a non-null object')]);
|
|
144
|
-
}
|
|
145
|
-
const issues = [];
|
|
146
|
-
validateContractIdentity(value, issues);
|
|
147
|
-
validateRouteAndNavigationContributions(value, issues);
|
|
148
|
-
const capabilityIds = validateCapabilities(value['capabilities'], issues);
|
|
149
|
-
validateExposures(value['exposures'], capabilityIds, issues);
|
|
150
|
-
if (issues.length > 0) {
|
|
151
|
-
return invalid(issues);
|
|
152
|
-
}
|
|
153
|
-
return {
|
|
154
|
-
valid: true,
|
|
155
|
-
contract: value,
|
|
156
|
-
issues: [],
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
function validateContractIdentity(candidate, issues) {
|
|
160
|
-
if (candidate['contractVersion'] !== MFE_CONTRACT_VERSION) {
|
|
161
|
-
issues.push(issue('unsupported_version', '$.contractVersion', `must equal the supported major ${MFE_CONTRACT_VERSION}`));
|
|
162
|
-
}
|
|
163
|
-
const id = candidate['id'];
|
|
164
|
-
if (typeof id !== 'string' || !MFE_ID_PATTERN.test(id)) {
|
|
165
|
-
issues.push(issue('invalid_id', '$.id', 'must be a lower-kebab identifier such as "developer" or "sales-activity"'));
|
|
166
|
-
}
|
|
167
|
-
if (!isNonEmptyString(candidate['displayName'])) {
|
|
168
|
-
issues.push(issue('invalid_contract', '$.displayName', 'must be a non-empty string'));
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
function validateRouteAndNavigationContributions(candidate, issues) {
|
|
172
|
-
const routes = candidate['featureRoutes'];
|
|
173
|
-
if (!Array.isArray(routes) || routes.length === 0) {
|
|
174
|
-
issues.push(issue('invalid_routes', '$.featureRoutes', 'must be a non-empty route array'));
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
routes.forEach((route, index) => {
|
|
178
|
-
if (!isRecord(route)) {
|
|
179
|
-
issues.push(issue('invalid_routes', `$.featureRoutes[${index}]`, 'must be an Angular route object'));
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
const navigation = candidate['navigation'];
|
|
184
|
-
if (!Array.isArray(navigation)) {
|
|
185
|
-
issues.push(issue('invalid_navigation', '$.navigation', 'must be an array'));
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
navigation.forEach((item, index) => {
|
|
189
|
-
if (!isRecord(item)) {
|
|
190
|
-
issues.push(issue('invalid_navigation', `$.navigation[${index}]`, 'must be a navigation item object'));
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function validateCapabilities(value, issues) {
|
|
196
|
-
if (!Array.isArray(value)) {
|
|
197
|
-
issues.push(issue('invalid_capability', '$.capabilities', 'must be an array'));
|
|
198
|
-
return new Set();
|
|
199
|
-
}
|
|
200
|
-
const capabilityIds = new Set();
|
|
201
|
-
value.forEach((capability, index) => {
|
|
202
|
-
const path = `$.capabilities[${index}]`;
|
|
203
|
-
if (!isRecord(capability)) {
|
|
204
|
-
issues.push(issue('invalid_capability', path, 'must be a capability descriptor object'));
|
|
205
|
-
return;
|
|
206
|
-
}
|
|
207
|
-
const id = capability['id'];
|
|
208
|
-
if (typeof id !== 'string' || !MFE_CAPABILITY_ID_PATTERN.test(id)) {
|
|
209
|
-
issues.push(issue('invalid_capability', `${path}.id`, 'must be a lowercase dotted, colon, or kebab capability identifier'));
|
|
210
|
-
}
|
|
211
|
-
else if (capabilityIds.has(id)) {
|
|
212
|
-
issues.push(issue('duplicate_capability', `${path}.id`, `duplicates capability "${id}"`));
|
|
213
|
-
}
|
|
214
|
-
else {
|
|
215
|
-
capabilityIds.add(id);
|
|
216
|
-
}
|
|
217
|
-
const version = capability['version'];
|
|
218
|
-
if (!Number.isInteger(version) || version < 1) {
|
|
219
|
-
issues.push(issue('invalid_capability', `${path}.version`, 'must be a positive integer major'));
|
|
220
|
-
}
|
|
221
|
-
if (!includes(MFE_CAPABILITY_MODES, capability['mode'])) {
|
|
222
|
-
issues.push(issue('invalid_capability', `${path}.mode`, `must be one of ${MFE_CAPABILITY_MODES.join(', ')}`));
|
|
223
|
-
}
|
|
224
|
-
validateOptionalString(capability, 'description', path, 'invalid_capability', issues);
|
|
225
|
-
});
|
|
226
|
-
return capabilityIds;
|
|
227
|
-
}
|
|
228
|
-
function validateExposures(value, capabilityIds, issues) {
|
|
229
|
-
if (!Array.isArray(value)) {
|
|
230
|
-
issues.push(issue('invalid_exposure', '$.exposures', 'must be an array'));
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
const exposureKeys = new Set();
|
|
234
|
-
let entryExposureCount = 0;
|
|
235
|
-
value.forEach((exposure, index) => {
|
|
236
|
-
const path = `$.exposures[${index}]`;
|
|
237
|
-
if (!isRecord(exposure)) {
|
|
238
|
-
issues.push(issue('invalid_exposure', path, 'must be an exposure descriptor object'));
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
const key = exposure['key'];
|
|
242
|
-
if (typeof key !== 'string' || !MFE_EXPOSURE_KEY_PATTERN.test(key)) {
|
|
243
|
-
issues.push(issue('invalid_exposure', `${path}.key`, 'must start with "./" and contain no empty or unsafe path segments'));
|
|
244
|
-
}
|
|
245
|
-
else if (exposureKeys.has(key)) {
|
|
246
|
-
issues.push(issue('duplicate_exposure', `${path}.key`, `duplicates exposure "${key}"`));
|
|
247
|
-
}
|
|
248
|
-
else {
|
|
249
|
-
exposureKeys.add(key);
|
|
250
|
-
}
|
|
251
|
-
if (!includes(MFE_EXPOSURE_KINDS, exposure['kind'])) {
|
|
252
|
-
issues.push(issue('invalid_exposure', `${path}.kind`, `must be one of ${MFE_EXPOSURE_KINDS.join(', ')}`));
|
|
253
|
-
}
|
|
254
|
-
if (key === MFE_ENTRY_EXPOSURE) {
|
|
255
|
-
entryExposureCount += 1;
|
|
256
|
-
if (exposure['kind'] !== 'contract') {
|
|
257
|
-
issues.push(issue('invalid_exposure', `${path}.kind`, `must be "contract" for ${MFE_ENTRY_EXPOSURE}`));
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
else if (exposure['kind'] === 'contract') {
|
|
261
|
-
issues.push(issue('invalid_exposure', `${path}.kind`, `the contract kind is reserved for ${MFE_ENTRY_EXPOSURE}`));
|
|
262
|
-
}
|
|
263
|
-
if (exposure['since'] !== MFE_CONTRACT_VERSION) {
|
|
264
|
-
issues.push(issue('invalid_exposure', `${path}.since`, `must equal contract major ${MFE_CONTRACT_VERSION}`));
|
|
265
|
-
}
|
|
266
|
-
validateOptionalString(exposure, 'exportName', path, 'invalid_exposure', issues);
|
|
267
|
-
validateOptionalString(exposure, 'description', path, 'invalid_exposure', issues);
|
|
268
|
-
validateExposureCapabilities(exposure['capabilities'], path, capabilityIds, issues);
|
|
269
|
-
});
|
|
270
|
-
if (entryExposureCount === 0) {
|
|
271
|
-
issues.push(issue('missing_entry_exposure', '$.exposures', `must declare the ${MFE_ENTRY_EXPOSURE} contract exposure`));
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
function validateExposureCapabilities(value, path, capabilityIds, issues) {
|
|
275
|
-
if (value === undefined) {
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
if (!Array.isArray(value)) {
|
|
279
|
-
issues.push(issue('invalid_exposure', `${path}.capabilities`, 'must be an array'));
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
const referencedIds = new Set();
|
|
283
|
-
value.forEach((capabilityId, index) => {
|
|
284
|
-
const capabilityPath = `${path}.capabilities[${index}]`;
|
|
285
|
-
if (typeof capabilityId !== 'string' || !MFE_CAPABILITY_ID_PATTERN.test(capabilityId)) {
|
|
286
|
-
issues.push(issue('invalid_exposure', capabilityPath, 'must be a valid capability identifier'));
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
-
if (referencedIds.has(capabilityId)) {
|
|
290
|
-
issues.push(issue('invalid_exposure', capabilityPath, `duplicates capability "${capabilityId}"`));
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
referencedIds.add(capabilityId);
|
|
294
|
-
if (!capabilityIds.has(capabilityId)) {
|
|
295
|
-
issues.push(issue('unknown_capability', capabilityPath, `references undeclared capability "${capabilityId}"`));
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
function validateOptionalString(candidate, key, path, code, issues) {
|
|
300
|
-
const value = candidate[key];
|
|
301
|
-
if (value !== undefined && !isNonEmptyString(value)) {
|
|
302
|
-
issues.push(issue(code, `${path}.${key}`, 'must be a non-empty string when provided'));
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
function issue(code, path, message) {
|
|
306
|
-
return { code, path, message };
|
|
307
|
-
}
|
|
308
|
-
function invalid(issues) {
|
|
309
|
-
return { valid: false, issues };
|
|
310
|
-
}
|
|
311
|
-
function isRecord(value) {
|
|
312
|
-
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
313
|
-
}
|
|
314
|
-
function isNonEmptyString(value) {
|
|
315
|
-
return typeof value === 'string' && value.trim().length > 0;
|
|
316
|
-
}
|
|
317
|
-
function includes(values, value) {
|
|
318
|
-
return typeof value === 'string' && values.includes(value);
|
|
319
|
-
}
|
|
320
|
-
const MFE_ID_PATTERN = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u;
|
|
321
|
-
const MFE_EXPOSURE_KEY_PATTERN = /^\.\/[A-Za-z0-9][A-Za-z0-9._-]*(?:\/[A-Za-z0-9][A-Za-z0-9._-]*)*$/u;
|
|
322
|
-
const MFE_CAPABILITY_ID_PATTERN = /^[a-z][a-z0-9]*(?:[.:-][a-z0-9]+(?:-[a-z0-9]+)*)*$/u;
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Generated bundle index. Do not edit.
|
|
326
|
-
*/
|
|
327
|
-
|
|
328
|
-
export { APPLICATION_PROFILES, APPLICATION_PROFILE_NAMES, DEFAULT_APPLICATION_PROFILE_NAME, MFE_APPLICATION_PROFILE, MFE_CAPABILITY_MODES, MFE_CONTRACT_VERSION, MFE_ENTRY_EXPOSURE, MFE_EXPOSURE_KINDS, MFE_PLATFORM_CAPABILITIES, MFE_STANDALONE_APPLICATION_PROFILE, MfeContractValidationError, applicationProfile, assertMfeContract, defineMfe, isMfeContract, provideStandaloneMfe, readMfeContract, validateMfeContract };
|
|
329
|
-
//# sourceMappingURL=edsis-angular-platform-mfe.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edsis-angular-platform-mfe.mjs","sources":["../../../library/angular/platform/mfe/application-profile-name.ts","../../../library/angular/platform/mfe/application-profile.ts","../../../library/angular/platform/mfe/mfe-contract.ts","../../../library/angular/platform/mfe/edsis-angular-platform-mfe.ts"],"sourcesContent":["export const APPLICATION_PROFILE_NAMES = ['mfe-standalone'] as const;\nexport const DEFAULT_APPLICATION_PROFILE_NAME = 'mfe-standalone' as const;\n\nexport type ApplicationProfileName = (typeof APPLICATION_PROFILE_NAMES)[number];\n","import { InjectionToken, makeEnvironmentProviders, type EnvironmentProviders } from '@angular/core';\nimport {\n provideAppPreferences,\n provideRuntimeThemeDevice,\n type AppPreferencesDefaults,\n} from '@edsis/angular/block/themes';\nimport { provideEdsisAuth, type EdsisAuthConfig } from '@edsis/angular/module/auth';\nimport { provideEdsisRuntime, type EdsisRuntimeConfig } from '@edsis/angular/services/runtime';\nimport { provideUiTheme, type ThemeOptions } from '@edsis/theme/styles';\n\nimport {\n DEFAULT_APPLICATION_PROFILE_NAME,\n type ApplicationProfileName,\n} from './application-profile-name';\n\nexport {\n APPLICATION_PROFILE_NAMES,\n DEFAULT_APPLICATION_PROFILE_NAME,\n type ApplicationProfileName,\n} from './application-profile-name';\n\n/** Centrally managed visual and structural defaults for a standalone MFE. */\nexport interface ApplicationProfile {\n readonly name: ApplicationProfileName;\n readonly defaults: AppPreferencesDefaults;\n}\n\nexport const MFE_STANDALONE_APPLICATION_PROFILE: ApplicationProfile = deepFreezeProfile({\n name: 'mfe-standalone',\n defaults: {\n theme: {\n mode: 'light',\n space: 'compact',\n radius: 'medium',\n appearance: 'desktop',\n color: 'default',\n brand: 'default',\n },\n layout: {\n surface: 'base',\n type: 'horizontal',\n width: 'full',\n },\n navigation: {\n orientation: 'horizontal',\n type: 'flyout',\n position: 'top',\n collapsed: false,\n dockbarMode: 'default',\n },\n },\n});\n\nexport const APPLICATION_PROFILES = Object.freeze({\n 'mfe-standalone': MFE_STANDALONE_APPLICATION_PROFILE,\n}) satisfies Readonly<Record<ApplicationProfileName, ApplicationProfile>>;\n\nexport const MFE_APPLICATION_PROFILE = new InjectionToken<ApplicationProfile>(\n 'MFE_APPLICATION_PROFILE',\n);\n\nexport interface StandaloneMfeConfig {\n readonly auth: EdsisAuthConfig;\n readonly runtime?: EdsisRuntimeConfig;\n /** Exact registry field; MFEs cannot invent per-app global profiles. */\n readonly standaloneProfile: ApplicationProfileName;\n}\n\nexport function applicationProfile(\n name: ApplicationProfileName = DEFAULT_APPLICATION_PROFILE_NAME,\n): ApplicationProfile {\n const profiles: Readonly<Record<string, ApplicationProfile | undefined>> = APPLICATION_PROFILES;\n const profile = profiles[name];\n\n if (!profile) {\n throw new Error(`Unknown EDSIS application profile \"${String(name)}\".`);\n }\n\n return profile;\n}\n\n/**\n * Composes the global providers used only by a standalone MFE application.\n * Federated feature routes must inherit these singletons from their host and\n * therefore must never call this provider.\n */\nexport function provideStandaloneMfe(config: StandaloneMfeConfig): EnvironmentProviders {\n const profile = applicationProfile(config.standaloneProfile);\n\n return makeEnvironmentProviders([\n { provide: MFE_APPLICATION_PROFILE, useValue: profile },\n provideEdsisRuntime(config.runtime),\n provideUiTheme(themeOptionsForProfile(profile)),\n provideAppPreferences({ defaults: profile.defaults }),\n provideRuntimeThemeDevice({ appearanceFallback: false }),\n provideEdsisAuth(config.auth),\n ]);\n}\n\nfunction themeOptionsForProfile(profile: ApplicationProfile): ThemeOptions {\n return {\n mode: profile.defaults.theme.mode,\n space: profile.defaults.theme.space,\n radius: profile.defaults.theme.radius,\n appearance: profile.defaults.theme.appearance,\n color: profile.defaults.theme.color,\n brand: profile.defaults.theme.brand,\n };\n}\n\nfunction deepFreezeProfile(profile: ApplicationProfile): ApplicationProfile {\n Object.freeze(profile.defaults.theme);\n Object.freeze(profile.defaults.layout);\n Object.freeze(profile.defaults.navigation);\n Object.freeze(profile.defaults);\n return Object.freeze(profile);\n}\n","import type { Routes } from '@angular/router';\nimport type { NavigationItem } from '@edsis/navigation';\n\nexport const MFE_CONTRACT_VERSION = 1 as const;\nexport const MFE_ENTRY_EXPOSURE = './Mfe' as const;\n\nexport const MFE_EXPOSURE_KINDS = ['contract', 'routes', 'page', 'component'] as const;\nexport const MFE_CAPABILITY_MODES = ['required', 'optional', 'provided'] as const;\n\nexport const MFE_PLATFORM_CAPABILITIES = {\n auth: 'edsis.auth',\n loading: 'edsis.loading',\n navigation: 'edsis.navigation',\n runtime: 'edsis.runtime',\n theme: 'edsis.theme',\n} as const;\n\nexport type MfeContractVersion = typeof MFE_CONTRACT_VERSION;\nexport type MfeExposureKind = (typeof MFE_EXPOSURE_KINDS)[number];\nexport type MfeCapabilityMode = (typeof MFE_CAPABILITY_MODES)[number];\nexport type MfeId = string;\nexport type MfeExposureKey = `./${string}`;\nexport type MfeCapabilityId = string;\n\n/** A host capability consumed or supplied by the MFE contract. */\nexport interface MfeCapabilityDescriptor {\n readonly id: MfeCapabilityId;\n /** Capability compatibility is versioned by a positive major number. */\n readonly version: number;\n readonly mode: MfeCapabilityMode;\n readonly description?: string;\n}\n\n/** Metadata for every module exposed in the remote federation configuration. */\nexport interface MfeExposureDescriptor {\n readonly key: MfeExposureKey;\n readonly kind: MfeExposureKind;\n /** Contract major in which this exposure became public. */\n readonly since: MfeContractVersion;\n /** Export to read from the loaded module. Omit for its default export. */\n readonly exportName?: string;\n /** Capability IDs associated with this exposure when it is rendered directly. */\n readonly capabilities?: readonly MfeCapabilityId[];\n readonly description?: string;\n}\n\n/**\n * Public, shell-free contract exposed from `./Mfe` by every EDSIS remote.\n *\n * The host owns global shell, theme, authentication, navigation state, runtime,\n * and loading services. The remote contributes only feature routes,\n * navigation metadata, capabilities, and optional direct exposures.\n */\nexport interface MfeContractV1 {\n readonly contractVersion: MfeContractVersion;\n readonly id: MfeId;\n readonly displayName: string;\n readonly featureRoutes: Routes;\n readonly navigation: readonly NavigationItem[];\n readonly capabilities: readonly MfeCapabilityDescriptor[];\n readonly exposures: readonly MfeExposureDescriptor[];\n}\n\nexport type MfeContract = MfeContractV1;\n\nexport type MfeContractIssueCode =\n | 'duplicate_capability'\n | 'duplicate_exposure'\n | 'invalid_capability'\n | 'invalid_contract'\n | 'invalid_exposure'\n | 'invalid_id'\n | 'invalid_navigation'\n | 'invalid_routes'\n | 'missing_entry_exposure'\n | 'unknown_capability'\n | 'unsupported_version';\n\nexport interface MfeContractIssue {\n readonly code: MfeContractIssueCode;\n readonly path: string;\n readonly message: string;\n}\n\n/** Host-side registry expectations applied after the remote shape is trusted. */\nexport interface MfeContractExpectation {\n readonly id: string;\n readonly supportedContractVersions: readonly number[];\n}\n\nexport type MfeContractValidationResult =\n | {\n readonly valid: true;\n readonly contract: MfeContract;\n readonly issues: readonly [];\n }\n | {\n readonly valid: false;\n readonly issues: readonly MfeContractIssue[];\n };\n\nexport class MfeContractValidationError extends Error {\n readonly issues: readonly MfeContractIssue[];\n\n constructor(issuesOrMessage: readonly MfeContractIssue[] | string) {\n const issues = typeof issuesOrMessage === 'string' ? [] : issuesOrMessage;\n super(\n typeof issuesOrMessage === 'string'\n ? issuesOrMessage\n : `Invalid EDSIS MFE contract: ${issues\n .map((issue) => `${issue.path} ${issue.message}`)\n .join('; ')}`,\n );\n this.name = 'MfeContractValidationError';\n this.issues = issues;\n }\n}\n\n/** Keeps literal inference while rejecting an invalid contract during remote evaluation. */\nexport function defineMfe<const Contract extends MfeContractV1>(contract: Contract): Contract {\n assertMfeContract(contract);\n return contract;\n}\n\nexport function isMfeContract(value: unknown): value is MfeContract {\n return validateMfeContract(value).valid;\n}\n\nexport function assertMfeContract(value: unknown): asserts value is MfeContract {\n const result = validateMfeContract(value);\n\n if (!result.valid) {\n throw new MfeContractValidationError(result.issues);\n }\n}\n\n/**\n * Reads the exact named `mfe` export from an untrusted federation namespace.\n * Shape validation runs before registry identity and supported-major checks.\n */\nexport function readMfeContract(\n remoteModule: unknown,\n expectation: MfeContractExpectation,\n): MfeContractV1 {\n if (!isRecord(remoteModule) || !('mfe' in remoteModule)) {\n throw new MfeContractValidationError(\n 'The remote module does not export a named \"mfe\" contract.',\n );\n }\n\n const result = validateMfeContract(remoteModule['mfe']);\n\n if (!result.valid) {\n throw new MfeContractValidationError(result.issues);\n }\n\n const contract = result.contract;\n if (contract.id !== expectation.id) {\n throw new MfeContractValidationError(\n `Expected MFE id \"${expectation.id}\" but received \"${contract.id}\".`,\n );\n }\n\n if (!expectation.supportedContractVersions.includes(contract.contractVersion)) {\n throw new MfeContractValidationError(\n `MFE \"${expectation.id}\" uses unsupported contract version \"${contract.contractVersion}\".`,\n );\n }\n\n return contract;\n}\n\n/** Validates an untrusted remote value before the host reads routes or exposures from it. */\nexport function validateMfeContract(value: unknown): MfeContractValidationResult {\n if (!isRecord(value)) {\n return invalid([issue('invalid_contract', '$', 'must be a non-null object')]);\n }\n\n const issues: MfeContractIssue[] = [];\n validateContractIdentity(value, issues);\n validateRouteAndNavigationContributions(value, issues);\n const capabilityIds = validateCapabilities(value['capabilities'], issues);\n validateExposures(value['exposures'], capabilityIds, issues);\n\n if (issues.length > 0) {\n return invalid(issues);\n }\n\n return {\n valid: true,\n contract: value as unknown as MfeContract,\n issues: [],\n };\n}\n\nfunction validateContractIdentity(\n candidate: Record<string, unknown>,\n issues: MfeContractIssue[],\n): void {\n if (candidate['contractVersion'] !== MFE_CONTRACT_VERSION) {\n issues.push(\n issue(\n 'unsupported_version',\n '$.contractVersion',\n `must equal the supported major ${MFE_CONTRACT_VERSION}`,\n ),\n );\n }\n\n const id = candidate['id'];\n if (typeof id !== 'string' || !MFE_ID_PATTERN.test(id)) {\n issues.push(\n issue(\n 'invalid_id',\n '$.id',\n 'must be a lower-kebab identifier such as \"developer\" or \"sales-activity\"',\n ),\n );\n }\n\n if (!isNonEmptyString(candidate['displayName'])) {\n issues.push(issue('invalid_contract', '$.displayName', 'must be a non-empty string'));\n }\n}\n\nfunction validateRouteAndNavigationContributions(\n candidate: Record<string, unknown>,\n issues: MfeContractIssue[],\n): void {\n const routes = candidate['featureRoutes'];\n if (!Array.isArray(routes) || routes.length === 0) {\n issues.push(issue('invalid_routes', '$.featureRoutes', 'must be a non-empty route array'));\n } else {\n routes.forEach((route, index) => {\n if (!isRecord(route)) {\n issues.push(\n issue('invalid_routes', `$.featureRoutes[${index}]`, 'must be an Angular route object'),\n );\n }\n });\n }\n\n const navigation = candidate['navigation'];\n if (!Array.isArray(navigation)) {\n issues.push(issue('invalid_navigation', '$.navigation', 'must be an array'));\n } else {\n navigation.forEach((item, index) => {\n if (!isRecord(item)) {\n issues.push(\n issue('invalid_navigation', `$.navigation[${index}]`, 'must be a navigation item object'),\n );\n }\n });\n }\n}\n\nfunction validateCapabilities(value: unknown, issues: MfeContractIssue[]): ReadonlySet<string> {\n if (!Array.isArray(value)) {\n issues.push(issue('invalid_capability', '$.capabilities', 'must be an array'));\n return new Set<string>();\n }\n\n const capabilityIds = new Set<string>();\n\n value.forEach((capability, index) => {\n const path = `$.capabilities[${index}]`;\n if (!isRecord(capability)) {\n issues.push(issue('invalid_capability', path, 'must be a capability descriptor object'));\n return;\n }\n\n const id = capability['id'];\n if (typeof id !== 'string' || !MFE_CAPABILITY_ID_PATTERN.test(id)) {\n issues.push(\n issue(\n 'invalid_capability',\n `${path}.id`,\n 'must be a lowercase dotted, colon, or kebab capability identifier',\n ),\n );\n } else if (capabilityIds.has(id)) {\n issues.push(issue('duplicate_capability', `${path}.id`, `duplicates capability \"${id}\"`));\n } else {\n capabilityIds.add(id);\n }\n\n const version = capability['version'];\n if (!Number.isInteger(version) || (version as number) < 1) {\n issues.push(\n issue('invalid_capability', `${path}.version`, 'must be a positive integer major'),\n );\n }\n\n if (!includes(MFE_CAPABILITY_MODES, capability['mode'])) {\n issues.push(\n issue(\n 'invalid_capability',\n `${path}.mode`,\n `must be one of ${MFE_CAPABILITY_MODES.join(', ')}`,\n ),\n );\n }\n\n validateOptionalString(capability, 'description', path, 'invalid_capability', issues);\n });\n\n return capabilityIds;\n}\n\nfunction validateExposures(\n value: unknown,\n capabilityIds: ReadonlySet<string>,\n issues: MfeContractIssue[],\n): void {\n if (!Array.isArray(value)) {\n issues.push(issue('invalid_exposure', '$.exposures', 'must be an array'));\n return;\n }\n\n const exposureKeys = new Set<string>();\n let entryExposureCount = 0;\n\n value.forEach((exposure, index) => {\n const path = `$.exposures[${index}]`;\n if (!isRecord(exposure)) {\n issues.push(issue('invalid_exposure', path, 'must be an exposure descriptor object'));\n return;\n }\n\n const key = exposure['key'];\n if (typeof key !== 'string' || !MFE_EXPOSURE_KEY_PATTERN.test(key)) {\n issues.push(\n issue(\n 'invalid_exposure',\n `${path}.key`,\n 'must start with \"./\" and contain no empty or unsafe path segments',\n ),\n );\n } else if (exposureKeys.has(key)) {\n issues.push(issue('duplicate_exposure', `${path}.key`, `duplicates exposure \"${key}\"`));\n } else {\n exposureKeys.add(key);\n }\n\n if (!includes(MFE_EXPOSURE_KINDS, exposure['kind'])) {\n issues.push(\n issue(\n 'invalid_exposure',\n `${path}.kind`,\n `must be one of ${MFE_EXPOSURE_KINDS.join(', ')}`,\n ),\n );\n }\n\n if (key === MFE_ENTRY_EXPOSURE) {\n entryExposureCount += 1;\n if (exposure['kind'] !== 'contract') {\n issues.push(\n issue('invalid_exposure', `${path}.kind`, `must be \"contract\" for ${MFE_ENTRY_EXPOSURE}`),\n );\n }\n } else if (exposure['kind'] === 'contract') {\n issues.push(\n issue(\n 'invalid_exposure',\n `${path}.kind`,\n `the contract kind is reserved for ${MFE_ENTRY_EXPOSURE}`,\n ),\n );\n }\n\n if (exposure['since'] !== MFE_CONTRACT_VERSION) {\n issues.push(\n issue(\n 'invalid_exposure',\n `${path}.since`,\n `must equal contract major ${MFE_CONTRACT_VERSION}`,\n ),\n );\n }\n\n validateOptionalString(exposure, 'exportName', path, 'invalid_exposure', issues);\n validateOptionalString(exposure, 'description', path, 'invalid_exposure', issues);\n validateExposureCapabilities(exposure['capabilities'], path, capabilityIds, issues);\n });\n\n if (entryExposureCount === 0) {\n issues.push(\n issue(\n 'missing_entry_exposure',\n '$.exposures',\n `must declare the ${MFE_ENTRY_EXPOSURE} contract exposure`,\n ),\n );\n }\n}\n\nfunction validateExposureCapabilities(\n value: unknown,\n path: string,\n capabilityIds: ReadonlySet<string>,\n issues: MfeContractIssue[],\n): void {\n if (value === undefined) {\n return;\n }\n if (!Array.isArray(value)) {\n issues.push(issue('invalid_exposure', `${path}.capabilities`, 'must be an array'));\n return;\n }\n\n const referencedIds = new Set<string>();\n value.forEach((capabilityId, index) => {\n const capabilityPath = `${path}.capabilities[${index}]`;\n if (typeof capabilityId !== 'string' || !MFE_CAPABILITY_ID_PATTERN.test(capabilityId)) {\n issues.push(\n issue('invalid_exposure', capabilityPath, 'must be a valid capability identifier'),\n );\n return;\n }\n if (referencedIds.has(capabilityId)) {\n issues.push(\n issue('invalid_exposure', capabilityPath, `duplicates capability \"${capabilityId}\"`),\n );\n return;\n }\n referencedIds.add(capabilityId);\n\n if (!capabilityIds.has(capabilityId)) {\n issues.push(\n issue(\n 'unknown_capability',\n capabilityPath,\n `references undeclared capability \"${capabilityId}\"`,\n ),\n );\n }\n });\n}\n\nfunction validateOptionalString(\n candidate: Record<string, unknown>,\n key: string,\n path: string,\n code: MfeContractIssueCode,\n issues: MfeContractIssue[],\n): void {\n const value = candidate[key];\n if (value !== undefined && !isNonEmptyString(value)) {\n issues.push(issue(code, `${path}.${key}`, 'must be a non-empty string when provided'));\n }\n}\n\nfunction issue(code: MfeContractIssueCode, path: string, message: string): MfeContractIssue {\n return { code, path, message };\n}\n\nfunction invalid(issues: readonly MfeContractIssue[]): MfeContractValidationResult {\n return { valid: false, issues };\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction isNonEmptyString(value: unknown): value is string {\n return typeof value === 'string' && value.trim().length > 0;\n}\n\nfunction includes<const Values extends readonly string[]>(values: Values, value: unknown): boolean {\n return typeof value === 'string' && (values as readonly string[]).includes(value);\n}\n\nconst MFE_ID_PATTERN = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u;\nconst MFE_EXPOSURE_KEY_PATTERN =\n /^\\.\\/[A-Za-z0-9][A-Za-z0-9._-]*(?:\\/[A-Za-z0-9][A-Za-z0-9._-]*)*$/u;\nconst MFE_CAPABILITY_ID_PATTERN = /^[a-z][a-z0-9]*(?:[.:-][a-z0-9]+(?:-[a-z0-9]+)*)*$/u;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAO,MAAM,yBAAyB,GAAG,CAAC,gBAAgB;AACnD,MAAM,gCAAgC,GAAG;;AC0BzC,MAAM,kCAAkC,GAAuB,iBAAiB,CAAC;AACtF,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,MAAM,EAAE,QAAQ;AAChB,YAAA,UAAU,EAAE,SAAS;AACrB,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,KAAK,EAAE,SAAS;AACjB,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,YAAY;AAClB,YAAA,KAAK,EAAE,MAAM;AACd,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,WAAW,EAAE,YAAY;AACzB,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,QAAQ,EAAE,KAAK;AACf,YAAA,SAAS,EAAE,KAAK;AAChB,YAAA,WAAW,EAAE,SAAS;AACvB,SAAA;AACF,KAAA;AACF,CAAA;AAEM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC;AAChD,IAAA,gBAAgB,EAAE,kCAAkC;AACrD,CAAA;MAEY,uBAAuB,GAAG,IAAI,cAAc,CACvD,yBAAyB;AAUrB,SAAU,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