@openui5/sap.ui.webc.fiori 1.111.1 → 1.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,11 +21,11 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
21
21
|
_MediaGalleryMenuVerticalAlign = _interopRequireDefault(_MediaGalleryMenuVerticalAlign);
|
|
22
22
|
_MediaGalleryTemplate = _interopRequireDefault(_MediaGalleryTemplate);
|
|
23
23
|
_MediaGallery = _interopRequireDefault(_MediaGallery);
|
|
24
|
-
|
|
25
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
|
-
|
|
27
25
|
// Template
|
|
26
|
+
|
|
28
27
|
// Styles
|
|
28
|
+
|
|
29
29
|
// The allowed number of thumbnail columns on each size
|
|
30
30
|
// (relevant when <code>showAllThumbnails</code> is enabled)
|
|
31
31
|
const COLUMNS_COUNT = {
|
|
@@ -34,16 +34,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
34
34
|
"L": 3,
|
|
35
35
|
"XL": 4
|
|
36
36
|
};
|
|
37
|
+
|
|
37
38
|
/**
|
|
38
39
|
* @public
|
|
39
40
|
*/
|
|
40
|
-
|
|
41
41
|
const metadata = {
|
|
42
42
|
tag: "ui5-media-gallery",
|
|
43
43
|
managedSlots: true,
|
|
44
|
-
slots:
|
|
45
|
-
/** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */
|
|
46
|
-
{
|
|
44
|
+
slots: /** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */{
|
|
47
45
|
/**
|
|
48
46
|
* Defines the component items.
|
|
49
47
|
*
|
|
@@ -64,9 +62,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
64
62
|
invalidateOnChildChange: true
|
|
65
63
|
}
|
|
66
64
|
},
|
|
67
|
-
properties:
|
|
68
|
-
/** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */
|
|
69
|
-
{
|
|
65
|
+
properties: /** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */{
|
|
70
66
|
/**
|
|
71
67
|
* If set to <code>true</code>, all thumbnails are rendered in a scrollable container.
|
|
72
68
|
* If <code>false</code>, only up to five thumbnails are rendered, followed by
|
|
@@ -79,7 +75,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
79
75
|
showAllThumbnails: {
|
|
80
76
|
type: Boolean
|
|
81
77
|
},
|
|
82
|
-
|
|
83
78
|
/**
|
|
84
79
|
* If enabled, a <code>display-area-click</code> event is fired
|
|
85
80
|
* when the user clicks or taps on the display area.
|
|
@@ -94,7 +89,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
94
89
|
interactiveDisplayArea: {
|
|
95
90
|
type: Boolean
|
|
96
91
|
},
|
|
97
|
-
|
|
98
92
|
/**
|
|
99
93
|
* Determines the layout of the component.
|
|
100
94
|
* <br><br>
|
|
@@ -113,7 +107,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
113
107
|
type: _MediaGalleryLayout.default,
|
|
114
108
|
defaultValue: "Auto"
|
|
115
109
|
},
|
|
116
|
-
|
|
117
110
|
/**
|
|
118
111
|
* Determines the horizontal alignment of the thumbnails menu
|
|
119
112
|
* vs. the central display area.
|
|
@@ -132,7 +125,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
132
125
|
type: _MediaGalleryMenuHorizontalAlign.default,
|
|
133
126
|
defaultValue: _MediaGalleryMenuHorizontalAlign.default.Left
|
|
134
127
|
},
|
|
135
|
-
|
|
136
128
|
/**
|
|
137
129
|
* Determines the vertical alignment of the thumbnails menu
|
|
138
130
|
* vs. the central display area.
|
|
@@ -151,7 +143,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
151
143
|
type: _MediaGalleryMenuVerticalAlign.default,
|
|
152
144
|
defaultValue: _MediaGalleryMenuVerticalAlign.default.Bottom
|
|
153
145
|
},
|
|
154
|
-
|
|
155
146
|
/**
|
|
156
147
|
* Determines the actual applied layout type
|
|
157
148
|
* (esp. needed when the app did not specify a fixed layout type
|
|
@@ -171,7 +162,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
171
162
|
type: _MediaGalleryLayout.default,
|
|
172
163
|
defaultValue: "Vertical"
|
|
173
164
|
},
|
|
174
|
-
|
|
175
165
|
/**
|
|
176
166
|
* Defines the current media query size.
|
|
177
167
|
*
|
|
@@ -180,7 +170,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
180
170
|
mediaRange: {
|
|
181
171
|
type: String
|
|
182
172
|
},
|
|
183
|
-
|
|
184
173
|
/**
|
|
185
174
|
* The number of items in the overflow.
|
|
186
175
|
*
|
|
@@ -192,9 +181,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
192
181
|
defaultValue: 0
|
|
193
182
|
}
|
|
194
183
|
},
|
|
195
|
-
events:
|
|
196
|
-
/** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */
|
|
197
|
-
{
|
|
184
|
+
events: /** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */{
|
|
198
185
|
/**
|
|
199
186
|
* Fired when selection is changed by user interaction.
|
|
200
187
|
*
|
|
@@ -209,7 +196,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
209
196
|
}
|
|
210
197
|
}
|
|
211
198
|
},
|
|
212
|
-
|
|
213
199
|
/**
|
|
214
200
|
* Fired when the thumbnails overflow button is clicked.
|
|
215
201
|
*
|
|
@@ -217,7 +203,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
217
203
|
* @public
|
|
218
204
|
*/
|
|
219
205
|
"overflow-click": {},
|
|
220
|
-
|
|
221
206
|
/**
|
|
222
207
|
* Fired when the display area is clicked.<br>
|
|
223
208
|
* The display area is the central area that contains
|
|
@@ -229,6 +214,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
229
214
|
"display-area-click": {}
|
|
230
215
|
}
|
|
231
216
|
};
|
|
217
|
+
|
|
232
218
|
/**
|
|
233
219
|
* @class
|
|
234
220
|
*
|
|
@@ -273,30 +259,23 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
273
259
|
* @public
|
|
274
260
|
* @since 1.1.0
|
|
275
261
|
*/
|
|
276
|
-
|
|
277
262
|
class MediaGallery extends _UI5Element.default {
|
|
278
263
|
constructor() {
|
|
279
264
|
super();
|
|
280
265
|
this._onResize = this._updateLayout.bind(this);
|
|
281
266
|
this._selectedItem = null;
|
|
282
|
-
|
|
283
267
|
this._initItemNavigation();
|
|
284
268
|
}
|
|
285
|
-
|
|
286
269
|
onEnterDOM() {
|
|
287
270
|
!(0, _Device.isPhone)() && _ResizeHandler.default.register(this, this._onResize);
|
|
288
271
|
}
|
|
289
|
-
|
|
290
272
|
onExitDOM() {
|
|
291
273
|
!(0, _Device.isPhone)() && _ResizeHandler.default.deregister(this, this._onResize);
|
|
292
274
|
}
|
|
293
|
-
|
|
294
275
|
onAfterRendering() {
|
|
295
276
|
this._updateLayout();
|
|
296
|
-
|
|
297
277
|
this._updateSelection();
|
|
298
278
|
}
|
|
299
|
-
|
|
300
279
|
_initItemNavigation() {
|
|
301
280
|
if (!this._itemNavigation) {
|
|
302
281
|
this._itemNavigation = new _ItemNavigation.default(this, {
|
|
@@ -305,125 +284,95 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
305
284
|
});
|
|
306
285
|
}
|
|
307
286
|
}
|
|
308
|
-
|
|
309
287
|
_updateSelection() {
|
|
310
288
|
let itemToSelect = this.items.find(item => item.selected);
|
|
311
|
-
|
|
312
289
|
if (!itemToSelect || !this._isSelectableItem(itemToSelect)) {
|
|
313
290
|
itemToSelect = this._findSelectableItem();
|
|
314
291
|
}
|
|
315
|
-
|
|
316
292
|
if (itemToSelect && itemToSelect !== this._selectedItem) {
|
|
317
293
|
this._selectItem(itemToSelect);
|
|
318
294
|
}
|
|
319
295
|
}
|
|
320
|
-
|
|
321
296
|
_isSelectableItem(item) {
|
|
322
297
|
return !item.disabled && !item.hidden;
|
|
323
298
|
}
|
|
324
|
-
|
|
325
299
|
_findSelectableItem() {
|
|
326
300
|
return this.items.find(this._isSelectableItem);
|
|
327
301
|
}
|
|
328
|
-
|
|
329
302
|
_updateMediaRange(width) {
|
|
330
303
|
this.mediaRange = _MediaRange.default.getCurrentRange(_MediaRange.default.RANGESETS.RANGE_4STEPS, width);
|
|
331
304
|
}
|
|
332
|
-
|
|
333
305
|
_updateLayout() {
|
|
334
306
|
const rootNode = this.getDomRef(),
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
307
|
+
height = rootNode.offsetHeight,
|
|
308
|
+
width = rootNode.offsetWidth;
|
|
338
309
|
if (!width || !height || (0, _Device.isPhone)()) {
|
|
339
310
|
return;
|
|
340
311
|
}
|
|
341
|
-
|
|
342
312
|
this._updateMediaRange(width);
|
|
343
|
-
|
|
344
313
|
this.effectiveLayout = this._infereffectiveLayout();
|
|
345
314
|
this._overflowSize = this._calculateOverflowSize(width, height);
|
|
346
|
-
|
|
347
315
|
this._toggleDisplaySquareSize(this._shouldHaveSquareDisplay);
|
|
348
|
-
|
|
349
316
|
this._toggleMainItem9x16size(this._shouldHaveWideDisplay);
|
|
350
317
|
}
|
|
351
|
-
|
|
352
318
|
_calculateOverflowSize(width, height) {
|
|
353
319
|
const marginSize = MediaGallery.THUMBNAIL_MARGIN;
|
|
354
320
|
let columnHeight, columnsCount;
|
|
355
|
-
|
|
356
321
|
if (this.showAllThumbnails) {
|
|
357
322
|
return 0;
|
|
358
323
|
}
|
|
359
|
-
|
|
360
324
|
if (this.effectiveLayout === _MediaGalleryLayout.default.Horizontal) {
|
|
361
325
|
columnHeight = height - marginSize;
|
|
362
326
|
columnsCount = this.showAllThumbnails ? COLUMNS_COUNT[this.mediaRange] : 1;
|
|
363
327
|
} else {
|
|
364
328
|
columnHeight = width - marginSize * 2; // column is flexed to appear as a row in this case
|
|
365
|
-
|
|
366
329
|
columnsCount = 1;
|
|
367
330
|
}
|
|
368
|
-
|
|
369
331
|
return this._getOverflowSize(columnHeight, columnsCount);
|
|
370
332
|
}
|
|
371
|
-
|
|
372
333
|
_toggleDisplaySquareSize(enable) {
|
|
373
334
|
this._display.style.width = ""; // restore default width
|
|
374
335
|
|
|
375
336
|
if (enable) {
|
|
376
337
|
const marginSize = MediaGallery.THUMBNAIL_MARGIN,
|
|
377
|
-
|
|
338
|
+
width = this._display.offsetWidth;
|
|
378
339
|
let availableHeight = this.getDomRef().offsetHeight - 2 * marginSize;
|
|
379
|
-
|
|
380
340
|
if (this.effectiveLayout === _MediaGalleryLayout.default.Vertical) {
|
|
381
341
|
availableHeight -= MediaGallery.THUMBNAIL_HEIGHT + marginSize;
|
|
382
342
|
}
|
|
383
|
-
|
|
384
343
|
if (width > availableHeight) {
|
|
385
344
|
// set to square
|
|
386
345
|
this._display.style.width = `${availableHeight}px`;
|
|
387
346
|
}
|
|
388
347
|
}
|
|
389
348
|
}
|
|
390
|
-
|
|
391
349
|
_toggleMainItem9x16size(enable) {
|
|
392
350
|
if (!this._mainItem) {
|
|
393
351
|
return;
|
|
394
352
|
}
|
|
395
|
-
|
|
396
353
|
const width = this._mainItem.offsetWidth,
|
|
397
|
-
|
|
354
|
+
contentHeight = enable ? `${width / 16 * 9}px` : "";
|
|
398
355
|
this._mainItem.contentHeight = contentHeight;
|
|
399
356
|
}
|
|
400
|
-
|
|
401
357
|
_infereffectiveLayout() {
|
|
402
358
|
if (this.layout === _MediaGalleryLayout.default.Auto) {
|
|
403
359
|
return this._isPhoneSize ? _MediaGalleryLayout.default.Vertical : _MediaGalleryLayout.default.Horizontal;
|
|
404
360
|
}
|
|
405
|
-
|
|
406
361
|
return this.layout;
|
|
407
362
|
}
|
|
408
|
-
|
|
409
363
|
_getMaxAllowedThumbnailsInColumn(columnHeight) {
|
|
410
364
|
let maxAllowedItems = Math.floor(columnHeight / MediaGallery.THUMBNAIL_HEIGHT);
|
|
411
|
-
|
|
412
365
|
if (!this.showAllThumbnails) {
|
|
413
366
|
maxAllowedItems = Math.min(maxAllowedItems, 5);
|
|
414
367
|
}
|
|
415
|
-
|
|
416
368
|
return maxAllowedItems;
|
|
417
369
|
}
|
|
418
|
-
|
|
419
370
|
_getOverflowSize(columnHeight, columnsCount) {
|
|
420
371
|
const maxAlowedThumbnailsInColumn = this._getMaxAllowedThumbnailsInColumn(columnHeight),
|
|
421
|
-
|
|
422
|
-
|
|
372
|
+
overflowSize = Math.max(0, this.items.length - maxAlowedThumbnailsInColumn * columnsCount);
|
|
423
373
|
if (overflowSize === this.items.length || overflowSize === 0) {
|
|
424
374
|
return overflowSize;
|
|
425
375
|
}
|
|
426
|
-
|
|
427
376
|
return overflowSize + 1; // overflow 1 extra item to make room for overflow btn as well
|
|
428
377
|
}
|
|
429
378
|
|
|
@@ -431,190 +380,146 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
431
380
|
if (!this._showThumbnails) {
|
|
432
381
|
return [];
|
|
433
382
|
}
|
|
434
|
-
|
|
435
383
|
const items = this._visibleItems.filter(item => !item.disabled);
|
|
436
|
-
|
|
437
384
|
if (this._overflowBtn) {
|
|
438
385
|
items.push(this._overflowBtn);
|
|
439
386
|
}
|
|
440
|
-
|
|
441
387
|
return items;
|
|
442
388
|
}
|
|
443
|
-
|
|
444
389
|
_selectItem(item, userInteraction) {
|
|
445
390
|
if (item === this._selectedItem) {
|
|
446
391
|
return;
|
|
447
392
|
}
|
|
448
|
-
|
|
449
393
|
this._selectedItem = item;
|
|
450
|
-
|
|
451
394
|
this._updateSelectedFlag(item);
|
|
452
|
-
|
|
453
395
|
this._itemNavigation.setCurrentItem(item);
|
|
454
|
-
|
|
455
396
|
if (userInteraction) {
|
|
456
397
|
this.fireEvent("selection-change", {
|
|
457
398
|
item
|
|
458
399
|
});
|
|
459
400
|
}
|
|
460
|
-
|
|
461
401
|
if ((0, _Device.isPhone)()) {
|
|
462
402
|
this._selectItemOnPhone(item);
|
|
463
403
|
} else {
|
|
464
404
|
this._displayContent(item);
|
|
465
405
|
}
|
|
466
406
|
}
|
|
467
|
-
|
|
468
407
|
_updateSelectedFlag(itemToSelect) {
|
|
469
408
|
this.items.forEach(next => {
|
|
470
409
|
next.selected = false;
|
|
471
410
|
});
|
|
472
411
|
itemToSelect.selected = true;
|
|
473
412
|
}
|
|
474
|
-
|
|
475
413
|
_selectItemOnPhone(item) {
|
|
476
414
|
const selectableItemIndex = this._selectableItems.indexOf(item),
|
|
477
|
-
|
|
478
|
-
|
|
415
|
+
carousel = this._carousel;
|
|
479
416
|
carousel && carousel.navigateTo(selectableItemIndex);
|
|
480
417
|
}
|
|
481
|
-
|
|
482
418
|
_displayContent(item) {
|
|
483
419
|
let clone;
|
|
484
420
|
const mainItem = this._mainItem,
|
|
485
|
-
|
|
486
|
-
|
|
421
|
+
oldContent = mainItem._content,
|
|
422
|
+
newContent = item._content;
|
|
487
423
|
mainItem._thumbnailDesign = false;
|
|
488
424
|
oldContent && oldContent.remove();
|
|
489
|
-
|
|
490
425
|
if (newContent) {
|
|
491
426
|
clone = newContent.cloneNode(true);
|
|
492
427
|
mainItem.layout = item.layout;
|
|
493
428
|
mainItem.appendChild(clone);
|
|
494
429
|
}
|
|
495
430
|
}
|
|
496
|
-
|
|
497
431
|
_onThumbnailClick(event) {
|
|
498
432
|
const item = event.target.closest("[ui5-media-gallery-item]");
|
|
499
|
-
|
|
500
433
|
if (item.disabled) {
|
|
501
434
|
return;
|
|
502
435
|
}
|
|
503
|
-
|
|
504
436
|
if (item !== this._selectedItem) {
|
|
505
|
-
this._selectItem(item, true
|
|
506
|
-
/* userInteraction */
|
|
507
|
-
);
|
|
437
|
+
this._selectItem(item, true /* userInteraction */);
|
|
508
438
|
}
|
|
509
439
|
}
|
|
510
440
|
|
|
511
441
|
_onOverflowBtnClick() {
|
|
512
442
|
this.fireEvent("overflow-click");
|
|
513
443
|
}
|
|
514
|
-
|
|
515
444
|
_onDisplayAreaClick(event) {
|
|
516
445
|
if (!this.interactiveDisplayArea) {
|
|
517
446
|
return;
|
|
518
447
|
}
|
|
519
|
-
|
|
520
448
|
this.fireEvent("display-area-click");
|
|
521
449
|
}
|
|
522
|
-
|
|
523
450
|
_onCarouselNavigate(event) {
|
|
524
451
|
const selectedIndex = event.detail.selectedIndex,
|
|
525
|
-
|
|
452
|
+
item = this._selectableItems[selectedIndex];
|
|
526
453
|
this.fireEvent("selection-change", {
|
|
527
454
|
item
|
|
528
455
|
});
|
|
529
456
|
}
|
|
530
|
-
|
|
531
457
|
get _mainItemTabIndex() {
|
|
532
458
|
return this.interactiveDisplayArea ? 0 : undefined;
|
|
533
459
|
}
|
|
534
|
-
|
|
535
460
|
get _selectableItems() {
|
|
536
461
|
return this.items.filter(this._isSelectableItem);
|
|
537
462
|
}
|
|
538
|
-
|
|
539
463
|
get _carousel() {
|
|
540
464
|
return this.shadowRoot.querySelector("[ui5-carousel]");
|
|
541
465
|
}
|
|
542
|
-
|
|
543
466
|
get _display() {
|
|
544
467
|
return this.shadowRoot.querySelector(".ui5-media-gallery-display");
|
|
545
468
|
}
|
|
546
|
-
|
|
547
469
|
get _mainItem() {
|
|
548
470
|
return this.shadowRoot.querySelector(".ui5-media-gallery-display [ui5-media-gallery-item]");
|
|
549
471
|
}
|
|
550
|
-
|
|
551
472
|
get _overflowBtn() {
|
|
552
473
|
return this.shadowRoot.querySelector(".ui5-media-gallery-overflow [ui5-button]");
|
|
553
474
|
}
|
|
554
|
-
|
|
555
475
|
get _visibleItems() {
|
|
556
476
|
const visibleItemsCount = this.items.length - this._overflowSize;
|
|
557
477
|
return this.items.slice(0, visibleItemsCount);
|
|
558
478
|
}
|
|
559
|
-
|
|
560
479
|
get _isPhonePlatform() {
|
|
561
480
|
return (0, _Device.isPhone)();
|
|
562
481
|
}
|
|
563
|
-
|
|
564
482
|
get _showThumbnails() {
|
|
565
483
|
return !(0, _Device.isPhone)();
|
|
566
484
|
}
|
|
567
|
-
|
|
568
485
|
get _showOverflowBtn() {
|
|
569
486
|
return this._overflowSize > 0;
|
|
570
487
|
}
|
|
571
|
-
|
|
572
488
|
get _isPhoneSize() {
|
|
573
489
|
return this.mediaRange === "S";
|
|
574
490
|
}
|
|
575
|
-
|
|
576
491
|
get _mainItemHasWideLayout() {
|
|
577
492
|
return this._mainItem && this._mainItem.layout === _MediaGalleryItemLayout.default.Wide;
|
|
578
493
|
}
|
|
579
|
-
|
|
580
494
|
get _shouldHaveWideDisplay() {
|
|
581
495
|
return this._mainItemHasWideLayout && this.showAllThumbnails && this.effectiveLayout === _MediaGalleryLayout.default.Horizontal;
|
|
582
496
|
}
|
|
583
|
-
|
|
584
497
|
get _shouldHaveSquareDisplay() {
|
|
585
498
|
// by default it should be square
|
|
586
499
|
// with the only exception when a wide 9*16 item should be displayed
|
|
587
500
|
return !this._shouldHaveWideDisplay;
|
|
588
501
|
}
|
|
589
|
-
|
|
590
502
|
static get metadata() {
|
|
591
503
|
return metadata;
|
|
592
504
|
}
|
|
593
|
-
|
|
594
505
|
static get render() {
|
|
595
506
|
return _LitRenderer.default;
|
|
596
507
|
}
|
|
597
|
-
|
|
598
508
|
static get template() {
|
|
599
509
|
return _MediaGalleryTemplate.default;
|
|
600
510
|
}
|
|
601
|
-
|
|
602
511
|
static get staticAreaTemplate() {
|
|
603
512
|
return _MediaGalleryTemplate.default;
|
|
604
513
|
}
|
|
605
|
-
|
|
606
514
|
static get styles() {
|
|
607
515
|
return [_MediaGallery.default];
|
|
608
516
|
}
|
|
609
|
-
|
|
610
517
|
static get staticAreaStyles() {
|
|
611
518
|
return null;
|
|
612
519
|
}
|
|
613
|
-
|
|
614
520
|
static get dependencies() {
|
|
615
521
|
return [_MediaGalleryItem.default, _Button.default, _Carousel.default];
|
|
616
522
|
}
|
|
617
|
-
|
|
618
523
|
static get THUMBNAIL_HEIGHT() {
|
|
619
524
|
return 80; // px
|
|
620
525
|
}
|
|
@@ -622,7 +527,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/delegate/ItemNavig
|
|
|
622
527
|
static get THUMBNAIL_MARGIN() {
|
|
623
528
|
return 16; // px
|
|
624
529
|
}
|
|
625
|
-
|
|
626
530
|
}
|
|
627
531
|
|
|
628
532
|
MediaGallery.define();
|