@sapui5/sap.cux.home 1.138.0 → 1.139.1
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/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/AppsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.js +17 -10
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.ts +19 -12
- package/src/sap/cux/home/AppsContainer.d.ts +2 -3
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.js +5 -8
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +4 -8
- 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.js +1 -1
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +1 -1
- package/src/sap/cux/home/BaseContainer.d.ts +2 -2
- package/src/sap/cux/home/BaseContainer.js +3 -3
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +3 -3
- package/src/sap/cux/home/BaseContainerRenderer.d.ts +4 -4
- package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js +17 -19
- package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.ts +21 -25
- package/src/sap/cux/home/BaseLayout.d.ts +2 -2
- package/src/sap/cux/home/BaseLayout.js +2 -2
- package/src/sap/cux/home/BaseLayout.js.map +1 -1
- package/src/sap/cux/home/BaseLayout.ts +2 -2
- 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 +2 -2
- package/src/sap/cux/home/BaseNewsPanel.js +2 -2
- package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
- package/src/sap/cux/home/BasePagePanel.d.ts +2 -2
- package/src/sap/cux/home/BasePagePanel.js +2 -2
- package/src/sap/cux/home/BasePagePanel.js.map +1 -1
- package/src/sap/cux/home/BasePagePanel.ts +2 -2
- package/src/sap/cux/home/BasePanel.d.ts +2 -2
- package/src/sap/cux/home/BasePanel.js +2 -2
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +2 -2
- 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 +3 -3
- package/src/sap/cux/home/BaseSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.js +4 -3
- package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.ts +6 -4
- 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 +4 -4
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +4 -7
- package/src/sap/cux/home/ContentAdditionDialog.js +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.ts +1 -1
- package/src/sap/cux/home/ErrorPanel.d.ts +2 -2
- package/src/sap/cux/home/ErrorPanel.js +2 -2
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +2 -2
- package/src/sap/cux/home/FavAppPanel.d.ts +2 -2
- package/src/sap/cux/home/FavAppPanel.js +2 -2
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +2 -2
- 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 +4 -7
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +4 -8
- package/src/sap/cux/home/InsightsContainer.d.ts +2 -3
- package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsContainer.js +6 -6
- package/src/sap/cux/home/InsightsContainer.js.map +1 -1
- package/src/sap/cux/home/InsightsContainer.ts +13 -7
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +5 -3
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +4 -2
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts +11 -5
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +160 -82
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +164 -82
- 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 +2 -3
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +2 -4
- 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 +24 -3
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js +49 -21
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.ts +53 -21
- package/src/sap/cux/home/NewsGroup.d.ts.map +1 -1
- package/src/sap/cux/home/NewsGroup.js +11 -6
- package/src/sap/cux/home/NewsGroup.js.map +1 -1
- package/src/sap/cux/home/NewsGroup.ts +11 -8
- package/src/sap/cux/home/NewsPanel.d.ts +36 -7
- package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.gen.d.ts +0 -91
- package/src/sap/cux/home/NewsPanel.js +281 -200
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +168 -102
- package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js +10 -6
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +12 -6
- package/src/sap/cux/home/NoDataContainer.d.ts +2 -3
- package/src/sap/cux/home/NoDataContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NoDataContainer.js +2 -2
- package/src/sap/cux/home/NoDataContainer.js.map +1 -1
- package/src/sap/cux/home/NoDataContainer.ts +2 -2
- package/src/sap/cux/home/PagePanel.d.ts +2 -2
- package/src/sap/cux/home/PagePanel.js +2 -2
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +2 -2
- 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.js +2 -2
- package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.ts +2 -2
- 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 +6 -3
- package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.ts +6 -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 +4 -11
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +5 -11
- package/src/sap/cux/home/TilesPanel.d.ts +2 -2
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.js +6 -6
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +6 -12
- 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 +4 -19
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +4 -20
- 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 +5 -5
- package/src/sap/cux/home/ToDosContainer.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.ts +3 -3
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -0
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +1 -0
- package/src/sap/cux/home/i18n/messagebundle.properties +17 -5
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_da.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_de.properties +15 -15
- package/src/sap/cux/home/i18n/messagebundle_el.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_en.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +12 -6
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_es.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_et.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_id.properties +6 -6
- package/src/sap/cux/home/i18n/messagebundle_it.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +9 -9
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_no.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +6 -6
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_th.properties +7 -7
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +6 -6
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +5 -5
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +5 -5
- package/src/sap/cux/home/interface/CardsInterface.d.ts +1 -5
- package/src/sap/cux/home/interface/CardsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.js.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.ts +1 -1
- package/src/sap/cux/home/interface/KeyUserInterface.d.ts +2 -0
- package/src/sap/cux/home/interface/KeyUserInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/KeyUserInterface.js.map +1 -1
- package/src/sap/cux/home/interface/KeyUserInterface.ts +2 -0
- package/src/sap/cux/home/library.d.ts +26 -15
- package/src/sap/cux/home/library.d.ts.map +1 -1
- package/src/sap/cux/home/library.js +26 -15
- package/src/sap/cux/home/library.js.map +1 -1
- package/src/sap/cux/home/library.ts +27 -15
- package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +0 -8
- package/src/sap/cux/home/themes/base/NewsAndPagesContainer.less +4 -0
- package/src/sap/cux/home/themes/base/ToDosContainer.less +2 -1
- package/src/sap/cux/home/utils/CommonUtils.d.ts +1 -1
- package/src/sap/cux/home/utils/CommonUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/CommonUtils.js.map +1 -1
- package/src/sap/cux/home/utils/CommonUtils.ts +5 -2
- package/src/sap/cux/home/utils/FeatureUtils.js +0 -2
- package/src/sap/cux/home/utils/FeatureUtils.js.map +1 -1
- package/src/sap/cux/home/utils/FeatureUtils.ts +3 -3
- package/src/sap/cux/home/utils/HttpHelper.js.map +1 -1
- package/src/sap/cux/home/utils/HttpHelper.ts +1 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts.map +1 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.js +0 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.js.map +1 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.ts +0 -1
- package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +9 -4
- package/src/sap/cux/home/{AppsContainerGenericPlaceholder.d.ts → utils/placeholder/AppsPlaceholder.d.ts} +2 -2
- package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/{AppsContainerGenericPlaceholder.js → utils/placeholder/AppsPlaceholder.js} +1 -1
- package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.js → utils/placeholder/InsightsPlaceholder.js} +1 -1
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +1 -0
- package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.d.ts → utils/placeholder/NewsAndPagesPlaceholder.d.ts} +3 -3
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/{NewsAndPagesContainerGenericPlaceholder.js → utils/placeholder/NewsAndPagesPlaceholder.js} +1 -1
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +1 -0
- package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.d.ts → utils/placeholder/ToDosPlaceholder.d.ts} +2 -2
- package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.js → utils/placeholder/ToDosPlaceholder.js} +1 -1
- package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.js.map +1 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.js.map +0 -1
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.js.map +0 -1
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts +0 -8
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.js.map +0 -1
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.js.map +0 -1
- /package/src/sap/cux/home/{AppsContainerGenericPlaceholder.ts → utils/placeholder/AppsPlaceholder.ts} +0 -0
- /package/src/sap/cux/home/{InsightsContainerGenericPlaceholder.ts → utils/placeholder/InsightsPlaceholder.ts} +0 -0
- /package/src/sap/cux/home/{NewsAndPagesContainerGenericPlaceholder.ts → utils/placeholder/NewsAndPagesPlaceholder.ts} +0 -0
- /package/src/sap/cux/home/{ToDosContainerGenericPlaceholder.ts → utils/placeholder/ToDosPlaceholder.ts} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
3
|
* * (c) Copyright 2009-2025 SAP SE. All rights reserved
|
|
4
4
|
*/
|
|
5
|
-
sap.ui.define(["sap/m/Button", "sap/m/
|
|
5
|
+
sap.ui.define(["sap/m/Button", "sap/m/Input", "sap/m/Label", "sap/m/MessageBox", "sap/m/MessageStrip", "sap/m/MessageToast", "sap/m/RadioButton", "sap/m/Toolbar", "sap/m/VBox", "sap/m/library", "sap/ui/core/EventBus", "sap/ui/core/message/MessageType", "sap/ui/layout/form/SimpleForm", "sap/ui/unified/FileUploader", "sap/ushell/Container", "./BaseSettingsPanel", "./flexibility/Layout.flexibility", "./library", "./utils/Constants", "./utils/HttpHelper"], function (Button, Input, Label, MessageBox, MessageStrip, MessageToast, RadioButton, Toolbar, VBox, Library, EventBus, MessageType, SimpleForm, FileUploader, Container, __BaseSettingsPanel, ___flexibility_Layoutflexibility, ___library, ___utils_Constants, __HttpHelper) {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
8
|
function _interopRequireDefault(obj) {
|
|
@@ -21,6 +21,7 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
21
21
|
}
|
|
22
22
|
const BaseSettingsPanel = _interopRequireDefault(__BaseSettingsPanel);
|
|
23
23
|
const CHANGE_TYPES = ___flexibility_Layoutflexibility["CHANGE_TYPES"];
|
|
24
|
+
const NewsType = ___library["NewsType"];
|
|
24
25
|
const DEFAULT_NEWS_URL = ___utils_Constants["DEFAULT_NEWS_URL"];
|
|
25
26
|
const KEYUSER_SETTINGS_PANELS_KEYS = ___utils_Constants["KEYUSER_SETTINGS_PANELS_KEYS"];
|
|
26
27
|
const HttpHelper = _interopRequireDefault(__HttpHelper);
|
|
@@ -94,18 +95,22 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
94
95
|
this.controlMap.set(wrapperVBoxId, wrapperVBox);
|
|
95
96
|
return wrapperVBox;
|
|
96
97
|
},
|
|
98
|
+
checkNewsType: function _checkNewsType(type) {
|
|
99
|
+
if (this._getPanel().getProperty("type") === type) return true;
|
|
100
|
+
return false;
|
|
101
|
+
},
|
|
97
102
|
isValidChanges: function _isValidChanges(newsVisible) {
|
|
98
103
|
try {
|
|
99
104
|
const _this = this;
|
|
100
|
-
function
|
|
105
|
+
function _temp5() {
|
|
101
106
|
return _this.validChanges;
|
|
102
107
|
}
|
|
103
108
|
_this.validChanges = true;
|
|
104
109
|
const fileUploader = _this.getFileUploader();
|
|
105
110
|
const keyUserChangeContent = _this.getCurrentKeyUserChange();
|
|
106
|
-
const showCustom = _this.customNewsVisibility
|
|
107
|
-
const showDefault = _this.defaultNewsVisibility ?? !!_this.
|
|
108
|
-
const
|
|
111
|
+
const showCustom = _this.customNewsVisibility ?? !!_this.checkNewsType(NewsType.Custom);
|
|
112
|
+
const showDefault = _this.defaultNewsVisibility ?? !!_this.checkNewsType(NewsType.Default);
|
|
113
|
+
const _temp4 = function () {
|
|
109
114
|
if (_this.getNewsFeedUploadBtn().getEnabled()) {
|
|
110
115
|
if (showCustom) {
|
|
111
116
|
MessageBox.error(String(_this._i18nBundle.getText("newsFeedSaveUploadChanges")));
|
|
@@ -116,24 +121,32 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
116
121
|
}
|
|
117
122
|
}
|
|
118
123
|
} else {
|
|
119
|
-
const
|
|
124
|
+
const _temp3 = function () {
|
|
120
125
|
if (showCustom && fileUploader.getValue() === "" && newsVisible) {
|
|
121
126
|
_this.showMessageStrip(true, MessageType.Error, "noNewsFileError");
|
|
122
127
|
_this.validChanges = false;
|
|
123
128
|
} else {
|
|
124
|
-
const
|
|
129
|
+
const _temp2 = function () {
|
|
125
130
|
if (!showCustom && !showDefault && newsVisible && !_this.getMessageStrip().getVisible()) {
|
|
126
131
|
const newsUrl = keyUserChangeContent.newsFeedURL;
|
|
127
|
-
|
|
132
|
+
const _temp = function () {
|
|
133
|
+
if (!newsUrl?.trim()) {
|
|
134
|
+
_this.showMessageStrip(true, MessageType.Error, "invalidNewsUrl");
|
|
135
|
+
_this.validChanges = false;
|
|
136
|
+
} else {
|
|
137
|
+
return Promise.resolve(_this._getPanel().setURL(String(newsUrl))).then(function () {});
|
|
138
|
+
}
|
|
139
|
+
}();
|
|
140
|
+
if (_temp && _temp.then) return _temp.then(function () {});
|
|
128
141
|
}
|
|
129
142
|
}();
|
|
130
|
-
if (
|
|
143
|
+
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
131
144
|
}
|
|
132
145
|
}();
|
|
133
|
-
if (
|
|
146
|
+
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
134
147
|
}
|
|
135
148
|
}();
|
|
136
|
-
return Promise.resolve(
|
|
149
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp5) : _temp5(_temp4));
|
|
137
150
|
} catch (e) {
|
|
138
151
|
return Promise.reject(e);
|
|
139
152
|
}
|
|
@@ -144,12 +157,14 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
144
157
|
const newsUrlInput = this.controlMap.get(`${this.getId()}-newsFeedURLInput`);
|
|
145
158
|
const url = String(newsPanel.getProperty("url"));
|
|
146
159
|
newsUrlInput.setValue(url !== DEFAULT_NEWS_URL ? url : "");
|
|
147
|
-
this.customNewsVisibility =
|
|
148
|
-
this.defaultNewsVisibility =
|
|
160
|
+
this.customNewsVisibility = this.checkNewsType(NewsType.Custom);
|
|
161
|
+
this.defaultNewsVisibility = this.checkNewsType(NewsType.Default);
|
|
162
|
+
this.rssNewsVisibility = this.checkNewsType(NewsType.NewsUrl);
|
|
149
163
|
this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`).setEnabled(this.customNewsVisibility);
|
|
150
|
-
this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(
|
|
151
|
-
this.controlMap.get(`${this.getId()}-
|
|
152
|
-
this.controlMap.get(`${this.getId()}-
|
|
164
|
+
this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(this.rssNewsVisibility);
|
|
165
|
+
this.controlMap.get(`${this.getId()}-customNewsFeedRadioBtn`).setSelected(this.customNewsVisibility);
|
|
166
|
+
this.controlMap.get(`${this.getId()}-defaultNewsFeedRadioBtn`).setSelected(this.defaultNewsVisibility);
|
|
167
|
+
this.controlMap.get(`${this.getId()}-newsUrlRadioBtn`).setSelected(this.rssNewsVisibility);
|
|
153
168
|
this.getFileUploader().setValue(String(newsPanel.getProperty("customFileName")));
|
|
154
169
|
this.clearKeyUserChanges();
|
|
155
170
|
},
|
|
@@ -175,10 +190,9 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
175
190
|
wrapperVBox.addItem(this.controlMap.get(keyUserNewsPanelToolbarId));
|
|
176
191
|
},
|
|
177
192
|
handleSelectCustomNewsFeed: function _handleSelectCustomNewsFeed(oEvent) {
|
|
178
|
-
this.customNewsVisibility = oEvent.
|
|
193
|
+
this.customNewsVisibility = oEvent.getParameter("selected");
|
|
179
194
|
this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`).setEnabled(this.customNewsVisibility);
|
|
180
195
|
this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(!this.customNewsVisibility);
|
|
181
|
-
this.controlMap.get(`${this.getId()}-defaultNewsFeedCheckBox`).setEnabled(!this.customNewsVisibility);
|
|
182
196
|
const newsPanel = this._getPanel();
|
|
183
197
|
const newsPageContainer = newsPanel.getParent();
|
|
184
198
|
const layout = newsPageContainer.getParent();
|
|
@@ -190,14 +204,16 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
190
204
|
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
191
205
|
content: {
|
|
192
206
|
oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
|
|
193
|
-
oldShowCustomNewsFeed:
|
|
207
|
+
oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
|
|
194
208
|
oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
195
|
-
oldshowDefaultNewsFeed:
|
|
209
|
+
oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
|
|
210
|
+
oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
|
|
196
211
|
newsFeedURL: String(this._getPanel().getProperty("url")),
|
|
197
212
|
showCustomNewsFeed: this.customNewsVisibility,
|
|
198
213
|
customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
199
214
|
customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
|
|
200
|
-
showDefaultNewsFeed:
|
|
215
|
+
showDefaultNewsFeed: false,
|
|
216
|
+
showRssNewsFeed: false
|
|
201
217
|
}
|
|
202
218
|
}
|
|
203
219
|
});
|
|
@@ -214,63 +230,124 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
214
230
|
});
|
|
215
231
|
},
|
|
216
232
|
/**
|
|
217
|
-
* Add
|
|
233
|
+
* Add Radio Button for Custom News Feed.
|
|
218
234
|
*
|
|
219
235
|
* @private
|
|
220
236
|
*/
|
|
221
|
-
|
|
222
|
-
const
|
|
223
|
-
const showCustom =
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
const customNewsFeedCheckBox = new CheckBox(`${this.getId()}-customNewsFeedCheckBox`, {
|
|
237
|
+
addCustomNewsFeedRadioBtn: function _addCustomNewsFeedRadioBtn(wrapperVBox) {
|
|
238
|
+
const customNewsFeedRadioBtnId = `${this.getId()}-customNewsFeedRadioBtn`;
|
|
239
|
+
const showCustom = this.checkNewsType(NewsType.Custom);
|
|
240
|
+
if (!this.controlMap.get(customNewsFeedRadioBtnId)) {
|
|
241
|
+
const customNewsFeedRadioBtn = new RadioButton(`${this.getId()}-customNewsFeedRadioBtn`, {
|
|
227
242
|
text: this._i18nBundle.getText("selectCustomNewsFeed"),
|
|
228
243
|
selected: showCustom,
|
|
229
|
-
select: this.handleSelectCustomNewsFeed.bind(this)
|
|
230
|
-
enabled: !showDefault
|
|
244
|
+
select: this.handleSelectCustomNewsFeed.bind(this)
|
|
231
245
|
}).addStyleClass("sapUiTinyMargin");
|
|
232
|
-
this.controlMap.set(
|
|
246
|
+
this.controlMap.set(customNewsFeedRadioBtnId, customNewsFeedRadioBtn);
|
|
233
247
|
} else if (!this.getCurrentKeyUserChange()) {
|
|
234
|
-
let
|
|
235
|
-
|
|
236
|
-
|
|
248
|
+
let customRadioBtn = this.controlMap.get(`${this.getId()}-customNewsFeedRadioBtn`);
|
|
249
|
+
customRadioBtn.setSelected(showCustom);
|
|
250
|
+
this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`).setEnabled(showCustom);
|
|
237
251
|
}
|
|
238
|
-
wrapperVBox.addItem(this.controlMap.get(
|
|
252
|
+
wrapperVBox.addItem(this.controlMap.get(customNewsFeedRadioBtnId));
|
|
239
253
|
},
|
|
240
254
|
/**
|
|
241
|
-
* Add
|
|
255
|
+
* Add Radio Button for Manage News Feed.
|
|
242
256
|
*
|
|
243
257
|
* @private
|
|
244
258
|
*/
|
|
245
|
-
|
|
246
|
-
const
|
|
247
|
-
const showDefault =
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
const defaultNewsFeedCheckBox = new CheckBox(`${this.getId()}-defaultNewsFeedCheckBox`, {
|
|
259
|
+
addDefaultNewsFeedRadioBtn: function _addDefaultNewsFeedRadioBtn(wrapperVBox) {
|
|
260
|
+
const defaultNewsFeedRadioBtnId = `${this.getId()}-defaultNewsFeedRadioBtn`;
|
|
261
|
+
const showDefault = this.checkNewsType(NewsType.Default);
|
|
262
|
+
if (!this.controlMap.get(defaultNewsFeedRadioBtnId)) {
|
|
263
|
+
const defaultNewsFeedRadioBtn = new RadioButton(`${this.getId()}-defaultNewsFeedRadioBtn`, {
|
|
251
264
|
text: this._i18nBundle.getText("selectDefaultNewsFeed"),
|
|
252
265
|
selected: showDefault,
|
|
253
|
-
select: this.handleselectDefaultNewsFeed.bind(this)
|
|
254
|
-
enabled: !showCustom
|
|
266
|
+
select: this.handleselectDefaultNewsFeed.bind(this)
|
|
255
267
|
}).addStyleClass("sapUiTinyMargin");
|
|
256
|
-
this.controlMap.set(
|
|
268
|
+
this.controlMap.set(defaultNewsFeedRadioBtnId, defaultNewsFeedRadioBtn);
|
|
257
269
|
} else if (!this.getCurrentKeyUserChange()) {
|
|
258
|
-
let
|
|
259
|
-
|
|
260
|
-
|
|
270
|
+
let defaultRadioBtn = this.controlMap.get(`${this.getId()}-defaultNewsFeedRadioBtn`);
|
|
271
|
+
defaultRadioBtn.setSelected(showDefault);
|
|
272
|
+
}
|
|
273
|
+
wrapperVBox.addItem(this.controlMap.get(defaultNewsFeedRadioBtnId));
|
|
274
|
+
},
|
|
275
|
+
addNewsPaneLabel: function _addNewsPaneLabel(wrapperVBox) {
|
|
276
|
+
const newsPanelLabelId = `${this.getId()}-newsPanelLabel`;
|
|
277
|
+
if (!this.controlMap.get(newsPanelLabelId)) {
|
|
278
|
+
const newsPanelLabel = new Label(newsPanelLabelId, {
|
|
279
|
+
text: this._i18nBundle.getText("newsFeedOptionLabel")
|
|
280
|
+
}).addStyleClass("sapUiTinyMargin");
|
|
281
|
+
this.controlMap.set(newsPanelLabelId, newsPanelLabel);
|
|
261
282
|
}
|
|
262
|
-
wrapperVBox.addItem(this.controlMap.get(
|
|
283
|
+
wrapperVBox.addItem(this.controlMap.get(newsPanelLabelId));
|
|
284
|
+
},
|
|
285
|
+
handleSelectRssNewsFeed: function _handleSelectRssNewsFeed(oEvent) {
|
|
286
|
+
this.rssNewsVisibility = oEvent.getParameter("selected");
|
|
287
|
+
this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`).setEnabled(!this.rssNewsVisibility);
|
|
288
|
+
this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(this.rssNewsVisibility);
|
|
289
|
+
const newsPanel = this._getPanel();
|
|
290
|
+
const newsPageContainer = newsPanel.getParent();
|
|
291
|
+
const layout = newsPageContainer.getParent();
|
|
292
|
+
const keyUserChangeContent = this.getCurrentKeyUserChange();
|
|
293
|
+
if (!keyUserChangeContent) {
|
|
294
|
+
this.addKeyUserChanges({
|
|
295
|
+
selectorControl: layout,
|
|
296
|
+
changeSpecificData: {
|
|
297
|
+
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
298
|
+
content: {
|
|
299
|
+
oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
|
|
300
|
+
oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
|
|
301
|
+
oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
302
|
+
oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
|
|
303
|
+
oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
|
|
304
|
+
newsFeedURL: String(this._getPanel().getProperty("url")),
|
|
305
|
+
showCustomNewsFeed: false,
|
|
306
|
+
customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
307
|
+
customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
|
|
308
|
+
showDefaultNewsFeed: false,
|
|
309
|
+
showRssNewsFeed: this.rssNewsVisibility
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
this._eventBus.publish("KeyUserChanges", "addNewsPagesChanges", {
|
|
314
|
+
changes: this.getKeyUserChanges()
|
|
315
|
+
});
|
|
316
|
+
} else if (keyUserChangeContent.showRssNewsFeed !== this.rssNewsVisibility) {
|
|
317
|
+
keyUserChangeContent.showRssNewsFeed = this.rssNewsVisibility;
|
|
318
|
+
}
|
|
319
|
+
this.removeUrlMesageStrip();
|
|
320
|
+
this._eventBus.publish("KeyUserChanges", "disabledSaveBtn", {
|
|
321
|
+
disable: false,
|
|
322
|
+
date: new Date()
|
|
323
|
+
});
|
|
324
|
+
},
|
|
325
|
+
addNewsUrlRadioBtn: function _addNewsUrlRadioBtn(wrapperVBox) {
|
|
326
|
+
const newsUrlRadioBtnId = `${this.getId()}-newsUrlRadioBtn`;
|
|
327
|
+
const showRss = this.checkNewsType(NewsType.NewsUrl);
|
|
328
|
+
if (!this.controlMap.get(newsUrlRadioBtnId)) {
|
|
329
|
+
const newsUrlRadioBtn = new RadioButton(`${this.getId()}-newsUrlRadioBtn`, {
|
|
330
|
+
text: this._i18nBundle.getText("selectNewsFeedUrl"),
|
|
331
|
+
selected: showRss,
|
|
332
|
+
select: this.handleSelectRssNewsFeed.bind(this)
|
|
333
|
+
}).addStyleClass("sapUiTinyMargin");
|
|
334
|
+
this.controlMap.set(newsUrlRadioBtnId, newsUrlRadioBtn);
|
|
335
|
+
} else if (!this.getCurrentKeyUserChange()) {
|
|
336
|
+
let rssRadioBtn = this.controlMap.get(`${this.getId()}-newsUrlRadioBtn`);
|
|
337
|
+
rssRadioBtn.setSelected(showRss);
|
|
338
|
+
this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(showRss);
|
|
339
|
+
}
|
|
340
|
+
wrapperVBox.addItem(this.controlMap.get(newsUrlRadioBtnId));
|
|
263
341
|
},
|
|
264
342
|
/**
|
|
265
|
-
* Handle the selection of the Manage News Feed
|
|
343
|
+
* Handle the selection of the Manage News Feed Radio Button.
|
|
266
344
|
*
|
|
267
345
|
* @private
|
|
268
346
|
*/
|
|
269
347
|
handleselectDefaultNewsFeed: function _handleselectDefaultNewsFeed(oEvent) {
|
|
270
|
-
this.defaultNewsVisibility = oEvent.
|
|
348
|
+
this.defaultNewsVisibility = oEvent.getParameter("selected");
|
|
271
349
|
this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`).setEnabled(!this.defaultNewsVisibility);
|
|
272
350
|
this.controlMap.get(`${this.getId()}-newsFeedURLInput`).setEnabled(!this.defaultNewsVisibility);
|
|
273
|
-
this.controlMap.get(`${this.getId()}-customNewsFeedCheckBox`).setEnabled(!this.defaultNewsVisibility);
|
|
274
351
|
const newsPanel = this._getPanel();
|
|
275
352
|
const newsPageContainer = newsPanel.getParent();
|
|
276
353
|
const layout = newsPageContainer.getParent();
|
|
@@ -283,14 +360,16 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
283
360
|
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
284
361
|
content: {
|
|
285
362
|
oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
|
|
286
|
-
oldShowCustomNewsFeed:
|
|
363
|
+
oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
|
|
287
364
|
oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
288
|
-
oldshowDefaultNewsFeed:
|
|
365
|
+
oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
|
|
366
|
+
oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
|
|
289
367
|
newsFeedURL: String(newsUrlInput.getValue()),
|
|
290
|
-
showCustomNewsFeed:
|
|
368
|
+
showCustomNewsFeed: false,
|
|
291
369
|
customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
292
370
|
customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
|
|
293
|
-
showDefaultNewsFeed: this.defaultNewsVisibility
|
|
371
|
+
showDefaultNewsFeed: this.defaultNewsVisibility,
|
|
372
|
+
showRssNewsFeed: false
|
|
294
373
|
}
|
|
295
374
|
}
|
|
296
375
|
});
|
|
@@ -299,6 +378,7 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
299
378
|
});
|
|
300
379
|
} else if (keyUserChangeContent.showDefaultNewsFeed !== this.defaultNewsVisibility) {
|
|
301
380
|
keyUserChangeContent.showDefaultNewsFeed = this.defaultNewsVisibility;
|
|
381
|
+
keyUserChangeContent.showCustomNewsFeed = false;
|
|
302
382
|
}
|
|
303
383
|
this.removeUrlMesageStrip();
|
|
304
384
|
this._eventBus.publish("KeyUserChanges", "disabledSaveBtn", {
|
|
@@ -325,14 +405,16 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
325
405
|
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
326
406
|
content: {
|
|
327
407
|
oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
|
|
328
|
-
oldShowCustomNewsFeed:
|
|
408
|
+
oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
|
|
329
409
|
oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
330
|
-
oldshowDefaultNewsFeed:
|
|
410
|
+
oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
|
|
411
|
+
oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
|
|
331
412
|
newsFeedURL: newsUrl,
|
|
332
413
|
showCustomNewsFeed: false,
|
|
333
414
|
customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
334
415
|
customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
|
|
335
|
-
showDefaultNewsFeed: false
|
|
416
|
+
showDefaultNewsFeed: false,
|
|
417
|
+
showRssNewsFeed: this.rssNewsVisibility
|
|
336
418
|
}
|
|
337
419
|
}
|
|
338
420
|
});
|
|
@@ -390,22 +472,17 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
390
472
|
*/
|
|
391
473
|
addNewsURLSimpleForm: function _addNewsURLSimpleForm(wrapperVBox) {
|
|
392
474
|
const newsFeedURLSimpleFormId = `${this.getId()}-newsFeedURLSimpleForm`;
|
|
393
|
-
const
|
|
394
|
-
const showDefault = Boolean(this._getPanel().getProperty("showDefault"));
|
|
475
|
+
const showRss = this.checkNewsType(NewsType.NewsUrl);
|
|
395
476
|
const newsInputUrl = String(this._getPanel().getProperty("url"));
|
|
396
477
|
if (!this.controlMap.get(newsFeedURLSimpleFormId)) {
|
|
397
|
-
const newsFeedURLSimpleForm = new SimpleForm(`${this.getId()}-newsFeedURLSimpleForm
|
|
398
|
-
content: [new Label(`${this.getId()}-newsFeedURLLabel`, {
|
|
399
|
-
text: this._i18nBundle.getText("editNewsURL")
|
|
400
|
-
})]
|
|
401
|
-
}).addStyleClass("sapContrastPlus");
|
|
478
|
+
const newsFeedURLSimpleForm = new SimpleForm(`${this.getId()}-newsFeedURLSimpleForm`).addStyleClass("sapContrastPlus");
|
|
402
479
|
const newsFeedURLInputId = `${this.getId()}-newsFeedURLInput`;
|
|
403
480
|
const newsFeedURLInput = new Input(newsFeedURLInputId, {
|
|
404
481
|
value: newsInputUrl !== DEFAULT_NEWS_URL ? newsInputUrl : "",
|
|
405
482
|
type: Library.InputType.Url,
|
|
406
483
|
change: this.onNewsUrlChange.bind(this),
|
|
407
484
|
liveChange: this.onUrlLiveChange.bind(this),
|
|
408
|
-
enabled:
|
|
485
|
+
enabled: showRss
|
|
409
486
|
});
|
|
410
487
|
this.controlMap.set(newsFeedURLInputId, newsFeedURLInput);
|
|
411
488
|
newsFeedURLSimpleForm.addContent(newsFeedURLInput);
|
|
@@ -413,7 +490,6 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
413
490
|
} else if (this.getCurrentKeyUserChange()) {
|
|
414
491
|
let inputUrlField = this.controlMap.get(`${this.getId()}-newsFeedURLInput`);
|
|
415
492
|
inputUrlField.setValue(newsInputUrl);
|
|
416
|
-
inputUrlField.setEnabled(!showCustom && !showDefault);
|
|
417
493
|
}
|
|
418
494
|
wrapperVBox.addItem(this.controlMap.get(newsFeedURLSimpleFormId));
|
|
419
495
|
},
|
|
@@ -488,14 +564,16 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
488
564
|
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
489
565
|
content: {
|
|
490
566
|
oldNewsFeedUrl: String(_this2._getPanel().getProperty("url")),
|
|
491
|
-
oldShowCustomNewsFeed:
|
|
567
|
+
oldShowCustomNewsFeed: _this2.checkNewsType(NewsType.Custom),
|
|
492
568
|
oldCustomNewsFeedKey: String(_this2._getPanel().getProperty("customFeedKey")),
|
|
493
|
-
oldshowDefaultNewsFeed:
|
|
569
|
+
oldshowDefaultNewsFeed: _this2.checkNewsType(NewsType.Default),
|
|
570
|
+
oldShowRssNewsFeed: _this2.checkNewsType(NewsType.NewsUrl),
|
|
494
571
|
newsFeedURL: String(_this2._getPanel().getProperty("url")),
|
|
495
572
|
showCustomNewsFeed: true,
|
|
496
573
|
customNewsFeedKey: String(_this2._getPanel().getProperty("customFeedKey")),
|
|
497
574
|
customNewsFeedFileName: String(_this2._getPanel().getProperty("customFileName")),
|
|
498
|
-
showDefaultNewsFeed:
|
|
575
|
+
showDefaultNewsFeed: false,
|
|
576
|
+
showRssNewsFeed: false
|
|
499
577
|
}
|
|
500
578
|
}
|
|
501
579
|
});
|
|
@@ -514,14 +592,16 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
514
592
|
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
515
593
|
content: {
|
|
516
594
|
oldNewsFeedUrl: String(_this2._getPanel().getProperty("url")),
|
|
517
|
-
oldShowCustomNewsFeed:
|
|
595
|
+
oldShowCustomNewsFeed: _this2.checkNewsType(NewsType.Custom),
|
|
518
596
|
oldCustomNewsFeedKey: String(_this2._getPanel().getProperty("customFeedKey")),
|
|
519
|
-
oldshowDefaultNewsFeed:
|
|
597
|
+
oldshowDefaultNewsFeed: _this2.checkNewsType(NewsType.Default),
|
|
598
|
+
oldShowRssNewsFeed: _this2.checkNewsType(NewsType.NewsUrl),
|
|
520
599
|
newsFeedURL: String(_this2._getPanel().getProperty("url")),
|
|
521
600
|
showCustomNewsFeed: true,
|
|
522
601
|
customNewsFeedKey: customKey,
|
|
523
602
|
customNewsFeedFileName: _this2.getFileUploader().getValue(),
|
|
524
|
-
showDefaultNewsFeed:
|
|
603
|
+
showDefaultNewsFeed: false,
|
|
604
|
+
showRssNewsFeed: false
|
|
525
605
|
}
|
|
526
606
|
}
|
|
527
607
|
});
|
|
@@ -592,11 +672,7 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
592
672
|
addCustomNewsUploadSimpleForm: function _addCustomNewsUploadSimpleForm(wrapperVBox) {
|
|
593
673
|
const customNewsUploadSimpleFormId = `${this.getId()}-customNewsUploadSimpleForm`;
|
|
594
674
|
if (!this.controlMap.get(customNewsUploadSimpleFormId)) {
|
|
595
|
-
const customNewsUploadSimpleForm = new SimpleForm(`${this.getId()}-customNewsUploadSimpleForm
|
|
596
|
-
content: [new Label(`${this.getId()}-customNewsUploadLabel`, {
|
|
597
|
-
text: this._i18nBundle.getText("customNewsFeed")
|
|
598
|
-
})]
|
|
599
|
-
}).addStyleClass("sapContrastPlus");
|
|
675
|
+
const customNewsUploadSimpleForm = new SimpleForm(`${this.getId()}-customNewsUploadSimpleForm`).addStyleClass("sapContrastPlus");
|
|
600
676
|
const customNewsUploadVBox = new VBox(`${this.getId()}-customNewsUploadVBox`);
|
|
601
677
|
const customNewsUploadFileUploader = `${this.getId()}-customNewsUploadFileUploader`;
|
|
602
678
|
const newsPanel = this._getPanel();
|
|
@@ -611,7 +687,7 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
611
687
|
sameFilenameAllowed: true,
|
|
612
688
|
afterDialogClose: this.handleFileDialogClose.bind(this),
|
|
613
689
|
value: String(this._getPanel().getProperty("customFileName")),
|
|
614
|
-
enabled: this.
|
|
690
|
+
enabled: this.checkNewsType(NewsType.Custom)
|
|
615
691
|
});
|
|
616
692
|
this.controlMap.set(customNewsUploadFileUploader, customNewsUploadFileUploaderControl);
|
|
617
693
|
const customNewsUploadFileUploaderButtonId = `${this.getId()}-customNewsUploadFileUploaderButton`;
|
|
@@ -639,9 +715,11 @@ sap.ui.define(["sap/m/Button", "sap/m/CheckBox", "sap/m/Input", "sap/m/Label", "
|
|
|
639
715
|
const wrapperVBox = this.controlMap.get(wrapperVBoxId);
|
|
640
716
|
wrapperVBox.removeAllItems();
|
|
641
717
|
this.addMessageStrip(wrapperVBox);
|
|
642
|
-
this.
|
|
643
|
-
this.
|
|
718
|
+
this.addNewsPaneLabel(wrapperVBox);
|
|
719
|
+
this.addDefaultNewsFeedRadioBtn(wrapperVBox);
|
|
720
|
+
this.addNewsUrlRadioBtn(wrapperVBox);
|
|
644
721
|
this.addNewsURLSimpleForm(wrapperVBox);
|
|
722
|
+
this.addCustomNewsFeedRadioBtn(wrapperVBox);
|
|
645
723
|
this.addCustomNewsUploadSimpleForm(wrapperVBox);
|
|
646
724
|
}
|
|
647
725
|
});
|