@sapui5/sap.ushell 1.114.1 → 1.114.2
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/package.json +1 -1
- package/src/main/js/sap/ushell/.library +1 -1
- package/src/main/js/sap/ushell/Fiori20Adapter.js +1 -1
- package/src/main/js/sap/ushell/Fiori20AdapterTest.js +1 -1
- package/src/main/js/sap/ushell/NWBCInterface.js +1 -1
- package/src/main/js/sap/ushell/TechnicalParameters.js +1 -1
- package/src/main/js/sap/ushell/URLTemplateProcessor.js +1 -1
- package/src/main/js/sap/ushell/Ui5NativeServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/Ui5ServiceFactory.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/DefinitionParameterSetBuilder.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/DependencyGraph.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/Functions.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/Resolvers.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/TemplateParameterParser.js +1 -1
- package/src/main/js/sap/ushell/_URLTemplateProcessor/utils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/CommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PagesCommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/modifyHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/_LaunchPage/uri.transform.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/AppForInbound.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/util/cdmSiteUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/AdapterBase.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/StaticGroupsAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readApplications.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readCatalogs.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readHome.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readPages.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readUtils.js +1 -1
- package/src/main/js/sap/ushell/adapters/cdm/v3/_LaunchPage/readVisualizations.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cep/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/cflp/UserDefaultParameterPersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AdapterContainer.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/AppStateAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/LaunchPageAdapter.js +2 -2
- package/src/main/js/sap/ushell/adapters/local/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PageBuildingAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PagePersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SearchCEPAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserDefaultParameterPersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell/adapters/local/UserInfoAdapter.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/Component.js +8 -8
- package/src/main/js/sap/ushell/appRuntime/ui5/services/adapters/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/logger.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/_SchedulingAgent/state.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.configure.ui5datetimeformat.js +1 -1
- package/src/main/js/sap/ushell/bootstrap/common/common.create.configcontract.core.js +17 -0
- package/src/main/js/sap/ushell/components/appfinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/Storage.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/Application.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/application/BlueBoxHandler.js +8 -2
- package/src/main/js/sap/ushell/components/applicationIntegration/application/PostMessageAPI.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/configuration/AppMeta.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/elements/model.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedServices/RelatedServices.js +1 -1
- package/src/main/js/sap/ushell/components/applicationIntegration/relatedShellElements/RelatedShellElements.js +1 -1
- package/src/main/js/sap/ushell/components/container/ApplicationContainer.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/AppSearch.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/ContentFinderDialog.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/controller/WidgetGallery.controller.js +1 -1
- package/src/main/js/sap/ushell/components/contentFinder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/factsheet/Component.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.controller.js +25 -0
- package/src/main/js/sap/ushell/components/homepage/DashboardContent.view.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardGroupsBox.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/DashboardUIActions.js +1 -1
- package/src/main/js/sap/ushell/components/homepage/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/pages/ActionMode.js +1 -1
- package/src/main/js/sap/ushell/components/pages/Component.js +1 -1
- package/src/main/js/sap/ushell/components/pages/MyHomeImport.js +1 -1
- package/src/main/js/sap/ushell/components/pages/controller/PageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/pages/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/controller/RuntimeSwitcher.controller.js +1 -1
- package/src/main/js/sap/ushell/components/runtimeSwitcher/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/MenuBar/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/controller/NavigationBarMenu.controller.js +176 -40
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/CustomTreeItem.fragment.xml +4 -4
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/NavigationBarMenu.view.xml +1 -0
- package/src/main/js/sap/ushell/components/shell/NavigationBarMenu/view/NavigationBarMenuPopover.fragment.xml +8 -1
- package/src/main/js/sap/ushell/components/shell/Notifications/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/PostLoadingHeaderEnhancement/Component.js +1 -3
- package/src/main/js/sap/ushell/components/shell/ProductSwitch/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Search/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/FrequentActivityProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/NavigationSvcSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/RecentSearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/SearchCEP/SearchProviders/SearchProvider.js +1 -1
- package/src/main/js/sap/ushell/components/shell/Settings/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserActionsMenu/Component.js +1 -1
- package/src/main/js/sap/ushell/components/shell/UserImage/Component.js +1 -1
- package/src/main/js/sap/ushell/components/visualizationOrganizer/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.accessibility.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controller/WorkPageBuilder.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageButton.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageCell.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumn.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageColumnResizer.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/controls/WorkPageRow.js +1 -1
- package/src/main/js/sap/ushell/components/workPageBuilder/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/Component.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/controller/WorkPageRuntime.controller.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/manifest.json +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/services/NavigationResolver.js +1 -1
- package/src/main/js/sap/ushell/components/workPageRuntime/services/WorkPage.js +1 -1
- package/src/main/js/sap/ushell/designtime/ApplicationContainer.designtime.js +1 -1
- package/src/main/js/sap/ushell/library.js +1 -1
- package/src/main/js/sap/ushell/navigationMode.js +1 -1
- package/src/main/js/sap/ushell/performance/ShellAnalytics.js +1 -1
- package/src/main/js/sap/ushell/performance/StatisticalRecord.js +1 -1
- package/src/main/js/sap/ushell/plugins/appwarmup/Component.js +1 -1
- package/src/main/js/sap/ushell/renderers/fiori2/Renderer.js +2 -2
- package/src/main/js/sap/ushell/renderers/fiori2/resources/resources.properties +2 -0
- package/src/main/js/sap/ushell/renderers/fiori2/search/searchComponent/manifest.json +1 -1
- package/src/main/js/sap/ushell/services/AppConfiguration.js +24 -2
- package/src/main/js/sap/ushell/services/AppLifeCycle.js +1 -1
- package/src/main/js/sap/ushell/services/AppState.js +1 -1
- package/src/main/js/sap/ushell/services/Bookmark.js +1 -1
- package/src/main/js/sap/ushell/services/ClientSideTargetResolution.js +1 -1
- package/src/main/js/sap/ushell/services/CommonDataModel.js +1 -1
- package/src/main/js/sap/ushell/services/Configuration.js +1 -1
- package/src/main/js/sap/ushell/services/ConfigurationDefaults.js +1 -1
- package/src/main/js/sap/ushell/services/ContentExtensionAdapterFactory.js +1 -1
- package/src/main/js/sap/ushell/services/CrossApplicationNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/DarkModeSupport.js +1 -1
- package/src/main/js/sap/ushell/services/LaunchPage.js +1 -1
- package/src/main/js/sap/ushell/services/Menu.js +1 -1
- package/src/main/js/sap/ushell/services/Message.js +1 -1
- package/src/main/js/sap/ushell/services/MessageBroker.js +1 -1
- package/src/main/js/sap/ushell/services/NavigationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/PageBuilding.js +1 -1
- package/src/main/js/sap/ushell/services/PagePersistence.js +1 -1
- package/src/main/js/sap/ushell/services/PageReferencing.js +1 -1
- package/src/main/js/sap/ushell/services/Pages.js +1 -1
- package/src/main/js/sap/ushell/services/Personalization.js +1 -1
- package/src/main/js/sap/ushell/services/PluginManager.js +1 -1
- package/src/main/js/sap/ushell/services/ReferenceResolver.js +1 -1
- package/src/main/js/sap/ushell/services/Search.js +1 -1
- package/src/main/js/sap/ushell/services/SearchCEP.js +1 -1
- package/src/main/js/sap/ushell/services/SearchableContent.js +1 -1
- package/src/main/js/sap/ushell/services/SmartNavigation.js +1 -1
- package/src/main/js/sap/ushell/services/SpaceContent.js +1 -1
- package/src/main/js/sap/ushell/services/URLShortening.js +1 -1
- package/src/main/js/sap/ushell/services/URLTemplate.js +1 -1
- package/src/main/js/sap/ushell/services/Ui5ComponentLoader.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameterPersistence.js +1 -1
- package/src/main/js/sap/ushell/services/UserDefaultParameters.js +1 -1
- package/src/main/js/sap/ushell/services/UserInfo.js +1 -1
- package/src/main/js/sap/ushell/services/UserRecents.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationDataProvider.js +1 -1
- package/src/main/js/sap/ushell/services/VisualizationInstantiation.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Formatter.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundIndex.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/InboundProvider.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/PrelaunchOperations.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Search.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/StagedLogger.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/SystemContext.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/Utils.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/VirtualInbounds.js +1 -1
- package/src/main/js/sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing.js +1 -1
- package/src/main/js/sap/ushell/services/_CommonDataModel/SiteConverter.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig.js +1 -1
- package/src/main/js/sap/ushell/services/_CrossApplicationNavigation/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_MessageBroker/MessageBrokerEngine.js +1 -1
- package/src/main/js/sap/ushell/services/_PageReferencing/PageReferencer.js +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/Extensions.js +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/HeaderExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/_PluginManager/MenuExtensions.js +1 -1
- package/src/main/js/sap/ushell/services/_Ui5ComponentLoader/utils.js +1 -1
- package/src/main/js/sap/ushell/services/_VisualizationInstantiation/VizInstanceLink.js +1 -1
- package/src/main/js/sap/ushell/support/plugins/flpConfig/FlpConfigurationPlugin.js +1 -1
- package/src/main/js/sap/ushell/themes/base/ShellAppTitle.less +10 -27
- package/src/main/js/sap/ushell/themes/sap_belize/ShellHeader.less +1 -11
- package/src/main/js/sap/ushell/themes/sap_belize_hcb/ShellHeader.less +0 -11
- package/src/main/js/sap/ushell/themes/sap_belize_hcw/ShellHeader.less +1 -13
- package/src/main/js/sap/ushell/themes/sap_fiori_3/ShellHeader.less +1 -9
- package/src/main/js/sap/ushell/themes/sap_fiori_3_dark/ShellHeader.less +1 -9
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcb/ShellHeader.less +1 -10
- package/src/main/js/sap/ushell/themes/sap_fiori_3_hcw/ShellHeader.less +0 -12
- package/src/main/js/sap/ushell/themes/sap_hcb/ShellHeader.less +0 -12
- package/src/main/js/sap/ushell/themes/sap_horizon/ShellAppTitle.less +1 -9
- package/src/main/js/sap/ushell/themes/sap_horizon_dark/ShellAppTitle.less +1 -7
- package/src/main/js/sap/ushell/themes/sap_horizon_hcb/ShellAppTitle.less +0 -9
- package/src/main/js/sap/ushell/themes/sap_horizon_hcw/ShellAppTitle.less +0 -11
- package/src/main/js/sap/ushell/ui/ShellHeader.fragment.xml +5 -1
- package/src/main/js/sap/ushell/ui/ShellHeader.js +5 -1
- package/src/main/js/sap/ushell/ui/ShellHeaderRenderer.js +1 -1
- package/src/main/js/sap/ushell/ui/cards/RecentActivitiesExtension.js +1 -1
- package/src/main/js/sap/ushell/ui/contentFinder/AppBox.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/ExtendedChangeDetection.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Page.js +1 -1
- package/src/main/js/sap/ushell/ui/launchpad/Section.js +2 -2
- package/src/main/js/sap/ushell/ui/launchpad/section/CompactArea.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellAppTitle.js +115 -63
- package/src/main/js/sap/ushell/ui/shell/ShellHeadItem.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ShellNavigationMenu.js +30 -62
- package/src/main/js/sap/ushell/ui/shell/SysInfoBar.js +1 -1
- package/src/main/js/sap/ushell/ui/shell/ToolAreaItem.js +1 -1
- package/src/main/js/sap/ushell/ui/utils.js +1 -1
- package/src/main/js/sap/ushell/ui5service/ShellUIService.js +1 -1
- package/src/main/js/sap/ushell/ui5service/UserStatus.js +1 -1
- package/src/main/js/sap/ushell/utils/UrlShortening.js +1 -1
- package/src/test/js/sap/ushell/bootstrap/sandbox.js +1 -1
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n.properties +0 -5
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_ar.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_bg.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_ca.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_cs.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_cy.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_da.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_de.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_el.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_en.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_en_GB.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_en_US_sappsd.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_en_US_saprigi.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_en_US_saptrc.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_es.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_es_MX.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_et.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_fi.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_fr.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_fr_CA.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_hi.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_hr.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_hu.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_id.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_it.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_iw.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_ja.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_kk.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_ko.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_lt.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_lv.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_ms.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_nl.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_no.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_pl.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_pt.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_pt_PT.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_ro.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_ru.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_sh.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_sk.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_sl.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_sv.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_th.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_tr.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_uk.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_vi.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_zh_CN.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/i18n/i18n_zh_TW.properties +0 -2
- package/src/main/js/sap/ushell/appRuntime/ui5/plugins/scriptAgent/manifest.json +0 -66
|
@@ -8,52 +8,70 @@
|
|
|
8
8
|
* 1. Title only: only the title will be rendered inside the Shell Header
|
|
9
9
|
* 2. Title with popover button: A button will be placed in the Shell Header Title area.
|
|
10
10
|
* When the user clicks on the button, a popover will raise and render the innerControl as its content.
|
|
11
|
-
*
|
|
12
11
|
* innerControl: the content of the popover. Will be destroyed by the ShellAppTitle control.
|
|
13
12
|
*/
|
|
14
13
|
sap.ui.define([
|
|
15
|
-
"sap/ushell/library",
|
|
16
14
|
"sap/m/Bar",
|
|
17
15
|
"sap/m/Button",
|
|
18
|
-
"sap/m/
|
|
16
|
+
"sap/m/Label",
|
|
19
17
|
"sap/m/library",
|
|
18
|
+
"sap/m/OverflowToolbar",
|
|
19
|
+
"sap/m/OverflowToolbarLayoutData",
|
|
20
|
+
"sap/m/OverflowToolbarPriority",
|
|
20
21
|
"sap/m/Popover",
|
|
21
22
|
"sap/m/ResponsivePopover",
|
|
23
|
+
"sap/m/Title",
|
|
22
24
|
"sap/m/ToggleButton",
|
|
23
25
|
"sap/ui/core/Core",
|
|
26
|
+
"sap/ui/core/Icon",
|
|
24
27
|
"sap/ui/core/IconPool",
|
|
25
28
|
"sap/ui/Device",
|
|
29
|
+
"sap/ui/performance/Measurement",
|
|
26
30
|
"sap/ushell/Config",
|
|
27
|
-
"sap/ushell/
|
|
31
|
+
"sap/ushell/library",
|
|
28
32
|
"sap/ushell/resources",
|
|
29
|
-
"sap/ui/
|
|
30
|
-
"sap/ushell/services/AllMyApps"
|
|
33
|
+
"sap/ushell/ui/launchpad/AccessibilityCustomData"
|
|
31
34
|
], function (
|
|
32
|
-
library,
|
|
33
35
|
Bar,
|
|
34
36
|
Button,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
Label,
|
|
38
|
+
mobileLibrary,
|
|
39
|
+
OverflowToolbar,
|
|
40
|
+
OverflowToolbarLayoutData,
|
|
41
|
+
OverflowToolbarPriority,
|
|
37
42
|
Popover,
|
|
38
43
|
ResponsivePopover,
|
|
44
|
+
Title,
|
|
39
45
|
ToggleButton,
|
|
40
46
|
Core,
|
|
47
|
+
Icon,
|
|
41
48
|
IconPool,
|
|
42
49
|
Device,
|
|
50
|
+
Measurement,
|
|
43
51
|
Config,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
52
|
+
ushellLibrary,
|
|
53
|
+
ushellResources,
|
|
54
|
+
AccessibilityCustomData
|
|
47
55
|
) {
|
|
48
56
|
"use strict";
|
|
49
57
|
|
|
50
|
-
|
|
51
|
-
var
|
|
52
|
-
|
|
58
|
+
// shortcut for sap.ushell.AppTitleState
|
|
59
|
+
var AppTitleState = ushellLibrary.AppTitleState;
|
|
60
|
+
|
|
61
|
+
// shortcut for sap.ushell.AllMyAppsState
|
|
62
|
+
var AllMyAppsState = ushellLibrary.AllMyAppsState;
|
|
63
|
+
|
|
64
|
+
// shortcut for sap.m.PlacementType
|
|
65
|
+
var PlacementType = mobileLibrary.PlacementType;
|
|
53
66
|
|
|
54
67
|
var ShellAppTitle = Button.extend("sap.ushell.ui.shell.ShellAppTitle", {
|
|
55
68
|
metadata: {
|
|
56
69
|
library: "sap.ushell",
|
|
70
|
+
properties: {
|
|
71
|
+
title: { type: "string", group: "Data", defaultValue: null },
|
|
72
|
+
subTitle: { type: "string", group: "Data", defaultValue: null },
|
|
73
|
+
icon: { type: "sap.ui.core.URI", group: "Appearance", defaultValue: "sap-icon://folder" }
|
|
74
|
+
},
|
|
57
75
|
associations: {
|
|
58
76
|
navigationMenu: {
|
|
59
77
|
type: "sap.ushell.ui.shell.ShellNavigationMenu"
|
|
@@ -74,10 +92,9 @@ sap.ui.define([
|
|
|
74
92
|
apiVersion: 2,
|
|
75
93
|
render: function (oRm, oControl) {
|
|
76
94
|
// Calculate visibility of the ShellAppTitle control and the state of the ShallNavMenu/AllMyAps UIs
|
|
77
|
-
var bShellAppTitleIsVisible = oControl._getControlVisibilityAndState()
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
95
|
+
var bShellAppTitleIsVisible = oControl._getControlVisibilityAndState();
|
|
96
|
+
var sText = oControl.getText();
|
|
97
|
+
var oModel = oControl.getModel();
|
|
81
98
|
|
|
82
99
|
oRm.openStart("h1", oControl);
|
|
83
100
|
oRm.class("sapUshellHeadTitle");
|
|
@@ -101,9 +118,9 @@ sap.ui.define([
|
|
|
101
118
|
oRm.attr("role", "button");
|
|
102
119
|
oRm.attr("aria-haspopup", "dialog");
|
|
103
120
|
if (oModel && ShellAppTitle._getCurrentState() === AppTitleState.AllMyAppsOnly) {
|
|
104
|
-
oRm.attr("aria-label",
|
|
121
|
+
oRm.attr("aria-label", ushellResources.i18n.getText("ShowAllMyApps_AriaLabel", [sText]));
|
|
105
122
|
} else {
|
|
106
|
-
oRm.attr("aria-label",
|
|
123
|
+
oRm.attr("aria-label", ushellResources.i18n.getText("ShellNavigationMenu_AriaLabel", [sText]));
|
|
107
124
|
}
|
|
108
125
|
}
|
|
109
126
|
oRm.openEnd(); // span - tag
|
|
@@ -246,10 +263,10 @@ sap.ui.define([
|
|
|
246
263
|
"FLP"
|
|
247
264
|
);
|
|
248
265
|
|
|
249
|
-
var oModel = this.getModel()
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
266
|
+
var oModel = this.getModel();
|
|
267
|
+
var sShellStateName = Config.last("/core/shell/model/currentState/stateName");
|
|
268
|
+
var bNavMenuEnabled = this._isNavMenuEnabled();
|
|
269
|
+
var bVisible = bNavMenuEnabled;
|
|
253
270
|
|
|
254
271
|
if (!oModel) {
|
|
255
272
|
return false;
|
|
@@ -285,7 +302,7 @@ sap.ui.define([
|
|
|
285
302
|
/****************************************** Create Popover UI ******************************************/
|
|
286
303
|
|
|
287
304
|
/*
|
|
288
|
-
* Create and return the popover object that will
|
|
305
|
+
* Create and return the popover object that will contain the AllMyApps UI
|
|
289
306
|
*/
|
|
290
307
|
ShellAppTitle.prototype._createAllMyAppsPopover = function () {
|
|
291
308
|
var oAllMyApps = Core.byId(this.getAllMyApps());
|
|
@@ -316,9 +333,9 @@ sap.ui.define([
|
|
|
316
333
|
oAllMyAppsPopover.attachAfterOpen(function () {
|
|
317
334
|
oAllMyApps.getController()._afterOpen();
|
|
318
335
|
|
|
319
|
-
var oHeader = oAllMyAppsPopover.getCustomHeader()
|
|
320
|
-
|
|
321
|
-
|
|
336
|
+
var oHeader = oAllMyAppsPopover.getCustomHeader();
|
|
337
|
+
var oBackButton = oHeader.getContentLeft()[0];
|
|
338
|
+
var oToggleButton = oHeader.getContentLeft()[1];
|
|
322
339
|
|
|
323
340
|
if (oToggleButton.getVisible()) {
|
|
324
341
|
oToggleButton.firePress();
|
|
@@ -338,23 +355,48 @@ sap.ui.define([
|
|
|
338
355
|
};
|
|
339
356
|
|
|
340
357
|
/*
|
|
341
|
-
* Create and return the popover object that will
|
|
358
|
+
* Create and return the popover object that will contain the ShellNavMenu UI
|
|
342
359
|
*/
|
|
343
360
|
ShellAppTitle.prototype._createNavMenuPopover = function () {
|
|
344
361
|
var oNavMenu = Core.byId(this.getNavigationMenu());
|
|
345
362
|
|
|
363
|
+
this.oTitle = new Label("navMenuInnerTitle", {
|
|
364
|
+
design: "Bold",
|
|
365
|
+
text: "{/application/title}",
|
|
366
|
+
layoutData: new OverflowToolbarLayoutData({
|
|
367
|
+
priority: OverflowToolbarPriority.High,
|
|
368
|
+
shrinkable: false
|
|
369
|
+
})
|
|
370
|
+
});
|
|
371
|
+
this.oSecondTitle = new Label("navMenuInnerSecondTitle", {
|
|
372
|
+
text: "{/title}",
|
|
373
|
+
layoutData: new OverflowToolbarLayoutData({
|
|
374
|
+
priority: OverflowToolbarPriority.Low,
|
|
375
|
+
shrinkable: false
|
|
376
|
+
})
|
|
377
|
+
});
|
|
378
|
+
this.oIconControl = new Icon({
|
|
379
|
+
src: "{/application/icon}",
|
|
380
|
+
layoutData: new OverflowToolbarLayoutData({
|
|
381
|
+
priority: OverflowToolbarPriority.NeverOverflow,
|
|
382
|
+
shrinkable: false
|
|
383
|
+
})
|
|
384
|
+
});
|
|
385
|
+
|
|
386
|
+
this.oTitleBar = new OverflowToolbar("navMenuTitleBar", {
|
|
387
|
+
content: [this.oIconControl, this.oTitle, this.oSecondTitle]
|
|
388
|
+
});
|
|
389
|
+
|
|
346
390
|
var oNavMenuPopover = new Popover("sapUshellAppTitlePopover", {
|
|
347
391
|
placement: PlacementType.Bottom,
|
|
348
|
-
title: "",
|
|
349
392
|
showArrow: true,
|
|
350
|
-
showHeader:
|
|
351
|
-
path: "/ShellAppTitleState",
|
|
352
|
-
formatter: function (oCurrentState) {
|
|
353
|
-
return oCurrentState !== AppTitleState.ShellNavMenu;
|
|
354
|
-
}
|
|
355
|
-
},
|
|
393
|
+
showHeader: false,
|
|
356
394
|
contentWidth: "20rem",
|
|
357
|
-
|
|
395
|
+
horizontalScrolling: false,
|
|
396
|
+
content: [
|
|
397
|
+
this.oTitleBar,
|
|
398
|
+
oNavMenu
|
|
399
|
+
]
|
|
358
400
|
}).addStyleClass("sapContrastPlus");
|
|
359
401
|
|
|
360
402
|
if (Config.last("/core/services/allMyApps/enabled")) {
|
|
@@ -392,15 +434,27 @@ sap.ui.define([
|
|
|
392
434
|
return oNavMenuPopover;
|
|
393
435
|
};
|
|
394
436
|
|
|
437
|
+
ShellAppTitle.prototype._setAllMyAppsTitle = function (text) {
|
|
438
|
+
var oCurrentState = Config.last("/core/shellHeader");
|
|
439
|
+
if (oCurrentState.title && oCurrentState.ShellAppTitleState === "AllMyAppsOnly" || oCurrentState.ShellAppTitleState === "AllMyApps") {
|
|
440
|
+
text = text + " - " + oCurrentState.title;
|
|
441
|
+
}
|
|
442
|
+
Title.prototype.setText.apply(this, [text]);
|
|
443
|
+
};
|
|
444
|
+
|
|
395
445
|
/*
|
|
396
|
-
|
|
397
|
-
|
|
446
|
+
* Create and return the popover header, containing back button and toggle button
|
|
447
|
+
*/
|
|
398
448
|
ShellAppTitle.prototype._getPopoverHeader = function () {
|
|
399
449
|
var oAllMyAppsTitle = new Title({
|
|
400
|
-
text:
|
|
450
|
+
text: ushellResources.i18n.getText("allMyApps_headerTitle"),
|
|
401
451
|
level: "H1"
|
|
402
452
|
});
|
|
403
453
|
|
|
454
|
+
// The title is set in three different places (ShellAppTitle, AllMyApps.controller, ShellModel).
|
|
455
|
+
// To ensure correct title set if a subtitle is given, we override the setter to ensure the logic is only done once.
|
|
456
|
+
oAllMyAppsTitle.setText = this._setAllMyAppsTitle.bind(oAllMyAppsTitle);
|
|
457
|
+
|
|
404
458
|
var oPopoverHeader = new Bar("sapUshellShellAppPopoverHeader", {
|
|
405
459
|
contentLeft: [
|
|
406
460
|
this._createPopoverBackButton(),
|
|
@@ -419,15 +473,15 @@ sap.ui.define([
|
|
|
419
473
|
};
|
|
420
474
|
|
|
421
475
|
/*
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
476
|
+
* Popover Back Button functionality:
|
|
477
|
+
* 1. In case the Master area is in first level - switch to ShellNavMenu
|
|
478
|
+
* 2. In case the Master area is in second level - return the Master area to the first level (call switchToInitialState)
|
|
479
|
+
*/
|
|
426
480
|
ShellAppTitle.prototype._createPopoverBackButton = function () {
|
|
427
481
|
var oBackButton = new Button("sapUshellAppTitleBackButton", {
|
|
428
482
|
icon: IconPool.getIconURI("nav-back"),
|
|
429
483
|
press: [this._popoverBackButtonPressHandler, this],
|
|
430
|
-
tooltip:
|
|
484
|
+
tooltip: ushellResources.i18n.getText("backBtn_tooltip"),
|
|
431
485
|
visible: this.getAllMyAppsController().getBackButtonVisible()
|
|
432
486
|
});
|
|
433
487
|
oBackButton.addStyleClass("sapUshellCatalogNewGroupBackButton");
|
|
@@ -436,8 +490,8 @@ sap.ui.define([
|
|
|
436
490
|
};
|
|
437
491
|
|
|
438
492
|
ShellAppTitle.prototype._popoverBackButtonPressHandler = function () {
|
|
439
|
-
var oAllMyAppsController = this.getAllMyAppsController()
|
|
440
|
-
|
|
493
|
+
var oAllMyAppsController = this.getAllMyAppsController();
|
|
494
|
+
var oAllMyAppsState = oAllMyAppsController.getCurrentState();
|
|
441
495
|
|
|
442
496
|
// In case of clicking "back" when in FIRST_LEVEL - switch to ShellNavMenu
|
|
443
497
|
if ((oAllMyAppsState === AllMyAppsState.FirstLevel) ||
|
|
@@ -458,8 +512,8 @@ sap.ui.define([
|
|
|
458
512
|
};
|
|
459
513
|
|
|
460
514
|
/*
|
|
461
|
-
|
|
462
|
-
|
|
515
|
+
* This button should be visible only on devices, and is used for toggling between the master and the details areas
|
|
516
|
+
*/
|
|
463
517
|
ShellAppTitle.prototype._createPopoverToggleButton = function () {
|
|
464
518
|
var oAllMyAppsController = this.getAllMyAppsController();
|
|
465
519
|
|
|
@@ -468,10 +522,10 @@ sap.ui.define([
|
|
|
468
522
|
press: function (eEvent) {
|
|
469
523
|
oAllMyAppsController.switchToInitialState();
|
|
470
524
|
this.setTooltip(eEvent.getParameter("pressed") ?
|
|
471
|
-
|
|
472
|
-
|
|
525
|
+
ushellResources.i18n.getText("ToggleButtonHide") :
|
|
526
|
+
ushellResources.i18n.getText("ToggleButtonShow"));
|
|
473
527
|
},
|
|
474
|
-
tooltip:
|
|
528
|
+
tooltip: ushellResources.i18n.getText("ToggleButtonShow"),
|
|
475
529
|
visible: oAllMyAppsController.getToggleListButtonVisible()
|
|
476
530
|
});
|
|
477
531
|
|
|
@@ -485,14 +539,12 @@ sap.ui.define([
|
|
|
485
539
|
};
|
|
486
540
|
|
|
487
541
|
/*
|
|
488
|
-
|
|
489
|
-
|
|
542
|
+
* Create and return the popover footer, containing a button for switching from ShellNavMenu to AllMyApps
|
|
543
|
+
*/
|
|
490
544
|
ShellAppTitle.prototype._getPopoverFooterContent = function () {
|
|
491
|
-
var that = this
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
oAllMyAppsButton = new Button("allMyAppsButton", {
|
|
495
|
-
text: oResources.i18n.getText("allMyApps_launchingButtonTitle"),
|
|
545
|
+
var that = this;
|
|
546
|
+
var oAllMyAppsButton = new Button("allMyAppsButton", {
|
|
547
|
+
text: ushellResources.i18n.getText("allMyApps_launchingButtonTitle"),
|
|
496
548
|
press: function () {
|
|
497
549
|
that._openCloseAllMyAppsPopover();
|
|
498
550
|
|
|
@@ -519,7 +571,7 @@ sap.ui.define([
|
|
|
519
571
|
contentMiddle: [oAllMyAppsButton]
|
|
520
572
|
});
|
|
521
573
|
this.addCustomData(oAllMyAppsButton, "role", "button");
|
|
522
|
-
this.addCustomData(oAllMyAppsButton, "aria-label",
|
|
574
|
+
this.addCustomData(oAllMyAppsButton, "aria-label", ushellResources.i18n.getText("allMyApps_launchingButtonTitle"));
|
|
523
575
|
return oPopoverFooterContent;
|
|
524
576
|
};
|
|
525
577
|
|
|
@@ -568,8 +620,8 @@ sap.ui.define([
|
|
|
568
620
|
ShellAppTitle.prototype.onsapenter = ShellAppTitle.prototype.onclick;
|
|
569
621
|
|
|
570
622
|
ShellAppTitle.prototype.exit = function () {
|
|
571
|
-
var oNavMenu = Core.byId(this.getNavigationMenu())
|
|
572
|
-
|
|
623
|
+
var oNavMenu = Core.byId(this.getNavigationMenu());
|
|
624
|
+
var oAllMyApps = Core.byId(this.getAllMyApps());
|
|
573
625
|
|
|
574
626
|
if (oNavMenu) {
|
|
575
627
|
oNavMenu.destroy();
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/base/Log",
|
|
8
8
|
"sap/m/FlexBox",
|
|
9
|
-
"sap/m/Bar",
|
|
10
|
-
"sap/ui/core/Icon",
|
|
11
|
-
"sap/m/Title",
|
|
12
9
|
"sap/m/Label",
|
|
13
10
|
"sap/m/List",
|
|
14
11
|
"sap/m/VBox",
|
|
@@ -22,9 +19,6 @@ sap.ui.define([
|
|
|
22
19
|
], function (
|
|
23
20
|
Log,
|
|
24
21
|
FlexBox,
|
|
25
|
-
Bar,
|
|
26
|
-
Icon,
|
|
27
|
-
Title,
|
|
28
22
|
Label,
|
|
29
23
|
List,
|
|
30
24
|
VBox,
|
|
@@ -42,9 +36,6 @@ sap.ui.define([
|
|
|
42
36
|
metadata: {
|
|
43
37
|
library: "sap.ushell",
|
|
44
38
|
properties: {
|
|
45
|
-
title: { type: "string", group: "Misc", defaultValue: null },
|
|
46
|
-
description: { type: "string", group: "Misc", defaultValue: null },
|
|
47
|
-
icon: { type: "sap.ui.core.URI", group: "Appearance", defaultValue: null },
|
|
48
39
|
showRelatedApps: { type: "boolean", defaultValue: true }
|
|
49
40
|
},
|
|
50
41
|
aggregations: {
|
|
@@ -64,8 +55,6 @@ sap.ui.define([
|
|
|
64
55
|
oRm.openStart("div", oControl);
|
|
65
56
|
oRm.openEnd();
|
|
66
57
|
|
|
67
|
-
oRm.renderControl(oControl.oTitleBar);
|
|
68
|
-
|
|
69
58
|
if (oControl.oItemsList) {
|
|
70
59
|
// hierarchy list items
|
|
71
60
|
oRm.renderControl(oControl.oItemsList);
|
|
@@ -151,12 +140,10 @@ sap.ui.define([
|
|
|
151
140
|
|
|
152
141
|
/**
|
|
153
142
|
* as the structure of the content is
|
|
154
|
-
* FlexBox
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* .
|
|
159
|
-
* - FlexItem (no tab index) -> miniTile (tab index)
|
|
143
|
+
* FlexBox
|
|
144
|
+
* - FlexItem (no tab index) -> miniTile (tab index)
|
|
145
|
+
* ...
|
|
146
|
+
* - FlexItem (no tab index) -> miniTile (tab index)
|
|
160
147
|
*
|
|
161
148
|
* And we focus on the inner mini tile object, we must go up (by calling .parent())
|
|
162
149
|
* 2 times in order to gain reference to the parent container of all items
|
|
@@ -183,15 +170,7 @@ sap.ui.define([
|
|
|
183
170
|
};
|
|
184
171
|
|
|
185
172
|
KeyboardNavigation.prototype.leftRightHandler = function (e, isRight) {
|
|
186
|
-
var
|
|
187
|
-
currentItem,
|
|
188
|
-
nextItem,
|
|
189
|
-
nextItemIndex,
|
|
190
|
-
jqParent,
|
|
191
|
-
nextFocusIndex,
|
|
192
|
-
nextFocus,
|
|
193
|
-
jqFocused = jQuery(document.activeElement);
|
|
194
|
-
|
|
173
|
+
var jqFocused = jQuery(document.activeElement);
|
|
195
174
|
if (!jqFocused.hasClass("sapUshellNavMiniTile")) {
|
|
196
175
|
return false;
|
|
197
176
|
}
|
|
@@ -201,19 +180,21 @@ sap.ui.define([
|
|
|
201
180
|
// we will not find the next one.
|
|
202
181
|
// We must go one level up (by parent()) afterwards, run the selector and the actual item to focus on
|
|
203
182
|
// it the inner div (as explained before), therefore the next item for focus resides under children() selector
|
|
204
|
-
currentItem = jqFocused.parent();
|
|
183
|
+
var currentItem = jqFocused.parent();
|
|
205
184
|
|
|
206
185
|
// see what is the index of the item we have when using jQuery selector next/previous item
|
|
207
|
-
|
|
208
|
-
|
|
186
|
+
var fName = isRight ? "next" : "prev";
|
|
187
|
+
var nextItem = currentItem[fName]();
|
|
188
|
+
var nextItemIndex = nextItem.index();
|
|
209
189
|
|
|
210
190
|
// take reference to the parent (FlexBox) of the current item( As the current item is the Flex-Item which contains the current fqFocused element )
|
|
211
191
|
// to see how many children it has
|
|
212
|
-
jqParent = currentItem.parent();
|
|
192
|
+
var jqParent = currentItem.parent();
|
|
213
193
|
|
|
214
194
|
// if the nextItemIndex equals to -1 this means that next item calculated by calling next/previous on current item
|
|
215
195
|
// does not exist. this means we need to recalculate the index to be circular
|
|
216
196
|
// (either first tile or last tile - depending of the direction left/right)
|
|
197
|
+
var nextFocusIndex;
|
|
217
198
|
if (nextItemIndex === -1) {
|
|
218
199
|
// calculating the index of the next item to focus on
|
|
219
200
|
nextFocusIndex = isRight ? 0 : jqParent.children().length - 1;
|
|
@@ -224,7 +205,7 @@ sap.ui.define([
|
|
|
224
205
|
|
|
225
206
|
// take the respective child of the parent element (by the index calculated) and look at its children[0] as
|
|
226
207
|
// this is the flex-item and we need its mini-tile to focus on
|
|
227
|
-
nextFocus = jqParent.children()[nextFocusIndex].children[0];
|
|
208
|
+
var nextFocus = jqParent.children()[nextFocusIndex].children[0];
|
|
228
209
|
if (!nextFocus) {
|
|
229
210
|
return false;
|
|
230
211
|
}
|
|
@@ -268,8 +249,7 @@ sap.ui.define([
|
|
|
268
249
|
|
|
269
250
|
/************************************** Shell Navigation Menu **************************************/
|
|
270
251
|
|
|
271
|
-
ShellNavigationMenu.prototype.init = function () {
|
|
272
|
-
};
|
|
252
|
+
ShellNavigationMenu.prototype.init = function () { };
|
|
273
253
|
|
|
274
254
|
ShellNavigationMenu.prototype._createItemsList = function () {
|
|
275
255
|
// hierarchy items list
|
|
@@ -278,23 +258,15 @@ sap.ui.define([
|
|
|
278
258
|
|
|
279
259
|
ShellNavigationMenu.prototype._createMiniTilesBox = function () {
|
|
280
260
|
// mini tiles box
|
|
281
|
-
this.oMiniTilesBox = new FlexBox("sapUshellNavRelatedAppsFlexBox", {justifyContent: "Center"});
|
|
261
|
+
this.oMiniTilesBox = new FlexBox("sapUshellNavRelatedAppsFlexBox", { justifyContent: "Center" });
|
|
282
262
|
};
|
|
283
263
|
|
|
284
264
|
/*
|
|
285
|
-
before open method:
|
|
286
|
-
this is done from performance reasons, to lazy-load the non-necessary resources
|
|
265
|
+
before open method: this is done from performance reasons, to lazy-load the non-necessary resources
|
|
287
266
|
*/
|
|
288
267
|
ShellNavigationMenu.prototype._beforeOpen = function () {
|
|
289
268
|
// only if this is first time (e.g. not initialized yet)
|
|
290
269
|
if (!this.bInitialized) {
|
|
291
|
-
// inner application title
|
|
292
|
-
this.oTitle = new Title("navMenuInnerTitle", {
|
|
293
|
-
level: "H1"
|
|
294
|
-
});
|
|
295
|
-
this.oIconControl = new Icon();
|
|
296
|
-
this.oTitleBar = new Bar("navMenuTitleBar", {contentLeft: [this.oIconControl, this.oTitle]});
|
|
297
|
-
|
|
298
270
|
// related-apps title
|
|
299
271
|
this.oRelatedAppsTitle = new Label("sapUshellRelatedAppsLabel", {
|
|
300
272
|
text: resources.i18n.getText("shellNavMenu_relatedApps")
|
|
@@ -305,7 +277,10 @@ sap.ui.define([
|
|
|
305
277
|
}
|
|
306
278
|
// related apps box
|
|
307
279
|
this.oRelatedAppsVbox = new VBox("sapUshellRelatedAppsItems", {
|
|
308
|
-
items: [
|
|
280
|
+
items: [
|
|
281
|
+
this.oRelatedAppsTitle,
|
|
282
|
+
this.oMiniTilesBox
|
|
283
|
+
]
|
|
309
284
|
});
|
|
310
285
|
|
|
311
286
|
// extend inner controls for Acc reasons
|
|
@@ -314,16 +289,11 @@ sap.ui.define([
|
|
|
314
289
|
// set as initialized
|
|
315
290
|
this.bInitialized = true;
|
|
316
291
|
}
|
|
317
|
-
|
|
318
|
-
this.oIconControl.setSrc(this.getIcon() || "sap-icon://folder");
|
|
292
|
+
|
|
319
293
|
};
|
|
320
294
|
|
|
321
295
|
ShellNavigationMenu.prototype._afterOpen = function () {
|
|
322
|
-
|
|
323
|
-
initialize the keyboard-navigation inner module
|
|
324
|
-
for the mini-tiles grid (flexBox)
|
|
325
|
-
ONLY in case we run in desktop
|
|
326
|
-
*/
|
|
296
|
+
// initialize the keyboard-navigation inner module for the mini-tiles grid (flexBox) ONLY for desktop
|
|
327
297
|
if (Device.system.desktop) {
|
|
328
298
|
// initializing keyboard navigation
|
|
329
299
|
if (this.keyboardNavigation) {
|
|
@@ -354,10 +324,10 @@ sap.ui.define([
|
|
|
354
324
|
};
|
|
355
325
|
|
|
356
326
|
/*
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
327
|
+
* methods for overriding default behavior of the aggregation management by the infrastructure,
|
|
328
|
+
* in order to delegate the aggregation controls to an inner control which should render them instead
|
|
329
|
+
* (the related-apps flex-box items aggregation)
|
|
330
|
+
*/
|
|
361
331
|
ShellNavigationMenu.prototype.getMiniTiles = function () {
|
|
362
332
|
if (this.oMiniTilesBox) {
|
|
363
333
|
return this.oMiniTilesBox.getItems();
|
|
@@ -409,10 +379,10 @@ sap.ui.define([
|
|
|
409
379
|
};
|
|
410
380
|
|
|
411
381
|
/*
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
382
|
+
* methods for overriding default behavior of the aggregation management by the infrastructure,
|
|
383
|
+
* in order to delegate the aggregation controls to an inner control which should render them instead
|
|
384
|
+
* (the items-list items aggregation)
|
|
385
|
+
*/
|
|
416
386
|
ShellNavigationMenu.prototype.getItems = function () {
|
|
417
387
|
if (this.oItemsList) {
|
|
418
388
|
return this.oItemsList.getItems();
|
|
@@ -490,7 +460,6 @@ sap.ui.define([
|
|
|
490
460
|
}
|
|
491
461
|
|
|
492
462
|
if (this.bInitialized) {
|
|
493
|
-
this.oTitleBar.destroy();
|
|
494
463
|
this.oRelatedAppsVbox.destroy();
|
|
495
464
|
this.oRelatedAppsTitle.destroy();
|
|
496
465
|
}
|
|
@@ -502,13 +471,12 @@ sap.ui.define([
|
|
|
502
471
|
};
|
|
503
472
|
|
|
504
473
|
ShellNavigationMenu.prototype.onAfterRendering = function () {
|
|
505
|
-
jQuery("#sapUshellAppTitlePopover-intHeader").css("height", 0);
|
|
506
474
|
|
|
507
475
|
// Adjust accessibility attributes - list of hierarchy items (List)
|
|
508
476
|
var jqHierarchyUL = jQuery("#sapUshellNavHierarchyItems ul");
|
|
509
477
|
jqHierarchyUL.attr("role", "menu");
|
|
510
478
|
jqHierarchyUL.attr("aria-label", resources.i18n.getText("ShellNavigationMenu_HierarchyItemsAriaLabel"));
|
|
511
|
-
jQuery("#sapUshellNavHierarchyItems li").attr("role", "menuitem"); // list items are not allowed inside
|
|
479
|
+
jQuery("#sapUshellNavHierarchyItems li").attr("role", "menuitem"); // list items are not allowed inside a group
|
|
512
480
|
|
|
513
481
|
// Adjust accessibility attributes - box of related apps (VBox)
|
|
514
482
|
var jqMiniTilesBox = jQuery("#sapUshellNavRelatedAppsFlexBox");
|