@openui5/sap.ui.webc.fiori 1.115.1 → 1.116.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/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +1 -7
- package/package.json +4 -4
- package/src/sap/ui/webc/fiori/.library +1 -1
- package/src/sap/ui/webc/fiori/Bar.js +1 -1
- package/src/sap/ui/webc/fiori/BarcodeScannerDialog.js +1 -1
- package/src/sap/ui/webc/fiori/DynamicSideContent.js +1 -1
- package/src/sap/ui/webc/fiori/FilterItem.js +9 -1
- package/src/sap/ui/webc/fiori/FilterItemOption.js +2 -2
- package/src/sap/ui/webc/fiori/FlexibleColumnLayout.js +3 -3
- package/src/sap/ui/webc/fiori/IllustratedMessage.js +27 -1
- package/src/sap/ui/webc/fiori/MediaGallery.js +2 -2
- package/src/sap/ui/webc/fiori/MediaGalleryItem.js +1 -1
- package/src/sap/ui/webc/fiori/NotificationAction.js +17 -1
- package/src/sap/ui/webc/fiori/NotificationListGroupItem.js +9 -2
- package/src/sap/ui/webc/fiori/NotificationListItem.js +10 -3
- package/src/sap/ui/webc/fiori/Page.js +2 -2
- package/src/sap/ui/webc/fiori/ProductSwitch.js +1 -1
- package/src/sap/ui/webc/fiori/ProductSwitchItem.js +2 -3
- package/src/sap/ui/webc/fiori/ShellBar.js +49 -1
- package/src/sap/ui/webc/fiori/ShellBarItem.js +1 -1
- package/src/sap/ui/webc/fiori/SideNavigation.js +2 -2
- package/src/sap/ui/webc/fiori/SideNavigationItem.js +11 -2
- package/src/sap/ui/webc/fiori/SideNavigationSubItem.js +10 -1
- package/src/sap/ui/webc/fiori/SortItem.js +1 -1
- package/src/sap/ui/webc/fiori/Timeline.js +2 -2
- package/src/sap/ui/webc/fiori/TimelineItem.js +1 -1
- package/src/sap/ui/webc/fiori/UploadCollection.js +2 -2
- package/src/sap/ui/webc/fiori/UploadCollectionItem.js +1 -1
- package/src/sap/ui/webc/fiori/ViewSettingsDialog.js +5 -5
- package/src/sap/ui/webc/fiori/Wizard.js +23 -4
- package/src/sap/ui/webc/fiori/WizardStep.js +1 -1
- package/src/sap/ui/webc/fiori/illustrations/AddDimensions.js +9 -0
- package/src/sap/ui/webc/fiori/illustrations/AllIllustrations.js +9 -0
- package/src/sap/ui/webc/fiori/illustrations/NoColumnsSet.js +9 -0
- package/src/sap/ui/webc/fiori/illustrations/NoDimensionsSet.js +9 -0
- package/src/sap/ui/webc/fiori/illustrations/Survey.js +9 -0
- package/src/sap/ui/webc/fiori/illustrations/UploadToCloud.js +9 -0
- package/src/sap/ui/webc/fiori/library.js +97 -17
- package/src/sap/ui/webc/fiori/thirdparty/Bar.js +47 -97
- package/src/sap/ui/webc/fiori/thirdparty/BarcodeScannerDialog.js +86 -105
- package/src/sap/ui/webc/fiori/thirdparty/DynamicSideContent.js +93 -225
- package/src/sap/ui/webc/fiori/thirdparty/FilterItem.js +19 -52
- package/src/sap/ui/webc/fiori/thirdparty/FilterItemOption.js +19 -43
- package/src/sap/ui/webc/fiori/thirdparty/FlexibleColumnLayout.js +196 -333
- package/src/sap/ui/webc/fiori/thirdparty/IllustratedMessage.js +126 -267
- package/src/sap/ui/webc/fiori/thirdparty/Interfaces.js +28 -41
- package/src/sap/ui/webc/fiori/thirdparty/MediaGallery.js +105 -236
- package/src/sap/ui/webc/fiori/thirdparty/MediaGalleryItem.js +76 -164
- package/src/sap/ui/webc/fiori/thirdparty/NotificationAction.js +51 -77
- package/src/sap/ui/webc/fiori/thirdparty/NotificationListGroupItem.js +53 -90
- package/src/sap/ui/webc/fiori/thirdparty/NotificationListItem.js +72 -146
- package/src/sap/ui/webc/fiori/thirdparty/NotificationListItemBase.js +67 -139
- package/src/sap/ui/webc/fiori/thirdparty/Page.js +42 -126
- package/src/sap/ui/webc/fiori/thirdparty/ProductSwitch.js +45 -65
- package/src/sap/ui/webc/fiori/thirdparty/ProductSwitchItem.js +61 -146
- package/src/sap/ui/webc/fiori/thirdparty/ShellBar.js +288 -418
- package/src/sap/ui/webc/fiori/thirdparty/ShellBarItem.js +41 -67
- package/src/sap/ui/webc/fiori/thirdparty/SideNavigation.js +127 -141
- package/src/sap/ui/webc/fiori/thirdparty/SideNavigationItem.js +52 -100
- package/src/sap/ui/webc/fiori/thirdparty/SideNavigationSubItem.js +30 -62
- package/src/sap/ui/webc/fiori/thirdparty/SortItem.js +19 -42
- package/src/sap/ui/webc/fiori/thirdparty/Timeline.js +53 -96
- package/src/sap/ui/webc/fiori/thirdparty/TimelineItem.js +63 -135
- package/src/sap/ui/webc/fiori/thirdparty/UploadCollection.js +111 -207
- package/src/sap/ui/webc/fiori/thirdparty/UploadCollectionItem.js +153 -268
- package/src/sap/ui/webc/fiori/thirdparty/ViewSettingsDialog.js +154 -244
- package/src/sap/ui/webc/fiori/thirdparty/Wizard.js +165 -236
- package/src/sap/ui/webc/fiori/thirdparty/WizardStep.js +27 -117
- package/src/sap/ui/webc/fiori/thirdparty/WizardTab.js +53 -137
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/Bar.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/BarcodeScannerDialog.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/DynamicSideContent.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/FlexibleColumnLayout.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/IllustratedMessage.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/InvisibleTextStyles.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/MediaGallery.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/MediaGalleryItem.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/NotificationListGroupItem.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/NotificationListItem.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/NotificationListItemBase.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/NotificationOverflowActionsPopover.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/NotificationPrioIcon.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/Page.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/ProductSwitch.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/ProductSwitchItem.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/ShellBar.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/ShellBarPopover.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/SideNavigation.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/SideNavigationPopover.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/Timeline.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/TimelineItem.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/UploadCollection.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/UploadCollectionItem.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/ViewSettingsDialog.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/Wizard.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/WizardPopover.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/WizardTab.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_belize/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_horizon/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/custom-elements.json.js +1 -0
- package/src/sap/ui/webc/fiori/thirdparty/fcl-utils/FCLLayout.js +25 -55
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_ar.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_bg.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_ca.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_cs.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_cy.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_da.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_de.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_el.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_en.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_en_GB.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_en_US_sappsd.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_en_US_saprigi.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_en_US_saptrc.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_es.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_es_MX.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_et.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_fi.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_fr.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_fr_CA.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_hi.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_hr.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_hu.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_it.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_iw.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_ja.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_kk.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_ko.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_lt.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_lv.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_ms.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_nl.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_no.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_pl.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_pt.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_pt_PT.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_ro.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_ru.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_sh.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_sk.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_sl.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_sv.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_th.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_tr.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_uk.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_vi.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_zh_CN.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/i18n/messagebundle_zh_TW.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_belize/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_horizon/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/i18n/i18n-defaults.js +104 -29
- package/src/sap/ui/webc/fiori/thirdparty/generated/js-imports/Illustrations.js +202 -0
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/BarTemplate.lit.js +3 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/BarcodeScannerDialogTemplate.lit.js +3 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/DynamicSideContentTemplate.lit.js +9 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/FlexibleColumnLayoutTemplate.lit.js +3 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/IllustratedMessageTemplate.lit.js +28 -7
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/MediaGalleryItemTemplate.lit.js +12 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/MediaGalleryTemplate.lit.js +21 -7
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/NotificationListGroupItemTemplate.lit.js +27 -9
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/NotificationListItemTemplate.lit.js +30 -10
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/NotificationOverflowActionsPopoverTemplate.lit.js +6 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/PageTemplate.lit.js +3 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ProductSwitchItemTemplate.lit.js +27 -9
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ProductSwitchTemplate.lit.js +3 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ShellBarPopoverTemplate.lit.js +9 -3
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ShellBarTemplate.lit.js +73 -24
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/SideNavigationPopoverTemplate.lit.js +18 -0
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/SideNavigationTemplate.lit.js +30 -10
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/TimelineItemTemplate.lit.js +21 -7
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/TimelineTemplate.lit.js +6 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/UploadCollectionItemTemplate.lit.js +51 -15
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/UploadCollectionTemplate.lit.js +9 -3
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ViewSettingsDialogTemplate.lit.js +48 -16
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/WizardPopoverTemplate.lit.js +6 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/WizardTabTemplate.lit.js +15 -5
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/WizardTemplate.lit.js +9 -3
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Bar.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/BarcodeScannerDialog.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/DynamicSideContent.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/FlexibleColumnLayout.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/IllustratedMessage.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/InvisibleTextStyles.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/MediaGallery.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/MediaGalleryItem.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationListGroupItem.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationListItem.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationListItemBase.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationOverflowActionsPopover.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationPrioIcon.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Page.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ProductSwitch.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ProductSwitchItem.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ShellBar.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ShellBarPopover.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/SideNavigation.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/SideNavigationPopover.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Timeline.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/TimelineItem.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/UploadCollection.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/UploadCollectionItem.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ViewSettingsDialog.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Wizard.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/WizardPopover.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/WizardTab.css.js +5 -4
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_belize/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_belize_hcb/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_belize_hcw/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_fiori_3/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_horizon/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_horizon_dark/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_horizon_exp/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +3 -2
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/AddDimensions.js +41 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/AllIllustrations.js +3 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoColumnsSet.js +41 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoDimensionsSet.js +41 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/Survey.js +41 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/UploadToCloud.js +41 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-AddDimensions.js +48 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-NoColumnsSet.js +45 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-NoDimensionsSet.js +49 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-Survey.js +32 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-UploadToCloud.js +40 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-AddDimensions.js +44 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-NoColumnsSet.js +46 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-NoDimensionsSet.js +48 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-Survey.js +31 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-UploadToCloud.js +34 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-AddDimensions.js +48 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-NoColumnsSet.js +46 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-NoDimensionsSet.js +52 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-Survey.js +42 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-UploadToCloud.js +40 -0
- package/src/sap/ui/webc/fiori/thirdparty/types/BarDesign.js +14 -26
- package/src/sap/ui/webc/fiori/thirdparty/types/FCLLayout.js +42 -56
- package/src/sap/ui/webc/fiori/thirdparty/types/IllustrationMessageSize.js +19 -27
- package/src/sap/ui/webc/fiori/thirdparty/types/IllustrationMessageType.js +128 -110
- package/src/sap/ui/webc/fiori/thirdparty/types/MediaGalleryItemLayout.js +12 -24
- package/src/sap/ui/webc/fiori/thirdparty/types/MediaGalleryLayout.js +13 -25
- package/src/sap/ui/webc/fiori/thirdparty/types/MediaGalleryMenuHorizontalAlign.js +12 -24
- package/src/sap/ui/webc/fiori/thirdparty/types/MediaGalleryMenuVerticalAlign.js +12 -24
- package/src/sap/ui/webc/fiori/thirdparty/types/PageBackgroundDesign.js +13 -27
- package/src/sap/ui/webc/fiori/thirdparty/types/SideContentFallDown.js +14 -26
- package/src/sap/ui/webc/fiori/thirdparty/types/SideContentPosition.js +12 -24
- package/src/sap/ui/webc/fiori/thirdparty/types/SideContentVisibility.js +15 -27
- package/src/sap/ui/webc/fiori/thirdparty/types/TimelineLayout.js +12 -25
- package/src/sap/ui/webc/fiori/thirdparty/types/UploadCollectionDnDMode.js +11 -25
- package/src/sap/ui/webc/fiori/thirdparty/types/UploadState.js +13 -27
- package/src/sap/ui/webc/fiori/thirdparty/types/ViewSettingsDialogMode.js +12 -25
- package/src/sap/ui/webc/fiori/thirdparty/types/WizardContentLayout.js +34 -0
- package/src/sap/ui/webc/fiori/thirdparty/upload-utils/UploadCollectionBodyDnD.js +2 -2
- package/ui5.yaml +5 -3
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/SideNavigationItemPopoverContentTemplate.lit.js +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/ui/webc/common/thirdparty/base/renderer/LitRenderer", "sap/ui/webc/common/thirdparty/base/delegate/ResizeHandler", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry", "sap/ui/webc/common/thirdparty/base/types/AnimationMode", "sap/ui/webc/common/thirdparty/base/config/AnimationMode", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/webc/main/thirdparty/StandardListItem", "sap/ui/webc/main/thirdparty/List", "sap/ui/webc/main/thirdparty/Popover", "sap/ui/webc/main/thirdparty/Button", "sap/ui/webc/main/thirdparty/types/HasPopup", "sap/ui/webc/common/thirdparty/base/i18nBundle", "sap/ui/webc/common/thirdparty/icons/search", "sap/ui/webc/common/thirdparty/icons/bell", "sap/ui/webc/common/thirdparty/icons/overflow", "sap/ui/webc/common/thirdparty/icons/grid", "./generated/
|
|
1
|
+
sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/ui/webc/common/thirdparty/base/decorators/property", "sap/ui/webc/common/thirdparty/base/decorators/slot", "sap/ui/webc/common/thirdparty/base/decorators/customElement", "sap/ui/webc/common/thirdparty/base/decorators/event", "sap/ui/webc/common/thirdparty/base/renderer/LitRenderer", "sap/ui/webc/common/thirdparty/base/delegate/ResizeHandler", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry", "sap/ui/webc/common/thirdparty/base/types/AnimationMode", "sap/ui/webc/common/thirdparty/base/config/AnimationMode", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/webc/main/thirdparty/StandardListItem", "sap/ui/webc/main/thirdparty/List", "sap/ui/webc/main/thirdparty/Popover", "sap/ui/webc/main/thirdparty/Button", "sap/ui/webc/main/thirdparty/types/HasPopup", "sap/ui/webc/common/thirdparty/base/i18nBundle", "sap/ui/webc/common/thirdparty/icons/search", "sap/ui/webc/common/thirdparty/icons/bell", "sap/ui/webc/common/thirdparty/icons/overflow", "sap/ui/webc/common/thirdparty/icons/grid", "./generated/templates/ShellBarTemplate.lit", "./generated/templates/ShellBarPopoverTemplate.lit", "./generated/themes/ShellBar.css", "./generated/themes/ShellBarPopover.css", "./generated/i18n/i18n-defaults"], function (_exports, _UI5Element, _property, _slot, _customElement, _event, _LitRenderer, _ResizeHandler, _FeaturesRegistry, _AnimationMode, _AnimationMode2, _Keys, _Render, _StandardListItem, _List, _Popover, _Button, _HasPopup, _i18nBundle, _search, _bell, _overflow, _grid, _ShellBarTemplate, _ShellBarPopoverTemplate, _ShellBar, _ShellBarPopover, _i18nDefaults) {
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(_exports, "__esModule", {
|
|
@@ -6,6 +6,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
6
6
|
});
|
|
7
7
|
_exports.default = void 0;
|
|
8
8
|
_UI5Element = _interopRequireDefault(_UI5Element);
|
|
9
|
+
_property = _interopRequireDefault(_property);
|
|
10
|
+
_slot = _interopRequireDefault(_slot);
|
|
11
|
+
_customElement = _interopRequireDefault(_customElement);
|
|
12
|
+
_event = _interopRequireDefault(_event);
|
|
9
13
|
_LitRenderer = _interopRequireDefault(_LitRenderer);
|
|
10
14
|
_ResizeHandler = _interopRequireDefault(_ResizeHandler);
|
|
11
15
|
_AnimationMode = _interopRequireDefault(_AnimationMode);
|
|
@@ -19,319 +23,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
19
23
|
_ShellBar = _interopRequireDefault(_ShellBar);
|
|
20
24
|
_ShellBarPopover = _interopRequireDefault(_ShellBarPopover);
|
|
21
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @public
|
|
30
|
-
*/
|
|
31
|
-
const metadata = {
|
|
32
|
-
tag: "ui5-shellbar",
|
|
33
|
-
languageAware: true,
|
|
34
|
-
fastNavigation: true,
|
|
35
|
-
properties: /** @lends sap.ui.webcomponents.fiori.ShellBar.prototype */{
|
|
36
|
-
/**
|
|
37
|
-
* Defines the <code>primaryTitle</code>.
|
|
38
|
-
* <br><br>
|
|
39
|
-
* <b>Note:</b> The <code>primaryTitle</code> would be hidden on S screen size (less than approx. 700px).
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @defaultvalue ""
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
primaryTitle: {
|
|
45
|
-
type: String
|
|
46
|
-
},
|
|
47
|
-
/**
|
|
48
|
-
* Defines the <code>secondaryTitle</code>.
|
|
49
|
-
* <br><br>
|
|
50
|
-
* <b>Note:</b> The <code>secondaryTitle</code> would be hidden on S and M screen sizes (less than approx. 1300px).
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @defaultvalue ""
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
secondaryTitle: {
|
|
56
|
-
type: String
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* Defines the <code>notificationsCount</code>,
|
|
60
|
-
* displayed in the notification icon top-right corner.
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @defaultvalue ""
|
|
63
|
-
* @public
|
|
64
|
-
*/
|
|
65
|
-
notificationsCount: {
|
|
66
|
-
type: String
|
|
67
|
-
},
|
|
68
|
-
/**
|
|
69
|
-
* Defines, if the notification icon would be displayed.
|
|
70
|
-
* @type {boolean}
|
|
71
|
-
* @defaultvalue false
|
|
72
|
-
* @public
|
|
73
|
-
*/
|
|
74
|
-
showNotifications: {
|
|
75
|
-
type: Boolean
|
|
76
|
-
},
|
|
77
|
-
/**
|
|
78
|
-
* Defines, if the product switch icon would be displayed.
|
|
79
|
-
* @type {boolean}
|
|
80
|
-
* @defaultvalue false
|
|
81
|
-
* @public
|
|
82
|
-
*/
|
|
83
|
-
showProductSwitch: {
|
|
84
|
-
type: Boolean
|
|
85
|
-
},
|
|
86
|
-
/**
|
|
87
|
-
* Defines, if the product CoPilot icon would be displayed.
|
|
88
|
-
* <br><b>Note:</b> By default the co-pilot is displayed as static SVG.
|
|
89
|
-
* If you need an animated co-pilot, you can import the <code>"@ui5/webcomponents-fiori/dist/features/CoPilotAnimation.js"</code> module as add-on feature.
|
|
90
|
-
* @type {boolean}
|
|
91
|
-
* @defaultvalue false
|
|
92
|
-
* @public
|
|
93
|
-
*/
|
|
94
|
-
showCoPilot: {
|
|
95
|
-
type: Boolean
|
|
96
|
-
},
|
|
97
|
-
/**
|
|
98
|
-
* An object of strings that defines several additional accessibility texts
|
|
99
|
-
* for even further customization.
|
|
100
|
-
*
|
|
101
|
-
* It supports the following fields:
|
|
102
|
-
* - <code>profileButtonTitle</code>: defines the tooltip for the profile button
|
|
103
|
-
* - <code>logoTitle</code>: defines the tooltip for the logo
|
|
104
|
-
*
|
|
105
|
-
* @type {object}
|
|
106
|
-
* @public
|
|
107
|
-
* @since 1.1.0
|
|
108
|
-
*/
|
|
109
|
-
accessibilityTexts: {
|
|
110
|
-
type: Object
|
|
111
|
-
},
|
|
112
|
-
/**
|
|
113
|
-
* @private
|
|
114
|
-
*/
|
|
115
|
-
breakpointSize: {
|
|
116
|
-
type: String
|
|
117
|
-
},
|
|
118
|
-
/**
|
|
119
|
-
* @private
|
|
120
|
-
*/
|
|
121
|
-
showSearchField: {
|
|
122
|
-
type: Boolean
|
|
123
|
-
},
|
|
124
|
-
/**
|
|
125
|
-
* @private
|
|
126
|
-
*/
|
|
127
|
-
coPilotActive: {
|
|
128
|
-
type: Boolean
|
|
129
|
-
},
|
|
130
|
-
/**
|
|
131
|
-
* @private
|
|
132
|
-
*/
|
|
133
|
-
withLogo: {
|
|
134
|
-
type: Boolean
|
|
135
|
-
},
|
|
136
|
-
_itemsInfo: {
|
|
137
|
-
type: Object
|
|
138
|
-
},
|
|
139
|
-
_header: {
|
|
140
|
-
type: Object
|
|
141
|
-
},
|
|
142
|
-
_menuPopoverItems: {
|
|
143
|
-
type: String,
|
|
144
|
-
multiple: true
|
|
145
|
-
},
|
|
146
|
-
_menuPopoverExpanded: {
|
|
147
|
-
type: Boolean,
|
|
148
|
-
noAttribute: true
|
|
149
|
-
},
|
|
150
|
-
_overflowPopoverExpanded: {
|
|
151
|
-
type: Boolean,
|
|
152
|
-
noAttribute: true
|
|
153
|
-
},
|
|
154
|
-
_fullWidthSearch: {
|
|
155
|
-
type: Boolean,
|
|
156
|
-
noAttribute: true
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
managedSlots: true,
|
|
160
|
-
slots: /** @lends sap.ui.webcomponents.fiori.ShellBar.prototype */{
|
|
161
|
-
/**
|
|
162
|
-
* Defines the <code>ui5-shellbar</code> aditional items.
|
|
163
|
-
* <br><br>
|
|
164
|
-
* <b>Note:</b>
|
|
165
|
-
* You can use the <ui5-shellbar-item></ui5-shellbar-item>.
|
|
166
|
-
*
|
|
167
|
-
* @type {sap.ui.webcomponents.fiori.IShellBarItem[]}
|
|
168
|
-
* @slot items
|
|
169
|
-
* @public
|
|
170
|
-
*/
|
|
171
|
-
"default": {
|
|
172
|
-
propertyName: "items",
|
|
173
|
-
type: HTMLElement,
|
|
174
|
-
invalidateOnChildChange: true
|
|
175
|
-
},
|
|
176
|
-
/**
|
|
177
|
-
* You can pass <code>ui5-avatar</code> to set the profile image/icon.
|
|
178
|
-
* If no profile slot is set - profile will be excluded from actions.
|
|
179
|
-
*
|
|
180
|
-
* Note: We recommend not using the <code>size</code> attribute of <code>ui5-avatar</code> because
|
|
181
|
-
* it should have specific size by design in the context of <code>ui5-shellbar</code> profile.
|
|
182
|
-
* @type {sap.ui.webcomponents.main.IAvatar}
|
|
183
|
-
* @slot
|
|
184
|
-
* @since 1.0.0-rc.6
|
|
185
|
-
* @public
|
|
186
|
-
*/
|
|
187
|
-
profile: {
|
|
188
|
-
type: HTMLElement
|
|
189
|
-
},
|
|
190
|
-
/**
|
|
191
|
-
* Defines the logo of the <code>ui5-shellbar</code>.
|
|
192
|
-
* For example, you can use <code>ui5-avatar</code> or <code>img</code> elements as logo.
|
|
193
|
-
* @type {sap.ui.webcomponents.main.IAvatar}
|
|
194
|
-
* @slot
|
|
195
|
-
* @since 1.0.0-rc.8
|
|
196
|
-
* @public
|
|
197
|
-
*/
|
|
198
|
-
logo: {
|
|
199
|
-
type: HTMLElement
|
|
200
|
-
},
|
|
201
|
-
/**
|
|
202
|
-
* Defines the items displayed in menu after a click on the primary title.
|
|
203
|
-
* <br><br>
|
|
204
|
-
* <b>Note:</b>
|
|
205
|
-
* You can use the <ui5-li></ui5-li> and its ancestors.
|
|
206
|
-
*
|
|
207
|
-
* @type {sap.ui.webcomponents.main.IListItem[]}
|
|
208
|
-
* @slot
|
|
209
|
-
* @since 0.10
|
|
210
|
-
* @public
|
|
211
|
-
*/
|
|
212
|
-
menuItems: {
|
|
213
|
-
type: HTMLElement
|
|
214
|
-
},
|
|
215
|
-
/**
|
|
216
|
-
* Defines the <code>ui5-input</code>, that will be used as a search field.
|
|
217
|
-
*
|
|
218
|
-
* @type {sap.ui.webcomponents.main.IInput}
|
|
219
|
-
* @slot
|
|
220
|
-
* @public
|
|
221
|
-
*/
|
|
222
|
-
searchField: {
|
|
223
|
-
type: HTMLElement
|
|
224
|
-
},
|
|
225
|
-
/**
|
|
226
|
-
* Defines a <code>ui5-button</code> in the bar that will be placed in the beginning.
|
|
227
|
-
* We encourage this slot to be used for a back or home button.
|
|
228
|
-
* It gets overstyled to match ShellBar's styling.
|
|
229
|
-
*
|
|
230
|
-
* @type {sap.ui.webcomponents.main.IButton}
|
|
231
|
-
* @slot
|
|
232
|
-
* @public
|
|
233
|
-
*/
|
|
234
|
-
startButton: {
|
|
235
|
-
type: HTMLElement
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
events: /** @lends sap.ui.webcomponents.fiori.ShellBar.prototype */{
|
|
239
|
-
/**
|
|
240
|
-
*
|
|
241
|
-
* Fired, when the notification icon is activated.
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
* @event sap.ui.webcomponents.fiori.ShellBar#notifications-click
|
|
245
|
-
* @allowPreventDefault
|
|
246
|
-
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
247
|
-
* @public
|
|
248
|
-
*/
|
|
249
|
-
"notifications-click": {
|
|
250
|
-
detail: {
|
|
251
|
-
targetRef: {
|
|
252
|
-
type: HTMLElement
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
/**
|
|
257
|
-
* Fired, when the profile slot is present.
|
|
258
|
-
*
|
|
259
|
-
* @event sap.ui.webcomponents.fiori.ShellBar#profile-click
|
|
260
|
-
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
261
|
-
* @public
|
|
262
|
-
*/
|
|
263
|
-
"profile-click": {
|
|
264
|
-
detail: {
|
|
265
|
-
targetRef: {
|
|
266
|
-
type: HTMLElement
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
/**
|
|
271
|
-
* Fired, when the product switch icon is activated.
|
|
272
|
-
* <b>Note:</b> You can prevent closing of overflow popover by calling <code>event.preventDefault()</code>.
|
|
273
|
-
*
|
|
274
|
-
* @event sap.ui.webcomponents.fiori.ShellBar#product-switch-click
|
|
275
|
-
* @allowPreventDefault
|
|
276
|
-
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
277
|
-
* @public
|
|
278
|
-
*/
|
|
279
|
-
"product-switch-click": {
|
|
280
|
-
detail: {
|
|
281
|
-
targetRef: {
|
|
282
|
-
type: HTMLElement
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
/**
|
|
287
|
-
* Fired, when the logo is activated.
|
|
288
|
-
*
|
|
289
|
-
* @event sap.ui.webcomponents.fiori.ShellBar#logo-click
|
|
290
|
-
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
291
|
-
* @since 0.10
|
|
292
|
-
* @public
|
|
293
|
-
*/
|
|
294
|
-
"logo-click": {
|
|
295
|
-
detail: {
|
|
296
|
-
targetRef: {
|
|
297
|
-
type: HTMLElement
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
/**
|
|
302
|
-
* Fired, when the co pilot is activated.
|
|
303
|
-
*
|
|
304
|
-
* @event sap.ui.webcomponents.fiori.ShellBar#co-pilot-click
|
|
305
|
-
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
306
|
-
* @since 0.10
|
|
307
|
-
* @public
|
|
308
|
-
*/
|
|
309
|
-
"co-pilot-click": {
|
|
310
|
-
detail: {
|
|
311
|
-
targetRef: {
|
|
312
|
-
type: HTMLElement
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
/**
|
|
317
|
-
* Fired, when a menu item is activated
|
|
318
|
-
* <b>Note:</b> You can prevent closing of overflow popover by calling <code>event.preventDefault()</code>.
|
|
319
|
-
*
|
|
320
|
-
* @event sap.ui.webcomponents.fiori.ShellBar#menu-item-click
|
|
321
|
-
* @param {HTMLElement} item DOM ref of the activated list item
|
|
322
|
-
* @since 0.10
|
|
323
|
-
* @public
|
|
324
|
-
*/
|
|
325
|
-
"menu-item-click": {
|
|
326
|
-
detail: {
|
|
327
|
-
item: {
|
|
328
|
-
type: HTMLElement
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
26
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
27
|
+
var c = arguments.length,
|
|
28
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
29
|
+
d;
|
|
30
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
31
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
333
32
|
};
|
|
334
|
-
|
|
33
|
+
var ShellBar_1;
|
|
34
|
+
const HANDLE_RESIZE_DEBOUNCE_RATE = 200; // ms
|
|
335
35
|
/**
|
|
336
36
|
* @class
|
|
337
37
|
* <h3 class="comment-api-title">Overview</h3>
|
|
@@ -374,32 +74,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
374
74
|
*
|
|
375
75
|
* @constructor
|
|
376
76
|
* @author SAP SE
|
|
377
|
-
* @alias sap.ui.
|
|
378
|
-
* @extends sap.ui.
|
|
77
|
+
* @alias sap.ui.webc.fiori.ShellBar
|
|
78
|
+
* @extends sap.ui.webc.base.UI5Element
|
|
379
79
|
* @tagname ui5-shellbar
|
|
380
|
-
* @appenddocs ShellBarItem
|
|
80
|
+
* @appenddocs sap.ui.webc.fiori.ShellBarItem
|
|
381
81
|
* @public
|
|
382
82
|
* @since 0.8.0
|
|
383
83
|
*/
|
|
384
|
-
class ShellBar extends _UI5Element.default {
|
|
385
|
-
static get metadata() {
|
|
386
|
-
return metadata;
|
|
387
|
-
}
|
|
388
|
-
static get render() {
|
|
389
|
-
return _LitRenderer.default;
|
|
390
|
-
}
|
|
391
|
-
static get template() {
|
|
392
|
-
return _ShellBarTemplate.default;
|
|
393
|
-
}
|
|
394
|
-
static get staticAreaTemplate() {
|
|
395
|
-
return _ShellBarPopoverTemplate.default;
|
|
396
|
-
}
|
|
397
|
-
static get styles() {
|
|
398
|
-
return _ShellBar.default;
|
|
399
|
-
}
|
|
400
|
-
static get staticAreaStyles() {
|
|
401
|
-
return [_ShellBarPopover.default];
|
|
402
|
-
}
|
|
84
|
+
let ShellBar = ShellBar_1 = class ShellBar extends _UI5Element.default {
|
|
403
85
|
static get FIORI_3_BREAKPOINTS() {
|
|
404
86
|
return [599, 1023, 1439, 1919, 10000];
|
|
405
87
|
}
|
|
@@ -416,23 +98,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
416
98
|
super();
|
|
417
99
|
this._itemsInfo = [];
|
|
418
100
|
this._isInitialRendering = true;
|
|
419
|
-
this._focusedItem = null;
|
|
420
|
-
|
|
421
101
|
// marks if preventDefault() is called in item's press handler
|
|
422
102
|
this._defaultItemPressPrevented = false;
|
|
423
103
|
this.menuItemsObserver = new MutationObserver(() => {
|
|
424
104
|
this._updateClonedMenuItems();
|
|
425
105
|
});
|
|
426
|
-
this.
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
menuPopover.showAt(this.shadowRoot.querySelector(".ui5-shellbar-menu-button"));
|
|
432
|
-
}
|
|
106
|
+
this._headerPress = async () => {
|
|
107
|
+
this._updateClonedMenuItems();
|
|
108
|
+
if (this.hasMenuItems) {
|
|
109
|
+
const menuPopover = await this._getMenuPopover();
|
|
110
|
+
menuPopover.showAt(this.shadowRoot.querySelector(".ui5-shellbar-menu-button"), true);
|
|
433
111
|
}
|
|
434
112
|
};
|
|
435
|
-
this._handleResize =
|
|
113
|
+
this._handleResize = () => {
|
|
436
114
|
this._debounce(async () => {
|
|
437
115
|
await this._getResponsivePopover();
|
|
438
116
|
this.overflowPopover.close();
|
|
@@ -447,10 +125,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
447
125
|
fn();
|
|
448
126
|
}, delay);
|
|
449
127
|
}
|
|
450
|
-
_menuItemPress(
|
|
128
|
+
_menuItemPress(e) {
|
|
451
129
|
this.menuPopover.close();
|
|
452
130
|
this.fireEvent("menu-item-click", {
|
|
453
|
-
item:
|
|
131
|
+
item: e.detail.selectedItems[0]
|
|
454
132
|
}, true);
|
|
455
133
|
}
|
|
456
134
|
_logoPress() {
|
|
@@ -460,27 +138,33 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
460
138
|
}
|
|
461
139
|
_menuPopoverBeforeOpen() {
|
|
462
140
|
this._menuPopoverExpanded = true;
|
|
141
|
+
if (this.menuPopover.content && this.menuPopover.content.length) {
|
|
142
|
+
this.menuPopover.content[0].focusFirstItem();
|
|
143
|
+
}
|
|
463
144
|
}
|
|
464
145
|
_menuPopoverAfterClose() {
|
|
465
146
|
this._menuPopoverExpanded = false;
|
|
466
147
|
}
|
|
467
148
|
_overflowPopoverBeforeOpen() {
|
|
468
149
|
this._overflowPopoverExpanded = true;
|
|
150
|
+
if (this.overflowPopover.content && this.overflowPopover.content.length) {
|
|
151
|
+
this.overflowPopover.content[0].focusFirstItem();
|
|
152
|
+
}
|
|
469
153
|
}
|
|
470
154
|
_overflowPopoverAfterClose() {
|
|
471
155
|
this._overflowPopoverExpanded = false;
|
|
472
156
|
}
|
|
473
|
-
_logoKeyup(
|
|
474
|
-
if ((0, _Keys.isSpace)(
|
|
157
|
+
_logoKeyup(e) {
|
|
158
|
+
if ((0, _Keys.isSpace)(e)) {
|
|
475
159
|
this._logoPress();
|
|
476
160
|
}
|
|
477
161
|
}
|
|
478
|
-
_logoKeydown(
|
|
479
|
-
if ((0, _Keys.isSpace)(
|
|
480
|
-
|
|
162
|
+
_logoKeydown(e) {
|
|
163
|
+
if ((0, _Keys.isSpace)(e)) {
|
|
164
|
+
e.preventDefault();
|
|
481
165
|
return;
|
|
482
166
|
}
|
|
483
|
-
if ((0, _Keys.isEnter)(
|
|
167
|
+
if ((0, _Keys.isEnter)(e)) {
|
|
484
168
|
this._logoPress();
|
|
485
169
|
}
|
|
486
170
|
}
|
|
@@ -492,19 +176,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
492
176
|
_coPilotClick() {
|
|
493
177
|
this._fireCoPilotClick();
|
|
494
178
|
}
|
|
495
|
-
_coPilotKeydown(
|
|
496
|
-
if ((0, _Keys.isSpace)(
|
|
179
|
+
_coPilotKeydown(e) {
|
|
180
|
+
if ((0, _Keys.isSpace)(e)) {
|
|
497
181
|
this.coPilotActive = true;
|
|
498
|
-
|
|
182
|
+
e.preventDefault();
|
|
499
183
|
return;
|
|
500
184
|
}
|
|
501
|
-
if ((0, _Keys.isEnter)(
|
|
185
|
+
if ((0, _Keys.isEnter)(e)) {
|
|
502
186
|
this.coPilotActive = true;
|
|
503
187
|
this._fireCoPilotClick();
|
|
504
188
|
}
|
|
505
189
|
}
|
|
506
|
-
_coPilotKeyup(
|
|
507
|
-
if ((0, _Keys.isSpace)(
|
|
190
|
+
_coPilotKeyup(e) {
|
|
191
|
+
if ((0, _Keys.isSpace)(e)) {
|
|
508
192
|
this._fireCoPilotClick();
|
|
509
193
|
}
|
|
510
194
|
this.coPilotActive = false;
|
|
@@ -530,11 +214,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
530
214
|
this._overflowActions();
|
|
531
215
|
this._fullWidthSearch = this._showFullWidthSearch;
|
|
532
216
|
}
|
|
533
|
-
|
|
534
217
|
/**
|
|
535
218
|
* Closes the overflow area.
|
|
536
219
|
* Useful to manually close the overflow after having suppressed automatic closing with preventDefault() of ShellbarItem's press event
|
|
537
220
|
* @public
|
|
221
|
+
* @method
|
|
222
|
+
* @name sap.ui.webc.fiori.ShellBar#closeOverflow
|
|
538
223
|
*/
|
|
539
224
|
closeOverflow() {
|
|
540
225
|
if (this.overflowPopover) {
|
|
@@ -543,16 +228,16 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
543
228
|
}
|
|
544
229
|
_handleBarBreakpoints() {
|
|
545
230
|
const width = this.getBoundingClientRect().width;
|
|
546
|
-
const breakpoints =
|
|
547
|
-
const size = breakpoints.find(bp1 => width < bp1) ||
|
|
548
|
-
const mappedSize =
|
|
231
|
+
const breakpoints = ShellBar_1.FIORI_3_BREAKPOINTS;
|
|
232
|
+
const size = breakpoints.find(bp1 => width < bp1) || ShellBar_1.FIORI_3_BREAKPOINTS[ShellBar_1.FIORI_3_BREAKPOINTS.length - 1];
|
|
233
|
+
const mappedSize = ShellBar_1.FIORI_3_BREAKPOINTS_MAP[size];
|
|
549
234
|
if (this.breakpointSize !== mappedSize) {
|
|
550
235
|
this.breakpointSize = mappedSize;
|
|
551
236
|
}
|
|
552
237
|
return mappedSize;
|
|
553
238
|
}
|
|
554
239
|
_handleSizeS() {
|
|
555
|
-
const hasIcons = this.showNotifications || this.showProductSwitch || this.searchField.length || this.items.length;
|
|
240
|
+
const hasIcons = this.showNotifications || this.showProductSwitch || !!this.searchField.length || !!this.items.length;
|
|
556
241
|
const newItems = this._getAllItems(hasIcons).map(info => {
|
|
557
242
|
const isOverflowIcon = info.classes.indexOf("ui5-shellbar-overflow-button") !== -1;
|
|
558
243
|
const isImageIcon = info.classes.indexOf("ui5-shellbar-image-button") !== -1;
|
|
@@ -575,15 +260,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
575
260
|
}
|
|
576
261
|
const elementsToOverflow = this.shadowRoot.querySelectorAll(overflowSelector);
|
|
577
262
|
const isRTL = this.effectiveDir === "rtl";
|
|
578
|
-
|
|
263
|
+
const overflowButtons = [...elementsToOverflow].filter(icon => {
|
|
579
264
|
const iconRect = icon.getBoundingClientRect();
|
|
580
265
|
if (isRTL) {
|
|
581
266
|
return iconRect.left + iconRect.width > rightContainerRect.left + rightContainerRect.width;
|
|
582
267
|
}
|
|
583
268
|
return iconRect.left < rightContainerRect.left;
|
|
584
269
|
});
|
|
585
|
-
|
|
586
|
-
const items = this._getAllItems(
|
|
270
|
+
const showOverflowButton = !!overflowButtons.length;
|
|
271
|
+
const items = this._getAllItems(showOverflowButton).filter(item => item.show);
|
|
587
272
|
const itemsByPriority = items.sort((item1, item2) => {
|
|
588
273
|
if (item1.priority > item2.priority) {
|
|
589
274
|
return 1;
|
|
@@ -594,7 +279,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
594
279
|
return 0;
|
|
595
280
|
});
|
|
596
281
|
for (let i = 0; i < itemsByPriority.length; i++) {
|
|
597
|
-
if (i <
|
|
282
|
+
if (i < overflowButtons.length) {
|
|
598
283
|
itemsByPriority[i].classes = `${itemsByPriority[i].classes} ui5-shellbar-hidden-button`;
|
|
599
284
|
itemsByPriority[i].styles = {
|
|
600
285
|
order: -1
|
|
@@ -614,7 +299,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
614
299
|
async _toggleActionPopover() {
|
|
615
300
|
const overflowButton = this.shadowRoot.querySelector(".ui5-shellbar-overflow-button");
|
|
616
301
|
const overflowPopover = await this._getOverflowPopover();
|
|
617
|
-
overflowPopover.showAt(overflowButton);
|
|
302
|
+
overflowPopover.showAt(overflowButton, true);
|
|
618
303
|
}
|
|
619
304
|
onEnterDOM() {
|
|
620
305
|
_ResizeHandler.default.register(this, this._handleResize);
|
|
@@ -625,18 +310,16 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
625
310
|
clearTimeout(this._debounceInterval);
|
|
626
311
|
this._debounceInterval = null;
|
|
627
312
|
}
|
|
628
|
-
_handleSearchIconPress(
|
|
313
|
+
_handleSearchIconPress() {
|
|
629
314
|
this.showSearchField = !this.showSearchField;
|
|
630
315
|
if (!this.showSearchField) {
|
|
631
316
|
return;
|
|
632
317
|
}
|
|
633
318
|
const input = this.searchField[0];
|
|
634
|
-
|
|
635
319
|
// update the state immediately
|
|
636
320
|
if (input) {
|
|
637
321
|
input.focused = true;
|
|
638
322
|
}
|
|
639
|
-
|
|
640
323
|
// move the focus later
|
|
641
324
|
setTimeout(() => {
|
|
642
325
|
if (input) {
|
|
@@ -644,7 +327,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
644
327
|
}
|
|
645
328
|
}, 100);
|
|
646
329
|
}
|
|
647
|
-
async _handleActionListClick(
|
|
330
|
+
async _handleActionListClick() {
|
|
648
331
|
if (!this._defaultItemPressPrevented) {
|
|
649
332
|
this.closeOverflow();
|
|
650
333
|
// wait for DOM to be updated when ui5-popover is closed, otherwise if Enter key is hold
|
|
@@ -653,28 +336,28 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
653
336
|
}
|
|
654
337
|
this._defaultItemPressPrevented = false;
|
|
655
338
|
}
|
|
656
|
-
_handleCustomActionPress(
|
|
657
|
-
const
|
|
339
|
+
_handleCustomActionPress(e) {
|
|
340
|
+
const target = e.target;
|
|
341
|
+
const refItemId = target.getAttribute("data-ui5-external-action-item-id");
|
|
658
342
|
if (refItemId) {
|
|
659
343
|
const shellbarItem = this.items.find(item => {
|
|
660
344
|
return item._id === refItemId;
|
|
661
345
|
});
|
|
662
|
-
const prevented =
|
|
663
|
-
targetRef: event.target
|
|
664
|
-
}, true);
|
|
346
|
+
const prevented = shellbarItem.fireClickEvent(e);
|
|
665
347
|
this._defaultItemPressPrevented = prevented;
|
|
666
348
|
}
|
|
667
349
|
}
|
|
668
|
-
_handleOverflowPress(
|
|
350
|
+
_handleOverflowPress() {
|
|
669
351
|
this._toggleActionPopover();
|
|
670
352
|
}
|
|
671
|
-
_handleNotificationsPress(
|
|
672
|
-
const notificationIconRef = this.shadowRoot.querySelector(".ui5-shellbar-bell-button")
|
|
353
|
+
_handleNotificationsPress(e) {
|
|
354
|
+
const notificationIconRef = this.shadowRoot.querySelector(".ui5-shellbar-bell-button"),
|
|
355
|
+
target = e.target;
|
|
673
356
|
this._defaultItemPressPrevented = !this.fireEvent("notifications-click", {
|
|
674
|
-
targetRef: notificationIconRef.classList.contains("ui5-shellbar-hidden-button") ?
|
|
357
|
+
targetRef: notificationIconRef.classList.contains("ui5-shellbar-hidden-button") ? target : notificationIconRef
|
|
675
358
|
}, true);
|
|
676
359
|
}
|
|
677
|
-
_handleProfilePress(
|
|
360
|
+
_handleProfilePress() {
|
|
678
361
|
this.fireEvent("profile-click", {
|
|
679
362
|
targetRef: this.shadowRoot.querySelector(".ui5-shellbar-image-button")
|
|
680
363
|
});
|
|
@@ -682,16 +365,17 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
682
365
|
_handleCancelButtonPress() {
|
|
683
366
|
this.showSearchField = false;
|
|
684
367
|
}
|
|
685
|
-
_handleProductSwitchPress(
|
|
686
|
-
const buttonRef = this.shadowRoot.querySelector(".ui5-shellbar-button-product-switch")
|
|
368
|
+
_handleProductSwitchPress(e) {
|
|
369
|
+
const buttonRef = this.shadowRoot.querySelector(".ui5-shellbar-button-product-switch"),
|
|
370
|
+
target = e.target;
|
|
687
371
|
this._defaultItemPressPrevented = !this.fireEvent("product-switch-click", {
|
|
688
|
-
targetRef: buttonRef.classList.contains("ui5-shellbar-hidden-button") ?
|
|
372
|
+
targetRef: buttonRef.classList.contains("ui5-shellbar-hidden-button") ? target : buttonRef
|
|
689
373
|
}, true);
|
|
690
374
|
}
|
|
691
|
-
|
|
692
375
|
/**
|
|
693
376
|
* Returns the <code>logo</code> DOM ref.
|
|
694
|
-
* @type {
|
|
377
|
+
* @type {HTMLElement}
|
|
378
|
+
* @name sap.ui.webc.fiori.ShellBar.prototype.logoDomRef
|
|
695
379
|
* @public
|
|
696
380
|
* @readonly
|
|
697
381
|
* @since 1.0.0-rc.16
|
|
@@ -699,10 +383,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
699
383
|
get logoDomRef() {
|
|
700
384
|
return this.shadowRoot.querySelector(`*[data-ui5-stable="logo"]`);
|
|
701
385
|
}
|
|
702
|
-
|
|
703
386
|
/**
|
|
704
387
|
* Returns the <code>copilot</code> DOM ref.
|
|
705
|
-
* @type {
|
|
388
|
+
* @type {HTMLElement}
|
|
389
|
+
* @name sap.ui.webc.fiori.ShellBar.prototype.copilotDomRef
|
|
706
390
|
* @public
|
|
707
391
|
* @readonly
|
|
708
392
|
* @since 1.0.0-rc.16
|
|
@@ -710,10 +394,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
710
394
|
get copilotDomRef() {
|
|
711
395
|
return this.shadowRoot.querySelector(`*[data-ui5-stable="copilot"]`);
|
|
712
396
|
}
|
|
713
|
-
|
|
714
397
|
/**
|
|
715
398
|
* Returns the <code>notifications</code> icon DOM ref.
|
|
716
|
-
* @type {
|
|
399
|
+
* @type {HTMLElement}
|
|
400
|
+
* @name sap.ui.webc.fiori.ShellBar.prototype.notificationsDomRef
|
|
717
401
|
* @public
|
|
718
402
|
* @readonly
|
|
719
403
|
* @since 1.0.0-rc.16
|
|
@@ -721,10 +405,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
721
405
|
get notificationsDomRef() {
|
|
722
406
|
return this.shadowRoot.querySelector(`*[data-ui5-stable="notifications"]`);
|
|
723
407
|
}
|
|
724
|
-
|
|
725
408
|
/**
|
|
726
409
|
* Returns the <code>overflow</code> icon DOM ref.
|
|
727
|
-
* @type {
|
|
410
|
+
* @type {HTMLElement}
|
|
411
|
+
* @name sap.ui.webc.fiori.ShellBar.prototype.overflowDomRef
|
|
728
412
|
* @public
|
|
729
413
|
* @readonly
|
|
730
414
|
* @since 1.0.0-rc.16
|
|
@@ -732,10 +416,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
732
416
|
get overflowDomRef() {
|
|
733
417
|
return this.shadowRoot.querySelector(`*[data-ui5-stable="overflow"]`);
|
|
734
418
|
}
|
|
735
|
-
|
|
736
419
|
/**
|
|
737
420
|
* Returns the <code>profile</code> icon DOM ref.
|
|
738
|
-
* @type {
|
|
421
|
+
* @type {HTMLElement}
|
|
422
|
+
* @name sap.ui.webc.fiori.ShellBar.prototype.profileDomRef
|
|
739
423
|
* @public
|
|
740
424
|
* @readonly
|
|
741
425
|
* @since 1.0.0-rc.16
|
|
@@ -743,10 +427,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
743
427
|
get profileDomRef() {
|
|
744
428
|
return this.shadowRoot.querySelector(`*[data-ui5-stable="profile"]`);
|
|
745
429
|
}
|
|
746
|
-
|
|
747
430
|
/**
|
|
748
431
|
* Returns the <code>product-switch</code> icon DOM ref.
|
|
749
|
-
* @type {
|
|
432
|
+
* @type {HTMLElement}
|
|
433
|
+
* @name sap.ui.webc.fiori.ShellBar.prototype.productSwitchDomRef
|
|
750
434
|
* @public
|
|
751
435
|
* @readonly
|
|
752
436
|
* @since 1.0.0-rc.16
|
|
@@ -754,7 +438,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
754
438
|
get productSwitchDomRef() {
|
|
755
439
|
return this.shadowRoot.querySelector(`*[data-ui5-stable="product-switch"]`);
|
|
756
440
|
}
|
|
757
|
-
|
|
758
441
|
/**
|
|
759
442
|
* Returns all items that will be placed in the right of the bar as icons / dom elements.
|
|
760
443
|
* @param {boolean} showOverflowButton Determines if overflow button should be visible (not overflowing)
|
|
@@ -773,7 +456,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
773
456
|
id: `${this._id}-item-${1}`,
|
|
774
457
|
press: this._handleSearchIconPress.bind(this),
|
|
775
458
|
show: !!this.searchField.length
|
|
776
|
-
}, ...this.items.map(
|
|
459
|
+
}, ...this.items.map(item => {
|
|
777
460
|
item._getRealDomRef = () => this.getDomRef().querySelector(`*[data-ui5-stable=${item.stableDomRef}]`);
|
|
778
461
|
return {
|
|
779
462
|
icon: item.icon,
|
|
@@ -895,7 +578,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
895
578
|
return {
|
|
896
579
|
wrapper: {
|
|
897
580
|
"ui5-shellbar-root": true,
|
|
898
|
-
"ui5-shellbar-with-searchfield": this.
|
|
581
|
+
"ui5-shellbar-with-searchfield": this.hasSearchField
|
|
899
582
|
},
|
|
900
583
|
button: {
|
|
901
584
|
"ui5-shellbar-menu-button--interactive": this.hasMenuItems,
|
|
@@ -972,19 +655,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
972
655
|
return this.menuItems.length > 0;
|
|
973
656
|
}
|
|
974
657
|
get _shellbarText() {
|
|
975
|
-
return
|
|
658
|
+
return ShellBar_1.i18nBundle.getText(_i18nDefaults.SHELLBAR_LABEL);
|
|
976
659
|
}
|
|
977
660
|
get _logoText() {
|
|
978
|
-
return this.accessibilityTexts.logoTitle ||
|
|
661
|
+
return this.accessibilityTexts.logoTitle || ShellBar_1.i18nBundle.getText(_i18nDefaults.SHELLBAR_LOGO);
|
|
979
662
|
}
|
|
980
663
|
get _copilotText() {
|
|
981
|
-
return
|
|
664
|
+
return ShellBar_1.i18nBundle.getText(_i18nDefaults.SHELLBAR_COPILOT);
|
|
982
665
|
}
|
|
983
666
|
get _notificationsText() {
|
|
984
|
-
return
|
|
667
|
+
return ShellBar_1.i18nBundle.getText(_i18nDefaults.SHELLBAR_NOTIFICATIONS, this.notificationsCount);
|
|
985
668
|
}
|
|
986
669
|
get _cancelBtnText() {
|
|
987
|
-
return
|
|
670
|
+
return ShellBar_1.i18nBundle.getText(_i18nDefaults.SHELLBAR_CANCEL);
|
|
988
671
|
}
|
|
989
672
|
get _showFullWidthSearch() {
|
|
990
673
|
const size = this._handleBarBreakpoints();
|
|
@@ -992,50 +675,237 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
|
992
675
|
return size === "S" || searchBtnHidden;
|
|
993
676
|
}
|
|
994
677
|
get _profileText() {
|
|
995
|
-
return this.accessibilityTexts.profileButtonTitle ||
|
|
678
|
+
return this.accessibilityTexts.profileButtonTitle || ShellBar_1.i18nBundle.getText(_i18nDefaults.SHELLBAR_PROFILE);
|
|
996
679
|
}
|
|
997
680
|
get _productsText() {
|
|
998
|
-
return
|
|
681
|
+
return ShellBar_1.i18nBundle.getText(_i18nDefaults.SHELLBAR_PRODUCTS);
|
|
999
682
|
}
|
|
1000
683
|
get _searchText() {
|
|
1001
|
-
return
|
|
684
|
+
return ShellBar_1.i18nBundle.getText(_i18nDefaults.SHELLBAR_SEARCH);
|
|
1002
685
|
}
|
|
1003
686
|
get _overflowText() {
|
|
1004
|
-
return
|
|
687
|
+
return ShellBar_1.i18nBundle.getText(_i18nDefaults.SHELLBAR_OVERFLOW);
|
|
1005
688
|
}
|
|
1006
689
|
get accInfo() {
|
|
1007
690
|
return {
|
|
1008
691
|
notifications: {
|
|
1009
|
-
"title": this._notificationsText
|
|
692
|
+
"title": this._notificationsText,
|
|
693
|
+
"accessibilityAttributes": {
|
|
694
|
+
hasPopup: this._notificationsHasPopup
|
|
695
|
+
}
|
|
1010
696
|
},
|
|
1011
697
|
profile: {
|
|
1012
|
-
"title": this._profileText
|
|
698
|
+
"title": this._profileText,
|
|
699
|
+
"accessibilityAttributes": {
|
|
700
|
+
hasPopup: this._profileHasPopup
|
|
701
|
+
}
|
|
1013
702
|
},
|
|
1014
703
|
products: {
|
|
1015
|
-
"title": this._productsText
|
|
704
|
+
"title": this._productsText,
|
|
705
|
+
"accessibilityAttributes": {
|
|
706
|
+
hasPopup: this._productsHasPopup
|
|
707
|
+
}
|
|
1016
708
|
},
|
|
1017
709
|
search: {
|
|
1018
710
|
"title": this._searchText,
|
|
1019
711
|
"accessibilityAttributes": {
|
|
712
|
+
hasPopup: this._searchHasPopup,
|
|
1020
713
|
expanded: this.showSearchField
|
|
1021
714
|
}
|
|
1022
715
|
},
|
|
1023
716
|
overflow: {
|
|
1024
717
|
"title": this._overflowText,
|
|
1025
718
|
"accessibilityAttributes": {
|
|
1026
|
-
hasPopup:
|
|
719
|
+
hasPopup: this._overflowHasPopup,
|
|
1027
720
|
expanded: this._overflowPopoverExpanded
|
|
1028
721
|
}
|
|
1029
722
|
}
|
|
1030
723
|
};
|
|
1031
724
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
725
|
+
get _notificationsHasPopup() {
|
|
726
|
+
const notificationsAccAttributes = this.accessibilityAttributes.notifications;
|
|
727
|
+
return notificationsAccAttributes ? notificationsAccAttributes.ariaHasPopup : null;
|
|
728
|
+
}
|
|
729
|
+
get _profileHasPopup() {
|
|
730
|
+
const profileAccAttributes = this.accessibilityAttributes.profile;
|
|
731
|
+
return profileAccAttributes ? profileAccAttributes.ariaHasPopup : null;
|
|
732
|
+
}
|
|
733
|
+
get _productsHasPopup() {
|
|
734
|
+
const productsAccAttributes = this.accessibilityAttributes.product;
|
|
735
|
+
return productsAccAttributes ? productsAccAttributes.ariaHasPopup : null;
|
|
736
|
+
}
|
|
737
|
+
get _searchHasPopup() {
|
|
738
|
+
const searcAccAttributes = this.accessibilityAttributes.search;
|
|
739
|
+
return searcAccAttributes ? searcAccAttributes.ariaHasPopup : null;
|
|
740
|
+
}
|
|
741
|
+
get _overflowHasPopup() {
|
|
742
|
+
const overflowAccAttributes = this.accessibilityAttributes.overflow;
|
|
743
|
+
return overflowAccAttributes ? overflowAccAttributes.ariaHasPopup : _HasPopup.default.Menu;
|
|
744
|
+
}
|
|
745
|
+
get accLogoRole() {
|
|
746
|
+
return this.accessibilityRoles.logoRole || "button";
|
|
1034
747
|
}
|
|
1035
748
|
static async onDefine() {
|
|
1036
|
-
|
|
749
|
+
ShellBar_1.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents-fiori");
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
__decorate([(0, _property.default)()], ShellBar.prototype, "primaryTitle", void 0);
|
|
753
|
+
__decorate([(0, _property.default)()], ShellBar.prototype, "secondaryTitle", void 0);
|
|
754
|
+
__decorate([(0, _property.default)()], ShellBar.prototype, "notificationsCount", void 0);
|
|
755
|
+
__decorate([(0, _property.default)({
|
|
756
|
+
type: Boolean
|
|
757
|
+
})], ShellBar.prototype, "showNotifications", void 0);
|
|
758
|
+
__decorate([(0, _property.default)({
|
|
759
|
+
type: Boolean
|
|
760
|
+
})], ShellBar.prototype, "showProductSwitch", void 0);
|
|
761
|
+
__decorate([(0, _property.default)({
|
|
762
|
+
type: Boolean
|
|
763
|
+
})], ShellBar.prototype, "showCoPilot", void 0);
|
|
764
|
+
__decorate([(0, _property.default)({
|
|
765
|
+
type: Boolean
|
|
766
|
+
})], ShellBar.prototype, "showSearchField", void 0);
|
|
767
|
+
__decorate([(0, _property.default)({
|
|
768
|
+
type: Object
|
|
769
|
+
})], ShellBar.prototype, "accessibilityRoles", void 0);
|
|
770
|
+
__decorate([(0, _property.default)({
|
|
771
|
+
type: Object
|
|
772
|
+
})], ShellBar.prototype, "accessibilityTexts", void 0);
|
|
773
|
+
__decorate([(0, _property.default)({
|
|
774
|
+
type: Object
|
|
775
|
+
})], ShellBar.prototype, "accessibilityAttributes", void 0);
|
|
776
|
+
__decorate([(0, _property.default)()], ShellBar.prototype, "breakpointSize", void 0);
|
|
777
|
+
__decorate([(0, _property.default)({
|
|
778
|
+
type: Boolean
|
|
779
|
+
})], ShellBar.prototype, "coPilotActive", void 0);
|
|
780
|
+
__decorate([(0, _property.default)({
|
|
781
|
+
type: Boolean
|
|
782
|
+
})], ShellBar.prototype, "withLogo", void 0);
|
|
783
|
+
__decorate([(0, _property.default)({
|
|
784
|
+
type: Object
|
|
785
|
+
})], ShellBar.prototype, "_itemsInfo", void 0);
|
|
786
|
+
__decorate([(0, _property.default)({
|
|
787
|
+
type: Object,
|
|
788
|
+
multiple: true
|
|
789
|
+
})], ShellBar.prototype, "_menuPopoverItems", void 0);
|
|
790
|
+
__decorate([(0, _property.default)({
|
|
791
|
+
type: Boolean,
|
|
792
|
+
noAttribute: true
|
|
793
|
+
})], ShellBar.prototype, "_menuPopoverExpanded", void 0);
|
|
794
|
+
__decorate([(0, _property.default)({
|
|
795
|
+
type: Boolean,
|
|
796
|
+
noAttribute: true
|
|
797
|
+
})], ShellBar.prototype, "_overflowPopoverExpanded", void 0);
|
|
798
|
+
__decorate([(0, _property.default)({
|
|
799
|
+
type: Boolean,
|
|
800
|
+
noAttribute: true
|
|
801
|
+
})], ShellBar.prototype, "_fullWidthSearch", void 0);
|
|
802
|
+
__decorate([(0, _slot.default)({
|
|
803
|
+
type: HTMLElement,
|
|
804
|
+
"default": true,
|
|
805
|
+
invalidateOnChildChange: true
|
|
806
|
+
})], ShellBar.prototype, "items", void 0);
|
|
807
|
+
__decorate([(0, _slot.default)()], ShellBar.prototype, "profile", void 0);
|
|
808
|
+
__decorate([(0, _slot.default)()], ShellBar.prototype, "logo", void 0);
|
|
809
|
+
__decorate([(0, _slot.default)()], ShellBar.prototype, "menuItems", void 0);
|
|
810
|
+
__decorate([(0, _slot.default)()], ShellBar.prototype, "searchField", void 0);
|
|
811
|
+
__decorate([(0, _slot.default)()], ShellBar.prototype, "startButton", void 0);
|
|
812
|
+
ShellBar = ShellBar_1 = __decorate([(0, _customElement.default)({
|
|
813
|
+
tag: "ui5-shellbar",
|
|
814
|
+
fastNavigation: true,
|
|
815
|
+
languageAware: true,
|
|
816
|
+
renderer: _LitRenderer.default,
|
|
817
|
+
template: _ShellBarTemplate.default,
|
|
818
|
+
staticAreaTemplate: _ShellBarPopoverTemplate.default,
|
|
819
|
+
styles: _ShellBar.default,
|
|
820
|
+
staticAreaStyles: [_ShellBarPopover.default],
|
|
821
|
+
dependencies: [_Button.default, _List.default, _Popover.default, _StandardListItem.default]
|
|
822
|
+
})
|
|
823
|
+
/**
|
|
824
|
+
*
|
|
825
|
+
* Fired, when the notification icon is activated.
|
|
826
|
+
*
|
|
827
|
+
* @event sap.ui.webc.fiori.ShellBar#notifications-click
|
|
828
|
+
* @allowPreventDefault
|
|
829
|
+
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
830
|
+
* @public
|
|
831
|
+
*/, (0, _event.default)("notifications-click", {
|
|
832
|
+
detail: {
|
|
833
|
+
targetRef: {
|
|
834
|
+
type: HTMLElement
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
})
|
|
838
|
+
/**
|
|
839
|
+
* Fired, when the profile slot is present.
|
|
840
|
+
*
|
|
841
|
+
* @event sap.ui.webc.fiori.ShellBar#profile-click
|
|
842
|
+
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
843
|
+
* @public
|
|
844
|
+
*/, (0, _event.default)("profile-click", {
|
|
845
|
+
detail: {
|
|
846
|
+
targetRef: {
|
|
847
|
+
type: HTMLElement
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
})
|
|
851
|
+
/**
|
|
852
|
+
* Fired, when the product switch icon is activated.
|
|
853
|
+
* <b>Note:</b> You can prevent closing of overflow popover by calling <code>event.preventDefault()</code>.
|
|
854
|
+
*
|
|
855
|
+
* @event sap.ui.webc.fiori.ShellBar#product-switch-click
|
|
856
|
+
* @allowPreventDefault
|
|
857
|
+
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
858
|
+
* @public
|
|
859
|
+
*/, (0, _event.default)("product-switch-click", {
|
|
860
|
+
detail: {
|
|
861
|
+
targetRef: {
|
|
862
|
+
type: HTMLElement
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
})
|
|
866
|
+
/**
|
|
867
|
+
* Fired, when the logo is activated.
|
|
868
|
+
*
|
|
869
|
+
* @event sap.ui.webc.fiori.ShellBar#logo-click
|
|
870
|
+
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
871
|
+
* @since 0.10
|
|
872
|
+
* @public
|
|
873
|
+
*/, (0, _event.default)("logo-click", {
|
|
874
|
+
detail: {
|
|
875
|
+
targetRef: {
|
|
876
|
+
type: HTMLElement
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
})
|
|
880
|
+
/**
|
|
881
|
+
* Fired, when the co pilot is activated.
|
|
882
|
+
*
|
|
883
|
+
* @event sap.ui.webc.fiori.ShellBar#co-pilot-click
|
|
884
|
+
* @param {HTMLElement} targetRef dom ref of the activated element
|
|
885
|
+
* @since 0.10
|
|
886
|
+
* @public
|
|
887
|
+
*/, (0, _event.default)("co-pilot-click", {
|
|
888
|
+
detail: {
|
|
889
|
+
targetRef: {
|
|
890
|
+
type: HTMLElement
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
})
|
|
894
|
+
/**
|
|
895
|
+
* Fired, when a menu item is activated
|
|
896
|
+
* <b>Note:</b> You can prevent closing of overflow popover by calling <code>event.preventDefault()</code>.
|
|
897
|
+
*
|
|
898
|
+
* @event sap.ui.webc.fiori.ShellBar#menu-item-click
|
|
899
|
+
* @param {HTMLElement} item DOM ref of the activated list item
|
|
900
|
+
* @since 0.10
|
|
901
|
+
* @public
|
|
902
|
+
*/, (0, _event.default)("menu-item-click", {
|
|
903
|
+
detail: {
|
|
904
|
+
item: {
|
|
905
|
+
type: HTMLElement
|
|
906
|
+
}
|
|
1037
907
|
}
|
|
1038
|
-
}
|
|
908
|
+
})], ShellBar);
|
|
1039
909
|
ShellBar.define();
|
|
1040
910
|
var _default = ShellBar;
|
|
1041
911
|
_exports.default = _default;
|