@vc-shell/framework 1.2.4-beta.8 → 2.0.0-alpha.0
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/dist/assets/0d67e9e056b4c500.woff +0 -0
- package/dist/assets/131b34336aedaf47.woff +0 -0
- package/dist/assets/19bb1c668a5db39f.woff2 +0 -0
- package/dist/assets/2010ada3e82156ed.woff +0 -0
- package/dist/assets/3fc09a6113184f16.woff +0 -0
- package/dist/assets/477e1881a0394cc5.woff +0 -0
- package/dist/assets/b7ffde2383bb16ba.woff2 +0 -0
- package/dist/assets/c5195215cb712e9c.woff2 +0 -0
- package/dist/assets/c97328b91ac5cc66.woff +0 -0
- package/dist/assets/cdc69f8b549c866d.woff2 +0 -0
- package/dist/assets/d5eb20bcdcf5616a.woff2 +0 -0
- package/dist/assets/da4b7f5883fe7743.woff2 +0 -0
- package/dist/core/composables/useApiClient/index.d.ts +4 -3
- package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
- package/dist/core/composables/useAppBarMobileButtons/index.d.ts +2 -1
- package/dist/core/composables/useAppBarMobileButtons/index.d.ts.map +1 -1
- package/dist/core/composables/useAppBarWidget/index.d.ts +2 -1
- package/dist/core/composables/useAppBarWidget/index.d.ts.map +1 -1
- package/dist/core/composables/useAppInsights/index.d.ts +4 -2
- package/dist/core/composables/useAppInsights/index.d.ts.map +1 -1
- package/dist/core/composables/useAssets/index.d.ts +4 -2
- package/dist/core/composables/useAssets/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts +4 -2
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useBeforeUnload/index.d.ts +4 -3
- package/dist/core/composables/useBeforeUnload/index.d.ts.map +1 -1
- package/dist/core/composables/useBlade/index.d.ts +23 -18
- package/dist/core/composables/useBlade/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeRegistry/index.d.ts +6 -3
- package/dist/core/composables/useBladeRegistry/index.d.ts.map +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts +4 -2
- package/dist/core/composables/useBreadcrumbs/index.d.ts.map +1 -1
- package/dist/core/composables/useConnectionStatus/index.d.ts +4 -2
- package/dist/core/composables/useConnectionStatus/index.d.ts.map +1 -1
- package/dist/core/composables/useDashboard/index.d.ts +2 -1
- package/dist/core/composables/useDashboard/index.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts +4 -2
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/core/composables/useErrorHandler/index.d.ts +4 -3
- package/dist/core/composables/useErrorHandler/index.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/index.d.ts +4 -3
- package/dist/core/composables/useFunctions/index.d.ts.map +1 -1
- package/dist/core/composables/useGlobalSearch/index.d.ts +2 -1
- package/dist/core/composables/useGlobalSearch/index.d.ts.map +1 -1
- package/dist/core/composables/useKeyboardNavigation/index.d.ts +9 -9
- package/dist/core/composables/useKeyboardNavigation/index.d.ts.map +1 -1
- package/dist/core/composables/useLanguages/index.d.ts +4 -2
- package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
- package/dist/core/composables/useLoading/index.d.ts +2 -1
- package/dist/core/composables/useLoading/index.d.ts.map +1 -1
- package/dist/core/composables/useMenuService/index.d.ts +1 -0
- package/dist/core/composables/useMenuService/index.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts +4 -3
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/usePermissions/index.d.ts +4 -3
- package/dist/core/composables/usePermissions/index.d.ts.map +1 -1
- package/dist/core/composables/useSettings/index.d.ts +4 -2
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/composables/useSettingsMenu/index.d.ts +2 -1
- package/dist/core/composables/useSettingsMenu/index.d.ts.map +1 -1
- package/dist/core/composables/useSidebarState/index.d.ts +5 -3
- package/dist/core/composables/useSidebarState/index.d.ts.map +1 -1
- package/dist/core/composables/useTheme/index.d.ts +4 -2
- package/dist/core/composables/useTheme/index.d.ts.map +1 -1
- package/dist/core/composables/useToolbar/index.d.ts +10 -9
- package/dist/core/composables/useToolbar/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +4 -2
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts +4 -2
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/core/composables/useWebVitals/index.d.ts +1 -0
- package/dist/core/composables/useWebVitals/index.d.ts.map +1 -1
- package/dist/core/composables/useWidgets/index.d.ts +2 -1
- package/dist/core/composables/useWidgets/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts +1 -0
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/constants.d.ts +16 -0
- package/dist/core/plugins/ai-agent/constants.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts +2 -0
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/types.d.ts +19 -0
- package/dist/core/plugins/ai-agent/types.d.ts.map +1 -1
- package/dist/core/plugins/extension-points/defineExtensionPoint.d.ts +26 -4
- package/dist/core/plugins/extension-points/defineExtensionPoint.d.ts.map +1 -1
- package/dist/core/plugins/extension-points/index.d.ts +14 -0
- package/dist/core/plugins/extension-points/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +2 -6
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/loader-mf.d.ts +17 -0
- package/dist/core/plugins/modularity/loader-mf.d.ts.map +1 -0
- package/dist/framework.css +9 -0
- package/dist/framework.js +25999 -24595
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +39 -2
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/locales/de.json +5 -1
- package/dist/locales/en.json +5 -1
- package/dist/shared/components/app-switcher/index.d.ts +3 -1
- package/dist/shared/components/app-switcher/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeMessaging.d.ts +2 -0
- package/dist/shared/components/blade-navigation/composables/useBladeMessaging.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeStack.d.ts +3 -1
- package/dist/shared/components/blade-navigation/composables/useBladeStack.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/plugin-v2.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/types/index.d.ts +1 -0
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/utils/navigateToMainRoute.d.ts +9 -0
- package/dist/shared/components/blade-navigation/utils/navigateToMainRoute.d.ts.map +1 -0
- package/dist/shared/components/blade-navigation/utils/restoreFromUrl.d.ts +4 -1
- package/dist/shared/components/blade-navigation/utils/restoreFromUrl.d.ts.map +1 -1
- package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +3 -3
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/_internal/user-info.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/composables/useExternalWidgets.d.ts +3 -2
- package/dist/shared/composables/useExternalWidgets.d.ts.map +1 -1
- package/dist/shared/composables/useMenuExpanded.d.ts +6 -4
- package/dist/shared/composables/useMenuExpanded.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/index.d.ts +11 -5
- package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
- package/dist/shared/pages/ChangePasswordPage/plugin.d.ts +3 -1
- package/dist/shared/pages/ChangePasswordPage/plugin.d.ts.map +1 -1
- package/dist/shared/pages/ForgotPasswordPage/plugin.d.ts +3 -1
- package/dist/shared/pages/ForgotPasswordPage/plugin.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/plugin.d.ts +3 -1
- package/dist/shared/pages/InvitePage/plugin.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/plugin.d.ts +3 -1
- package/dist/shared/pages/LoginPage/plugin.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/plugin.d.ts +3 -1
- package/dist/shared/pages/ResetPasswordPage/plugin.d.ts.map +1 -1
- package/dist/tailwind.config.d.ts.map +1 -1
- package/dist/test-helpers.d.ts +227 -0
- package/dist/test-helpers.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/types.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/types.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/index.d.ts +2 -1
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/index.d.ts +5 -1
- package/dist/ui/components/molecules/vc-accordion/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +9 -9
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox-group/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-checkbox-group/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.vue.d.ts +11 -17
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown/_internal/VcDropdownItem.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-dropdown/_internal/VcDropdownItem.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-dropdown/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +7 -10
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-field/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +8 -7
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +10 -60
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-menu/constants.d.ts +3 -0
- package/dist/ui/components/molecules/vc-menu/constants.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-menu/index.d.ts +9 -0
- package/dist/ui/components/molecules/vc-menu/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-menu/types.d.ts +28 -0
- package/dist/ui/components/molecules/vc-menu/types.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts +32 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts +34 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu.vue.d.ts +19 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-radio-button/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-radio-button/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts +11 -10
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-group/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-radio-group/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.vue.d.ts +10 -16
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +4 -5
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +3 -2
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts +5 -1
- package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarCollapseButton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarContent.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts +2 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellNavigation.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composition/menu/index.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/composition/menu/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts +2 -0
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/DataTableCellRenderer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/DataTableRow.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/DataTableRow.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/GlobalFiltersPanel.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/components/TableAddRowButton.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableAddRowButton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableCheckbox.vue.d.ts +2 -14
- package/dist/ui/components/organisms/vc-table/components/TableCheckbox.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableColumnSwitcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableGroupRow.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/components/TableGroupRow.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableRow.vue.d.ts +4 -2
- package/dist/ui/components/organisms/vc-table/components/TableRow.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/VcColumn.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-table/components/mobile/DataTableMobileCard.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/components/mobile/DataTableMobileView.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/components/mobile/MobileActionSheet.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/composables/useDataTableOrchestrator.d.ts +276 -0
- package/dist/ui/components/organisms/vc-table/composables/useDataTableOrchestrator.d.ts.map +1 -0
- package/dist/{vendor-dompurify-BGaRrCfO.js → vendor-dompurify-M2Bspgo5.js} +115 -115
- package/dist/{vendor-lodash-es-B5DE282z.js → vendor-lodash-es-BtnfG6xF.js} +15 -12
- package/dist/{vendor-lucide-vue-next-DadL7o0S.js → vendor-lucide-vue-next-CPgeDcFj.js} +16164 -12841
- package/dist/vendor-module-federation-enhanced-CV1CNdJy.js +22 -0
- package/dist/vendor-module-federation-error-codes-DdVwX11j.js +55 -0
- package/dist/vendor-module-federation-runtime-CVH_lWgu.js +91 -0
- package/dist/vendor-module-federation-runtime-core-D5G-s9nP.js +2202 -0
- package/dist/vendor-module-federation-runtime-tools-CQbtw-RJ.js +18 -0
- package/dist/vendor-module-federation-sdk-DM4AJRa7.js +683 -0
- package/dist/{vendor-vue-i18n-D0F0w-9Q.js → vendor-vue-i18n-BguHiJqH.js} +7 -4
- package/dist/vendor-vue-router-R3V0tq8_.js +6 -0
- package/dist/{vendor-vueuse-components-jqShV_Fz.js → vendor-vueuse-components-Be490f6P.js} +30 -30
- package/dist/{vendor-vueuse-core-D-DKRsy5.js → vendor-vueuse-core-BW8bO6-j.js} +17 -14
- package/dist/{vendor-vueuse-shared-Ch7WD-uK.js → vendor-vueuse-shared-bmkWEEYZ.js} +14 -14
- package/package.json +28 -19
- package/tailwind.config.ts +1 -0
- package/core/README.md +0 -365
- package/core/api/platform.ts +0 -9883
- package/core/composables/index.ts +0 -29
- package/core/composables/useApiClient/index.ts +0 -22
- package/core/composables/useAppBarMobileButtons/index.ts +0 -33
- package/core/composables/useAppBarWidget/index.test.ts +0 -86
- package/core/composables/useAppBarWidget/index.ts +0 -31
- package/core/composables/useAppInsights/index.ts +0 -56
- package/core/composables/useAssets/index.ts +0 -144
- package/core/composables/useAsync/index.test.ts +0 -137
- package/core/composables/useAsync/index.ts +0 -89
- package/core/composables/useBeforeUnload/index.ts +0 -25
- package/core/composables/useBlade/index.ts +0 -149
- package/core/composables/useBladeRegistry/index.test.ts +0 -192
- package/core/composables/useBladeRegistry/index.ts +0 -231
- package/core/composables/useBreadcrumbs/index.test.ts +0 -139
- package/core/composables/useBreadcrumbs/index.ts +0 -66
- package/core/composables/useConnectionStatus/index.ts +0 -48
- package/core/composables/useDashboard/index.test.ts +0 -86
- package/core/composables/useDashboard/index.ts +0 -51
- package/core/composables/useDynamicProperties/index.ts +0 -573
- package/core/composables/useErrorHandler/index.ts +0 -75
- package/core/composables/useFunctions/debounce.ts +0 -15
- package/core/composables/useFunctions/delay.ts +0 -3
- package/core/composables/useFunctions/index.ts +0 -20
- package/core/composables/useFunctions/once.ts +0 -11
- package/core/composables/useFunctions/sleep.ts +0 -3
- package/core/composables/useFunctions/throttle.ts +0 -13
- package/core/composables/useGlobalSearch/index.ts +0 -36
- package/core/composables/useGlobalSearch/useGlobalSearch.md +0 -263
- package/core/composables/useKeyboardNavigation/index.ts +0 -246
- package/core/composables/useLanguages/index.ts +0 -48
- package/core/composables/useLoading/index.ts +0 -9
- package/core/composables/useMenuService/index.test.ts +0 -86
- package/core/composables/useMenuService/index.ts +0 -43
- package/core/composables/useNotifications/index.ts +0 -200
- package/core/composables/usePermissions/index.ts +0 -30
- package/core/composables/useSettings/index.ts +0 -64
- package/core/composables/useSettingsMenu/index.test.ts +0 -86
- package/core/composables/useSettingsMenu/index.ts +0 -31
- package/core/composables/useSidebarState/index.ts +0 -90
- package/core/composables/useTheme/index.ts +0 -115
- package/core/composables/useToolbar/index.ts +0 -117
- package/core/composables/useUser/index.ts +0 -406
- package/core/composables/useUser/useUser.test.ts +0 -155
- package/core/composables/useUserManagement/index.ts +0 -45
- package/core/composables/useWebVitals/index.ts +0 -40
- package/core/composables/useWidgets/index.test.ts +0 -86
- package/core/composables/useWidgets/index.ts +0 -39
- package/core/constants/defaults.ts +0 -76
- package/core/constants/index.ts +0 -5
- package/core/constants/locale.ts +0 -78
- package/core/constants/ui.ts +0 -68
- package/core/directives/autofocus/index.ts +0 -9
- package/core/directives/index.ts +0 -2
- package/core/directives/loading/index.ts +0 -42
- package/core/directives/loading/styles.css +0 -71
- package/core/interceptors/index.ts +0 -142
- package/core/plugins/ai-agent/README.md +0 -336
- package/core/plugins/ai-agent/components/VcAiAgentPanel.vue +0 -125
- package/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue +0 -102
- package/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue +0 -107
- package/core/plugins/ai-agent/components/_internal/VcAiAgentLoader.vue +0 -72
- package/core/plugins/ai-agent/components/_internal/VcVirtoOzLogo.vue +0 -136
- package/core/plugins/ai-agent/components/index.ts +0 -1
- package/core/plugins/ai-agent/composables/index.ts +0 -4
- package/core/plugins/ai-agent/composables/useAiAgent.ts +0 -231
- package/core/plugins/ai-agent/composables/useAiAgentContext.ts +0 -285
- package/core/plugins/ai-agent/constants.ts +0 -89
- package/core/plugins/ai-agent/index.ts +0 -91
- package/core/plugins/ai-agent/services/ai-agent-service.ts +0 -592
- package/core/plugins/ai-agent/types.ts +0 -303
- package/core/plugins/extension-points/ExtensionPoint.vue +0 -95
- package/core/plugins/extension-points/defineExtensionPoint.ts +0 -29
- package/core/plugins/extension-points/index.ts +0 -11
- package/core/plugins/extension-points/store.ts +0 -54
- package/core/plugins/extension-points/types.ts +0 -28
- package/core/plugins/extension-points/useExtensionPoint.ts +0 -42
- package/core/plugins/global-error-handler/index.ts +0 -81
- package/core/plugins/i18n/index.ts +0 -11
- package/core/plugins/index.ts +0 -6
- package/core/plugins/modularity/README.md +0 -482
- package/core/plugins/modularity/index.ts +0 -208
- package/core/plugins/modularity/loader.ts +0 -631
- package/core/plugins/permissions/index.ts +0 -10
- package/core/plugins/signalR/index.ts +0 -126
- package/core/plugins/validation/index.ts +0 -1
- package/core/plugins/validation/rules.ts +0 -145
- package/core/services/_internal/createBladeScopedRegistry.test.ts +0 -130
- package/core/services/_internal/createBladeScopedRegistry.ts +0 -127
- package/core/services/_internal/createPreregistrationBus.test.ts +0 -227
- package/core/services/_internal/createPreregistrationBus.ts +0 -106
- package/core/services/_internal/createSimpleMapRegistry.test.ts +0 -82
- package/core/services/_internal/createSimpleMapRegistry.ts +0 -41
- package/core/services/_internal/index.ts +0 -3
- package/core/services/app-bar-menu-service.ts +0 -71
- package/core/services/app-bar-mobile-buttons-service.ts +0 -62
- package/core/services/app-bar-settings-service.test.ts +0 -153
- package/core/services/dashboard-service.ts +0 -110
- package/core/services/global-search-service/global-search-service.md +0 -28
- package/core/services/global-search-service/index.ts +0 -36
- package/core/services/index.ts +0 -11
- package/core/services/language-dashboard-service.test.ts +0 -183
- package/core/services/language-service.ts +0 -98
- package/core/services/menu-service.test.ts +0 -311
- package/core/services/menu-service.ts +0 -259
- package/core/services/settings-menu-service.ts +0 -61
- package/core/services/toolbar-service.ts +0 -111
- package/core/services/toolbar-widget-service.test.ts +0 -207
- package/core/services/widget-service.test.ts +0 -133
- package/core/services/widget-service.ts +0 -262
- package/core/types/index.ts +0 -312
- package/core/types/services.ts +0 -194
- package/core/utilities/camelToSnake.ts +0 -7
- package/core/utilities/camelize.ts +0 -5
- package/core/utilities/date/convertMomentFormat.test.ts +0 -60
- package/core/utilities/date/convertMomentFormat.ts +0 -30
- package/core/utilities/date/formatDate.test.ts +0 -60
- package/core/utilities/date/formatDate.ts +0 -31
- package/core/utilities/date/index.ts +0 -3
- package/core/utilities/date/resolveLocale.test.ts +0 -44
- package/core/utilities/date/resolveLocale.ts +0 -41
- package/core/utilities/error.ts +0 -89
- package/core/utilities/errorTypes.ts +0 -126
- package/core/utilities/generateId.ts +0 -3
- package/core/utilities/index.ts +0 -11
- package/core/utilities/kebabToCamel.ts +0 -7
- package/core/utilities/logger.ts +0 -120
- package/core/utilities/pendingErrorNotifications.ts +0 -64
- package/dist/core/composables/useAppBarWidget/index.test.d.ts +0 -2
- package/dist/core/composables/useAppBarWidget/index.test.d.ts.map +0 -1
- package/dist/core/composables/useAsync/index.test.d.ts +0 -2
- package/dist/core/composables/useAsync/index.test.d.ts.map +0 -1
- package/dist/core/composables/useBladeRegistry/index.test.d.ts +0 -2
- package/dist/core/composables/useBladeRegistry/index.test.d.ts.map +0 -1
- package/dist/core/composables/useBreadcrumbs/index.test.d.ts +0 -2
- package/dist/core/composables/useBreadcrumbs/index.test.d.ts.map +0 -1
- package/dist/core/composables/useDashboard/index.test.d.ts +0 -2
- package/dist/core/composables/useDashboard/index.test.d.ts.map +0 -1
- package/dist/core/composables/useMenuService/index.test.d.ts +0 -2
- package/dist/core/composables/useMenuService/index.test.d.ts.map +0 -1
- package/dist/core/composables/useSettingsMenu/index.test.d.ts +0 -2
- package/dist/core/composables/useSettingsMenu/index.test.d.ts.map +0 -1
- package/dist/core/composables/useUser/useUser.test.d.ts +0 -2
- package/dist/core/composables/useUser/useUser.test.d.ts.map +0 -1
- package/dist/core/composables/useWidgets/index.test.d.ts +0 -2
- package/dist/core/composables/useWidgets/index.test.d.ts.map +0 -1
- package/dist/core/plugins/modularity/loader.d.ts +0 -19
- package/dist/core/plugins/modularity/loader.d.ts.map +0 -1
- package/dist/core/services/_internal/createBladeScopedRegistry.test.d.ts +0 -2
- package/dist/core/services/_internal/createBladeScopedRegistry.test.d.ts.map +0 -1
- package/dist/core/services/_internal/createPreregistrationBus.test.d.ts +0 -2
- package/dist/core/services/_internal/createPreregistrationBus.test.d.ts.map +0 -1
- package/dist/core/services/_internal/createSimpleMapRegistry.test.d.ts +0 -2
- package/dist/core/services/_internal/createSimpleMapRegistry.test.d.ts.map +0 -1
- package/dist/core/services/app-bar-settings-service.test.d.ts +0 -2
- package/dist/core/services/app-bar-settings-service.test.d.ts.map +0 -1
- package/dist/core/services/language-dashboard-service.test.d.ts +0 -2
- package/dist/core/services/language-dashboard-service.test.d.ts.map +0 -1
- package/dist/core/services/menu-service.test.d.ts +0 -2
- package/dist/core/services/menu-service.test.d.ts.map +0 -1
- package/dist/core/services/toolbar-widget-service.test.d.ts +0 -2
- package/dist/core/services/toolbar-widget-service.test.d.ts.map +0 -1
- package/dist/core/services/widget-service.test.d.ts +0 -2
- package/dist/core/services/widget-service.test.d.ts.map +0 -1
- package/dist/core/utilities/date/convertMomentFormat.test.d.ts +0 -2
- package/dist/core/utilities/date/convertMomentFormat.test.d.ts.map +0 -1
- package/dist/core/utilities/date/formatDate.test.d.ts +0 -2
- package/dist/core/utilities/date/formatDate.test.d.ts.map +0 -1
- package/dist/core/utilities/date/resolveLocale.test.d.ts +0 -2
- package/dist/core/utilities/date/resolveLocale.test.d.ts.map +0 -1
- package/dist/index.css +0 -9
- package/dist/shared/components/blade-navigation/composables/useBladeMessaging.test.d.ts +0 -2
- package/dist/shared/components/blade-navigation/composables/useBladeMessaging.test.d.ts.map +0 -1
- package/dist/shared/components/blade-navigation/composables/useBladeStack.test.d.ts +0 -2
- package/dist/shared/components/blade-navigation/composables/useBladeStack.test.d.ts.map +0 -1
- package/dist/shared/components/blade-navigation/utils/restoreFromUrl.test.d.ts +0 -2
- package/dist/shared/components/blade-navigation/utils/restoreFromUrl.test.d.ts.map +0 -1
- package/dist/shared/components/blade-navigation/utils/urlSync.test.d.ts +0 -2
- package/dist/shared/components/blade-navigation/utils/urlSync.test.d.ts.map +0 -1
- package/dist/shared/components/dashboard-widget-card/dashboard-stat-item.test.d.ts +0 -2
- package/dist/shared/components/dashboard-widget-card/dashboard-stat-item.test.d.ts.map +0 -1
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.test.d.ts +0 -2
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.test.d.ts.map +0 -1
- package/dist/shared/utilities/formatBadgeCount.test.d.ts +0 -2
- package/dist/shared/utilities/formatBadgeCount.test.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-button/vc-button.a11y.test.d.ts +0 -2
- package/dist/ui/components/atoms/vc-button/vc-button.a11y.test.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-button/vc-button.test.d.ts +0 -2
- package/dist/ui/components/atoms/vc-button/vc-button.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.a11y.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.a11y.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown-item.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown-item.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input/vc-input.a11y.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-input/vc-input.a11y.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input/vc-input.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-input/vc-input.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input-group/vc-input-group.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-input-group/vc-input-group.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-select/vc-select.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-select/vc-select.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.a11y.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.a11y.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuGroup.vue.d.ts +0 -21
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuGroup.vue.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue.d.ts +0 -32
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetDropdownItem.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetDropdownItem.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/utils.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-blade/utils.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useImageLoad.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-gallery/composables/useImageLoad.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.actions.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.actions.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/composables/useDataTableState.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-table/composables/useDataTableState.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/composables/useMobileCardLayout.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-table/composables/useMobileCardLayout.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableFilter.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-table/composables/useTableFilter.test.d.ts.map +0 -1
- package/shared/components/app-switcher/components/index.ts +0 -1
- package/shared/components/app-switcher/components/vc-app-switcher/index.ts +0 -1
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +0 -89
- package/shared/components/app-switcher/composables/index.ts +0 -1
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +0 -53
- package/shared/components/app-switcher/index.ts +0 -14
- package/shared/components/blade-navigation/ARCHITECTURE.md +0 -420
- package/shared/components/blade-navigation/MIGRATION.md +0 -224
- package/shared/components/blade-navigation/components/index.ts +0 -2
- package/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue +0 -78
- package/shared/components/blade-navigation/components/vc-blade-navigation/index.ts +0 -2
- package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue +0 -160
- package/shared/components/blade-navigation/components/vc-blade-slot/index.ts +0 -1
- package/shared/components/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue +0 -143
- package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +0 -188
- package/shared/components/blade-navigation/composables/index.ts +0 -5
- package/shared/components/blade-navigation/composables/useBladeMessaging.test.ts +0 -189
- package/shared/components/blade-navigation/composables/useBladeMessaging.ts +0 -81
- package/shared/components/blade-navigation/composables/useBladeNavigationAdapter.ts +0 -513
- package/shared/components/blade-navigation/composables/useBladeStack.test.ts +0 -420
- package/shared/components/blade-navigation/composables/useBladeStack.ts +0 -335
- package/shared/components/blade-navigation/index.ts +0 -4
- package/shared/components/blade-navigation/plugin-v2.ts +0 -144
- package/shared/components/blade-navigation/types/index.ts +0 -247
- package/shared/components/blade-navigation/utils/restoreFromUrl.test.ts +0 -247
- package/shared/components/blade-navigation/utils/restoreFromUrl.ts +0 -84
- package/shared/components/blade-navigation/utils/urlSync.test.ts +0 -181
- package/shared/components/blade-navigation/utils/urlSync.ts +0 -151
- package/shared/components/change-password/change-password.vue +0 -231
- package/shared/components/change-password/index.ts +0 -10
- package/shared/components/change-password-button/change-password-button.stories.ts +0 -63
- package/shared/components/change-password-button/change-password-button.vue +0 -23
- package/shared/components/change-password-button/index.ts +0 -1
- package/shared/components/common/popup/vc-popup-base.vue +0 -133
- package/shared/components/common/popup/vc-popup-error.vue +0 -38
- package/shared/components/common/popup/vc-popup-info.vue +0 -38
- package/shared/components/common/popup/vc-popup-warning.vue +0 -42
- package/shared/components/dashboard-charts/ChartContainer.vue +0 -54
- package/shared/components/dashboard-charts/ChartLegend.vue +0 -40
- package/shared/components/dashboard-charts/ChartTooltip.vue +0 -43
- package/shared/components/dashboard-charts/DashboardBarChart.vue +0 -165
- package/shared/components/dashboard-charts/DashboardDonutChart.vue +0 -137
- package/shared/components/dashboard-charts/DashboardLineChart.vue +0 -170
- package/shared/components/dashboard-charts/chart-theme.scss +0 -19
- package/shared/components/dashboard-charts/chart-tooltip.scss +0 -48
- package/shared/components/dashboard-charts/chart-utils.ts +0 -189
- package/shared/components/dashboard-charts/dashboard-charts.stories.ts +0 -393
- package/shared/components/dashboard-charts/index.ts +0 -7
- package/shared/components/dashboard-charts/types.ts +0 -7
- package/shared/components/dashboard-widget-card/dashboard-feed-list.vue +0 -12
- package/shared/components/dashboard-widget-card/dashboard-feed-row.vue +0 -28
- package/shared/components/dashboard-widget-card/dashboard-stat-item.test.ts +0 -38
- package/shared/components/dashboard-widget-card/dashboard-stat-item.vue +0 -55
- package/shared/components/dashboard-widget-card/dashboard-widget-card.stories.ts +0 -202
- package/shared/components/dashboard-widget-card/dashboard-widget-card.test.ts +0 -72
- package/shared/components/dashboard-widget-card/dashboard-widget-card.vue +0 -163
- package/shared/components/dashboard-widget-card/index.ts +0 -4
- package/shared/components/draggable-dashboard/DraggableDashboard.vue +0 -70
- package/shared/components/draggable-dashboard/GridstackDashboard.vue +0 -315
- package/shared/components/draggable-dashboard/composables/useGridstack.ts +0 -380
- package/shared/components/draggable-dashboard/composables/useGridstackAdapter.ts +0 -245
- package/shared/components/draggable-dashboard/draggable-dashboard.stories.ts +0 -175
- package/shared/components/draggable-dashboard/index.ts +0 -34
- package/shared/components/draggable-dashboard/types.ts +0 -96
- package/shared/components/error-interceptor/index.ts +0 -18
- package/shared/components/error-interceptor/interceptor.ts +0 -66
- package/shared/components/generic-dropdown/generic-dropdown.vue +0 -122
- package/shared/components/generic-dropdown/index.ts +0 -7
- package/shared/components/index.ts +0 -27
- package/shared/components/language-selector/index.ts +0 -10
- package/shared/components/language-selector/language-selector.stories.ts +0 -44
- package/shared/components/language-selector/language-selector.vue +0 -72
- package/shared/components/logout-button/index.ts +0 -1
- package/shared/components/logout-button/logout-button.stories.ts +0 -61
- package/shared/components/logout-button/logout-button.vue +0 -30
- package/shared/components/multilanguage-selector/index.ts +0 -1
- package/shared/components/multilanguage-selector/multilanguage-selector.stories.ts +0 -90
- package/shared/components/multilanguage-selector/multilanguage-selector.vue +0 -191
- package/shared/components/notification-dropdown/_internal/notification/index.ts +0 -1
- package/shared/components/notification-dropdown/_internal/notification/notification.vue +0 -78
- package/shared/components/notification-dropdown/index.ts +0 -10
- package/shared/components/notification-dropdown/notification-dropdown.stories.ts +0 -99
- package/shared/components/notification-dropdown/notification-dropdown.vue +0 -40
- package/shared/components/notification-template/index.ts +0 -10
- package/shared/components/notification-template/notification-template.stories.ts +0 -95
- package/shared/components/notification-template/notification-template.vue +0 -131
- package/shared/components/notifications/components/index.ts +0 -1
- package/shared/components/notifications/components/notification-container/index.ts +0 -153
- package/shared/components/notifications/composables/index.ts +0 -2
- package/shared/components/notifications/composables/useContainer/index.ts +0 -292
- package/shared/components/notifications/composables/useInstance/index.ts +0 -79
- package/shared/components/notifications/core/index.ts +0 -1
- package/shared/components/notifications/core/notification.ts +0 -202
- package/shared/components/notifications/index.ts +0 -6
- package/shared/components/notifications/styles/index.scss +0 -133
- package/shared/components/notifications/types/index.ts +0 -33
- package/shared/components/popup-handler/components/index.ts +0 -1
- package/shared/components/popup-handler/components/vc-popup-container/index.ts +0 -3
- package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +0 -49
- package/shared/components/popup-handler/composables/index.ts +0 -1
- package/shared/components/popup-handler/composables/usePopup/index.ts +0 -209
- package/shared/components/popup-handler/index.ts +0 -19
- package/shared/components/popup-handler/keys.ts +0 -4
- package/shared/components/popup-handler/plugin.ts +0 -25
- package/shared/components/popup-handler/types/index.ts +0 -25
- package/shared/components/popup-handler/utils/index.ts +0 -9
- package/shared/components/settings-menu/index.ts +0 -1
- package/shared/components/settings-menu/settings-menu.stories.ts +0 -104
- package/shared/components/settings-menu/settings-menu.vue +0 -59
- package/shared/components/settings-menu-item/index.ts +0 -1
- package/shared/components/settings-menu-item/settings-menu-item.stories.ts +0 -194
- package/shared/components/settings-menu-item/settings-menu-item.vue +0 -168
- package/shared/components/sidebar/index.ts +0 -7
- package/shared/components/sidebar/sidebar.vue +0 -80
- package/shared/components/sign-in/external-provider.vue +0 -49
- package/shared/components/sign-in/external-providers.vue +0 -26
- package/shared/components/sign-in/index.ts +0 -1
- package/shared/components/sign-in/useExternalProvider.ts +0 -103
- package/shared/components/theme-selector/index.ts +0 -1
- package/shared/components/theme-selector/theme-selector.stories.ts +0 -56
- package/shared/components/theme-selector/theme-selector.vue +0 -51
- package/shared/components/user-dropdown-button/_internal/user-info.vue +0 -114
- package/shared/components/user-dropdown-button/_internal/user-sidebar.vue +0 -50
- package/shared/components/user-dropdown-button/index.ts +0 -10
- package/shared/components/user-dropdown-button/user-dropdown-button.stories.ts +0 -153
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +0 -142
- package/shared/composables/index.ts +0 -5
- package/shared/composables/useExternalWidgets.ts +0 -107
- package/shared/composables/useMenuExpanded.ts +0 -64
- package/shared/composables/useModificationTracker/index.ts +0 -116
- package/shared/composables/useTableSelection.ts +0 -151
- package/shared/composables/useTableSort.ts +0 -107
- package/shared/index.ts +0 -24
- package/shared/modules/assets/components/assets-details/assets-details.vue +0 -238
- package/shared/modules/assets/components/assets-details/index.ts +0 -3
- package/shared/modules/assets/components/index.ts +0 -1
- package/shared/modules/assets/index.ts +0 -12
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +0 -442
- package/shared/modules/assets-manager/components/assets-manager/index.ts +0 -3
- package/shared/modules/assets-manager/components/index.ts +0 -1
- package/shared/modules/assets-manager/index.ts +0 -13
- package/shared/modules/dynamic/components/FIELD_MAP.ts +0 -53
- package/shared/modules/dynamic/components/SchemaRender.ts +0 -102
- package/shared/modules/dynamic/components/factories.ts +0 -242
- package/shared/modules/dynamic/components/fields/Button.ts +0 -44
- package/shared/modules/dynamic/components/fields/Card.ts +0 -119
- package/shared/modules/dynamic/components/fields/Checkbox.ts +0 -53
- package/shared/modules/dynamic/components/fields/ContentField.ts +0 -33
- package/shared/modules/dynamic/components/fields/CustomComponent.ts +0 -29
- package/shared/modules/dynamic/components/fields/DynamicProperty.ts +0 -154
- package/shared/modules/dynamic/components/fields/EditorField.ts +0 -46
- package/shared/modules/dynamic/components/fields/Fieldset.ts +0 -66
- package/shared/modules/dynamic/components/fields/GalleryField.ts +0 -162
- package/shared/modules/dynamic/components/fields/ImageField.ts +0 -35
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +0 -79
- package/shared/modules/dynamic/components/fields/InputField.ts +0 -81
- package/shared/modules/dynamic/components/fields/MultivalueField.ts +0 -68
- package/shared/modules/dynamic/components/fields/RadioButtonGroup.ts +0 -83
- package/shared/modules/dynamic/components/fields/RatingField.ts +0 -28
- package/shared/modules/dynamic/components/fields/SelectField.ts +0 -72
- package/shared/modules/dynamic/components/fields/StatusField.ts +0 -110
- package/shared/modules/dynamic/components/fields/SwitchField.ts +0 -29
- package/shared/modules/dynamic/components/fields/Table.ts +0 -194
- package/shared/modules/dynamic/components/fields/TextareaField.ts +0 -46
- package/shared/modules/dynamic/components/fields/ValidationField.ts +0 -54
- package/shared/modules/dynamic/components/fields/VideoField.ts +0 -30
- package/shared/modules/dynamic/components/fields/props.ts +0 -39
- package/shared/modules/dynamic/components/index.ts +0 -4
- package/shared/modules/dynamic/composables/index.ts +0 -4
- package/shared/modules/dynamic/composables/useDynamicViewsUtils/index.ts +0 -46
- package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +0 -441
- package/shared/modules/dynamic/composables/useTableTemplates/index.ts +0 -67
- package/shared/modules/dynamic/composables/useToolbarReducer/index.ts +0 -70
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +0 -145
- package/shared/modules/dynamic/factories/base/useListFactory.ts +0 -69
- package/shared/modules/dynamic/factories/index.ts +0 -4
- package/shared/modules/dynamic/factories/types/index.ts +0 -220
- package/shared/modules/dynamic/helpers/getters.ts +0 -12
- package/shared/modules/dynamic/helpers/methodHandler.ts +0 -22
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +0 -242
- package/shared/modules/dynamic/helpers/override.ts +0 -153
- package/shared/modules/dynamic/helpers/safeIn.ts +0 -6
- package/shared/modules/dynamic/helpers/setters.ts +0 -24
- package/shared/modules/dynamic/helpers/unrefNested.ts +0 -14
- package/shared/modules/dynamic/helpers/unwrapInterpolation.ts +0 -16
- package/shared/modules/dynamic/index.ts +0 -314
- package/shared/modules/dynamic/keys.ts +0 -3
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +0 -575
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +0 -755
- package/shared/modules/dynamic/pages/index.ts +0 -4
- package/shared/modules/dynamic/types/index.ts +0 -1220
- package/shared/modules/dynamic/types/models.ts +0 -186
- package/shared/modules/index.ts +0 -3
- package/shared/pages/ChangePasswordPage/components/change-password/ChangePassword.vue +0 -209
- package/shared/pages/ChangePasswordPage/components/change-password/change-password.stories.ts +0 -44
- package/shared/pages/ChangePasswordPage/components/change-password/index.ts +0 -3
- package/shared/pages/ChangePasswordPage/components/index.ts +0 -1
- package/shared/pages/ChangePasswordPage/index.ts +0 -1
- package/shared/pages/ChangePasswordPage/plugin.ts +0 -4
- package/shared/pages/ForgotPasswordPage/components/forgot-password/ForgotPassword.vue +0 -155
- package/shared/pages/ForgotPasswordPage/components/forgot-password/forgot-password.stories.ts +0 -38
- package/shared/pages/ForgotPasswordPage/components/forgot-password/index.ts +0 -3
- package/shared/pages/ForgotPasswordPage/components/index.ts +0 -1
- package/shared/pages/ForgotPasswordPage/index.ts +0 -1
- package/shared/pages/ForgotPasswordPage/plugin.ts +0 -4
- package/shared/pages/InvitePage/components/index.ts +0 -1
- package/shared/pages/InvitePage/components/invite/Invite.vue +0 -182
- package/shared/pages/InvitePage/components/invite/index.ts +0 -3
- package/shared/pages/InvitePage/components/invite/invite.stories.ts +0 -64
- package/shared/pages/InvitePage/index.ts +0 -1
- package/shared/pages/InvitePage/plugin.ts +0 -4
- package/shared/pages/LoginPage/components/index.ts +0 -1
- package/shared/pages/LoginPage/components/login/Login.vue +0 -226
- package/shared/pages/LoginPage/components/login/README.md +0 -52
- package/shared/pages/LoginPage/components/login/index.ts +0 -3
- package/shared/pages/LoginPage/components/login/login.stories.ts +0 -52
- package/shared/pages/LoginPage/index.ts +0 -1
- package/shared/pages/LoginPage/plugin.ts +0 -4
- package/shared/pages/ResetPasswordPage/components/index.ts +0 -1
- package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +0 -176
- package/shared/pages/ResetPasswordPage/components/reset-password/index.ts +0 -3
- package/shared/pages/ResetPasswordPage/components/reset-password/reset-password.stories.ts +0 -64
- package/shared/pages/ResetPasswordPage/index.ts +0 -1
- package/shared/pages/ResetPasswordPage/plugin.ts +0 -4
- package/shared/pages/_storybook-helpers.ts +0 -71
- package/shared/pages/index.ts +0 -5
- package/shared/pages/plugin.ts +0 -5
- package/shared/utilities/assets.ts +0 -43
- package/shared/utilities/colorUtils.ts +0 -64
- package/shared/utilities/formatBadgeCount.test.ts +0 -25
- package/shared/utilities/formatBadgeCount.ts +0 -15
- package/shared/utilities/index.ts +0 -4
- package/shared/utilities/vueUtils.ts +0 -50
- package/ui/components/atoms/index.ts +0 -21
- package/ui/components/atoms/vc-badge/index.ts +0 -1
- package/ui/components/atoms/vc-badge/vc-badge.stories.ts +0 -522
- package/ui/components/atoms/vc-badge/vc-badge.vue +0 -353
- package/ui/components/atoms/vc-banner/index.ts +0 -1
- package/ui/components/atoms/vc-banner/vc-banner.stories.ts +0 -259
- package/ui/components/atoms/vc-banner/vc-banner.vue +0 -225
- package/ui/components/atoms/vc-button/index.ts +0 -3
- package/ui/components/atoms/vc-button/types.ts +0 -28
- package/ui/components/atoms/vc-button/vc-button-group.stories.ts +0 -172
- package/ui/components/atoms/vc-button/vc-button-group.vue +0 -101
- package/ui/components/atoms/vc-button/vc-button.a11y.test.ts +0 -46
- package/ui/components/atoms/vc-button/vc-button.stories.ts +0 -431
- package/ui/components/atoms/vc-button/vc-button.test.ts +0 -75
- package/ui/components/atoms/vc-button/vc-button.vue +0 -355
- package/ui/components/atoms/vc-card/index.ts +0 -3
- package/ui/components/atoms/vc-card/vc-card.stories.ts +0 -342
- package/ui/components/atoms/vc-card/vc-card.vue +0 -217
- package/ui/components/atoms/vc-col/index.ts +0 -1
- package/ui/components/atoms/vc-col/vc-col.stories.ts +0 -164
- package/ui/components/atoms/vc-col/vc-col.vue +0 -34
- package/ui/components/atoms/vc-container/index.ts +0 -10
- package/ui/components/atoms/vc-container/vc-container.stories.ts +0 -219
- package/ui/components/atoms/vc-container/vc-container.vue +0 -96
- package/ui/components/atoms/vc-hint/index.ts +0 -10
- package/ui/components/atoms/vc-hint/vc-hint.stories.ts +0 -144
- package/ui/components/atoms/vc-hint/vc-hint.vue +0 -42
- package/ui/components/atoms/vc-icon/README.md +0 -273
- package/ui/components/atoms/vc-icon/composables/index.ts +0 -2
- package/ui/components/atoms/vc-icon/composables/use-icon-type.ts +0 -83
- package/ui/components/atoms/vc-icon/composables/use-icon.ts +0 -129
- package/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue +0 -24
- package/ui/components/atoms/vc-icon/icons/index.ts +0 -1
- package/ui/components/atoms/vc-icon/index.ts +0 -3
- package/ui/components/atoms/vc-icon/types.ts +0 -36
- package/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue +0 -124
- package/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue +0 -143
- package/ui/components/atoms/vc-icon/vc-icon.stories.ts +0 -818
- package/ui/components/atoms/vc-icon/vc-icon.vue +0 -609
- package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +0 -199
- package/ui/components/atoms/vc-icon/vc-material-icon.vue +0 -128
- package/ui/components/atoms/vc-icon/vc-svg-icon.vue +0 -168
- package/ui/components/atoms/vc-image/index.ts +0 -1
- package/ui/components/atoms/vc-image/vc-image.stories.ts +0 -309
- package/ui/components/atoms/vc-image/vc-image.vue +0 -173
- package/ui/components/atoms/vc-label/index.ts +0 -1
- package/ui/components/atoms/vc-label/vc-label.stories.ts +0 -137
- package/ui/components/atoms/vc-label/vc-label.vue +0 -132
- package/ui/components/atoms/vc-link/index.ts +0 -10
- package/ui/components/atoms/vc-link/vc-link.stories.ts +0 -154
- package/ui/components/atoms/vc-link/vc-link.vue +0 -61
- package/ui/components/atoms/vc-loading/index.ts +0 -3
- package/ui/components/atoms/vc-loading/vc-loading.vue +0 -71
- package/ui/components/atoms/vc-progress/index.ts +0 -10
- package/ui/components/atoms/vc-progress/vc-progress.stories.ts +0 -182
- package/ui/components/atoms/vc-progress/vc-progress.vue +0 -74
- package/ui/components/atoms/vc-row/index.ts +0 -1
- package/ui/components/atoms/vc-row/vc-row.stories.ts +0 -143
- package/ui/components/atoms/vc-row/vc-row.vue +0 -27
- package/ui/components/atoms/vc-scrollable-container/index.ts +0 -1
- package/ui/components/atoms/vc-scrollable-container/vc-scrollable-container.vue +0 -119
- package/ui/components/atoms/vc-skeleton/index.ts +0 -1
- package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +0 -246
- package/ui/components/atoms/vc-skeleton/vc-skeleton.vue +0 -115
- package/ui/components/atoms/vc-status/index.ts +0 -1
- package/ui/components/atoms/vc-status/vc-status.stories.ts +0 -235
- package/ui/components/atoms/vc-status/vc-status.vue +0 -131
- package/ui/components/atoms/vc-status-icon/index.ts +0 -1
- package/ui/components/atoms/vc-status-icon/vc-status-icon.stories.ts +0 -129
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +0 -48
- package/ui/components/atoms/vc-tooltip/index.ts +0 -1
- package/ui/components/atoms/vc-tooltip/vc-tooltip.stories.ts +0 -409
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +0 -301
- package/ui/components/atoms/vc-video/index.ts +0 -1
- package/ui/components/atoms/vc-video/vc-video.stories.ts +0 -150
- package/ui/components/atoms/vc-video/vc-video.vue +0 -88
- package/ui/components/atoms/vc-widget/index.ts +0 -3
- package/ui/components/atoms/vc-widget/vc-widget.stories.ts +0 -285
- package/ui/components/atoms/vc-widget/vc-widget.vue +0 -174
- package/ui/components/index.ts +0 -8
- package/ui/components/molecules/index.ts +0 -26
- package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue +0 -216
- package/ui/components/molecules/vc-accordion/index.ts +0 -11
- package/ui/components/molecules/vc-accordion/vc-accordion.stories.ts +0 -526
- package/ui/components/molecules/vc-accordion/vc-accordion.vue +0 -176
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +0 -98
- package/ui/components/molecules/vc-breadcrumbs/index.ts +0 -1
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +0 -509
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +0 -176
- package/ui/components/molecules/vc-checkbox/index.ts +0 -3
- package/ui/components/molecules/vc-checkbox/vc-checkbox.a11y.test.ts +0 -39
- package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +0 -356
- package/ui/components/molecules/vc-checkbox/vc-checkbox.test.ts +0 -75
- package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +0 -355
- package/ui/components/molecules/vc-checkbox-group/index.ts +0 -2
- package/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.stories.ts +0 -258
- package/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.test.ts +0 -40
- package/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.vue +0 -103
- package/ui/components/molecules/vc-color-input/index.ts +0 -1
- package/ui/components/molecules/vc-color-input/vc-color-input.stories.ts +0 -152
- package/ui/components/molecules/vc-color-input/vc-color-input.vue +0 -398
- package/ui/components/molecules/vc-date-picker/index.ts +0 -1
- package/ui/components/molecules/vc-date-picker/vc-date-picker.stories.ts +0 -168
- package/ui/components/molecules/vc-date-picker/vc-date-picker.vue +0 -427
- package/ui/components/molecules/vc-dropdown/_internal/VcDropdownItem.vue +0 -78
- package/ui/components/molecules/vc-dropdown/index.ts +0 -2
- package/ui/components/molecules/vc-dropdown/vc-dropdown-item.test.ts +0 -59
- package/ui/components/molecules/vc-dropdown/vc-dropdown.stories.ts +0 -394
- package/ui/components/molecules/vc-dropdown/vc-dropdown.test.ts +0 -54
- package/ui/components/molecules/vc-dropdown/vc-dropdown.vue +0 -546
- package/ui/components/molecules/vc-dropdown-panel/index.ts +0 -1
- package/ui/components/molecules/vc-dropdown-panel/panel-anchor-registry.ts +0 -5
- package/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue +0 -326
- package/ui/components/molecules/vc-editor/_internal/extensions/font-size.ts +0 -59
- package/ui/components/molecules/vc-editor/_internal/toolbar-types.ts +0 -57
- package/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue +0 -103
- package/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue +0 -79
- package/ui/components/molecules/vc-editor/_internal/vc-editor-font-selector.vue +0 -215
- package/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue +0 -316
- package/ui/components/molecules/vc-editor/index.ts +0 -6
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +0 -417
- package/ui/components/molecules/vc-editor/vc-editor.vue +0 -833
- package/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue +0 -96
- package/ui/components/molecules/vc-field/index.ts +0 -1
- package/ui/components/molecules/vc-field/vc-field.stories.ts +0 -179
- package/ui/components/molecules/vc-field/vc-field.vue +0 -119
- package/ui/components/molecules/vc-file-upload/index.ts +0 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +0 -472
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +0 -271
- package/ui/components/molecules/vc-form/index.ts +0 -10
- package/ui/components/molecules/vc-form/vc-form.stories.ts +0 -168
- package/ui/components/molecules/vc-form/vc-form.vue +0 -38
- package/ui/components/molecules/vc-input/index.ts +0 -1
- package/ui/components/molecules/vc-input/vc-input.a11y.test.ts +0 -57
- package/ui/components/molecules/vc-input/vc-input.stories.ts +0 -1004
- package/ui/components/molecules/vc-input/vc-input.test.ts +0 -114
- package/ui/components/molecules/vc-input/vc-input.vue +0 -731
- package/ui/components/molecules/vc-input-currency/index.ts +0 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +0 -532
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +0 -199
- package/ui/components/molecules/vc-input-dropdown/index.ts +0 -3
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +0 -761
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue +0 -305
- package/ui/components/molecules/vc-input-group/context.ts +0 -10
- package/ui/components/molecules/vc-input-group/index.ts +0 -2
- package/ui/components/molecules/vc-input-group/vc-input-group.stories.ts +0 -355
- package/ui/components/molecules/vc-input-group/vc-input-group.test.ts +0 -39
- package/ui/components/molecules/vc-input-group/vc-input-group.vue +0 -173
- package/ui/components/molecules/vc-multivalue/_internal/MultivalueDropdown.vue +0 -216
- package/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue +0 -207
- package/ui/components/molecules/vc-multivalue/composables/index.ts +0 -6
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueColor.ts +0 -50
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueDropdown.ts +0 -126
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueInput.ts +0 -64
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueMode.ts +0 -32
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueOptions.ts +0 -27
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueValues.ts +0 -50
- package/ui/components/molecules/vc-multivalue/index.ts +0 -1
- package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +0 -561
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +0 -547
- package/ui/components/molecules/vc-pagination/index.ts +0 -3
- package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +0 -259
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +0 -244
- package/ui/components/molecules/vc-radio-button/index.ts +0 -1
- package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +0 -283
- package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +0 -195
- package/ui/components/molecules/vc-radio-group/index.ts +0 -2
- package/ui/components/molecules/vc-radio-group/vc-radio-group.stories.ts +0 -248
- package/ui/components/molecules/vc-radio-group/vc-radio-group.test.ts +0 -51
- package/ui/components/molecules/vc-radio-group/vc-radio-group.vue +0 -92
- package/ui/components/molecules/vc-rating/index.ts +0 -1
- package/ui/components/molecules/vc-rating/vc-rating.stories.ts +0 -363
- package/ui/components/molecules/vc-rating/vc-rating.vue +0 -128
- package/ui/components/molecules/vc-select/_internal/SelectDropdown.vue +0 -200
- package/ui/components/molecules/vc-select/_internal/SelectTrigger.vue +0 -301
- package/ui/components/molecules/vc-select/composables/index.ts +0 -7
- package/ui/components/molecules/vc-select/composables/useSelectDefaultValue.ts +0 -106
- package/ui/components/molecules/vc-select/composables/useSelectDropdown.ts +0 -88
- package/ui/components/molecules/vc-select/composables/useSelectOptions.ts +0 -125
- package/ui/components/molecules/vc-select/composables/useSelectSearch.ts +0 -83
- package/ui/components/molecules/vc-select/composables/useSelectSelection.ts +0 -170
- package/ui/components/molecules/vc-select/composables/useSelectValueMapping.ts +0 -57
- package/ui/components/molecules/vc-select/composables/useSelectVisibility.ts +0 -60
- package/ui/components/molecules/vc-select/index.ts +0 -2
- package/ui/components/molecules/vc-select/vc-select.stories.ts +0 -1730
- package/ui/components/molecules/vc-select/vc-select.test.ts +0 -89
- package/ui/components/molecules/vc-select/vc-select.vue +0 -862
- package/ui/components/molecules/vc-slider/index.ts +0 -13
- package/ui/components/molecules/vc-slider/vc-slider.stories.ts +0 -224
- package/ui/components/molecules/vc-slider/vc-slider.vue +0 -148
- package/ui/components/molecules/vc-switch/index.ts +0 -1
- package/ui/components/molecules/vc-switch/vc-switch.stories.ts +0 -324
- package/ui/components/molecules/vc-switch/vc-switch.vue +0 -237
- package/ui/components/molecules/vc-textarea/index.ts +0 -1
- package/ui/components/molecules/vc-textarea/vc-textarea.a11y.test.ts +0 -44
- package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +0 -326
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +0 -229
- package/ui/components/molecules/vc-toast/index.ts +0 -1
- package/ui/components/molecules/vc-toast/vc-toast.stories.ts +0 -559
- package/ui/components/molecules/vc-toast/vc-toast.vue +0 -649
- package/ui/components/organisms/blade-navigation-v2.stories.ts +0 -611
- package/ui/components/organisms/index.ts +0 -9
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarMobileActions.vue +0 -128
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarOverlay.vue +0 -91
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetContent.vue +0 -40
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetItem.vue +0 -154
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetsMenu.vue +0 -110
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.test.ts +0 -174
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue +0 -730
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue +0 -79
- package/ui/components/organisms/vc-app/_internal/app-bar/components/MenuSidebar.vue +0 -196
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppBarMobileActions.ts +0 -50
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppBarState.ts +0 -35
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppBarWidgets.ts +0 -25
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.ts +0 -70
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useToggleableContent.ts +0 -67
- package/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue +0 -365
- package/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.test.ts +0 -151
- package/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue +0 -587
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.test.ts +0 -43
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue +0 -158
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenuGroup.vue +0 -160
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue +0 -216
- package/ui/components/organisms/vc-app/_internal/menu/composables/useBadge.ts +0 -82
- package/ui/components/organisms/vc-app/_internal/menu/composables/useMenuActiveState.ts +0 -41
- package/ui/components/organisms/vc-app/_internal/sidebar/SidebarCollapseButton.vue +0 -47
- package/ui/components/organisms/vc-app/_internal/sidebar/SidebarContent.vue +0 -123
- package/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue +0 -242
- package/ui/components/organisms/vc-app/composables/useShellBootstrap.test.ts +0 -222
- package/ui/components/organisms/vc-app/composables/useShellBootstrap.ts +0 -101
- package/ui/components/organisms/vc-app/composables/useShellLifecycle.ts +0 -39
- package/ui/components/organisms/vc-app/composables/useShellNavigation.ts +0 -57
- package/ui/components/organisms/vc-app/composition/README.md +0 -78
- package/ui/components/organisms/vc-app/composition/app-bar/index.ts +0 -6
- package/ui/components/organisms/vc-app/composition/index.ts +0 -6
- package/ui/components/organisms/vc-app/composition/layouts/index.ts +0 -2
- package/ui/components/organisms/vc-app/composition/menu/index.ts +0 -6
- package/ui/components/organisms/vc-app/composition/shell/index.ts +0 -3
- package/ui/components/organisms/vc-app/composition/sidebar/index.ts +0 -3
- package/ui/components/organisms/vc-app/composition/state/index.ts +0 -6
- package/ui/components/organisms/vc-app/index.ts +0 -2
- package/ui/components/organisms/vc-app/vc-app-shell.stories.ts +0 -762
- package/ui/components/organisms/vc-app/vc-app.vue +0 -252
- package/ui/components/organisms/vc-auth-layout/index.ts +0 -1
- package/ui/components/organisms/vc-auth-layout/vc-auth-layout.vue +0 -193
- package/ui/components/organisms/vc-blade/_internal/BladeContentSkeleton.vue +0 -113
- package/ui/components/organisms/vc-blade/_internal/BladeHeader.vue +0 -263
- package/ui/components/organisms/vc-blade/_internal/BladeHeaderSkeleton.vue +0 -52
- package/ui/components/organisms/vc-blade/_internal/BladeStatusBanners.vue +0 -195
- package/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue +0 -73
- package/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue +0 -34
- package/ui/components/organisms/vc-blade/_internal/composables/useBladeError.ts +0 -44
- package/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.ts +0 -116
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.test.ts +0 -79
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue +0 -135
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarCircleButton.vue +0 -101
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarDesktop.vue +0 -125
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarMobile.vue +0 -417
- package/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.ts +0 -14
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainer.vue +0 -38
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue +0 -125
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue +0 -114
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetDropdownItem.test.ts +0 -56
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetDropdownItem.vue +0 -91
- package/ui/components/organisms/vc-blade/constants.ts +0 -19
- package/ui/components/organisms/vc-blade/index.ts +0 -1
- package/ui/components/organisms/vc-blade/utils.test.ts +0 -82
- package/ui/components/organisms/vc-blade/utils.ts +0 -48
- package/ui/components/organisms/vc-blade/vc-blade.stories.ts +0 -502
- package/ui/components/organisms/vc-blade/vc-blade.vue +0 -312
- package/ui/components/organisms/vc-dynamic-property/index.ts +0 -1
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +0 -618
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.test.ts +0 -48
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +0 -244
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +0 -351
- package/ui/components/organisms/vc-gallery/composables/index.ts +0 -4
- package/ui/components/organisms/vc-gallery/composables/useGalleryPreview.ts +0 -26
- package/ui/components/organisms/vc-gallery/composables/useGalleryReorder.test.ts +0 -73
- package/ui/components/organisms/vc-gallery/composables/useGalleryReorder.ts +0 -183
- package/ui/components/organisms/vc-gallery/composables/useGalleryUpload.test.ts +0 -89
- package/ui/components/organisms/vc-gallery/composables/useGalleryUpload.ts +0 -43
- package/ui/components/organisms/vc-gallery/composables/useImageLoad.test.ts +0 -34
- package/ui/components/organisms/vc-gallery/composables/useImageLoad.ts +0 -26
- package/ui/components/organisms/vc-gallery/index.ts +0 -3
- package/ui/components/organisms/vc-gallery/vc-gallery.actions.test.ts +0 -76
- package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +0 -99
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +0 -424
- package/ui/components/organisms/vc-image-upload/index.ts +0 -1
- package/ui/components/organisms/vc-image-upload/vc-image-upload.stories.ts +0 -47
- package/ui/components/organisms/vc-image-upload/vc-image-upload.vue +0 -251
- package/ui/components/organisms/vc-popup/index.ts +0 -3
- package/ui/components/organisms/vc-popup/vc-popup.stories.ts +0 -504
- package/ui/components/organisms/vc-popup/vc-popup.vue +0 -405
- package/ui/components/organisms/vc-sidebar/index.ts +0 -1
- package/ui/components/organisms/vc-sidebar/vc-sidebar.stories.ts +0 -251
- package/ui/components/organisms/vc-sidebar/vc-sidebar.test.ts +0 -125
- package/ui/components/organisms/vc-sidebar/vc-sidebar.vue +0 -787
- package/ui/components/organisms/vc-table/VcDataTable.vue +0 -1856
- package/ui/components/organisms/vc-table/VcTableAdapter.vue +0 -574
- package/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue +0 -134
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +0 -451
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +0 -123
- package/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue +0 -38
- package/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue +0 -88
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +0 -238
- package/ui/components/organisms/vc-table/base/BaseVcDataTable.ts +0 -541
- package/ui/components/organisms/vc-table/components/ColumnFilter.vue +0 -459
- package/ui/components/organisms/vc-table/components/ColumnSwitcherButton.vue +0 -43
- package/ui/components/organisms/vc-table/components/DataTableBody.vue +0 -363
- package/ui/components/organisms/vc-table/components/DataTableCellRenderer.vue +0 -396
- package/ui/components/organisms/vc-table/components/DataTableHeader.vue +0 -373
- package/ui/components/organisms/vc-table/components/DataTableRow.vue +0 -370
- package/ui/components/organisms/vc-table/components/GlobalFiltersButton.vue +0 -58
- package/ui/components/organisms/vc-table/components/GlobalFiltersPanel.vue +0 -440
- package/ui/components/organisms/vc-table/components/Table.vue +0 -101
- package/ui/components/organisms/vc-table/components/TableActions.vue +0 -125
- package/ui/components/organisms/vc-table/components/TableAddRowButton.vue +0 -55
- package/ui/components/organisms/vc-table/components/TableBody.vue +0 -79
- package/ui/components/organisms/vc-table/components/TableCell.vue +0 -160
- package/ui/components/organisms/vc-table/components/TableCheckbox.vue +0 -78
- package/ui/components/organisms/vc-table/components/TableColumnSwitcher.vue +0 -150
- package/ui/components/organisms/vc-table/components/TableEmpty.vue +0 -69
- package/ui/components/organisms/vc-table/components/TableFooter.vue +0 -13
- package/ui/components/organisms/vc-table/components/TableGroupRow.vue +0 -130
- package/ui/components/organisms/vc-table/components/TableHead.vue +0 -311
- package/ui/components/organisms/vc-table/components/TableHeader.vue +0 -13
- package/ui/components/organisms/vc-table/components/TableResizeHandle.vue +0 -125
- package/ui/components/organisms/vc-table/components/TableRow.vue +0 -283
- package/ui/components/organisms/vc-table/components/TableRowActions.vue +0 -495
- package/ui/components/organisms/vc-table/components/TableSearchHeader.vue +0 -233
- package/ui/components/organisms/vc-table/components/TableSelectAllBar.vue +0 -135
- package/ui/components/organisms/vc-table/components/VcColumn.vue +0 -255
- package/ui/components/organisms/vc-table/components/_internal/SlotProxy.ts +0 -20
- package/ui/components/organisms/vc-table/components/_internal/TableSkeletonRows.vue +0 -110
- package/ui/components/organisms/vc-table/components/cells/CellDate.vue +0 -52
- package/ui/components/organisms/vc-table/components/cells/CellDateAgo.vue +0 -48
- package/ui/components/organisms/vc-table/components/cells/CellDefault.vue +0 -90
- package/ui/components/organisms/vc-table/components/cells/CellEditableWrapper.vue +0 -47
- package/ui/components/organisms/vc-table/components/cells/CellHtml.vue +0 -62
- package/ui/components/organisms/vc-table/components/cells/CellImage.vue +0 -28
- package/ui/components/organisms/vc-table/components/cells/CellLink.vue +0 -18
- package/ui/components/organisms/vc-table/components/cells/CellMoney.vue +0 -120
- package/ui/components/organisms/vc-table/components/cells/CellNumber.vue +0 -113
- package/ui/components/organisms/vc-table/components/cells/CellStatus.vue +0 -18
- package/ui/components/organisms/vc-table/components/cells/CellStatusIcon.vue +0 -20
- package/ui/components/organisms/vc-table/components/cells/DynamicCellRenderer.vue +0 -164
- package/ui/components/organisms/vc-table/components/cells/index.ts +0 -11
- package/ui/components/organisms/vc-table/components/index.ts +0 -39
- package/ui/components/organisms/vc-table/components/mobile/DataTableMobileCard.vue +0 -672
- package/ui/components/organisms/vc-table/components/mobile/DataTableMobileView.vue +0 -251
- package/ui/components/organisms/vc-table/components/mobile/MobileActionSheet.vue +0 -163
- package/ui/components/organisms/vc-table/components/mobile/MobileCellRenderer.vue +0 -68
- package/ui/components/organisms/vc-table/components/mobile/PullToRefresh.vue +0 -353
- package/ui/components/organisms/vc-table/components/mobile/index.ts +0 -6
- package/ui/components/organisms/vc-table/composables/index.ts +0 -49
- package/ui/components/organisms/vc-table/composables/useCellBase.ts +0 -114
- package/ui/components/organisms/vc-table/composables/useCellRegistry.ts +0 -130
- package/ui/components/organisms/vc-table/composables/useColumnFilter.ts +0 -158
- package/ui/components/organisms/vc-table/composables/useDataProcessing.ts +0 -239
- package/ui/components/organisms/vc-table/composables/useDataTableState.test.ts +0 -78
- package/ui/components/organisms/vc-table/composables/useDataTableState.ts +0 -343
- package/ui/components/organisms/vc-table/composables/useMobileCardLayout.test.ts +0 -81
- package/ui/components/organisms/vc-table/composables/useMobileCardLayout.ts +0 -345
- package/ui/components/organisms/vc-table/composables/useTableColumns.ts +0 -276
- package/ui/components/organisms/vc-table/composables/useTableColumnsReorder.ts +0 -175
- package/ui/components/organisms/vc-table/composables/useTableColumnsResize.ts +0 -311
- package/ui/components/organisms/vc-table/composables/useTableContext.ts +0 -16
- package/ui/components/organisms/vc-table/composables/useTableEditing.ts +0 -385
- package/ui/components/organisms/vc-table/composables/useTableExpansion.ts +0 -159
- package/ui/components/organisms/vc-table/composables/useTableFilter.test.ts +0 -43
- package/ui/components/organisms/vc-table/composables/useTableFilter.ts +0 -131
- package/ui/components/organisms/vc-table/composables/useTableInlineEdit.ts +0 -306
- package/ui/components/organisms/vc-table/composables/useTableRowGrouping.ts +0 -310
- package/ui/components/organisms/vc-table/composables/useTableRowReorder.ts +0 -227
- package/ui/components/organisms/vc-table/composables/useTableSelectionV2.ts +0 -388
- package/ui/components/organisms/vc-table/composables/useTableSort.ts +0 -221
- package/ui/components/organisms/vc-table/composables/useTableSwipe.ts +0 -32
- package/ui/components/organisms/vc-table/composables/useVirtualScroll.ts +0 -286
- package/ui/components/organisms/vc-table/index.ts +0 -68
- package/ui/components/organisms/vc-table/keys.ts +0 -20
- package/ui/components/organisms/vc-table/types.ts +0 -856
- package/ui/components/organisms/vc-table/utils/ColumnCollector.ts +0 -137
- package/ui/components/organisms/vc-table/utils/deepClone.ts +0 -46
- package/ui/components/organisms/vc-table/utils/index.ts +0 -19
- package/ui/components/organisms/vc-table/vc-data-table.stories.ts +0 -5178
- package/ui/composables/README.md +0 -160
- package/ui/composables/index.ts +0 -6
- package/ui/composables/useAdaptiveItems.ts +0 -347
- package/ui/composables/useCollapsible.ts +0 -73
- package/ui/composables/useFloatingPosition.ts +0 -94
- package/ui/composables/useFormField.ts +0 -57
- package/ui/composables/useScrollArrows.ts +0 -64
- package/ui/composables/useTeleportTarget.ts +0 -37
- package/ui/types/form-field.ts +0 -44
- package/ui/types/index.ts +0 -21
|
@@ -0,0 +1,2202 @@
|
|
|
1
|
+
import { r as D } from "./vendor-module-federation-sdk-DM4AJRa7.js";
|
|
2
|
+
import { r as ee } from "./vendor-module-federation-error-codes-DdVwX11j.js";
|
|
3
|
+
var Se = {}, Z = {}, Le;
|
|
4
|
+
function L() {
|
|
5
|
+
if (Le) return Z;
|
|
6
|
+
Le = 1;
|
|
7
|
+
let a = /* @__PURE__ */ D();
|
|
8
|
+
const l = "[ Federation Runtime ]", y = (0, a.createLogger)(l);
|
|
9
|
+
function p(u, m) {
|
|
10
|
+
u || _(m);
|
|
11
|
+
}
|
|
12
|
+
function _(u) {
|
|
13
|
+
throw u instanceof Error ? (u.message.startsWith(l) || (u.message = `${l}: ${u.message}`), u) : new Error(`${l}: ${u}`);
|
|
14
|
+
}
|
|
15
|
+
function g(u) {
|
|
16
|
+
u instanceof Error && (u.message.startsWith(l) || (u.message = `${l}: ${u.message}`)), y.warn(u);
|
|
17
|
+
}
|
|
18
|
+
return Z.assert = p, Z.error = _, Z.logger = y, Z.warn = g, Z;
|
|
19
|
+
}
|
|
20
|
+
var F = {}, Ce;
|
|
21
|
+
function B() {
|
|
22
|
+
if (Ce) return F;
|
|
23
|
+
Ce = 1;
|
|
24
|
+
const a = L();
|
|
25
|
+
let l = /* @__PURE__ */ D();
|
|
26
|
+
function y(o, r) {
|
|
27
|
+
return o.findIndex((i) => i === r) === -1 && o.push(r), o;
|
|
28
|
+
}
|
|
29
|
+
function p(o) {
|
|
30
|
+
return "version" in o && o.version ? `${o.name}:${o.version}` : "entry" in o && o.entry ? `${o.name}:${o.entry}` : `${o.name}`;
|
|
31
|
+
}
|
|
32
|
+
function _(o) {
|
|
33
|
+
return typeof o.entry < "u";
|
|
34
|
+
}
|
|
35
|
+
function g(o) {
|
|
36
|
+
return !o.entry.includes(".json");
|
|
37
|
+
}
|
|
38
|
+
async function u(o, r) {
|
|
39
|
+
try {
|
|
40
|
+
return await o();
|
|
41
|
+
} catch (i) {
|
|
42
|
+
!r && a.warn(i);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function m(o) {
|
|
47
|
+
return o && typeof o == "object";
|
|
48
|
+
}
|
|
49
|
+
const T = Object.prototype.toString;
|
|
50
|
+
function f(o) {
|
|
51
|
+
return T.call(o) === "[object Object]";
|
|
52
|
+
}
|
|
53
|
+
function S(o, r) {
|
|
54
|
+
const i = /^(https?:)?\/\//i;
|
|
55
|
+
return o.replace(i, "").replace(/\/$/, "") === r.replace(i, "").replace(/\/$/, "");
|
|
56
|
+
}
|
|
57
|
+
function e(o) {
|
|
58
|
+
return Array.isArray(o) ? o : [o];
|
|
59
|
+
}
|
|
60
|
+
function E(o) {
|
|
61
|
+
const r = {
|
|
62
|
+
url: "",
|
|
63
|
+
type: "global",
|
|
64
|
+
globalName: ""
|
|
65
|
+
};
|
|
66
|
+
return (0, l.isBrowserEnv)() || (0, l.isReactNativeEnv)() || !("ssrRemoteEntry" in o) ? "remoteEntry" in o ? {
|
|
67
|
+
url: o.remoteEntry,
|
|
68
|
+
type: o.remoteEntryType,
|
|
69
|
+
globalName: o.globalName
|
|
70
|
+
} : r : "ssrRemoteEntry" in o ? {
|
|
71
|
+
url: o.ssrRemoteEntry || r.url,
|
|
72
|
+
type: o.ssrRemoteEntryType || r.type,
|
|
73
|
+
globalName: o.globalName
|
|
74
|
+
} : r;
|
|
75
|
+
}
|
|
76
|
+
const k = (o, r) => {
|
|
77
|
+
let i;
|
|
78
|
+
return o.endsWith("/") ? i = o.slice(0, -1) : i = o, r.startsWith(".") && (r = r.slice(1)), i = i + r, i;
|
|
79
|
+
};
|
|
80
|
+
return F.addUniqueItem = y, F.arrayOptions = e, F.getFMId = p, F.getRemoteEntryInfoFromSnapshot = E, F.isObject = m, F.isPlainObject = f, F.isPureRemoteEntry = g, F.isRemoteInfoWithEntry = _, F.isStaticResourcesEqual = S, F.objectToString = T, F.processModuleAlias = k, F.safeWrapper = u, F;
|
|
81
|
+
}
|
|
82
|
+
var G = {}, Fe;
|
|
83
|
+
function K() {
|
|
84
|
+
if (Fe) return G;
|
|
85
|
+
Fe = 1;
|
|
86
|
+
const a = L(), l = B();
|
|
87
|
+
let y = /* @__PURE__ */ D();
|
|
88
|
+
const p = typeof globalThis == "object" ? globalThis : window, _ = (() => {
|
|
89
|
+
try {
|
|
90
|
+
return document.defaultView;
|
|
91
|
+
} catch {
|
|
92
|
+
return p;
|
|
93
|
+
}
|
|
94
|
+
})(), g = _;
|
|
95
|
+
function u(s, b, R) {
|
|
96
|
+
Object.defineProperty(s, b, {
|
|
97
|
+
value: R,
|
|
98
|
+
configurable: !1,
|
|
99
|
+
writable: !0
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function m(s, b) {
|
|
103
|
+
return Object.hasOwnProperty.call(s, b);
|
|
104
|
+
}
|
|
105
|
+
m(p, "__GLOBAL_LOADING_REMOTE_ENTRY__") || u(p, "__GLOBAL_LOADING_REMOTE_ENTRY__", {});
|
|
106
|
+
const T = p.__GLOBAL_LOADING_REMOTE_ENTRY__;
|
|
107
|
+
function f(s) {
|
|
108
|
+
m(s, "__VMOK__") && !m(s, "__FEDERATION__") && u(s, "__FEDERATION__", s.__VMOK__), m(s, "__FEDERATION__") || (u(s, "__FEDERATION__", {
|
|
109
|
+
__GLOBAL_PLUGIN__: [],
|
|
110
|
+
__INSTANCES__: [],
|
|
111
|
+
moduleInfo: {},
|
|
112
|
+
__SHARE__: {},
|
|
113
|
+
__MANIFEST_LOADING__: {},
|
|
114
|
+
__PRELOADED_MAP__: /* @__PURE__ */ new Map()
|
|
115
|
+
}), u(s, "__VMOK__", s.__FEDERATION__)), s.__FEDERATION__.__GLOBAL_PLUGIN__ ??= [], s.__FEDERATION__.__INSTANCES__ ??= [], s.__FEDERATION__.moduleInfo ??= {}, s.__FEDERATION__.__SHARE__ ??= {}, s.__FEDERATION__.__MANIFEST_LOADING__ ??= {}, s.__FEDERATION__.__PRELOADED_MAP__ ??= /* @__PURE__ */ new Map();
|
|
116
|
+
}
|
|
117
|
+
f(p), f(_);
|
|
118
|
+
function S() {
|
|
119
|
+
p.__FEDERATION__.__GLOBAL_PLUGIN__ = [], p.__FEDERATION__.__INSTANCES__ = [], p.__FEDERATION__.moduleInfo = {}, p.__FEDERATION__.__SHARE__ = {}, p.__FEDERATION__.__MANIFEST_LOADING__ = {}, Object.keys(T).forEach((s) => {
|
|
120
|
+
delete T[s];
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function e(s) {
|
|
124
|
+
p.__FEDERATION__.__INSTANCES__.push(s);
|
|
125
|
+
}
|
|
126
|
+
function E() {
|
|
127
|
+
return p.__FEDERATION__.__DEBUG_CONSTRUCTOR__;
|
|
128
|
+
}
|
|
129
|
+
function k(s, b = (0, y.isDebugMode)()) {
|
|
130
|
+
b && (p.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = s, p.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "2.1.0");
|
|
131
|
+
}
|
|
132
|
+
function o(s, b) {
|
|
133
|
+
if (typeof b == "string") {
|
|
134
|
+
if (s[b]) return {
|
|
135
|
+
value: s[b],
|
|
136
|
+
key: b
|
|
137
|
+
};
|
|
138
|
+
{
|
|
139
|
+
const R = Object.keys(s);
|
|
140
|
+
for (const q of R) {
|
|
141
|
+
const [$, H] = q.split(":"), P = `${$}:${b}`, O = s[P];
|
|
142
|
+
if (O) return {
|
|
143
|
+
value: O,
|
|
144
|
+
key: P
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
value: void 0,
|
|
149
|
+
key: b
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
} else throw new Error("key must be string");
|
|
153
|
+
}
|
|
154
|
+
const r = () => _.__FEDERATION__.moduleInfo, i = (s, b) => {
|
|
155
|
+
const R = o(b, l.getFMId(s)).value;
|
|
156
|
+
if (R && !R.version && "version" in s && s.version && (R.version = s.version), R) return R;
|
|
157
|
+
if ("version" in s && s.version) {
|
|
158
|
+
const { version: q, ...$ } = s, H = l.getFMId($), P = o(_.__FEDERATION__.moduleInfo, H).value;
|
|
159
|
+
if (P?.version === q) return P;
|
|
160
|
+
}
|
|
161
|
+
}, n = (s) => i(s, _.__FEDERATION__.moduleInfo), d = (s, b) => {
|
|
162
|
+
const R = l.getFMId(s);
|
|
163
|
+
return _.__FEDERATION__.moduleInfo[R] = b, _.__FEDERATION__.moduleInfo;
|
|
164
|
+
}, v = (s) => (_.__FEDERATION__.moduleInfo = {
|
|
165
|
+
..._.__FEDERATION__.moduleInfo,
|
|
166
|
+
...s
|
|
167
|
+
}, () => {
|
|
168
|
+
const b = Object.keys(s);
|
|
169
|
+
for (const R of b) delete _.__FEDERATION__.moduleInfo[R];
|
|
170
|
+
}), A = (s, b) => {
|
|
171
|
+
const R = b || `__FEDERATION_${s}:custom__`;
|
|
172
|
+
return {
|
|
173
|
+
remoteEntryKey: R,
|
|
174
|
+
entryExports: p[R]
|
|
175
|
+
};
|
|
176
|
+
}, c = (s) => {
|
|
177
|
+
const { __GLOBAL_PLUGIN__: b } = _.__FEDERATION__;
|
|
178
|
+
s.forEach((R) => {
|
|
179
|
+
b.findIndex((q) => q.name === R.name) === -1 ? b.push(R) : a.warn(`The plugin ${R.name} has been registered.`);
|
|
180
|
+
});
|
|
181
|
+
}, h = () => _.__FEDERATION__.__GLOBAL_PLUGIN__, t = (s) => p.__FEDERATION__.__PRELOADED_MAP__.get(s), I = (s) => p.__FEDERATION__.__PRELOADED_MAP__.set(s, !0);
|
|
182
|
+
return G.CurrentGlobal = p, G.Global = g, G.addGlobalSnapshot = v, G.getGlobalFederationConstructor = E, G.getGlobalHostPlugins = h, G.getGlobalSnapshot = r, G.getGlobalSnapshotInfoByModuleInfo = n, G.getInfoWithoutType = o, G.getPreloaded = t, G.getRemoteEntryExports = A, G.getTargetSnapshotInfoByModuleInfo = i, G.globalLoading = T, G.nativeGlobal = _, G.registerGlobalPlugins = c, G.resetFederationGlobalInfo = S, G.setGlobalFederationConstructor = k, G.setGlobalFederationInstance = e, G.setGlobalSnapshotInfoByModuleInfo = d, G.setPreloaded = I, G;
|
|
183
|
+
}
|
|
184
|
+
var Ee = {}, z = {}, W = {}, De;
|
|
185
|
+
function yt() {
|
|
186
|
+
if (De) return W;
|
|
187
|
+
De = 1;
|
|
188
|
+
const a = "[0-9A-Za-z-]+", l = `(?:\\+(${a}(?:\\.${a})*))`, y = "0|[1-9]\\d*", p = "[0-9]+", _ = "\\d*[a-zA-Z-][a-zA-Z0-9-]*", g = `(?:${p}|${_})`, u = `(?:-?(${g}(?:\\.${g})*))`, m = `(?:${y}|${_})`, T = `(?:-(${m}(?:\\.${m})*))`, f = `${y}|x|X|\\*`, S = `[v=\\s]*(${f})(?:\\.(${f})(?:\\.(${f})(?:${T})?${l}?)?)?`, e = `^\\s*(${S})\\s+-\\s+(${S})\\s*$`, E = `[v=\\s]*${`(${p})\\.(${p})\\.(${p})`}${u}?${l}?`, k = "((?:<|>)?=?)", o = `(\\s*)${k}\\s*(${E}|${S})`, r = "(?:~>?)", i = `(\\s*)${r}\\s+`, n = "(?:\\^)", d = `(\\s*)${n}\\s+`, v = "(<|>)?=?\\s*\\*", A = `^${n}${S}$`, c = `v?${`(${y})\\.(${y})\\.(${y})`}${T}?${l}?`, h = `^${r}${S}$`, t = `^${k}\\s*${S}$`, I = `^${k}\\s*(${c})$|^$`, s = "^\\s*>=\\s*0.0.0\\s*$";
|
|
189
|
+
return W.caret = A, W.caretTrim = d, W.comparator = I, W.comparatorTrim = o, W.gte0 = s, W.hyphenRange = e, W.star = v, W.tilde = h, W.tildeTrim = i, W.xRange = t, W;
|
|
190
|
+
}
|
|
191
|
+
var xe;
|
|
192
|
+
function St() {
|
|
193
|
+
if (xe) return z;
|
|
194
|
+
xe = 1;
|
|
195
|
+
const a = yt();
|
|
196
|
+
function l(u) {
|
|
197
|
+
return new RegExp(u);
|
|
198
|
+
}
|
|
199
|
+
function y(u) {
|
|
200
|
+
return !u || u.toLowerCase() === "x" || u === "*";
|
|
201
|
+
}
|
|
202
|
+
function p(...u) {
|
|
203
|
+
return (m) => u.reduce((T, f) => f(T), m);
|
|
204
|
+
}
|
|
205
|
+
function _(u) {
|
|
206
|
+
return u.match(l(a.comparator));
|
|
207
|
+
}
|
|
208
|
+
function g(u, m, T, f) {
|
|
209
|
+
const S = `${u}.${m}.${T}`;
|
|
210
|
+
return f ? `${S}-${f}` : S;
|
|
211
|
+
}
|
|
212
|
+
return z.combineVersion = g, z.extractComparator = _, z.isXVersion = y, z.parseRegex = l, z.pipe = p, z;
|
|
213
|
+
}
|
|
214
|
+
var U = {}, We;
|
|
215
|
+
function kt() {
|
|
216
|
+
if (We) return U;
|
|
217
|
+
We = 1;
|
|
218
|
+
const a = yt(), l = St();
|
|
219
|
+
function y(e) {
|
|
220
|
+
return e.replace(l.parseRegex(a.hyphenRange), (E, k, o, r, i, n, d, v, A, c, h, t) => (l.isXVersion(o) ? k = "" : l.isXVersion(r) ? k = `>=${o}.0.0` : l.isXVersion(i) ? k = `>=${o}.${r}.0` : k = `>=${k}`, l.isXVersion(A) ? v = "" : l.isXVersion(c) ? v = `<${Number(A) + 1}.0.0-0` : l.isXVersion(h) ? v = `<${A}.${Number(c) + 1}.0-0` : t ? v = `<=${A}.${c}.${h}-${t}` : v = `<=${v}`, `${k} ${v}`.trim()));
|
|
221
|
+
}
|
|
222
|
+
function p(e) {
|
|
223
|
+
return e.replace(l.parseRegex(a.comparatorTrim), "$1$2$3");
|
|
224
|
+
}
|
|
225
|
+
function _(e) {
|
|
226
|
+
return e.replace(l.parseRegex(a.tildeTrim), "$1~");
|
|
227
|
+
}
|
|
228
|
+
function g(e) {
|
|
229
|
+
return e.replace(l.parseRegex(a.caretTrim), "$1^");
|
|
230
|
+
}
|
|
231
|
+
function u(e) {
|
|
232
|
+
return e.trim().split(/\s+/).map((E) => E.replace(l.parseRegex(a.caret), (k, o, r, i, n) => l.isXVersion(o) ? "" : l.isXVersion(r) ? `>=${o}.0.0 <${Number(o) + 1}.0.0-0` : l.isXVersion(i) ? o === "0" ? `>=${o}.${r}.0 <${o}.${Number(r) + 1}.0-0` : `>=${o}.${r}.0 <${Number(o) + 1}.0.0-0` : n ? o === "0" ? r === "0" ? `>=${o}.${r}.${i}-${n} <${o}.${r}.${Number(i) + 1}-0` : `>=${o}.${r}.${i}-${n} <${o}.${Number(r) + 1}.0-0` : `>=${o}.${r}.${i}-${n} <${Number(o) + 1}.0.0-0` : o === "0" ? r === "0" ? `>=${o}.${r}.${i} <${o}.${r}.${Number(i) + 1}-0` : `>=${o}.${r}.${i} <${o}.${Number(r) + 1}.0-0` : `>=${o}.${r}.${i} <${Number(o) + 1}.0.0-0`)).join(" ");
|
|
233
|
+
}
|
|
234
|
+
function m(e) {
|
|
235
|
+
return e.trim().split(/\s+/).map((E) => E.replace(l.parseRegex(a.tilde), (k, o, r, i, n) => l.isXVersion(o) ? "" : l.isXVersion(r) ? `>=${o}.0.0 <${Number(o) + 1}.0.0-0` : l.isXVersion(i) ? `>=${o}.${r}.0 <${o}.${Number(r) + 1}.0-0` : n ? `>=${o}.${r}.${i}-${n} <${o}.${Number(r) + 1}.0-0` : `>=${o}.${r}.${i} <${o}.${Number(r) + 1}.0-0`)).join(" ");
|
|
236
|
+
}
|
|
237
|
+
function T(e) {
|
|
238
|
+
return e.split(/\s+/).map((E) => E.trim().replace(l.parseRegex(a.xRange), (k, o, r, i, n, d) => {
|
|
239
|
+
const v = l.isXVersion(r), A = v || l.isXVersion(i), c = A || l.isXVersion(n);
|
|
240
|
+
return o === "=" && c && (o = ""), d = "", v ? o === ">" || o === "<" ? "<0.0.0-0" : "*" : o && c ? (A && (i = 0), n = 0, o === ">" ? (o = ">=", A ? (r = Number(r) + 1, i = 0, n = 0) : (i = Number(i) + 1, n = 0)) : o === "<=" && (o = "<", A ? r = Number(r) + 1 : i = Number(i) + 1), o === "<" && (d = "-0"), `${o + r}.${i}.${n}${d}`) : A ? `>=${r}.0.0${d} <${Number(r) + 1}.0.0-0` : c ? `>=${r}.${i}.0${d} <${r}.${Number(i) + 1}.0-0` : k;
|
|
241
|
+
})).join(" ");
|
|
242
|
+
}
|
|
243
|
+
function f(e) {
|
|
244
|
+
return e.trim().replace(l.parseRegex(a.star), "");
|
|
245
|
+
}
|
|
246
|
+
function S(e) {
|
|
247
|
+
return e.trim().replace(l.parseRegex(a.gte0), "");
|
|
248
|
+
}
|
|
249
|
+
return U.parseCaretTrim = g, U.parseCarets = u, U.parseComparatorTrim = p, U.parseGTE0 = S, U.parseHyphen = y, U.parseStar = f, U.parseTildeTrim = _, U.parseTildes = m, U.parseXRanges = T, U;
|
|
250
|
+
}
|
|
251
|
+
var be = {}, Ue;
|
|
252
|
+
function Tt() {
|
|
253
|
+
if (Ue) return be;
|
|
254
|
+
Ue = 1;
|
|
255
|
+
function a(g, u) {
|
|
256
|
+
return g = Number(g) || g, u = Number(u) || u, g > u ? 1 : g === u ? 0 : -1;
|
|
257
|
+
}
|
|
258
|
+
function l(g, u) {
|
|
259
|
+
const { preRelease: m } = g, { preRelease: T } = u;
|
|
260
|
+
if (m === void 0 && T) return 1;
|
|
261
|
+
if (m && T === void 0) return -1;
|
|
262
|
+
if (m === void 0 && T === void 0) return 0;
|
|
263
|
+
for (let f = 0, S = m.length; f <= S; f++) {
|
|
264
|
+
const e = m[f], E = T[f];
|
|
265
|
+
if (e !== E)
|
|
266
|
+
return e === void 0 && E === void 0 ? 0 : e ? E ? a(e, E) : -1 : 1;
|
|
267
|
+
}
|
|
268
|
+
return 0;
|
|
269
|
+
}
|
|
270
|
+
function y(g, u) {
|
|
271
|
+
return a(g.major, u.major) || a(g.minor, u.minor) || a(g.patch, u.patch) || l(g, u);
|
|
272
|
+
}
|
|
273
|
+
function p(g, u) {
|
|
274
|
+
return g.version === u.version;
|
|
275
|
+
}
|
|
276
|
+
function _(g, u) {
|
|
277
|
+
switch (g.operator) {
|
|
278
|
+
case "":
|
|
279
|
+
case "=":
|
|
280
|
+
return p(g, u);
|
|
281
|
+
case ">":
|
|
282
|
+
return y(g, u) < 0;
|
|
283
|
+
case ">=":
|
|
284
|
+
return p(g, u) || y(g, u) < 0;
|
|
285
|
+
case "<":
|
|
286
|
+
return y(g, u) > 0;
|
|
287
|
+
case "<=":
|
|
288
|
+
return p(g, u) || y(g, u) > 0;
|
|
289
|
+
case void 0:
|
|
290
|
+
return !0;
|
|
291
|
+
default:
|
|
292
|
+
return !1;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return be.compare = _, be;
|
|
296
|
+
}
|
|
297
|
+
var Be;
|
|
298
|
+
function Et() {
|
|
299
|
+
if (Be) return Ee;
|
|
300
|
+
Be = 1;
|
|
301
|
+
const a = St(), l = kt(), y = Tt();
|
|
302
|
+
function p(u) {
|
|
303
|
+
return a.pipe(l.parseCarets, l.parseTildes, l.parseXRanges, l.parseStar)(u);
|
|
304
|
+
}
|
|
305
|
+
function _(u) {
|
|
306
|
+
return a.pipe(l.parseHyphen, l.parseComparatorTrim, l.parseTildeTrim, l.parseCaretTrim)(u.trim()).split(/\s+/).join(" ");
|
|
307
|
+
}
|
|
308
|
+
function g(u, m) {
|
|
309
|
+
if (!u) return !1;
|
|
310
|
+
const T = a.extractComparator(u);
|
|
311
|
+
if (!T) return !1;
|
|
312
|
+
const [, f, , S, e, E, k] = T, o = {
|
|
313
|
+
operator: f,
|
|
314
|
+
version: a.combineVersion(S, e, E, k),
|
|
315
|
+
major: S,
|
|
316
|
+
minor: e,
|
|
317
|
+
patch: E,
|
|
318
|
+
preRelease: k?.split(".")
|
|
319
|
+
}, r = m.split("||");
|
|
320
|
+
for (const i of r) {
|
|
321
|
+
const n = i.trim();
|
|
322
|
+
if (!n || n === "*" || n === "x") return !0;
|
|
323
|
+
try {
|
|
324
|
+
const d = _(n);
|
|
325
|
+
if (!d.trim()) return !0;
|
|
326
|
+
const v = d.split(" ").map((h) => p(h)).join(" ");
|
|
327
|
+
if (!v.trim()) return !0;
|
|
328
|
+
const A = v.split(/\s+/).map((h) => l.parseGTE0(h)).filter(Boolean);
|
|
329
|
+
if (A.length === 0) continue;
|
|
330
|
+
let c = !0;
|
|
331
|
+
for (const h of A) {
|
|
332
|
+
const t = a.extractComparator(h);
|
|
333
|
+
if (!t) {
|
|
334
|
+
c = !1;
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
const [, I, , s, b, R, q] = t;
|
|
338
|
+
if (!y.compare({
|
|
339
|
+
operator: I,
|
|
340
|
+
version: a.combineVersion(s, b, R, q),
|
|
341
|
+
major: s,
|
|
342
|
+
minor: b,
|
|
343
|
+
patch: R,
|
|
344
|
+
preRelease: q?.split(".")
|
|
345
|
+
}, o)) {
|
|
346
|
+
c = !1;
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
if (c) return !0;
|
|
351
|
+
} catch (d) {
|
|
352
|
+
console.error(`[semver] Error processing range part "${n}":`, d);
|
|
353
|
+
continue;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return !1;
|
|
357
|
+
}
|
|
358
|
+
return Ee.satisfy = g, Ee;
|
|
359
|
+
}
|
|
360
|
+
var j = {}, de = {}, Ve;
|
|
361
|
+
function se() {
|
|
362
|
+
if (Ve) return de;
|
|
363
|
+
Ve = 1;
|
|
364
|
+
const a = "default", l = "global";
|
|
365
|
+
return de.DEFAULT_REMOTE_TYPE = l, de.DEFAULT_SCOPE = a, de;
|
|
366
|
+
}
|
|
367
|
+
var je;
|
|
368
|
+
function te() {
|
|
369
|
+
if (je) return j;
|
|
370
|
+
je = 1;
|
|
371
|
+
const a = L(), l = B(), y = K(), p = se(), _ = Et();
|
|
372
|
+
let g = /* @__PURE__ */ D();
|
|
373
|
+
function u(t, I, s, b) {
|
|
374
|
+
let R;
|
|
375
|
+
if ("get" in t ? R = t.get : "lib" in t ? R = () => Promise.resolve(t.lib) : R = () => Promise.resolve(() => {
|
|
376
|
+
throw new Error(`Can not get shared '${s}'!`);
|
|
377
|
+
}), t.shareConfig?.eager && t.treeShaking?.mode) throw new Error('Can not set "eager:true" and "treeShaking" at the same time!');
|
|
378
|
+
return {
|
|
379
|
+
deps: [],
|
|
380
|
+
useIn: [],
|
|
381
|
+
from: I,
|
|
382
|
+
loading: null,
|
|
383
|
+
...t,
|
|
384
|
+
shareConfig: {
|
|
385
|
+
requiredVersion: `^${t.version}`,
|
|
386
|
+
singleton: !1,
|
|
387
|
+
eager: !1,
|
|
388
|
+
strictVersion: !1,
|
|
389
|
+
...t.shareConfig
|
|
390
|
+
},
|
|
391
|
+
get: R,
|
|
392
|
+
loaded: t?.loaded || "lib" in t ? !0 : void 0,
|
|
393
|
+
version: t.version ?? "0",
|
|
394
|
+
scope: Array.isArray(t.scope) ? t.scope : [t.scope ?? "default"],
|
|
395
|
+
strategy: (t.strategy ?? b) || "version-first",
|
|
396
|
+
treeShaking: t.treeShaking ? {
|
|
397
|
+
...t.treeShaking,
|
|
398
|
+
mode: t.treeShaking.mode ?? "server-calc",
|
|
399
|
+
status: t.treeShaking.status ?? g.TreeShakingStatus.UNKNOWN,
|
|
400
|
+
useIn: []
|
|
401
|
+
} : void 0
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
function m(t, I) {
|
|
405
|
+
const s = I.shared || {}, b = I.name, R = Object.keys(s).reduce(($, H) => {
|
|
406
|
+
const P = l.arrayOptions(s[H]);
|
|
407
|
+
return $[H] = $[H] || [], P.forEach((O) => {
|
|
408
|
+
$[H].push(u(O, b, H, I.shareStrategy));
|
|
409
|
+
}), $;
|
|
410
|
+
}, {}), q = { ...t.shared };
|
|
411
|
+
return Object.keys(R).forEach(($) => {
|
|
412
|
+
q[$] ? R[$].forEach((H) => {
|
|
413
|
+
q[$].find((P) => P.version === H.version) || q[$].push(H);
|
|
414
|
+
}) : q[$] = R[$];
|
|
415
|
+
}), {
|
|
416
|
+
allShareInfos: q,
|
|
417
|
+
newShareInfos: R
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
function T(t, I) {
|
|
421
|
+
if (!t) return !1;
|
|
422
|
+
const { status: s, mode: b } = t;
|
|
423
|
+
return s === g.TreeShakingStatus.NO_USE ? !1 : s === g.TreeShakingStatus.CALCULATED ? !0 : b === "runtime-infer" ? I ? k(t, I) : !0 : !1;
|
|
424
|
+
}
|
|
425
|
+
function f(t, I) {
|
|
426
|
+
const s = (b) => {
|
|
427
|
+
if (!Number.isNaN(Number(b))) {
|
|
428
|
+
const R = b.split(".");
|
|
429
|
+
let q = b;
|
|
430
|
+
for (let $ = 0; $ < 3 - R.length; $++) q += ".0";
|
|
431
|
+
return q;
|
|
432
|
+
}
|
|
433
|
+
return b;
|
|
434
|
+
};
|
|
435
|
+
return !!_.satisfy(s(t), `<=${s(I)}`);
|
|
436
|
+
}
|
|
437
|
+
const S = (t, I) => {
|
|
438
|
+
const s = I || function(b, R) {
|
|
439
|
+
return f(b, R);
|
|
440
|
+
};
|
|
441
|
+
return Object.keys(t).reduce((b, R) => !b || s(b, R) || b === "0" ? R : b, 0);
|
|
442
|
+
}, e = (t) => !!t.loaded || typeof t.lib == "function", E = (t) => !!t.loading, k = (t, I) => {
|
|
443
|
+
if (!t || !I) return !1;
|
|
444
|
+
const { usedExports: s } = t;
|
|
445
|
+
return s ? !!I.every((b) => s.includes(b)) : !1;
|
|
446
|
+
};
|
|
447
|
+
function o(t, I, s, b) {
|
|
448
|
+
const R = t[I][s];
|
|
449
|
+
let q = "", $ = T(b);
|
|
450
|
+
const H = function(P, O) {
|
|
451
|
+
return $ ? R[P].treeShaking ? R[O].treeShaking ? !e(R[P].treeShaking) && f(P, O) : !1 : !0 : !e(R[P]) && f(P, O);
|
|
452
|
+
};
|
|
453
|
+
if ($) {
|
|
454
|
+
if (q = S(t[I][s], H), q) return {
|
|
455
|
+
version: q,
|
|
456
|
+
useTreesShaking: $
|
|
457
|
+
};
|
|
458
|
+
$ = !1;
|
|
459
|
+
}
|
|
460
|
+
return {
|
|
461
|
+
version: S(t[I][s], H),
|
|
462
|
+
useTreesShaking: $
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
const r = (t) => e(t) || E(t);
|
|
466
|
+
function i(t, I, s, b) {
|
|
467
|
+
const R = t[I][s];
|
|
468
|
+
let q = "", $ = T(b);
|
|
469
|
+
const H = function(P, O) {
|
|
470
|
+
if ($) {
|
|
471
|
+
if (!R[P].treeShaking) return !0;
|
|
472
|
+
if (!R[O].treeShaking) return !1;
|
|
473
|
+
if (r(R[O].treeShaking)) return r(R[P].treeShaking) ? !!f(P, O) : !0;
|
|
474
|
+
if (r(R[P].treeShaking)) return !1;
|
|
475
|
+
}
|
|
476
|
+
return r(R[O]) ? r(R[P]) ? !!f(P, O) : !0 : r(R[P]) ? !1 : f(P, O);
|
|
477
|
+
};
|
|
478
|
+
if ($) {
|
|
479
|
+
if (q = S(t[I][s], H), q) return {
|
|
480
|
+
version: q,
|
|
481
|
+
useTreesShaking: $
|
|
482
|
+
};
|
|
483
|
+
$ = !1;
|
|
484
|
+
}
|
|
485
|
+
return {
|
|
486
|
+
version: S(t[I][s], H),
|
|
487
|
+
useTreesShaking: $
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
function n(t) {
|
|
491
|
+
return t === "loaded-first" ? i : o;
|
|
492
|
+
}
|
|
493
|
+
function d(t, I, s, b) {
|
|
494
|
+
if (!t) return;
|
|
495
|
+
const { shareConfig: R, scope: q = p.DEFAULT_SCOPE, strategy: $, treeShaking: H } = s, P = Array.isArray(q) ? q : [q];
|
|
496
|
+
for (const O of P) if (R && t[O] && t[O][I]) {
|
|
497
|
+
const { requiredVersion: N } = R, { version: w, useTreesShaking: M } = n($)(t, O, I, H), x = () => {
|
|
498
|
+
const X = t[O][I][w];
|
|
499
|
+
if (R.singleton) {
|
|
500
|
+
if (typeof N == "string" && !_.satisfy(w, N)) {
|
|
501
|
+
const C = `Version ${w} from ${w && X.from} of shared singleton module ${I} does not satisfy the requirement of ${s.from} which needs ${N})`;
|
|
502
|
+
R.strictVersion ? a.error(C) : a.warn(C);
|
|
503
|
+
}
|
|
504
|
+
return {
|
|
505
|
+
shared: X,
|
|
506
|
+
useTreesShaking: M
|
|
507
|
+
};
|
|
508
|
+
} else {
|
|
509
|
+
if (N === !1 || N === "*") return {
|
|
510
|
+
shared: X,
|
|
511
|
+
useTreesShaking: M
|
|
512
|
+
};
|
|
513
|
+
if (_.satisfy(w, N)) return {
|
|
514
|
+
shared: X,
|
|
515
|
+
useTreesShaking: M
|
|
516
|
+
};
|
|
517
|
+
const C = T(H);
|
|
518
|
+
if (C) {
|
|
519
|
+
for (const [oe, fe] of Object.entries(t[O][I]))
|
|
520
|
+
if (T(fe.treeShaking, H?.usedExports) && _.satisfy(oe, N))
|
|
521
|
+
return {
|
|
522
|
+
shared: fe,
|
|
523
|
+
useTreesShaking: C
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
for (const [oe, fe] of Object.entries(t[O][I])) if (_.satisfy(oe, N)) return {
|
|
527
|
+
shared: fe,
|
|
528
|
+
useTreesShaking: !1
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
}, Y = {
|
|
532
|
+
shareScopeMap: t,
|
|
533
|
+
scope: O,
|
|
534
|
+
pkgName: I,
|
|
535
|
+
version: w,
|
|
536
|
+
GlobalFederation: y.Global.__FEDERATION__,
|
|
537
|
+
shareInfo: s,
|
|
538
|
+
resolver: x
|
|
539
|
+
};
|
|
540
|
+
return (b.emit(Y) || Y).resolver();
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
function v() {
|
|
544
|
+
return y.Global.__FEDERATION__.__SHARE__;
|
|
545
|
+
}
|
|
546
|
+
function A(t) {
|
|
547
|
+
const { pkgName: I, extraOptions: s, shareInfos: b } = t, R = (P) => {
|
|
548
|
+
if (!P) return;
|
|
549
|
+
const O = {};
|
|
550
|
+
return P.forEach((w) => {
|
|
551
|
+
O[w.version] = w;
|
|
552
|
+
}), O[S(O, function(w, M) {
|
|
553
|
+
return !e(O[w]) && f(w, M);
|
|
554
|
+
})];
|
|
555
|
+
}, q = s?.resolver ?? R, $ = (P) => P !== null && typeof P == "object" && !Array.isArray(P), H = (...P) => {
|
|
556
|
+
const O = {};
|
|
557
|
+
for (const N of P)
|
|
558
|
+
if (N)
|
|
559
|
+
for (const [w, M] of Object.entries(N)) {
|
|
560
|
+
const x = O[w];
|
|
561
|
+
$(x) && $(M) ? O[w] = H(x, M) : M !== void 0 && (O[w] = M);
|
|
562
|
+
}
|
|
563
|
+
return O;
|
|
564
|
+
};
|
|
565
|
+
return H(q(b[I]), s?.customShareInfo);
|
|
566
|
+
}
|
|
567
|
+
const c = (t, I) => {
|
|
568
|
+
t.useIn || (t.useIn = []), l.addUniqueItem(t.useIn, I);
|
|
569
|
+
};
|
|
570
|
+
function h(t, I) {
|
|
571
|
+
return I && t.treeShaking ? t.treeShaking : t;
|
|
572
|
+
}
|
|
573
|
+
return j.addUseIn = c, j.directShare = h, j.formatShareConfigs = m, j.getGlobalShareScope = v, j.getRegisteredShare = d, j.getTargetSharedOptions = A, j.shouldUseTreeShaking = T, j;
|
|
574
|
+
}
|
|
575
|
+
var he = {}, Xe;
|
|
576
|
+
function ie() {
|
|
577
|
+
if (Xe) return he;
|
|
578
|
+
Xe = 1;
|
|
579
|
+
function a(y, p) {
|
|
580
|
+
for (const _ of y) {
|
|
581
|
+
const g = p.startsWith(_.name);
|
|
582
|
+
let u = p.replace(_.name, "");
|
|
583
|
+
if (g) {
|
|
584
|
+
if (u.startsWith("/")) {
|
|
585
|
+
const f = _.name;
|
|
586
|
+
return u = `.${u}`, {
|
|
587
|
+
pkgNameOrAlias: f,
|
|
588
|
+
expose: u,
|
|
589
|
+
remote: _
|
|
590
|
+
};
|
|
591
|
+
} else if (u === "") return {
|
|
592
|
+
pkgNameOrAlias: _.name,
|
|
593
|
+
expose: ".",
|
|
594
|
+
remote: _
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
const m = _.alias && p.startsWith(_.alias);
|
|
598
|
+
let T = _.alias && p.replace(_.alias, "");
|
|
599
|
+
if (_.alias && m) {
|
|
600
|
+
if (T && T.startsWith("/")) {
|
|
601
|
+
const f = _.alias;
|
|
602
|
+
return T = `.${T}`, {
|
|
603
|
+
pkgNameOrAlias: f,
|
|
604
|
+
expose: T,
|
|
605
|
+
remote: _
|
|
606
|
+
};
|
|
607
|
+
} else if (T === "") return {
|
|
608
|
+
pkgNameOrAlias: _.alias,
|
|
609
|
+
expose: ".",
|
|
610
|
+
remote: _
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
function l(y, p) {
|
|
616
|
+
for (const _ of y)
|
|
617
|
+
if (p === _.name || _.alias && p === _.alias) return _;
|
|
618
|
+
}
|
|
619
|
+
return he.matchRemote = l, he.matchRemoteWithNameAndExpose = a, he;
|
|
620
|
+
}
|
|
621
|
+
var ne = {}, Ke;
|
|
622
|
+
function J() {
|
|
623
|
+
if (Ke) return ne;
|
|
624
|
+
Ke = 1;
|
|
625
|
+
const a = L(), l = K(), y = se();
|
|
626
|
+
let p = /* @__PURE__ */ D(), _ = /* @__PURE__ */ ee();
|
|
627
|
+
const g = ".then(callbacks[0]).catch(callbacks[1])";
|
|
628
|
+
async function u({ entry: r, remoteEntryExports: i }) {
|
|
629
|
+
return new Promise((n, d) => {
|
|
630
|
+
try {
|
|
631
|
+
i ? n(i) : typeof FEDERATION_ALLOW_NEW_FUNCTION < "u" ? new Function("callbacks", `import("${r}")${g}`)([n, d]) : import(
|
|
632
|
+
/* webpackIgnore: true */
|
|
633
|
+
/* @vite-ignore */
|
|
634
|
+
r
|
|
635
|
+
).then(n).catch(d);
|
|
636
|
+
} catch (v) {
|
|
637
|
+
d(v);
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
async function m({ entry: r, remoteEntryExports: i }) {
|
|
642
|
+
return new Promise((n, d) => {
|
|
643
|
+
try {
|
|
644
|
+
i ? n(i) : typeof __system_context__ > "u" ? System.import(r).then(n).catch(d) : new Function("callbacks", `System.import("${r}")${g}`)([n, d]);
|
|
645
|
+
} catch (v) {
|
|
646
|
+
d(v);
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
function T(r, i, n) {
|
|
651
|
+
const { remoteEntryKey: d, entryExports: v } = l.getRemoteEntryExports(r, i);
|
|
652
|
+
return a.assert(v, (0, _.getShortErrorMsg)(_.RUNTIME_001, _.runtimeDescMap, {
|
|
653
|
+
remoteName: r,
|
|
654
|
+
remoteEntryUrl: n,
|
|
655
|
+
remoteEntryKey: d
|
|
656
|
+
})), v;
|
|
657
|
+
}
|
|
658
|
+
async function f({ name: r, globalName: i, entry: n, loaderHook: d, getEntryUrl: v }) {
|
|
659
|
+
const { entryExports: A } = l.getRemoteEntryExports(r, i);
|
|
660
|
+
return A || (0, p.loadScript)(v ? v(n) : n, {
|
|
661
|
+
attrs: {},
|
|
662
|
+
createScriptHook: (c, h) => {
|
|
663
|
+
const t = d.lifecycle.createScript.emit({
|
|
664
|
+
url: c,
|
|
665
|
+
attrs: h
|
|
666
|
+
});
|
|
667
|
+
if (t && (t instanceof HTMLScriptElement || "script" in t || "timeout" in t))
|
|
668
|
+
return t;
|
|
669
|
+
}
|
|
670
|
+
}).then(() => T(r, i, n)).catch((c) => {
|
|
671
|
+
throw a.assert(void 0, (0, _.getShortErrorMsg)(_.RUNTIME_008, _.runtimeDescMap, {
|
|
672
|
+
remoteName: r,
|
|
673
|
+
resourceUrl: n
|
|
674
|
+
})), c;
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
async function S({ remoteInfo: r, remoteEntryExports: i, loaderHook: n, getEntryUrl: d }) {
|
|
678
|
+
const { entry: v, entryGlobalName: A, name: c, type: h } = r;
|
|
679
|
+
switch (h) {
|
|
680
|
+
case "esm":
|
|
681
|
+
case "module":
|
|
682
|
+
return u({
|
|
683
|
+
entry: v,
|
|
684
|
+
remoteEntryExports: i
|
|
685
|
+
});
|
|
686
|
+
case "system":
|
|
687
|
+
return m({
|
|
688
|
+
entry: v,
|
|
689
|
+
remoteEntryExports: i
|
|
690
|
+
});
|
|
691
|
+
default:
|
|
692
|
+
return f({
|
|
693
|
+
entry: v,
|
|
694
|
+
globalName: A,
|
|
695
|
+
name: c,
|
|
696
|
+
loaderHook: n,
|
|
697
|
+
getEntryUrl: d
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
async function e({ remoteInfo: r, loaderHook: i }) {
|
|
702
|
+
const { entry: n, entryGlobalName: d, name: v, type: A } = r, { entryExports: c } = l.getRemoteEntryExports(v, d);
|
|
703
|
+
return c || (0, p.loadScriptNode)(n, {
|
|
704
|
+
attrs: {
|
|
705
|
+
name: v,
|
|
706
|
+
globalName: d,
|
|
707
|
+
type: A
|
|
708
|
+
},
|
|
709
|
+
loaderHook: { createScriptHook: (h, t = {}) => {
|
|
710
|
+
const I = i.lifecycle.createScript.emit({
|
|
711
|
+
url: h,
|
|
712
|
+
attrs: t
|
|
713
|
+
});
|
|
714
|
+
if (I && "url" in I)
|
|
715
|
+
return I;
|
|
716
|
+
} }
|
|
717
|
+
}).then(() => T(v, d, n)).catch((h) => {
|
|
718
|
+
throw h;
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
function E(r) {
|
|
722
|
+
const { entry: i, name: n } = r;
|
|
723
|
+
return (0, p.composeKeyWithSeparator)(n, i);
|
|
724
|
+
}
|
|
725
|
+
async function k(r) {
|
|
726
|
+
const { origin: i, remoteEntryExports: n, remoteInfo: d, getEntryUrl: v, _inErrorHandling: A = !1 } = r, c = E(d);
|
|
727
|
+
if (n) return n;
|
|
728
|
+
if (!l.globalLoading[c]) {
|
|
729
|
+
const h = i.remoteHandler.hooks.lifecycle.loadEntry, t = i.loaderHook;
|
|
730
|
+
l.globalLoading[c] = h.emit({
|
|
731
|
+
loaderHook: t,
|
|
732
|
+
remoteInfo: d,
|
|
733
|
+
remoteEntryExports: n
|
|
734
|
+
}).then((I) => I || ((typeof ENV_TARGET < "u" ? ENV_TARGET === "web" : (0, p.isBrowserEnv)()) ? S({
|
|
735
|
+
remoteInfo: d,
|
|
736
|
+
remoteEntryExports: n,
|
|
737
|
+
loaderHook: t,
|
|
738
|
+
getEntryUrl: v
|
|
739
|
+
}) : e({
|
|
740
|
+
remoteInfo: d,
|
|
741
|
+
loaderHook: t
|
|
742
|
+
}))).catch(async (I) => {
|
|
743
|
+
const s = E(d);
|
|
744
|
+
if (I instanceof Error && I.message.includes(_.RUNTIME_008) && !A) {
|
|
745
|
+
const b = (q) => k({
|
|
746
|
+
...q,
|
|
747
|
+
_inErrorHandling: !0
|
|
748
|
+
}), R = await i.loaderHook.lifecycle.loadEntryError.emit({
|
|
749
|
+
getRemoteEntry: b,
|
|
750
|
+
origin: i,
|
|
751
|
+
remoteInfo: d,
|
|
752
|
+
remoteEntryExports: n,
|
|
753
|
+
globalLoading: l.globalLoading,
|
|
754
|
+
uniqueKey: s
|
|
755
|
+
});
|
|
756
|
+
if (R) return R;
|
|
757
|
+
}
|
|
758
|
+
throw I;
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
return l.globalLoading[c];
|
|
762
|
+
}
|
|
763
|
+
function o(r) {
|
|
764
|
+
return {
|
|
765
|
+
...r,
|
|
766
|
+
entry: "entry" in r ? r.entry : "",
|
|
767
|
+
type: r.type || y.DEFAULT_REMOTE_TYPE,
|
|
768
|
+
entryGlobalName: r.entryGlobalName || r.name,
|
|
769
|
+
shareScope: r.shareScope || y.DEFAULT_SCOPE
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
return ne.getRemoteEntry = k, ne.getRemoteEntryUniqueKey = E, ne.getRemoteInfo = o, ne;
|
|
773
|
+
}
|
|
774
|
+
var ze = {}, Re = {}, Je;
|
|
775
|
+
function bt() {
|
|
776
|
+
if (Je) return Re;
|
|
777
|
+
Je = 1;
|
|
778
|
+
function a() {
|
|
779
|
+
return typeof FEDERATION_BUILD_IDENTIFIER < "u" ? FEDERATION_BUILD_IDENTIFIER : "";
|
|
780
|
+
}
|
|
781
|
+
return Re.getBuilderId = a, Re;
|
|
782
|
+
}
|
|
783
|
+
var Ie = {}, Ye;
|
|
784
|
+
function Rt() {
|
|
785
|
+
if (Ye) return Ie;
|
|
786
|
+
Ye = 1;
|
|
787
|
+
const a = K();
|
|
788
|
+
function l(y, p) {
|
|
789
|
+
const _ = a.getGlobalHostPlugins(), g = [
|
|
790
|
+
p.hooks,
|
|
791
|
+
p.remoteHandler.hooks,
|
|
792
|
+
p.sharedHandler.hooks,
|
|
793
|
+
p.snapshotHandler.hooks,
|
|
794
|
+
p.loaderHook,
|
|
795
|
+
p.bridgeHook
|
|
796
|
+
];
|
|
797
|
+
return _.length > 0 && _.forEach((u) => {
|
|
798
|
+
y?.find((m) => m.name !== u.name) && y.push(u);
|
|
799
|
+
}), y && y.length > 0 && y.forEach((u) => {
|
|
800
|
+
g.forEach((m) => {
|
|
801
|
+
m.applyPlugin(u, p);
|
|
802
|
+
});
|
|
803
|
+
}), y;
|
|
804
|
+
}
|
|
805
|
+
return Ie.registerPlugins = l, Ie;
|
|
806
|
+
}
|
|
807
|
+
var Ze;
|
|
808
|
+
function V() {
|
|
809
|
+
return Ze || (Ze = 1, L(), B(), bt(), ie(), Rt(), J()), ze;
|
|
810
|
+
}
|
|
811
|
+
var ve = {}, Q = {}, Qe;
|
|
812
|
+
function ge() {
|
|
813
|
+
if (Qe) return Q;
|
|
814
|
+
Qe = 1;
|
|
815
|
+
const a = L(), l = ie(), y = J();
|
|
816
|
+
let p = /* @__PURE__ */ D();
|
|
817
|
+
function _(T) {
|
|
818
|
+
return {
|
|
819
|
+
resourceCategory: "sync",
|
|
820
|
+
share: !0,
|
|
821
|
+
depsRemote: !0,
|
|
822
|
+
prefetchInterface: !1,
|
|
823
|
+
...T
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
function g(T, f) {
|
|
827
|
+
return f.map((S) => {
|
|
828
|
+
const e = l.matchRemote(T, S.nameOrAlias);
|
|
829
|
+
return a.assert(e, `Unable to preload ${S.nameOrAlias} as it is not included in ${!e && (0, p.safeToString)({
|
|
830
|
+
remoteInfo: e,
|
|
831
|
+
remotes: T
|
|
832
|
+
})}`), {
|
|
833
|
+
remote: e,
|
|
834
|
+
preloadConfig: _(S)
|
|
835
|
+
};
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
function u(T) {
|
|
839
|
+
return T ? T.map((f) => f === "." ? f : f.startsWith("./") ? f.replace("./", "") : f) : [];
|
|
840
|
+
}
|
|
841
|
+
function m(T, f, S, e = !0) {
|
|
842
|
+
const { cssAssets: E, jsAssetsWithoutEntry: k, entryAssets: o } = S;
|
|
843
|
+
if (f.options.inBrowser) {
|
|
844
|
+
if (o.forEach((r) => {
|
|
845
|
+
const { moduleInfo: i } = r, n = f.moduleCache.get(T.name);
|
|
846
|
+
n ? y.getRemoteEntry({
|
|
847
|
+
origin: f,
|
|
848
|
+
remoteInfo: i,
|
|
849
|
+
remoteEntryExports: n.remoteEntryExports
|
|
850
|
+
}) : y.getRemoteEntry({
|
|
851
|
+
origin: f,
|
|
852
|
+
remoteInfo: i,
|
|
853
|
+
remoteEntryExports: void 0
|
|
854
|
+
});
|
|
855
|
+
}), e) {
|
|
856
|
+
const r = {
|
|
857
|
+
rel: "preload",
|
|
858
|
+
as: "style"
|
|
859
|
+
};
|
|
860
|
+
E.forEach((i) => {
|
|
861
|
+
const { link: n, needAttach: d } = (0, p.createLink)({
|
|
862
|
+
url: i,
|
|
863
|
+
cb: () => {
|
|
864
|
+
},
|
|
865
|
+
attrs: r,
|
|
866
|
+
createLinkHook: (v, A) => {
|
|
867
|
+
const c = f.loaderHook.lifecycle.createLink.emit({
|
|
868
|
+
url: v,
|
|
869
|
+
attrs: A
|
|
870
|
+
});
|
|
871
|
+
if (c instanceof HTMLLinkElement) return c;
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
d && document.head.appendChild(n);
|
|
875
|
+
});
|
|
876
|
+
} else {
|
|
877
|
+
const r = {
|
|
878
|
+
rel: "stylesheet",
|
|
879
|
+
type: "text/css"
|
|
880
|
+
};
|
|
881
|
+
E.forEach((i) => {
|
|
882
|
+
const { link: n, needAttach: d } = (0, p.createLink)({
|
|
883
|
+
url: i,
|
|
884
|
+
cb: () => {
|
|
885
|
+
},
|
|
886
|
+
attrs: r,
|
|
887
|
+
createLinkHook: (v, A) => {
|
|
888
|
+
const c = f.loaderHook.lifecycle.createLink.emit({
|
|
889
|
+
url: v,
|
|
890
|
+
attrs: A
|
|
891
|
+
});
|
|
892
|
+
if (c instanceof HTMLLinkElement) return c;
|
|
893
|
+
},
|
|
894
|
+
needDeleteLink: !1
|
|
895
|
+
});
|
|
896
|
+
d && document.head.appendChild(n);
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
if (e) {
|
|
900
|
+
const r = {
|
|
901
|
+
rel: "preload",
|
|
902
|
+
as: "script"
|
|
903
|
+
};
|
|
904
|
+
k.forEach((i) => {
|
|
905
|
+
const { link: n, needAttach: d } = (0, p.createLink)({
|
|
906
|
+
url: i,
|
|
907
|
+
cb: () => {
|
|
908
|
+
},
|
|
909
|
+
attrs: r,
|
|
910
|
+
createLinkHook: (v, A) => {
|
|
911
|
+
const c = f.loaderHook.lifecycle.createLink.emit({
|
|
912
|
+
url: v,
|
|
913
|
+
attrs: A
|
|
914
|
+
});
|
|
915
|
+
if (c instanceof HTMLLinkElement) return c;
|
|
916
|
+
}
|
|
917
|
+
});
|
|
918
|
+
d && document.head.appendChild(n);
|
|
919
|
+
});
|
|
920
|
+
} else {
|
|
921
|
+
const r = {
|
|
922
|
+
fetchpriority: "high",
|
|
923
|
+
type: T?.type === "module" ? "module" : "text/javascript"
|
|
924
|
+
};
|
|
925
|
+
k.forEach((i) => {
|
|
926
|
+
const { script: n, needAttach: d } = (0, p.createScript)({
|
|
927
|
+
url: i,
|
|
928
|
+
cb: () => {
|
|
929
|
+
},
|
|
930
|
+
attrs: r,
|
|
931
|
+
createScriptHook: (v, A) => {
|
|
932
|
+
const c = f.loaderHook.lifecycle.createScript.emit({
|
|
933
|
+
url: v,
|
|
934
|
+
attrs: A
|
|
935
|
+
});
|
|
936
|
+
if (c instanceof HTMLScriptElement) return c;
|
|
937
|
+
},
|
|
938
|
+
needDeleteScript: !0
|
|
939
|
+
});
|
|
940
|
+
d && document.head.appendChild(n);
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
return Q.defaultPreloadArgs = _, Q.formatPreloadArgs = g, Q.normalizePreloadExposes = u, Q.preloadAssets = m, Q;
|
|
946
|
+
}
|
|
947
|
+
var et;
|
|
948
|
+
function At() {
|
|
949
|
+
if (et) return ve;
|
|
950
|
+
et = 1;
|
|
951
|
+
const a = K(), l = te(), y = ie(), p = J();
|
|
952
|
+
V();
|
|
953
|
+
const _ = ge(), g = {
|
|
954
|
+
getRegisteredShare: l.getRegisteredShare,
|
|
955
|
+
getGlobalShareScope: l.getGlobalShareScope
|
|
956
|
+
};
|
|
957
|
+
var m = {
|
|
958
|
+
global: {
|
|
959
|
+
Global: a.Global,
|
|
960
|
+
nativeGlobal: a.nativeGlobal,
|
|
961
|
+
resetFederationGlobalInfo: a.resetFederationGlobalInfo,
|
|
962
|
+
setGlobalFederationInstance: a.setGlobalFederationInstance,
|
|
963
|
+
getGlobalFederationConstructor: a.getGlobalFederationConstructor,
|
|
964
|
+
setGlobalFederationConstructor: a.setGlobalFederationConstructor,
|
|
965
|
+
getInfoWithoutType: a.getInfoWithoutType,
|
|
966
|
+
getGlobalSnapshot: a.getGlobalSnapshot,
|
|
967
|
+
getTargetSnapshotInfoByModuleInfo: a.getTargetSnapshotInfoByModuleInfo,
|
|
968
|
+
getGlobalSnapshotInfoByModuleInfo: a.getGlobalSnapshotInfoByModuleInfo,
|
|
969
|
+
setGlobalSnapshotInfoByModuleInfo: a.setGlobalSnapshotInfoByModuleInfo,
|
|
970
|
+
addGlobalSnapshot: a.addGlobalSnapshot,
|
|
971
|
+
getRemoteEntryExports: a.getRemoteEntryExports,
|
|
972
|
+
registerGlobalPlugins: a.registerGlobalPlugins,
|
|
973
|
+
getGlobalHostPlugins: a.getGlobalHostPlugins,
|
|
974
|
+
getPreloaded: a.getPreloaded,
|
|
975
|
+
setPreloaded: a.setPreloaded
|
|
976
|
+
},
|
|
977
|
+
share: g,
|
|
978
|
+
utils: {
|
|
979
|
+
matchRemoteWithNameAndExpose: y.matchRemoteWithNameAndExpose,
|
|
980
|
+
preloadAssets: _.preloadAssets,
|
|
981
|
+
getRemoteInfo: p.getRemoteInfo
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
return ve.default = m, ve;
|
|
985
|
+
}
|
|
986
|
+
var ke = {}, tt;
|
|
987
|
+
function Ge() {
|
|
988
|
+
if (tt) return ke;
|
|
989
|
+
tt = 1;
|
|
990
|
+
const a = L(), l = B(), y = J();
|
|
991
|
+
V();
|
|
992
|
+
let p = /* @__PURE__ */ D(), _ = /* @__PURE__ */ ee();
|
|
993
|
+
function g(m, T, f) {
|
|
994
|
+
const S = T, e = Array.isArray(m.shareScope) ? m.shareScope : [m.shareScope];
|
|
995
|
+
e.length || e.push("default"), e.forEach((k) => {
|
|
996
|
+
S[k] || (S[k] = {});
|
|
997
|
+
});
|
|
998
|
+
const E = {
|
|
999
|
+
version: m.version || "",
|
|
1000
|
+
shareScopeKeys: Array.isArray(m.shareScope) ? e : m.shareScope || "default"
|
|
1001
|
+
};
|
|
1002
|
+
return Object.defineProperty(E, "shareScopeMap", {
|
|
1003
|
+
value: S,
|
|
1004
|
+
enumerable: !1
|
|
1005
|
+
}), {
|
|
1006
|
+
remoteEntryInitOptions: E,
|
|
1007
|
+
shareScope: S[e[0]],
|
|
1008
|
+
initScope: f ?? []
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
var u = class {
|
|
1012
|
+
constructor({ remoteInfo: m, host: T }) {
|
|
1013
|
+
this.inited = !1, this.initing = !1, this.lib = void 0, this.remoteInfo = m, this.host = T;
|
|
1014
|
+
}
|
|
1015
|
+
async getEntry() {
|
|
1016
|
+
if (this.remoteEntryExports) return this.remoteEntryExports;
|
|
1017
|
+
const m = await y.getRemoteEntry({
|
|
1018
|
+
origin: this.host,
|
|
1019
|
+
remoteInfo: this.remoteInfo,
|
|
1020
|
+
remoteEntryExports: this.remoteEntryExports
|
|
1021
|
+
});
|
|
1022
|
+
return a.assert(m, `remoteEntryExports is undefined
|
|
1023
|
+
${(0, p.safeToString)(this.remoteInfo)}`), this.remoteEntryExports = m, this.remoteEntryExports;
|
|
1024
|
+
}
|
|
1025
|
+
async init(m, T, f) {
|
|
1026
|
+
const S = await this.getEntry();
|
|
1027
|
+
if (this.inited) return S;
|
|
1028
|
+
if (this.initPromise)
|
|
1029
|
+
return await this.initPromise, S;
|
|
1030
|
+
this.initing = !0, this.initPromise = (async () => {
|
|
1031
|
+
const { remoteEntryInitOptions: e, shareScope: E, initScope: k } = g(this.remoteInfo, this.host.shareScopeMap, f), o = await this.host.hooks.lifecycle.beforeInitContainer.emit({
|
|
1032
|
+
shareScope: E,
|
|
1033
|
+
remoteEntryInitOptions: e,
|
|
1034
|
+
initScope: k,
|
|
1035
|
+
remoteInfo: this.remoteInfo,
|
|
1036
|
+
origin: this.host
|
|
1037
|
+
});
|
|
1038
|
+
typeof S?.init > "u" && a.error((0, _.getShortErrorMsg)(_.RUNTIME_002, _.runtimeDescMap, {
|
|
1039
|
+
hostName: this.host.name,
|
|
1040
|
+
remoteName: this.remoteInfo.name,
|
|
1041
|
+
remoteEntryUrl: this.remoteInfo.entry,
|
|
1042
|
+
remoteEntryKey: this.remoteInfo.entryGlobalName
|
|
1043
|
+
})), await S.init(o.shareScope, o.initScope, o.remoteEntryInitOptions), await this.host.hooks.lifecycle.initContainer.emit({
|
|
1044
|
+
...o,
|
|
1045
|
+
id: m,
|
|
1046
|
+
remoteSnapshot: T,
|
|
1047
|
+
remoteEntryExports: S
|
|
1048
|
+
}), this.inited = !0;
|
|
1049
|
+
})();
|
|
1050
|
+
try {
|
|
1051
|
+
await this.initPromise;
|
|
1052
|
+
} finally {
|
|
1053
|
+
this.initing = !1, this.initPromise = void 0;
|
|
1054
|
+
}
|
|
1055
|
+
return S;
|
|
1056
|
+
}
|
|
1057
|
+
async get(m, T, f, S) {
|
|
1058
|
+
const { loadFactory: e = !0 } = f || { loadFactory: !0 }, E = await this.init(m, S);
|
|
1059
|
+
this.lib = E;
|
|
1060
|
+
let k;
|
|
1061
|
+
k = await this.host.loaderHook.lifecycle.getModuleFactory.emit({
|
|
1062
|
+
remoteEntryExports: E,
|
|
1063
|
+
expose: T,
|
|
1064
|
+
moduleInfo: this.remoteInfo
|
|
1065
|
+
}), k || (k = await E.get(T)), a.assert(k, `${l.getFMId(this.remoteInfo)} remote don't export ${T}.`);
|
|
1066
|
+
const o = l.processModuleAlias(this.remoteInfo.name, T), r = this.wraperFactory(k, o);
|
|
1067
|
+
return e ? await r() : r;
|
|
1068
|
+
}
|
|
1069
|
+
wraperFactory(m, T) {
|
|
1070
|
+
function f(S, e) {
|
|
1071
|
+
S && typeof S == "object" && Object.isExtensible(S) && !Object.getOwnPropertyDescriptor(S, Symbol.for("mf_module_id")) && Object.defineProperty(S, Symbol.for("mf_module_id"), {
|
|
1072
|
+
value: e,
|
|
1073
|
+
enumerable: !1
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
return m instanceof Promise ? async () => {
|
|
1077
|
+
const S = await m();
|
|
1078
|
+
return f(S, T), S;
|
|
1079
|
+
} : () => {
|
|
1080
|
+
const S = m();
|
|
1081
|
+
return f(S, T), S;
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
};
|
|
1085
|
+
return ke.Module = u, ke;
|
|
1086
|
+
}
|
|
1087
|
+
var Te = {}, Ae = {}, rt;
|
|
1088
|
+
function re() {
|
|
1089
|
+
if (rt) return Ae;
|
|
1090
|
+
rt = 1;
|
|
1091
|
+
var a = class {
|
|
1092
|
+
constructor(l) {
|
|
1093
|
+
this.type = "", this.listeners = /* @__PURE__ */ new Set(), l && (this.type = l);
|
|
1094
|
+
}
|
|
1095
|
+
on(l) {
|
|
1096
|
+
typeof l == "function" && this.listeners.add(l);
|
|
1097
|
+
}
|
|
1098
|
+
once(l) {
|
|
1099
|
+
const y = this;
|
|
1100
|
+
this.on(function p(..._) {
|
|
1101
|
+
return y.remove(p), l.apply(null, _);
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
emit(...l) {
|
|
1105
|
+
let y;
|
|
1106
|
+
return this.listeners.size > 0 && this.listeners.forEach((p) => {
|
|
1107
|
+
y = p(...l);
|
|
1108
|
+
}), y;
|
|
1109
|
+
}
|
|
1110
|
+
remove(l) {
|
|
1111
|
+
this.listeners.delete(l);
|
|
1112
|
+
}
|
|
1113
|
+
removeAll() {
|
|
1114
|
+
this.listeners.clear();
|
|
1115
|
+
}
|
|
1116
|
+
};
|
|
1117
|
+
return Ae.SyncHook = a, Ae;
|
|
1118
|
+
}
|
|
1119
|
+
var qe = {}, ot;
|
|
1120
|
+
function ae() {
|
|
1121
|
+
if (ot) return qe;
|
|
1122
|
+
ot = 1;
|
|
1123
|
+
const a = re();
|
|
1124
|
+
var l = class extends a.SyncHook {
|
|
1125
|
+
emit(...y) {
|
|
1126
|
+
let p;
|
|
1127
|
+
const _ = Array.from(this.listeners);
|
|
1128
|
+
if (_.length > 0) {
|
|
1129
|
+
let g = 0;
|
|
1130
|
+
const u = (m) => m === !1 ? !1 : g < _.length ? Promise.resolve(_[g++].apply(null, y)).then(u) : m;
|
|
1131
|
+
p = u();
|
|
1132
|
+
}
|
|
1133
|
+
return Promise.resolve(p);
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1136
|
+
return qe.AsyncHook = l, qe;
|
|
1137
|
+
}
|
|
1138
|
+
var pe = {}, nt;
|
|
1139
|
+
function le() {
|
|
1140
|
+
if (nt) return pe;
|
|
1141
|
+
nt = 1;
|
|
1142
|
+
const a = L(), l = B(), y = re();
|
|
1143
|
+
function p(g, u) {
|
|
1144
|
+
if (!l.isObject(u)) return !1;
|
|
1145
|
+
if (g !== u) {
|
|
1146
|
+
for (const m in g) if (!(m in u)) return !1;
|
|
1147
|
+
}
|
|
1148
|
+
return !0;
|
|
1149
|
+
}
|
|
1150
|
+
var _ = class extends y.SyncHook {
|
|
1151
|
+
constructor(g) {
|
|
1152
|
+
super(), this.onerror = a.error, this.type = g;
|
|
1153
|
+
}
|
|
1154
|
+
emit(g) {
|
|
1155
|
+
l.isObject(g) || a.error(`The data for the "${this.type}" hook should be an object.`);
|
|
1156
|
+
for (const u of this.listeners) try {
|
|
1157
|
+
const m = u(g);
|
|
1158
|
+
if (p(g, m)) g = m;
|
|
1159
|
+
else {
|
|
1160
|
+
this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);
|
|
1161
|
+
break;
|
|
1162
|
+
}
|
|
1163
|
+
} catch (m) {
|
|
1164
|
+
a.warn(m), this.onerror(m);
|
|
1165
|
+
}
|
|
1166
|
+
return g;
|
|
1167
|
+
}
|
|
1168
|
+
};
|
|
1169
|
+
return pe.SyncWaterfallHook = _, pe.checkReturnData = p, pe;
|
|
1170
|
+
}
|
|
1171
|
+
var $e = {}, st;
|
|
1172
|
+
function ce() {
|
|
1173
|
+
if (st) return $e;
|
|
1174
|
+
st = 1;
|
|
1175
|
+
const a = L(), l = B(), y = re(), p = le();
|
|
1176
|
+
var _ = class extends y.SyncHook {
|
|
1177
|
+
constructor(g) {
|
|
1178
|
+
super(), this.onerror = a.error, this.type = g;
|
|
1179
|
+
}
|
|
1180
|
+
emit(g) {
|
|
1181
|
+
l.isObject(g) || a.error(`The response data for the "${this.type}" hook must be an object.`);
|
|
1182
|
+
const u = Array.from(this.listeners);
|
|
1183
|
+
if (u.length > 0) {
|
|
1184
|
+
let m = 0;
|
|
1185
|
+
const T = (S) => (a.warn(S), this.onerror(S), g), f = (S) => {
|
|
1186
|
+
if (p.checkReturnData(g, S)) {
|
|
1187
|
+
if (g = S, m < u.length) try {
|
|
1188
|
+
return Promise.resolve(u[m++](g)).then(f, T);
|
|
1189
|
+
} catch (e) {
|
|
1190
|
+
return T(e);
|
|
1191
|
+
}
|
|
1192
|
+
} else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);
|
|
1193
|
+
return g;
|
|
1194
|
+
};
|
|
1195
|
+
return Promise.resolve(f(g));
|
|
1196
|
+
}
|
|
1197
|
+
return Promise.resolve(g);
|
|
1198
|
+
}
|
|
1199
|
+
};
|
|
1200
|
+
return $e.AsyncWaterfallHook = _, $e;
|
|
1201
|
+
}
|
|
1202
|
+
var Oe = {}, it;
|
|
1203
|
+
function ue() {
|
|
1204
|
+
if (it) return Oe;
|
|
1205
|
+
it = 1;
|
|
1206
|
+
const a = L(), l = B();
|
|
1207
|
+
V();
|
|
1208
|
+
var y = class {
|
|
1209
|
+
constructor(p) {
|
|
1210
|
+
this.registerPlugins = {}, this.lifecycle = p, this.lifecycleKeys = Object.keys(p);
|
|
1211
|
+
}
|
|
1212
|
+
applyPlugin(p, _) {
|
|
1213
|
+
a.assert(l.isPlainObject(p), "Plugin configuration is invalid.");
|
|
1214
|
+
const g = p.name;
|
|
1215
|
+
a.assert(g, "A name must be provided by the plugin."), this.registerPlugins[g] || (this.registerPlugins[g] = p, p.apply?.(_), Object.keys(this.lifecycle).forEach((u) => {
|
|
1216
|
+
const m = p[u];
|
|
1217
|
+
m && this.lifecycle[u].on(m);
|
|
1218
|
+
}));
|
|
1219
|
+
}
|
|
1220
|
+
removePlugin(p) {
|
|
1221
|
+
a.assert(p, "A name is required.");
|
|
1222
|
+
const _ = this.registerPlugins[p];
|
|
1223
|
+
a.assert(_, `The plugin "${p}" is not registered.`), Object.keys(_).forEach((g) => {
|
|
1224
|
+
g !== "name" && this.lifecycle[g].remove(_[g]);
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
};
|
|
1228
|
+
return Oe.PluginSystem = y, Oe;
|
|
1229
|
+
}
|
|
1230
|
+
var at = {}, lt;
|
|
1231
|
+
function ye() {
|
|
1232
|
+
return lt || (lt = 1, re(), ae(), le(), ce(), ue()), at;
|
|
1233
|
+
}
|
|
1234
|
+
var me = {}, ct;
|
|
1235
|
+
function It() {
|
|
1236
|
+
if (ct) return me;
|
|
1237
|
+
ct = 1;
|
|
1238
|
+
const a = L(), l = B();
|
|
1239
|
+
V();
|
|
1240
|
+
const y = ge();
|
|
1241
|
+
let p = /* @__PURE__ */ D();
|
|
1242
|
+
function _(u, m) {
|
|
1243
|
+
const T = l.getRemoteEntryInfoFromSnapshot(m);
|
|
1244
|
+
T.url || a.error(`The attribute remoteEntry of ${u.name} must not be undefined.`);
|
|
1245
|
+
let f = (0, p.getResourceUrl)(m, T.url);
|
|
1246
|
+
!(0, p.isBrowserEnv)() && !f.startsWith("http") && (f = `https:${f}`), u.type = T.type, u.entryGlobalName = T.globalName, u.entry = f, u.version = m.version, u.buildVersion = m.buildVersion;
|
|
1247
|
+
}
|
|
1248
|
+
function g() {
|
|
1249
|
+
return {
|
|
1250
|
+
name: "snapshot-plugin",
|
|
1251
|
+
async afterResolve(u) {
|
|
1252
|
+
const { remote: m, pkgNameOrAlias: T, expose: f, origin: S, remoteInfo: e, id: E } = u;
|
|
1253
|
+
if (!l.isRemoteInfoWithEntry(m) || !l.isPureRemoteEntry(m)) {
|
|
1254
|
+
const { remoteSnapshot: k, globalSnapshot: o } = await S.snapshotHandler.loadRemoteSnapshotInfo({
|
|
1255
|
+
moduleInfo: m,
|
|
1256
|
+
id: E
|
|
1257
|
+
});
|
|
1258
|
+
_(e, k);
|
|
1259
|
+
const r = {
|
|
1260
|
+
remote: m,
|
|
1261
|
+
preloadConfig: {
|
|
1262
|
+
nameOrAlias: T,
|
|
1263
|
+
exposes: [f],
|
|
1264
|
+
resourceCategory: "sync",
|
|
1265
|
+
share: !1,
|
|
1266
|
+
depsRemote: !1
|
|
1267
|
+
}
|
|
1268
|
+
}, i = await S.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({
|
|
1269
|
+
origin: S,
|
|
1270
|
+
preloadOptions: r,
|
|
1271
|
+
remoteInfo: e,
|
|
1272
|
+
remote: m,
|
|
1273
|
+
remoteSnapshot: k,
|
|
1274
|
+
globalSnapshot: o
|
|
1275
|
+
});
|
|
1276
|
+
return i && y.preloadAssets(e, S, i, !1), {
|
|
1277
|
+
...u,
|
|
1278
|
+
remoteSnapshot: k
|
|
1279
|
+
};
|
|
1280
|
+
}
|
|
1281
|
+
return u;
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
return me.assignRemoteInfo = _, me.snapshotPlugin = g, me;
|
|
1286
|
+
}
|
|
1287
|
+
var Pe = {}, ut;
|
|
1288
|
+
function qt() {
|
|
1289
|
+
if (ut) return Pe;
|
|
1290
|
+
ut = 1;
|
|
1291
|
+
const a = B(), l = K(), y = te();
|
|
1292
|
+
V();
|
|
1293
|
+
const p = ge(), _ = It();
|
|
1294
|
+
let g = /* @__PURE__ */ D();
|
|
1295
|
+
function u(e) {
|
|
1296
|
+
const E = e.split(":");
|
|
1297
|
+
return E.length === 1 ? {
|
|
1298
|
+
name: E[0],
|
|
1299
|
+
version: void 0
|
|
1300
|
+
} : E.length === 2 ? {
|
|
1301
|
+
name: E[0],
|
|
1302
|
+
version: E[1]
|
|
1303
|
+
} : {
|
|
1304
|
+
name: E[1],
|
|
1305
|
+
version: E[2]
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
function m(e, E, k, o, r = {}, i) {
|
|
1309
|
+
const { value: n } = l.getInfoWithoutType(e, a.getFMId(E)), d = i || n;
|
|
1310
|
+
if (d && !(0, g.isManifestProvider)(d) && (k(d, E, o), d.remotesInfo)) {
|
|
1311
|
+
const v = Object.keys(d.remotesInfo);
|
|
1312
|
+
for (const A of v) {
|
|
1313
|
+
if (r[A]) continue;
|
|
1314
|
+
r[A] = !0;
|
|
1315
|
+
const c = u(A), h = d.remotesInfo[A];
|
|
1316
|
+
m(e, {
|
|
1317
|
+
name: c.name,
|
|
1318
|
+
version: h.matchedVersion
|
|
1319
|
+
}, k, !1, r, void 0);
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
const T = (e, E) => document.querySelector(`${e}[${e === "link" ? "href" : "src"}="${E}"]`);
|
|
1324
|
+
function f(e, E, k, o, r) {
|
|
1325
|
+
const i = [], n = [], d = [], v = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Set(), { options: c } = e, { preloadConfig: h } = E, { depsRemote: t } = h;
|
|
1326
|
+
if (m(o, k, (s, b, R) => {
|
|
1327
|
+
let q;
|
|
1328
|
+
if (R) q = h;
|
|
1329
|
+
else if (Array.isArray(t)) {
|
|
1330
|
+
const N = t.find((w) => w.nameOrAlias === b.name || w.nameOrAlias === b.alias);
|
|
1331
|
+
if (!N) return;
|
|
1332
|
+
q = p.defaultPreloadArgs(N);
|
|
1333
|
+
} else if (t === !0) q = h;
|
|
1334
|
+
else return;
|
|
1335
|
+
const $ = (0, g.getResourceUrl)(s, a.getRemoteEntryInfoFromSnapshot(s).url);
|
|
1336
|
+
$ && d.push({
|
|
1337
|
+
name: b.name,
|
|
1338
|
+
moduleInfo: {
|
|
1339
|
+
name: b.name,
|
|
1340
|
+
entry: $,
|
|
1341
|
+
type: "remoteEntryType" in s ? s.remoteEntryType : "global",
|
|
1342
|
+
entryGlobalName: "globalName" in s ? s.globalName : b.name,
|
|
1343
|
+
shareScope: "",
|
|
1344
|
+
version: "version" in s ? s.version : void 0
|
|
1345
|
+
},
|
|
1346
|
+
url: $
|
|
1347
|
+
});
|
|
1348
|
+
let H = "modules" in s ? s.modules : [];
|
|
1349
|
+
const P = p.normalizePreloadExposes(q.exposes);
|
|
1350
|
+
P.length && "modules" in s && (H = s?.modules?.reduce((N, w) => (P?.indexOf(w.moduleName) !== -1 && N.push(w), N), []));
|
|
1351
|
+
function O(N) {
|
|
1352
|
+
const w = N.map((M) => (0, g.getResourceUrl)(s, M));
|
|
1353
|
+
return q.filter ? w.filter(q.filter) : w;
|
|
1354
|
+
}
|
|
1355
|
+
if (H) {
|
|
1356
|
+
const N = H.length;
|
|
1357
|
+
for (let w = 0; w < N; w++) {
|
|
1358
|
+
const M = H[w], x = `${b.name}/${M.moduleName}`;
|
|
1359
|
+
e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({
|
|
1360
|
+
id: M.moduleName === "." ? b.name : x,
|
|
1361
|
+
name: b.name,
|
|
1362
|
+
remoteSnapshot: s,
|
|
1363
|
+
preloadConfig: q,
|
|
1364
|
+
remote: b,
|
|
1365
|
+
origin: e
|
|
1366
|
+
}), !l.getPreloaded(x) && (q.resourceCategory === "all" ? (i.push(...O(M.assets.css.async)), i.push(...O(M.assets.css.sync)), n.push(...O(M.assets.js.async)), n.push(...O(M.assets.js.sync))) : (q.resourceCategory = "sync") && (i.push(...O(M.assets.css.sync)), n.push(...O(M.assets.js.sync))), l.setPreloaded(x));
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
}, !0, {}, r), r.shared && r.shared.length > 0) {
|
|
1370
|
+
const s = (b, R) => {
|
|
1371
|
+
const { shared: q } = y.getRegisteredShare(e.shareScopeMap, R.sharedName, b, e.sharedHandler.hooks.lifecycle.resolveShare) || {};
|
|
1372
|
+
q && typeof q.lib == "function" && (R.assets.js.sync.forEach(($) => {
|
|
1373
|
+
v.add($);
|
|
1374
|
+
}), R.assets.css.sync.forEach(($) => {
|
|
1375
|
+
A.add($);
|
|
1376
|
+
}));
|
|
1377
|
+
};
|
|
1378
|
+
r.shared.forEach((b) => {
|
|
1379
|
+
const R = c.shared?.[b.sharedName];
|
|
1380
|
+
if (!R) return;
|
|
1381
|
+
const q = b.version ? R.find(($) => $.version === b.version) : R;
|
|
1382
|
+
q && a.arrayOptions(q).forEach(($) => {
|
|
1383
|
+
s($, b);
|
|
1384
|
+
});
|
|
1385
|
+
});
|
|
1386
|
+
}
|
|
1387
|
+
const I = n.filter((s) => !v.has(s) && !T("script", s));
|
|
1388
|
+
return {
|
|
1389
|
+
cssAssets: i.filter((s) => !A.has(s) && !T("link", s)),
|
|
1390
|
+
jsAssetsWithoutEntry: I,
|
|
1391
|
+
entryAssets: d.filter((s) => !T("script", s.url))
|
|
1392
|
+
};
|
|
1393
|
+
}
|
|
1394
|
+
const S = function() {
|
|
1395
|
+
return {
|
|
1396
|
+
name: "generate-preload-assets-plugin",
|
|
1397
|
+
async generatePreloadAssets(e) {
|
|
1398
|
+
const { origin: E, preloadOptions: k, remoteInfo: o, remote: r, globalSnapshot: i, remoteSnapshot: n } = e;
|
|
1399
|
+
return (0, g.isBrowserEnv)() ? a.isRemoteInfoWithEntry(r) && a.isPureRemoteEntry(r) ? {
|
|
1400
|
+
cssAssets: [],
|
|
1401
|
+
jsAssetsWithoutEntry: [],
|
|
1402
|
+
entryAssets: [{
|
|
1403
|
+
name: r.name,
|
|
1404
|
+
url: r.entry,
|
|
1405
|
+
moduleInfo: {
|
|
1406
|
+
name: o.name,
|
|
1407
|
+
entry: r.entry,
|
|
1408
|
+
type: o.type || "global",
|
|
1409
|
+
entryGlobalName: "",
|
|
1410
|
+
shareScope: ""
|
|
1411
|
+
}
|
|
1412
|
+
}]
|
|
1413
|
+
} : (_.assignRemoteInfo(o, n), f(E, k, o, i, n)) : {
|
|
1414
|
+
cssAssets: [],
|
|
1415
|
+
jsAssetsWithoutEntry: [],
|
|
1416
|
+
entryAssets: []
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
};
|
|
1421
|
+
return Pe.generatePreloadAssetsPlugin = S, Pe;
|
|
1422
|
+
}
|
|
1423
|
+
var _e = {}, ft;
|
|
1424
|
+
function vt() {
|
|
1425
|
+
if (ft) return _e;
|
|
1426
|
+
ft = 1;
|
|
1427
|
+
const a = L(), l = B(), y = K();
|
|
1428
|
+
V();
|
|
1429
|
+
const p = ae(), _ = ce(), g = ue();
|
|
1430
|
+
ye();
|
|
1431
|
+
let u = /* @__PURE__ */ D(), m = /* @__PURE__ */ ee();
|
|
1432
|
+
function T(S, e) {
|
|
1433
|
+
const E = y.getGlobalSnapshotInfoByModuleInfo({
|
|
1434
|
+
name: e.name,
|
|
1435
|
+
version: e.options.version
|
|
1436
|
+
}), k = E && "remotesInfo" in E && E.remotesInfo && y.getInfoWithoutType(E.remotesInfo, S.name).value;
|
|
1437
|
+
return k && k.matchedVersion ? {
|
|
1438
|
+
hostGlobalSnapshot: E,
|
|
1439
|
+
globalSnapshot: y.getGlobalSnapshot(),
|
|
1440
|
+
remoteSnapshot: y.getGlobalSnapshotInfoByModuleInfo({
|
|
1441
|
+
name: S.name,
|
|
1442
|
+
version: k.matchedVersion
|
|
1443
|
+
})
|
|
1444
|
+
} : {
|
|
1445
|
+
hostGlobalSnapshot: void 0,
|
|
1446
|
+
globalSnapshot: y.getGlobalSnapshot(),
|
|
1447
|
+
remoteSnapshot: y.getGlobalSnapshotInfoByModuleInfo({
|
|
1448
|
+
name: S.name,
|
|
1449
|
+
version: "version" in S ? S.version : void 0
|
|
1450
|
+
})
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
var f = class {
|
|
1454
|
+
constructor(e) {
|
|
1455
|
+
this.loadingHostSnapshot = null, this.manifestCache = /* @__PURE__ */ new Map(), this.hooks = new g.PluginSystem({
|
|
1456
|
+
beforeLoadRemoteSnapshot: new p.AsyncHook("beforeLoadRemoteSnapshot"),
|
|
1457
|
+
loadSnapshot: new _.AsyncWaterfallHook("loadGlobalSnapshot"),
|
|
1458
|
+
loadRemoteSnapshot: new _.AsyncWaterfallHook("loadRemoteSnapshot"),
|
|
1459
|
+
afterLoadSnapshot: new _.AsyncWaterfallHook("afterLoadSnapshot")
|
|
1460
|
+
}), this.manifestLoading = y.Global.__FEDERATION__.__MANIFEST_LOADING__, this.HostInstance = e, this.loaderHook = e.loaderHook;
|
|
1461
|
+
}
|
|
1462
|
+
async loadRemoteSnapshotInfo({ moduleInfo: e, id: E, expose: k }) {
|
|
1463
|
+
const { options: o } = this.HostInstance;
|
|
1464
|
+
await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({
|
|
1465
|
+
options: o,
|
|
1466
|
+
moduleInfo: e
|
|
1467
|
+
});
|
|
1468
|
+
let r = y.getGlobalSnapshotInfoByModuleInfo({
|
|
1469
|
+
name: this.HostInstance.options.name,
|
|
1470
|
+
version: this.HostInstance.options.version
|
|
1471
|
+
});
|
|
1472
|
+
r || (r = {
|
|
1473
|
+
version: this.HostInstance.options.version || "",
|
|
1474
|
+
remoteEntry: "",
|
|
1475
|
+
remotesInfo: {}
|
|
1476
|
+
}, y.addGlobalSnapshot({ [this.HostInstance.options.name]: r })), r && "remotesInfo" in r && !y.getInfoWithoutType(r.remotesInfo, e.name).value && ("version" in e || "entry" in e) && (r.remotesInfo = {
|
|
1477
|
+
...r?.remotesInfo,
|
|
1478
|
+
[e.name]: { matchedVersion: "version" in e ? e.version : e.entry }
|
|
1479
|
+
});
|
|
1480
|
+
const { hostGlobalSnapshot: i, remoteSnapshot: n, globalSnapshot: d } = this.getGlobalRemoteInfo(e), { remoteSnapshot: v, globalSnapshot: A } = await this.hooks.lifecycle.loadSnapshot.emit({
|
|
1481
|
+
options: o,
|
|
1482
|
+
moduleInfo: e,
|
|
1483
|
+
hostGlobalSnapshot: i,
|
|
1484
|
+
remoteSnapshot: n,
|
|
1485
|
+
globalSnapshot: d
|
|
1486
|
+
});
|
|
1487
|
+
let c, h;
|
|
1488
|
+
if (v) if ((0, u.isManifestProvider)(v)) {
|
|
1489
|
+
const t = (0, u.isBrowserEnv)() ? v.remoteEntry : v.ssrRemoteEntry || v.remoteEntry || "", I = await this.getManifestJson(t, e, {}), s = y.setGlobalSnapshotInfoByModuleInfo({
|
|
1490
|
+
...e,
|
|
1491
|
+
entry: t
|
|
1492
|
+
}, I);
|
|
1493
|
+
c = I, h = s;
|
|
1494
|
+
} else {
|
|
1495
|
+
const { remoteSnapshot: t } = await this.hooks.lifecycle.loadRemoteSnapshot.emit({
|
|
1496
|
+
options: this.HostInstance.options,
|
|
1497
|
+
moduleInfo: e,
|
|
1498
|
+
remoteSnapshot: v,
|
|
1499
|
+
from: "global"
|
|
1500
|
+
});
|
|
1501
|
+
c = t, h = A;
|
|
1502
|
+
}
|
|
1503
|
+
else if (l.isRemoteInfoWithEntry(e)) {
|
|
1504
|
+
const t = await this.getManifestJson(e.entry, e, {}), I = y.setGlobalSnapshotInfoByModuleInfo(e, t), { remoteSnapshot: s } = await this.hooks.lifecycle.loadRemoteSnapshot.emit({
|
|
1505
|
+
options: this.HostInstance.options,
|
|
1506
|
+
moduleInfo: e,
|
|
1507
|
+
remoteSnapshot: t,
|
|
1508
|
+
from: "global"
|
|
1509
|
+
});
|
|
1510
|
+
c = s, h = I;
|
|
1511
|
+
} else a.error((0, m.getShortErrorMsg)(m.RUNTIME_007, m.runtimeDescMap, {
|
|
1512
|
+
hostName: e.name,
|
|
1513
|
+
hostVersion: e.version,
|
|
1514
|
+
globalSnapshot: JSON.stringify(A)
|
|
1515
|
+
}));
|
|
1516
|
+
return await this.hooks.lifecycle.afterLoadSnapshot.emit({
|
|
1517
|
+
id: E,
|
|
1518
|
+
host: this.HostInstance,
|
|
1519
|
+
options: o,
|
|
1520
|
+
moduleInfo: e,
|
|
1521
|
+
remoteSnapshot: c
|
|
1522
|
+
}), {
|
|
1523
|
+
remoteSnapshot: c,
|
|
1524
|
+
globalSnapshot: h
|
|
1525
|
+
};
|
|
1526
|
+
}
|
|
1527
|
+
getGlobalRemoteInfo(e) {
|
|
1528
|
+
return T(e, this.HostInstance);
|
|
1529
|
+
}
|
|
1530
|
+
async getManifestJson(e, E, k) {
|
|
1531
|
+
const o = async () => {
|
|
1532
|
+
let i = this.manifestCache.get(e);
|
|
1533
|
+
if (i) return i;
|
|
1534
|
+
try {
|
|
1535
|
+
let n = await this.loaderHook.lifecycle.fetch.emit(e, {});
|
|
1536
|
+
(!n || !(n instanceof Response)) && (n = await fetch(e, {})), i = await n.json();
|
|
1537
|
+
} catch (n) {
|
|
1538
|
+
i = await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({
|
|
1539
|
+
id: e,
|
|
1540
|
+
error: n,
|
|
1541
|
+
from: "runtime",
|
|
1542
|
+
lifecycle: "afterResolve",
|
|
1543
|
+
origin: this.HostInstance
|
|
1544
|
+
}), i || (delete this.manifestLoading[e], a.error((0, m.getShortErrorMsg)(m.RUNTIME_003, m.runtimeDescMap, {
|
|
1545
|
+
manifestUrl: e,
|
|
1546
|
+
moduleName: E.name,
|
|
1547
|
+
hostName: this.HostInstance.options.name
|
|
1548
|
+
}, `${n}`)));
|
|
1549
|
+
}
|
|
1550
|
+
return a.assert(i.metaData && i.exposes && i.shared, `${e} is not a federation manifest`), this.manifestCache.set(e, i), i;
|
|
1551
|
+
}, r = async () => {
|
|
1552
|
+
const i = await o(), n = (0, u.generateSnapshotFromManifest)(i, { version: e }), { remoteSnapshot: d } = await this.hooks.lifecycle.loadRemoteSnapshot.emit({
|
|
1553
|
+
options: this.HostInstance.options,
|
|
1554
|
+
moduleInfo: E,
|
|
1555
|
+
manifestJson: i,
|
|
1556
|
+
remoteSnapshot: n,
|
|
1557
|
+
manifestUrl: e,
|
|
1558
|
+
from: "manifest"
|
|
1559
|
+
});
|
|
1560
|
+
return d;
|
|
1561
|
+
};
|
|
1562
|
+
return this.manifestLoading[e] || (this.manifestLoading[e] = r().then((i) => i)), this.manifestLoading[e];
|
|
1563
|
+
}
|
|
1564
|
+
};
|
|
1565
|
+
return _e.SnapshotHandler = f, _e.getGlobalRemoteInfo = T, _e;
|
|
1566
|
+
}
|
|
1567
|
+
var He = {}, dt;
|
|
1568
|
+
function $t() {
|
|
1569
|
+
if (dt) return He;
|
|
1570
|
+
dt = 1;
|
|
1571
|
+
const a = L(), l = se(), y = te();
|
|
1572
|
+
V();
|
|
1573
|
+
const p = ae(), _ = le(), g = ce(), u = ue();
|
|
1574
|
+
ye();
|
|
1575
|
+
let m = /* @__PURE__ */ ee();
|
|
1576
|
+
var T = class {
|
|
1577
|
+
constructor(f) {
|
|
1578
|
+
this.hooks = new u.PluginSystem({
|
|
1579
|
+
beforeRegisterShare: new _.SyncWaterfallHook("beforeRegisterShare"),
|
|
1580
|
+
afterResolve: new g.AsyncWaterfallHook("afterResolve"),
|
|
1581
|
+
beforeLoadShare: new g.AsyncWaterfallHook("beforeLoadShare"),
|
|
1582
|
+
loadShare: new p.AsyncHook(),
|
|
1583
|
+
resolveShare: new _.SyncWaterfallHook("resolveShare"),
|
|
1584
|
+
initContainerShareScopeMap: new _.SyncWaterfallHook("initContainerShareScopeMap")
|
|
1585
|
+
}), this.host = f, this.shareScopeMap = {}, this.initTokens = {}, this._setGlobalShareScopeMap(f.options);
|
|
1586
|
+
}
|
|
1587
|
+
registerShared(f, S) {
|
|
1588
|
+
const { newShareInfos: e, allShareInfos: E } = y.formatShareConfigs(f, S);
|
|
1589
|
+
return Object.keys(e).forEach((k) => {
|
|
1590
|
+
e[k].forEach((o) => {
|
|
1591
|
+
o.scope.forEach((r) => {
|
|
1592
|
+
this.hooks.lifecycle.beforeRegisterShare.emit({
|
|
1593
|
+
origin: this.host,
|
|
1594
|
+
pkgName: k,
|
|
1595
|
+
shared: o
|
|
1596
|
+
}), this.shareScopeMap[r]?.[k] || this.setShared({
|
|
1597
|
+
pkgName: k,
|
|
1598
|
+
lib: o.lib,
|
|
1599
|
+
get: o.get,
|
|
1600
|
+
loaded: o.loaded || !!o.lib,
|
|
1601
|
+
shared: o,
|
|
1602
|
+
from: S.name
|
|
1603
|
+
});
|
|
1604
|
+
});
|
|
1605
|
+
});
|
|
1606
|
+
}), {
|
|
1607
|
+
newShareInfos: e,
|
|
1608
|
+
allShareInfos: E
|
|
1609
|
+
};
|
|
1610
|
+
}
|
|
1611
|
+
async loadShare(f, S) {
|
|
1612
|
+
const { host: e } = this, E = y.getTargetSharedOptions({
|
|
1613
|
+
pkgName: f,
|
|
1614
|
+
extraOptions: S,
|
|
1615
|
+
shareInfos: e.options.shared
|
|
1616
|
+
});
|
|
1617
|
+
E?.scope && await Promise.all(E.scope.map(async (i) => {
|
|
1618
|
+
await Promise.all(this.initializeSharing(i, { strategy: E.strategy }));
|
|
1619
|
+
}));
|
|
1620
|
+
const { shareInfo: k } = await this.hooks.lifecycle.beforeLoadShare.emit({
|
|
1621
|
+
pkgName: f,
|
|
1622
|
+
shareInfo: E,
|
|
1623
|
+
shared: e.options.shared,
|
|
1624
|
+
origin: e
|
|
1625
|
+
});
|
|
1626
|
+
a.assert(k, `Cannot find ${f} Share in the ${e.options.name}. Please ensure that the ${f} Share parameters have been injected`);
|
|
1627
|
+
const { shared: o, useTreesShaking: r } = y.getRegisteredShare(this.shareScopeMap, f, k, this.hooks.lifecycle.resolveShare) || {};
|
|
1628
|
+
if (o) {
|
|
1629
|
+
const i = y.directShare(o, r);
|
|
1630
|
+
if (i.lib)
|
|
1631
|
+
return y.addUseIn(i, e.options.name), i.lib;
|
|
1632
|
+
if (i.loading && !i.loaded) {
|
|
1633
|
+
const n = await i.loading;
|
|
1634
|
+
return i.loaded = !0, i.lib || (i.lib = n), y.addUseIn(i, e.options.name), n;
|
|
1635
|
+
} else {
|
|
1636
|
+
const d = (async () => {
|
|
1637
|
+
const v = await i.get();
|
|
1638
|
+
return y.addUseIn(i, e.options.name), i.loaded = !0, i.lib = v, v;
|
|
1639
|
+
})();
|
|
1640
|
+
return this.setShared({
|
|
1641
|
+
pkgName: f,
|
|
1642
|
+
loaded: !1,
|
|
1643
|
+
shared: o,
|
|
1644
|
+
from: e.options.name,
|
|
1645
|
+
lib: null,
|
|
1646
|
+
loading: d,
|
|
1647
|
+
treeShaking: r ? i : void 0
|
|
1648
|
+
}), d;
|
|
1649
|
+
}
|
|
1650
|
+
} else {
|
|
1651
|
+
if (S?.customShareInfo) return !1;
|
|
1652
|
+
const i = y.shouldUseTreeShaking(k.treeShaking), n = y.directShare(k, i), v = (async () => {
|
|
1653
|
+
const A = await n.get();
|
|
1654
|
+
n.lib = A, n.loaded = !0, y.addUseIn(n, e.options.name);
|
|
1655
|
+
const { shared: c, useTreesShaking: h } = y.getRegisteredShare(this.shareScopeMap, f, k, this.hooks.lifecycle.resolveShare) || {};
|
|
1656
|
+
if (c) {
|
|
1657
|
+
const t = y.directShare(c, h);
|
|
1658
|
+
t.lib = A, t.loaded = !0, c.from = k.from;
|
|
1659
|
+
}
|
|
1660
|
+
return A;
|
|
1661
|
+
})();
|
|
1662
|
+
return this.setShared({
|
|
1663
|
+
pkgName: f,
|
|
1664
|
+
loaded: !1,
|
|
1665
|
+
shared: k,
|
|
1666
|
+
from: e.options.name,
|
|
1667
|
+
lib: null,
|
|
1668
|
+
loading: v,
|
|
1669
|
+
treeShaking: i ? n : void 0
|
|
1670
|
+
}), v;
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
/**
|
|
1674
|
+
* This function initializes the sharing sequence (executed only once per share scope).
|
|
1675
|
+
* It accepts one argument, the name of the share scope.
|
|
1676
|
+
* If the share scope does not exist, it creates one.
|
|
1677
|
+
*/
|
|
1678
|
+
initializeSharing(f = l.DEFAULT_SCOPE, S) {
|
|
1679
|
+
const { host: e } = this, E = S?.from, k = S?.strategy;
|
|
1680
|
+
let o = S?.initScope;
|
|
1681
|
+
const r = [];
|
|
1682
|
+
if (E !== "build") {
|
|
1683
|
+
const { initTokens: c } = this;
|
|
1684
|
+
o || (o = []);
|
|
1685
|
+
let h = c[f];
|
|
1686
|
+
if (h || (h = c[f] = { from: this.host.name }), o.indexOf(h) >= 0) return r;
|
|
1687
|
+
o.push(h);
|
|
1688
|
+
}
|
|
1689
|
+
const i = this.shareScopeMap, n = e.options.name;
|
|
1690
|
+
i[f] || (i[f] = {});
|
|
1691
|
+
const d = i[f], v = (c, h) => {
|
|
1692
|
+
const { version: t, eager: I } = h;
|
|
1693
|
+
d[c] = d[c] || {};
|
|
1694
|
+
const s = d[c], b = s[t] && y.directShare(s[t]), R = !!(b && ("eager" in b && b.eager || "shareConfig" in b && b.shareConfig?.eager));
|
|
1695
|
+
(!b || b.strategy !== "loaded-first" && !b.loaded && (!I != !R ? I : n > s[t].from)) && (s[t] = h);
|
|
1696
|
+
}, A = async (c) => {
|
|
1697
|
+
const { module: h } = await e.remoteHandler.getRemoteModuleAndOptions({ id: c });
|
|
1698
|
+
let t;
|
|
1699
|
+
try {
|
|
1700
|
+
t = await h.getEntry();
|
|
1701
|
+
} catch (I) {
|
|
1702
|
+
t = await e.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({
|
|
1703
|
+
id: c,
|
|
1704
|
+
error: I,
|
|
1705
|
+
from: "runtime",
|
|
1706
|
+
lifecycle: "beforeLoadShare",
|
|
1707
|
+
origin: e
|
|
1708
|
+
});
|
|
1709
|
+
} finally {
|
|
1710
|
+
t?.init && !h.initing && (h.remoteEntryExports = t, await h.init(void 0, void 0, o));
|
|
1711
|
+
}
|
|
1712
|
+
};
|
|
1713
|
+
return Object.keys(e.options.shared).forEach((c) => {
|
|
1714
|
+
e.options.shared[c].forEach((h) => {
|
|
1715
|
+
h.scope.includes(f) && v(c, h);
|
|
1716
|
+
});
|
|
1717
|
+
}), (e.options.shareStrategy === "version-first" || k === "version-first") && e.options.remotes.forEach((c) => {
|
|
1718
|
+
c.shareScope === f && r.push(A(c.name));
|
|
1719
|
+
}), r;
|
|
1720
|
+
}
|
|
1721
|
+
loadShareSync(f, S) {
|
|
1722
|
+
const { host: e } = this, E = y.getTargetSharedOptions({
|
|
1723
|
+
pkgName: f,
|
|
1724
|
+
extraOptions: S,
|
|
1725
|
+
shareInfos: e.options.shared
|
|
1726
|
+
});
|
|
1727
|
+
E?.scope && E.scope.forEach((r) => {
|
|
1728
|
+
this.initializeSharing(r, { strategy: E.strategy });
|
|
1729
|
+
});
|
|
1730
|
+
const { shared: k, useTreesShaking: o } = y.getRegisteredShare(this.shareScopeMap, f, E, this.hooks.lifecycle.resolveShare) || {};
|
|
1731
|
+
if (k) {
|
|
1732
|
+
if (typeof k.lib == "function")
|
|
1733
|
+
return y.addUseIn(k, e.options.name), k.loaded || (k.loaded = !0, k.from === e.options.name && (E.loaded = !0)), k.lib;
|
|
1734
|
+
if (typeof k.get == "function") {
|
|
1735
|
+
const r = k.get();
|
|
1736
|
+
if (!(r instanceof Promise))
|
|
1737
|
+
return y.addUseIn(k, e.options.name), this.setShared({
|
|
1738
|
+
pkgName: f,
|
|
1739
|
+
loaded: !0,
|
|
1740
|
+
from: e.options.name,
|
|
1741
|
+
lib: r,
|
|
1742
|
+
shared: k
|
|
1743
|
+
}), r;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
if (E.lib)
|
|
1747
|
+
return E.loaded || (E.loaded = !0), E.lib;
|
|
1748
|
+
if (E.get) {
|
|
1749
|
+
const r = E.get();
|
|
1750
|
+
if (r instanceof Promise) {
|
|
1751
|
+
const i = S?.from === "build" ? m.RUNTIME_005 : m.RUNTIME_006;
|
|
1752
|
+
throw new Error((0, m.getShortErrorMsg)(i, m.runtimeDescMap, {
|
|
1753
|
+
hostName: e.options.name,
|
|
1754
|
+
sharedPkgName: f
|
|
1755
|
+
}));
|
|
1756
|
+
}
|
|
1757
|
+
return E.lib = r, this.setShared({
|
|
1758
|
+
pkgName: f,
|
|
1759
|
+
loaded: !0,
|
|
1760
|
+
from: e.options.name,
|
|
1761
|
+
lib: E.lib,
|
|
1762
|
+
shared: E
|
|
1763
|
+
}), E.lib;
|
|
1764
|
+
}
|
|
1765
|
+
throw new Error((0, m.getShortErrorMsg)(m.RUNTIME_006, m.runtimeDescMap, {
|
|
1766
|
+
hostName: e.options.name,
|
|
1767
|
+
sharedPkgName: f
|
|
1768
|
+
}));
|
|
1769
|
+
}
|
|
1770
|
+
initShareScopeMap(f, S, e = {}) {
|
|
1771
|
+
const { host: E } = this;
|
|
1772
|
+
this.shareScopeMap[f] = S, this.hooks.lifecycle.initContainerShareScopeMap.emit({
|
|
1773
|
+
shareScope: S,
|
|
1774
|
+
options: E.options,
|
|
1775
|
+
origin: E,
|
|
1776
|
+
scopeName: f,
|
|
1777
|
+
hostShareScopeMap: e.hostShareScopeMap
|
|
1778
|
+
});
|
|
1779
|
+
}
|
|
1780
|
+
setShared({ pkgName: f, shared: S, from: e, lib: E, loading: k, loaded: o, get: r, treeShaking: i }) {
|
|
1781
|
+
const { version: n, scope: d = "default", ...v } = S, A = Array.isArray(d) ? d : [d], c = (h) => {
|
|
1782
|
+
const t = (s, b, R) => {
|
|
1783
|
+
R && !s[b] && (s[b] = R);
|
|
1784
|
+
}, I = i ? h.treeShaking : h;
|
|
1785
|
+
t(I, "loaded", o), t(I, "loading", k), t(I, "get", r);
|
|
1786
|
+
};
|
|
1787
|
+
A.forEach((h) => {
|
|
1788
|
+
this.shareScopeMap[h] || (this.shareScopeMap[h] = {}), this.shareScopeMap[h][f] || (this.shareScopeMap[h][f] = {}), this.shareScopeMap[h][f][n] || (this.shareScopeMap[h][f][n] = {
|
|
1789
|
+
version: n,
|
|
1790
|
+
scope: [h],
|
|
1791
|
+
...v,
|
|
1792
|
+
lib: E
|
|
1793
|
+
});
|
|
1794
|
+
const t = this.shareScopeMap[h][f][n];
|
|
1795
|
+
c(t), e && t.from !== e && (t.from = e);
|
|
1796
|
+
});
|
|
1797
|
+
}
|
|
1798
|
+
_setGlobalShareScopeMap(f) {
|
|
1799
|
+
const S = y.getGlobalShareScope(), e = f.id || f.name;
|
|
1800
|
+
e && !S[e] && (S[e] = this.shareScopeMap);
|
|
1801
|
+
}
|
|
1802
|
+
};
|
|
1803
|
+
return He.SharedHandler = T, He;
|
|
1804
|
+
}
|
|
1805
|
+
var we = {}, ht;
|
|
1806
|
+
function Ot() {
|
|
1807
|
+
if (ht) return we;
|
|
1808
|
+
ht = 1;
|
|
1809
|
+
const a = L(), l = K(), y = se(), p = te(), _ = ie(), g = J();
|
|
1810
|
+
V();
|
|
1811
|
+
const u = ge(), m = Ge(), T = re(), f = ae(), S = le(), e = ce(), E = ue();
|
|
1812
|
+
ye();
|
|
1813
|
+
const k = vt();
|
|
1814
|
+
let o = /* @__PURE__ */ D(), r = /* @__PURE__ */ ee();
|
|
1815
|
+
var i = class {
|
|
1816
|
+
constructor(n) {
|
|
1817
|
+
this.hooks = new E.PluginSystem({
|
|
1818
|
+
beforeRegisterRemote: new S.SyncWaterfallHook("beforeRegisterRemote"),
|
|
1819
|
+
registerRemote: new S.SyncWaterfallHook("registerRemote"),
|
|
1820
|
+
beforeRequest: new e.AsyncWaterfallHook("beforeRequest"),
|
|
1821
|
+
onLoad: new f.AsyncHook("onLoad"),
|
|
1822
|
+
handlePreloadModule: new T.SyncHook("handlePreloadModule"),
|
|
1823
|
+
errorLoadRemote: new f.AsyncHook("errorLoadRemote"),
|
|
1824
|
+
beforePreloadRemote: new f.AsyncHook("beforePreloadRemote"),
|
|
1825
|
+
generatePreloadAssets: new f.AsyncHook("generatePreloadAssets"),
|
|
1826
|
+
afterPreloadRemote: new f.AsyncHook(),
|
|
1827
|
+
loadEntry: new f.AsyncHook()
|
|
1828
|
+
}), this.host = n, this.idToRemoteMap = {};
|
|
1829
|
+
}
|
|
1830
|
+
formatAndRegisterRemote(n, d) {
|
|
1831
|
+
return (d.remotes || []).reduce((v, A) => (this.registerRemote(A, v, { force: !1 }), v), n.remotes);
|
|
1832
|
+
}
|
|
1833
|
+
setIdToRemoteMap(n, d) {
|
|
1834
|
+
const { remote: v, expose: A } = d, { name: c, alias: h } = v;
|
|
1835
|
+
if (this.idToRemoteMap[n] = {
|
|
1836
|
+
name: v.name,
|
|
1837
|
+
expose: A
|
|
1838
|
+
}, h && n.startsWith(c)) {
|
|
1839
|
+
const t = n.replace(c, h);
|
|
1840
|
+
this.idToRemoteMap[t] = {
|
|
1841
|
+
name: v.name,
|
|
1842
|
+
expose: A
|
|
1843
|
+
};
|
|
1844
|
+
return;
|
|
1845
|
+
}
|
|
1846
|
+
if (h && n.startsWith(h)) {
|
|
1847
|
+
const t = n.replace(h, c);
|
|
1848
|
+
this.idToRemoteMap[t] = {
|
|
1849
|
+
name: v.name,
|
|
1850
|
+
expose: A
|
|
1851
|
+
};
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
async loadRemote(n, d) {
|
|
1855
|
+
const { host: v } = this;
|
|
1856
|
+
try {
|
|
1857
|
+
const { loadFactory: A = !0 } = d || { loadFactory: !0 }, { module: c, moduleOptions: h, remoteMatchInfo: t } = await this.getRemoteModuleAndOptions({ id: n }), { pkgNameOrAlias: I, remote: s, expose: b, id: R, remoteSnapshot: q } = t, $ = await c.get(R, b, d, q), H = await this.hooks.lifecycle.onLoad.emit({
|
|
1858
|
+
id: R,
|
|
1859
|
+
pkgNameOrAlias: I,
|
|
1860
|
+
expose: b,
|
|
1861
|
+
exposeModule: A ? $ : void 0,
|
|
1862
|
+
exposeModuleFactory: A ? void 0 : $,
|
|
1863
|
+
remote: s,
|
|
1864
|
+
options: h,
|
|
1865
|
+
moduleInstance: c,
|
|
1866
|
+
origin: v
|
|
1867
|
+
});
|
|
1868
|
+
return this.setIdToRemoteMap(n, t), typeof H == "function" ? H : $;
|
|
1869
|
+
} catch (A) {
|
|
1870
|
+
const { from: c = "runtime" } = d || { from: "runtime" }, h = await this.hooks.lifecycle.errorLoadRemote.emit({
|
|
1871
|
+
id: n,
|
|
1872
|
+
error: A,
|
|
1873
|
+
from: c,
|
|
1874
|
+
lifecycle: "onLoad",
|
|
1875
|
+
origin: v
|
|
1876
|
+
});
|
|
1877
|
+
if (!h) throw A;
|
|
1878
|
+
return h;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
async preloadRemote(n) {
|
|
1882
|
+
const { host: d } = this;
|
|
1883
|
+
await this.hooks.lifecycle.beforePreloadRemote.emit({
|
|
1884
|
+
preloadOps: n,
|
|
1885
|
+
options: d.options,
|
|
1886
|
+
origin: d
|
|
1887
|
+
});
|
|
1888
|
+
const v = u.formatPreloadArgs(d.options.remotes, n);
|
|
1889
|
+
await Promise.all(v.map(async (A) => {
|
|
1890
|
+
const { remote: c } = A, h = g.getRemoteInfo(c), { globalSnapshot: t, remoteSnapshot: I } = await d.snapshotHandler.loadRemoteSnapshotInfo({ moduleInfo: c }), s = await this.hooks.lifecycle.generatePreloadAssets.emit({
|
|
1891
|
+
origin: d,
|
|
1892
|
+
preloadOptions: A,
|
|
1893
|
+
remote: c,
|
|
1894
|
+
remoteInfo: h,
|
|
1895
|
+
globalSnapshot: t,
|
|
1896
|
+
remoteSnapshot: I
|
|
1897
|
+
});
|
|
1898
|
+
s && u.preloadAssets(h, d, s);
|
|
1899
|
+
}));
|
|
1900
|
+
}
|
|
1901
|
+
registerRemotes(n, d) {
|
|
1902
|
+
const { host: v } = this;
|
|
1903
|
+
n.forEach((A) => {
|
|
1904
|
+
this.registerRemote(A, v.options.remotes, { force: d?.force });
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
async getRemoteModuleAndOptions(n) {
|
|
1908
|
+
const { host: d } = this, { id: v } = n;
|
|
1909
|
+
let A;
|
|
1910
|
+
try {
|
|
1911
|
+
A = await this.hooks.lifecycle.beforeRequest.emit({
|
|
1912
|
+
id: v,
|
|
1913
|
+
options: d.options,
|
|
1914
|
+
origin: d
|
|
1915
|
+
});
|
|
1916
|
+
} catch (H) {
|
|
1917
|
+
if (A = await this.hooks.lifecycle.errorLoadRemote.emit({
|
|
1918
|
+
id: v,
|
|
1919
|
+
options: d.options,
|
|
1920
|
+
origin: d,
|
|
1921
|
+
from: "runtime",
|
|
1922
|
+
error: H,
|
|
1923
|
+
lifecycle: "beforeRequest"
|
|
1924
|
+
}), !A) throw H;
|
|
1925
|
+
}
|
|
1926
|
+
const { id: c } = A, h = _.matchRemoteWithNameAndExpose(d.options.remotes, c);
|
|
1927
|
+
a.assert(h, (0, r.getShortErrorMsg)(r.RUNTIME_004, r.runtimeDescMap, {
|
|
1928
|
+
hostName: d.options.name,
|
|
1929
|
+
requestId: c
|
|
1930
|
+
}));
|
|
1931
|
+
const { remote: t } = h, I = g.getRemoteInfo(t), s = await d.sharedHandler.hooks.lifecycle.afterResolve.emit({
|
|
1932
|
+
id: c,
|
|
1933
|
+
...h,
|
|
1934
|
+
options: d.options,
|
|
1935
|
+
origin: d,
|
|
1936
|
+
remoteInfo: I
|
|
1937
|
+
}), { remote: b, expose: R } = s;
|
|
1938
|
+
a.assert(b && R, `The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${c}.`);
|
|
1939
|
+
let q = d.moduleCache.get(b.name);
|
|
1940
|
+
const $ = {
|
|
1941
|
+
host: d,
|
|
1942
|
+
remoteInfo: I
|
|
1943
|
+
};
|
|
1944
|
+
return q || (q = new m.Module($), d.moduleCache.set(b.name, q)), {
|
|
1945
|
+
module: q,
|
|
1946
|
+
moduleOptions: $,
|
|
1947
|
+
remoteMatchInfo: s
|
|
1948
|
+
};
|
|
1949
|
+
}
|
|
1950
|
+
registerRemote(n, d, v) {
|
|
1951
|
+
const { host: A } = this, c = () => {
|
|
1952
|
+
if (n.alias) {
|
|
1953
|
+
const t = d.find((I) => n.alias && (I.name.startsWith(n.alias) || I.alias?.startsWith(n.alias)));
|
|
1954
|
+
a.assert(!t, `The alias ${n.alias} of remote ${n.name} is not allowed to be the prefix of ${t && t.name} name or alias`);
|
|
1955
|
+
}
|
|
1956
|
+
"entry" in n && (0, o.isBrowserEnv)() && !n.entry.startsWith("http") && (n.entry = new URL(n.entry, window.location.origin).href), n.shareScope || (n.shareScope = y.DEFAULT_SCOPE), n.type || (n.type = y.DEFAULT_REMOTE_TYPE);
|
|
1957
|
+
};
|
|
1958
|
+
this.hooks.lifecycle.beforeRegisterRemote.emit({
|
|
1959
|
+
remote: n,
|
|
1960
|
+
origin: A
|
|
1961
|
+
});
|
|
1962
|
+
const h = d.find((t) => t.name === n.name);
|
|
1963
|
+
if (!h)
|
|
1964
|
+
c(), d.push(n), this.hooks.lifecycle.registerRemote.emit({
|
|
1965
|
+
remote: n,
|
|
1966
|
+
origin: A
|
|
1967
|
+
});
|
|
1968
|
+
else {
|
|
1969
|
+
const t = [`The remote "${n.name}" is already registered.`, "Please note that overriding it may cause unexpected errors."];
|
|
1970
|
+
v?.force && (this.removeRemote(h), c(), d.push(n), this.hooks.lifecycle.registerRemote.emit({
|
|
1971
|
+
remote: n,
|
|
1972
|
+
origin: A
|
|
1973
|
+
}), (0, o.warn)(t.join(" ")));
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
removeRemote(n) {
|
|
1977
|
+
try {
|
|
1978
|
+
const { host: d } = this, { name: v } = n, A = d.options.remotes.findIndex((h) => h.name === v);
|
|
1979
|
+
A !== -1 && d.options.remotes.splice(A, 1);
|
|
1980
|
+
const c = d.moduleCache.get(n.name);
|
|
1981
|
+
if (c) {
|
|
1982
|
+
const h = c.remoteInfo, t = h.entryGlobalName;
|
|
1983
|
+
l.CurrentGlobal[t] && (Object.getOwnPropertyDescriptor(l.CurrentGlobal, t)?.configurable ? delete l.CurrentGlobal[t] : l.CurrentGlobal[t] = void 0);
|
|
1984
|
+
const I = g.getRemoteEntryUniqueKey(c.remoteInfo);
|
|
1985
|
+
l.globalLoading[I] && delete l.globalLoading[I], d.snapshotHandler.manifestCache.delete(h.entry);
|
|
1986
|
+
let s = h.buildVersion ? (0, o.composeKeyWithSeparator)(h.name, h.buildVersion) : h.name;
|
|
1987
|
+
const b = l.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex((q) => h.buildVersion ? q.options.id === s : q.name === s);
|
|
1988
|
+
if (b !== -1) {
|
|
1989
|
+
const q = l.CurrentGlobal.__FEDERATION__.__INSTANCES__[b];
|
|
1990
|
+
s = q.options.id || s;
|
|
1991
|
+
const $ = p.getGlobalShareScope();
|
|
1992
|
+
let H = !0;
|
|
1993
|
+
const P = [];
|
|
1994
|
+
Object.keys($).forEach((O) => {
|
|
1995
|
+
const N = $[O];
|
|
1996
|
+
N && Object.keys(N).forEach((w) => {
|
|
1997
|
+
const M = N[w];
|
|
1998
|
+
M && Object.keys(M).forEach((x) => {
|
|
1999
|
+
const Y = M[x];
|
|
2000
|
+
Y && Object.keys(Y).forEach((X) => {
|
|
2001
|
+
const C = Y[X];
|
|
2002
|
+
C && typeof C == "object" && C.from === h.name && (C.loaded || C.loading ? (C.useIn = C.useIn.filter((oe) => oe !== h.name), C.useIn.length ? H = !1 : P.push([
|
|
2003
|
+
O,
|
|
2004
|
+
w,
|
|
2005
|
+
x,
|
|
2006
|
+
X
|
|
2007
|
+
])) : P.push([
|
|
2008
|
+
O,
|
|
2009
|
+
w,
|
|
2010
|
+
x,
|
|
2011
|
+
X
|
|
2012
|
+
]));
|
|
2013
|
+
});
|
|
2014
|
+
});
|
|
2015
|
+
});
|
|
2016
|
+
}), H && (q.shareScopeMap = {}, delete $[s]), P.forEach(([O, N, w, M]) => {
|
|
2017
|
+
delete $[O]?.[N]?.[w]?.[M];
|
|
2018
|
+
}), l.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(b, 1);
|
|
2019
|
+
}
|
|
2020
|
+
const { hostGlobalSnapshot: R } = k.getGlobalRemoteInfo(n, d);
|
|
2021
|
+
if (R) {
|
|
2022
|
+
const q = R && "remotesInfo" in R && R.remotesInfo && l.getInfoWithoutType(R.remotesInfo, n.name).key;
|
|
2023
|
+
q && (delete R.remotesInfo[q], l.Global.__FEDERATION__.__MANIFEST_LOADING__[q] && delete l.Global.__FEDERATION__.__MANIFEST_LOADING__[q]);
|
|
2024
|
+
}
|
|
2025
|
+
d.moduleCache.delete(n.name);
|
|
2026
|
+
}
|
|
2027
|
+
} catch (d) {
|
|
2028
|
+
a.logger.log("removeRemote fail: ", d);
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
};
|
|
2032
|
+
return we.RemoteHandler = i, we;
|
|
2033
|
+
}
|
|
2034
|
+
var pt;
|
|
2035
|
+
function Pt() {
|
|
2036
|
+
if (pt) return Te;
|
|
2037
|
+
pt = 1;
|
|
2038
|
+
const a = L(), l = se(), y = te(), p = bt(), _ = Rt(), g = J();
|
|
2039
|
+
V();
|
|
2040
|
+
const u = Ge(), m = re(), T = ae(), f = le(), S = ce(), e = ue();
|
|
2041
|
+
ye();
|
|
2042
|
+
const E = It(), k = qt(), o = vt(), r = $t(), i = Ot();
|
|
2043
|
+
let n = /* @__PURE__ */ D(), d = /* @__PURE__ */ ee();
|
|
2044
|
+
const v = typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN == "boolean" ? !FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN : !0;
|
|
2045
|
+
var A = class {
|
|
2046
|
+
constructor(c) {
|
|
2047
|
+
this.hooks = new e.PluginSystem({
|
|
2048
|
+
beforeInit: new f.SyncWaterfallHook("beforeInit"),
|
|
2049
|
+
init: new m.SyncHook(),
|
|
2050
|
+
beforeInitContainer: new S.AsyncWaterfallHook("beforeInitContainer"),
|
|
2051
|
+
initContainer: new S.AsyncWaterfallHook("initContainer")
|
|
2052
|
+
}), this.version = "2.1.0", this.moduleCache = /* @__PURE__ */ new Map(), this.loaderHook = new e.PluginSystem({
|
|
2053
|
+
getModuleInfo: new m.SyncHook(),
|
|
2054
|
+
createScript: new m.SyncHook(),
|
|
2055
|
+
createLink: new m.SyncHook(),
|
|
2056
|
+
fetch: new T.AsyncHook(),
|
|
2057
|
+
loadEntryError: new T.AsyncHook(),
|
|
2058
|
+
getModuleFactory: new T.AsyncHook()
|
|
2059
|
+
}), this.bridgeHook = new e.PluginSystem({
|
|
2060
|
+
beforeBridgeRender: new m.SyncHook(),
|
|
2061
|
+
afterBridgeRender: new m.SyncHook(),
|
|
2062
|
+
beforeBridgeDestroy: new m.SyncHook(),
|
|
2063
|
+
afterBridgeDestroy: new m.SyncHook()
|
|
2064
|
+
});
|
|
2065
|
+
const h = v ? [E.snapshotPlugin(), k.generatePreloadAssetsPlugin()] : [], t = {
|
|
2066
|
+
id: p.getBuilderId(),
|
|
2067
|
+
name: c.name,
|
|
2068
|
+
plugins: h,
|
|
2069
|
+
remotes: [],
|
|
2070
|
+
shared: {},
|
|
2071
|
+
inBrowser: (0, n.isBrowserEnv)()
|
|
2072
|
+
};
|
|
2073
|
+
this.name = c.name, this.options = t, this.snapshotHandler = new o.SnapshotHandler(this), this.sharedHandler = new r.SharedHandler(this), this.remoteHandler = new i.RemoteHandler(this), this.shareScopeMap = this.sharedHandler.shareScopeMap, this.registerPlugins([...t.plugins, ...c.plugins || []]), this.options = this.formatOptions(t, c);
|
|
2074
|
+
}
|
|
2075
|
+
initOptions(c) {
|
|
2076
|
+
c.name && c.name !== this.options.name && a.error((0, d.getShortErrorMsg)(d.RUNTIME_010, d.runtimeDescMap)), this.registerPlugins(c.plugins);
|
|
2077
|
+
const h = this.formatOptions(this.options, c);
|
|
2078
|
+
return this.options = h, h;
|
|
2079
|
+
}
|
|
2080
|
+
async loadShare(c, h) {
|
|
2081
|
+
return this.sharedHandler.loadShare(c, h);
|
|
2082
|
+
}
|
|
2083
|
+
loadShareSync(c, h) {
|
|
2084
|
+
return this.sharedHandler.loadShareSync(c, h);
|
|
2085
|
+
}
|
|
2086
|
+
initializeSharing(c = l.DEFAULT_SCOPE, h) {
|
|
2087
|
+
return this.sharedHandler.initializeSharing(c, h);
|
|
2088
|
+
}
|
|
2089
|
+
initRawContainer(c, h, t) {
|
|
2090
|
+
const I = g.getRemoteInfo({
|
|
2091
|
+
name: c,
|
|
2092
|
+
entry: h
|
|
2093
|
+
}), s = new u.Module({
|
|
2094
|
+
host: this,
|
|
2095
|
+
remoteInfo: I
|
|
2096
|
+
});
|
|
2097
|
+
return s.remoteEntryExports = t, this.moduleCache.set(c, s), s;
|
|
2098
|
+
}
|
|
2099
|
+
async loadRemote(c, h) {
|
|
2100
|
+
return this.remoteHandler.loadRemote(c, h);
|
|
2101
|
+
}
|
|
2102
|
+
async preloadRemote(c) {
|
|
2103
|
+
return this.remoteHandler.preloadRemote(c);
|
|
2104
|
+
}
|
|
2105
|
+
initShareScopeMap(c, h, t = {}) {
|
|
2106
|
+
this.sharedHandler.initShareScopeMap(c, h, t);
|
|
2107
|
+
}
|
|
2108
|
+
formatOptions(c, h) {
|
|
2109
|
+
const { allShareInfos: t } = y.formatShareConfigs(c, h), { userOptions: I, options: s } = this.hooks.lifecycle.beforeInit.emit({
|
|
2110
|
+
origin: this,
|
|
2111
|
+
userOptions: h,
|
|
2112
|
+
options: c,
|
|
2113
|
+
shareInfo: t
|
|
2114
|
+
}), b = this.remoteHandler.formatAndRegisterRemote(s, I), { allShareInfos: R } = this.sharedHandler.registerShared(s, I), q = [...s.plugins];
|
|
2115
|
+
I.plugins && I.plugins.forEach((H) => {
|
|
2116
|
+
q.includes(H) || q.push(H);
|
|
2117
|
+
});
|
|
2118
|
+
const $ = {
|
|
2119
|
+
...c,
|
|
2120
|
+
...h,
|
|
2121
|
+
plugins: q,
|
|
2122
|
+
remotes: b,
|
|
2123
|
+
shared: R
|
|
2124
|
+
};
|
|
2125
|
+
return this.hooks.lifecycle.init.emit({
|
|
2126
|
+
origin: this,
|
|
2127
|
+
options: $
|
|
2128
|
+
}), $;
|
|
2129
|
+
}
|
|
2130
|
+
registerPlugins(c) {
|
|
2131
|
+
const h = _.registerPlugins(c, this);
|
|
2132
|
+
this.options.plugins = this.options.plugins.reduce((t, I) => (I && t && !t.find((s) => s.name === I.name) && t.push(I), t), h || []);
|
|
2133
|
+
}
|
|
2134
|
+
registerRemotes(c, h) {
|
|
2135
|
+
return this.remoteHandler.registerRemotes(c, h);
|
|
2136
|
+
}
|
|
2137
|
+
registerShared(c) {
|
|
2138
|
+
this.sharedHandler.registerShared(this.options, {
|
|
2139
|
+
...this.options,
|
|
2140
|
+
shared: c
|
|
2141
|
+
});
|
|
2142
|
+
}
|
|
2143
|
+
};
|
|
2144
|
+
return Te.ModuleFederation = A, Te;
|
|
2145
|
+
}
|
|
2146
|
+
var Ne = {}, Me = {}, mt;
|
|
2147
|
+
function Ht() {
|
|
2148
|
+
if (mt) return Me;
|
|
2149
|
+
mt = 1;
|
|
2150
|
+
var a = Object.defineProperty, l = (y, p) => {
|
|
2151
|
+
let _ = {};
|
|
2152
|
+
for (var g in y)
|
|
2153
|
+
a(_, g, {
|
|
2154
|
+
get: y[g],
|
|
2155
|
+
enumerable: !0
|
|
2156
|
+
});
|
|
2157
|
+
return p || a(_, Symbol.toStringTag, { value: "Module" }), _;
|
|
2158
|
+
};
|
|
2159
|
+
return Me.__exportAll = l, Me;
|
|
2160
|
+
}
|
|
2161
|
+
var _t;
|
|
2162
|
+
function wt() {
|
|
2163
|
+
return _t || (_t = 1, (function(a) {
|
|
2164
|
+
var y = /* @__PURE__ */ Ht().__exportAll({});
|
|
2165
|
+
Object.defineProperty(a, "type_exports", {
|
|
2166
|
+
enumerable: !0,
|
|
2167
|
+
get: function() {
|
|
2168
|
+
return y;
|
|
2169
|
+
}
|
|
2170
|
+
});
|
|
2171
|
+
})(Ne)), Ne;
|
|
2172
|
+
}
|
|
2173
|
+
var gt;
|
|
2174
|
+
function Lt() {
|
|
2175
|
+
return gt || (gt = 1, (function(a) {
|
|
2176
|
+
Object.defineProperty(a, Symbol.toStringTag, { value: "Module" });
|
|
2177
|
+
const l = L(), y = B(), p = K(), _ = Et(), g = te(), u = ie(), m = J();
|
|
2178
|
+
V();
|
|
2179
|
+
const T = At(), f = Ge(), S = Pt(), e = wt();
|
|
2180
|
+
let E = /* @__PURE__ */ D();
|
|
2181
|
+
const k = T.default;
|
|
2182
|
+
a.CurrentGlobal = p.CurrentGlobal, a.Global = p.Global, a.Module = f.Module, a.ModuleFederation = S.ModuleFederation, a.addGlobalSnapshot = p.addGlobalSnapshot, a.assert = l.assert, a.getGlobalFederationConstructor = p.getGlobalFederationConstructor, a.getGlobalSnapshot = p.getGlobalSnapshot, a.getInfoWithoutType = p.getInfoWithoutType, a.getRegisteredShare = g.getRegisteredShare, a.getRemoteEntry = m.getRemoteEntry, a.getRemoteInfo = m.getRemoteInfo, a.helpers = k, a.isStaticResourcesEqual = y.isStaticResourcesEqual, Object.defineProperty(a, "loadScript", {
|
|
2183
|
+
enumerable: !0,
|
|
2184
|
+
get: function() {
|
|
2185
|
+
return E.loadScript;
|
|
2186
|
+
}
|
|
2187
|
+
}), Object.defineProperty(a, "loadScriptNode", {
|
|
2188
|
+
enumerable: !0,
|
|
2189
|
+
get: function() {
|
|
2190
|
+
return E.loadScriptNode;
|
|
2191
|
+
}
|
|
2192
|
+
}), a.matchRemoteWithNameAndExpose = u.matchRemoteWithNameAndExpose, a.registerGlobalPlugins = p.registerGlobalPlugins, a.resetFederationGlobalInfo = p.resetFederationGlobalInfo, a.safeWrapper = y.safeWrapper, a.satisfy = _.satisfy, a.setGlobalFederationConstructor = p.setGlobalFederationConstructor, a.setGlobalFederationInstance = p.setGlobalFederationInstance, Object.defineProperty(a, "types", {
|
|
2193
|
+
enumerable: !0,
|
|
2194
|
+
get: function() {
|
|
2195
|
+
return e.type_exports;
|
|
2196
|
+
}
|
|
2197
|
+
});
|
|
2198
|
+
})(Se)), Se;
|
|
2199
|
+
}
|
|
2200
|
+
export {
|
|
2201
|
+
Lt as r
|
|
2202
|
+
};
|