@openui5/sap.ui.webc.fiori 1.111.2 → 1.112.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 +4 -4
- package/src/sap/ui/webc/fiori/.library +1 -1
- package/src/sap/ui/webc/fiori/Bar.js +1 -1
- package/src/sap/ui/webc/fiori/BarcodeScannerDialog.js +1 -1
- package/src/sap/ui/webc/fiori/DynamicSideContent.js +1 -1
- package/src/sap/ui/webc/fiori/FilterItem.js +1 -1
- package/src/sap/ui/webc/fiori/FilterItemOption.js +1 -1
- package/src/sap/ui/webc/fiori/FlexibleColumnLayout.js +1 -1
- package/src/sap/ui/webc/fiori/IllustratedMessage.js +1 -1
- package/src/sap/ui/webc/fiori/MediaGallery.js +1 -1
- package/src/sap/ui/webc/fiori/MediaGalleryItem.js +1 -1
- package/src/sap/ui/webc/fiori/NotificationAction.js +1 -1
- package/src/sap/ui/webc/fiori/NotificationListGroupItem.js +1 -1
- package/src/sap/ui/webc/fiori/NotificationListItem.js +1 -1
- package/src/sap/ui/webc/fiori/Page.js +1 -1
- package/src/sap/ui/webc/fiori/ProductSwitch.js +1 -1
- package/src/sap/ui/webc/fiori/ProductSwitchItem.js +1 -1
- package/src/sap/ui/webc/fiori/ShellBar.js +1 -1
- package/src/sap/ui/webc/fiori/ShellBarItem.js +1 -1
- package/src/sap/ui/webc/fiori/SideNavigation.js +1 -1
- package/src/sap/ui/webc/fiori/SideNavigationItem.js +1 -1
- package/src/sap/ui/webc/fiori/SideNavigationSubItem.js +1 -1
- package/src/sap/ui/webc/fiori/SortItem.js +1 -1
- package/src/sap/ui/webc/fiori/Timeline.js +1 -1
- package/src/sap/ui/webc/fiori/TimelineItem.js +1 -1
- package/src/sap/ui/webc/fiori/UploadCollection.js +1 -1
- package/src/sap/ui/webc/fiori/UploadCollectionItem.js +24 -24
- package/src/sap/ui/webc/fiori/ViewSettingsDialog.js +1 -1
- package/src/sap/ui/webc/fiori/Wizard.js +1 -1
- package/src/sap/ui/webc/fiori/WizardStep.js +1 -1
- package/src/sap/ui/webc/fiori/designtime/library.designtime.js +12 -0
- package/src/sap/ui/webc/fiori/illustrations/AddColumn.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/AddPeople.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/BalloonSky.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/BeforeSearch.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/Connection.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/EmptyCalendar.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/EmptyList.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/EmptyPlanningCalendar.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/ErrorScreen.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/FilterTable.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/GroupTable.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoActivities.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoData.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoEntries.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoFilterResults.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoMail.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoMail_v1.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoNotifications.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoSavedItems.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoSavedItems_v1.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoSearchResults.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoTasks.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/NoTasks_v1.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/PageNotFound.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/ReloadScreen.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/ResizeColumn.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SearchEarth.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SearchFolder.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleBalloon.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleBell.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleCalendar.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleCheckMark.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleConnection.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleEmptyDoc.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleEmptyList.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleError.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleMagnifier.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleMail.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleNoSavedItems.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleNotFoundMagnifier.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleReload.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SimpleTask.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SleepingBell.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SortColumn.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SuccessBalloon.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SuccessCheckMark.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SuccessHighFive.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/SuccessScreen.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/Tent.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/UnableToLoad.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/UnableToLoadImage.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/UnableToUpload.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/UploadCollection.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ChartArea.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ChartArea2.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ChartBPMNFlow.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ChartBar.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ChartBullet.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ChartDoughnut.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ChartFlow.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ChartGantt.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ChartOrg.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ChartPie.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/CodePlaceholder.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Company.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Components.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/ExternalLink.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/FaceID.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Fingerprint.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Lock.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Mission.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/NoApplications.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/NoFlows.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/NoUsers.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Radar.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Secrets.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Services.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/SessionExpired.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/SessionExpiring.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Success.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/SuccessfulAuth.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Systems.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Teams.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Tools.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/UnableToLoad.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/Unlock.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/UnsuccessfulAuth.js +6 -0
- package/src/sap/ui/webc/fiori/illustrations/tnt/User2.js +6 -0
- package/src/sap/ui/webc/fiori/library.config.js +6 -0
- package/src/sap/ui/webc/fiori/library.js +3 -3
- package/src/sap/ui/webc/fiori/thirdparty/Bar.js +5 -27
- package/src/sap/ui/webc/fiori/thirdparty/BarcodeScannerDialog.js +11 -49
- package/src/sap/ui/webc/fiori/thirdparty/DynamicSideContent.js +36 -93
- package/src/sap/ui/webc/fiori/thirdparty/FilterItem.js +5 -15
- package/src/sap/ui/webc/fiori/thirdparty/FilterItemOption.js +6 -15
- package/src/sap/ui/webc/fiori/thirdparty/FlexibleColumnLayout.js +31 -122
- package/src/sap/ui/webc/fiori/thirdparty/IllustratedMessage.js +9 -53
- package/src/sap/ui/webc/fiori/thirdparty/Interfaces.js +13 -14
- package/src/sap/ui/webc/fiori/thirdparty/MediaGallery.js +17 -113
- package/src/sap/ui/webc/fiori/thirdparty/MediaGalleryItem.js +5 -55
- package/src/sap/ui/webc/fiori/thirdparty/NotificationAction.js +4 -17
- package/src/sap/ui/webc/fiori/thirdparty/NotificationListGroupItem.js +8 -41
- package/src/sap/ui/webc/fiori/thirdparty/NotificationListItem.js +14 -74
- package/src/sap/ui/webc/fiori/thirdparty/NotificationListItemBase.js +7 -45
- package/src/sap/ui/webc/fiori/thirdparty/Page.js +5 -31
- package/src/sap/ui/webc/fiori/thirdparty/ProductSwitch.js +3 -34
- package/src/sap/ui/webc/fiori/thirdparty/ProductSwitchItem.js +4 -39
- package/src/sap/ui/webc/fiori/thirdparty/ShellBar.js +24 -168
- package/src/sap/ui/webc/fiori/thirdparty/ShellBarItem.js +3 -15
- package/src/sap/ui/webc/fiori/thirdparty/SideNavigation.js +4 -45
- package/src/sap/ui/webc/fiori/thirdparty/SideNavigationItem.js +4 -20
- package/src/sap/ui/webc/fiori/thirdparty/SideNavigationSubItem.js +3 -15
- package/src/sap/ui/webc/fiori/thirdparty/SortItem.js +6 -15
- package/src/sap/ui/webc/fiori/thirdparty/Timeline.js +5 -31
- package/src/sap/ui/webc/fiori/thirdparty/TimelineItem.js +6 -28
- package/src/sap/ui/webc/fiori/thirdparty/UploadCollection.js +5 -55
- package/src/sap/ui/webc/fiori/thirdparty/UploadCollectionItem.js +15 -83
- package/src/sap/ui/webc/fiori/thirdparty/ViewSettingsDialog.js +32 -129
- package/src/sap/ui/webc/fiori/thirdparty/Wizard.js +77 -180
- package/src/sap/ui/webc/fiori/thirdparty/WizardStep.js +4 -19
- package/src/sap/ui/webc/fiori/thirdparty/WizardTab.js +4 -34
- package/src/sap/ui/webc/fiori/thirdparty/fcl-utils/FCLLayout.js +0 -6
- package/src/sap/ui/webc/fiori/thirdparty/generated/json-imports/Themes.js +0 -16
- package/src/sap/ui/webc/fiori/thirdparty/generated/json-imports/i18n.js +0 -52
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/BarTemplate.lit.js +1 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/BarcodeScannerDialogTemplate.lit.js +1 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/DynamicSideContentTemplate.lit.js +1 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/FlexibleColumnLayoutTemplate.lit.js +1 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/IllustratedMessageTemplate.lit.js +1 -8
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/MediaGalleryItemTemplate.lit.js +1 -5
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/MediaGalleryTemplate.lit.js +1 -8
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/NotificationListGroupItemTemplate.lit.js +1 -10
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/NotificationListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/NotificationOverflowActionsPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/PageTemplate.lit.js +1 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ProductSwitchItemTemplate.lit.js +1 -10
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ProductSwitchTemplate.lit.js +1 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ShellBarPopoverTemplate.lit.js +1 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ShellBarTemplate.lit.js +1 -25
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/SideNavigationItemPopoverContentTemplate.lit.js +1 -3
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/SideNavigationTemplate.lit.js +1 -11
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/TimelineItemTemplate.lit.js +1 -8
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/TimelineTemplate.lit.js +1 -3
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/UploadCollectionItemTemplate.lit.js +1 -16
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/UploadCollectionTemplate.lit.js +1 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ViewSettingsDialogTemplate.lit.js +1 -17
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/WizardPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/WizardTabTemplate.lit.js +1 -6
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/WizardTemplate.lit.js +1 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Bar.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/BarcodeScannerDialog.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/DynamicSideContent.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/FlexibleColumnLayout.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/IllustratedMessage.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/InvisibleTextStyles.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/MediaGallery.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/MediaGalleryItem.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationListGroupItem.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationListItem.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationListItemBase.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationOverflowActionsPopover.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationPrioIcon.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Page.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ProductSwitch.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ProductSwitchItem.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ShellBar.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ShellBarPopover.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/SideNavigation.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/SideNavigationPopover.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Timeline.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/TimelineItem.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/UploadCollection.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/UploadCollectionItem.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ViewSettingsDialog.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Wizard.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/WizardPopover.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/WizardTab.css.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/AddColumn.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/AddPeople.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/BalloonSky.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/BeforeSearch.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/Connection.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/EmptyCalendar.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/EmptyList.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/EmptyPlanningCalendar.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/ErrorScreen.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/FilterTable.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/GroupTable.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoActivities.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoData.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoEntries.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoFilterResults.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoMail.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoMail_v1.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoNotifications.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoSavedItems.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoSavedItems_v1.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoSearchResults.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoTasks.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoTasks_v1.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/PageNotFound.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/ReloadScreen.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/ResizeColumn.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SearchEarth.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SearchFolder.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleBalloon.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleBell.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleCalendar.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleCheckMark.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleConnection.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleEmptyDoc.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleEmptyList.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleError.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleMagnifier.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleMail.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleNoSavedItems.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleNotFoundMagnifier.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleReload.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SimpleTask.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SleepingBell.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SortColumn.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SuccessBalloon.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SuccessCheckMark.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SuccessHighFive.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/SuccessScreen.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/Tent.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/UnableToLoad.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/UnableToLoadImage.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/UnableToUpload.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/UploadCollection.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ChartArea.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ChartArea2.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ChartBPMNFlow.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ChartBar.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ChartBullet.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ChartDoughnut.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ChartFlow.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ChartGantt.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ChartOrg.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ChartPie.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/CodePlaceholder.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Company.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Components.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/ExternalLink.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/FaceID.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Fingerprint.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Lock.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Mission.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/NoApplications.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/NoFlows.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/NoUsers.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Radar.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Secrets.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Services.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/SessionExpired.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/SessionExpiring.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Success.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/SuccessfulAuth.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Systems.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Teams.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Tools.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/UnableToLoad.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/Unlock.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/UnsuccessfulAuth.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/tnt/User2.js +0 -2
- package/src/sap/ui/webc/fiori/thirdparty/types/BarDesign.js +1 -8
- package/src/sap/ui/webc/fiori/thirdparty/types/FCLLayout.js +1 -13
- package/src/sap/ui/webc/fiori/thirdparty/types/IllustrationMessageSize.js +1 -9
- package/src/sap/ui/webc/fiori/thirdparty/types/IllustrationMessageType.js +1 -92
- package/src/sap/ui/webc/fiori/thirdparty/types/MediaGalleryItemLayout.js +1 -6
- package/src/sap/ui/webc/fiori/thirdparty/types/MediaGalleryLayout.js +1 -7
- package/src/sap/ui/webc/fiori/thirdparty/types/MediaGalleryMenuHorizontalAlign.js +1 -6
- package/src/sap/ui/webc/fiori/thirdparty/types/MediaGalleryMenuVerticalAlign.js +1 -6
- package/src/sap/ui/webc/fiori/thirdparty/types/PageBackgroundDesign.js +1 -7
- package/src/sap/ui/webc/fiori/thirdparty/types/SideContentFallDown.js +1 -8
- package/src/sap/ui/webc/fiori/thirdparty/types/SideContentPosition.js +1 -6
- package/src/sap/ui/webc/fiori/thirdparty/types/SideContentVisibility.js +1 -9
- package/src/sap/ui/webc/fiori/thirdparty/types/TimelineLayout.js +1 -6
- package/src/sap/ui/webc/fiori/thirdparty/types/UploadCollectionDnDMode.js +1 -7
- package/src/sap/ui/webc/fiori/thirdparty/types/UploadState.js +1 -8
- package/src/sap/ui/webc/fiori/thirdparty/types/ViewSettingsDialogMode.js +1 -6
- package/src/sap/ui/webc/fiori/thirdparty/upload-utils/UploadCollectionBodyDnD.js +1 -16
- package/ui5.yaml +1 -1
|
@@ -21,12 +21,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
21
21
|
_WizardPopoverTemplate = _interopRequireDefault(_WizardPopoverTemplate);
|
|
22
22
|
_Wizard = _interopRequireDefault(_Wizard);
|
|
23
23
|
_WizardPopover = _interopRequireDefault(_WizardPopover);
|
|
24
|
-
|
|
25
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
|
-
|
|
27
25
|
// Texts
|
|
26
|
+
|
|
28
27
|
// Step in header and content
|
|
28
|
+
|
|
29
29
|
// Template and Styles
|
|
30
|
+
|
|
30
31
|
const MIN_STEP_WIDTH_NO_TITLE = 64;
|
|
31
32
|
const MIN_STEP_WIDTH_WITH_TITLE = 200;
|
|
32
33
|
const EXPANDED_STEP = "data-ui5-wizard-expanded-tab";
|
|
@@ -38,17 +39,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
38
39
|
DEFAULT: 0.7,
|
|
39
40
|
MAX: 1
|
|
40
41
|
};
|
|
42
|
+
|
|
41
43
|
/**
|
|
42
44
|
* @public
|
|
43
45
|
*/
|
|
44
|
-
|
|
45
46
|
const metadata = {
|
|
46
47
|
tag: "ui5-wizard",
|
|
47
48
|
managedSlots: true,
|
|
48
49
|
fastNavigation: true,
|
|
49
|
-
properties:
|
|
50
|
-
/** @lends sap.ui.webcomponents.fiori.Wizard.prototype */
|
|
51
|
-
{
|
|
50
|
+
properties: /** @lends sap.ui.webcomponents.fiori.Wizard.prototype */{
|
|
52
51
|
/**
|
|
53
52
|
* Defines the width of the <code>ui5-wizard</code>.
|
|
54
53
|
* @private
|
|
@@ -56,7 +55,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
56
55
|
width: {
|
|
57
56
|
type: _Float.default
|
|
58
57
|
},
|
|
59
|
-
|
|
60
58
|
/**
|
|
61
59
|
* Defines the threshold to switch between steps upon user scrolling.
|
|
62
60
|
* <br><br>
|
|
@@ -78,7 +76,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
78
76
|
type: _Float.default,
|
|
79
77
|
defaultValue: STEP_SWITCH_THRESHOLDS.DEFAULT
|
|
80
78
|
},
|
|
81
|
-
|
|
82
79
|
/**
|
|
83
80
|
* Defines the height of the <code>ui5-wizard</code> content.
|
|
84
81
|
* @private
|
|
@@ -91,9 +88,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
91
88
|
multiple: true
|
|
92
89
|
}
|
|
93
90
|
},
|
|
94
|
-
slots:
|
|
95
|
-
/** @lends sap.ui.webcomponents.fiori.Wizard.prototype */
|
|
96
|
-
{
|
|
91
|
+
slots: /** @lends sap.ui.webcomponents.fiori.Wizard.prototype */{
|
|
97
92
|
/**
|
|
98
93
|
* Defines the steps.
|
|
99
94
|
* <br><br>
|
|
@@ -110,9 +105,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
110
105
|
invalidateOnChildChange: true
|
|
111
106
|
}
|
|
112
107
|
},
|
|
113
|
-
events:
|
|
114
|
-
/** @lends sap.ui.webcomponents.fiori.Wizard.prototype */
|
|
115
|
-
{
|
|
108
|
+
events: /** @lends sap.ui.webcomponents.fiori.Wizard.prototype */{
|
|
116
109
|
/**
|
|
117
110
|
* Fired when the step is changed by user interaction - either with scrolling,
|
|
118
111
|
* or by clicking on the steps within the component header.
|
|
@@ -138,6 +131,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
138
131
|
}
|
|
139
132
|
}
|
|
140
133
|
};
|
|
134
|
+
|
|
141
135
|
/**
|
|
142
136
|
* @class
|
|
143
137
|
*
|
|
@@ -229,28 +223,35 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
229
223
|
* @appenddocs WizardStep
|
|
230
224
|
* @public
|
|
231
225
|
*/
|
|
232
|
-
|
|
233
226
|
class Wizard extends _UI5Element.default {
|
|
234
227
|
constructor() {
|
|
235
|
-
super();
|
|
228
|
+
super();
|
|
229
|
+
|
|
230
|
+
// Stores the scroll offsets of the steps,
|
|
236
231
|
// e.g. the steps' starting point.
|
|
232
|
+
this.stepScrollOffsets = [];
|
|
237
233
|
|
|
238
|
-
|
|
234
|
+
// Stores references to the grouped steps.
|
|
235
|
+
this._groupedTabs = [];
|
|
239
236
|
|
|
240
|
-
|
|
237
|
+
// Keeps track of the currently selected step index.
|
|
238
|
+
this.selectedStepIndex = 0;
|
|
241
239
|
|
|
242
|
-
|
|
240
|
+
// Keeps track of the previously selected step index.
|
|
241
|
+
this.previouslySelectedStepIndex = 0;
|
|
243
242
|
|
|
244
|
-
|
|
243
|
+
// Indicates that selection will be changed
|
|
245
244
|
// due to user click.
|
|
245
|
+
this.selectionRequestedByClick = false;
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
// Stores the previous width
|
|
248
|
+
this._prevWidth = 0;
|
|
248
249
|
|
|
249
|
-
|
|
250
|
+
// Stores the previous height
|
|
251
|
+
this._prevContentHeight = 0;
|
|
250
252
|
|
|
251
|
-
|
|
253
|
+
// Indicates that selection will be changed
|
|
252
254
|
// due to user scroll.
|
|
253
|
-
|
|
254
255
|
this.selectionRequestedByScroll = false;
|
|
255
256
|
this._itemNavigation = new _ItemNavigation.default(this, {
|
|
256
257
|
navigationMode: _NavigationMode.default.Auto,
|
|
@@ -258,15 +259,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
258
259
|
});
|
|
259
260
|
this._onStepResize = this.onStepResize.bind(this);
|
|
260
261
|
}
|
|
261
|
-
|
|
262
262
|
static get metadata() {
|
|
263
263
|
return metadata;
|
|
264
264
|
}
|
|
265
|
-
|
|
266
265
|
static get render() {
|
|
267
266
|
return _LitRenderer.default;
|
|
268
267
|
}
|
|
269
|
-
|
|
270
268
|
get classes() {
|
|
271
269
|
return {
|
|
272
270
|
popover: {
|
|
@@ -276,57 +274,45 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
276
274
|
}
|
|
277
275
|
};
|
|
278
276
|
}
|
|
279
|
-
|
|
280
277
|
static get styles() {
|
|
281
278
|
return _Wizard.default;
|
|
282
279
|
}
|
|
283
|
-
|
|
284
280
|
static get staticAreaStyles() {
|
|
285
281
|
return _WizardPopover.default;
|
|
286
282
|
}
|
|
287
|
-
|
|
288
283
|
static get template() {
|
|
289
284
|
return _WizardTemplate.default;
|
|
290
285
|
}
|
|
291
|
-
|
|
292
286
|
static get dependencies() {
|
|
293
287
|
return [_WizardTab.default, _WizardStep.default, _ResponsivePopover.default, _Button.default];
|
|
294
288
|
}
|
|
295
|
-
|
|
296
289
|
static async onDefine() {
|
|
297
290
|
Wizard.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents-fiori");
|
|
298
291
|
}
|
|
299
|
-
|
|
300
292
|
static get PHONE_BREAKPOINT() {
|
|
301
293
|
return 599;
|
|
302
294
|
}
|
|
303
|
-
|
|
304
295
|
static get SCROLL_DEBOUNCE_RATE() {
|
|
305
296
|
return 25;
|
|
306
297
|
}
|
|
307
|
-
|
|
308
298
|
static get staticAreaTemplate() {
|
|
309
299
|
return _WizardPopoverTemplate.default;
|
|
310
300
|
}
|
|
311
|
-
|
|
312
301
|
onExitDOM() {
|
|
313
302
|
this.detachStepsResizeObserver();
|
|
314
303
|
}
|
|
315
|
-
|
|
316
304
|
onBeforeRendering() {
|
|
317
305
|
this.syncSelection();
|
|
318
306
|
}
|
|
319
|
-
|
|
320
307
|
onAfterRendering() {
|
|
321
308
|
this.storeStepScrollOffsets();
|
|
322
|
-
|
|
323
309
|
if (this.previouslySelectedStepIndex !== this.selectedStepIndex) {
|
|
324
310
|
this.scrollToSelectedStep();
|
|
325
311
|
}
|
|
326
|
-
|
|
327
312
|
this.attachStepsResizeObserver();
|
|
328
313
|
this.previouslySelectedStepIndex = this.selectedStepIndex;
|
|
329
314
|
}
|
|
315
|
+
|
|
330
316
|
/**
|
|
331
317
|
* Normalizes the step selection as follows:
|
|
332
318
|
* (1) If there is no selected step - the first step is going to be selected.
|
|
@@ -334,70 +320,65 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
334
320
|
* (3) If the selected step is also disabled - log a warning.
|
|
335
321
|
* @private
|
|
336
322
|
*/
|
|
337
|
-
|
|
338
|
-
|
|
339
323
|
syncSelection() {
|
|
340
324
|
if (this.stepsCount === 0) {
|
|
341
325
|
return;
|
|
342
|
-
}
|
|
343
|
-
|
|
326
|
+
}
|
|
344
327
|
|
|
328
|
+
// If no selected steps -> select the first step.
|
|
345
329
|
if (this.selectedStepsCount === 0) {
|
|
346
330
|
this.selectFirstStep();
|
|
347
331
|
console.warn("Selecting the first step: no selected step is defined."); // eslint-disable-line
|
|
348
|
-
}
|
|
349
|
-
|
|
332
|
+
}
|
|
350
333
|
|
|
334
|
+
// If there are multiple selected steps -> keep the last selected one.
|
|
351
335
|
if (this.selectedStepsCount > 1) {
|
|
352
336
|
this.selectLastSelectedStep();
|
|
353
337
|
console.warn(`Selecting the last step defined as selected: multiple selected steps are defined.`); // eslint-disable-line
|
|
354
|
-
}
|
|
355
|
-
|
|
338
|
+
}
|
|
356
339
|
|
|
340
|
+
// If the selected step is defined as disabled - log warning.
|
|
357
341
|
if (this.selectedStep && this.selectedStep.disabled) {
|
|
358
342
|
console.warn("The selected step is disabled: you need to enable it in order to interact with the step."); // eslint-disable-line
|
|
359
|
-
}
|
|
360
|
-
|
|
343
|
+
}
|
|
361
344
|
|
|
345
|
+
// Place for improvement: If the selected step is not the first, enable all the prior steps
|
|
362
346
|
this.selectedStepIndex = this.getSelectedStepIndex();
|
|
363
347
|
}
|
|
348
|
+
|
|
364
349
|
/**
|
|
365
350
|
* Selects the first step.
|
|
366
351
|
* @private
|
|
367
352
|
*/
|
|
368
|
-
|
|
369
|
-
|
|
370
353
|
selectFirstStep() {
|
|
371
354
|
this.deselectAll();
|
|
372
355
|
this.slottedSteps[0].selected = true;
|
|
373
356
|
this.slottedSteps[0].disabled = false;
|
|
374
357
|
}
|
|
358
|
+
|
|
375
359
|
/**
|
|
376
360
|
* Selects the last step from multiple selected ones.
|
|
377
361
|
* @private
|
|
378
362
|
*/
|
|
379
|
-
|
|
380
|
-
|
|
381
363
|
selectLastSelectedStep() {
|
|
382
364
|
const lastSelectedStep = this.lastSelectedStep;
|
|
383
|
-
|
|
384
365
|
if (lastSelectedStep) {
|
|
385
366
|
this.deselectAll();
|
|
386
367
|
lastSelectedStep.selected = true;
|
|
387
368
|
lastSelectedStep.disabled = false;
|
|
388
369
|
}
|
|
389
370
|
}
|
|
371
|
+
|
|
390
372
|
/**
|
|
391
373
|
* Deselects all steps.
|
|
392
374
|
* @private
|
|
393
375
|
*/
|
|
394
|
-
|
|
395
|
-
|
|
396
376
|
deselectAll() {
|
|
397
377
|
this.slottedSteps.forEach(step => {
|
|
398
378
|
step.selected = false;
|
|
399
379
|
});
|
|
400
380
|
}
|
|
381
|
+
|
|
401
382
|
/**
|
|
402
383
|
* Stores the scroll offsets of the steps,
|
|
403
384
|
* e.g. the steps' starting point.
|
|
@@ -405,92 +386,79 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
405
386
|
* <b>Note:</b> the disabled ones has negative offsets.
|
|
406
387
|
* @private
|
|
407
388
|
*/
|
|
408
|
-
|
|
409
|
-
|
|
410
389
|
storeStepScrollOffsets() {
|
|
411
390
|
this.stepScrollOffsets = this.slottedSteps.map(step => {
|
|
412
391
|
const contentItem = this.getStepWrapperByRefId(step._id);
|
|
413
392
|
return contentItem.offsetTop + contentItem.offsetHeight;
|
|
414
393
|
});
|
|
415
394
|
}
|
|
395
|
+
|
|
416
396
|
/**
|
|
417
397
|
* Handles user click on steps' tabs within the header.
|
|
418
398
|
* <b>Note:</b> the handler is bound in the template.
|
|
419
399
|
* @param {Event} event
|
|
420
400
|
* @private
|
|
421
401
|
*/
|
|
422
|
-
|
|
423
|
-
|
|
424
402
|
onSelectionChangeRequested(event) {
|
|
425
403
|
this.selectionRequestedByClick = true;
|
|
426
404
|
this.changeSelectionByStepAction(event.target);
|
|
427
405
|
}
|
|
406
|
+
|
|
428
407
|
/**
|
|
429
408
|
* Handles user scrolling with debouncing.
|
|
430
409
|
* <b>Note:</b> the handler is bound in the template.
|
|
431
410
|
* @param {Event} event
|
|
432
411
|
* @private
|
|
433
412
|
*/
|
|
434
|
-
|
|
435
|
-
|
|
436
413
|
onScroll(event) {
|
|
437
414
|
if (this.selectionRequestedByClick) {
|
|
438
415
|
this.selectionRequestedByClick = false;
|
|
439
416
|
return;
|
|
440
417
|
}
|
|
441
|
-
|
|
442
418
|
(0, _debounce.default)(this.changeSelectionByScroll.bind(this, event.target.scrollTop), Wizard.SCROLL_DEBOUNCE_RATE);
|
|
443
419
|
}
|
|
420
|
+
|
|
444
421
|
/**
|
|
445
422
|
* Handles when a step in the header is focused in order to update the <code>ItemNavigation</code>.
|
|
446
423
|
* <b>Note:</b> the handler is bound in the template.
|
|
447
424
|
* @param {Event} event
|
|
448
425
|
* @private
|
|
449
426
|
*/
|
|
450
|
-
|
|
451
|
-
|
|
452
427
|
onStepInHeaderFocused(event) {
|
|
453
428
|
this._itemNavigation.setCurrentItem(event.target);
|
|
454
429
|
}
|
|
430
|
+
|
|
455
431
|
/**
|
|
456
432
|
* Handles resize in order to:
|
|
457
433
|
* (1) sync steps' scroll offset and selection
|
|
458
434
|
* (2) adapt navition step header
|
|
459
435
|
* @private
|
|
460
436
|
*/
|
|
461
|
-
|
|
462
|
-
|
|
463
437
|
onStepResize() {
|
|
464
438
|
this.width = this.getBoundingClientRect().width;
|
|
465
439
|
this.contentHeight = this.getContentHeight();
|
|
466
|
-
|
|
467
440
|
if (this._prevWidth !== this.width || this.contentHeight !== this._prevContentHeight) {
|
|
468
441
|
this._closeRespPopover();
|
|
469
442
|
}
|
|
470
|
-
|
|
471
443
|
this._prevWidth = this.width;
|
|
472
444
|
this._prevContentHeight = this.contentHeight;
|
|
473
445
|
}
|
|
474
|
-
|
|
475
446
|
attachStepsResizeObserver() {
|
|
476
447
|
this.stepsDOM.forEach(stepDOM => {
|
|
477
448
|
_ResizeHandler.default.deregister(stepDOM, this._onStepResize);
|
|
478
|
-
|
|
479
449
|
_ResizeHandler.default.register(stepDOM, this._onStepResize);
|
|
480
450
|
});
|
|
481
451
|
}
|
|
482
|
-
|
|
483
452
|
detachStepsResizeObserver() {
|
|
484
453
|
this.stepsDOM.forEach(stepDOM => {
|
|
485
454
|
_ResizeHandler.default.deregister(stepDOM, this._onStepResize);
|
|
486
455
|
});
|
|
487
456
|
}
|
|
457
|
+
|
|
488
458
|
/**
|
|
489
459
|
* Updates the expanded attribute for each ui5-wizard-tab based on the ui5-wizard width
|
|
490
460
|
* @private
|
|
491
461
|
*/
|
|
492
|
-
|
|
493
|
-
|
|
494
462
|
_adjustHeaderOverflow() {
|
|
495
463
|
let counter = 0;
|
|
496
464
|
let isForward = true;
|
|
@@ -498,38 +466,37 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
498
466
|
const iCurrStep = this.getSelectedStepIndex();
|
|
499
467
|
const iStepsToShow = this.steps.length ? Math.floor(iWidth / MIN_STEP_WIDTH_WITH_TITLE) : Math.floor(iWidth / MIN_STEP_WIDTH_NO_TITLE);
|
|
500
468
|
const tabs = this.shadowRoot.querySelectorAll("[ui5-wizard-tab]");
|
|
501
|
-
|
|
502
469
|
if (!tabs.length) {
|
|
503
470
|
return;
|
|
504
471
|
}
|
|
505
|
-
|
|
506
472
|
[].forEach.call(tabs, (step, index) => {
|
|
507
473
|
step.setAttribute(EXPANDED_STEP, false);
|
|
508
474
|
step.setAttribute(BEFORE_EXPANDED_STEP, false);
|
|
509
|
-
step.setAttribute(AFTER_EXPANDED_STEP, false);
|
|
475
|
+
step.setAttribute(AFTER_EXPANDED_STEP, false);
|
|
510
476
|
|
|
477
|
+
// Add "data-ui5-wizard-after-current-tab" to all tabs after the current one
|
|
511
478
|
if (index > iCurrStep) {
|
|
512
479
|
tabs[index].setAttribute(AFTER_CURRENT_STEP, true);
|
|
513
480
|
} else {
|
|
514
481
|
tabs[index].removeAttribute(AFTER_CURRENT_STEP);
|
|
515
482
|
}
|
|
516
|
-
});
|
|
483
|
+
});
|
|
517
484
|
|
|
485
|
+
// Add "data-ui5-wizard-expanded-tab" to the current step
|
|
518
486
|
if (tabs[iCurrStep]) {
|
|
519
487
|
tabs[iCurrStep].setAttribute(EXPANDED_STEP, true);
|
|
520
|
-
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
// Set the "data-ui5-wizard-expanded-tab" to the steps that are expanded
|
|
521
491
|
// The algorithm is as follows:
|
|
522
492
|
// 1. A step towards the end is expanded
|
|
523
493
|
// 1.2. If there are no available steps towards the end a step towards the beginning is expanded
|
|
524
494
|
// 2. A step towards the beginning is expanded
|
|
525
495
|
// 2.2. If there are no available steps towards the beginning a step towards the end is expanded
|
|
526
|
-
|
|
527
|
-
|
|
528
496
|
for (let i = 1; i < iStepsToShow; i++) {
|
|
529
497
|
if (isForward) {
|
|
530
498
|
counter += 1;
|
|
531
499
|
}
|
|
532
|
-
|
|
533
500
|
if (isForward && tabs[iCurrStep + counter]) {
|
|
534
501
|
tabs[iCurrStep + counter].setAttribute(EXPANDED_STEP, true);
|
|
535
502
|
isForward = !isForward;
|
|
@@ -545,56 +512,47 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
545
512
|
counter += 1;
|
|
546
513
|
isForward = false;
|
|
547
514
|
}
|
|
548
|
-
}
|
|
549
|
-
// using the "data-ui5-wizard-after-current-tab" and "data-ui5-wizard-expanded-tab-prev" attributes
|
|
550
|
-
|
|
515
|
+
}
|
|
551
516
|
|
|
517
|
+
// mark the topmost steps of both groups (in the beginning and the end),
|
|
518
|
+
// using the "data-ui5-wizard-after-current-tab" and "data-ui5-wizard-expanded-tab-prev" attributes
|
|
552
519
|
for (let i = 0; i < tabs.length; i++) {
|
|
553
520
|
if (tabs[i].getAttribute(EXPANDED_STEP) === "true" && tabs[i - 1] && tabs[i - 1].getAttribute(EXPANDED_STEP) === "false") {
|
|
554
521
|
tabs[i - 1].setAttribute(BEFORE_EXPANDED_STEP, true);
|
|
555
522
|
}
|
|
556
|
-
|
|
557
523
|
if (tabs[i].getAttribute(EXPANDED_STEP) === "false" && tabs[i - 1] && tabs[i - 1].getAttribute(EXPANDED_STEP) === "true") {
|
|
558
524
|
tabs[i].setAttribute(AFTER_EXPANDED_STEP, true);
|
|
559
525
|
break;
|
|
560
526
|
}
|
|
561
527
|
}
|
|
562
528
|
}
|
|
563
|
-
|
|
564
529
|
_isGroupAtStart(selectedStep) {
|
|
565
530
|
const iStepNumber = this.stepsInHeaderDOM.indexOf(selectedStep);
|
|
566
531
|
return selectedStep.getAttribute(EXPANDED_STEP) === "false" && selectedStep.getAttribute(BEFORE_EXPANDED_STEP) === "true" && iStepNumber > 0;
|
|
567
532
|
}
|
|
568
|
-
|
|
569
533
|
_isGroupAtEnd(selectedStep) {
|
|
570
534
|
const iStepNumber = this.stepsInHeaderDOM.indexOf(selectedStep);
|
|
571
535
|
return selectedStep.getAttribute(EXPANDED_STEP) === "false" && selectedStep.getAttribute(AFTER_EXPANDED_STEP) === "true" && iStepNumber + 1 < this.steps.length;
|
|
572
536
|
}
|
|
573
|
-
|
|
574
537
|
async _showPopover(oDomTarget, bAtStart) {
|
|
575
538
|
const tabs = Array.from(this.shadowRoot.querySelectorAll("[ui5-wizard-tab]"));
|
|
576
539
|
this._groupedTabs = [];
|
|
577
540
|
const iFromStep = bAtStart ? 0 : this.stepsInHeaderDOM.indexOf(oDomTarget);
|
|
578
541
|
const iToStep = bAtStart ? this.stepsInHeaderDOM.indexOf(oDomTarget) : tabs.length - 1;
|
|
579
|
-
|
|
580
542
|
for (let i = iFromStep; i <= iToStep; i++) {
|
|
581
543
|
this._groupedTabs.push(tabs[i]);
|
|
582
544
|
}
|
|
583
|
-
|
|
584
545
|
const responsivePopover = await this._respPopover();
|
|
585
546
|
responsivePopover.showAt(oDomTarget);
|
|
586
547
|
}
|
|
587
|
-
|
|
588
548
|
async _onGroupedTabClick(event) {
|
|
589
549
|
if (this._isGroupAtStart(event.target)) {
|
|
590
550
|
return this._showPopover(event.target, true);
|
|
591
551
|
}
|
|
592
|
-
|
|
593
552
|
if (this._isGroupAtEnd(event.target)) {
|
|
594
553
|
return this._showPopover(event.target, false);
|
|
595
554
|
}
|
|
596
555
|
}
|
|
597
|
-
|
|
598
556
|
_onOverflowStepButtonClick(event) {
|
|
599
557
|
const tabs = Array.from(this.shadowRoot.querySelectorAll("[ui5-wizard-tab]"));
|
|
600
558
|
const stepRefId = event.target.getAttribute("data-ui5-header-tab-ref-id");
|
|
@@ -602,44 +560,41 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
602
560
|
const selectedStep = this.selectedStep;
|
|
603
561
|
const newlySelectedIndex = this.slottedSteps.indexOf(stepToSelect);
|
|
604
562
|
this.switchSelectionFromOldToNewStep(selectedStep, stepToSelect, newlySelectedIndex, true);
|
|
605
|
-
|
|
606
563
|
this._closeRespPopover();
|
|
607
|
-
|
|
608
564
|
tabs[newlySelectedIndex].focus();
|
|
609
565
|
}
|
|
610
|
-
|
|
611
566
|
async _closeRespPopover() {
|
|
612
567
|
const responsivePopover = await this._respPopover();
|
|
613
568
|
responsivePopover && responsivePopover.close();
|
|
614
569
|
}
|
|
615
|
-
|
|
616
570
|
async _respPopover() {
|
|
617
571
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
|
618
572
|
return staticAreaItem.querySelector(`.ui5-wizard-responsive-popover`);
|
|
619
573
|
}
|
|
574
|
+
|
|
620
575
|
/**
|
|
621
576
|
* Called upon <code>onScroll</code>.
|
|
622
577
|
* Selects the closest step, based on the user scroll position.
|
|
623
578
|
* @param {Integer} scrollPos the current scroll position
|
|
624
579
|
* @private
|
|
625
580
|
*/
|
|
626
|
-
|
|
627
|
-
|
|
628
581
|
changeSelectionByScroll(scrollPos) {
|
|
629
|
-
const newlySelectedIndex = this.getClosestStepIndexByScrollPos(scrollPos);
|
|
582
|
+
const newlySelectedIndex = this.getClosestStepIndexByScrollPos(scrollPos);
|
|
630
583
|
|
|
584
|
+
// Skip if already selected - stop.
|
|
631
585
|
if (this.selectedStepIndex === newlySelectedIndex) {
|
|
632
586
|
return;
|
|
633
|
-
}
|
|
634
|
-
// change selection and fire "step-change".
|
|
635
|
-
|
|
587
|
+
}
|
|
636
588
|
|
|
589
|
+
// If the calculated index is in range,
|
|
590
|
+
// change selection and fire "step-change".
|
|
637
591
|
if (newlySelectedIndex >= 0 && newlySelectedIndex <= this.stepsCount - 1) {
|
|
638
592
|
const stepToSelect = this.slottedSteps[newlySelectedIndex];
|
|
639
593
|
this.switchSelectionFromOldToNewStep(this.selectedStep, stepToSelect, newlySelectedIndex, false);
|
|
640
594
|
this.selectionRequestedByScroll = true;
|
|
641
595
|
}
|
|
642
596
|
}
|
|
597
|
+
|
|
643
598
|
/**
|
|
644
599
|
* Called upon <code>onSelectionChangeRequested</code>.
|
|
645
600
|
* Selects the external step (ui5-wizard-step),
|
|
@@ -647,8 +602,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
647
602
|
* @param {HTMLElement} stepInHeader the step equivalent in the header
|
|
648
603
|
* @private
|
|
649
604
|
*/
|
|
650
|
-
|
|
651
|
-
|
|
652
605
|
async changeSelectionByStepAction(stepInHeader) {
|
|
653
606
|
const stepRefId = stepInHeader.getAttribute("data-ui5-content-ref-id");
|
|
654
607
|
const selectedStep = this.selectedStep;
|
|
@@ -656,25 +609,22 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
656
609
|
const bExpanded = stepInHeader.getAttribute(EXPANDED_STEP) === "true";
|
|
657
610
|
const newlySelectedIndex = this.slottedSteps.indexOf(stepToSelect);
|
|
658
611
|
const firstFocusableElement = await (0, _FocusableElements.getFirstFocusableElement)(stepToSelect.firstElementChild);
|
|
659
|
-
|
|
660
612
|
if (firstFocusableElement) {
|
|
661
613
|
// Focus the first focusable element within the step content corresponding to the currently focused tab
|
|
662
614
|
firstFocusableElement.focus();
|
|
663
|
-
}
|
|
664
|
-
// just scroll to its starting point and stop.
|
|
665
|
-
|
|
615
|
+
}
|
|
666
616
|
|
|
617
|
+
// If the currently selected (active) step is clicked,
|
|
618
|
+
// just scroll to its starting point and stop.
|
|
667
619
|
if (selectedStep === stepToSelect) {
|
|
668
620
|
this.scrollToContentItem(this.selectedStepIndex);
|
|
669
621
|
return;
|
|
670
622
|
}
|
|
671
|
-
|
|
672
623
|
if (bExpanded || !bExpanded && (newlySelectedIndex === 0 || newlySelectedIndex === this.steps.length - 1)) {
|
|
673
624
|
// Change selection and fire "step-change".
|
|
674
625
|
this.switchSelectionFromOldToNewStep(selectedStep, stepToSelect, newlySelectedIndex, true);
|
|
675
626
|
}
|
|
676
627
|
}
|
|
677
|
-
|
|
678
628
|
getContentHeight() {
|
|
679
629
|
let contentHeight = 0;
|
|
680
630
|
this.stepsDOM.forEach(step => {
|
|
@@ -682,19 +632,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
682
632
|
});
|
|
683
633
|
return contentHeight;
|
|
684
634
|
}
|
|
685
|
-
|
|
686
635
|
getStepAriaLabelText(step, ariaLabel) {
|
|
687
636
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_STEP_ARIA_LABEL, ariaLabel);
|
|
688
637
|
}
|
|
689
|
-
|
|
690
638
|
get stepsDOM() {
|
|
691
639
|
return Array.from(this.shadowRoot.querySelectorAll(".ui5-wiz-content-item"));
|
|
692
640
|
}
|
|
693
|
-
|
|
694
641
|
get _stepsInHeader() {
|
|
695
642
|
return this.getStepsInfo();
|
|
696
643
|
}
|
|
697
|
-
|
|
698
644
|
get _steps() {
|
|
699
645
|
const lastEnabledStepIndex = this.getLastEnabledStepIndex();
|
|
700
646
|
const stepsInfo = this.getStepsInfo();
|
|
@@ -704,126 +650,99 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
704
650
|
return step;
|
|
705
651
|
});
|
|
706
652
|
}
|
|
707
|
-
|
|
708
653
|
get stepsCount() {
|
|
709
654
|
return this.slottedSteps.length;
|
|
710
655
|
}
|
|
711
|
-
|
|
712
656
|
get selectedStep() {
|
|
713
657
|
if (this.selectedStepsCount) {
|
|
714
658
|
return this.selectedSteps[0];
|
|
715
659
|
}
|
|
716
|
-
|
|
717
660
|
return null;
|
|
718
661
|
}
|
|
719
|
-
|
|
720
662
|
get lastSelectedStep() {
|
|
721
663
|
if (this.selectedStepsCount) {
|
|
722
664
|
return this.selectedSteps[this.selectedStepsCount - 1];
|
|
723
665
|
}
|
|
724
|
-
|
|
725
666
|
return null;
|
|
726
667
|
}
|
|
727
|
-
|
|
728
668
|
get selectedSteps() {
|
|
729
669
|
return this.slottedSteps.filter(step => step.selected);
|
|
730
670
|
}
|
|
731
|
-
|
|
732
671
|
get enabledSteps() {
|
|
733
672
|
return this.slottedSteps.filter(step => !step.disabled);
|
|
734
673
|
}
|
|
735
|
-
|
|
736
674
|
get selectedStepsCount() {
|
|
737
675
|
return this.selectedSteps.length;
|
|
738
676
|
}
|
|
739
|
-
|
|
740
677
|
get slottedSteps() {
|
|
741
678
|
return this.getSlottedNodes("steps");
|
|
742
679
|
}
|
|
743
|
-
|
|
744
680
|
get contentDOM() {
|
|
745
681
|
return this.shadowRoot.querySelector(`.ui5-wiz-content`);
|
|
746
682
|
}
|
|
747
|
-
|
|
748
683
|
get stepsInHeaderDOM() {
|
|
749
684
|
return Array.from(this.shadowRoot.querySelectorAll("[ui5-wizard-tab]"));
|
|
750
685
|
}
|
|
751
|
-
|
|
752
686
|
get enabledStepsInHeaderDOM() {
|
|
753
687
|
return this.stepsInHeaderDOM;
|
|
754
688
|
}
|
|
755
|
-
|
|
756
689
|
get phoneMode() {
|
|
757
690
|
if ((0, _Device.isPhone)()) {
|
|
758
691
|
return true;
|
|
759
692
|
}
|
|
760
|
-
|
|
761
693
|
return this.width <= Wizard.PHONE_BREAKPOINT;
|
|
762
694
|
}
|
|
763
|
-
|
|
764
695
|
get navAriaRoleDescription() {
|
|
765
696
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_NAV_ARIA_ROLE_DESCRIPTION);
|
|
766
697
|
}
|
|
767
|
-
|
|
768
698
|
get navAriaLabelText() {
|
|
769
699
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_NAV_ARIA_LABEL);
|
|
770
700
|
}
|
|
771
|
-
|
|
772
701
|
get navAriaDescribedbyText() {
|
|
773
702
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_LIST_ARIA_DESCRIBEDBY);
|
|
774
703
|
}
|
|
775
|
-
|
|
776
704
|
get listAriaLabelText() {
|
|
777
705
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_LIST_ARIA_LABEL);
|
|
778
706
|
}
|
|
779
|
-
|
|
780
707
|
get actionSheetStepsText() {
|
|
781
708
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_ACTIONSHEET_STEPS_ARIA_LABEL);
|
|
782
709
|
}
|
|
783
|
-
|
|
784
710
|
get navStepDefaultHeading() {
|
|
785
711
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_NAV_STEP_DEFAULT_HEADING);
|
|
786
712
|
}
|
|
787
|
-
|
|
788
713
|
get optionalStepText() {
|
|
789
714
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_OPTIONAL_STEP_ARIA_LABEL);
|
|
790
715
|
}
|
|
791
|
-
|
|
792
716
|
get activeStepText() {
|
|
793
717
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_STEP_ACTIVE);
|
|
794
718
|
}
|
|
795
|
-
|
|
796
719
|
get inactiveStepText() {
|
|
797
720
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_STEP_INACTIVE);
|
|
798
721
|
}
|
|
799
|
-
|
|
800
722
|
get ariaLabelText() {
|
|
801
723
|
return Wizard.i18nBundle.getText(_i18nDefaults.WIZARD_NAV_ARIA_ROLE_DESCRIPTION);
|
|
802
724
|
}
|
|
803
|
-
|
|
804
725
|
get effectiveStepSwitchThreshold() {
|
|
805
726
|
return (0, _clamp.default)(this.stepSwitchThreshold, STEP_SWITCH_THRESHOLDS.MIN, STEP_SWITCH_THRESHOLDS.MAX);
|
|
806
727
|
}
|
|
728
|
+
|
|
807
729
|
/**
|
|
808
730
|
* Returns an array of data objects, based on the user defined steps
|
|
809
731
|
* to later build the steps (tabs) within the header.
|
|
810
732
|
* @returns {Array<Object>}
|
|
811
733
|
* @private
|
|
812
734
|
*/
|
|
813
|
-
|
|
814
|
-
|
|
815
735
|
getStepsInfo() {
|
|
816
736
|
const lastEnabledStepIndex = this.getLastEnabledStepIndex();
|
|
817
737
|
const stepsCount = this.stepsCount;
|
|
818
738
|
const selectedStepIndex = this.getSelectedStepIndex();
|
|
819
739
|
let inintialZIndex = this.steps.length + 10;
|
|
820
740
|
let accInfo;
|
|
821
|
-
|
|
822
741
|
this._adjustHeaderOverflow();
|
|
823
|
-
|
|
824
742
|
return this.steps.map((step, idx) => {
|
|
825
|
-
const pos = idx + 1;
|
|
743
|
+
const pos = idx + 1;
|
|
826
744
|
|
|
745
|
+
// Hide separator if it's the last step and it's not a branching one
|
|
827
746
|
const hideSeparator = idx === stepsCount - 1 && !step.branching;
|
|
828
747
|
const isOptional = step.subtitleText ? this.optionalStepText : "";
|
|
829
748
|
const stepStateText = step.disabled ? this.inactiveStepText : this.activeStepText;
|
|
@@ -854,27 +773,24 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
854
773
|
};
|
|
855
774
|
});
|
|
856
775
|
}
|
|
776
|
+
|
|
857
777
|
/**
|
|
858
778
|
* Returns the index of the selected step.
|
|
859
779
|
* @returns {Integer}
|
|
860
780
|
* @private
|
|
861
781
|
*/
|
|
862
|
-
|
|
863
|
-
|
|
864
782
|
getSelectedStepIndex() {
|
|
865
783
|
if (this.selectedStep) {
|
|
866
784
|
return this.slottedSteps.indexOf(this.selectedStep);
|
|
867
785
|
}
|
|
868
|
-
|
|
869
786
|
return 0;
|
|
870
787
|
}
|
|
788
|
+
|
|
871
789
|
/**
|
|
872
790
|
* Returns the index of the last enabled step.
|
|
873
791
|
* @returns {Integer}
|
|
874
792
|
* @private
|
|
875
793
|
*/
|
|
876
|
-
|
|
877
|
-
|
|
878
794
|
getLastEnabledStepIndex() {
|
|
879
795
|
let lastEnabledStepIndex = 0;
|
|
880
796
|
this.slottedSteps.forEach((step, idx) => {
|
|
@@ -884,31 +800,27 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
884
800
|
});
|
|
885
801
|
return lastEnabledStepIndex;
|
|
886
802
|
}
|
|
887
|
-
|
|
888
803
|
getStepByRefId(refId) {
|
|
889
804
|
return this.slottedSteps.find(step => step._id === refId);
|
|
890
805
|
}
|
|
891
|
-
|
|
892
806
|
getStepWrapperByRefId(refId) {
|
|
893
807
|
return this.shadowRoot.querySelector(`[data-ui5-content-item-ref-id=${refId}]`);
|
|
894
808
|
}
|
|
895
|
-
|
|
896
809
|
getStepWrapperByIdx(idx) {
|
|
897
810
|
return this.getStepWrapperByRefId(this.steps[idx]._id);
|
|
898
811
|
}
|
|
812
|
+
|
|
899
813
|
/**
|
|
900
814
|
* Scrolls to the content of the selected step, used in <code>onAfterRendering</cod>.
|
|
901
815
|
* @private
|
|
902
816
|
*/
|
|
903
|
-
|
|
904
|
-
|
|
905
817
|
scrollToSelectedStep() {
|
|
906
818
|
if (!this.selectionRequestedByScroll) {
|
|
907
819
|
this.scrollToContentItem(this.selectedStepIndex);
|
|
908
820
|
}
|
|
909
|
-
|
|
910
821
|
this.selectionRequestedByScroll = false;
|
|
911
822
|
}
|
|
823
|
+
|
|
912
824
|
/**
|
|
913
825
|
* Scrolls to the content item within the <code>ui5-wizard</code> shadowDOM
|
|
914
826
|
* by given step index.
|
|
@@ -916,59 +828,52 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
916
828
|
* @private
|
|
917
829
|
* @param {Integer} stepIndex the index of a step
|
|
918
830
|
*/
|
|
919
|
-
|
|
920
|
-
|
|
921
831
|
scrollToContentItem(stepIndex) {
|
|
922
832
|
this.contentDOM.scrollTop = this.getClosestScrollPosByStepIndex(stepIndex);
|
|
923
833
|
}
|
|
834
|
+
|
|
924
835
|
/**
|
|
925
836
|
* Returns to closest scroll position for the given step index.
|
|
926
837
|
*
|
|
927
838
|
* @private
|
|
928
839
|
* @param {Integer} stepIndex the index of a step
|
|
929
840
|
*/
|
|
930
|
-
|
|
931
|
-
|
|
932
841
|
getClosestScrollPosByStepIndex(stepIndex) {
|
|
933
842
|
if (stepIndex === 0) {
|
|
934
843
|
return 0;
|
|
935
|
-
}
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
// It's possible to have [enabled - 0, disabled - 1, enabled - 2, disabled - 3] step definition and similar.
|
|
936
847
|
// Consider selection of the third step at index 2, the wizard should scroll where the previous step ends,
|
|
937
848
|
// but in this case the 2nd step is disabled, so we have to fallback to the first possible step.
|
|
938
|
-
|
|
939
|
-
|
|
940
849
|
for (let closestStepIndex = stepIndex - 1; closestStepIndex >= 0; closestStepIndex--) {
|
|
941
850
|
if (this.stepScrollOffsets[closestStepIndex] > 0) {
|
|
942
851
|
return this.stepScrollOffsets[closestStepIndex];
|
|
943
852
|
}
|
|
944
853
|
}
|
|
945
|
-
|
|
946
854
|
return 0;
|
|
947
855
|
}
|
|
856
|
+
|
|
948
857
|
/**
|
|
949
858
|
* Returns the closest step index by given scroll position.
|
|
950
859
|
* @private
|
|
951
860
|
* @param {Integer} scrollPos the scroll position
|
|
952
861
|
*/
|
|
953
|
-
|
|
954
|
-
|
|
955
862
|
getClosestStepIndexByScrollPos(scrollPos) {
|
|
956
863
|
for (let closestStepIndex = 0; closestStepIndex <= this.stepScrollOffsets.length - 1; closestStepIndex++) {
|
|
957
864
|
const stepScrollOffset = this.stepScrollOffsets[closestStepIndex];
|
|
958
865
|
const step = this.getStepWrapperByIdx(closestStepIndex);
|
|
959
866
|
const switchStepBoundary = step.offsetTop + step.offsetHeight * this.effectiveStepSwitchThreshold;
|
|
960
|
-
|
|
961
867
|
if (stepScrollOffset > 0 && scrollPos < stepScrollOffset) {
|
|
962
868
|
if (scrollPos > switchStepBoundary) {
|
|
963
869
|
return closestStepIndex + 1;
|
|
964
870
|
}
|
|
965
|
-
|
|
966
871
|
return closestStepIndex;
|
|
967
872
|
}
|
|
968
873
|
}
|
|
969
|
-
|
|
970
874
|
return this.selectedStepIndex;
|
|
971
875
|
}
|
|
876
|
+
|
|
972
877
|
/**
|
|
973
878
|
* Switches the selection from the old step to the newly selected step.
|
|
974
879
|
*
|
|
@@ -978,8 +883,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
978
883
|
* @param {boolean} changeWithClick the selection changed due to user click in the step navigation
|
|
979
884
|
* @private
|
|
980
885
|
*/
|
|
981
|
-
|
|
982
|
-
|
|
983
886
|
switchSelectionFromOldToNewStep(selectedStep, stepToSelect, stepToSelectIndex, changeWithClick) {
|
|
984
887
|
if (selectedStep && stepToSelect) {
|
|
985
888
|
// keep the selection if next step is disabled
|
|
@@ -987,7 +890,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
987
890
|
selectedStep.selected = false;
|
|
988
891
|
stepToSelect.selected = true;
|
|
989
892
|
}
|
|
990
|
-
|
|
991
893
|
this.fireEvent("step-change", {
|
|
992
894
|
step: stepToSelect,
|
|
993
895
|
previousStep: selectedStep,
|
|
@@ -996,26 +898,21 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
996
898
|
this.selectedStepIndex = stepToSelectIndex;
|
|
997
899
|
}
|
|
998
900
|
}
|
|
901
|
+
|
|
999
902
|
/**
|
|
1000
903
|
* Sorter method for sorting an array in ascending order.
|
|
1001
904
|
* @private
|
|
1002
905
|
*/
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
906
|
sortAscending(a, b) {
|
|
1006
907
|
if (a < b) {
|
|
1007
908
|
return -1;
|
|
1008
909
|
}
|
|
1009
|
-
|
|
1010
910
|
if (a > b) {
|
|
1011
911
|
return 1;
|
|
1012
912
|
}
|
|
1013
|
-
|
|
1014
913
|
return 0;
|
|
1015
914
|
}
|
|
1016
|
-
|
|
1017
915
|
}
|
|
1018
|
-
|
|
1019
916
|
Wizard.define();
|
|
1020
917
|
var _default = Wizard;
|
|
1021
918
|
_exports.default = _default;
|