@openui5/sap.ui.webc.fiori 1.92.0 → 1.95.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 +1 -6
- package/THIRDPARTY.txt +4 -10
- package/package.json +4 -4
- package/src/sap/ui/webc/fiori/.library +1 -1
- package/src/sap/ui/webc/fiori/Bar.js +18 -10
- package/src/sap/ui/webc/fiori/BarcodeScannerDialog.js +104 -0
- package/src/sap/ui/webc/fiori/FlexibleColumnLayout.js +3 -2
- package/src/sap/ui/webc/fiori/IllustratedMessage.js +114 -0
- package/src/sap/ui/webc/fiori/NotificationAction.js +1 -1
- package/src/sap/ui/webc/fiori/NotificationListGroupItem.js +26 -14
- package/src/sap/ui/webc/fiori/NotificationListItem.js +31 -20
- package/src/sap/ui/webc/fiori/Page.js +1 -1
- package/src/sap/ui/webc/fiori/ProductSwitch.js +1 -1
- package/src/sap/ui/webc/fiori/ProductSwitchItem.js +4 -2
- package/src/sap/ui/webc/fiori/ShellBar.js +3 -3
- package/src/sap/ui/webc/fiori/ShellBarItem.js +1 -1
- package/src/sap/ui/webc/fiori/SideNavigation.js +1 -1
- package/src/sap/ui/webc/fiori/SideNavigationItem.js +1 -1
- package/src/sap/ui/webc/fiori/SideNavigationSubItem.js +1 -1
- package/src/sap/ui/webc/fiori/Timeline.js +19 -1
- package/src/sap/ui/webc/fiori/TimelineItem.js +9 -7
- package/src/sap/ui/webc/fiori/UploadCollection.js +2 -2
- package/src/sap/ui/webc/fiori/UploadCollectionItem.js +24 -16
- package/src/sap/ui/webc/fiori/ViewSettingsDialog.js +123 -0
- package/src/sap/ui/webc/fiori/Wizard.js +10 -2
- package/src/sap/ui/webc/fiori/WizardStep.js +17 -1
- package/src/sap/ui/webc/fiori/library.js +112 -3
- package/src/sap/ui/webc/fiori/thirdparty/Bar.js +2 -1
- package/src/sap/ui/webc/fiori/thirdparty/BarcodeScannerDialog.js +18997 -0
- package/src/sap/ui/webc/fiori/thirdparty/FlexibleColumnLayout.js +8 -3
- package/src/sap/ui/webc/fiori/thirdparty/IllustratedMessage.js +138 -0
- package/src/sap/ui/webc/fiori/thirdparty/NotificationListGroupItem.js +2 -2
- package/src/sap/ui/webc/fiori/thirdparty/NotificationListItem.js +26 -24
- package/src/sap/ui/webc/fiori/thirdparty/NotificationListItemBase.js +10 -5
- package/src/sap/ui/webc/fiori/thirdparty/Page.js +20 -1
- package/src/sap/ui/webc/fiori/thirdparty/ShellBar.js +18 -5
- package/src/sap/ui/webc/fiori/thirdparty/SideNavigation.js +2 -1
- package/src/sap/ui/webc/fiori/thirdparty/Timeline.js +45 -1
- package/src/sap/ui/webc/fiori/thirdparty/TimelineItem.js +29 -6
- package/src/sap/ui/webc/fiori/thirdparty/UploadCollection.js +2 -2
- package/src/sap/ui/webc/fiori/thirdparty/UploadCollectionItem.js +65 -66
- package/src/sap/ui/webc/fiori/thirdparty/ViewSettingsDialog.js +199 -0
- package/src/sap/ui/webc/fiori/thirdparty/Wizard.js +14 -4
- package/src/sap/ui/webc/fiori/thirdparty/WizardStep.js +2 -2
- package/src/sap/ui/webc/fiori/thirdparty/generated/i18n/i18n-defaults.js +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/json-imports/Themes.js +7 -7
- package/src/sap/ui/webc/fiori/thirdparty/generated/json-imports/i18n.js +47 -47
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/BarTemplate.lit.js +3 -12
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/BarcodeScannerDialogTemplate.lit.js +7 -0
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/FlexibleColumnLayoutTemplate.lit.js +3 -12
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/IllustratedMessageTemplate.lit.js +11 -0
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/NotifactionOverflowActionsPopoverTemplate.lit.js +4 -13
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/NotificationListGroupItemTemplate.lit.js +13 -22
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/NotificationListItemTemplate.lit.js +12 -21
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/PageTemplate.lit.js +3 -8
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ProductSwitchItemTemplate.lit.js +13 -22
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ProductSwitchTemplate.lit.js +3 -12
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ShellBarItemTemplate.lit.js +3 -12
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ShellBarPopoverTemplate.lit.js +5 -14
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ShellBarTemplate.lit.js +21 -29
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/SideNavigationItemPopoverContentTemplate.lit.js +4 -13
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/SideNavigationTemplate.lit.js +12 -21
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/TimelineItemTemplate.lit.js +9 -17
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/TimelineTemplate.lit.js +4 -13
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/UploadCollectionItemTemplate.lit.js +22 -31
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/UploadCollectionTemplate.lit.js +6 -15
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/ViewSettingsDialogTemplate.lit.js +7 -0
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/WizardPopoverTemplate.lit.js +4 -13
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/WizardTabTemplate.lit.js +7 -16
- package/src/sap/ui/webc/fiori/thirdparty/generated/templates/WizardTemplate.lit.js +5 -14
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/BarcodeScannerDialog.css.js +13 -0
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/IllustratedMessage.css.js +13 -0
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationListGroupItem.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/NotificationListItem.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Page.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ShellBar.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Timeline.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/TimelineItem.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/ViewSettingsDialog.css.js +13 -0
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/Wizard.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/WizardTab.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/BeforeSearch.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoActivities.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoData.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoEntries.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoMail.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoNotifications.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoSavedItems.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoSearchResults.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/NoTasks.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/UnableToLoad.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/UnableToUpload.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-BeforeSearch.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-NoActivities.js +25 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-NoData.js +17 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-NoEntries.js +25 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-NoMail.js +18 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-NoNotifications.js +21 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-NoSavedItems.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-NoSearchResults.js +22 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-NoTasks.js +25 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-UnableToLoad.js +18 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-UnableToUpload.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-BeforeSearch.js +38 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-NoActivities.js +35 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-NoData.js +30 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-NoEntries.js +39 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-NoMail.js +30 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-NoNotifications.js +43 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-NoSavedItems.js +42 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-NoSearchResults.js +22 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-NoTasks.js +29 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-UnableToLoad.js +30 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Scene-UnableToUpload.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-BeforeSearch.js +17 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-NoActivities.js +29 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-NoData.js +15 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-NoEntries.js +28 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-NoMail.js +17 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-NoNotifications.js +21 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-NoSavedItems.js +15 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-NoSearchResults.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-NoTasks.js +26 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-UnableToLoad.js +17 -0
- package/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Spot-UnableToUpload.js +17 -0
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_ar-59619ddd.js → messagebundle_ar-4986cab5.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_bg-b36e00fa.js → messagebundle_bg-7e9aa059.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_ca-a103fc34.js → messagebundle_ca-01451c6a.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_cs-d56df98c.js → messagebundle_cs-ac6c8738.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_cy-e28cac51.js → messagebundle_cy-3dfe9dd5.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_da-7f08bcaa.js → messagebundle_da-663276e4.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_de-a43e24f9.js → messagebundle_de-72e82e46.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_el-8b1bd7a2.js → messagebundle_el-c96044ad.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_en-502be1f9.js → messagebundle_en-2d504d66.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_en_GB-d28c7c2d.js → messagebundle_en_GB-c8b9808b.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_en_US_sappsd-f0f7ff12.js → messagebundle_en_US_sappsd-ff0f05eb.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_en_US_saprigi-f136d08a.js → messagebundle_en_US_saprigi-9005c49a.js} +26 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_en_US_saptrc-ea579165.js → messagebundle_en_US_saptrc-e2be9611.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_es-cf460452.js → messagebundle_es-20ceffef.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_es_MX-b588b49c.js → messagebundle_es_MX-9617bbe2.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_et-33a3c1a9.js → messagebundle_et-70cc45fe.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_fi-05999936.js → messagebundle_fi-38c6589c.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_fr-6b78c685.js → messagebundle_fr-0a9f2183.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_fr_CA-5cd1bb21.js → messagebundle_fr_CA-5401e307.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/messagebundle_hi-9aad7093.js +96 -0
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_hr-1d544b5e.js → messagebundle_hr-9a46b37c.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_hu-d9824d87.js → messagebundle_hu-94c5c8ec.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_it-590c03c0.js → messagebundle_it-594c952a.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_iw-2a4cd300.js → messagebundle_iw-3ad5f2eb.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_ja-a2be15f9.js → messagebundle_ja-ec45026f.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_kk-d1344aab.js → messagebundle_kk-9322e295.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_ko-0da72c2c.js → messagebundle_ko-64bfa5d3.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_lt-fe9461f4.js → messagebundle_lt-caf1e289.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_lv-217ab319.js → messagebundle_lv-8877dca6.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_ms-a35de2b8.js → messagebundle_ms-d3aa34d7.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_nl-9be8eb5b.js → messagebundle_nl-7653fecd.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_no-73f4a816.js → messagebundle_no-e4cf07cf.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_pl-c579e301.js → messagebundle_pl-34323862.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_pt-407551a4.js → messagebundle_pt-3c7586ed.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_pt_PT-7d09f65f.js → messagebundle_pt_PT-6101090e.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_ro-c9bda608.js → messagebundle_ro-3e1aac26.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_ru-f4dac468.js → messagebundle_ru-6fab2afc.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_sh-c66bf858.js → messagebundle_sh-59c9c475.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_sk-8df875ec.js → messagebundle_sk-3947d2b2.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_sl-b18551b8.js → messagebundle_sl-5cb9b7cc.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_sv-7db1ca43.js → messagebundle_sv-9bfc19a7.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/messagebundle_th-a6a77885.js +96 -0
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_tr-b6eee8da.js → messagebundle_tr-6f2ec772.js} +37 -2
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_uk-6fcd6591.js → messagebundle_uk-dde2e605.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_vi-db4b5291.js → messagebundle_vi-e549a9d4.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_zh_CN-6b87b448.js → messagebundle_zh_CN-fa4baf83.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/{messagebundle_zh_TW-8b6411cf.js → messagebundle_zh_TW-060ab1cb.js} +36 -1
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-68447658.js +9 -0
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-816bd805.js +9 -0
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-a596f129.js +9 -0
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-a8f6197d.js +9 -0
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-cc7a39f2.js +9 -0
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-d0336f5e.js +9 -0
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-f592e4f1.js +9 -0
- package/src/sap/ui/webc/fiori/thirdparty/types/IllustrationMessageType.js +29 -0
- package/src/sap/ui/webc/fiori/thirdparty/types/TimelineLayout.js +20 -0
- package/src/sap/ui/webc/fiori/thirdparty/messagebundle_hi-71f54fc7.js +0 -61
- package/src/sap/ui/webc/fiori/thirdparty/messagebundle_th-9445e465.js +0 -61
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-062fdbb6.js +0 -9
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-17f8bf4e.js +0 -9
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-196ef17d.js +0 -9
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-8a5a5c79.js +0 -9
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-90786b8e.js +0 -9
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-d48b31a7.js +0 -9
- package/src/sap/ui/webc/fiori/thirdparty/parameters-bundle.css-dc5c99d6.js +0 -9
|
@@ -112,6 +112,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
112
112
|
}
|
|
113
113
|
onExitDOM() {
|
|
114
114
|
ResizeHandler__default.deregister(this, this._handleResize);
|
|
115
|
+
["start", "mid", "end"].forEach(column => {
|
|
116
|
+
this[`${column}ColumnDOM`].removeEventListener("transitionend", this.columnResizeHandler);
|
|
117
|
+
});
|
|
115
118
|
}
|
|
116
119
|
onAfterRendering() {
|
|
117
120
|
if (this.initialRendering) {
|
|
@@ -177,16 +180,18 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
177
180
|
}
|
|
178
181
|
if (currentlyHidden) {
|
|
179
182
|
columnDOM.style.width = columnWidth;
|
|
180
|
-
|
|
181
|
-
columnDOM.classList.add("ui5-fcl-column--hidden");
|
|
182
|
-
}, FlexibleColumnLayout.ANIMATION_DURATION);
|
|
183
|
+
columnDOM.addEventListener("transitionend", this.columnResizeHandler);
|
|
183
184
|
return;
|
|
184
185
|
}
|
|
185
186
|
if (previouslyHidden) {
|
|
187
|
+
columnDOM.removeEventListener("transitionend", this.columnResizeHandler);
|
|
186
188
|
columnDOM.classList.remove("ui5-fcl-column--hidden");
|
|
187
189
|
columnDOM.style.width = columnWidth;
|
|
188
190
|
}
|
|
189
191
|
}
|
|
192
|
+
columnResizeHandler(event) {
|
|
193
|
+
event.target.classList.add("ui5-fcl-column--hidden");
|
|
194
|
+
}
|
|
190
195
|
nextLayout(layout, arrowsInfo = {}) {
|
|
191
196
|
if (arrowsInfo.start) {
|
|
192
197
|
return FCLLayout$1.getNextLayoutByStartArrow()[layout];
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/delegate/ResizeHandler', 'sap/ui/webc/common/thirdparty/base/asset-registries/Illustrations', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', './generated/templates/IllustratedMessageTemplate.lit', './types/IllustrationMessageType', './illustrations/BeforeSearch', './generated/themes/IllustratedMessage.css'], function (UI5Element, ResizeHandler, Illustrations, i18nBundle, litRender, IllustratedMessageTemplate_lit, IllustrationMessageType, BeforeSearch, IllustratedMessage_css) { 'use strict';
|
|
2
|
+
|
|
3
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
|
+
|
|
5
|
+
var UI5Element__default = /*#__PURE__*/_interopDefaultLegacy(UI5Element);
|
|
6
|
+
var ResizeHandler__default = /*#__PURE__*/_interopDefaultLegacy(ResizeHandler);
|
|
7
|
+
var litRender__default = /*#__PURE__*/_interopDefaultLegacy(litRender);
|
|
8
|
+
|
|
9
|
+
const ILLUSTRATION_NOT_FOUND = "ILLUSTRATION_NOT_FOUND";
|
|
10
|
+
const metadata = {
|
|
11
|
+
tag: "ui5-illustrated-message",
|
|
12
|
+
managedSlots: true,
|
|
13
|
+
properties: {
|
|
14
|
+
titleText: {
|
|
15
|
+
type: String,
|
|
16
|
+
},
|
|
17
|
+
subtitleText: {
|
|
18
|
+
type: String,
|
|
19
|
+
},
|
|
20
|
+
media: {
|
|
21
|
+
type: String,
|
|
22
|
+
},
|
|
23
|
+
invalid: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
},
|
|
26
|
+
name: {
|
|
27
|
+
type: IllustrationMessageType,
|
|
28
|
+
defaultValue: IllustrationMessageType.BeforeSearch,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
slots: {
|
|
32
|
+
"default": {
|
|
33
|
+
propertyName: "actions",
|
|
34
|
+
type: HTMLElement,
|
|
35
|
+
},
|
|
36
|
+
subtitle: {
|
|
37
|
+
type: HTMLElement,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
events: {
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
class IllustratedMessage extends UI5Element__default {
|
|
44
|
+
constructor() {
|
|
45
|
+
super();
|
|
46
|
+
this.i18nBundle = i18nBundle.getI18nBundle("@ui5/webcomponents-fiori");
|
|
47
|
+
this._handleResize = this.handleResize.bind(this);
|
|
48
|
+
}
|
|
49
|
+
static get metadata() {
|
|
50
|
+
return metadata;
|
|
51
|
+
}
|
|
52
|
+
static get render() {
|
|
53
|
+
return litRender__default;
|
|
54
|
+
}
|
|
55
|
+
static get styles() {
|
|
56
|
+
return IllustratedMessage_css;
|
|
57
|
+
}
|
|
58
|
+
static get template() {
|
|
59
|
+
return IllustratedMessageTemplate_lit;
|
|
60
|
+
}
|
|
61
|
+
static async onDefine() {
|
|
62
|
+
await i18nBundle.fetchI18nBundle("@ui5/webcomponents-fiori");
|
|
63
|
+
}
|
|
64
|
+
static get BREAKPOINTS() {
|
|
65
|
+
return {
|
|
66
|
+
DIALOG: 679,
|
|
67
|
+
SPOT: 319,
|
|
68
|
+
BASE: 259,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
static get MEDIA() {
|
|
72
|
+
return {
|
|
73
|
+
BASE: "base",
|
|
74
|
+
SPOT: "spot",
|
|
75
|
+
DIALOG: "dialog",
|
|
76
|
+
SCENE: "scene",
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
onBeforeRendering() {
|
|
80
|
+
const illustrationData = Illustrations.getIllustrationDataSync(this.name);
|
|
81
|
+
if (illustrationData === ILLUSTRATION_NOT_FOUND) {
|
|
82
|
+
this.invalid = true;
|
|
83
|
+
return console.warn(`Required illustration is not registered. You can either import the illustration as a module in order to use it e.g. "@ui5/webcomponents-fiori/dist/illustrations/${this.name}.js".`);
|
|
84
|
+
}
|
|
85
|
+
this.invalid = false;
|
|
86
|
+
this.spotSvg = illustrationData.spotSvg;
|
|
87
|
+
this.dialogSvg = illustrationData.dialogSvg;
|
|
88
|
+
this.sceneSvg = illustrationData.sceneSvg;
|
|
89
|
+
this.illustrationTitle = this.i18nBundle.getText(illustrationData.title);
|
|
90
|
+
this.illustrationSubtitle = this.i18nBundle.getText(illustrationData.subtitle);
|
|
91
|
+
}
|
|
92
|
+
onEnterDOM() {
|
|
93
|
+
ResizeHandler__default.register(this, this._handleResize);
|
|
94
|
+
}
|
|
95
|
+
onExitDOM() {
|
|
96
|
+
ResizeHandler__default.deregister(this, this._handleResize);
|
|
97
|
+
}
|
|
98
|
+
handleResize() {
|
|
99
|
+
if (this.offsetWidth <= IllustratedMessage.BREAKPOINTS.BASE) {
|
|
100
|
+
this.media = IllustratedMessage.MEDIA.BASE;
|
|
101
|
+
} else if (this.offsetWidth <= IllustratedMessage.BREAKPOINTS.SPOT) {
|
|
102
|
+
this.media = IllustratedMessage.MEDIA.SPOT;
|
|
103
|
+
} else if (this.offsetWidth <= IllustratedMessage.BREAKPOINTS.DIALOG) {
|
|
104
|
+
this.media = IllustratedMessage.MEDIA.DIALOG;
|
|
105
|
+
} else {
|
|
106
|
+
this.media = IllustratedMessage.MEDIA.SCENE;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
get effectiveIllustration() {
|
|
110
|
+
switch (this.media) {
|
|
111
|
+
case IllustratedMessage.MEDIA.SPOT:
|
|
112
|
+
return this.spotSvg;
|
|
113
|
+
case IllustratedMessage.MEDIA.DIALOG:
|
|
114
|
+
return this.dialogSvg;
|
|
115
|
+
case IllustratedMessage.MEDIA.SCENE:
|
|
116
|
+
return this.sceneSvg;
|
|
117
|
+
default:
|
|
118
|
+
return "";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
get hasFormattedSubtitle() {
|
|
122
|
+
return !!this.subtitle.length;
|
|
123
|
+
}
|
|
124
|
+
get effectiveTitleText() {
|
|
125
|
+
return this.titleText ? this.titleText : this.illustrationTitle;
|
|
126
|
+
}
|
|
127
|
+
get effectiveSubitleText() {
|
|
128
|
+
return this.subtitleText ? this.subtitleText : this.illustrationSubtitle;
|
|
129
|
+
}
|
|
130
|
+
get hasActions() {
|
|
131
|
+
return !!this.actions.length && this.media !== IllustratedMessage.MEDIA.BASE;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
IllustratedMessage.define();
|
|
135
|
+
|
|
136
|
+
return IllustratedMessage;
|
|
137
|
+
|
|
138
|
+
});
|
|
@@ -109,8 +109,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/mai
|
|
|
109
109
|
get ariaLabelledBy() {
|
|
110
110
|
const id = this._id;
|
|
111
111
|
const ids = [];
|
|
112
|
-
if (this.
|
|
113
|
-
ids.push(`${id}-
|
|
112
|
+
if (this.hasTitleText) {
|
|
113
|
+
ids.push(`${id}-title-text`);
|
|
114
114
|
}
|
|
115
115
|
ids.push(`${id}-invisibleText`);
|
|
116
116
|
return ids.join(" ");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/delegate/ResizeHandler', 'sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/main/thirdparty/types/Priority', 'sap/ui/webc/main/thirdparty/Button', 'sap/ui/webc/main/thirdparty/BusyIndicator', 'sap/ui/webc/main/thirdparty/Link', 'sap/ui/webc/main/thirdparty/Icon', 'sap/ui/webc/main/thirdparty/Popover', './NotificationListItemBase', './generated/i18n/i18n-defaults', './generated/templates/NotificationListItemTemplate.lit', './generated/themes/NotificationListItem.css'], function (Keys, i18nBundle, ResizeHandler, Device, Priority, Button, BusyIndicator, Link, Icon, Popover, NotificationListItemBase, i18nDefaults, NotificationListItemTemplate_lit, NotificationListItem_css) { 'use strict';
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/delegate/ResizeHandler', 'sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/main/thirdparty/types/Priority', 'sap/ui/webc/main/thirdparty/Button', 'sap/ui/webc/main/thirdparty/BusyIndicator', 'sap/ui/webc/main/thirdparty/Link', 'sap/ui/webc/main/thirdparty/Icon', 'sap/ui/webc/main/thirdparty/Popover', 'sap/ui/webc/main/thirdparty/types/WrappingType', './NotificationListItemBase', './generated/i18n/i18n-defaults', './generated/templates/NotificationListItemTemplate.lit', './generated/themes/NotificationListItem.css'], function (Keys, i18nBundle, ResizeHandler, Device, Priority, Button, BusyIndicator, Link, Icon, Popover, WrappingType, NotificationListItemBase, i18nDefaults, NotificationListItemTemplate_lit, NotificationListItem_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -9,6 +9,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
9
9
|
var Link__default = /*#__PURE__*/_interopDefaultLegacy(Link);
|
|
10
10
|
var Icon__default = /*#__PURE__*/_interopDefaultLegacy(Icon);
|
|
11
11
|
var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
|
|
12
|
+
var WrappingType__default = /*#__PURE__*/_interopDefaultLegacy(WrappingType);
|
|
12
13
|
|
|
13
14
|
const MAX_WRAP_HEIGHT = 32;
|
|
14
15
|
const metadata = {
|
|
@@ -16,8 +17,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
16
17
|
languageAware: true,
|
|
17
18
|
managedSlots: true,
|
|
18
19
|
properties: {
|
|
19
|
-
|
|
20
|
-
type:
|
|
20
|
+
wrappingType: {
|
|
21
|
+
type: WrappingType__default,
|
|
22
|
+
defaultValue: WrappingType__default.None,
|
|
21
23
|
},
|
|
22
24
|
_showMorePressed: {
|
|
23
25
|
type: Boolean,
|
|
@@ -47,7 +49,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
47
49
|
class NotificationListItem extends NotificationListItemBase {
|
|
48
50
|
constructor() {
|
|
49
51
|
super();
|
|
50
|
-
this.
|
|
52
|
+
this._titleTextOverflowHeight = 0;
|
|
51
53
|
this._descOverflowHeight = 0;
|
|
52
54
|
this.onResizeBind = this.onResize.bind(this);
|
|
53
55
|
}
|
|
@@ -97,7 +99,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
97
99
|
return this.i18nFioriBundle.getText(i18nDefaults.NOTIFICATION_LIST_ITEM_CLOSE_BTN_TITLE);
|
|
98
100
|
}
|
|
99
101
|
get hideShowMore() {
|
|
100
|
-
if (
|
|
102
|
+
if (this.wrappingType === WrappingType__default.None && this._showMore) {
|
|
101
103
|
return undefined;
|
|
102
104
|
}
|
|
103
105
|
return true;
|
|
@@ -105,24 +107,24 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
105
107
|
get descriptionDOM() {
|
|
106
108
|
return this.shadowRoot.querySelector(".ui5-nli-description");
|
|
107
109
|
}
|
|
108
|
-
get
|
|
109
|
-
return this.shadowRoot.querySelector(".ui5-nli-
|
|
110
|
+
get titleTextDOM() {
|
|
111
|
+
return this.shadowRoot.querySelector(".ui5-nli-title-text");
|
|
110
112
|
}
|
|
111
|
-
get
|
|
112
|
-
return this.
|
|
113
|
+
get titleTextHeight() {
|
|
114
|
+
return this.titleTextDOM.offsetHeight;
|
|
113
115
|
}
|
|
114
116
|
get descriptionHeight() {
|
|
115
117
|
return this.descriptionDOM.offsetHeight;
|
|
116
118
|
}
|
|
117
|
-
get
|
|
118
|
-
const
|
|
119
|
-
if (!
|
|
119
|
+
get titleTextOverflows() {
|
|
120
|
+
const titleText = this.titleTextDOM;
|
|
121
|
+
if (!titleText) {
|
|
120
122
|
return false;
|
|
121
123
|
}
|
|
122
124
|
if (Device.isIE()) {
|
|
123
|
-
return
|
|
125
|
+
return titleText.scrollHeight > MAX_WRAP_HEIGHT;
|
|
124
126
|
}
|
|
125
|
-
return
|
|
127
|
+
return titleText.offsetHeight < titleText.scrollHeight;
|
|
126
128
|
}
|
|
127
129
|
get descriptionOverflows() {
|
|
128
130
|
const description = this.descriptionDOM;
|
|
@@ -145,8 +147,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
145
147
|
get ariaLabelledBy() {
|
|
146
148
|
const id = this._id;
|
|
147
149
|
const ids = [];
|
|
148
|
-
if (this.
|
|
149
|
-
ids.push(`${id}-
|
|
150
|
+
if (this.hasTitleText) {
|
|
151
|
+
ids.push(`${id}-title-text`);
|
|
150
152
|
}
|
|
151
153
|
if (this.hasDesc) {
|
|
152
154
|
ids.push(`${id}-description`);
|
|
@@ -170,10 +172,10 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
170
172
|
return "";
|
|
171
173
|
}
|
|
172
174
|
get accInvisibleText() {
|
|
173
|
-
const
|
|
174
|
-
const
|
|
175
|
+
const notificationText = this.i18nFioriBundle.getText(i18nDefaults.NOTIFICATION_LIST_ITEM_TXT);
|
|
176
|
+
const readText = this.read ? this.i18nFioriBundle.getText(i18nDefaults.NOTIFICATION_LIST_ITEM_READ) : this.i18nFioriBundle.getText(i18nDefaults.NOTIFICATION_LIST_ITEM_UNREAD);
|
|
175
177
|
const priorityText = this.priorityText;
|
|
176
|
-
return `${
|
|
178
|
+
return `${notificationText} ${readText} ${priorityText}`;
|
|
177
179
|
}
|
|
178
180
|
get classes() {
|
|
179
181
|
return {
|
|
@@ -213,19 +215,19 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
213
215
|
this.fireEvent("_press", { item: this });
|
|
214
216
|
}
|
|
215
217
|
onResize() {
|
|
216
|
-
if (this.
|
|
218
|
+
if (this.wrappingType === WrappingType__default.Normal) {
|
|
217
219
|
this._showMore = false;
|
|
218
220
|
return;
|
|
219
221
|
}
|
|
220
|
-
const
|
|
222
|
+
const titleTextWouldOverflow = this.titleTextHeight > this._titleTextOverflowHeight;
|
|
221
223
|
const descWouldOverflow = this.hasDesc && this.descriptionHeight > this._descOverflowHeight;
|
|
222
|
-
const overflows =
|
|
224
|
+
const overflows = titleTextWouldOverflow || descWouldOverflow;
|
|
223
225
|
if (this._showMorePressed && overflows) {
|
|
224
226
|
this._showMore = true;
|
|
225
227
|
return;
|
|
226
228
|
}
|
|
227
|
-
if (this.
|
|
228
|
-
this.
|
|
229
|
+
if (this.titleTextOverflows || this.descriptionOverflows) {
|
|
230
|
+
this._titleTextOverflowHeight = this.titleTextHeight;
|
|
229
231
|
this._descOverflowHeight = this.hasDesc ? this.descriptionHeight : 0;
|
|
230
232
|
this._showMore = true;
|
|
231
233
|
return;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/main/thirdparty/ListItemBase', 'sap/ui/webc/main/thirdparty/types/Priority', 'sap/ui/webc/common/thirdparty/icons/decline', 'sap/ui/webc/common/thirdparty/icons/message-success', 'sap/ui/webc/common/thirdparty/icons/message-error', 'sap/ui/webc/common/thirdparty/icons/message-warning', 'sap/ui/webc/common/thirdparty/icons/overflow', './generated/templates/NotifactionOverflowActionsPopoverTemplate.lit', './generated/themes/NotifactionOverflowActionsPopover.css'], function (Keys, i18nBundle, ListItemBase, Priority, decline, messageSuccess, messageError, messageWarning, overflow, NotifactionOverflowActionsPopoverTemplate_lit, NotifactionOverflowActionsPopover_css) { 'use strict';
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/main/thirdparty/ListItemBase', 'sap/ui/webc/common/thirdparty/base/types/Integer', 'sap/ui/webc/main/thirdparty/types/Priority', 'sap/ui/webc/common/thirdparty/icons/decline', 'sap/ui/webc/common/thirdparty/icons/message-success', 'sap/ui/webc/common/thirdparty/icons/message-error', 'sap/ui/webc/common/thirdparty/icons/message-warning', 'sap/ui/webc/common/thirdparty/icons/overflow', './generated/templates/NotifactionOverflowActionsPopoverTemplate.lit', './generated/themes/NotifactionOverflowActionsPopover.css'], function (Keys, i18nBundle, ListItemBase, Integer, Priority, decline, messageSuccess, messageError, messageWarning, overflow, NotifactionOverflowActionsPopoverTemplate_lit, NotifactionOverflowActionsPopover_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
5
5
|
var ListItemBase__default = /*#__PURE__*/_interopDefaultLegacy(ListItemBase);
|
|
6
|
+
var Integer__default = /*#__PURE__*/_interopDefaultLegacy(Integer);
|
|
6
7
|
var Priority__default = /*#__PURE__*/_interopDefaultLegacy(Priority);
|
|
7
8
|
|
|
8
9
|
const metadata = {
|
|
9
10
|
managedSlots: true,
|
|
10
11
|
properties: {
|
|
11
|
-
|
|
12
|
+
titleText: {
|
|
12
13
|
type: String,
|
|
13
14
|
},
|
|
14
15
|
priority: {
|
|
@@ -24,6 +25,10 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
24
25
|
busy: {
|
|
25
26
|
type: Boolean,
|
|
26
27
|
},
|
|
28
|
+
busyDelay: {
|
|
29
|
+
type: Integer__default,
|
|
30
|
+
defaultValue: 1000,
|
|
31
|
+
},
|
|
27
32
|
},
|
|
28
33
|
slots: {
|
|
29
34
|
actions: {
|
|
@@ -55,8 +60,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
55
60
|
"Low": "message-success",
|
|
56
61
|
};
|
|
57
62
|
}
|
|
58
|
-
get
|
|
59
|
-
return !!this.
|
|
63
|
+
get hasTitleText() {
|
|
64
|
+
return !!this.titleText.length;
|
|
60
65
|
}
|
|
61
66
|
get hasPriority() {
|
|
62
67
|
return this.priority !== Priority__default.None;
|
|
@@ -123,7 +128,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/th
|
|
|
123
128
|
}
|
|
124
129
|
async openOverflow() {
|
|
125
130
|
const overflowPopover = await this.getOverflowPopover();
|
|
126
|
-
overflowPopover.
|
|
131
|
+
overflowPopover.showAt(this.overflowButtonDOM);
|
|
127
132
|
}
|
|
128
133
|
async closeOverflow() {
|
|
129
134
|
const overflowPopover = await this.getOverflowPopover();
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', './types/PageBackgroundDesign', './generated/templates/PageTemplate.lit', './generated/themes/Page.css'], function (UI5Element, litRender, PageBackgroundDesign, PageTemplate_lit, Page_css) { 'use strict';
|
|
1
|
+
sap.ui.define(['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/MediaRange', './types/PageBackgroundDesign', './generated/templates/PageTemplate.lit', './generated/themes/Page.css'], function (UI5Element, litRender, ResizeHandler, MediaRange, PageBackgroundDesign, PageTemplate_lit, Page_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
5
5
|
var UI5Element__default = /*#__PURE__*/_interopDefaultLegacy(UI5Element);
|
|
6
6
|
var litRender__default = /*#__PURE__*/_interopDefaultLegacy(litRender);
|
|
7
|
+
var ResizeHandler__default = /*#__PURE__*/_interopDefaultLegacy(ResizeHandler);
|
|
8
|
+
var MediaRange__default = /*#__PURE__*/_interopDefaultLegacy(MediaRange);
|
|
7
9
|
|
|
8
10
|
const metadata = {
|
|
9
11
|
tag: "ui5-page",
|
|
@@ -23,6 +25,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
23
25
|
hideFooter: {
|
|
24
26
|
type: Boolean,
|
|
25
27
|
},
|
|
28
|
+
mediaRange: {
|
|
29
|
+
type: String,
|
|
30
|
+
},
|
|
26
31
|
},
|
|
27
32
|
slots: {
|
|
28
33
|
header: {
|
|
@@ -52,6 +57,19 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
52
57
|
static get template() {
|
|
53
58
|
return PageTemplate_lit;
|
|
54
59
|
}
|
|
60
|
+
constructor() {
|
|
61
|
+
super();
|
|
62
|
+
this._updateMediaRange = this.updateMediaRange.bind(this);
|
|
63
|
+
}
|
|
64
|
+
onEnterDOM() {
|
|
65
|
+
ResizeHandler__default.register(this, this._updateMediaRange);
|
|
66
|
+
}
|
|
67
|
+
onExitDOM() {
|
|
68
|
+
ResizeHandler__default.deregister(this, this._updateMediaRange);
|
|
69
|
+
}
|
|
70
|
+
updateMediaRange() {
|
|
71
|
+
this.mediaRange = MediaRange__default.getCurrentRange(MediaRange__default.RANGESETS.RANGE_4STEPS, this.getDomRef().offsetWidth);
|
|
72
|
+
}
|
|
55
73
|
get _contentBottom() {
|
|
56
74
|
return !this.floatingFooter && !this.hideFooter ? "2.75rem" : "0";
|
|
57
75
|
}
|
|
@@ -68,6 +86,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
68
86
|
"bottom": this.footer.length && this._contentBottom,
|
|
69
87
|
"top": this._contentTop,
|
|
70
88
|
},
|
|
89
|
+
footer: {},
|
|
71
90
|
};
|
|
72
91
|
}
|
|
73
92
|
}
|
|
@@ -11,6 +11,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
11
11
|
var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
|
|
12
12
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
13
13
|
|
|
14
|
+
const HANDLE_RESIZE_DEBOUNCE_RATE = 200;
|
|
14
15
|
const metadata = {
|
|
15
16
|
tag: "ui5-shellbar",
|
|
16
17
|
languageAware: true,
|
|
@@ -183,17 +184,26 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
183
184
|
this._updateClonedMenuItems();
|
|
184
185
|
if (this.hasMenuItems) {
|
|
185
186
|
const menuPopover = await this._getMenuPopover();
|
|
186
|
-
menuPopover.
|
|
187
|
+
menuPopover.showAt(this.shadowRoot.querySelector(".ui5-shellbar-menu-button"));
|
|
187
188
|
}
|
|
188
189
|
},
|
|
189
190
|
};
|
|
190
191
|
this._handleResize = async event => {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
this._debounce(async () => {
|
|
193
|
+
await this._getResponsivePopover();
|
|
194
|
+
this.overflowPopover.close();
|
|
195
|
+
this._overflowActions();
|
|
196
|
+
}, HANDLE_RESIZE_DEBOUNCE_RATE);
|
|
194
197
|
};
|
|
195
198
|
this.i18nBundle = i18nBundle.getI18nBundle("@ui5/webcomponents-fiori");
|
|
196
199
|
}
|
|
200
|
+
_debounce(fn, delay) {
|
|
201
|
+
clearTimeout(this._debounceInterval);
|
|
202
|
+
this._debounceInterval = setTimeout(() => {
|
|
203
|
+
this._debounceInterval = null;
|
|
204
|
+
fn();
|
|
205
|
+
}, delay);
|
|
206
|
+
}
|
|
197
207
|
_menuItemPress(event) {
|
|
198
208
|
this.menuPopover.close();
|
|
199
209
|
this.fireEvent("menu-item-click", {
|
|
@@ -348,7 +358,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
348
358
|
}
|
|
349
359
|
_toggleActionPopover() {
|
|
350
360
|
const overflowButton = this.shadowRoot.querySelector(".ui5-shellbar-overflow-button");
|
|
351
|
-
this.overflowPopover.
|
|
361
|
+
this.overflowPopover.showAt(overflowButton);
|
|
352
362
|
}
|
|
353
363
|
onEnterDOM() {
|
|
354
364
|
ResizeHandler__default.register(this, this._handleResize);
|
|
@@ -356,6 +366,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
356
366
|
onExitDOM() {
|
|
357
367
|
this.menuItemsObserver.disconnect();
|
|
358
368
|
ResizeHandler__default.deregister(this, this._handleResize);
|
|
369
|
+
clearTimeout(this._debounceInterval);
|
|
370
|
+
this._debounceInterval = null;
|
|
359
371
|
}
|
|
360
372
|
_handleSearchIconPress(event) {
|
|
361
373
|
this.showSearchField = !this.showSearchField;
|
|
@@ -536,6 +548,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
536
548
|
"ui5-shellbar-menu-button--interactive": this.hasMenuItems,
|
|
537
549
|
"ui5-shellbar-menu-button": true,
|
|
538
550
|
},
|
|
551
|
+
title: {},
|
|
539
552
|
items: {
|
|
540
553
|
notification: {
|
|
541
554
|
"ui5-shellbar-hidden-button": this.isIconHidden("bell"),
|
|
@@ -120,6 +120,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
120
120
|
handleListItemClick(event) {
|
|
121
121
|
const listItem = event.detail.item;
|
|
122
122
|
const item = listItem.associatedItem;
|
|
123
|
+
item.fireEvent("click");
|
|
123
124
|
if (item.selected) {
|
|
124
125
|
return;
|
|
125
126
|
}
|
|
@@ -131,7 +132,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
131
132
|
}
|
|
132
133
|
async openPicker(opener) {
|
|
133
134
|
const responsivePopover = await this.getPicker();
|
|
134
|
-
responsivePopover.
|
|
135
|
+
responsivePopover.showAt(opener);
|
|
135
136
|
}
|
|
136
137
|
async closePicker(opener) {
|
|
137
138
|
const responsivePopover = await this.getPicker();
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', 'sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation', './generated/templates/TimelineTemplate.lit', './generated/i18n/i18n-defaults', './TimelineItem', './generated/themes/Timeline.css'], function (UI5Element, i18nBundle, litRender, ItemNavigation, TimelineTemplate_lit, i18nDefaults, TimelineItem, Timeline_css) { 'use strict';
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation', 'sap/ui/webc/common/thirdparty/base/types/NavigationMode', './generated/templates/TimelineTemplate.lit', './generated/i18n/i18n-defaults', './TimelineItem', './generated/themes/Timeline.css', './types/TimelineLayout'], function (UI5Element, i18nBundle, litRender, Keys, ItemNavigation, NavigationMode, TimelineTemplate_lit, i18nDefaults, TimelineItem, Timeline_css, TimelineLayout) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
5
5
|
var UI5Element__default = /*#__PURE__*/_interopDefaultLegacy(UI5Element);
|
|
6
6
|
var litRender__default = /*#__PURE__*/_interopDefaultLegacy(litRender);
|
|
7
7
|
var ItemNavigation__default = /*#__PURE__*/_interopDefaultLegacy(ItemNavigation);
|
|
8
|
+
var NavigationMode__default = /*#__PURE__*/_interopDefaultLegacy(NavigationMode);
|
|
8
9
|
|
|
10
|
+
const SHORT_LINE_WIDTH = "ShortLineWidth";
|
|
11
|
+
const LARGE_LINE_WIDTH = "LargeLineWidth";
|
|
9
12
|
const metadata = {
|
|
10
13
|
tag: "ui5-timeline",
|
|
11
14
|
languageAware: true,
|
|
12
15
|
managedSlots: true,
|
|
16
|
+
properties: {
|
|
17
|
+
layout: {
|
|
18
|
+
type: TimelineLayout,
|
|
19
|
+
defaultValue: TimelineLayout.Vertical,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
13
22
|
slots: {
|
|
14
23
|
"default": {
|
|
15
24
|
propertyName: "items",
|
|
@@ -51,6 +60,41 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
51
60
|
const target = event.target;
|
|
52
61
|
this._itemNavigation.setCurrentItem(target);
|
|
53
62
|
}
|
|
63
|
+
onBeforeRendering() {
|
|
64
|
+
this._itemNavigation.navigationMode = this.layout === TimelineLayout.Horizontal ? NavigationMode__default.Horizontal : NavigationMode__default.Vertical;
|
|
65
|
+
for (let i = 0; i < this.items.length; i++) {
|
|
66
|
+
this.items[i].layout = this.layout;
|
|
67
|
+
if (this.items[i + 1] && !!this.items[i + 1].icon) {
|
|
68
|
+
this.items[i]._lineWidth = SHORT_LINE_WIDTH;
|
|
69
|
+
} else if (this.items[i].icon && this.items[i + 1] && !this.items[i + 1].icon) {
|
|
70
|
+
this.items[i]._lineWidth = LARGE_LINE_WIDTH;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
_onkeydown(event) {
|
|
75
|
+
if (Keys.isTabNext(event)) {
|
|
76
|
+
if (!event.target.nameClickable || event.isMarked === "link") {
|
|
77
|
+
this._handleTabNextOrPrevious(event, Keys.isTabNext(event));
|
|
78
|
+
}
|
|
79
|
+
} else if (Keys.isTabPrevious(event)) {
|
|
80
|
+
this._handleTabNextOrPrevious(event);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
_handleTabNextOrPrevious(event, isNext) {
|
|
84
|
+
const nextTargetIndex = isNext ? this.items.indexOf(event.target) + 1 : this.items.indexOf(event.target) - 1;
|
|
85
|
+
const nextTarget = this.items[nextTargetIndex];
|
|
86
|
+
if (!nextTarget) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (nextTarget.nameClickable && !isNext) {
|
|
90
|
+
event.preventDefault();
|
|
91
|
+
nextTarget.shadowRoot.querySelector("[ui5-link]").focus();
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
event.preventDefault();
|
|
95
|
+
nextTarget.focus();
|
|
96
|
+
this._itemNavigation.setCurrentItem(nextTarget);
|
|
97
|
+
}
|
|
54
98
|
}
|
|
55
99
|
Timeline.define();
|
|
56
100
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', 'sap/ui/webc/main/thirdparty/Icon', 'sap/ui/webc/main/thirdparty/Link', './generated/templates/TimelineItemTemplate.lit', './generated/themes/TimelineItem.css'], function (UI5Element, litRender, Icon, Link, TimelineItemTemplate_lit, TimelineItem_css) { 'use strict';
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', 'sap/ui/webc/main/thirdparty/Icon', 'sap/ui/webc/main/thirdparty/Link', './generated/templates/TimelineItemTemplate.lit', './types/TimelineLayout', './generated/themes/TimelineItem.css'], function (UI5Element, litRender, Icon, Link, TimelineItemTemplate_lit, TimelineLayout, TimelineItem_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -7,6 +7,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
7
7
|
var Icon__default = /*#__PURE__*/_interopDefaultLegacy(Icon);
|
|
8
8
|
var Link__default = /*#__PURE__*/_interopDefaultLegacy(Link);
|
|
9
9
|
|
|
10
|
+
const SHORT_LINE_WIDTH = "ShortLineWidth";
|
|
11
|
+
const LARGE_LINE_WIDTH = "LargeLineWidth";
|
|
10
12
|
const metadata = {
|
|
11
13
|
tag: "ui5-timeline-item",
|
|
12
14
|
slots: {
|
|
@@ -18,10 +20,10 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
18
20
|
icon: {
|
|
19
21
|
type: String,
|
|
20
22
|
},
|
|
21
|
-
|
|
23
|
+
name: {
|
|
22
24
|
type: String,
|
|
23
25
|
},
|
|
24
|
-
|
|
26
|
+
nameClickable: {
|
|
25
27
|
type: Boolean,
|
|
26
28
|
},
|
|
27
29
|
titleText: {
|
|
@@ -35,9 +37,16 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
35
37
|
defaultValue: "-1",
|
|
36
38
|
noAttribute: true,
|
|
37
39
|
},
|
|
40
|
+
layout: {
|
|
41
|
+
type: TimelineLayout,
|
|
42
|
+
defaultvalue: TimelineLayout.Vertical,
|
|
43
|
+
},
|
|
44
|
+
_lineWidth: {
|
|
45
|
+
type: String,
|
|
46
|
+
},
|
|
38
47
|
},
|
|
39
48
|
events: {
|
|
40
|
-
"
|
|
49
|
+
"name-click": {},
|
|
41
50
|
},
|
|
42
51
|
};
|
|
43
52
|
class TimelineItem extends UI5Element__default {
|
|
@@ -56,8 +65,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
56
65
|
constructor() {
|
|
57
66
|
super();
|
|
58
67
|
}
|
|
59
|
-
|
|
60
|
-
this.fireEvent("
|
|
68
|
+
onNamePress() {
|
|
69
|
+
this.fireEvent("name-click", {});
|
|
61
70
|
}
|
|
62
71
|
static get dependencies() {
|
|
63
72
|
return [
|
|
@@ -65,6 +74,20 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
65
74
|
Link__default,
|
|
66
75
|
];
|
|
67
76
|
}
|
|
77
|
+
get classes() {
|
|
78
|
+
return {
|
|
79
|
+
indicator: {
|
|
80
|
+
"ui5-tli-indicator": true,
|
|
81
|
+
"ui5-tli-indicator-short-line": this._lineWidth === SHORT_LINE_WIDTH,
|
|
82
|
+
"ui5-tli-indicator-large-line": this._lineWidth === LARGE_LINE_WIDTH,
|
|
83
|
+
},
|
|
84
|
+
bubbleArrowPosition: {
|
|
85
|
+
"ui5-tli-bubble-arrow": true,
|
|
86
|
+
"ui5-tli-bubble-arrow--left": this.layout === TimelineLayout.Vertical,
|
|
87
|
+
"ui5-tli-bubble-arrow--top": this.layout === TimelineLayout.Horizontal,
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
}
|
|
68
91
|
}
|
|
69
92
|
TimelineItem.define();
|
|
70
93
|
|
|
@@ -44,7 +44,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
44
44
|
},
|
|
45
45
|
events: {
|
|
46
46
|
drop: {},
|
|
47
|
-
"
|
|
47
|
+
"item-delete": {
|
|
48
48
|
detail: {
|
|
49
49
|
item: { type: HTMLElement },
|
|
50
50
|
},
|
|
@@ -132,7 +132,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
132
132
|
this._dndOverlayMode = UploadCollectionDnDMode.Drag;
|
|
133
133
|
}
|
|
134
134
|
_onItemDelete(event) {
|
|
135
|
-
this.fireEvent("
|
|
135
|
+
this.fireEvent("item-delete", { item: event.detail.item });
|
|
136
136
|
}
|
|
137
137
|
_onSelectionChange(event) {
|
|
138
138
|
this.fireEvent("selection-change", { selectedItems: event.detail.selectedItems });
|