@sapui5/sap.cux.home 1.139.0 → 1.140.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/cux/home/.library +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +7 -0
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js +113 -64
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +47 -15
- package/src/sap/cux/home/App.d.ts +2 -2
- package/src/sap/cux/home/App.js +2 -2
- package/src/sap/cux/home/App.js.map +1 -1
- package/src/sap/cux/home/App.ts +2 -2
- package/src/sap/cux/home/AppsContainer.d.ts +2 -2
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.js +3 -4
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +3 -4
- package/src/sap/cux/home/BaseApp.d.ts +2 -2
- package/src/sap/cux/home/BaseApp.js +2 -2
- package/src/sap/cux/home/BaseApp.js.map +1 -1
- package/src/sap/cux/home/BaseApp.ts +2 -2
- package/src/sap/cux/home/BaseAppPanel.d.ts +10 -0
- package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.js +21 -2
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +15 -2
- package/src/sap/cux/home/BaseContainer.d.ts +10 -27
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.gen.d.ts +61 -0
- package/src/sap/cux/home/BaseContainer.js +39 -71
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +33 -77
- package/src/sap/cux/home/BaseContainerRenderer.d.ts +2 -0
- package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js +31 -3
- package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.ts +39 -2
- package/src/sap/cux/home/BaseLayout.d.ts +2 -2
- package/src/sap/cux/home/BaseLayout.d.ts.map +1 -1
- package/src/sap/cux/home/BaseLayout.js +5 -4
- package/src/sap/cux/home/BaseLayout.js.map +1 -1
- package/src/sap/cux/home/BaseLayout.ts +5 -4
- package/src/sap/cux/home/BaseNewsItem.d.ts +2 -2
- package/src/sap/cux/home/BaseNewsItem.js +2 -2
- package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
- package/src/sap/cux/home/BaseNewsItem.ts +2 -2
- package/src/sap/cux/home/BaseNewsPanel.d.ts +4 -3
- package/src/sap/cux/home/BaseNewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.js +14 -3
- package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.ts +10 -4
- package/src/sap/cux/home/BasePagePanel.d.ts +2 -2
- package/src/sap/cux/home/BasePagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePagePanel.js +10 -2
- package/src/sap/cux/home/BasePagePanel.js.map +1 -1
- package/src/sap/cux/home/BasePagePanel.ts +6 -2
- package/src/sap/cux/home/BasePanel.d.ts +2 -21
- package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePanel.gen.d.ts +109 -0
- package/src/sap/cux/home/BasePanel.js +15 -31
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +11 -34
- package/src/sap/cux/home/BaseSettingsDialog.d.ts +2 -2
- package/src/sap/cux/home/BaseSettingsDialog.js +2 -2
- package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.ts +2 -2
- package/src/sap/cux/home/BaseSettingsPanel.d.ts +2 -2
- package/src/sap/cux/home/BaseSettingsPanel.js +2 -2
- package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.ts +2 -2
- package/src/sap/cux/home/CardsPanel.d.ts +2 -2
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.js +13 -5
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +9 -5
- package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.js +0 -1
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.ts +0 -1
- package/src/sap/cux/home/ErrorPanel.d.ts +2 -2
- package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ErrorPanel.js +13 -3
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +9 -3
- package/src/sap/cux/home/FavAppPanel.d.ts +2 -2
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +7 -6
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +10 -9
- package/src/sap/cux/home/FrequentAppPanel.d.ts +2 -2
- package/src/sap/cux/home/FrequentAppPanel.js +2 -2
- package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.ts +2 -2
- package/src/sap/cux/home/Group.d.ts +2 -2
- package/src/sap/cux/home/Group.js +2 -2
- package/src/sap/cux/home/Group.js.map +1 -1
- package/src/sap/cux/home/Group.ts +2 -2
- package/src/sap/cux/home/IToDoPanel.d.ts +2 -2
- package/src/sap/cux/home/IToDoPanel.js.map +1 -1
- package/src/sap/cux/home/IToDoPanel.ts +2 -2
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +3 -1
- package/src/sap/cux/home/InsightsContainer.d.ts +4 -4
- package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsContainer.js +6 -11
- package/src/sap/cux/home/InsightsContainer.js.map +1 -1
- package/src/sap/cux/home/InsightsContainer.ts +6 -11
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +2 -2
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +2 -3
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +4 -4
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +6 -4
- package/src/sap/cux/home/KeyUserSettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.js +18 -12
- package/src/sap/cux/home/KeyUserSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.ts +9 -5
- package/src/sap/cux/home/Layout.d.ts +2 -3
- package/src/sap/cux/home/Layout.d.ts.map +1 -1
- package/src/sap/cux/home/Layout.js +35 -42
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +15 -19
- package/src/sap/cux/home/MenuItem.d.ts +2 -2
- package/src/sap/cux/home/MenuItem.js +2 -2
- package/src/sap/cux/home/MenuItem.js.map +1 -1
- package/src/sap/cux/home/MenuItem.ts +2 -2
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts +11 -7
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js +22 -26
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.ts +26 -32
- package/src/sap/cux/home/NewsPanel.d.ts +10 -2
- package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.js +24 -16
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +25 -18
- package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +2 -2
- package/src/sap/cux/home/NoDataContainer.d.ts +2 -2
- package/src/sap/cux/home/NoDataContainer.js +3 -3
- package/src/sap/cux/home/NoDataContainer.js.map +1 -1
- package/src/sap/cux/home/NoDataContainer.ts +3 -3
- package/src/sap/cux/home/PagePanel.d.ts +11 -3
- package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/PagePanel.js +17 -6
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +17 -7
- package/src/sap/cux/home/RecentAppPanel.d.ts +2 -2
- package/src/sap/cux/home/RecentAppPanel.js +2 -2
- package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.ts +2 -2
- package/src/sap/cux/home/RecommendedAppPanel.d.ts +2 -2
- package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js +15 -9
- package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.ts +11 -6
- package/src/sap/cux/home/SideBySideIconTabFilter.d.ts +48 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.d.ts.map +1 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.gen.d.ts +33 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.js +83 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.js.map +1 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.ts +87 -0
- package/src/sap/cux/home/SituationPanel.d.ts +2 -2
- package/src/sap/cux/home/SituationPanel.js +2 -2
- package/src/sap/cux/home/SituationPanel.js.map +1 -1
- package/src/sap/cux/home/SituationPanel.ts +2 -2
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts +2 -2
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.js +11 -3
- package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.ts +7 -3
- package/src/sap/cux/home/SpacePanel.d.ts +2 -2
- package/src/sap/cux/home/SpacePanel.js +2 -2
- package/src/sap/cux/home/SpacePanel.js.map +1 -1
- package/src/sap/cux/home/SpacePanel.ts +2 -2
- package/src/sap/cux/home/TaskPanel.d.ts +2 -2
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.js +5 -3
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +4 -3
- package/src/sap/cux/home/TilesPanel.d.ts +2 -3
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.js +89 -59
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +93 -70
- package/src/sap/cux/home/ToDoPanel.d.ts +2 -2
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +13 -3
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +9 -3
- package/src/sap/cux/home/ToDosContainer.d.ts +2 -3
- package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
- package/src/sap/cux/home/ToDosContainer.js +3 -8
- package/src/sap/cux/home/ToDosContainer.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.ts +2 -9
- package/src/sap/cux/home/changeHandler/LayoutHandler.d.ts +1 -2
- package/src/sap/cux/home/changeHandler/LayoutHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/LayoutHandler.js +0 -3
- package/src/sap/cux/home/changeHandler/LayoutHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/LayoutHandler.ts +2 -6
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +0 -3
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +0 -3
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +0 -3
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +0 -3
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +0 -3
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +0 -3
- package/src/sap/cux/home/designtime/Layout.designtime.d.ts +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +4 -3
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +3 -2
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +0 -2
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.js +0 -2
- package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.ts +0 -2
- package/src/sap/cux/home/i18n/messagebundle.properties +6 -9
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_da.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_de.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_el.properties +18 -12
- package/src/sap/cux/home/i18n/messagebundle_en.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_es.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_et.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +14 -8
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_id.properties +16 -10
- package/src/sap/cux/home/i18n/messagebundle_it.properties +13 -7
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_no.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +22 -16
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_th.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +12 -6
- package/src/sap/cux/home/library.d.ts +10 -6
- package/src/sap/cux/home/library.d.ts.map +1 -1
- package/src/sap/cux/home/library.js +10 -6
- package/src/sap/cux/home/library.js.map +1 -1
- package/src/sap/cux/home/library.ts +10 -6
- package/src/sap/cux/home/themes/base/BaseContainer.less +31 -0
- package/src/sap/cux/home/themes/base/KeyUserSettingsDialog.less +5 -0
- package/src/sap/cux/home/themes/base/ToDosContainer.less +0 -4
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts +0 -4
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.js.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.ts +0 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts +0 -19
- package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts.map +0 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.js +0 -126
- package/src/sap/cux/home/utils/KeyUserPersonalization.js.map +0 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.ts +0 -93
|
@@ -177,8 +177,8 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
177
177
|
* @version 0.0.1
|
|
178
178
|
* @since 1.121
|
|
179
179
|
*
|
|
180
|
-
* @
|
|
181
|
-
* @
|
|
180
|
+
* @private
|
|
181
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
182
182
|
*
|
|
183
183
|
* @alias sap.cux.home.NewsAndPagesContainer
|
|
184
184
|
*/
|
|
@@ -244,6 +244,7 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
244
244
|
this.panelLoaded = {};
|
|
245
245
|
this.setProperty("orientation", this.getDeviceType() === DeviceType.Desktop || this.getDeviceType() === DeviceType.LargeDesktop || this.getDeviceType() === DeviceType.XLargeDesktop ? OrientationType.Horizontal : OrientationType.Vertical);
|
|
246
246
|
this.addCustomSetting("title", this._i18nBundle.getText("myInterestMsg"));
|
|
247
|
+
this.addStyleClass("sapCuxNewsAndPagesContainer");
|
|
247
248
|
},
|
|
248
249
|
/**
|
|
249
250
|
* Loads the News and Pages section.
|
|
@@ -266,11 +267,8 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
266
267
|
// newsFeedVisibility is set as false, then hide the news panel
|
|
267
268
|
const newsFeedVisibility = _this.getProperty("newsFeedVisibility");
|
|
268
269
|
// if newsFeedVisibility is false, hide the news panel
|
|
269
|
-
if (oContent.getMetadata().getName() === "sap.cux.home.NewsPanel" && !newsFeedVisibility) {
|
|
270
|
-
|
|
271
|
-
if (newsPanel) {
|
|
272
|
-
_this._getPanelContentWrapper(newsPanel).setVisible(false);
|
|
273
|
-
}
|
|
270
|
+
if (oContent && oContent.getMetadata().getName() === "sap.cux.home.NewsPanel" && !newsFeedVisibility) {
|
|
271
|
+
oContent.setVisible(false);
|
|
274
272
|
}
|
|
275
273
|
});
|
|
276
274
|
});
|
|
@@ -319,7 +317,7 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
319
317
|
},
|
|
320
318
|
/**
|
|
321
319
|
* Marks the change as an end-user change if the content is a NewsPanel with a URL and no key user changes exist.
|
|
322
|
-
|
|
320
|
+
*
|
|
323
321
|
* @private
|
|
324
322
|
* @param {BasePanel} oContent - The content panel to evaluate, typically of type `sap.cux.home.NewsPanel`.
|
|
325
323
|
*/
|
|
@@ -329,11 +327,11 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
329
327
|
}
|
|
330
328
|
},
|
|
331
329
|
/**
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
330
|
+
* Returns the current end-user change status.
|
|
331
|
+
*
|
|
332
|
+
* @private
|
|
333
|
+
* @returns {EndUserChangeStatus} An object containing the end-user change flag and the news type.
|
|
334
|
+
*/
|
|
337
335
|
getIsEndUserChange: function _getIsEndUserChange() {
|
|
338
336
|
return this.isEndUserChange;
|
|
339
337
|
},
|
|
@@ -344,10 +342,10 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
344
342
|
let newsPanel = oContent;
|
|
345
343
|
if (personalization.isNewsFeedVisible) {
|
|
346
344
|
this.setProperty("newsFeedVisibility", true);
|
|
347
|
-
|
|
345
|
+
newsPanel.setVisible(true);
|
|
348
346
|
} else {
|
|
349
347
|
this.setProperty("newsFeedVisibility", false);
|
|
350
|
-
|
|
348
|
+
newsPanel.setVisible(false);
|
|
351
349
|
}
|
|
352
350
|
}
|
|
353
351
|
});
|
|
@@ -374,7 +372,7 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
374
372
|
newsPanel.setProperty("customFileName", personalizations.customNewsFeedFileName);
|
|
375
373
|
if (newsFeedVisibility) {
|
|
376
374
|
const url = personalizations.newsFeedURL;
|
|
377
|
-
|
|
375
|
+
newsPanel.setVisible(true);
|
|
378
376
|
const customFeedKey = String(newsPanel.getProperty("customFeedKey"));
|
|
379
377
|
if (personalizations.showCustomNewsFeed && customFeedKey) {
|
|
380
378
|
newsPanel.setProperty("newsAvailable", true);
|
|
@@ -384,7 +382,7 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
384
382
|
} else if (personalizations.showRssNewsFeed && url) {
|
|
385
383
|
void newsPanel.setURL(url);
|
|
386
384
|
} else {
|
|
387
|
-
|
|
385
|
+
newsPanel.setVisible(false);
|
|
388
386
|
this.setProperty("newsFeedVisibility", false);
|
|
389
387
|
}
|
|
390
388
|
}
|
|
@@ -406,9 +404,8 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
406
404
|
},
|
|
407
405
|
adjustStyleLayout: function _adjustStyleLayout(bIsNewsTileVisible) {
|
|
408
406
|
const sDeviceType = this.getDeviceType();
|
|
409
|
-
const newsContentWrapper = this.newsPanel ? this.
|
|
410
|
-
const pagesContentWrapper = this.pagePanel ? this.
|
|
411
|
-
const containerWrapper = this._getInnerControl();
|
|
407
|
+
const newsContentWrapper = this.newsPanel ? this.newsPanel.getContent()?.[0] : undefined;
|
|
408
|
+
const pagesContentWrapper = this.pagePanel ? this.pagePanel.getContent()?.[0] : undefined;
|
|
412
409
|
if (bIsNewsTileVisible) {
|
|
413
410
|
this.newsPanel.adjustLayout();
|
|
414
411
|
}
|
|
@@ -416,22 +413,21 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
416
413
|
if (bIsNewsTileVisible) {
|
|
417
414
|
pagesContentWrapper?.setWidth("100%");
|
|
418
415
|
}
|
|
419
|
-
|
|
420
|
-
containerWrapper?.setDirection("Row");
|
|
416
|
+
this.setOrientation(OrientationType.Horizontal);
|
|
421
417
|
newsContentWrapper?.setWidth("100%");
|
|
422
418
|
newsContentWrapper?.addStyleClass("newsTileMaxWidth");
|
|
423
419
|
} else if (sDeviceType === DeviceType.Tablet) {
|
|
420
|
+
this.setOrientation(OrientationType.Vertical);
|
|
424
421
|
pagesContentWrapper?.setWidth("100%");
|
|
425
422
|
pagesContentWrapper?.setJustifyContent("Start");
|
|
426
423
|
newsContentWrapper?.setWidth("calc(100vw - 64px)");
|
|
427
424
|
newsContentWrapper?.removeStyleClass("newsTileMaxWidth");
|
|
428
|
-
containerWrapper?.setAlignItems("Baseline");
|
|
429
|
-
containerWrapper?.setDirection("Column");
|
|
430
425
|
} else {
|
|
426
|
+
this.setOrientation(OrientationType.Vertical);
|
|
431
427
|
newsContentWrapper?.setWidth("calc(100vw - 16px)");
|
|
432
428
|
}
|
|
433
429
|
if (pagesContentWrapper) {
|
|
434
|
-
setTimeout(this.pagePanel.attachResizeHandler.bind(this.pagePanel, bIsNewsTileVisible, this.getDomRef()?.clientWidth || 0, pagesContentWrapper
|
|
430
|
+
setTimeout(this.pagePanel.attachResizeHandler.bind(this.pagePanel, bIsNewsTileVisible, this.getDomRef()?.clientWidth || 0, pagesContentWrapper));
|
|
435
431
|
}
|
|
436
432
|
},
|
|
437
433
|
/**
|
|
@@ -441,7 +437,7 @@ sap.ui.define(["./BaseContainer", "./utils/placeholder/NewsAndPagesPlaceholder",
|
|
|
441
437
|
* @override
|
|
442
438
|
*/
|
|
443
439
|
adjustLayout: function _adjustLayout() {
|
|
444
|
-
if (this.pagePanel && this.newsPanel && this.
|
|
440
|
+
if (this.pagePanel && this.newsPanel && this.newsPanel.getVisible()) {
|
|
445
441
|
let bIsNewsTileVisible = true;
|
|
446
442
|
if (this.panelLoaded["Page"]?.loaded || this.panelLoaded["News"]?.loaded) {
|
|
447
443
|
// In case News Panel fails to load remove the panel and apply styles for page to take full width
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewsAndPagesContainer.js","names":["sap","ui","define","__BaseContainer","___utils_placeholder_NewsAndPagesPlaceholder","___library","___utils_Device","_interopRequireDefault","obj","__esModule","default","_iteratorSymbol","Symbol","iterator","_settle","pact","state","value","s","_Pact","v","o","bind","then","observer","prototype","onFulfilled","onRejected","result","callback","e","_this","_isSettledPact","thenable","_forTo","array","body","check","i","reject","_cycle","length","BaseContainer","_forOf","target","step","next","done","return","_fixup","TypeError","values","push","getNewsPagesPlaceholder","NewsType","OrientationType","DeviceType","NewsAndPagesContainer","extend","metadata","properties","colorPersonalizations","type","group","defaultValue","visibility","iconPersonalizations","newsFeedVisibility","renderer","apiVersion","constructor","_constructor","id","settings","BaseContainer.prototype.constructor.call","panelLoaded","keyUserChange","isEndUserChange","isEndUser","newsType","None","init","_init","BaseContainer.prototype.init.call","setProperty","getDeviceType","Desktop","LargeDesktop","XLargeDesktop","Horizontal","Vertical","addCustomSetting","_i18nBundle","getText","load","_load","aContent","getContent","_temp","oContent","checkEndUserChanges","Promise","resolve","getData","getProperty","getMetadata","getName","newsPanel","_getPanelContentWrapper","setVisible","setColorPersonalizations","_setColorPersonalizations","personalizations","existingPers","updatedPers","concat","forEach","applyColorPersonalizations","setIconPersonalizations","_setIconPersonalizations","applyIconPersonalizations","_checkEndUserChanges","getIsEndUserChange","_getIsEndUserChange","newsVisibilityChangeHandler","_newsVisibilityChangeHandler","personalization","isNewsFeedVisible","newsPersonalization","_newsPersonalization","Boolean","showCustomNewsFeed","Custom","showRssNewsFeed","NewsUrl","Default","newsFeedURL","customNewsFeedKey","customNewsFeedFileName","url","customFeedKey","String","setCustomNewsFeed","showDefaultNewsFeed","setDefaultNews","setURL","panelLoadedFn","_panelLoadedFn","sPanelType","oVal","pagePanel","adjustLayout","adjustStyleLayout","_adjustStyleLayout","bIsNewsTileVisible","sDeviceType","newsContentWrapper","undefined","pagesContentWrapper","containerWrapper","_getInnerControl","setWidth","setAlignItems","setDirection","addStyleClass","Tablet","setJustifyContent","removeStyleClass","setTimeout","attachResizeHandler","getDomRef","clientWidth","_adjustLayout","getVisible","loaded","removeContent","getGenericPlaceholderContent","_getGenericPlaceholderContent"],"sources":["NewsAndPagesContainer.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport FlexBox from \"sap/m/FlexBox\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport BaseContainer from \"./BaseContainer\";\nimport BasePanel from \"./BasePanel\";\nimport type { $NewsAndPagesContainerSettings } from \"./NewsAndPagesContainer\";\nimport { getNewsPagesPlaceholder } from \"./utils/placeholder/NewsAndPagesPlaceholder\";\nimport NewsPanel from \"./NewsPanel\";\nimport PagePanel from \"./PagePanel\";\nimport { INewsFeedVisibiliyChange, INewsPersData, ISpacePagePersonalization } from \"./interface/KeyUserInterface\";\nimport { NewsType, OrientationType } from \"./library\";\nimport { DeviceType } from \"./utils/Device\";\n\ninterface IpanelLoaded {\n\t[key: string]: { loaded: boolean; count: number };\n}\n\ninterface EndUserChangeStatus {\n\tisEndUser: boolean;\n\tnewsType: NewsType;\n}\n\n/**\n *\n * Container class for managing and storing News and Pages.\n *\n * @extends BaseContainer\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @internal\n * @public\n *\n * @alias sap.cux.home.NewsAndPagesContainer\n */\n\nexport default class NewsAndPagesContainer extends BaseContainer {\n\tstatic renderer = {\n\t\t...BaseContainer.renderer,\n\t\tapiVersion: 2\n\t};\n\tstatic readonly metadata: MetadataOptions = {\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Color Personalizations for Spaces & Pages\n\t\t\t */\n\t\t\tcolorPersonalizations: { type: \"array\", group: \"Misc\", defaultValue: [], visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Icon Personalizations for Spaces & Pages\n\t\t\t */\n\t\t\ticonPersonalizations: { type: \"array\", group: \"Misc\", defaultValue: [], visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * News feed visibility flag\n\t\t\t */\n\t\t\tnewsFeedVisibility: { type: \"boolean\", group: \"Misc\", defaultValue: true, visibility: \"hidden\" }\n\t\t}\n\t};\n\n\tprivate panelLoaded: IpanelLoaded = {};\n\tprivate pagePanel!: PagePanel;\n\tprivate newsPanel!: NewsPanel;\n\tprivate keyUserChange: boolean = false;\n\tprivate isEndUserChange: EndUserChangeStatus = { isEndUser: false, newsType: NewsType.None };\n\n\tconstructor(id?: string | $NewsAndPagesContainerSettings);\n\tconstructor(id?: string, settings?: $NewsAndPagesContainerSettings);\n\t/**\n\t * Constructor for the new News and Pages container.\n\t *\n\t * @param {string} [id] ID for the new control, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new control\n\t */\n\tpublic constructor(id?: string, settings?: $NewsAndPagesContainerSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tsuper.init();\n\t\tthis.panelLoaded = {};\n\n\t\tthis.setProperty(\n\t\t\t\"orientation\",\n\t\t\tthis.getDeviceType() === DeviceType.Desktop ||\n\t\t\t\tthis.getDeviceType() === DeviceType.LargeDesktop ||\n\t\t\t\tthis.getDeviceType() === DeviceType.XLargeDesktop\n\t\t\t\t? OrientationType.Horizontal\n\t\t\t\t: OrientationType.Vertical\n\t\t);\n\t\tthis.addCustomSetting(\"title\", this._i18nBundle.getText(\"myInterestMsg\") as string);\n\t}\n\n\t/**\n\t * Loads the News and Pages section.\n\t * Overrides the load method of the BaseContainer.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic async load() {\n\t\tconst aContent = this.getContent() as PagePanel[] | NewsPanel[];\n\t\tfor (const oContent of aContent) {\n\t\t\tif (!this.keyUserChange) {\n\t\t\t\tthis.checkEndUserChanges(oContent);\n\t\t\t}\n\t\t\tawait oContent.getData();\n\n\t\t\t// If the newsVisibilityChangeHandler is invoked before the data is loaded,\n\t\t\t// it may result in the news panel being incorrectly displayed if it was already set hidden by the handler.\n\t\t\t// newsFeedVisibility is set as false, then hide the news panel\n\t\t\tconst newsFeedVisibility = this.getProperty(\"newsFeedVisibility\") as boolean;\n\t\t\t// if newsFeedVisibility is false, hide the news panel\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && !newsFeedVisibility) {\n\t\t\t\tlet newsPanel = oContent as NewsPanel;\n\t\t\t\tif (newsPanel) {\n\t\t\t\t\tthis._getPanelContentWrapper(newsPanel).setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Sets property value for colorPersonalization.\n\t * Overridden to update cached personalizations.\n\t *\n\t * @private\n\t * @override\n\t * @returns {NewsAndPagesContainer} the container for chaining\n\t */\n\tsetColorPersonalizations(personalizations: Array<ISpacePagePersonalization>): NewsAndPagesContainer {\n\t\tconst existingPers = (this.getProperty(\"colorPersonalizations\") as ISpacePagePersonalization[]) || [];\n\t\tconst updatedPers = existingPers.concat(personalizations);\n\t\tthis.setProperty(\"colorPersonalizations\", updatedPers);\n\t\tthis.getContent().forEach((oContent) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.PagePanel\") {\n\t\t\t\t(oContent as PagePanel).applyColorPersonalizations(updatedPers);\n\t\t\t}\n\t\t});\n\t\treturn this;\n\t}\n\n\t/**\n\t * Sets property value for iconPersonalization.\n\t * Overridden to update cached personalizations.\n\t *\n\t * @private\n\t * @override\n\t * @returns {NewsAndPagesContainer} the container for chaining\n\t */\n\tsetIconPersonalizations(personalizations: Array<ISpacePagePersonalization>): NewsAndPagesContainer {\n\t\tconst existingPers = (this.getProperty(\"iconPersonalizations\") as ISpacePagePersonalization[]) || [];\n\t\tconst updatedPers = existingPers.concat(personalizations);\n\t\tthis.setProperty(\"iconPersonalizations\", updatedPers);\n\t\tthis.getContent().forEach((oContent) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.PagePanel\") {\n\t\t\t\t(oContent as PagePanel).applyIconPersonalizations(updatedPers);\n\t\t\t}\n\t\t});\n\t\treturn this;\n\t}\n\n\t/**\n\t * Marks the change as an end-user change if the content is a NewsPanel with a URL and no key user changes exist.\n *\n\t * @private\n\t * @param {BasePanel} oContent - The content panel to evaluate, typically of type `sap.cux.home.NewsPanel`.\n\t */\n\tpublic checkEndUserChanges(oContent: BasePanel) {\n\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && oContent.getProperty(\"url\") && !this.keyUserChange) {\n\t\t\tthis.isEndUserChange.isEndUser = true;\n\t\t}\n\t}\n\n\t/**\n * Returns the current end-user change status.\n\t*\n * @private\n * @returns {EndUserChangeStatus} An object containing the end-user change flag and the news type.\n */\n public getIsEndUserChange():EndUserChangeStatus {\n \treturn this.isEndUserChange;\n }\n\n\tpublic newsVisibilityChangeHandler(personalization: INewsFeedVisibiliyChange) {\n\t\tconst aContent = this.getContent();\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\") {\n\t\t\t\tlet newsPanel = oContent as NewsPanel;\n\t\t\t\tif (personalization.isNewsFeedVisible) {\n\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", true);\n\t\t\t\t\tthis._getPanelContentWrapper(newsPanel).setVisible(true);\n\t\t\t\t} else {\n\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", false);\n\t\t\t\t\tthis._getPanelContentWrapper(newsPanel).setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic newsPersonalization(personalizations: INewsPersData) {\n\t\tconst aContent = this.getContent();\n\t\tlet type: NewsType;\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tthis.checkEndUserChanges(oContent);\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && !this.isEndUserChange.isEndUser) {\n\t\t\t\tlet newsPanel = oContent as NewsPanel;\n\t\t\t\tconst newsFeedVisibility = Boolean(this.getProperty(\"newsFeedVisibility\"));\n\t\t\t\tthis.keyUserChange = true;\n\n\t\t\t\tif (personalizations.showCustomNewsFeed) {\n\t\t\t\t\ttype = NewsType.Custom;\n\t\t\t\t} else if (personalizations.showRssNewsFeed) {\n\t\t\t\t\ttype = NewsType.NewsUrl;\n\t\t\t\t} else {\n\t\t\t\t\ttype = NewsType.Default;\n\t\t\t\t}\n\t\t\t\tnewsPanel.setProperty(\"type\", type);\n\t\t\t\tnewsPanel.setProperty(\"url\", personalizations.newsFeedURL);\n\t\t\t\tnewsPanel.setProperty(\"customFeedKey\", personalizations.customNewsFeedKey);\n\t\t\t\tnewsPanel.setProperty(\"customFileName\", personalizations.customNewsFeedFileName);\n\n\n\t\t\t\tif (newsFeedVisibility) {\n\t\t\t\t\tconst url = personalizations.newsFeedURL as string;\n\t\t\t\t\tthis._getPanelContentWrapper(newsPanel).setVisible(true);\n\t\t\t\t\tconst customFeedKey = String(newsPanel.getProperty(\"customFeedKey\"));\n\t\t\t\t\tif (personalizations.showCustomNewsFeed && customFeedKey) {\n\t\t\t\t\t\tnewsPanel.setProperty(\"newsAvailable\", true);\n\t\t\t\t\t\tvoid newsPanel.setCustomNewsFeed(customFeedKey);\n\t\t\t\t\t} else if (personalizations.showDefaultNewsFeed) {\n\t\t\t\t\t\tvoid newsPanel.setDefaultNews();\n\t\t\t\t\t} else if (personalizations.showRssNewsFeed && url) {\n\t\t\t\t\t\tvoid newsPanel.setURL(url);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis._getPanelContentWrapper(newsPanel).setVisible(false);\n\t\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic panelLoadedFn(sPanelType: string, oVal: { loaded: boolean; count: number }) {\n\t\t// same issue of panelwrapper not available at this time\n\t\tconst aContent = this.getContent();\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.PagePanel\") {\n\t\t\t\tthis.pagePanel = oContent as PagePanel;\n\t\t\t} else if (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\") {\n\t\t\t\tthis.newsPanel = oContent as NewsPanel;\n\t\t\t}\n\t\t});\n\t\tthis.panelLoaded[sPanelType] = oVal;\n\t\tthis.adjustLayout();\n\t}\n\n\tpublic adjustStyleLayout(bIsNewsTileVisible: boolean) {\n\t\tconst sDeviceType = this.getDeviceType();\n\t\tconst newsContentWrapper = this.newsPanel ? this._getPanelContentWrapper(this.newsPanel) : undefined;\n\t\tconst pagesContentWrapper = this.pagePanel ? this._getPanelContentWrapper(this.pagePanel) : undefined;\n\t\tconst containerWrapper = this._getInnerControl() as FlexBox;\n\t\tif (bIsNewsTileVisible) {\n\t\t\tthis.newsPanel.adjustLayout();\n\t\t}\n\t\tif (sDeviceType === DeviceType.Desktop || sDeviceType === DeviceType.LargeDesktop || sDeviceType === DeviceType.XLargeDesktop) {\n\t\t\tif (bIsNewsTileVisible) {\n\t\t\t\tpagesContentWrapper?.setWidth(\"100%\");\n\t\t\t}\n\t\t\tcontainerWrapper?.setAlignItems(\"Center\");\n\t\t\tcontainerWrapper?.setDirection(\"Row\");\n\t\t\tnewsContentWrapper?.setWidth(\"100%\");\n\t\t\tnewsContentWrapper?.addStyleClass(\"newsTileMaxWidth\");\n\t\t} else if (sDeviceType === DeviceType.Tablet) {\n\t\t\tpagesContentWrapper?.setWidth(\"100%\");\n\t\t\tpagesContentWrapper?.setJustifyContent(\"Start\");\n\t\t\tnewsContentWrapper?.setWidth(\"calc(100vw - 64px)\");\n\t\t\tnewsContentWrapper?.removeStyleClass(\"newsTileMaxWidth\");\n\t\t\tcontainerWrapper?.setAlignItems(\"Baseline\");\n\t\t\tcontainerWrapper?.setDirection(\"Column\");\n\t\t} else {\n\t\t\tnewsContentWrapper?.setWidth(\"calc(100vw - 16px)\");\n\t\t}\n\n\t\tif (pagesContentWrapper) {\n\t\t\tsetTimeout(\n\t\t\t\tthis.pagePanel.attachResizeHandler.bind(\n\t\t\t\t\tthis.pagePanel,\n\t\t\t\t\tbIsNewsTileVisible,\n\t\t\t\t\tthis.getDomRef()?.clientWidth || 0,\n\t\t\t\t\tpagesContentWrapper,\n\t\t\t\t\tcontainerWrapper\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}\n\n\t/**\n\t * Adjusts the layout of the all panels in the container.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic adjustLayout() {\n\t\tif (this.pagePanel && this.newsPanel && this._getPanelContentWrapper(this.newsPanel).getVisible()) {\n\t\t\tlet bIsNewsTileVisible = true;\n\t\t\tif (this.panelLoaded[\"Page\"]?.loaded || this.panelLoaded[\"News\"]?.loaded) {\n\t\t\t\t// In case News Panel fails to load remove the panel and apply styles for page to take full width\n\t\t\t\tif (this.panelLoaded[\"News\"]?.loaded === false) {\n\t\t\t\t\tbIsNewsTileVisible = false;\n\t\t\t\t\tthis.removeContent(this.newsPanel);\n\t\t\t\t} else if (this.panelLoaded[\"Page\"]?.loaded === false) {\n\t\t\t\t\tthis.removeContent(this.pagePanel);\n\t\t\t\t}\n\t\t\t\tthis.adjustStyleLayout(bIsNewsTileVisible);\n\t\t\t}\n\t\t} else if (this.pagePanel && this.panelLoaded[\"Page\"]?.loaded) {\n\t\t\t// If News Panel is not present apply styles for page to take full width\n\t\t\tthis.adjustStyleLayout(false);\n\t\t}\n\t}\n\n\t/**\n\t * Retrieves the generic placeholder content for the News and Pages container.\n\t *\n\t * @returns {string} The HTML string representing the News and Pages container's placeholder content.\n\t */\n\tprotected getGenericPlaceholderContent(): string {\n\t\treturn getNewsPagesPlaceholder();\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,8GAAAC,eAAA,EAAAC,4CAAA,EAAAC,UAAA,EAAAC,eAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAoKaG,eAAA,GAAkB,aAAc,OAAOC,MAAM,KAAK,WAAW,GAAIA,MAAM,CAACC,QAAQ,KAAKD,MAAM,CAACC,QAAQ,GAAGD,MAAM,CAAC,iBAAiB,CAAC,CAAC,GAAI,YAAY;EA7HvJ,SAASE,OAAOA,CAACC,IAAI,EAAEC,KAAK,EAAEC,KAAK,EAAE;IAC3C,IAAI,CAACF,IAAI,CAACG,CAAC,EAAE;MACZ,IAAID,KAAK,YAAYE,KAAK,EAAE;QAC3B,IAAIF,KAAK,CAACC,CAAC,EAAE;UACZ,IAAIF,KAAK,GAAG,CAAC,EAAE;YACdA,KAAK,GAAGC,KAAK,CAACC,CAAC;UAChB;UACAD,KAAK,GAAGA,KAAK,CAACG,CAAC;QAChB,CAAC,MAAM;UACNH,KAAK,CAACI,CAAC,GAAGP,OAAO,CAACQ,IAAI,CAAC,IAAI,EAAEP,IAAI,EAAEC,KAAK,CAAC;UACzC;QACD;MACD;MACA,IAAIC,KAAK,IAAIA,KAAK,CAACM,IAAI,EAAE;QACxBN,KAAK,CAACM,IAAI,CAACT,OAAO,CAACQ,IAAI,CAAC,IAAI,EAAEP,IAAI,EAAEC,KAAK,CAAC,EAAEF,OAAO,CAACQ,IAAI,CAAC,IAAI,EAAEP,IAAI,EA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ainer.js","names":["sap","ui","define","__BaseContainer","___utils_placeholder_NewsAndPagesPlaceholder","___library","___utils_Device","_interopRequireDefault","obj","__esModule","default","_iteratorSymbol","Symbol","iterator","_settle","pact","state","value","s","_Pact","v","o","bind","then","observer","prototype","onFulfilled","onRejected","result","callback","e","_this","_isSettledPact","thenable","_forTo","array","body","check","i","reject","_cycle","length","BaseContainer","_forOf","target","step","next","done","return","_fixup","TypeError","values","push","getNewsPagesPlaceholder","NewsType","OrientationType","DeviceType","NewsAndPagesContainer","extend","metadata","properties","colorPersonalizations","type","group","defaultValue","visibility","iconPersonalizations","newsFeedVisibility","renderer","apiVersion","constructor","_constructor","id","settings","BaseContainer.prototype.constructor.call","panelLoaded","keyUserChange","isEndUserChange","isEndUser","newsType","None","init","_init","BaseContainer.prototype.init.call","setProperty","getDeviceType","Desktop","LargeDesktop","XLargeDesktop","Horizontal","Vertical","addCustomSetting","_i18nBundle","getText","addStyleClass","load","_load","aContent","getContent","_temp","oContent","checkEndUserChanges","Promise","resolve","getData","getProperty","getMetadata","getName","setVisible","setColorPersonalizations","_setColorPersonalizations","personalizations","existingPers","updatedPers","concat","forEach","applyColorPersonalizations","setIconPersonalizations","_setIconPersonalizations","applyIconPersonalizations","_checkEndUserChanges","getIsEndUserChange","_getIsEndUserChange","newsVisibilityChangeHandler","_newsVisibilityChangeHandler","personalization","newsPanel","isNewsFeedVisible","newsPersonalization","_newsPersonalization","Boolean","showCustomNewsFeed","Custom","showRssNewsFeed","NewsUrl","Default","newsFeedURL","customNewsFeedKey","customNewsFeedFileName","url","customFeedKey","String","setCustomNewsFeed","showDefaultNewsFeed","setDefaultNews","setURL","panelLoadedFn","_panelLoadedFn","sPanelType","oVal","pagePanel","adjustLayout","adjustStyleLayout","_adjustStyleLayout","bIsNewsTileVisible","sDeviceType","newsContentWrapper","undefined","pagesContentWrapper","setWidth","setOrientation","Tablet","setJustifyContent","removeStyleClass","setTimeout","attachResizeHandler","getDomRef","clientWidth","_adjustLayout","getVisible","loaded","removeContent","getGenericPlaceholderContent","_getGenericPlaceholderContent"],"sources":["NewsAndPagesContainer.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport BaseContainer from \"./BaseContainer\";\nimport BasePanel from \"./BasePanel\";\nimport type { $NewsAndPagesContainerSettings } from \"./NewsAndPagesContainer\";\nimport { getNewsPagesPlaceholder } from \"./utils/placeholder/NewsAndPagesPlaceholder\";\nimport NewsPanel from \"./NewsPanel\";\nimport PagePanel from \"./PagePanel\";\nimport { INewsFeedVisibiliyChange, INewsPersData, ISpacePagePersonalization } from \"./interface/KeyUserInterface\";\nimport { NewsType, OrientationType } from \"./library\";\nimport { DeviceType } from \"./utils/Device\";\nimport VBox from \"sap/m/VBox\";\n\ninterface IpanelLoaded {\n\t[key: string]: { loaded: boolean; count: number };\n}\n\ninterface EndUserChangeStatus {\n\tisEndUser: boolean;\n\tnewsType: NewsType;\n}\n\n/**\n *\n * Container class for managing and storing News and Pages.\n *\n * @extends BaseContainer\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.NewsAndPagesContainer\n */\n\nexport default class NewsAndPagesContainer extends BaseContainer {\n\tstatic renderer = {\n\t\t...BaseContainer.renderer,\n\t\tapiVersion: 2\n\t};\n\tstatic readonly metadata: MetadataOptions = {\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Color Personalizations for Spaces & Pages\n\t\t\t */\n\t\t\tcolorPersonalizations: { type: \"array\", group: \"Misc\", defaultValue: [], visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Icon Personalizations for Spaces & Pages\n\t\t\t */\n\t\t\ticonPersonalizations: { type: \"array\", group: \"Misc\", defaultValue: [], visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * News feed visibility flag\n\t\t\t */\n\t\t\tnewsFeedVisibility: { type: \"boolean\", group: \"Misc\", defaultValue: true, visibility: \"hidden\" }\n\t\t}\n\t};\n\n\tprivate panelLoaded: IpanelLoaded = {};\n\tprivate pagePanel!: PagePanel;\n\tprivate newsPanel!: NewsPanel;\n\tprivate keyUserChange: boolean = false;\n\tprivate isEndUserChange: EndUserChangeStatus = { isEndUser: false, newsType: NewsType.None };\n\n\tconstructor(id?: string | $NewsAndPagesContainerSettings);\n\tconstructor(id?: string, settings?: $NewsAndPagesContainerSettings);\n\t/**\n\t * Constructor for the new News and Pages container.\n\t *\n\t * @param {string} [id] ID for the new control, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new control\n\t */\n\tpublic constructor(id?: string, settings?: $NewsAndPagesContainerSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tsuper.init();\n\t\tthis.panelLoaded = {};\n\n\t\tthis.setProperty(\n\t\t\t\"orientation\",\n\t\t\tthis.getDeviceType() === DeviceType.Desktop ||\n\t\t\t\tthis.getDeviceType() === DeviceType.LargeDesktop ||\n\t\t\t\tthis.getDeviceType() === DeviceType.XLargeDesktop\n\t\t\t\t? OrientationType.Horizontal\n\t\t\t\t: OrientationType.Vertical\n\t\t);\n\t\tthis.addCustomSetting(\"title\", this._i18nBundle.getText(\"myInterestMsg\") as string);\n\t\tthis.addStyleClass(\"sapCuxNewsAndPagesContainer\");\n\t}\n\n\t/**\n\t * Loads the News and Pages section.\n\t * Overrides the load method of the BaseContainer.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic async load() {\n\t\tconst aContent = this.getContent() as PagePanel[] | NewsPanel[];\n\t\tfor (const oContent of aContent) {\n\t\t\tif (!this.keyUserChange) {\n\t\t\t\tthis.checkEndUserChanges(oContent);\n\t\t\t}\n\t\t\tawait oContent.getData();\n\n\t\t\t// If the newsVisibilityChangeHandler is invoked before the data is loaded,\n\t\t\t// it may result in the news panel being incorrectly displayed if it was already set hidden by the handler.\n\t\t\t// newsFeedVisibility is set as false, then hide the news panel\n\t\t\tconst newsFeedVisibility = this.getProperty(\"newsFeedVisibility\") as boolean;\n\t\t\t// if newsFeedVisibility is false, hide the news panel\n\t\t\tif (oContent && oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && !newsFeedVisibility) {\n\t\t\t\toContent.setVisible(false);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Sets property value for colorPersonalization.\n\t * Overridden to update cached personalizations.\n\t *\n\t * @private\n\t * @override\n\t * @returns {NewsAndPagesContainer} the container for chaining\n\t */\n\tsetColorPersonalizations(personalizations: Array<ISpacePagePersonalization>): NewsAndPagesContainer {\n\t\tconst existingPers = (this.getProperty(\"colorPersonalizations\") as ISpacePagePersonalization[]) || [];\n\t\tconst updatedPers = existingPers.concat(personalizations);\n\t\tthis.setProperty(\"colorPersonalizations\", updatedPers);\n\t\tthis.getContent().forEach((oContent) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.PagePanel\") {\n\t\t\t\t(oContent as PagePanel).applyColorPersonalizations(updatedPers);\n\t\t\t}\n\t\t});\n\t\treturn this;\n\t}\n\n\t/**\n\t * Sets property value for iconPersonalization.\n\t * Overridden to update cached personalizations.\n\t *\n\t * @private\n\t * @override\n\t * @returns {NewsAndPagesContainer} the container for chaining\n\t */\n\tsetIconPersonalizations(personalizations: Array<ISpacePagePersonalization>): NewsAndPagesContainer {\n\t\tconst existingPers = (this.getProperty(\"iconPersonalizations\") as ISpacePagePersonalization[]) || [];\n\t\tconst updatedPers = existingPers.concat(personalizations);\n\t\tthis.setProperty(\"iconPersonalizations\", updatedPers);\n\t\tthis.getContent().forEach((oContent) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.PagePanel\") {\n\t\t\t\t(oContent as PagePanel).applyIconPersonalizations(updatedPers);\n\t\t\t}\n\t\t});\n\t\treturn this;\n\t}\n\n\t/**\n\t * Marks the change as an end-user change if the content is a NewsPanel with a URL and no key user changes exist.\n\t *\n\t * @private\n\t * @param {BasePanel} oContent - The content panel to evaluate, typically of type `sap.cux.home.NewsPanel`.\n\t */\n\tpublic checkEndUserChanges(oContent: BasePanel) {\n\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && oContent.getProperty(\"url\") && !this.keyUserChange) {\n\t\t\tthis.isEndUserChange.isEndUser = true;\n\t\t}\n\t}\n\n\t/**\n\t * Returns the current end-user change status.\n\t *\n\t * @private\n\t * @returns {EndUserChangeStatus} An object containing the end-user change flag and the news type.\n\t */\n\tpublic getIsEndUserChange(): EndUserChangeStatus {\n\t\treturn this.isEndUserChange;\n\t}\n\n\tpublic newsVisibilityChangeHandler(personalization: INewsFeedVisibiliyChange) {\n\t\tconst aContent = this.getContent();\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\") {\n\t\t\t\tlet newsPanel = oContent as NewsPanel;\n\t\t\t\tif (personalization.isNewsFeedVisible) {\n\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", true);\n\t\t\t\t\tnewsPanel.setVisible(true);\n\t\t\t\t} else {\n\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", false);\n\t\t\t\t\tnewsPanel.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic newsPersonalization(personalizations: INewsPersData) {\n\t\tconst aContent = this.getContent();\n\t\tlet type: NewsType;\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tthis.checkEndUserChanges(oContent);\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && !this.isEndUserChange.isEndUser) {\n\t\t\t\tlet newsPanel = oContent as NewsPanel;\n\t\t\t\tconst newsFeedVisibility = Boolean(this.getProperty(\"newsFeedVisibility\"));\n\t\t\t\tthis.keyUserChange = true;\n\n\t\t\t\tif (personalizations.showCustomNewsFeed) {\n\t\t\t\t\ttype = NewsType.Custom;\n\t\t\t\t} else if (personalizations.showRssNewsFeed) {\n\t\t\t\t\ttype = NewsType.NewsUrl;\n\t\t\t\t} else {\n\t\t\t\t\ttype = NewsType.Default;\n\t\t\t\t}\n\t\t\t\tnewsPanel.setProperty(\"type\", type);\n\t\t\t\tnewsPanel.setProperty(\"url\", personalizations.newsFeedURL);\n\t\t\t\tnewsPanel.setProperty(\"customFeedKey\", personalizations.customNewsFeedKey);\n\t\t\t\tnewsPanel.setProperty(\"customFileName\", personalizations.customNewsFeedFileName);\n\n\t\t\t\tif (newsFeedVisibility) {\n\t\t\t\t\tconst url = personalizations.newsFeedURL as string;\n\t\t\t\t\tnewsPanel.setVisible(true);\n\t\t\t\t\tconst customFeedKey = String(newsPanel.getProperty(\"customFeedKey\"));\n\t\t\t\t\tif (personalizations.showCustomNewsFeed && customFeedKey) {\n\t\t\t\t\t\tnewsPanel.setProperty(\"newsAvailable\", true);\n\t\t\t\t\t\tvoid newsPanel.setCustomNewsFeed(customFeedKey);\n\t\t\t\t\t} else if (personalizations.showDefaultNewsFeed) {\n\t\t\t\t\t\tvoid newsPanel.setDefaultNews();\n\t\t\t\t\t} else if (personalizations.showRssNewsFeed && url) {\n\t\t\t\t\t\tvoid newsPanel.setURL(url);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnewsPanel.setVisible(false);\n\t\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic panelLoadedFn(sPanelType: string, oVal: { loaded: boolean; count: number }) {\n\t\t// same issue of panelwrapper not available at this time\n\t\tconst aContent = this.getContent();\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.PagePanel\") {\n\t\t\t\tthis.pagePanel = oContent as PagePanel;\n\t\t\t} else if (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\") {\n\t\t\t\tthis.newsPanel = oContent as NewsPanel;\n\t\t\t}\n\t\t});\n\t\tthis.panelLoaded[sPanelType] = oVal;\n\t\tthis.adjustLayout();\n\t}\n\n\tpublic adjustStyleLayout(bIsNewsTileVisible: boolean) {\n\t\tconst sDeviceType = this.getDeviceType();\n\t\tconst newsContentWrapper = this.newsPanel ? this.newsPanel.getContent()?.[0] as VBox : undefined;\n\t\tconst pagesContentWrapper = this.pagePanel ? this.pagePanel.getContent()?.[0] as VBox : undefined;\n\t\tif (bIsNewsTileVisible) {\n\t\t\tthis.newsPanel.adjustLayout();\n\t\t}\n\t\tif (sDeviceType === DeviceType.Desktop || sDeviceType === DeviceType.LargeDesktop || sDeviceType === DeviceType.XLargeDesktop) {\n\t\t\tif (bIsNewsTileVisible) {\n\t\t\t\tpagesContentWrapper?.setWidth(\"100%\");\n\t\t\t}\n\t\t\tthis.setOrientation(OrientationType.Horizontal);\n\t\t\tnewsContentWrapper?.setWidth(\"100%\");\n\t\t\tnewsContentWrapper?.addStyleClass(\"newsTileMaxWidth\");\n\t\t} else if (sDeviceType === DeviceType.Tablet) {\n\t\t\tthis.setOrientation(OrientationType.Vertical);\n\t\t\tpagesContentWrapper?.setWidth(\"100%\");\n\t\t\tpagesContentWrapper?.setJustifyContent(\"Start\");\n\t\t\tnewsContentWrapper?.setWidth(\"calc(100vw - 64px)\");\n\t\t\tnewsContentWrapper?.removeStyleClass(\"newsTileMaxWidth\");\n\t\t} else {\n\t\t\tthis.setOrientation(OrientationType.Vertical);\n\t\t\tnewsContentWrapper?.setWidth(\"calc(100vw - 16px)\");\n\t\t}\n\n\t\tif (pagesContentWrapper) {\n\t\t\tsetTimeout(\n\t\t\t\tthis.pagePanel.attachResizeHandler.bind(\n\t\t\t\t\tthis.pagePanel,\n\t\t\t\t\tbIsNewsTileVisible,\n\t\t\t\t\tthis.getDomRef()?.clientWidth || 0,\n\t\t\t\t\tpagesContentWrapper\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}\n\n\t/**\n\t * Adjusts the layout of the all panels in the container.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic adjustLayout() {\n\t\tif (this.pagePanel && this.newsPanel && this.newsPanel.getVisible()) {\n\t\t\tlet bIsNewsTileVisible = true;\n\t\t\tif (this.panelLoaded[\"Page\"]?.loaded || this.panelLoaded[\"News\"]?.loaded) {\n\t\t\t\t// In case News Panel fails to load remove the panel and apply styles for page to take full width\n\t\t\t\tif (this.panelLoaded[\"News\"]?.loaded === false) {\n\t\t\t\t\tbIsNewsTileVisible = false;\n\t\t\t\t\tthis.removeContent(this.newsPanel);\n\t\t\t\t} else if (this.panelLoaded[\"Page\"]?.loaded === false) {\n\t\t\t\t\tthis.removeContent(this.pagePanel);\n\t\t\t\t}\n\t\t\t\tthis.adjustStyleLayout(bIsNewsTileVisible);\n\t\t\t}\n\t\t} else if (this.pagePanel && this.panelLoaded[\"Page\"]?.loaded) {\n\t\t\t// If News Panel is not present apply styles for page to take full width\n\t\t\tthis.adjustStyleLayout(false);\n\t\t}\n\t}\n\n\t/**\n\t * Retrieves the generic placeholder content for the News and Pages container.\n\t *\n\t * @returns {string} The HTML string representing the News and Pages container's placeholder content.\n\t */\n\tprotected getGenericPlaceholderContent(): string {\n\t\treturn getNewsPagesPlaceholder();\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,8GAAAC,eAAA,EAAAC,4CAAA,EAAAC,UAAA,EAAAC,eAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAoKaG,eAAA,GAAkB,aAAc,OAAOC,MAAM,KAAK,WAAW,GAAIA,MAAM,CAACC,QAAQ,KAAKD,MAAM,CAACC,QAAQ,GAAGD,MAAM,CAAC,iBAAiB,CAAC,CAAC,GA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kB,CAAC;QAC3C;MACD,CAAC,MAAM,IAAI,IAAI,CAACJ,SAAS,IAAI,IAAI,CAAC3E,WAAW,CAAC,MAAM,CAAC,EAAE+F,MAAM,EAAE;QAC9D;QACA,IAAI,CAAClB,iBAAiB,CAAC,KAAK,CAAC;MAC9B;IACD,CAAC;IAED;AACD;AACA;AACA;AACA;IACWoB,4BAA4B,WAAAC,8BAAA,EAAW;MAChD,OAAOxH,uBAAuB,CAAC,CAAC;IACjC;EAAC;EAAA,OAnSmBI,qBAAqB;AAAA","ignoreList":[]}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* * (c) Copyright 2009-2025 SAP SE. All rights reserved
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import FlexBox from "sap/m/FlexBox";
|
|
7
6
|
import type { MetadataOptions } from "sap/ui/core/Element";
|
|
8
7
|
import BaseContainer from "./BaseContainer";
|
|
9
8
|
import BasePanel from "./BasePanel";
|
|
@@ -14,6 +13,7 @@ import PagePanel from "./PagePanel";
|
|
|
14
13
|
import { INewsFeedVisibiliyChange, INewsPersData, ISpacePagePersonalization } from "./interface/KeyUserInterface";
|
|
15
14
|
import { NewsType, OrientationType } from "./library";
|
|
16
15
|
import { DeviceType } from "./utils/Device";
|
|
16
|
+
import VBox from "sap/m/VBox";
|
|
17
17
|
|
|
18
18
|
interface IpanelLoaded {
|
|
19
19
|
[key: string]: { loaded: boolean; count: number };
|
|
@@ -34,8 +34,8 @@ interface EndUserChangeStatus {
|
|
|
34
34
|
* @version 0.0.1
|
|
35
35
|
* @since 1.121
|
|
36
36
|
*
|
|
37
|
-
* @
|
|
38
|
-
* @
|
|
37
|
+
* @private
|
|
38
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
39
39
|
*
|
|
40
40
|
* @alias sap.cux.home.NewsAndPagesContainer
|
|
41
41
|
*/
|
|
@@ -99,6 +99,7 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
99
99
|
: OrientationType.Vertical
|
|
100
100
|
);
|
|
101
101
|
this.addCustomSetting("title", this._i18nBundle.getText("myInterestMsg") as string);
|
|
102
|
+
this.addStyleClass("sapCuxNewsAndPagesContainer");
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
/**
|
|
@@ -121,11 +122,8 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
121
122
|
// newsFeedVisibility is set as false, then hide the news panel
|
|
122
123
|
const newsFeedVisibility = this.getProperty("newsFeedVisibility") as boolean;
|
|
123
124
|
// if newsFeedVisibility is false, hide the news panel
|
|
124
|
-
if (oContent.getMetadata().getName() === "sap.cux.home.NewsPanel" && !newsFeedVisibility) {
|
|
125
|
-
|
|
126
|
-
if (newsPanel) {
|
|
127
|
-
this._getPanelContentWrapper(newsPanel).setVisible(false);
|
|
128
|
-
}
|
|
125
|
+
if (oContent && oContent.getMetadata().getName() === "sap.cux.home.NewsPanel" && !newsFeedVisibility) {
|
|
126
|
+
oContent.setVisible(false);
|
|
129
127
|
}
|
|
130
128
|
}
|
|
131
129
|
}
|
|
@@ -172,7 +170,7 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
172
170
|
|
|
173
171
|
/**
|
|
174
172
|
* Marks the change as an end-user change if the content is a NewsPanel with a URL and no key user changes exist.
|
|
175
|
-
|
|
173
|
+
*
|
|
176
174
|
* @private
|
|
177
175
|
* @param {BasePanel} oContent - The content panel to evaluate, typically of type `sap.cux.home.NewsPanel`.
|
|
178
176
|
*/
|
|
@@ -183,14 +181,14 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
183
181
|
}
|
|
184
182
|
|
|
185
183
|
/**
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
184
|
+
* Returns the current end-user change status.
|
|
185
|
+
*
|
|
186
|
+
* @private
|
|
187
|
+
* @returns {EndUserChangeStatus} An object containing the end-user change flag and the news type.
|
|
188
|
+
*/
|
|
189
|
+
public getIsEndUserChange(): EndUserChangeStatus {
|
|
190
|
+
return this.isEndUserChange;
|
|
191
|
+
}
|
|
194
192
|
|
|
195
193
|
public newsVisibilityChangeHandler(personalization: INewsFeedVisibiliyChange) {
|
|
196
194
|
const aContent = this.getContent();
|
|
@@ -199,10 +197,10 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
199
197
|
let newsPanel = oContent as NewsPanel;
|
|
200
198
|
if (personalization.isNewsFeedVisible) {
|
|
201
199
|
this.setProperty("newsFeedVisibility", true);
|
|
202
|
-
|
|
200
|
+
newsPanel.setVisible(true);
|
|
203
201
|
} else {
|
|
204
202
|
this.setProperty("newsFeedVisibility", false);
|
|
205
|
-
|
|
203
|
+
newsPanel.setVisible(false);
|
|
206
204
|
}
|
|
207
205
|
}
|
|
208
206
|
});
|
|
@@ -230,10 +228,9 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
230
228
|
newsPanel.setProperty("customFeedKey", personalizations.customNewsFeedKey);
|
|
231
229
|
newsPanel.setProperty("customFileName", personalizations.customNewsFeedFileName);
|
|
232
230
|
|
|
233
|
-
|
|
234
231
|
if (newsFeedVisibility) {
|
|
235
232
|
const url = personalizations.newsFeedURL as string;
|
|
236
|
-
|
|
233
|
+
newsPanel.setVisible(true);
|
|
237
234
|
const customFeedKey = String(newsPanel.getProperty("customFeedKey"));
|
|
238
235
|
if (personalizations.showCustomNewsFeed && customFeedKey) {
|
|
239
236
|
newsPanel.setProperty("newsAvailable", true);
|
|
@@ -243,7 +240,7 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
243
240
|
} else if (personalizations.showRssNewsFeed && url) {
|
|
244
241
|
void newsPanel.setURL(url);
|
|
245
242
|
} else {
|
|
246
|
-
|
|
243
|
+
newsPanel.setVisible(false);
|
|
247
244
|
this.setProperty("newsFeedVisibility", false);
|
|
248
245
|
}
|
|
249
246
|
}
|
|
@@ -267,9 +264,8 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
267
264
|
|
|
268
265
|
public adjustStyleLayout(bIsNewsTileVisible: boolean) {
|
|
269
266
|
const sDeviceType = this.getDeviceType();
|
|
270
|
-
const newsContentWrapper = this.newsPanel ? this.
|
|
271
|
-
const pagesContentWrapper = this.pagePanel ? this.
|
|
272
|
-
const containerWrapper = this._getInnerControl() as FlexBox;
|
|
267
|
+
const newsContentWrapper = this.newsPanel ? this.newsPanel.getContent()?.[0] as VBox : undefined;
|
|
268
|
+
const pagesContentWrapper = this.pagePanel ? this.pagePanel.getContent()?.[0] as VBox : undefined;
|
|
273
269
|
if (bIsNewsTileVisible) {
|
|
274
270
|
this.newsPanel.adjustLayout();
|
|
275
271
|
}
|
|
@@ -277,18 +273,17 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
277
273
|
if (bIsNewsTileVisible) {
|
|
278
274
|
pagesContentWrapper?.setWidth("100%");
|
|
279
275
|
}
|
|
280
|
-
|
|
281
|
-
containerWrapper?.setDirection("Row");
|
|
276
|
+
this.setOrientation(OrientationType.Horizontal);
|
|
282
277
|
newsContentWrapper?.setWidth("100%");
|
|
283
278
|
newsContentWrapper?.addStyleClass("newsTileMaxWidth");
|
|
284
279
|
} else if (sDeviceType === DeviceType.Tablet) {
|
|
280
|
+
this.setOrientation(OrientationType.Vertical);
|
|
285
281
|
pagesContentWrapper?.setWidth("100%");
|
|
286
282
|
pagesContentWrapper?.setJustifyContent("Start");
|
|
287
283
|
newsContentWrapper?.setWidth("calc(100vw - 64px)");
|
|
288
284
|
newsContentWrapper?.removeStyleClass("newsTileMaxWidth");
|
|
289
|
-
containerWrapper?.setAlignItems("Baseline");
|
|
290
|
-
containerWrapper?.setDirection("Column");
|
|
291
285
|
} else {
|
|
286
|
+
this.setOrientation(OrientationType.Vertical);
|
|
292
287
|
newsContentWrapper?.setWidth("calc(100vw - 16px)");
|
|
293
288
|
}
|
|
294
289
|
|
|
@@ -298,8 +293,7 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
298
293
|
this.pagePanel,
|
|
299
294
|
bIsNewsTileVisible,
|
|
300
295
|
this.getDomRef()?.clientWidth || 0,
|
|
301
|
-
pagesContentWrapper
|
|
302
|
-
containerWrapper
|
|
296
|
+
pagesContentWrapper
|
|
303
297
|
)
|
|
304
298
|
);
|
|
305
299
|
}
|
|
@@ -312,7 +306,7 @@ export default class NewsAndPagesContainer extends BaseContainer {
|
|
|
312
306
|
* @override
|
|
313
307
|
*/
|
|
314
308
|
public adjustLayout() {
|
|
315
|
-
if (this.pagePanel && this.newsPanel && this.
|
|
309
|
+
if (this.pagePanel && this.newsPanel && this.newsPanel.getVisible()) {
|
|
316
310
|
let bIsNewsTileVisible = true;
|
|
317
311
|
if (this.panelLoaded["Page"]?.loaded || this.panelLoaded["News"]?.loaded) {
|
|
318
312
|
// In case News Panel fails to load remove the panel and apply styles for page to take full width
|
|
@@ -118,8 +118,8 @@ declare module "sap/cux/home/NewsPanel" {
|
|
|
118
118
|
* @version 0.0.1
|
|
119
119
|
* @since 1.121
|
|
120
120
|
*
|
|
121
|
-
* @
|
|
122
|
-
* @
|
|
121
|
+
* @private
|
|
122
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
123
123
|
*
|
|
124
124
|
* @alias sap.cux.home.NewsPanel
|
|
125
125
|
*/
|
|
@@ -219,6 +219,14 @@ declare module "sap/cux/home/NewsPanel" {
|
|
|
219
219
|
* @returns {void}
|
|
220
220
|
*/
|
|
221
221
|
handleFeedError(): void;
|
|
222
|
+
/**
|
|
223
|
+
* Sets the URL for the news tile and triggers data fetch.
|
|
224
|
+
*
|
|
225
|
+
* @param {string} url - The news URL to be set.
|
|
226
|
+
* @returns {Promise<void>} A promise that resolves once data fetching is complete.
|
|
227
|
+
*
|
|
228
|
+
* @private
|
|
229
|
+
*/
|
|
222
230
|
setURL(url: string): Promise<void>;
|
|
223
231
|
/**
|
|
224
232
|
* Adjust layout based on the device type
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewsPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/NewsPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"NewsPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/NewsPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,wBAAwB,CAAC;IAWxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAQ3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;IACzE,OAAO,aAAa,MAAM,4BAA4B,CAAC;IAGvD,OAAO,SAAS,MAAM,wBAAwB,CAAC;IAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;IAShD,UAAU,YAAY;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KACf;IAED,UAAU,aAAa;QACtB,KAAK,EAAE,SAAS,EAAE,CAAC;KACnB;IAED,UAAiB,SAAS;QACzB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACzC,iBAAiB,CAAC,EAAE,SAAS,EAAE,CAAC;QAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACvB;IAED,UAAiB,SAAS;QACzB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,0BAA0B,CAAC,EAAE,OAAO,CAAC;KACrC;IAED,UAAU,e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BjC;;;;;;WAMG;QACI,2BAA2B;QAIlC;;;;WAIG;QACH,OAAO,CAAC,sBAAsB;QAa9B;;;;WAIG;QACH,OAAO,CAAC,uBAAuB;QAoB/B;;;;WAIG;QACI,mBAAmB,IAAI,OAAO;QAIrC;;;;;WAKG;gBACW,gBAAgB;QAsC9B;;;;;;;;WAQG;QACU,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,0BAA0B,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;QAYnH;;;;;;;WAOG;gBACW,iBAAiB;QA+B/B;;;;;WAKG;QACI,qBAAqB,CAAC,KAAK,EAAE,SAAS;QAS7C;;;;;;WAMG;QACU,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;QAejE;;;;;;WAMG;QACH,OAAO,CAAC,gBAAgB;QAoBxB;;;;;WAKG;QACH,OAAO,CAAC,UAAU;QAelB;;;WAGG;gBACW,mBAAmB;QAYjC;;;;WAIG;gBACW,kBAAkB;QAsChC;;;;;;;WAOG;QACH,OAAO,CAAC,iBAAiB;QASzB;;;;WAIG;QACH,OAAO,CAAC,iBAAiB;QAezB;;;WAGG;gBACW,kBAAkB;QAkBhC;;;;WAIG;QACH,OAAO,CAAC,cAAc;QA4BtB;;;;;WAKG;QACH,OAAO,CAAC,kBAAkB;QAc1B;;;;;;WAMG;QACH,OAAO,CAAC,mBAAmB;QA4B3B;;;;;;WAMG;QACH,OAAO,CAAC,iBAAiB;QAUzB;;;;;WAKG;QACH,OAAO,CAAC,aAAa;QA6CrB,OAAO,CAAC,uBAAuB;KAK/B;CAEA"}
|
|
@@ -234,8 +234,8 @@ sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/SlideTile", "sap/m/li
|
|
|
234
234
|
* @version 0.0.1
|
|
235
235
|
* @since 1.121
|
|
236
236
|
*
|
|
237
|
-
* @
|
|
238
|
-
* @
|
|
237
|
+
* @private
|
|
238
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
239
239
|
*
|
|
240
240
|
* @alias sap.cux.home.NewsPanel
|
|
241
241
|
*/
|
|
@@ -491,7 +491,7 @@ sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/SlideTile", "sap/m/li
|
|
|
491
491
|
//reset properties
|
|
492
492
|
_this2.setProperty("newsAvailable", true);
|
|
493
493
|
_this2.generateErrorMessage().setVisible(false);
|
|
494
|
-
|
|
494
|
+
_this2.setVisible(true);
|
|
495
495
|
_this2.oManageMenuItem.setVisible(true);
|
|
496
496
|
_this2.setManageNewsItemVisibility(true);
|
|
497
497
|
return Promise.resolve(_this2.setCustomNewsFeed("")).then(function () {});
|
|
@@ -727,18 +727,26 @@ sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/SlideTile", "sap/m/li
|
|
|
727
727
|
}
|
|
728
728
|
this.oNewsTile.setVisible(false);
|
|
729
729
|
} else {
|
|
730
|
-
|
|
730
|
+
this.setVisible(false);
|
|
731
731
|
this.setProperty("newsAvailable", false);
|
|
732
732
|
this.oManageMenuItem.setVisible(false);
|
|
733
733
|
}
|
|
734
734
|
},
|
|
735
|
+
/**
|
|
736
|
+
* Sets the URL for the news tile and triggers data fetch.
|
|
737
|
+
*
|
|
738
|
+
* @param {string} url - The news URL to be set.
|
|
739
|
+
* @returns {Promise<void>} A promise that resolves once data fetching is complete.
|
|
740
|
+
*
|
|
741
|
+
* @private
|
|
742
|
+
*/
|
|
735
743
|
setURL: function _setURL(url) {
|
|
736
744
|
try {
|
|
737
745
|
const _this5 = this;
|
|
738
746
|
_this5.setProperty("type", NewsType.NewsUrl);
|
|
739
747
|
_this5.setProperty("newsAvailable", true);
|
|
740
748
|
_this5.generateErrorMessage().setVisible(false);
|
|
741
|
-
|
|
749
|
+
_this5.setVisible(true);
|
|
742
750
|
_this5.oNewsTile.setVisible(true);
|
|
743
751
|
_this5.setProperty("url", url);
|
|
744
752
|
return Promise.resolve(_this5.getData()).then(function () {});
|
|
@@ -759,7 +767,7 @@ sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/SlideTile", "sap/m/li
|
|
|
759
767
|
this.oNewsTile.removeStyleClass("sapUiSmallMarginTop");
|
|
760
768
|
} else {
|
|
761
769
|
this.oNewsTile.addStyleClass("sapUiSmallMarginTop");
|
|
762
|
-
|
|
770
|
+
this.getNewsWrapper().setWidth("100%");
|
|
763
771
|
}
|
|
764
772
|
},
|
|
765
773
|
/**
|
|
@@ -778,11 +786,11 @@ sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/SlideTile", "sap/m/li
|
|
|
778
786
|
let oTile;
|
|
779
787
|
if (newsInfo.getElementsByTagName("link").length > 0) {
|
|
780
788
|
oTile = new NewsItem(recycleId(`${sId}-news-item`), {
|
|
781
|
-
url: this.getPropertyValue(newsInfo, "link"),
|
|
782
|
-
title: this.getPropertyValue(newsInfo, "title"),
|
|
783
|
-
subTitle: this.getPropertyValue(newsInfo, "description"),
|
|
784
|
-
imageUrl: this.getPropertyValue(newsInfo, "imageUrl"),
|
|
785
|
-
footer: this.formatDate(this.getPropertyValue(newsInfo, "pubDate"))
|
|
789
|
+
url: String(this.getPropertyValue(newsInfo, "link")),
|
|
790
|
+
title: String(this.getPropertyValue(newsInfo, "title")),
|
|
791
|
+
subTitle: String(this.getPropertyValue(newsInfo, "description")),
|
|
792
|
+
imageUrl: String(this.getPropertyValue(newsInfo, "imageUrl")),
|
|
793
|
+
footer: this.formatDate(String(this.getPropertyValue(newsInfo, "pubDate")))
|
|
786
794
|
});
|
|
787
795
|
this.addAggregation("newsItems", oTile, true);
|
|
788
796
|
} else {
|
|
@@ -790,12 +798,12 @@ sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/SlideTile", "sap/m/li
|
|
|
790
798
|
let newsId = sGroupId && sGroupId.trim() ? `${sId}-newsgroup-${sGroupId}` : `${sId}-newsgroup`;
|
|
791
799
|
let subTitleNews = this.getPropertyValue(newsInfo, "subTitle") ?? "";
|
|
792
800
|
oTile = new NewsGroup(recycleId(newsId), {
|
|
793
|
-
title: this.getPropertyValue(newsInfo, "title"),
|
|
801
|
+
title: String(this.getPropertyValue(newsInfo, "title")),
|
|
794
802
|
subTitle: subTitleNews || this._i18nBundle.getText("newsFeedDescription"),
|
|
795
|
-
imageUrl: this.getPropertyValue(newsInfo, "imageUrl"),
|
|
796
|
-
footer: this.getPropertyValue(newsInfo, "footer"),
|
|
803
|
+
imageUrl: String(this.getPropertyValue(newsInfo, "imageUrl")),
|
|
804
|
+
footer: String(this.getPropertyValue(newsInfo, "footer")),
|
|
797
805
|
priority: this.getPropertyValue(newsInfo, "priority"),
|
|
798
|
-
priorityText: this.getPropertyValue(newsInfo, "priorityText")
|
|
806
|
+
priorityText: String(this.getPropertyValue(newsInfo, "priorityText"))
|
|
799
807
|
});
|
|
800
808
|
this.addAggregation("newsGroup", oTile, true);
|
|
801
809
|
}
|
|
@@ -822,7 +830,7 @@ sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/SlideTile", "sap/m/li
|
|
|
822
830
|
return i++;
|
|
823
831
|
}, function () {
|
|
824
832
|
const oItemElement = oDocument?.getElementsByTagName("item")[i];
|
|
825
|
-
return Promise.resolve(_this6.extractImage(oItemElement.getElementsByTagName("link")[0].textContent)).then(function (sUrl) {
|
|
833
|
+
return Promise.resolve(_this6.extractImage(String(oItemElement.getElementsByTagName("link")[0].textContent))).then(function (sUrl) {
|
|
826
834
|
const oImageUrl = oDocument.createElement("imageUrl");
|
|
827
835
|
oImageUrl.textContent = sUrl;
|
|
828
836
|
oItemElement.appendChild(oImageUrl);
|