@ui5/webcomponents-fiori 1.23.0-rc.5 → 1.23.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/CHANGELOG.md +16 -0
- package/dist/Bar.d.ts +11 -14
- package/dist/Bar.js +11 -13
- package/dist/Bar.js.map +1 -1
- package/dist/BarcodeScannerDialog.d.ts +7 -11
- package/dist/BarcodeScannerDialog.js +7 -12
- package/dist/BarcodeScannerDialog.js.map +1 -1
- package/dist/DynamicSideContent.d.ts +25 -64
- package/dist/DynamicSideContent.js +24 -28
- package/dist/DynamicSideContent.js.map +1 -1
- package/dist/FilterItem.d.ts +6 -9
- package/dist/FilterItem.js +5 -6
- package/dist/FilterItem.js.map +1 -1
- package/dist/FilterItemOption.d.ts +5 -9
- package/dist/FilterItemOption.js +5 -7
- package/dist/FilterItemOption.js.map +1 -1
- package/dist/FlexibleColumnLayout.d.ts +41 -52
- package/dist/FlexibleColumnLayout.js +22 -27
- package/dist/FlexibleColumnLayout.js.map +1 -1
- package/dist/IllustratedMessage.d.ts +63 -68
- package/dist/IllustratedMessage.js +43 -32
- package/dist/IllustratedMessage.js.map +1 -1
- package/dist/MediaGallery.d.ts +22 -39
- package/dist/MediaGallery.js +16 -24
- package/dist/MediaGallery.js.map +1 -1
- package/dist/MediaGalleryItem.d.ts +10 -25
- package/dist/MediaGalleryItem.js +10 -14
- package/dist/MediaGalleryItem.js.map +1 -1
- package/dist/NotificationAction.d.ts +9 -15
- package/dist/NotificationAction.js +3 -6
- package/dist/NotificationAction.js.map +1 -1
- package/dist/NotificationListGroupItem.d.ts +18 -21
- package/dist/NotificationListGroupItem.js +16 -19
- package/dist/NotificationListGroupItem.js.map +1 -1
- package/dist/NotificationListItem.d.ts +27 -35
- package/dist/NotificationListItem.js +15 -18
- package/dist/NotificationListItem.js.map +1 -1
- package/dist/NotificationListItemBase.d.ts +8 -12
- package/dist/NotificationListItemBase.js +2 -4
- package/dist/NotificationListItemBase.js.map +1 -1
- package/dist/Page.d.ts +16 -26
- package/dist/Page.js +13 -14
- package/dist/Page.js.map +1 -1
- package/dist/ProductSwitch.d.ts +14 -21
- package/dist/ProductSwitch.js +12 -17
- package/dist/ProductSwitch.js.map +1 -1
- package/dist/ProductSwitchItem.d.ts +22 -28
- package/dist/ProductSwitchItem.js +11 -16
- package/dist/ProductSwitchItem.js.map +1 -1
- package/dist/ShellBar.d.ts +64 -81
- package/dist/ShellBar.js +27 -36
- package/dist/ShellBar.js.map +1 -1
- package/dist/ShellBarItem.d.ts +7 -9
- package/dist/ShellBarItem.js +5 -8
- package/dist/ShellBarItem.js.map +1 -1
- package/dist/SideNavigation.d.ts +29 -41
- package/dist/SideNavigation.js +18 -22
- package/dist/SideNavigation.js.map +1 -1
- package/dist/SideNavigationItem.d.ts +7 -11
- package/dist/SideNavigationItem.js +5 -6
- package/dist/SideNavigationItem.js.map +1 -1
- package/dist/SideNavigationItemBase.d.ts +10 -19
- package/dist/SideNavigationItemBase.js +2 -5
- package/dist/SideNavigationItemBase.js.map +1 -1
- package/dist/SideNavigationSubItem.d.ts +4 -5
- package/dist/SideNavigationSubItem.js +4 -5
- package/dist/SideNavigationSubItem.js.map +1 -1
- package/dist/SortItem.d.ts +5 -9
- package/dist/SortItem.js +5 -7
- package/dist/SortItem.js.map +1 -1
- package/dist/Timeline.d.ts +4 -17
- package/dist/Timeline.js +2 -3
- package/dist/Timeline.js.map +1 -1
- package/dist/TimelineItem.d.ts +6 -14
- package/dist/TimelineItem.js +4 -6
- package/dist/TimelineItem.js.map +1 -1
- package/dist/UploadCollection.d.ts +18 -27
- package/dist/UploadCollection.js +9 -13
- package/dist/UploadCollection.js.map +1 -1
- package/dist/UploadCollectionItem.d.ts +17 -29
- package/dist/UploadCollectionItem.js +11 -17
- package/dist/UploadCollectionItem.js.map +1 -1
- package/dist/ViewSettingsDialog.d.ts +28 -48
- package/dist/ViewSettingsDialog.js +30 -46
- package/dist/ViewSettingsDialog.js.map +1 -1
- package/dist/Wizard.d.ts +66 -76
- package/dist/Wizard.js +57 -65
- package/dist/Wizard.js.map +1 -1
- package/dist/WizardStep.d.ts +25 -39
- package/dist/WizardStep.js +10 -12
- package/dist/WizardStep.js.map +1 -1
- package/dist/WizardTab.d.ts +12 -24
- package/dist/WizardTab.js +6 -8
- package/dist/WizardTab.js.map +1 -1
- package/dist/css/themes/Bar.css +1 -1
- package/dist/css/themes/FlexibleColumnLayout.css +1 -1
- package/dist/css/themes/IllustratedMessage.css +1 -1
- package/dist/css/themes/MediaGallery.css +1 -1
- package/dist/css/themes/MediaGalleryItem.css +1 -1
- package/dist/css/themes/NotificationListGroupItem.css +1 -1
- package/dist/css/themes/NotificationListItem.css +1 -1
- package/dist/css/themes/NotificationListItemBase.css +1 -1
- package/dist/css/themes/NotificationOverflowActionsPopover.css +1 -1
- package/dist/css/themes/Page.css +1 -1
- package/dist/css/themes/ProductSwitchItem.css +1 -1
- package/dist/css/themes/ShellBar.css +1 -1
- package/dist/css/themes/SideNavigation.css +1 -1
- package/dist/css/themes/SideNavigationPopover.css +1 -1
- package/dist/css/themes/Timeline.css +1 -1
- package/dist/css/themes/TimelineItem.css +1 -1
- package/dist/css/themes/UploadCollection.css +1 -1
- package/dist/css/themes/UploadCollectionItem.css +1 -1
- package/dist/css/themes/ViewSettingsDialog.css +1 -1
- package/dist/css/themes/Wizard.css +1 -1
- package/dist/css/themes/WizardTab.css +1 -1
- package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
- package/dist/custom-elements-internal.json +194 -185
- package/dist/custom-elements.json +165 -165
- package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
- package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/js-imports/Illustrations.js +47 -1
- package/dist/generated/js-imports/Illustrations.js.map +1 -1
- package/dist/generated/templates/IllustratedMessageTemplate.lit.js +1 -1
- package/dist/generated/templates/IllustratedMessageTemplate.lit.js.map +1 -1
- package/dist/generated/themes/Bar.css.js +1 -1
- package/dist/generated/themes/Bar.css.js.map +1 -1
- package/dist/generated/themes/FlexibleColumnLayout.css.js +1 -1
- package/dist/generated/themes/FlexibleColumnLayout.css.js.map +1 -1
- package/dist/generated/themes/IllustratedMessage.css.js +1 -1
- package/dist/generated/themes/IllustratedMessage.css.js.map +1 -1
- package/dist/generated/themes/MediaGallery.css.js +1 -1
- package/dist/generated/themes/MediaGallery.css.js.map +1 -1
- package/dist/generated/themes/MediaGalleryItem.css.js +1 -1
- package/dist/generated/themes/MediaGalleryItem.css.js.map +1 -1
- package/dist/generated/themes/NotificationListGroupItem.css.js +1 -1
- package/dist/generated/themes/NotificationListGroupItem.css.js.map +1 -1
- package/dist/generated/themes/NotificationListItem.css.js +1 -1
- package/dist/generated/themes/NotificationListItem.css.js.map +1 -1
- package/dist/generated/themes/NotificationListItemBase.css.js +1 -1
- package/dist/generated/themes/NotificationListItemBase.css.js.map +1 -1
- package/dist/generated/themes/NotificationOverflowActionsPopover.css.js +1 -1
- package/dist/generated/themes/NotificationOverflowActionsPopover.css.js.map +1 -1
- package/dist/generated/themes/Page.css.js +1 -1
- package/dist/generated/themes/Page.css.js.map +1 -1
- package/dist/generated/themes/ProductSwitchItem.css.js +1 -1
- package/dist/generated/themes/ProductSwitchItem.css.js.map +1 -1
- package/dist/generated/themes/ShellBar.css.js +1 -1
- package/dist/generated/themes/ShellBar.css.js.map +1 -1
- package/dist/generated/themes/SideNavigation.css.js +1 -1
- package/dist/generated/themes/SideNavigation.css.js.map +1 -1
- package/dist/generated/themes/SideNavigationPopover.css.js +1 -1
- package/dist/generated/themes/SideNavigationPopover.css.js.map +1 -1
- package/dist/generated/themes/Timeline.css.js +1 -1
- package/dist/generated/themes/Timeline.css.js.map +1 -1
- package/dist/generated/themes/TimelineItem.css.js +1 -1
- package/dist/generated/themes/TimelineItem.css.js.map +1 -1
- package/dist/generated/themes/UploadCollection.css.js +1 -1
- package/dist/generated/themes/UploadCollection.css.js.map +1 -1
- package/dist/generated/themes/UploadCollectionItem.css.js +1 -1
- package/dist/generated/themes/UploadCollectionItem.css.js.map +1 -1
- package/dist/generated/themes/ViewSettingsDialog.css.js +1 -1
- package/dist/generated/themes/ViewSettingsDialog.css.js.map +1 -1
- package/dist/generated/themes/Wizard.css.js +1 -1
- package/dist/generated/themes/Wizard.css.js.map +1 -1
- package/dist/generated/themes/WizardTab.css.js +1 -1
- package/dist/generated/themes/WizardTab.css.js.map +1 -1
- package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_belize/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
- package/dist/illustrations/AddColumn.d.ts +2 -1
- package/dist/illustrations/AddColumn.js +4 -1
- package/dist/illustrations/AddDimensions.d.ts +2 -1
- package/dist/illustrations/AddDimensions.js +4 -1
- package/dist/illustrations/AddPeople.d.ts +2 -1
- package/dist/illustrations/AddPeople.js +4 -1
- package/dist/illustrations/BalloonSky.d.ts +2 -1
- package/dist/illustrations/BalloonSky.js +4 -1
- package/dist/illustrations/BeforeSearch.d.ts +2 -1
- package/dist/illustrations/BeforeSearch.js +4 -1
- package/dist/illustrations/Connection.d.ts +2 -1
- package/dist/illustrations/Connection.js +4 -1
- package/dist/illustrations/EmptyCalendar.d.ts +2 -1
- package/dist/illustrations/EmptyCalendar.js +4 -1
- package/dist/illustrations/EmptyList.d.ts +2 -1
- package/dist/illustrations/EmptyList.js +4 -1
- package/dist/illustrations/EmptyPlanningCalendar.d.ts +2 -1
- package/dist/illustrations/EmptyPlanningCalendar.js +4 -1
- package/dist/illustrations/ErrorScreen.d.ts +2 -1
- package/dist/illustrations/ErrorScreen.js +4 -1
- package/dist/illustrations/FilterTable.d.ts +2 -1
- package/dist/illustrations/FilterTable.js +4 -1
- package/dist/illustrations/GroupTable.d.ts +2 -1
- package/dist/illustrations/GroupTable.js +4 -1
- package/dist/illustrations/NewMail.d.ts +2 -1
- package/dist/illustrations/NewMail.js +4 -1
- package/dist/illustrations/NoActivities.d.ts +2 -1
- package/dist/illustrations/NoActivities.js +4 -1
- package/dist/illustrations/NoColumnsSet.d.ts +2 -1
- package/dist/illustrations/NoColumnsSet.js +4 -1
- package/dist/illustrations/NoData.d.ts +2 -1
- package/dist/illustrations/NoData.js +4 -1
- package/dist/illustrations/NoDimensionsSet.d.ts +2 -1
- package/dist/illustrations/NoDimensionsSet.js +4 -1
- package/dist/illustrations/NoEntries.d.ts +2 -1
- package/dist/illustrations/NoEntries.js +4 -1
- package/dist/illustrations/NoFilterResults.d.ts +2 -1
- package/dist/illustrations/NoFilterResults.js +4 -1
- package/dist/illustrations/NoMail.d.ts +2 -1
- package/dist/illustrations/NoMail.js +4 -1
- package/dist/illustrations/NoMail_v1.d.ts +2 -1
- package/dist/illustrations/NoMail_v1.js +4 -1
- package/dist/illustrations/NoNotifications.d.ts +2 -1
- package/dist/illustrations/NoNotifications.js +4 -1
- package/dist/illustrations/NoSavedItems.d.ts +2 -1
- package/dist/illustrations/NoSavedItems.js +4 -1
- package/dist/illustrations/NoSavedItems_v1.d.ts +2 -1
- package/dist/illustrations/NoSavedItems_v1.js +4 -1
- package/dist/illustrations/NoSearchResults.d.ts +2 -1
- package/dist/illustrations/NoSearchResults.js +4 -1
- package/dist/illustrations/NoTasks.d.ts +2 -1
- package/dist/illustrations/NoTasks.js +4 -1
- package/dist/illustrations/NoTasks_v1.d.ts +2 -1
- package/dist/illustrations/NoTasks_v1.js +4 -1
- package/dist/illustrations/PageNotFound.d.ts +2 -1
- package/dist/illustrations/PageNotFound.js +4 -1
- package/dist/illustrations/ReloadScreen.d.ts +2 -1
- package/dist/illustrations/ReloadScreen.js +4 -1
- package/dist/illustrations/ResizeColumn.d.ts +2 -1
- package/dist/illustrations/ResizeColumn.js +4 -1
- package/dist/illustrations/SearchEarth.d.ts +2 -1
- package/dist/illustrations/SearchEarth.js +4 -1
- package/dist/illustrations/SearchFolder.d.ts +2 -1
- package/dist/illustrations/SearchFolder.js +4 -1
- package/dist/illustrations/SignOut.d.ts +2 -1
- package/dist/illustrations/SignOut.js +4 -1
- package/dist/illustrations/SimpleBalloon.d.ts +2 -1
- package/dist/illustrations/SimpleBalloon.js +4 -1
- package/dist/illustrations/SimpleBell.d.ts +2 -1
- package/dist/illustrations/SimpleBell.js +4 -1
- package/dist/illustrations/SimpleCalendar.d.ts +2 -1
- package/dist/illustrations/SimpleCalendar.js +4 -1
- package/dist/illustrations/SimpleCheckMark.d.ts +2 -1
- package/dist/illustrations/SimpleCheckMark.js +4 -1
- package/dist/illustrations/SimpleConnection.d.ts +2 -1
- package/dist/illustrations/SimpleConnection.js +4 -1
- package/dist/illustrations/SimpleEmptyDoc.d.ts +2 -1
- package/dist/illustrations/SimpleEmptyDoc.js +4 -1
- package/dist/illustrations/SimpleEmptyList.d.ts +2 -1
- package/dist/illustrations/SimpleEmptyList.js +4 -1
- package/dist/illustrations/SimpleError.d.ts +2 -1
- package/dist/illustrations/SimpleError.js +4 -1
- package/dist/illustrations/SimpleMagnifier.d.ts +2 -1
- package/dist/illustrations/SimpleMagnifier.js +4 -1
- package/dist/illustrations/SimpleMail.d.ts +2 -1
- package/dist/illustrations/SimpleMail.js +4 -1
- package/dist/illustrations/SimpleNoSavedItems.d.ts +2 -1
- package/dist/illustrations/SimpleNoSavedItems.js +4 -1
- package/dist/illustrations/SimpleNotFoundMagnifier.d.ts +2 -1
- package/dist/illustrations/SimpleNotFoundMagnifier.js +4 -1
- package/dist/illustrations/SimpleReload.d.ts +2 -1
- package/dist/illustrations/SimpleReload.js +4 -1
- package/dist/illustrations/SimpleTask.d.ts +2 -1
- package/dist/illustrations/SimpleTask.js +4 -1
- package/dist/illustrations/SleepingBell.d.ts +2 -1
- package/dist/illustrations/SleepingBell.js +4 -1
- package/dist/illustrations/SortColumn.d.ts +2 -1
- package/dist/illustrations/SortColumn.js +4 -1
- package/dist/illustrations/SuccessBalloon.d.ts +2 -1
- package/dist/illustrations/SuccessBalloon.js +4 -1
- package/dist/illustrations/SuccessCheckMark.d.ts +2 -1
- package/dist/illustrations/SuccessCheckMark.js +4 -1
- package/dist/illustrations/SuccessHighFive.d.ts +2 -1
- package/dist/illustrations/SuccessHighFive.js +4 -1
- package/dist/illustrations/SuccessScreen.d.ts +2 -1
- package/dist/illustrations/SuccessScreen.js +4 -1
- package/dist/illustrations/Survey.d.ts +2 -1
- package/dist/illustrations/Survey.js +4 -1
- package/dist/illustrations/Tent.d.ts +2 -1
- package/dist/illustrations/Tent.js +4 -1
- package/dist/illustrations/UnableToLoad.d.ts +2 -1
- package/dist/illustrations/UnableToLoad.js +4 -1
- package/dist/illustrations/UnableToLoadImage.d.ts +2 -1
- package/dist/illustrations/UnableToLoadImage.js +4 -1
- package/dist/illustrations/UnableToUpload.d.ts +2 -1
- package/dist/illustrations/UnableToUpload.js +4 -1
- package/dist/illustrations/UploadCollection.d.ts +2 -1
- package/dist/illustrations/UploadCollection.js +4 -1
- package/dist/illustrations/UploadToCloud.d.ts +2 -1
- package/dist/illustrations/UploadToCloud.js +4 -1
- package/dist/illustrations/sapIllus-Dot-AddColumn.js +27 -0
- package/dist/illustrations/sapIllus-Dot-AddDimensions.js +16 -0
- package/dist/illustrations/sapIllus-Dot-AddPeople.js +9 -0
- package/dist/illustrations/sapIllus-Dot-BalloonSky.js +7 -0
- package/dist/illustrations/sapIllus-Dot-Connection.js +10 -0
- package/dist/illustrations/sapIllus-Dot-EmptyCalendar.js +37 -0
- package/dist/illustrations/sapIllus-Dot-EmptyList.js +7 -0
- package/dist/illustrations/sapIllus-Dot-EmptyPlanningCalendar.js +37 -0
- package/dist/illustrations/sapIllus-Dot-ErrorScreen.js +9 -0
- package/dist/illustrations/sapIllus-Dot-FilterTable.js +8 -0
- package/dist/illustrations/sapIllus-Dot-GroupTable.js +36 -0
- package/dist/illustrations/sapIllus-Dot-NoColumnsSet.js +7 -0
- package/dist/illustrations/sapIllus-Dot-NoDimensionsSet.js +7 -0
- package/dist/illustrations/sapIllus-Dot-NoFilterResults.js +8 -0
- package/dist/illustrations/sapIllus-Dot-NoMail_v1.js +10 -0
- package/dist/illustrations/sapIllus-Dot-NoSavedItems_v1.js +13 -0
- package/dist/illustrations/sapIllus-Dot-NoSearchResults.js +11 -0
- package/dist/illustrations/sapIllus-Dot-NoTasks_v1.js +13 -0
- package/dist/illustrations/sapIllus-Dot-PageNotFound.js +7 -0
- package/dist/illustrations/sapIllus-Dot-ReloadScreen.js +9 -0
- package/dist/illustrations/sapIllus-Dot-ResizeColumn.js +27 -0
- package/dist/illustrations/sapIllus-Dot-SearchEarth.js +7 -0
- package/dist/illustrations/sapIllus-Dot-SearchFolder.js +11 -0
- package/dist/illustrations/sapIllus-Dot-SimpleBalloon.js +7 -0
- package/dist/illustrations/sapIllus-Dot-SimpleBell.js +8 -0
- package/dist/illustrations/sapIllus-Dot-SimpleCalendar.js +37 -0
- package/dist/illustrations/sapIllus-Dot-SimpleCheckMark.js +5 -0
- package/dist/illustrations/sapIllus-Dot-SimpleConnection.js +10 -0
- package/dist/illustrations/sapIllus-Dot-SimpleEmptyDoc.js +8 -0
- package/dist/illustrations/sapIllus-Dot-SimpleEmptyList.js +7 -0
- package/dist/illustrations/sapIllus-Dot-SimpleError.js +9 -0
- package/dist/illustrations/sapIllus-Dot-SimpleMagnifier.js +7 -0
- package/dist/illustrations/sapIllus-Dot-SimpleMail.js +10 -0
- package/dist/illustrations/sapIllus-Dot-SimpleNoSavedItems.js +13 -0
- package/dist/illustrations/sapIllus-Dot-SimpleNotFoundMagnifier.js +11 -0
- package/dist/illustrations/sapIllus-Dot-SimpleReload.js +9 -0
- package/dist/illustrations/sapIllus-Dot-SimpleTask.js +13 -0
- package/dist/illustrations/sapIllus-Dot-SleepingBell.js +8 -0
- package/dist/illustrations/sapIllus-Dot-SortColumn.js +29 -0
- package/dist/illustrations/sapIllus-Dot-SuccessHighFive.js +7 -0
- package/dist/illustrations/sapIllus-Dot-SuccessScreen.js +5 -0
- package/dist/illustrations/sapIllus-Dot-Survey.js +8 -0
- package/dist/illustrations/sapIllus-Dot-Tent.js +8 -0
- package/dist/illustrations/sapIllus-Dot-UnableToLoadImage.js +9 -0
- package/dist/illustrations/sapIllus-Dot-UploadCollection.js +7 -0
- package/dist/illustrations/sapIllus-Dot-UploadToCloud.js +6 -0
- package/dist/illustrations/tnt/Avatar.d.ts +2 -1
- package/dist/illustrations/tnt/Avatar.js +3 -0
- package/dist/illustrations/tnt/Calculator.d.ts +2 -1
- package/dist/illustrations/tnt/Calculator.js +3 -0
- package/dist/illustrations/tnt/ChartArea.d.ts +2 -1
- package/dist/illustrations/tnt/ChartArea.js +3 -0
- package/dist/illustrations/tnt/ChartArea2.d.ts +2 -1
- package/dist/illustrations/tnt/ChartArea2.js +3 -0
- package/dist/illustrations/tnt/ChartBPMNFlow.d.ts +2 -1
- package/dist/illustrations/tnt/ChartBPMNFlow.js +3 -0
- package/dist/illustrations/tnt/ChartBar.d.ts +2 -1
- package/dist/illustrations/tnt/ChartBar.js +3 -0
- package/dist/illustrations/tnt/ChartBullet.d.ts +2 -1
- package/dist/illustrations/tnt/ChartBullet.js +3 -0
- package/dist/illustrations/tnt/ChartDoughnut.d.ts +2 -1
- package/dist/illustrations/tnt/ChartDoughnut.js +3 -0
- package/dist/illustrations/tnt/ChartFlow.d.ts +2 -1
- package/dist/illustrations/tnt/ChartFlow.js +3 -0
- package/dist/illustrations/tnt/ChartGantt.d.ts +2 -1
- package/dist/illustrations/tnt/ChartGantt.js +3 -0
- package/dist/illustrations/tnt/ChartOrg.d.ts +2 -1
- package/dist/illustrations/tnt/ChartOrg.js +3 -0
- package/dist/illustrations/tnt/ChartPie.d.ts +2 -1
- package/dist/illustrations/tnt/ChartPie.js +3 -0
- package/dist/illustrations/tnt/CodePlaceholder.d.ts +2 -1
- package/dist/illustrations/tnt/CodePlaceholder.js +3 -0
- package/dist/illustrations/tnt/Company.d.ts +2 -1
- package/dist/illustrations/tnt/Company.js +3 -0
- package/dist/illustrations/tnt/Compass.d.ts +2 -1
- package/dist/illustrations/tnt/Compass.js +3 -0
- package/dist/illustrations/tnt/Components.d.ts +2 -1
- package/dist/illustrations/tnt/Components.js +3 -0
- package/dist/illustrations/tnt/Dialog.d.ts +2 -1
- package/dist/illustrations/tnt/Dialog.js +3 -0
- package/dist/illustrations/tnt/ExternalLink.d.ts +2 -1
- package/dist/illustrations/tnt/ExternalLink.js +3 -0
- package/dist/illustrations/tnt/FaceID.d.ts +2 -1
- package/dist/illustrations/tnt/FaceID.js +3 -0
- package/dist/illustrations/tnt/Fingerprint.d.ts +2 -1
- package/dist/illustrations/tnt/Fingerprint.js +3 -0
- package/dist/illustrations/tnt/Handshake.d.ts +2 -1
- package/dist/illustrations/tnt/Handshake.js +3 -0
- package/dist/illustrations/tnt/Help.d.ts +2 -1
- package/dist/illustrations/tnt/Help.js +3 -0
- package/dist/illustrations/tnt/Lock.d.ts +2 -1
- package/dist/illustrations/tnt/Lock.js +3 -0
- package/dist/illustrations/tnt/Mission.d.ts +2 -1
- package/dist/illustrations/tnt/Mission.js +3 -0
- package/dist/illustrations/tnt/MissionFailed.d.ts +2 -1
- package/dist/illustrations/tnt/MissionFailed.js +3 -0
- package/dist/illustrations/tnt/NoApplications.d.ts +2 -1
- package/dist/illustrations/tnt/NoApplications.js +3 -0
- package/dist/illustrations/tnt/NoFlows.d.ts +2 -1
- package/dist/illustrations/tnt/NoFlows.js +3 -0
- package/dist/illustrations/tnt/NoUsers.d.ts +2 -1
- package/dist/illustrations/tnt/NoUsers.js +3 -0
- package/dist/illustrations/tnt/Radar.d.ts +2 -1
- package/dist/illustrations/tnt/Radar.js +3 -0
- package/dist/illustrations/tnt/RoadMap.d.ts +2 -1
- package/dist/illustrations/tnt/RoadMap.js +3 -0
- package/dist/illustrations/tnt/Secrets.d.ts +2 -1
- package/dist/illustrations/tnt/Secrets.js +3 -0
- package/dist/illustrations/tnt/Services.d.ts +2 -1
- package/dist/illustrations/tnt/Services.js +3 -0
- package/dist/illustrations/tnt/SessionExpired.d.ts +2 -1
- package/dist/illustrations/tnt/SessionExpired.js +3 -0
- package/dist/illustrations/tnt/SessionExpiring.d.ts +2 -1
- package/dist/illustrations/tnt/SessionExpiring.js +3 -0
- package/dist/illustrations/tnt/Settings.d.ts +2 -1
- package/dist/illustrations/tnt/Settings.js +3 -0
- package/dist/illustrations/tnt/Success.d.ts +2 -1
- package/dist/illustrations/tnt/Success.js +3 -0
- package/dist/illustrations/tnt/SuccessfulAuth.d.ts +2 -1
- package/dist/illustrations/tnt/SuccessfulAuth.js +3 -0
- package/dist/illustrations/tnt/Systems.d.ts +2 -1
- package/dist/illustrations/tnt/Systems.js +3 -0
- package/dist/illustrations/tnt/Teams.d.ts +2 -1
- package/dist/illustrations/tnt/Teams.js +3 -0
- package/dist/illustrations/tnt/Tools.d.ts +2 -1
- package/dist/illustrations/tnt/Tools.js +3 -0
- package/dist/illustrations/tnt/Tutorials.d.ts +2 -1
- package/dist/illustrations/tnt/Tutorials.js +3 -0
- package/dist/illustrations/tnt/UnableToLoad.d.ts +2 -1
- package/dist/illustrations/tnt/UnableToLoad.js +3 -0
- package/dist/illustrations/tnt/Unlock.d.ts +2 -1
- package/dist/illustrations/tnt/Unlock.js +3 -0
- package/dist/illustrations/tnt/UnsuccessfulAuth.d.ts +2 -1
- package/dist/illustrations/tnt/UnsuccessfulAuth.js +3 -0
- package/dist/illustrations/tnt/User2.d.ts +2 -1
- package/dist/illustrations/tnt/User2.js +3 -0
- package/dist/illustrations-v5/tnt/ChartArea.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ChartArea.js +3 -0
- package/dist/illustrations-v5/tnt/ChartArea2.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ChartArea2.js +3 -0
- package/dist/illustrations-v5/tnt/ChartBPMNFlow.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ChartBPMNFlow.js +3 -0
- package/dist/illustrations-v5/tnt/ChartBar.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ChartBar.js +3 -0
- package/dist/illustrations-v5/tnt/ChartBullet.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ChartBullet.js +3 -0
- package/dist/illustrations-v5/tnt/ChartDoughnut.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ChartDoughnut.js +3 -0
- package/dist/illustrations-v5/tnt/ChartFlow.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ChartFlow.js +3 -0
- package/dist/illustrations-v5/tnt/ChartGantt.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ChartGantt.js +3 -0
- package/dist/illustrations-v5/tnt/ChartOrg.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ChartOrg.js +3 -0
- package/dist/illustrations-v5/tnt/ChartPie.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ChartPie.js +3 -0
- package/dist/illustrations-v5/tnt/CodePlaceholder.d.ts +2 -1
- package/dist/illustrations-v5/tnt/CodePlaceholder.js +3 -0
- package/dist/illustrations-v5/tnt/Company.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Company.js +3 -0
- package/dist/illustrations-v5/tnt/Components.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Components.js +3 -0
- package/dist/illustrations-v5/tnt/EmptyContentPane.d.ts +2 -1
- package/dist/illustrations-v5/tnt/EmptyContentPane.js +3 -0
- package/dist/illustrations-v5/tnt/ExternalLink.d.ts +2 -1
- package/dist/illustrations-v5/tnt/ExternalLink.js +3 -0
- package/dist/illustrations-v5/tnt/FaceID.d.ts +2 -1
- package/dist/illustrations-v5/tnt/FaceID.js +3 -0
- package/dist/illustrations-v5/tnt/Fingerprint.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Fingerprint.js +3 -0
- package/dist/illustrations-v5/tnt/Lock.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Lock.js +3 -0
- package/dist/illustrations-v5/tnt/Mission.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Mission.js +3 -0
- package/dist/illustrations-v5/tnt/NoApplications.d.ts +2 -1
- package/dist/illustrations-v5/tnt/NoApplications.js +3 -0
- package/dist/illustrations-v5/tnt/NoFlows.d.ts +2 -1
- package/dist/illustrations-v5/tnt/NoFlows.js +3 -0
- package/dist/illustrations-v5/tnt/NoUsers.d.ts +2 -1
- package/dist/illustrations-v5/tnt/NoUsers.js +3 -0
- package/dist/illustrations-v5/tnt/Radar.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Radar.js +3 -0
- package/dist/illustrations-v5/tnt/Secrets.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Secrets.js +3 -0
- package/dist/illustrations-v5/tnt/Services.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Services.js +3 -0
- package/dist/illustrations-v5/tnt/SessionExpired.d.ts +2 -1
- package/dist/illustrations-v5/tnt/SessionExpired.js +3 -0
- package/dist/illustrations-v5/tnt/SessionExpiring.d.ts +2 -1
- package/dist/illustrations-v5/tnt/SessionExpiring.js +3 -0
- package/dist/illustrations-v5/tnt/Success.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Success.js +3 -0
- package/dist/illustrations-v5/tnt/SuccessfulAuth.d.ts +2 -1
- package/dist/illustrations-v5/tnt/SuccessfulAuth.js +3 -0
- package/dist/illustrations-v5/tnt/Systems.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Systems.js +3 -0
- package/dist/illustrations-v5/tnt/Teams.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Teams.js +3 -0
- package/dist/illustrations-v5/tnt/Tools.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Tools.js +3 -0
- package/dist/illustrations-v5/tnt/UnSuccessfulAuth.d.ts +2 -1
- package/dist/illustrations-v5/tnt/UnSuccessfulAuth.js +3 -0
- package/dist/illustrations-v5/tnt/Unlock.d.ts +2 -1
- package/dist/illustrations-v5/tnt/Unlock.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Avatar.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Avatar.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Calculator.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Calculator.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ChartArea.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ChartArea.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ChartArea2.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ChartArea2.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ChartBPMNFlow.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ChartBPMNFlow.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ChartBar.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ChartBar.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ChartBullet.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ChartBullet.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ChartDoughnut.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ChartDoughnut.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ChartFlow.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ChartFlow.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ChartGantt.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ChartGantt.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ChartOrg.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ChartOrg.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ChartPie.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ChartPie.js +3 -0
- package/dist/illustrations-v5/tnt/hc/CodePlaceholder.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/CodePlaceholder.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Company.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Company.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Compass.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Compass.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Components.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Components.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Dialog.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Dialog.js +3 -0
- package/dist/illustrations-v5/tnt/hc/EmptyContentPane.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/EmptyContentPane.js +3 -0
- package/dist/illustrations-v5/tnt/hc/ExternalLink.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/ExternalLink.js +3 -0
- package/dist/illustrations-v5/tnt/hc/FaceID.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/FaceID.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Fingerprint.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Fingerprint.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Handshake.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Handshake.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Help.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Help.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Lock.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Lock.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Mission.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Mission.js +3 -0
- package/dist/illustrations-v5/tnt/hc/MissionFailed.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/MissionFailed.js +3 -0
- package/dist/illustrations-v5/tnt/hc/NoApplications.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/NoApplications.js +3 -0
- package/dist/illustrations-v5/tnt/hc/NoFlows.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/NoFlows.js +3 -0
- package/dist/illustrations-v5/tnt/hc/NoUsers.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/NoUsers.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Radar.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Radar.js +3 -0
- package/dist/illustrations-v5/tnt/hc/RoadMap.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/RoadMap.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Secrets.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Secrets.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Services.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Services.js +3 -0
- package/dist/illustrations-v5/tnt/hc/SessionExpired.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/SessionExpired.js +3 -0
- package/dist/illustrations-v5/tnt/hc/SessionExpiring.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/SessionExpiring.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Settings.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Settings.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Success.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Success.js +3 -0
- package/dist/illustrations-v5/tnt/hc/SuccessfulAuth.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/SuccessfulAuth.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Systems.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Systems.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Teams.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Teams.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Tools.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Tools.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Tutorials.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Tutorials.js +3 -0
- package/dist/illustrations-v5/tnt/hc/UnSuccessfulAuth.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/UnSuccessfulAuth.js +3 -0
- package/dist/illustrations-v5/tnt/hc/Unlock.d.ts +2 -1
- package/dist/illustrations-v5/tnt/hc/Unlock.js +3 -0
- package/dist/types/BarDesign.d.ts +0 -1
- package/dist/types/BarDesign.js +0 -1
- package/dist/types/BarDesign.js.map +1 -1
- package/dist/types/FCLLayout.d.ts +0 -9
- package/dist/types/FCLLayout.js +0 -9
- package/dist/types/FCLLayout.js.map +1 -1
- package/dist/types/IllustrationMessageSize.d.ts +12 -10
- package/dist/types/IllustrationMessageSize.js +12 -10
- package/dist/types/IllustrationMessageSize.js.map +1 -1
- package/dist/types/IllustrationMessageType.d.ts +0 -1
- package/dist/types/IllustrationMessageType.js +0 -1
- package/dist/types/IllustrationMessageType.js.map +1 -1
- package/dist/types/MediaGalleryItemLayout.d.ts +1 -2
- package/dist/types/MediaGalleryItemLayout.js +1 -2
- package/dist/types/MediaGalleryItemLayout.js.map +1 -1
- package/dist/types/MediaGalleryLayout.d.ts +1 -2
- package/dist/types/MediaGalleryLayout.js +1 -2
- package/dist/types/MediaGalleryLayout.js.map +1 -1
- package/dist/types/MediaGalleryMenuHorizontalAlign.d.ts +1 -2
- package/dist/types/MediaGalleryMenuHorizontalAlign.js +1 -2
- package/dist/types/MediaGalleryMenuHorizontalAlign.js.map +1 -1
- package/dist/types/MediaGalleryMenuVerticalAlign.d.ts +1 -2
- package/dist/types/MediaGalleryMenuVerticalAlign.js +1 -2
- package/dist/types/MediaGalleryMenuVerticalAlign.js.map +1 -1
- package/dist/types/PageBackgroundDesign.d.ts +0 -4
- package/dist/types/PageBackgroundDesign.js +0 -4
- package/dist/types/PageBackgroundDesign.js.map +1 -1
- package/dist/types/SideContentFallDown.d.ts +0 -1
- package/dist/types/SideContentFallDown.js +0 -1
- package/dist/types/SideContentFallDown.js.map +1 -1
- package/dist/types/SideContentPosition.d.ts +0 -1
- package/dist/types/SideContentPosition.js +0 -1
- package/dist/types/SideContentPosition.js.map +1 -1
- package/dist/types/SideContentVisibility.d.ts +0 -1
- package/dist/types/SideContentVisibility.js +0 -1
- package/dist/types/SideContentVisibility.js.map +1 -1
- package/dist/types/TimelineLayout.d.ts +0 -1
- package/dist/types/TimelineLayout.js +0 -1
- package/dist/types/TimelineLayout.js.map +1 -1
- package/dist/types/UploadCollectionDnDMode.d.ts +0 -1
- package/dist/types/UploadCollectionDnDMode.js +0 -1
- package/dist/types/UploadCollectionDnDMode.js.map +1 -1
- package/dist/types/UploadState.d.ts +0 -1
- package/dist/types/UploadState.js +0 -1
- package/dist/types/UploadState.js.map +1 -1
- package/dist/types/ViewSettingsDialogMode.d.ts +0 -1
- package/dist/types/ViewSettingsDialogMode.js +0 -1
- package/dist/types/ViewSettingsDialogMode.js.map +1 -1
- package/dist/types/WizardContentLayout.d.ts +3 -4
- package/dist/types/WizardContentLayout.js +3 -4
- package/dist/types/WizardContentLayout.js.map +1 -1
- package/package.json +7 -7
- package/src/IllustratedMessage.hbs +25 -22
- package/src/i18n/messagebundle_sk.properties +6 -6
- package/src/i18n/messagebundle_th.properties +6 -6
- package/src/illustrations/sapIllus-Dot-AddColumn.svg +26 -0
- package/src/illustrations/sapIllus-Dot-AddDimensions.svg +15 -0
- package/src/illustrations/sapIllus-Dot-AddPeople.svg +8 -0
- package/src/illustrations/sapIllus-Dot-BalloonSky.svg +6 -0
- package/src/illustrations/sapIllus-Dot-Connection.svg +9 -0
- package/src/illustrations/sapIllus-Dot-EmptyCalendar.svg +36 -0
- package/src/illustrations/sapIllus-Dot-EmptyList.svg +6 -0
- package/src/illustrations/sapIllus-Dot-EmptyPlanningCalendar.svg +36 -0
- package/src/illustrations/sapIllus-Dot-ErrorScreen.svg +8 -0
- package/src/illustrations/sapIllus-Dot-FilterTable.svg +7 -0
- package/src/illustrations/sapIllus-Dot-GroupTable.svg +35 -0
- package/src/illustrations/sapIllus-Dot-NoColumnsSet.svg +6 -0
- package/src/illustrations/sapIllus-Dot-NoDimensionsSet.svg +6 -0
- package/src/illustrations/sapIllus-Dot-NoFilterResults.svg +7 -0
- package/src/illustrations/sapIllus-Dot-NoMail_v1.svg +9 -0
- package/src/illustrations/sapIllus-Dot-NoSavedItems_v1.svg +12 -0
- package/src/illustrations/sapIllus-Dot-NoSearchResults.svg +10 -0
- package/src/illustrations/sapIllus-Dot-NoTasks_v1.svg +12 -0
- package/src/illustrations/sapIllus-Dot-PageNotFound.svg +6 -0
- package/src/illustrations/sapIllus-Dot-ReloadScreen.svg +8 -0
- package/src/illustrations/sapIllus-Dot-ResizeColumn.svg +26 -0
- package/src/illustrations/sapIllus-Dot-SearchEarth.svg +6 -0
- package/src/illustrations/sapIllus-Dot-SearchFolder.svg +10 -0
- package/src/illustrations/sapIllus-Dot-SimpleBalloon.svg +6 -0
- package/src/illustrations/sapIllus-Dot-SimpleBell.svg +7 -0
- package/src/illustrations/sapIllus-Dot-SimpleCalendar.svg +36 -0
- package/src/illustrations/sapIllus-Dot-SimpleCheckMark.svg +4 -0
- package/src/illustrations/sapIllus-Dot-SimpleConnection.svg +9 -0
- package/src/illustrations/sapIllus-Dot-SimpleEmptyDoc.svg +7 -0
- package/src/illustrations/sapIllus-Dot-SimpleEmptyList.svg +6 -0
- package/src/illustrations/sapIllus-Dot-SimpleError.svg +8 -0
- package/src/illustrations/sapIllus-Dot-SimpleMagnifier.svg +6 -0
- package/src/illustrations/sapIllus-Dot-SimpleMail.svg +9 -0
- package/src/illustrations/sapIllus-Dot-SimpleNoSavedItems.svg +12 -0
- package/src/illustrations/sapIllus-Dot-SimpleNotFoundMagnifier.svg +10 -0
- package/src/illustrations/sapIllus-Dot-SimpleReload.svg +8 -0
- package/src/illustrations/sapIllus-Dot-SimpleTask.svg +12 -0
- package/src/illustrations/sapIllus-Dot-SleepingBell.svg +7 -0
- package/src/illustrations/sapIllus-Dot-SortColumn.svg +28 -0
- package/src/illustrations/sapIllus-Dot-SuccessHighFive.svg +6 -0
- package/src/illustrations/sapIllus-Dot-SuccessScreen.svg +4 -0
- package/src/illustrations/sapIllus-Dot-Survey.svg +7 -0
- package/src/illustrations/sapIllus-Dot-Tent.svg +7 -0
- package/src/illustrations/sapIllus-Dot-UnableToLoadImage.svg +8 -0
- package/src/illustrations/sapIllus-Dot-UploadCollection.svg +6 -0
- package/src/illustrations/sapIllus-Dot-UploadToCloud.svg +5 -0
- package/src/themes/IllustratedMessage.css +37 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IllustratedMessage.js","sourceRoot":"","sources":["../src/IllustratedMessage.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,aAAa,MAAM,wDAAwD,CAAC;AAEnF,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,gEAAgE,CAAC;AAC9H,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAE7E,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,iCAAiC,CAAC;AAEzC,SAAS;AACT,OAAO,qBAAqB,MAAM,8CAA8C,CAAC;AAEjF,WAAW;AACX,OAAO,0BAA0B,MAAM,yDAAyD,CAAC;AAEjG,MAAM,4BAA4B,GAAG,CAAC,IAAY,EAAU,EAAE;IAC7D,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;QAC3B,OAAO,IAAI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IADC,QAAQ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;6DACJ;AAgB3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC;sDAC/B;AAS7B;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;mDACf;AASjB;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;oDACd;AASlB;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;qDACb;AAOnB;IADC,QAAQ,EAAE;iDACI;AAUf;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;iDACQ;AAUpC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;oDACE;AAO9B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;mDACpB;AAzJpB,kBAAkB;IATvB,aAAa,CAAC;QACd,GAAG,EAAE,yBAAyB;QAC9B,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,qBAAqB;QAC7B,QAAQ,EAAE,0BAA0B;QACpC,YAAY,EAAE,CAAC,KAAK,CAAC;KACrB,CAAC;GACI,kBAAkB,CA8XvB;AAED,kBAAkB,CAAC,MAAM,EAAE,CAAC;AAE5B,eAAe,kBAAkB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport { getIllustrationDataSync, getIllustrationData } from \"@ui5/webcomponents-base/dist/asset-registries/Illustrations.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Title from \"@ui5/webcomponents/dist/Title.js\";\nimport TitleLevel from \"@ui5/webcomponents/dist/types/TitleLevel.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport type { IButton } from \"@ui5/webcomponents/dist/Button.js\";\nimport IllustrationMessageSize from \"./types/IllustrationMessageSize.js\";\nimport IllustrationMessageType from \"./types/IllustrationMessageType.js\";\nimport \"./illustrations/BeforeSearch.js\";\n\n// Styles\nimport IllustratedMessageCss from \"./generated/themes/IllustratedMessage.css.js\";\n\n// Template\nimport IllustratedMessageTemplate from \"./generated/templates/IllustratedMessageTemplate.lit.js\";\n\nconst getEffectiveIllustrationName = (name: string): string => {\n\tif (name.startsWith(\"Tnt\")) {\n\t\treturn name.replace(\"Tnt\", \"tnt/\");\n\t}\n\n\tif (name.includes(\"/\")) {\n\t\treturn name;\n\t}\n\n\treturn `fiori/${name}`;\n};\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * An IllustratedMessage is a recommended combination of a solution-oriented message, an engaging\n * illustration, and conversational tone to better communicate an empty or a success state than just show\n * a message alone.\n *\n * Each illustration has default internationalised title and subtitle texts. Also they can be managed with\n * <code>titleText</code> and <code>subtitleText</code> properties.\n *\n * To display the desired illustration, use the <code>name</code> property, where you can find the list of all available illustrations.\n * <br><br>\n * <b>Note:</b> By default the “BeforeSearch” illustration is loaded. To use other illustrations, make sure you import them in addition, for example:\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/illustrations/NoData.js\"</code>\n * <br>\n * <b>Note:</b> Illustrations starting with the “Tnt” prefix are part of another illustration set. For example to use the “TntSuccess” illustration, add the following import::\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/illustrations/tnt/Success.js\"</code>\n *\n * <h3>Structure</h3>\n * The IllustratedMessage consists of the following elements, which are displayed below each other in the following order:\n * <br>\n * <ul>\n * <li>Illustration</li>\n * <li>Title</li>\n * <li>Subtitle</li>\n * <li>Actions</li>\n * </ul>\n *\n * <h3>Usage</h3>\n * <code>ui5-illustrated-message</code> is meant to be used inside container component, for example a <code>ui5-card</code>,\n * a <code>ui5-dialog</code> or a <code>ui5-page</code>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents-fiori/dist/IllustratedMessage.js\";</code>\n *\n * @csspart subtitle - Used to style the subtitle wrapper of the <code>ui5-illustrated-message</code>\n *\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.15\n */\n\n@customElement({\n\ttag: \"ui5-illustrated-message\",\n\tlanguageAware: true,\n\tthemeAware: true,\n\trenderer: litRender,\n\tstyles: IllustratedMessageCss,\n\ttemplate: IllustratedMessageTemplate,\n\tdependencies: [Title],\n})\nclass IllustratedMessage extends UI5Element {\n\t/**\n\t* Defines the illustration name that will be displayed in the component.\n\t* <br>\n\t* Example:\n\t* <br>\n\t* <code>name='BeforeSearch'</code>, <code>name='UnableToUpload'</code>, etc..\n\t* <br>\n\t* <br>\n\t* <b>Note:</b> To use the TNT illustrations,\n\t* you need to set the <code>tnt</code> or <code>Tnt</code> prefix in front of the icon's name.\n\t* <br>\n\t* Example:\n\t* <br>\n\t* <code>name='tnt/Avatar'</code> or <code>name='TntAvatar'</code>.\n\t* <br>\n\t* <br>\n\t* <b>Note:</b> By default the <code>BeforeSearch</code> illustration is loaded.\n\t* When using an illustration type, other than the default, it should be loaded in addition:\n\t* <br>\n\t* <code>import \"@ui5/webcomponents-fiori/dist/illustrations/NoData.js\";</code>\n\t* <br>\n\t* <br>\n\t* For TNT illustrations:\n\t* <br>\n\t* <code>import \"@ui5/webcomponents-fiori/dist/illustrations/tnt/SessionExpired.js\";</code>\n\t* @default \"BeforeSearch\"\n\t* @public\n\t*/\n\t@property({ type: String, defaultValue: IllustrationMessageType.BeforeSearch })\n\tname!: string;\n\n\t/**\n\t* Determines which illustration breakpoint variant is used.\n\t* <br><br>\n\t*\n\t* As <code>IllustratedMessage</code> adapts itself around the <code>Illustration</code>, the other\n\t* elements of the component are displayed differently on the different breakpoints/illustration sizes.\n\t*\n\t* @default \"Auto\"\n\t* @public\n\t* @since 1.5.0\n\t*/\n\t@property({ type: IllustrationMessageSize, defaultValue: IllustrationMessageSize.Auto })\n\tsize!: `${IllustrationMessageSize}`;\n\n\t/**\n\t* Defines the subtitle of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this property, the default subtitle text of illustration will be overwritten.\n\t* <br><br>\n\t* <b>Note:</b> Using <code>subtitle</code> slot, the default of this property will be overwritten.\n\t* @default \"\"\n\t* @public\n\t*/\n\t@property()\n\tsubtitleText!: string;\n\n\t/**\n\t* Defines the title of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this property, the default title text of illustration will be overwritten.\n\t* @default \"\"\n\t* @public\n\t*/\n\t@property()\n\ttitleText!: string;\n\n\t/**\n\t* Receives id(or many ids) of the elements that label the component.\n\t*\n\t* @default \"\"\n\t* @public\n\t* @since 1.7.0\n\t*/\n\t@property({ defaultValue: \"\" })\n\taccessibleNameRef!: string;\n\n\t/**\n\t* Defines the semantic level of the title.\n\t*\n\t* <b>Note:</b> Used for accessibility purposes only.\n\t*\n\t* <br/>\n\t*\n\t* <b>Note:</b> Doesn't take effect when <code>title</code> slot is being used.\n\t*\n\t* @default \"H2\"\n\t* @public\n\t* @since 1.20.0\n\t*/\n\t@property({ type: TitleLevel, defaultValue: TitleLevel.H2 })\n\ttitleLevel!: `${TitleLevel}`;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Spot</code> size.\n\t*\n\t* @private\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tspotSvg!: string;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Scene</code> size.\n\t*\n\t* @private\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tsceneSvg!: string;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Dialog</code> size.\n\t*\n\t* @private\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tdialogSvg!: string;\n\n\t/**\n\t* Determinates what is the current media of the component based on its width.\n\t* @private\n\t*/\n\t@property()\n\tmedia!: string;\n\n\t/**\n\t* Defines the title of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this slot, the default title text of illustration and the value of <code>title</code> property will be overwritten.\n\t* @public\n\t* @since 1.7.0\n\t*/\n\t@slot({ type: HTMLElement })\n\ttitle!: Array<HTMLElement> & string; // Note: since title collides with HTMLElement's title attribute and it's a String, we're adding the \"& string\" to the type Array<HTMLElement> to avoid ts complains. In the future we will rename/deprecate this slot name, so that it doesn't collide with HTMLElement's title attribute.\n\n\t/**\n\t* Defines the subtitle of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this slot, the default subtitle text of illustration and the value of <code>subtitleText</code> property will be overwritten.\n\t* @public\n\t* @since 1.0.0-rc.16\n\t*/\n\t@slot({ type: HTMLElement })\n\tsubtitle!: Array<HTMLElement>;\n\n\t/**\n\t* Defines the component actions.\n\t* @public\n\t*/\n\t@slot({ type: HTMLElement, \"default\": true })\n\tactions!: Array<IButton>;\n\n\tillustrationTitle?: string;\n\tillustrationSubtitle?: string;\n\n\tstatic i18nBundle: I18nBundle;\n\t_lastKnownOffsetWidthForMedia: Record<string, number>;\n\t_lastKnownOffsetHeightForMedia: Record<string, number>;\n\t_lastKnownMedia: string;\n\t_handleResize: ResizeObserverCallback;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._handleResize = this.handleResize.bind(this);\n\t\t// this will store the last known offsetWidth of the IllustratedMessage DOM node for a given media (e.g. \"Spot\")\n\t\tthis._lastKnownOffsetWidthForMedia = {};\n\t\tthis._lastKnownOffsetHeightForMedia = {};\n\t\t// this will store the last known media, in order to detect if IllustratedMessage has been hidden by expand/collapse container\n\t\tthis._lastKnownMedia = \"base\";\n\t}\n\n\tstatic async onDefine() {\n\t\tIllustratedMessage.i18nBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n\n\tstatic get BREAKPOINTS() {\n\t\treturn {\n\t\t\tDIALOG: 679,\n\t\t\tSPOT: 319,\n\t\t\tBASE: 259,\n\t\t};\n\t}\n\n\tstatic get BREAKPOINTS_HEIGHT() {\n\t\treturn {\n\t\t\tDIALOG: 451,\n\t\t\tSPOT: 296,\n\t\t\tBASE: 87,\n\t\t};\n\t}\n\n\tstatic get MEDIA() {\n\t\treturn {\n\t\t\tBASE: \"base\",\n\t\t\tSPOT: \"spot\",\n\t\t\tDIALOG: \"dialog\",\n\t\t\tSCENE: \"scene\",\n\t\t};\n\t}\n\n\tasync onBeforeRendering() {\n\t\t// Gets the current illustration name given in the \"name\" attribute\n\t\tlet effectiveName = getEffectiveIllustrationName(this.name);\n\t\tlet illustrationData = getIllustrationDataSync(effectiveName);\n\n\t\tif (this.hasAttribute(\"name\") && !this.isValidIllustration(effectiveName)) {\n\t\t\teffectiveName = getEffectiveIllustrationName(IllustrationMessageType.BeforeSearch);\n\t\t\t// eslint-disable-next-line\n\t\t\tconsole.warn(`The illustration \"${effectiveName!}\" does not exist. The default illustration \"${IllustrationMessageType.BeforeSearch}\" is loaded instead.`);\n\t\t}\n\n\t\tif (illustrationData === undefined) {\n\t\t\tillustrationData = await getIllustrationData(effectiveName);\n\t\t}\n\n\t\tthis.spotSvg = illustrationData!.spotSvg;\n\t\tthis.dialogSvg = illustrationData!.dialogSvg;\n\t\tthis.sceneSvg = illustrationData!.sceneSvg;\n\n\t\tthis.illustrationTitle = IllustratedMessage.i18nBundle.getText(illustrationData!.title);\n\t\tthis.illustrationSubtitle = IllustratedMessage.i18nBundle.getText(illustrationData!.subtitle);\n\n\t\tif (this.size !== IllustrationMessageSize.Auto) {\n\t\t\tthis._handleCustomSize();\n\t\t}\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(this, this._handleResize);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(this, this._handleResize);\n\t}\n\n\thandleResize() {\n\t\tif (this.size !== IllustrationMessageSize.Auto) {\n\t\t\tthis._adjustHeightToFitContainer();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._applyMedia();\n\t\twindow.requestAnimationFrame(this._adjustHeightToFitContainer.bind(this));\n\t}\n\n\t_applyMedia(heightChange?: boolean) {\n\t\tconst currOffsetWidth = this.offsetWidth,\n\t\t\tcurrOffsetHeight = this.offsetHeight;\n\n\t\tconst size = heightChange ? currOffsetHeight : currOffsetWidth,\n\t\t\toBreakpounts = heightChange ? IllustratedMessage.BREAKPOINTS_HEIGHT : IllustratedMessage.BREAKPOINTS;\n\t\tlet newMedia = \"\";\n\n\t\tif (size <= oBreakpounts.BASE) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.BASE;\n\t\t} else if (size <= oBreakpounts.SPOT) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.SPOT;\n\t\t} else if (size <= oBreakpounts.DIALOG) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.DIALOG;\n\t\t} else {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.SCENE;\n\t\t}\n\t\tconst lastKnownOffsetWidth = this._lastKnownOffsetWidthForMedia[newMedia],\n\t\t\tlastKnownOffsetHeight = this._lastKnownOffsetHeightForMedia[newMedia];\n\t\t // prevents infinite resizing, when same width is detected for the same media,\n\t\t // excluding the case in which, the control is placed inside expand/collapse container\n\t\tif (!(lastKnownOffsetWidth && currOffsetWidth === lastKnownOffsetWidth\n\t\t\t&& lastKnownOffsetHeight && currOffsetHeight === lastKnownOffsetHeight)\n\t\t\t|| this._lastKnownOffsetWidthForMedia[this._lastKnownMedia] === 0\n\t\t\t|| this._lastKnownOffsetHeightForMedia[this._lastKnownMedia] === 0\n\t\t\t|| this._lastKnownMedia !== newMedia) {\n\t\t\tthis.media = newMedia;\n\t\t\tthis._lastKnownOffsetWidthForMedia[newMedia] = currOffsetWidth;\n\t\t\tthis._lastKnownOffsetHeightForMedia[newMedia] = currOffsetHeight;\n\t\t\tthis._lastKnownMedia = newMedia;\n\t\t}\n\t}\n\n\t_setSVGAccAttrs() {\n\t\tconst svg = this.shadowRoot!.querySelector(\".ui5-illustrated-message-illustration svg\");\n\t\tif (svg) {\n\t\t\tif (this.ariaLabelText) {\n\t\t\t\tsvg.setAttribute(\"aria-label\", this.ariaLabelText);\n\t\t\t} else {\n\t\t\t\tsvg.removeAttribute(\"aria-label\");\n\t\t\t}\n\t\t}\n\t}\n\n\t_adjustHeightToFitContainer() {\n\t\tconst illustrationWrapper = <HTMLElement> this.shadowRoot!.querySelector(\".ui5-illustrated-message-illustration\"),\n\t\t\tillustration = illustrationWrapper.querySelector(\"svg\");\n\n\t\tif (illustration) {\n\t\t\tillustrationWrapper.classList.toggle(\"ui5-illustrated-message-illustration-fit-content\", false);\n\t\t\tif (this.getDomRef()!.scrollHeight > this.getDomRef()!.offsetHeight) {\n\t\t\t\tillustrationWrapper.classList.toggle(\"ui5-illustrated-message-illustration-fit-content\", true);\n\t\t\t\tthis._applyMedia(true /* height change */);\n\t\t\t}\n\t\t}\n\t}\n\n\tonAfterRendering() {\n\t\tthis._setSVGAccAttrs();\n\t}\n\n\t/**\n\t * Modifies the IM styles in accordance to the `size` property's value.\n\t * Note: The resize handler has no effect when size is different than \"Auto\".\n\t * @private\n\t * @since 1.5.0\n\t */\n\t_handleCustomSize() {\n\t\tswitch (this.size) {\n\t\tcase IllustrationMessageSize.Base:\n\t\t\tthis.media = IllustratedMessage.MEDIA.BASE;\n\t\t\treturn;\n\t\tcase IllustrationMessageSize.Spot:\n\t\t\tthis.media = IllustratedMessage.MEDIA.SPOT;\n\t\t\treturn;\n\t\tcase IllustrationMessageSize.Dialog:\n\t\t\tthis.media = IllustratedMessage.MEDIA.DIALOG;\n\t\t\treturn;\n\t\tdefault:\n\t\t\tthis.media = IllustratedMessage.MEDIA.SCENE;\n\t\t}\n\t}\n\n\tget ariaLabelText(): string | undefined {\n\t\treturn getEffectiveAriaLabelText(this);\n\t}\n\n\tget effectiveIllustration(): string {\n\t\tswitch (this.media) {\n\t\tcase IllustratedMessage.MEDIA.SPOT:\n\t\t\treturn this.spotSvg;\n\t\tcase IllustratedMessage.MEDIA.DIALOG:\n\t\t\treturn this.dialogSvg;\n\t\tcase IllustratedMessage.MEDIA.SCENE:\n\t\t\treturn this.sceneSvg;\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}\n\n\tget hasFormattedSubtitle(): boolean {\n\t\treturn !!this.subtitle.length;\n\t}\n\n\tget hasFormattedTitle(): boolean {\n\t\treturn !!this.title.length;\n\t}\n\n\tget effectiveTitleText(): string | undefined {\n\t\treturn this.titleText ? this.titleText : this.illustrationTitle;\n\t}\n\n\tget effectiveSubitleText(): string | undefined {\n\t\treturn this.subtitleText ? this.subtitleText : this.illustrationSubtitle;\n\t}\n\n\tget hasTitle(): boolean {\n\t\treturn !!(this.hasFormattedTitle || this.titleText || this.illustrationTitle);\n\t}\n\n\tget hasSubtitle(): boolean {\n\t\treturn !!(this.hasFormattedSubtitle || this.subtitleText || this.illustrationSubtitle);\n\t}\n\n\tget hasActions(): boolean {\n\t\treturn !!this.actions.length && this.media !== IllustratedMessage.MEDIA.BASE;\n\t}\n\n\tisValidIllustration(currentIllustration: string): boolean {\n\t\tcurrentIllustration = currentIllustration.startsWith(\"tnt/\") ? currentIllustration.replace(\"tnt/\", \"Tnt\") : currentIllustration.replace(\"fiori/\", \"\");\n\n\t\treturn currentIllustration in IllustrationMessageType;\n\t}\n}\n\nIllustratedMessage.define();\n\nexport default IllustratedMessage;\n"]}
|
|
1
|
+
{"version":3,"file":"IllustratedMessage.js","sourceRoot":"","sources":["../src/IllustratedMessage.ts"],"names":[],"mappings":";;;;;;;AAAA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AAE;qDACQ;AASnB;IADC,QAAQ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;6DACJ;AAa3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC;sDAC/B;AAS7B;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;kDAChB;AAShB;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;mDACf;AAQjB;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;oDACd;AAQlB;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;qDACb;AAOnB;IADC,QAAQ,EAAE;iDACI;AAUf;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;iDACQ;AAUpC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;oDACE;AAO9B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;mDACpB;AAvJpB,kBAAkB;IATvB,aAAa,CAAC;QACd,GAAG,EAAE,yBAAyB;QAC9B,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,qBAAqB;QAC7B,QAAQ,EAAE,0BAA0B;QACpC,YAAY,EAAE,CAAC,KAAK,CAAC;KACrB,CAAC;GACI,kBAAkB,CAuYvB;AAED,kBAAkB,CAAC,MAAM,EAAE,CAAC;AAE5B,eAAe,kBAAkB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport { getIllustrationDataSync, getIllustrationData } from \"@ui5/webcomponents-base/dist/asset-registries/Illustrations.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Title from \"@ui5/webcomponents/dist/Title.js\";\nimport TitleLevel from \"@ui5/webcomponents/dist/types/TitleLevel.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport type { IButton } from \"@ui5/webcomponents/dist/Button.js\";\nimport IllustrationMessageSize from \"./types/IllustrationMessageSize.js\";\nimport IllustrationMessageType from \"./types/IllustrationMessageType.js\";\nimport \"./illustrations/BeforeSearch.js\";\n\n// Styles\nimport IllustratedMessageCss from \"./generated/themes/IllustratedMessage.css.js\";\n\n// Template\nimport IllustratedMessageTemplate from \"./generated/templates/IllustratedMessageTemplate.lit.js\";\n\nconst getEffectiveIllustrationName = (name: string): string => {\n\tif (name.startsWith(\"Tnt\")) {\n\t\treturn name.replace(\"Tnt\", \"tnt/\");\n\t}\n\n\tif (name.includes(\"/\")) {\n\t\treturn name;\n\t}\n\n\treturn `fiori/${name}`;\n};\n\n/**\n * @class\n *\n * ### Overview\n * An IllustratedMessage is a recommended combination of a solution-oriented message, an engaging\n * illustration, and conversational tone to better communicate an empty or a success state than just show\n * a message alone.\n *\n * Each illustration has default internationalised title and subtitle texts. Also they can be managed with\n * `titleText` and `subtitleText` properties.\n *\n * To display the desired illustration, use the `name` property, where you can find the list of all available illustrations.\n *\n * **Note:** By default the “BeforeSearch” illustration is loaded. To use other illustrations, make sure you import them in addition, for example:\n *\n * `import \"@ui5/webcomponents-fiori/dist/illustrations/NoData.js\"`\n *\n * **Note:** Illustrations starting with the “Tnt” prefix are part of another illustration set. For example to use the “TntSuccess” illustration, add the following import::\n *\n * `import \"@ui5/webcomponents-fiori/dist/illustrations/tnt/Success.js\"`\n *\n * ### Structure\n * The IllustratedMessage consists of the following elements, which are displayed below each other in the following order:\n *\n * - Illustration\n * - Title\n * - Subtitle\n * - Actions\n *\n * ### Usage\n * `ui5-illustrated-message` is meant to be used inside container component, for example a `ui5-card`,\n * a `ui5-dialog` or a `ui5-page`\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents-fiori/dist/IllustratedMessage.js\";`\n * @csspart subtitle - Used to style the subtitle wrapper of the `ui5-illustrated-message`\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.15\n */\n\n@customElement({\n\ttag: \"ui5-illustrated-message\",\n\tlanguageAware: true,\n\tthemeAware: true,\n\trenderer: litRender,\n\tstyles: IllustratedMessageCss,\n\ttemplate: IllustratedMessageTemplate,\n\tdependencies: [Title],\n})\nclass IllustratedMessage extends UI5Element {\n\t/**\n\t* Defines the illustration name that will be displayed in the component.\n\t*\n\t* Example:\n\t*\n\t* `name='BeforeSearch'`, `name='UnableToUpload'`, etc..\n\t*\n\t* **Note:** To use the TNT illustrations,\n\t* you need to set the `tnt` or `Tnt` prefix in front of the icon's name.\n\t*\n\t* Example:\n\t*\n\t* `name='tnt/Avatar'` or `name='TntAvatar'`.\n\t*\n\t* **Note:** By default the `BeforeSearch` illustration is loaded.\n\t* When using an illustration type, other than the default, it should be loaded in addition:\n\t*\n\t* `import \"@ui5/webcomponents-fiori/dist/illustrations/NoData.js\";`\n\t*\n\t* For TNT illustrations:\n\t*\n\t* `import \"@ui5/webcomponents-fiori/dist/illustrations/tnt/SessionExpired.js\";`\n\t* @default \"BeforeSearch\"\n\t* @public\n\t*/\n\t@property({ type: String, defaultValue: IllustrationMessageType.BeforeSearch })\n\tname!: string;\n\n\t/**\n\t* Determines which illustration breakpoint variant is used.\n\t*\n\t* As `IllustratedMessage` adapts itself around the `Illustration`, the other\n\t* elements of the component are displayed differently on the different breakpoints/illustration sizes.\n\t* @default \"Auto\"\n\t* @public\n\t* @since 1.5.0\n\t*/\n\t@property({ type: IllustrationMessageSize, defaultValue: IllustrationMessageSize.Auto })\n\tsize!: `${IllustrationMessageSize}`;\n\n\t/**\n\t* Defines the subtitle of the component.\n\t*\n\t* **Note:** Using this property, the default subtitle text of illustration will be overwritten.\n\t*\n\t* **Note:** Using `subtitle` slot, the default of this property will be overwritten.\n\t* @default \"\"\n\t* @public\n\t*/\n\t@property()\n\tsubtitleText!: string;\n\n\t/**\n\t* Defines the title of the component.\n\t*\n\t* **Note:** Using this property, the default title text of illustration will be overwritten.\n\t* @default \"\"\n\t* @public\n\t*/\n\t@property()\n\ttitleText!: string;\n\n\t/**\n\t* Receives id(or many ids) of the elements that label the component.\n\t* @default \"\"\n\t* @public\n\t* @since 1.7.0\n\t*/\n\t@property({ defaultValue: \"\" })\n\taccessibleNameRef!: string;\n\n\t/**\n\t* Defines the semantic level of the title.\n\t*\n\t* **Note:** Used for accessibility purposes only.\n\t*\n\t* **Note:** Doesn't take effect when `title` slot is being used.\n\t* @default \"H2\"\n\t* @public\n\t* @since 1.20.0\n\t*/\n\t@property({ type: TitleLevel, defaultValue: TitleLevel.H2 })\n\ttitleLevel!: `${TitleLevel}`;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Dot</code> size.\n\t*\n\t* @private\n\t* @since 1.24.0\n\t*/\n\t@property({ noAttribute: true })\n\tdotSvg!: string;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Spot</code> size.\n\t*\n\t* @private\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tspotSvg!: string;\n\n\t/**\n\t* Illustration breakpoint variant for the `Scene` size.\n\t* @private\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tsceneSvg!: string;\n\n\t/**\n\t* Illustration breakpoint variant for the `Dialog` size.\n\t* @private\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tdialogSvg!: string;\n\n\t/**\n\t* Determinates what is the current media of the component based on its width.\n\t* @private\n\t*/\n\t@property()\n\tmedia!: string;\n\n\t/**\n\t* Defines the title of the component.\n\t*\n\t* **Note:** Using this slot, the default title text of illustration and the value of `title` property will be overwritten.\n\t* @public\n\t* @since 1.7.0\n\t*/\n\t@slot({ type: HTMLElement })\n\ttitle!: Array<HTMLElement> & string; // Note: since title collides with HTMLElement's title attribute and it's a String, we're adding the \"& string\" to the type Array<HTMLElement> to avoid ts complains. In the future we will rename/deprecate this slot name, so that it doesn't collide with HTMLElement's title attribute.\n\n\t/**\n\t* Defines the subtitle of the component.\n\t*\n\t* **Note:** Using this slot, the default subtitle text of illustration and the value of `subtitleText` property will be overwritten.\n\t* @public\n\t* @since 1.0.0-rc.16\n\t*/\n\t@slot({ type: HTMLElement })\n\tsubtitle!: Array<HTMLElement>;\n\n\t/**\n\t* Defines the component actions.\n\t* @public\n\t*/\n\t@slot({ type: HTMLElement, \"default\": true })\n\tactions!: Array<IButton>;\n\n\tillustrationTitle?: string;\n\tillustrationSubtitle?: string;\n\n\tstatic i18nBundle: I18nBundle;\n\t_lastKnownOffsetWidthForMedia: Record<string, number>;\n\t_lastKnownOffsetHeightForMedia: Record<string, number>;\n\t_lastKnownMedia: string;\n\t_handleResize: ResizeObserverCallback;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._handleResize = this.handleResize.bind(this);\n\t\t// this will store the last known offsetWidth of the IllustratedMessage DOM node for a given media (e.g. \"Spot\")\n\t\tthis._lastKnownOffsetWidthForMedia = {};\n\t\tthis._lastKnownOffsetHeightForMedia = {};\n\t\t// this will store the last known media, in order to detect if IllustratedMessage has been hidden by expand/collapse container\n\t\tthis._lastKnownMedia = \"base\";\n\t}\n\n\tstatic async onDefine() {\n\t\tIllustratedMessage.i18nBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n\n\tstatic get BREAKPOINTS() {\n\t\treturn {\n\t\t\tDIALOG: 681,\n\t\t\tSPOT: 360,\n\t\t\tDOT: 260,\n\t\t\tBASE: 160,\n\t\t};\n\t}\n\n\tstatic get BREAKPOINTS_HEIGHT() {\n\t\treturn {\n\t\t\tDIALOG: 415,\n\t\t\tSPOT: 284,\n\t\t\tDOT: 207,\n\t\t\tBASE: 61,\n\t\t};\n\t}\n\n\tstatic get MEDIA() {\n\t\treturn {\n\t\t\tBASE: \"base\",\n\t\t\tDOT: \"dot\",\n\t\t\tSPOT: \"spot\",\n\t\t\tDIALOG: \"dialog\",\n\t\t\tSCENE: \"scene\",\n\t\t};\n\t}\n\n\tasync onBeforeRendering() {\n\t\t// Gets the current illustration name given in the \"name\" attribute\n\t\tlet effectiveName = getEffectiveIllustrationName(this.name);\n\t\tlet illustrationData = getIllustrationDataSync(effectiveName);\n\n\t\tif (this.hasAttribute(\"name\") && !this.isValidIllustration(effectiveName)) {\n\t\t\teffectiveName = getEffectiveIllustrationName(IllustrationMessageType.BeforeSearch);\n\t\t\t// eslint-disable-next-line\n\t\t\tconsole.warn(`The illustration \"${effectiveName!}\" does not exist. The default illustration \"${IllustrationMessageType.BeforeSearch}\" is loaded instead.`);\n\t\t}\n\n\t\tif (illustrationData === undefined) {\n\t\t\tillustrationData = await getIllustrationData(effectiveName);\n\t\t}\n\n\t\tthis.dotSvg = illustrationData!.dotSvg;\n\t\tthis.spotSvg = illustrationData!.spotSvg;\n\t\tthis.dialogSvg = illustrationData!.dialogSvg;\n\t\tthis.sceneSvg = illustrationData!.sceneSvg;\n\n\t\tthis.illustrationTitle = IllustratedMessage.i18nBundle.getText(illustrationData!.title);\n\t\tthis.illustrationSubtitle = IllustratedMessage.i18nBundle.getText(illustrationData!.subtitle);\n\n\t\tif (this.size !== IllustrationMessageSize.Auto) {\n\t\t\tthis._handleCustomSize();\n\t\t}\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(this, this._handleResize);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(this, this._handleResize);\n\t}\n\n\thandleResize() {\n\t\tif (this.size !== IllustrationMessageSize.Auto) {\n\t\t\tthis._adjustHeightToFitContainer();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._applyMedia();\n\t\twindow.requestAnimationFrame(this._adjustHeightToFitContainer.bind(this));\n\t}\n\n\t_applyMedia(heightChange?: boolean) {\n\t\tconst currOffsetWidth = this.offsetWidth,\n\t\t\tcurrOffsetHeight = this.offsetHeight;\n\n\t\tconst size = heightChange ? currOffsetHeight : currOffsetWidth,\n\t\t\toBreakpounts = heightChange ? IllustratedMessage.BREAKPOINTS_HEIGHT : IllustratedMessage.BREAKPOINTS;\n\t\tlet newMedia = \"\";\n\n\t\tif (size <= oBreakpounts.BASE) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.BASE;\n\t\t} else if (size <= oBreakpounts.DOT) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.DOT;\n\t\t} else if (size <= oBreakpounts.SPOT) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.SPOT;\n\t\t} else if (size <= oBreakpounts.DIALOG) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.DIALOG;\n\t\t} else {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.SCENE;\n\t\t}\n\t\tconst lastKnownOffsetWidth = this._lastKnownOffsetWidthForMedia[newMedia],\n\t\t\tlastKnownOffsetHeight = this._lastKnownOffsetHeightForMedia[newMedia];\n\t\t // prevents infinite resizing, when same width is detected for the same media,\n\t\t // excluding the case in which, the control is placed inside expand/collapse container\n\t\tif (!(lastKnownOffsetWidth && currOffsetWidth === lastKnownOffsetWidth\n\t\t\t&& lastKnownOffsetHeight && currOffsetHeight === lastKnownOffsetHeight)\n\t\t\t|| this._lastKnownOffsetWidthForMedia[this._lastKnownMedia] === 0\n\t\t\t|| this._lastKnownOffsetHeightForMedia[this._lastKnownMedia] === 0\n\t\t\t|| this._lastKnownMedia !== newMedia) {\n\t\t\tthis.media = newMedia;\n\t\t\tthis._lastKnownOffsetWidthForMedia[newMedia] = currOffsetWidth;\n\t\t\tthis._lastKnownOffsetHeightForMedia[newMedia] = currOffsetHeight;\n\t\t\tthis._lastKnownMedia = newMedia;\n\t\t}\n\t}\n\n\t_setSVGAccAttrs() {\n\t\tconst svg = this.shadowRoot!.querySelector(\".ui5-illustrated-message-illustration svg\");\n\t\tif (svg) {\n\t\t\tif (this.ariaLabelText) {\n\t\t\t\tsvg.setAttribute(\"aria-label\", this.ariaLabelText);\n\t\t\t} else {\n\t\t\t\tsvg.removeAttribute(\"aria-label\");\n\t\t\t}\n\t\t}\n\t}\n\n\t_adjustHeightToFitContainer() {\n\t\tconst illustrationWrapper = <HTMLElement> this.shadowRoot!.querySelector(\".ui5-illustrated-message-illustration\"),\n\t\t\tillustration = illustrationWrapper.querySelector(\"svg\");\n\n\t\tif (illustration) {\n\t\t\tillustrationWrapper.classList.toggle(\"ui5-illustrated-message-illustration-fit-content\", false);\n\t\t\tif (this.getDomRef()!.scrollHeight > this.getDomRef()!.offsetHeight) {\n\t\t\t\tillustrationWrapper.classList.toggle(\"ui5-illustrated-message-illustration-fit-content\", true);\n\t\t\t\tthis._applyMedia(true /* height change */);\n\t\t\t}\n\t\t}\n\t}\n\n\tonAfterRendering() {\n\t\tthis._setSVGAccAttrs();\n\t}\n\n\t/**\n\t * Modifies the IM styles in accordance to the `size` property's value.\n\t * Note: The resize handler has no effect when size is different than \"Auto\".\n\t * @private\n\t * @since 1.5.0\n\t */\n\t_handleCustomSize() {\n\t\tswitch (this.size) {\n\t\tcase IllustrationMessageSize.Base:\n\t\t\tthis.media = IllustratedMessage.MEDIA.BASE;\n\t\t\treturn;\n\t\tcase IllustrationMessageSize.Dot:\n\t\t\tthis.media = IllustratedMessage.MEDIA.DOT;\n\t\t\treturn;\n\t\tcase IllustrationMessageSize.Spot:\n\t\t\tthis.media = IllustratedMessage.MEDIA.SPOT;\n\t\t\treturn;\n\t\tcase IllustrationMessageSize.Dialog:\n\t\t\tthis.media = IllustratedMessage.MEDIA.DIALOG;\n\t\t\treturn;\n\t\tdefault:\n\t\t\tthis.media = IllustratedMessage.MEDIA.SCENE;\n\t\t}\n\t}\n\n\tget ariaLabelText(): string | undefined {\n\t\treturn getEffectiveAriaLabelText(this);\n\t}\n\n\tget effectiveIllustration(): string {\n\t\tswitch (this.media) {\n\t\tcase IllustratedMessage.MEDIA.DOT:\n\t\t\treturn this.dotSvg;\n\t\tcase IllustratedMessage.MEDIA.SPOT:\n\t\t\treturn this.spotSvg;\n\t\tcase IllustratedMessage.MEDIA.DIALOG:\n\t\t\treturn this.dialogSvg;\n\t\tcase IllustratedMessage.MEDIA.SCENE:\n\t\t\treturn this.sceneSvg;\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}\n\n\tget hasFormattedSubtitle(): boolean {\n\t\treturn !!this.subtitle.length;\n\t}\n\n\tget hasFormattedTitle(): boolean {\n\t\treturn !!this.title.length;\n\t}\n\n\tget effectiveTitleText(): string | undefined {\n\t\treturn this.titleText ? this.titleText : this.illustrationTitle;\n\t}\n\n\tget effectiveSubitleText(): string | undefined {\n\t\treturn this.subtitleText ? this.subtitleText : this.illustrationSubtitle;\n\t}\n\n\tget hasTitle(): boolean {\n\t\treturn !!(this.hasFormattedTitle || this.titleText || this.illustrationTitle);\n\t}\n\n\tget hasSubtitle(): boolean {\n\t\treturn !!(this.hasFormattedSubtitle || this.subtitleText || this.illustrationSubtitle);\n\t}\n\n\tget hasActions(): boolean {\n\t\treturn !!this.actions.length && this.media !== IllustratedMessage.MEDIA.BASE;\n\t}\n\n\tisValidIllustration(currentIllustration: string): boolean {\n\t\tcurrentIllustration = currentIllustration.startsWith(\"tnt/\") ? currentIllustration.replace(\"tnt/\", \"Tnt\") : currentIllustration.replace(\"fiori/\", \"\");\n\n\t\treturn currentIllustration in IllustrationMessageType;\n\t}\n}\n\nIllustratedMessage.define();\n\nexport default IllustratedMessage;\n"]}
|
package/dist/MediaGallery.d.ts
CHANGED
|
@@ -10,8 +10,7 @@ import MediaGalleryLayout from "./types/MediaGalleryLayout.js";
|
|
|
10
10
|
import MediaGalleryMenuHorizontalAlign from "./types/MediaGalleryMenuHorizontalAlign.js";
|
|
11
11
|
import MediaGalleryMenuVerticalAlign from "./types/MediaGalleryMenuVerticalAlign.js";
|
|
12
12
|
/**
|
|
13
|
-
* Interface for components that can be slotted inside
|
|
14
|
-
*
|
|
13
|
+
* Interface for components that can be slotted inside `ui5-media-gallery` as items.
|
|
15
14
|
* @public
|
|
16
15
|
*/
|
|
17
16
|
interface IMediaGalleryItem extends HTMLElement, ITabbable {
|
|
@@ -27,38 +26,33 @@ type MediaGallerySelectionChangeEventDetail = {
|
|
|
27
26
|
/**
|
|
28
27
|
* @class
|
|
29
28
|
*
|
|
30
|
-
*
|
|
29
|
+
* ### Overview
|
|
31
30
|
*
|
|
32
|
-
* The
|
|
33
|
-
* the supported items are images and videos. The items should be defined using the
|
|
31
|
+
* The `ui5-media-gallery` component allows the user to browse through multimedia items. Currently,
|
|
32
|
+
* the supported items are images and videos. The items should be defined using the `ui5-media-gallery-item`
|
|
34
33
|
* component.
|
|
35
34
|
*
|
|
36
35
|
* The items are initially displayed as thumbnails. When the user selects a thumbnail, the corresponding item
|
|
37
36
|
* is displayed in larger size.
|
|
38
|
-
*
|
|
37
|
+
*
|
|
39
38
|
* The component is responsive by default and adjusts the position of the menu with respect to viewport size,
|
|
40
39
|
* but the application is able to further customize the layout via the provided API.
|
|
41
40
|
*
|
|
42
|
-
*
|
|
43
|
-
* The
|
|
44
|
-
*
|
|
41
|
+
* ### Keyboard Handling
|
|
42
|
+
* The `ui5-media-gallery` provides advanced keyboard handling.
|
|
43
|
+
*
|
|
45
44
|
* When the thumbnails menu is focused the following keyboard
|
|
46
45
|
* shortcuts allow the user to navigate through the thumbnail items:
|
|
47
|
-
* <br>
|
|
48
46
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* <li>[SPACE/ENTER] - Select an item</li>
|
|
54
|
-
* </ul>
|
|
55
|
-
* <br>
|
|
47
|
+
* - [UP/DOWN] - Navigates up and down the items
|
|
48
|
+
* - [HOME] - Navigates to first item
|
|
49
|
+
* - [END] - Navigates to the last item
|
|
50
|
+
* - [SPACE/ENTER] - Select an item
|
|
56
51
|
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* <br>
|
|
60
|
-
* <code>import "@ui5/webcomponents-fiori/dist/MediaGalleryItem";</code>
|
|
52
|
+
* ### ES6 Module Import
|
|
53
|
+
* `import "@ui5/webcomponents-fiori/dist/MediaGallery.js";`
|
|
61
54
|
*
|
|
55
|
+
* `import "@ui5/webcomponents-fiori/dist/MediaGalleryItem.js";`
|
|
62
56
|
* @constructor
|
|
63
57
|
* @extends UI5Element
|
|
64
58
|
* @public
|
|
@@ -66,28 +60,25 @@ type MediaGallerySelectionChangeEventDetail = {
|
|
|
66
60
|
*/
|
|
67
61
|
declare class MediaGallery extends UI5Element {
|
|
68
62
|
/**
|
|
69
|
-
* If set to
|
|
70
|
-
* If
|
|
63
|
+
* If set to `true`, all thumbnails are rendered in a scrollable container.
|
|
64
|
+
* If `false`, only up to five thumbnails are rendered, followed by
|
|
71
65
|
* an overflow button that shows the count of the remaining thumbnails.
|
|
72
|
-
*
|
|
73
66
|
* @default false
|
|
74
67
|
* @public
|
|
75
68
|
*/
|
|
76
69
|
showAllThumbnails: boolean;
|
|
77
70
|
/**
|
|
78
|
-
* If enabled, a
|
|
71
|
+
* If enabled, a `display-area-click` event is fired
|
|
79
72
|
* when the user clicks or taps on the display area.
|
|
80
|
-
*
|
|
73
|
+
*
|
|
81
74
|
* The display area is the central area that contains
|
|
82
75
|
* the enlarged content of the currently selected item.
|
|
83
|
-
*
|
|
84
76
|
* @default false
|
|
85
77
|
* @public
|
|
86
78
|
*/
|
|
87
79
|
interactiveDisplayArea: boolean;
|
|
88
80
|
/**
|
|
89
81
|
* Determines the layout of the component.
|
|
90
|
-
*
|
|
91
82
|
* @default "Auto"
|
|
92
83
|
* @public
|
|
93
84
|
*/
|
|
@@ -95,7 +86,6 @@ declare class MediaGallery extends UI5Element {
|
|
|
95
86
|
/**
|
|
96
87
|
* Determines the horizontal alignment of the thumbnails menu
|
|
97
88
|
* vs. the central display area.
|
|
98
|
-
*
|
|
99
89
|
* @default "Left"
|
|
100
90
|
* @public
|
|
101
91
|
*/
|
|
@@ -103,7 +93,6 @@ declare class MediaGallery extends UI5Element {
|
|
|
103
93
|
/**
|
|
104
94
|
* Determines the vertical alignment of the thumbnails menu
|
|
105
95
|
* vs. the central display area.
|
|
106
|
-
*
|
|
107
96
|
* @default "Bottom"
|
|
108
97
|
* @public
|
|
109
98
|
*/
|
|
@@ -111,33 +100,27 @@ declare class MediaGallery extends UI5Element {
|
|
|
111
100
|
/**
|
|
112
101
|
* Determines the actual applied layout type
|
|
113
102
|
* (esp. needed when the app did not specify a fixed layout type
|
|
114
|
-
* but selected
|
|
115
|
-
*
|
|
103
|
+
* but selected `Auto` layout type).
|
|
116
104
|
* @default "Vertical"
|
|
117
105
|
* @private
|
|
118
106
|
*/
|
|
119
107
|
effectiveLayout: `${MediaGalleryLayout}`;
|
|
120
108
|
/**
|
|
121
109
|
* Defines the current media query size.
|
|
122
|
-
*
|
|
123
110
|
* @private
|
|
124
111
|
*/
|
|
125
112
|
mediaRange: string;
|
|
126
113
|
/**
|
|
127
114
|
* The number of items in the overflow.
|
|
128
|
-
*
|
|
129
115
|
* @private
|
|
130
116
|
*/
|
|
131
117
|
_overflowSize: number;
|
|
132
118
|
/**
|
|
133
119
|
* Defines the component items.
|
|
134
120
|
*
|
|
135
|
-
*
|
|
136
|
-
* <b>Note:</b> Only one selected item is allowed.
|
|
137
|
-
*
|
|
138
|
-
* <br><br>
|
|
139
|
-
* <b>Note:</b> Use the <code>ui5-media-gallery-item</code> component to define the desired items.
|
|
121
|
+
* **Note:** Only one selected item is allowed.
|
|
140
122
|
*
|
|
123
|
+
* **Note:** Use the `ui5-media-gallery-item` component to define the desired items.
|
|
141
124
|
* @public
|
|
142
125
|
*/
|
|
143
126
|
items: Array<IMediaGalleryItem>;
|
package/dist/MediaGallery.js
CHANGED
|
@@ -29,7 +29,7 @@ import MediaGalleryCss from "./generated/themes/MediaGallery.css.js";
|
|
|
29
29
|
// Template
|
|
30
30
|
import MediaGalleryTemplate from "./generated/templates/MediaGalleryTemplate.lit.js";
|
|
31
31
|
// The allowed number of thumbnail columns on each size
|
|
32
|
-
// (relevant when
|
|
32
|
+
// (relevant when `showAllThumbnails` is enabled)
|
|
33
33
|
const COLUMNS_COUNT = {
|
|
34
34
|
"S": 1,
|
|
35
35
|
"M": 2,
|
|
@@ -39,38 +39,33 @@ const COLUMNS_COUNT = {
|
|
|
39
39
|
/**
|
|
40
40
|
* @class
|
|
41
41
|
*
|
|
42
|
-
*
|
|
42
|
+
* ### Overview
|
|
43
43
|
*
|
|
44
|
-
* The
|
|
45
|
-
* the supported items are images and videos. The items should be defined using the
|
|
44
|
+
* The `ui5-media-gallery` component allows the user to browse through multimedia items. Currently,
|
|
45
|
+
* the supported items are images and videos. The items should be defined using the `ui5-media-gallery-item`
|
|
46
46
|
* component.
|
|
47
47
|
*
|
|
48
48
|
* The items are initially displayed as thumbnails. When the user selects a thumbnail, the corresponding item
|
|
49
49
|
* is displayed in larger size.
|
|
50
|
-
*
|
|
50
|
+
*
|
|
51
51
|
* The component is responsive by default and adjusts the position of the menu with respect to viewport size,
|
|
52
52
|
* but the application is able to further customize the layout via the provided API.
|
|
53
53
|
*
|
|
54
|
-
*
|
|
55
|
-
* The
|
|
56
|
-
*
|
|
54
|
+
* ### Keyboard Handling
|
|
55
|
+
* The `ui5-media-gallery` provides advanced keyboard handling.
|
|
56
|
+
*
|
|
57
57
|
* When the thumbnails menu is focused the following keyboard
|
|
58
58
|
* shortcuts allow the user to navigate through the thumbnail items:
|
|
59
|
-
* <br>
|
|
60
59
|
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* <li>[SPACE/ENTER] - Select an item</li>
|
|
66
|
-
* </ul>
|
|
67
|
-
* <br>
|
|
60
|
+
* - [UP/DOWN] - Navigates up and down the items
|
|
61
|
+
* - [HOME] - Navigates to first item
|
|
62
|
+
* - [END] - Navigates to the last item
|
|
63
|
+
* - [SPACE/ENTER] - Select an item
|
|
68
64
|
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* <br>
|
|
72
|
-
* <code>import "@ui5/webcomponents-fiori/dist/MediaGalleryItem";</code>
|
|
65
|
+
* ### ES6 Module Import
|
|
66
|
+
* `import "@ui5/webcomponents-fiori/dist/MediaGallery.js";`
|
|
73
67
|
*
|
|
68
|
+
* `import "@ui5/webcomponents-fiori/dist/MediaGalleryItem.js";`
|
|
74
69
|
* @constructor
|
|
75
70
|
* @extends UI5Element
|
|
76
71
|
* @public
|
|
@@ -352,7 +347,6 @@ MediaGallery = MediaGallery_1 = __decorate([
|
|
|
352
347
|
})
|
|
353
348
|
/**
|
|
354
349
|
* Fired when selection is changed by user interaction.
|
|
355
|
-
*
|
|
356
350
|
* @param {HTMLElement} item the selected item.
|
|
357
351
|
* @public
|
|
358
352
|
*/
|
|
@@ -367,16 +361,14 @@ MediaGallery = MediaGallery_1 = __decorate([
|
|
|
367
361
|
})
|
|
368
362
|
/**
|
|
369
363
|
* Fired when the thumbnails overflow button is clicked.
|
|
370
|
-
*
|
|
371
364
|
* @public
|
|
372
365
|
*/
|
|
373
366
|
,
|
|
374
367
|
event("overflow-click")
|
|
375
368
|
/**
|
|
376
|
-
* Fired when the display area is clicked
|
|
369
|
+
* Fired when the display area is clicked.
|
|
377
370
|
* The display area is the central area that contains
|
|
378
371
|
* the enlarged content of the currently selected item.
|
|
379
|
-
*
|
|
380
372
|
* @public
|
|
381
373
|
*/
|
|
382
374
|
,
|
package/dist/MediaGallery.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaGallery.js","sourceRoot":"","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CAAyC,kBAAkB,EAAE;QAClE,MAAM,EAAE;YACP;;eAEG;YACH,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;SAC3B;KACD,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAAC,gBAAgB,CAAC;IAExB;;;;;;OAMG;;IACF,KAAK,CAAC,oBAAoB,CAAC;GAEtB,YAAY,CA8YjB;AAED,YAAY,CAAC,MAAM,EAAE,CAAC;AAEtB,eAAe,YAAY,CAAC","sourcesContent":["import ItemNavigation from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport { isPhone } from \"@ui5/webcomponents-base/dist/Device.js\";\nimport MediaRange from \"@ui5/webcomponents-base/dist/MediaRange.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport NavigationMode from \"@ui5/webcomponents-base/dist/types/NavigationMode.js\";\nimport UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport type { CarouselNavigateEventDetail } from \"@ui5/webcomponents/dist/Carousel.js\";\nimport Carousel from \"@ui5/webcomponents/dist/Carousel.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport type { ITabbable } from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport MediaGalleryItem from \"./MediaGalleryItem.js\";\nimport MediaGalleryItemLayout from \"./types/MediaGalleryItemLayout.js\";\nimport MediaGalleryLayout from \"./types/MediaGalleryLayout.js\";\nimport MediaGalleryMenuHorizontalAlign from \"./types/MediaGalleryMenuHorizontalAlign.js\";\nimport MediaGalleryMenuVerticalAlign from \"./types/MediaGalleryMenuVerticalAlign.js\";\n\n// Styles\nimport MediaGalleryCss from \"./generated/themes/MediaGallery.css.js\";\n\n// Template\nimport MediaGalleryTemplate from \"./generated/templates/MediaGalleryTemplate.lit.js\";\n\n/**\n * Interface for components that can be slotted inside <code>ui5-media-gallery</code> as items.\n *\n * @public\n */\ninterface IMediaGalleryItem extends HTMLElement, ITabbable {\n\tselected: boolean,\n\tdisabled: boolean,\n\tfocused: boolean,\n\tdisplayedContent: HTMLElement | null;\n\tlayout: `${MediaGalleryItemLayout}`\n}\n\ntype MediaGallerySelectionChangeEventDetail = {\n\titem: IMediaGalleryItem;\n}\n\n// The allowed number of thumbnail columns on each size\n// (relevant when <code>showAllThumbnails</code> is enabled)\nconst COLUMNS_COUNT: Record<string, number> = {\n\t\"S\": 1,\n\t\"M\": 2,\n\t\"L\": 3,\n\t\"XL\": 4,\n};\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-media-gallery</code> component allows the user to browse through multimedia items. Currently,\n * the supported items are images and videos. The items should be defined using the <code>ui5-media-gallery-item</code>\n * component.\n *\n * The items are initially displayed as thumbnails. When the user selects a thumbnail, the corresponding item\n * is displayed in larger size.\n * <br>\n * The component is responsive by default and adjusts the position of the menu with respect to viewport size,\n * but the application is able to further customize the layout via the provided API.\n *\n* <h3>Keyboard Handling</h3>\n * The <code>ui5-media-gallery</code> provides advanced keyboard handling.\n * <br>\n * When the thumbnails menu is focused the following keyboard\n * shortcuts allow the user to navigate through the thumbnail items:\n * <br>\n *\n * <ul>\n * <li>[UP/DOWN] - Navigates up and down the items</li>\n * <li>[HOME] - Navigates to first item</li>\n * <li>[END] - Navigates to the last item</li>\n * <li>[SPACE/ENTER] - Select an item</li>\n * </ul>\n * <br>\n *\n * <h3>ES6 Module Import</h3>\n * <code>import \"@ui5/webcomponents-fiori/dist/MediaGallery\";</code>\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/MediaGalleryItem\";</code>\n *\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.1.0\n */\n@customElement({\n\ttag: \"ui5-media-gallery\",\n\trenderer: litRender,\n\tstyles: [MediaGalleryCss],\n\ttemplate: MediaGalleryTemplate,\n\tstaticAreaTemplate: MediaGalleryTemplate,\n\tdependencies: [\n\t\tMediaGalleryItem,\n\t\tButton,\n\t\tCarousel,\n\t],\n})\n\n/**\n * Fired when selection is changed by user interaction.\n *\n * @param {HTMLElement} item the selected item.\n * @public\n */\n@event<MediaGallerySelectionChangeEventDetail>(\"selection-change\", {\n\tdetail: {\n\t\t/**\n\t\t * @public\n\t\t */\n\t\titem: { type: HTMLElement },\n\t},\n})\n\n/**\n * Fired when the thumbnails overflow button is clicked.\n *\n * @public\n */\n@event(\"overflow-click\")\n\n/**\n * Fired when the display area is clicked.<br>\n * The display area is the central area that contains\n * the enlarged content of the currently selected item.\n *\n * @public\n */\n@event(\"display-area-click\")\n\nclass MediaGallery extends UI5Element {\n\t/**\n\t * If set to <code>true</code>, all thumbnails are rendered in a scrollable container.\n\t * If <code>false</code>, only up to five thumbnails are rendered, followed by\n\t * an overflow button that shows the count of the remaining thumbnails.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowAllThumbnails!: boolean;\n\n\t/**\n\t * If enabled, a <code>display-area-click</code> event is fired\n\t * when the user clicks or taps on the display area.\n\t * <br>\n\t * The display area is the central area that contains\n\t * the enlarged content of the currently selected item.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tinteractiveDisplayArea!: boolean;\n\n\t/**\n\t * Determines the layout of the component.\n\t *\n\t * @default \"Auto\"\n\t * @public\n\t */\n\t@property({ type: MediaGalleryLayout, defaultValue: MediaGalleryLayout.Auto })\n\tlayout!: `${MediaGalleryLayout}`;\n\n\t/**\n\t * Determines the horizontal alignment of the thumbnails menu\n\t * vs. the central display area.\n\t *\n\t * @default \"Left\"\n\t * @public\n\t */\n\t@property({ type: MediaGalleryMenuHorizontalAlign, defaultValue: MediaGalleryMenuHorizontalAlign.Left })\n\tmenuHorizontalAlign!: `${MediaGalleryMenuHorizontalAlign}`;\n\n\t/**\n\t * Determines the vertical alignment of the thumbnails menu\n\t * vs. the central display area.\n\t *\n\t * @default \"Bottom\"\n\t * @public\n\t */\n\t@property({ type: MediaGalleryMenuVerticalAlign, defaultValue: MediaGalleryMenuVerticalAlign.Bottom })\n\tmenuVerticalAlign!: `${MediaGalleryMenuVerticalAlign}`;\n\n\t/**\n\t * Determines the actual applied layout type\n\t * (esp. needed when the app did not specify a fixed layout type\n\t * but selected <code>Auto</code> layout type).\n\t *\n\t * @default \"Vertical\"\n\t * @private\n\t */\n\t@property({ type: MediaGalleryLayout, defaultValue: MediaGalleryLayout.Vertical })\n\teffectiveLayout!: `${MediaGalleryLayout}`;\n\n\t/**\n\t * Defines the current media query size.\n\t *\n\t * @private\n\t */\n\t@property()\n\tmediaRange!: string;\n\n\t/**\n\t * The number of items in the overflow.\n\t *\n\t * @private\n\t */\n\t@property({ validator: Integer, noAttribute: true, defaultValue: 0 })\n\t_overflowSize!: number;\n\n\t/**\n\t * Defines the component items.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> Only one selected item is allowed.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> Use the <code>ui5-media-gallery-item</code> component to define the desired items.\n\t *\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\tindividualSlots: true,\n\t\tinvalidateOnChildChange: true,\n\t\t\"default\": true,\n\t})\n\titems!: Array<IMediaGalleryItem>;\n\n\t_itemNavigation: ItemNavigation;\n\t_onResize: () => void;\n\t_selectedItem?: IMediaGalleryItem;\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis._onResize = this._updateLayout.bind(this);\n\n\t\tthis._itemNavigation = new ItemNavigation(this, {\n\t\t\tnavigationMode: NavigationMode.Auto,\n\t\t\tgetItemsCallback: () => this._getFocusableItems(),\n\t\t});\n\t}\n\n\tonEnterDOM() {\n\t\t!isPhone() && ResizeHandler.register(this, this._onResize);\n\t}\n\n\tonExitDOM() {\n\t\t!isPhone() && ResizeHandler.deregister(this, this._onResize);\n\t}\n\n\tonAfterRendering() {\n\t\tthis._updateLayout();\n\t\tthis._updateSelection();\n\t}\n\n\t_updateSelection() {\n\t\tlet itemToSelect = this.items.find(item => item.selected);\n\t\tif (!itemToSelect || !this._isSelectableItem(itemToSelect)) {\n\t\t\titemToSelect = this._findSelectableItem();\n\t\t}\n\t\tif (itemToSelect && itemToSelect !== this._selectedItem) {\n\t\t\tthis._selectItem(itemToSelect);\n\t\t}\n\t}\n\n\t_isSelectableItem(this: void, item: IMediaGalleryItem) {\n\t\treturn !item.disabled && !item.hidden;\n\t}\n\n\t_findSelectableItem() {\n\t\treturn this.items.find(this._isSelectableItem);\n\t}\n\n\t_updateMediaRange(width: number) {\n\t\tthis.mediaRange = MediaRange.getCurrentRange(MediaRange.RANGESETS.RANGE_4STEPS, width);\n\t}\n\n\t_updateLayout() {\n\t\tconst rootNode = this.getDomRef()!,\n\t\t\theight = rootNode.offsetHeight,\n\t\t\twidth = rootNode.offsetWidth;\n\n\t\tif (!width || !height || isPhone()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._updateMediaRange(width);\n\t\tthis.effectiveLayout = this._infereffectiveLayout();\n\t\tthis._overflowSize = this._calculateOverflowSize(width, height);\n\n\t\tthis._toggleDisplaySquareSize(this._shouldHaveSquareDisplay);\n\t\tthis._toggleMainItem9x16size(this._shouldHaveWideDisplay);\n\t}\n\n\t_calculateOverflowSize(width: number, height: number) {\n\t\tconst marginSize = MediaGallery.THUMBNAIL_MARGIN;\n\t\tlet columnHeight,\n\t\t\tcolumnsCount;\n\n\t\tif (this.showAllThumbnails) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (this.effectiveLayout === MediaGalleryLayout.Horizontal) {\n\t\t\tcolumnHeight = height - marginSize;\n\t\t\tcolumnsCount = this.showAllThumbnails ? COLUMNS_COUNT[this.mediaRange] : 1;\n\t\t} else {\n\t\t\tcolumnHeight = width - (marginSize * 2); // column is flexed to appear as a row in this case\n\t\t\tcolumnsCount = 1;\n\t\t}\n\t\treturn this._getOverflowSize(columnHeight, columnsCount);\n\t}\n\n\t_toggleDisplaySquareSize(enable: boolean) {\n\t\tthis._display!.style.width = \"\"; // restore default width\n\n\t\tif (enable) {\n\t\t\tconst marginSize = MediaGallery.THUMBNAIL_MARGIN,\n\t\t\t\twidth = this._display!.offsetWidth;\n\n\t\t\tlet availableHeight = this.getDomRef()!.offsetHeight - (2 * marginSize);\n\t\t\tif (this.effectiveLayout === MediaGalleryLayout.Vertical) {\n\t\t\t\tavailableHeight -= (MediaGallery.THUMBNAIL_HEIGHT + marginSize);\n\t\t\t}\n\n\t\t\tif (width > availableHeight) {\n\t\t\t\t// set to square\n\t\t\t\tthis._display!.style.width = `${availableHeight}px`;\n\t\t\t}\n\t\t}\n\t}\n\n\t_toggleMainItem9x16size(enable: boolean) {\n\t\tif (!this._mainItem) {\n\t\t\treturn;\n\t\t}\n\t\tconst width = this._mainItem.offsetWidth,\n\t\t\tcontentHeight = enable ? `${(width / 16) * 9}px` : \"\";\n\n\t\tthis._mainItem.contentHeight = contentHeight;\n\t}\n\n\t_infereffectiveLayout() {\n\t\tif (this.layout === MediaGalleryLayout.Auto) {\n\t\t\treturn (this._isPhoneSize) ? MediaGalleryLayout.Vertical\n\t\t\t\t: MediaGalleryLayout.Horizontal;\n\t\t}\n\t\treturn this.layout;\n\t}\n\n\t_getMaxAllowedThumbnailsInColumn(columnHeight: number) {\n\t\tlet maxAllowedItems = Math.floor(columnHeight / MediaGallery.THUMBNAIL_HEIGHT);\n\t\tif (!this.showAllThumbnails) {\n\t\t\tmaxAllowedItems = Math.min(maxAllowedItems, 5);\n\t\t}\n\t\treturn maxAllowedItems;\n\t}\n\n\t_getOverflowSize(columnHeight: number, columnsCount: number) {\n\t\tconst maxAlowedThumbnailsInColumn = this._getMaxAllowedThumbnailsInColumn(columnHeight),\n\t\t\toverflowSize = Math.max(0, this.items.length - maxAlowedThumbnailsInColumn * columnsCount);\n\t\tif (overflowSize === this.items.length || overflowSize === 0) {\n\t\t\treturn overflowSize;\n\t\t}\n\t\treturn overflowSize + 1; // overflow 1 extra item to make room for overflow btn as well\n\t}\n\n\t_getFocusableItems() {\n\t\tif (!this._showThumbnails) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst items: Array<ITabbable> = this._visibleItems.filter(item => !item.disabled);\n\n\t\tif (this._overflowBtn) {\n\t\t\titems.push(this._overflowBtn);\n\t\t}\n\t\treturn items;\n\t}\n\n\t_selectItem(item: IMediaGalleryItem, userInteraction = false) {\n\t\tif (item === this._selectedItem) {\n\t\t\treturn;\n\t\t}\n\t\tthis._selectedItem = item;\n\n\t\tthis._updateSelectedFlag(item);\n\t\tthis._itemNavigation.setCurrentItem(item);\n\n\t\tif (userInteraction) {\n\t\t\tthis.fireEvent<MediaGallerySelectionChangeEventDetail>(\"selection-change\", { item });\n\t\t}\n\n\t\tif (isPhone()) {\n\t\t\tthis._selectItemOnPhone(item);\n\t\t} else {\n\t\t\tthis._displayContent(item);\n\t\t}\n\t}\n\n\t_updateSelectedFlag(itemToSelect: IMediaGalleryItem) {\n\t\tthis.items.forEach(next => { next.selected = false; });\n\t\titemToSelect.selected = true;\n\t}\n\n\t_selectItemOnPhone(item: IMediaGalleryItem) {\n\t\tconst selectableItemIndex = this._selectableItems.indexOf(item),\n\t\t\tcarousel = this._carousel;\n\t\tcarousel && carousel.navigateTo(selectableItemIndex);\n\t}\n\n\t_displayContent(item: IMediaGalleryItem) {\n\t\tlet clone;\n\t\tconst mainItem = this._mainItem,\n\t\t\toldContent = mainItem!.displayedContent,\n\t\t\tnewContent = item.displayedContent;\n\n\t\tmainItem!._thumbnailDesign = false;\n\t\toldContent && oldContent.remove();\n\n\t\tif (newContent) {\n\t\t\tclone = newContent.cloneNode(true);\n\t\t\tmainItem!.layout = item.layout;\n\t\t\tmainItem!.appendChild(clone);\n\t\t}\n\t}\n\n\t_onThumbnailClick(e: MouseEvent) {\n\t\tconst target = e.target as HTMLElement;\n\t\tconst item = target.closest<IMediaGalleryItem>(\"[ui5-media-gallery-item]\")!;\n\n\t\tif (item.disabled) {\n\t\t\treturn;\n\t\t}\n\t\tif (item !== this._selectedItem) {\n\t\t\tthis._selectItem(item, true /* userInteraction */);\n\t\t}\n\t}\n\n\t_onOverflowBtnClick() {\n\t\tthis.fireEvent(\"overflow-click\");\n\t}\n\n\t_onDisplayAreaClick() {\n\t\tif (!this.interactiveDisplayArea) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.fireEvent(\"display-area-click\");\n\t}\n\n\t_onCarouselNavigate(e: CustomEvent<CarouselNavigateEventDetail>) {\n\t\tconst selectedIndex = e.detail.selectedIndex,\n\t\t\titem = this._selectableItems[selectedIndex];\n\n\t\tthis.fireEvent<MediaGallerySelectionChangeEventDetail>(\"selection-change\", { item });\n\t}\n\n\tget _mainItemTabIndex() {\n\t\treturn this.interactiveDisplayArea ? 0 : undefined;\n\t}\n\n\tget _selectableItems() {\n\t\treturn this.items.filter(this._isSelectableItem);\n\t}\n\n\tget _carousel() {\n\t\treturn this.shadowRoot!.querySelector<Carousel>(\"[ui5-carousel]\");\n\t}\n\n\tget _display() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-media-gallery-display\");\n\t}\n\n\tget _mainItem() {\n\t\treturn this.shadowRoot!.querySelector<MediaGalleryItem>(\".ui5-media-gallery-display [ui5-media-gallery-item]\");\n\t}\n\n\tget _overflowBtn() {\n\t\treturn this.shadowRoot!.querySelector<Button>(\".ui5-media-gallery-overflow [ui5-button]\");\n\t}\n\n\tget _visibleItems() {\n\t\tconst visibleItemsCount = this.items.length - this._overflowSize;\n\t\treturn this.items.slice(0, visibleItemsCount);\n\t}\n\n\tget _isPhonePlatform() {\n\t\treturn isPhone();\n\t}\n\n\tget _showThumbnails() {\n\t\treturn !isPhone();\n\t}\n\n\tget _showOverflowBtn() {\n\t\treturn this._overflowSize > 0;\n\t}\n\n\tget _isPhoneSize() {\n\t\treturn this.mediaRange === \"S\";\n\t}\n\n\tget _mainItemHasWideLayout() {\n\t\treturn this._mainItem && (this._mainItem.layout === MediaGalleryItemLayout.Wide);\n\t}\n\n\tget _shouldHaveWideDisplay() {\n\t\treturn !!this._mainItemHasWideLayout\n\t\t\t&& this.showAllThumbnails\n\t\t\t&& (this.effectiveLayout === MediaGalleryLayout.Horizontal);\n\t}\n\n\tget _shouldHaveSquareDisplay() {\n\t\t// by default it should be square\n\t\t// with the only exception when a wide 9*16 item should be displayed\n\t\treturn !this._shouldHaveWideDisplay;\n\t}\n\n\tstatic get THUMBNAIL_HEIGHT() {\n\t\treturn 80; // px\n\t}\n\n\tstatic get THUMBNAIL_MARGIN() {\n\t\treturn 16; // px\n\t}\n}\n\nMediaGallery.define();\n\nexport default MediaGallery;\n\nexport type {\n\tMediaGallerySelectionChangeEventDetail,\n\tIMediaGalleryItem,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"MediaGallery.js","sourceRoot":"","sources":["../src/MediaGallery.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,cAAc,MAAM,yDAAyD,CAAC;AACrF,OAAO,aAAa,MAAM,wDAAwD,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,MAAM,MAAM,mCAAmC,CAAC;AAEvD,OAAO,QAAQ,MAAM,qCAAqC,CAAC;AAC3D,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACn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C,EAAE,IAAI,EAAE,kBAAkB,EAAE,YAAY,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC;qDACxC;AAO1C;IADC,QAAQ,EAAE;gDACS;AAOpB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;mDAC9C;AAgBvB;IANC,IAAI,CAAC;QACL,IAAI,EAAE,WAAW;QACjB,eAAe,EAAE,IAAI;QACrB,uBAAuB,EAAE,IAAI;QAC7B,SAAS,EAAE,IAAI;KACf,CAAC;2CAC+B;AAvF5B,YAAY;IAzCjB,aAAa,CAAC;QACd,GAAG,EAAE,mBAAmB;QACxB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,CAAC,eAAe,CAAC;QACzB,QAAQ,EAAE,oBAAoB;QAC9B,kBAAkB,EAAE,oBAAoB;QACxC,YAAY,EAAE;YACb,gBAAgB;YAChB,MAAM;YACN,QAAQ;SACR;KACD,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAAyC,kBAAkB,EAAE;QAClE,MAAM,EAAE;YACP;;eAEG;YACH,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;SAC3B;KACD,CAAC;IAEF;;;OAGG;;IACF,KAAK,CAAC,gBAAgB,CAAC;IAExB;;;;;OAKG;;IACF,KAAK,CAAC,oBAAoB,CAAC;GAEtB,YAAY,CAmYjB;AAED,YAAY,CAAC,MAAM,EAAE,CAAC;AAEtB,eAAe,YAAY,CAAC","sourcesContent":["import ItemNavigation from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport { isPhone } from \"@ui5/webcomponents-base/dist/Device.js\";\nimport MediaRange from \"@ui5/webcomponents-base/dist/MediaRange.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport NavigationMode from \"@ui5/webcomponents-base/dist/types/NavigationMode.js\";\nimport UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport type { CarouselNavigateEventDetail } from \"@ui5/webcomponents/dist/Carousel.js\";\nimport Carousel from \"@ui5/webcomponents/dist/Carousel.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport type { ITabbable } from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport MediaGalleryItem from \"./MediaGalleryItem.js\";\nimport MediaGalleryItemLayout from \"./types/MediaGalleryItemLayout.js\";\nimport MediaGalleryLayout from \"./types/MediaGalleryLayout.js\";\nimport MediaGalleryMenuHorizontalAlign from \"./types/MediaGalleryMenuHorizontalAlign.js\";\nimport MediaGalleryMenuVerticalAlign from \"./types/MediaGalleryMenuVerticalAlign.js\";\n\n// Styles\nimport MediaGalleryCss from \"./generated/themes/MediaGallery.css.js\";\n\n// Template\nimport MediaGalleryTemplate from \"./generated/templates/MediaGalleryTemplate.lit.js\";\n\n/**\n * Interface for components that can be slotted inside `ui5-media-gallery` as items.\n * @public\n */\ninterface IMediaGalleryItem extends HTMLElement, ITabbable {\n\tselected: boolean,\n\tdisabled: boolean,\n\tfocused: boolean,\n\tdisplayedContent: HTMLElement | null;\n\tlayout: `${MediaGalleryItemLayout}`\n}\n\ntype MediaGallerySelectionChangeEventDetail = {\n\titem: IMediaGalleryItem;\n}\n\n// The allowed number of thumbnail columns on each size\n// (relevant when `showAllThumbnails` is enabled)\nconst COLUMNS_COUNT: Record<string, number> = {\n\t\"S\": 1,\n\t\"M\": 2,\n\t\"L\": 3,\n\t\"XL\": 4,\n};\n\n/**\n * @class\n *\n * ### Overview\n *\n * The `ui5-media-gallery` component allows the user to browse through multimedia items. Currently,\n * the supported items are images and videos. The items should be defined using the `ui5-media-gallery-item`\n * component.\n *\n * The items are initially displayed as thumbnails. When the user selects a thumbnail, the corresponding item\n * is displayed in larger size.\n *\n * The component is responsive by default and adjusts the position of the menu with respect to viewport size,\n * but the application is able to further customize the layout via the provided API.\n *\n * ### Keyboard Handling\n * The `ui5-media-gallery` provides advanced keyboard handling.\n *\n * When the thumbnails menu is focused the following keyboard\n * shortcuts allow the user to navigate through the thumbnail items:\n *\n * - [UP/DOWN] - Navigates up and down the items\n * - [HOME] - Navigates to first item\n * - [END] - Navigates to the last item\n * - [SPACE/ENTER] - Select an item\n *\n * ### ES6 Module Import\n * `import \"@ui5/webcomponents-fiori/dist/MediaGallery.js\";`\n *\n * `import \"@ui5/webcomponents-fiori/dist/MediaGalleryItem.js\";`\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.1.0\n */\n@customElement({\n\ttag: \"ui5-media-gallery\",\n\trenderer: litRender,\n\tstyles: [MediaGalleryCss],\n\ttemplate: MediaGalleryTemplate,\n\tstaticAreaTemplate: MediaGalleryTemplate,\n\tdependencies: [\n\t\tMediaGalleryItem,\n\t\tButton,\n\t\tCarousel,\n\t],\n})\n\n/**\n * Fired when selection is changed by user interaction.\n * @param {HTMLElement} item the selected item.\n * @public\n */\n@event<MediaGallerySelectionChangeEventDetail>(\"selection-change\", {\n\tdetail: {\n\t\t/**\n\t\t * @public\n\t\t */\n\t\titem: { type: HTMLElement },\n\t},\n})\n\n/**\n * Fired when the thumbnails overflow button is clicked.\n * @public\n */\n@event(\"overflow-click\")\n\n/**\n * Fired when the display area is clicked.\n * The display area is the central area that contains\n * the enlarged content of the currently selected item.\n * @public\n */\n@event(\"display-area-click\")\n\nclass MediaGallery extends UI5Element {\n\t/**\n\t * If set to `true`, all thumbnails are rendered in a scrollable container.\n\t * If `false`, only up to five thumbnails are rendered, followed by\n\t * an overflow button that shows the count of the remaining thumbnails.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowAllThumbnails!: boolean;\n\n\t/**\n\t * If enabled, a `display-area-click` event is fired\n\t * when the user clicks or taps on the display area.\n\t *\n\t * The display area is the central area that contains\n\t * the enlarged content of the currently selected item.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tinteractiveDisplayArea!: boolean;\n\n\t/**\n\t * Determines the layout of the component.\n\t * @default \"Auto\"\n\t * @public\n\t */\n\t@property({ type: MediaGalleryLayout, defaultValue: MediaGalleryLayout.Auto })\n\tlayout!: `${MediaGalleryLayout}`;\n\n\t/**\n\t * Determines the horizontal alignment of the thumbnails menu\n\t * vs. the central display area.\n\t * @default \"Left\"\n\t * @public\n\t */\n\t@property({ type: MediaGalleryMenuHorizontalAlign, defaultValue: MediaGalleryMenuHorizontalAlign.Left })\n\tmenuHorizontalAlign!: `${MediaGalleryMenuHorizontalAlign}`;\n\n\t/**\n\t * Determines the vertical alignment of the thumbnails menu\n\t * vs. the central display area.\n\t * @default \"Bottom\"\n\t * @public\n\t */\n\t@property({ type: MediaGalleryMenuVerticalAlign, defaultValue: MediaGalleryMenuVerticalAlign.Bottom })\n\tmenuVerticalAlign!: `${MediaGalleryMenuVerticalAlign}`;\n\n\t/**\n\t * Determines the actual applied layout type\n\t * (esp. needed when the app did not specify a fixed layout type\n\t * but selected `Auto` layout type).\n\t * @default \"Vertical\"\n\t * @private\n\t */\n\t@property({ type: MediaGalleryLayout, defaultValue: MediaGalleryLayout.Vertical })\n\teffectiveLayout!: `${MediaGalleryLayout}`;\n\n\t/**\n\t * Defines the current media query size.\n\t * @private\n\t */\n\t@property()\n\tmediaRange!: string;\n\n\t/**\n\t * The number of items in the overflow.\n\t * @private\n\t */\n\t@property({ validator: Integer, noAttribute: true, defaultValue: 0 })\n\t_overflowSize!: number;\n\n\t/**\n\t * Defines the component items.\n\t *\n\t * **Note:** Only one selected item is allowed.\n\t *\n\t * **Note:** Use the `ui5-media-gallery-item` component to define the desired items.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\tindividualSlots: true,\n\t\tinvalidateOnChildChange: true,\n\t\t\"default\": true,\n\t})\n\titems!: Array<IMediaGalleryItem>;\n\n\t_itemNavigation: ItemNavigation;\n\t_onResize: () => void;\n\t_selectedItem?: IMediaGalleryItem;\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis._onResize = this._updateLayout.bind(this);\n\n\t\tthis._itemNavigation = new ItemNavigation(this, {\n\t\t\tnavigationMode: NavigationMode.Auto,\n\t\t\tgetItemsCallback: () => this._getFocusableItems(),\n\t\t});\n\t}\n\n\tonEnterDOM() {\n\t\t!isPhone() && ResizeHandler.register(this, this._onResize);\n\t}\n\n\tonExitDOM() {\n\t\t!isPhone() && ResizeHandler.deregister(this, this._onResize);\n\t}\n\n\tonAfterRendering() {\n\t\tthis._updateLayout();\n\t\tthis._updateSelection();\n\t}\n\n\t_updateSelection() {\n\t\tlet itemToSelect = this.items.find(item => item.selected);\n\t\tif (!itemToSelect || !this._isSelectableItem(itemToSelect)) {\n\t\t\titemToSelect = this._findSelectableItem();\n\t\t}\n\t\tif (itemToSelect && itemToSelect !== this._selectedItem) {\n\t\t\tthis._selectItem(itemToSelect);\n\t\t}\n\t}\n\n\t_isSelectableItem(this: void, item: IMediaGalleryItem) {\n\t\treturn !item.disabled && !item.hidden;\n\t}\n\n\t_findSelectableItem() {\n\t\treturn this.items.find(this._isSelectableItem);\n\t}\n\n\t_updateMediaRange(width: number) {\n\t\tthis.mediaRange = MediaRange.getCurrentRange(MediaRange.RANGESETS.RANGE_4STEPS, width);\n\t}\n\n\t_updateLayout() {\n\t\tconst rootNode = this.getDomRef()!,\n\t\t\theight = rootNode.offsetHeight,\n\t\t\twidth = rootNode.offsetWidth;\n\n\t\tif (!width || !height || isPhone()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._updateMediaRange(width);\n\t\tthis.effectiveLayout = this._infereffectiveLayout();\n\t\tthis._overflowSize = this._calculateOverflowSize(width, height);\n\n\t\tthis._toggleDisplaySquareSize(this._shouldHaveSquareDisplay);\n\t\tthis._toggleMainItem9x16size(this._shouldHaveWideDisplay);\n\t}\n\n\t_calculateOverflowSize(width: number, height: number) {\n\t\tconst marginSize = MediaGallery.THUMBNAIL_MARGIN;\n\t\tlet columnHeight,\n\t\t\tcolumnsCount;\n\n\t\tif (this.showAllThumbnails) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (this.effectiveLayout === MediaGalleryLayout.Horizontal) {\n\t\t\tcolumnHeight = height - marginSize;\n\t\t\tcolumnsCount = this.showAllThumbnails ? COLUMNS_COUNT[this.mediaRange] : 1;\n\t\t} else {\n\t\t\tcolumnHeight = width - (marginSize * 2); // column is flexed to appear as a row in this case\n\t\t\tcolumnsCount = 1;\n\t\t}\n\t\treturn this._getOverflowSize(columnHeight, columnsCount);\n\t}\n\n\t_toggleDisplaySquareSize(enable: boolean) {\n\t\tthis._display!.style.width = \"\"; // restore default width\n\n\t\tif (enable) {\n\t\t\tconst marginSize = MediaGallery.THUMBNAIL_MARGIN,\n\t\t\t\twidth = this._display!.offsetWidth;\n\n\t\t\tlet availableHeight = this.getDomRef()!.offsetHeight - (2 * marginSize);\n\t\t\tif (this.effectiveLayout === MediaGalleryLayout.Vertical) {\n\t\t\t\tavailableHeight -= (MediaGallery.THUMBNAIL_HEIGHT + marginSize);\n\t\t\t}\n\n\t\t\tif (width > availableHeight) {\n\t\t\t\t// set to square\n\t\t\t\tthis._display!.style.width = `${availableHeight}px`;\n\t\t\t}\n\t\t}\n\t}\n\n\t_toggleMainItem9x16size(enable: boolean) {\n\t\tif (!this._mainItem) {\n\t\t\treturn;\n\t\t}\n\t\tconst width = this._mainItem.offsetWidth,\n\t\t\tcontentHeight = enable ? `${(width / 16) * 9}px` : \"\";\n\n\t\tthis._mainItem.contentHeight = contentHeight;\n\t}\n\n\t_infereffectiveLayout() {\n\t\tif (this.layout === MediaGalleryLayout.Auto) {\n\t\t\treturn (this._isPhoneSize) ? MediaGalleryLayout.Vertical\n\t\t\t\t: MediaGalleryLayout.Horizontal;\n\t\t}\n\t\treturn this.layout;\n\t}\n\n\t_getMaxAllowedThumbnailsInColumn(columnHeight: number) {\n\t\tlet maxAllowedItems = Math.floor(columnHeight / MediaGallery.THUMBNAIL_HEIGHT);\n\t\tif (!this.showAllThumbnails) {\n\t\t\tmaxAllowedItems = Math.min(maxAllowedItems, 5);\n\t\t}\n\t\treturn maxAllowedItems;\n\t}\n\n\t_getOverflowSize(columnHeight: number, columnsCount: number) {\n\t\tconst maxAlowedThumbnailsInColumn = this._getMaxAllowedThumbnailsInColumn(columnHeight),\n\t\t\toverflowSize = Math.max(0, this.items.length - maxAlowedThumbnailsInColumn * columnsCount);\n\t\tif (overflowSize === this.items.length || overflowSize === 0) {\n\t\t\treturn overflowSize;\n\t\t}\n\t\treturn overflowSize + 1; // overflow 1 extra item to make room for overflow btn as well\n\t}\n\n\t_getFocusableItems() {\n\t\tif (!this._showThumbnails) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst items: Array<ITabbable> = this._visibleItems.filter(item => !item.disabled);\n\n\t\tif (this._overflowBtn) {\n\t\t\titems.push(this._overflowBtn);\n\t\t}\n\t\treturn items;\n\t}\n\n\t_selectItem(item: IMediaGalleryItem, userInteraction = false) {\n\t\tif (item === this._selectedItem) {\n\t\t\treturn;\n\t\t}\n\t\tthis._selectedItem = item;\n\n\t\tthis._updateSelectedFlag(item);\n\t\tthis._itemNavigation.setCurrentItem(item);\n\n\t\tif (userInteraction) {\n\t\t\tthis.fireEvent<MediaGallerySelectionChangeEventDetail>(\"selection-change\", { item });\n\t\t}\n\n\t\tif (isPhone()) {\n\t\t\tthis._selectItemOnPhone(item);\n\t\t} else {\n\t\t\tthis._displayContent(item);\n\t\t}\n\t}\n\n\t_updateSelectedFlag(itemToSelect: IMediaGalleryItem) {\n\t\tthis.items.forEach(next => { next.selected = false; });\n\t\titemToSelect.selected = true;\n\t}\n\n\t_selectItemOnPhone(item: IMediaGalleryItem) {\n\t\tconst selectableItemIndex = this._selectableItems.indexOf(item),\n\t\t\tcarousel = this._carousel;\n\t\tcarousel && carousel.navigateTo(selectableItemIndex);\n\t}\n\n\t_displayContent(item: IMediaGalleryItem) {\n\t\tlet clone;\n\t\tconst mainItem = this._mainItem,\n\t\t\toldContent = mainItem!.displayedContent,\n\t\t\tnewContent = item.displayedContent;\n\n\t\tmainItem!._thumbnailDesign = false;\n\t\toldContent && oldContent.remove();\n\n\t\tif (newContent) {\n\t\t\tclone = newContent.cloneNode(true);\n\t\t\tmainItem!.layout = item.layout;\n\t\t\tmainItem!.appendChild(clone);\n\t\t}\n\t}\n\n\t_onThumbnailClick(e: MouseEvent) {\n\t\tconst target = e.target as HTMLElement;\n\t\tconst item = target.closest<IMediaGalleryItem>(\"[ui5-media-gallery-item]\")!;\n\n\t\tif (item.disabled) {\n\t\t\treturn;\n\t\t}\n\t\tif (item !== this._selectedItem) {\n\t\t\tthis._selectItem(item, true /* userInteraction */);\n\t\t}\n\t}\n\n\t_onOverflowBtnClick() {\n\t\tthis.fireEvent(\"overflow-click\");\n\t}\n\n\t_onDisplayAreaClick() {\n\t\tif (!this.interactiveDisplayArea) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.fireEvent(\"display-area-click\");\n\t}\n\n\t_onCarouselNavigate(e: CustomEvent<CarouselNavigateEventDetail>) {\n\t\tconst selectedIndex = e.detail.selectedIndex,\n\t\t\titem = this._selectableItems[selectedIndex];\n\n\t\tthis.fireEvent<MediaGallerySelectionChangeEventDetail>(\"selection-change\", { item });\n\t}\n\n\tget _mainItemTabIndex() {\n\t\treturn this.interactiveDisplayArea ? 0 : undefined;\n\t}\n\n\tget _selectableItems() {\n\t\treturn this.items.filter(this._isSelectableItem);\n\t}\n\n\tget _carousel() {\n\t\treturn this.shadowRoot!.querySelector<Carousel>(\"[ui5-carousel]\");\n\t}\n\n\tget _display() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-media-gallery-display\");\n\t}\n\n\tget _mainItem() {\n\t\treturn this.shadowRoot!.querySelector<MediaGalleryItem>(\".ui5-media-gallery-display [ui5-media-gallery-item]\");\n\t}\n\n\tget _overflowBtn() {\n\t\treturn this.shadowRoot!.querySelector<Button>(\".ui5-media-gallery-overflow [ui5-button]\");\n\t}\n\n\tget _visibleItems() {\n\t\tconst visibleItemsCount = this.items.length - this._overflowSize;\n\t\treturn this.items.slice(0, visibleItemsCount);\n\t}\n\n\tget _isPhonePlatform() {\n\t\treturn isPhone();\n\t}\n\n\tget _showThumbnails() {\n\t\treturn !isPhone();\n\t}\n\n\tget _showOverflowBtn() {\n\t\treturn this._overflowSize > 0;\n\t}\n\n\tget _isPhoneSize() {\n\t\treturn this.mediaRange === \"S\";\n\t}\n\n\tget _mainItemHasWideLayout() {\n\t\treturn this._mainItem && (this._mainItem.layout === MediaGalleryItemLayout.Wide);\n\t}\n\n\tget _shouldHaveWideDisplay() {\n\t\treturn !!this._mainItemHasWideLayout\n\t\t\t&& this.showAllThumbnails\n\t\t\t&& (this.effectiveLayout === MediaGalleryLayout.Horizontal);\n\t}\n\n\tget _shouldHaveSquareDisplay() {\n\t\t// by default it should be square\n\t\t// with the only exception when a wide 9*16 item should be displayed\n\t\treturn !this._shouldHaveWideDisplay;\n\t}\n\n\tstatic get THUMBNAIL_HEIGHT() {\n\t\treturn 80; // px\n\t}\n\n\tstatic get THUMBNAIL_MARGIN() {\n\t\treturn 16; // px\n\t}\n}\n\nMediaGallery.define();\n\nexport default MediaGallery;\n\nexport type {\n\tMediaGallerySelectionChangeEventDetail,\n\tIMediaGalleryItem,\n};\n"]}
|
|
@@ -4,25 +4,21 @@ import MediaGalleryItemLayout from "./types/MediaGalleryItemLayout.js";
|
|
|
4
4
|
import type { IMediaGalleryItem } from "./MediaGallery.js";
|
|
5
5
|
/**
|
|
6
6
|
* @class
|
|
7
|
-
*
|
|
8
|
-
* The
|
|
9
|
-
*
|
|
10
|
-
* <br><br>
|
|
11
|
-
* <b>Note:</b> <code>ui5-media-gallery-item</code> is not supported when used outside of <code>ui5-media-gallery</code>.
|
|
12
|
-
* <br><br>
|
|
7
|
+
* ### Overview
|
|
8
|
+
* The `ui5-media-gallery-item` web component represents the items displayed in the
|
|
9
|
+
* `ui5-media-gallery` web component.
|
|
13
10
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
11
|
+
* **Note:** `ui5-media-gallery-item` is not supported when used outside of `ui5-media-gallery`.
|
|
12
|
+
*
|
|
13
|
+
* ### Keyboard Handling
|
|
14
|
+
* The `ui5-media-gallery` provides advanced keyboard handling.
|
|
16
15
|
* When focused, the user can use the following keyboard
|
|
17
16
|
* shortcuts in order to perform a navigation:
|
|
18
|
-
* <br>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>[SPACE/ENTER/RETURN] - Trigger <code>ui5-click</code> event</li>
|
|
21
|
-
* </ul>
|
|
22
17
|
*
|
|
23
|
-
*
|
|
24
|
-
* <code>import "@ui5/webcomponents-fiori/dist/MediaGalleryItem.js";</code> (comes with <code>ui5-media-gallery</code>)
|
|
18
|
+
* - [SPACE/ENTER/RETURN] - Trigger `ui5-click` event
|
|
25
19
|
*
|
|
20
|
+
* ### ES6 Module Import
|
|
21
|
+
* `import "@ui5/webcomponents-fiori/dist/MediaGalleryItem.js";` (comes with `ui5-media-gallery`)
|
|
26
22
|
* @constructor
|
|
27
23
|
* @extends UI5Element
|
|
28
24
|
* @public
|
|
@@ -32,27 +28,18 @@ import type { IMediaGalleryItem } from "./MediaGallery.js";
|
|
|
32
28
|
declare class MediaGalleryItem extends UI5Element implements IMediaGalleryItem {
|
|
33
29
|
/**
|
|
34
30
|
* Defines the selected state of the component.
|
|
35
|
-
*
|
|
36
31
|
* @default false
|
|
37
32
|
* @public
|
|
38
33
|
*/
|
|
39
34
|
selected: boolean;
|
|
40
35
|
/**
|
|
41
36
|
* Defines whether the component is in disabled state.
|
|
42
|
-
*
|
|
43
37
|
* @default false
|
|
44
38
|
* @public
|
|
45
39
|
*/
|
|
46
40
|
disabled: boolean;
|
|
47
41
|
/**
|
|
48
42
|
* Determines the layout of the item container.
|
|
49
|
-
* <br><br>
|
|
50
|
-
* Available options are:
|
|
51
|
-
* <ul>
|
|
52
|
-
* <li><code>Square</code></li>
|
|
53
|
-
* <li><code>Wide</code></li>
|
|
54
|
-
* </ul>
|
|
55
|
-
*
|
|
56
43
|
* @default "Square"
|
|
57
44
|
* @public
|
|
58
45
|
*/
|
|
@@ -91,13 +78,11 @@ declare class MediaGalleryItem extends UI5Element implements IMediaGalleryItem {
|
|
|
91
78
|
contentHeight: string;
|
|
92
79
|
/**
|
|
93
80
|
* Defines the content of the component.
|
|
94
|
-
*
|
|
95
81
|
* @public
|
|
96
82
|
*/
|
|
97
83
|
content: Array<HTMLElement>;
|
|
98
84
|
/**
|
|
99
85
|
* Defines the content of the thumbnail.
|
|
100
|
-
*
|
|
101
86
|
* @public
|
|
102
87
|
*/
|
|
103
88
|
thumbnail: Array<HTMLElement>;
|
package/dist/MediaGalleryItem.js
CHANGED
|
@@ -20,25 +20,21 @@ import MediaGalleryItemCss from "./generated/themes/MediaGalleryItem.css.js";
|
|
|
20
20
|
import MediaGalleryItemTemplate from "./generated/templates/MediaGalleryItemTemplate.lit.js";
|
|
21
21
|
/**
|
|
22
22
|
* @class
|
|
23
|
-
*
|
|
24
|
-
* The
|
|
25
|
-
*
|
|
26
|
-
* <br><br>
|
|
27
|
-
* <b>Note:</b> <code>ui5-media-gallery-item</code> is not supported when used outside of <code>ui5-media-gallery</code>.
|
|
28
|
-
* <br><br>
|
|
23
|
+
* ### Overview
|
|
24
|
+
* The `ui5-media-gallery-item` web component represents the items displayed in the
|
|
25
|
+
* `ui5-media-gallery` web component.
|
|
29
26
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
27
|
+
* **Note:** `ui5-media-gallery-item` is not supported when used outside of `ui5-media-gallery`.
|
|
28
|
+
*
|
|
29
|
+
* ### Keyboard Handling
|
|
30
|
+
* The `ui5-media-gallery` provides advanced keyboard handling.
|
|
32
31
|
* When focused, the user can use the following keyboard
|
|
33
32
|
* shortcuts in order to perform a navigation:
|
|
34
|
-
* <br>
|
|
35
|
-
* <ul>
|
|
36
|
-
* <li>[SPACE/ENTER/RETURN] - Trigger <code>ui5-click</code> event</li>
|
|
37
|
-
* </ul>
|
|
38
33
|
*
|
|
39
|
-
*
|
|
40
|
-
* <code>import "@ui5/webcomponents-fiori/dist/MediaGalleryItem.js";</code> (comes with <code>ui5-media-gallery</code>)
|
|
34
|
+
* - [SPACE/ENTER/RETURN] - Trigger `ui5-click` event
|
|
41
35
|
*
|
|
36
|
+
* ### ES6 Module Import
|
|
37
|
+
* `import "@ui5/webcomponents-fiori/dist/MediaGalleryItem.js";` (comes with `ui5-media-gallery`)
|
|
42
38
|
* @constructor
|
|
43
39
|
* @extends UI5Element
|
|
44
40
|
* @public
|