@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
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import Button from "sap/m/Button";
|
|
7
|
-
import CheckBox, { CheckBox$SelectEvent } from "sap/m/CheckBox";
|
|
8
7
|
import Input, { Input$LiveChangeEvent } from "sap/m/Input";
|
|
9
8
|
import { InputBase$ChangeEvent } from "sap/m/InputBase";
|
|
10
9
|
import Label from "sap/m/Label";
|
|
11
10
|
import MessageBox from "sap/m/MessageBox";
|
|
12
11
|
import MessageStrip from "sap/m/MessageStrip";
|
|
13
12
|
import MessageToast from "sap/m/MessageToast";
|
|
13
|
+
import RadioButton, { RadioButton$SelectEvent } from "sap/m/RadioButton";
|
|
14
14
|
import Toolbar from "sap/m/Toolbar";
|
|
15
15
|
import VBox from "sap/m/VBox";
|
|
16
16
|
import Library from "sap/m/library";
|
|
@@ -29,6 +29,7 @@ import NewsAndPagesContainer from "./NewsAndPagesContainer";
|
|
|
29
29
|
import NewsPanel, { FileFormat } from "./NewsPanel";
|
|
30
30
|
import { CHANGE_TYPES } from "./flexibility/Layout.flexibility";
|
|
31
31
|
import { INewsPersData } from "./interface/KeyUserInterface";
|
|
32
|
+
import { NewsType } from "./library";
|
|
32
33
|
import { DEFAULT_NEWS_URL, KEYUSER_SETTINGS_PANELS_KEYS } from "./utils/Constants";
|
|
33
34
|
import HttpHelper from "./utils/HttpHelper";
|
|
34
35
|
|
|
@@ -75,6 +76,7 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
75
76
|
private customNewsVisibility!: boolean;
|
|
76
77
|
private defaultNewsVisibility!: boolean;
|
|
77
78
|
private validChanges!: boolean;
|
|
79
|
+
private rssNewsVisibility!: boolean;
|
|
78
80
|
|
|
79
81
|
/**
|
|
80
82
|
* Init lifecycle method
|
|
@@ -136,13 +138,17 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
136
138
|
return wrapperVBox;
|
|
137
139
|
}
|
|
138
140
|
|
|
141
|
+
public checkNewsType(type: NewsType): boolean {
|
|
142
|
+
if (this._getPanel().getProperty("type") === type) return true;
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
|
|
139
146
|
public async isValidChanges(newsVisible: boolean) {
|
|
140
147
|
this.validChanges = true;
|
|
141
148
|
const fileUploader = this.getFileUploader();
|
|
142
149
|
const keyUserChangeContent = this.getCurrentKeyUserChange();
|
|
143
|
-
const showCustom =
|
|
144
|
-
|
|
145
|
-
const showDefault = this.defaultNewsVisibility ?? !!this._getPanel().getProperty("showDefault");
|
|
150
|
+
const showCustom = this.customNewsVisibility ?? !!this.checkNewsType(NewsType.Custom);
|
|
151
|
+
const showDefault = this.defaultNewsVisibility ?? !!this.checkNewsType(NewsType.Default);
|
|
146
152
|
if (this.getNewsFeedUploadBtn().getEnabled()) {
|
|
147
153
|
if (showCustom) {
|
|
148
154
|
MessageBox.error(String(this._i18nBundle.getText("newsFeedSaveUploadChanges")));
|
|
@@ -159,7 +165,12 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
159
165
|
this.validChanges = false;
|
|
160
166
|
} else if (!showCustom && !showDefault && newsVisible && !this.getMessageStrip().getVisible()) {
|
|
161
167
|
const newsUrl = keyUserChangeContent.newsFeedURL;
|
|
162
|
-
|
|
168
|
+
if (!newsUrl?.trim()) {
|
|
169
|
+
this.showMessageStrip(true, MessageType.Error, "invalidNewsUrl");
|
|
170
|
+
this.validChanges = false;
|
|
171
|
+
} else {
|
|
172
|
+
await (this._getPanel() as NewsPanel).setURL(String(newsUrl));
|
|
173
|
+
}
|
|
163
174
|
}
|
|
164
175
|
return this.validChanges;
|
|
165
176
|
}
|
|
@@ -170,12 +181,15 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
170
181
|
const newsUrlInput = this.controlMap.get(`${this.getId()}-newsFeedURLInput`) as Input;
|
|
171
182
|
const url = String(newsPanel.getProperty("url"));
|
|
172
183
|
newsUrlInput.setValue(url !== DEFAULT_NEWS_URL ? url : "");
|
|
173
|
-
this.customNewsVisibility =
|
|
174
|
-
this.defaultNewsVisibility =
|
|
184
|
+
this.customNewsVisibility = this.checkNewsType(NewsType.Custom);
|
|
185
|
+
this.defaultNewsVisibility = this.checkNewsType(NewsType.Default);
|
|
186
|
+
this.rssNewsVisibility = this.checkNewsType(NewsType.NewsUrl);
|
|
187
|
+
|
|
175
188
|
(this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`) as FileUploader).setEnabled(this.customNewsVisibility);
|
|
176
|
-
(this.controlMap.get(`${this.getId()}-newsFeedURLInput`) as Input).setEnabled(
|
|
177
|
-
(this.controlMap.get(`${this.getId()}-
|
|
178
|
-
(this.controlMap.get(`${this.getId()}-
|
|
189
|
+
(this.controlMap.get(`${this.getId()}-newsFeedURLInput`) as Input).setEnabled(this.rssNewsVisibility);
|
|
190
|
+
(this.controlMap.get(`${this.getId()}-customNewsFeedRadioBtn`) as RadioButton).setSelected(this.customNewsVisibility);
|
|
191
|
+
(this.controlMap.get(`${this.getId()}-defaultNewsFeedRadioBtn`) as RadioButton).setSelected(this.defaultNewsVisibility);
|
|
192
|
+
(this.controlMap.get(`${this.getId()}-newsUrlRadioBtn`) as RadioButton).setSelected(this.rssNewsVisibility);
|
|
179
193
|
this.getFileUploader().setValue(String(newsPanel.getProperty("customFileName")));
|
|
180
194
|
this.clearKeyUserChanges();
|
|
181
195
|
}
|
|
@@ -198,12 +212,11 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
198
212
|
wrapperVBox.addItem(this.controlMap.get(keyUserNewsPanelToolbarId) as Toolbar);
|
|
199
213
|
}
|
|
200
214
|
|
|
201
|
-
private handleSelectCustomNewsFeed(oEvent:
|
|
202
|
-
this.customNewsVisibility = oEvent.
|
|
215
|
+
private handleSelectCustomNewsFeed(oEvent: RadioButton$SelectEvent): void {
|
|
216
|
+
this.customNewsVisibility = oEvent.getParameter("selected") as boolean;
|
|
203
217
|
|
|
204
218
|
(this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`) as FileUploader).setEnabled(this.customNewsVisibility);
|
|
205
219
|
(this.controlMap.get(`${this.getId()}-newsFeedURLInput`) as Input).setEnabled(!this.customNewsVisibility);
|
|
206
|
-
(this.controlMap.get(`${this.getId()}-defaultNewsFeedCheckBox`) as Input).setEnabled(!this.customNewsVisibility);
|
|
207
220
|
|
|
208
221
|
const newsPanel = this._getPanel() as NewsPanel;
|
|
209
222
|
const newsPageContainer = newsPanel.getParent() as NewsAndPagesContainer;
|
|
@@ -216,14 +229,17 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
216
229
|
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
217
230
|
content: {
|
|
218
231
|
oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
|
|
219
|
-
oldShowCustomNewsFeed:
|
|
232
|
+
oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
|
|
220
233
|
oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
221
|
-
oldshowDefaultNewsFeed:
|
|
234
|
+
oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
|
|
235
|
+
oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
|
|
236
|
+
|
|
222
237
|
newsFeedURL: String(this._getPanel().getProperty("url")),
|
|
223
238
|
showCustomNewsFeed: this.customNewsVisibility,
|
|
224
239
|
customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
225
240
|
customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
|
|
226
|
-
showDefaultNewsFeed:
|
|
241
|
+
showDefaultNewsFeed: false,
|
|
242
|
+
showRssNewsFeed: false
|
|
227
243
|
}
|
|
228
244
|
}
|
|
229
245
|
});
|
|
@@ -236,66 +252,129 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
236
252
|
}
|
|
237
253
|
|
|
238
254
|
/**
|
|
239
|
-
* Add
|
|
255
|
+
* Add Radio Button for Custom News Feed.
|
|
240
256
|
*
|
|
241
257
|
* @private
|
|
242
258
|
*/
|
|
243
|
-
private
|
|
244
|
-
const
|
|
245
|
-
const showCustom =
|
|
246
|
-
|
|
247
|
-
if (!this.controlMap.get(
|
|
248
|
-
const
|
|
259
|
+
private addCustomNewsFeedRadioBtn(wrapperVBox: VBox): void {
|
|
260
|
+
const customNewsFeedRadioBtnId = `${this.getId()}-customNewsFeedRadioBtn`;
|
|
261
|
+
const showCustom = this.checkNewsType(NewsType.Custom);
|
|
262
|
+
|
|
263
|
+
if (!this.controlMap.get(customNewsFeedRadioBtnId)) {
|
|
264
|
+
const customNewsFeedRadioBtn = new RadioButton(`${this.getId()}-customNewsFeedRadioBtn`, {
|
|
249
265
|
text: this._i18nBundle.getText("selectCustomNewsFeed"),
|
|
250
266
|
selected: showCustom,
|
|
251
|
-
select: this.handleSelectCustomNewsFeed.bind(this)
|
|
252
|
-
enabled: !showDefault
|
|
267
|
+
select: this.handleSelectCustomNewsFeed.bind(this)
|
|
253
268
|
}).addStyleClass("sapUiTinyMargin");
|
|
254
|
-
this.controlMap.set(
|
|
269
|
+
this.controlMap.set(customNewsFeedRadioBtnId, customNewsFeedRadioBtn);
|
|
255
270
|
} else if (!this.getCurrentKeyUserChange()) {
|
|
256
|
-
let
|
|
257
|
-
|
|
258
|
-
|
|
271
|
+
let customRadioBtn = this.controlMap.get(`${this.getId()}-customNewsFeedRadioBtn`) as RadioButton;
|
|
272
|
+
customRadioBtn.setSelected(showCustom);
|
|
273
|
+
(this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`) as FileUploader).setEnabled(showCustom);
|
|
259
274
|
}
|
|
260
|
-
wrapperVBox.addItem(this.controlMap.get(
|
|
275
|
+
wrapperVBox.addItem(this.controlMap.get(customNewsFeedRadioBtnId) as RadioButton);
|
|
261
276
|
}
|
|
262
277
|
|
|
263
278
|
/**
|
|
264
|
-
* Add
|
|
279
|
+
* Add Radio Button for Manage News Feed.
|
|
265
280
|
*
|
|
266
281
|
* @private
|
|
267
282
|
*/
|
|
268
|
-
private
|
|
269
|
-
const
|
|
270
|
-
const showDefault =
|
|
271
|
-
|
|
272
|
-
if (!this.controlMap.get(
|
|
273
|
-
const
|
|
283
|
+
private addDefaultNewsFeedRadioBtn(wrapperVBox: VBox): void {
|
|
284
|
+
const defaultNewsFeedRadioBtnId = `${this.getId()}-defaultNewsFeedRadioBtn`;
|
|
285
|
+
const showDefault = this.checkNewsType(NewsType.Default);
|
|
286
|
+
|
|
287
|
+
if (!this.controlMap.get(defaultNewsFeedRadioBtnId)) {
|
|
288
|
+
const defaultNewsFeedRadioBtn = new RadioButton(`${this.getId()}-defaultNewsFeedRadioBtn`, {
|
|
274
289
|
text: this._i18nBundle.getText("selectDefaultNewsFeed"),
|
|
275
290
|
selected: showDefault,
|
|
276
|
-
select: this.handleselectDefaultNewsFeed.bind(this)
|
|
277
|
-
|
|
291
|
+
select: this.handleselectDefaultNewsFeed.bind(this)
|
|
292
|
+
}).addStyleClass("sapUiTinyMargin");
|
|
293
|
+
this.controlMap.set(defaultNewsFeedRadioBtnId, defaultNewsFeedRadioBtn);
|
|
294
|
+
} else if (!this.getCurrentKeyUserChange()) {
|
|
295
|
+
let defaultRadioBtn = this.controlMap.get(`${this.getId()}-defaultNewsFeedRadioBtn`) as RadioButton;
|
|
296
|
+
defaultRadioBtn.setSelected(showDefault);
|
|
297
|
+
}
|
|
298
|
+
wrapperVBox.addItem(this.controlMap.get(defaultNewsFeedRadioBtnId) as RadioButton);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
private addNewsPaneLabel(wrapperVBox: VBox): void {
|
|
302
|
+
const newsPanelLabelId = `${this.getId()}-newsPanelLabel`;
|
|
303
|
+
if (!this.controlMap.get(newsPanelLabelId)) {
|
|
304
|
+
const newsPanelLabel = new Label(newsPanelLabelId, {
|
|
305
|
+
text: this._i18nBundle.getText("newsFeedOptionLabel")
|
|
306
|
+
}).addStyleClass("sapUiTinyMargin");
|
|
307
|
+
this.controlMap.set(newsPanelLabelId, newsPanelLabel);
|
|
308
|
+
}
|
|
309
|
+
wrapperVBox.addItem(this.controlMap.get(newsPanelLabelId) as Label);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
private handleSelectRssNewsFeed(oEvent: RadioButton$SelectEvent): void {
|
|
313
|
+
this.rssNewsVisibility = oEvent.getParameter("selected") as boolean;
|
|
314
|
+
(this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`) as FileUploader).setEnabled(!this.rssNewsVisibility);
|
|
315
|
+
(this.controlMap.get(`${this.getId()}-newsFeedURLInput`) as Input).setEnabled(this.rssNewsVisibility);
|
|
316
|
+
|
|
317
|
+
const newsPanel = this._getPanel() as NewsPanel;
|
|
318
|
+
const newsPageContainer = newsPanel.getParent() as NewsAndPagesContainer;
|
|
319
|
+
const layout = newsPageContainer.getParent() as BaseLayout;
|
|
320
|
+
const keyUserChangeContent = this.getCurrentKeyUserChange();
|
|
321
|
+
if (!keyUserChangeContent) {
|
|
322
|
+
this.addKeyUserChanges({
|
|
323
|
+
selectorControl: layout,
|
|
324
|
+
changeSpecificData: {
|
|
325
|
+
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
326
|
+
content: {
|
|
327
|
+
oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
|
|
328
|
+
oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
|
|
329
|
+
oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
330
|
+
oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
|
|
331
|
+
oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
|
|
332
|
+
newsFeedURL: String(this._getPanel().getProperty("url")),
|
|
333
|
+
showCustomNewsFeed: false,
|
|
334
|
+
customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
335
|
+
customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
|
|
336
|
+
showDefaultNewsFeed: false,
|
|
337
|
+
showRssNewsFeed: this.rssNewsVisibility
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
this._eventBus.publish("KeyUserChanges", "addNewsPagesChanges", { changes: this.getKeyUserChanges() });
|
|
342
|
+
} else if (keyUserChangeContent.showRssNewsFeed !== this.rssNewsVisibility) {
|
|
343
|
+
keyUserChangeContent.showRssNewsFeed = this.rssNewsVisibility;
|
|
344
|
+
}
|
|
345
|
+
this.removeUrlMesageStrip();
|
|
346
|
+
this._eventBus.publish("KeyUserChanges", "disabledSaveBtn", { disable: false, date: new Date() });
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
private addNewsUrlRadioBtn(wrapperVBox: VBox): void {
|
|
350
|
+
const newsUrlRadioBtnId = `${this.getId()}-newsUrlRadioBtn`;
|
|
351
|
+
const showRss = this.checkNewsType(NewsType.NewsUrl);
|
|
352
|
+
if (!this.controlMap.get(newsUrlRadioBtnId)) {
|
|
353
|
+
const newsUrlRadioBtn = new RadioButton(`${this.getId()}-newsUrlRadioBtn`, {
|
|
354
|
+
text: this._i18nBundle.getText("selectNewsFeedUrl"),
|
|
355
|
+
selected: showRss,
|
|
356
|
+
select: this.handleSelectRssNewsFeed.bind(this)
|
|
278
357
|
}).addStyleClass("sapUiTinyMargin");
|
|
279
|
-
this.controlMap.set(
|
|
358
|
+
this.controlMap.set(newsUrlRadioBtnId, newsUrlRadioBtn);
|
|
280
359
|
} else if (!this.getCurrentKeyUserChange()) {
|
|
281
|
-
let
|
|
282
|
-
|
|
283
|
-
|
|
360
|
+
let rssRadioBtn = this.controlMap.get(`${this.getId()}-newsUrlRadioBtn`) as RadioButton;
|
|
361
|
+
rssRadioBtn.setSelected(showRss);
|
|
362
|
+
(this.controlMap.get(`${this.getId()}-newsFeedURLInput`) as Input).setEnabled(showRss);
|
|
284
363
|
}
|
|
285
|
-
|
|
364
|
+
|
|
365
|
+
wrapperVBox.addItem(this.controlMap.get(newsUrlRadioBtnId) as RadioButton);
|
|
286
366
|
}
|
|
287
367
|
|
|
288
368
|
/**
|
|
289
|
-
* Handle the selection of the Manage News Feed
|
|
369
|
+
* Handle the selection of the Manage News Feed Radio Button.
|
|
290
370
|
*
|
|
291
371
|
* @private
|
|
292
372
|
*/
|
|
293
|
-
private handleselectDefaultNewsFeed(oEvent:
|
|
294
|
-
this.defaultNewsVisibility = oEvent.
|
|
373
|
+
private handleselectDefaultNewsFeed(oEvent: RadioButton$SelectEvent): void {
|
|
374
|
+
this.defaultNewsVisibility = oEvent.getParameter("selected") as boolean;
|
|
295
375
|
|
|
296
376
|
(this.controlMap.get(`${this.getId()}-customNewsUploadFileUploader`) as FileUploader).setEnabled(!this.defaultNewsVisibility);
|
|
297
377
|
(this.controlMap.get(`${this.getId()}-newsFeedURLInput`) as Input).setEnabled(!this.defaultNewsVisibility);
|
|
298
|
-
(this.controlMap.get(`${this.getId()}-customNewsFeedCheckBox`) as Input).setEnabled(!this.defaultNewsVisibility);
|
|
299
378
|
|
|
300
379
|
const newsPanel = this._getPanel() as NewsPanel;
|
|
301
380
|
const newsPageContainer = newsPanel.getParent() as NewsAndPagesContainer;
|
|
@@ -310,20 +389,24 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
310
389
|
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
311
390
|
content: {
|
|
312
391
|
oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
|
|
313
|
-
oldShowCustomNewsFeed:
|
|
392
|
+
oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
|
|
314
393
|
oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
315
|
-
oldshowDefaultNewsFeed:
|
|
394
|
+
oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
|
|
395
|
+
oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
|
|
396
|
+
|
|
316
397
|
newsFeedURL: String(newsUrlInput.getValue()),
|
|
317
|
-
showCustomNewsFeed:
|
|
398
|
+
showCustomNewsFeed: false,
|
|
318
399
|
customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
319
400
|
customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
|
|
320
|
-
showDefaultNewsFeed: this.defaultNewsVisibility
|
|
401
|
+
showDefaultNewsFeed: this.defaultNewsVisibility,
|
|
402
|
+
showRssNewsFeed: false
|
|
321
403
|
}
|
|
322
404
|
}
|
|
323
405
|
});
|
|
324
406
|
this._eventBus.publish("KeyUserChanges", "addNewsPagesChanges", { changes: this.getKeyUserChanges() });
|
|
325
407
|
} else if (keyUserChangeContent.showDefaultNewsFeed !== this.defaultNewsVisibility) {
|
|
326
408
|
keyUserChangeContent.showDefaultNewsFeed = this.defaultNewsVisibility;
|
|
409
|
+
keyUserChangeContent.showCustomNewsFeed = false;
|
|
327
410
|
}
|
|
328
411
|
this.removeUrlMesageStrip();
|
|
329
412
|
this._eventBus.publish("KeyUserChanges", "disabledSaveBtn", { disable: false, date: new Date() });
|
|
@@ -347,14 +430,17 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
347
430
|
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
348
431
|
content: {
|
|
349
432
|
oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
|
|
350
|
-
oldShowCustomNewsFeed:
|
|
433
|
+
oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
|
|
351
434
|
oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
352
|
-
oldshowDefaultNewsFeed:
|
|
435
|
+
oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
|
|
436
|
+
oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
|
|
437
|
+
|
|
353
438
|
newsFeedURL: newsUrl,
|
|
354
439
|
showCustomNewsFeed: false,
|
|
355
440
|
customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
356
441
|
customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
|
|
357
|
-
showDefaultNewsFeed: false
|
|
442
|
+
showDefaultNewsFeed: false,
|
|
443
|
+
showRssNewsFeed: this.rssNewsVisibility
|
|
358
444
|
}
|
|
359
445
|
}
|
|
360
446
|
});
|
|
@@ -410,24 +496,18 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
410
496
|
*/
|
|
411
497
|
private addNewsURLSimpleForm(wrapperVBox: VBox): void {
|
|
412
498
|
const newsFeedURLSimpleFormId = `${this.getId()}-newsFeedURLSimpleForm`;
|
|
413
|
-
const
|
|
414
|
-
|
|
499
|
+
const showRss = this.checkNewsType(NewsType.NewsUrl);
|
|
500
|
+
|
|
415
501
|
const newsInputUrl = String(this._getPanel().getProperty("url"));
|
|
416
502
|
if (!this.controlMap.get(newsFeedURLSimpleFormId)) {
|
|
417
|
-
const newsFeedURLSimpleForm = new SimpleForm(`${this.getId()}-newsFeedURLSimpleForm
|
|
418
|
-
content: [
|
|
419
|
-
new Label(`${this.getId()}-newsFeedURLLabel`, {
|
|
420
|
-
text: this._i18nBundle.getText("editNewsURL")
|
|
421
|
-
})
|
|
422
|
-
]
|
|
423
|
-
}).addStyleClass("sapContrastPlus");
|
|
503
|
+
const newsFeedURLSimpleForm = new SimpleForm(`${this.getId()}-newsFeedURLSimpleForm`).addStyleClass("sapContrastPlus");
|
|
424
504
|
const newsFeedURLInputId = `${this.getId()}-newsFeedURLInput`;
|
|
425
505
|
const newsFeedURLInput = new Input(newsFeedURLInputId, {
|
|
426
506
|
value: newsInputUrl !== DEFAULT_NEWS_URL ? newsInputUrl : "",
|
|
427
507
|
type: Library.InputType.Url,
|
|
428
508
|
change: this.onNewsUrlChange.bind(this),
|
|
429
509
|
liveChange: this.onUrlLiveChange.bind(this),
|
|
430
|
-
enabled:
|
|
510
|
+
enabled: showRss
|
|
431
511
|
});
|
|
432
512
|
this.controlMap.set(newsFeedURLInputId, newsFeedURLInput);
|
|
433
513
|
newsFeedURLSimpleForm.addContent(newsFeedURLInput);
|
|
@@ -435,7 +515,6 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
435
515
|
} else if (this.getCurrentKeyUserChange()) {
|
|
436
516
|
let inputUrlField = this.controlMap.get(`${this.getId()}-newsFeedURLInput`) as Input;
|
|
437
517
|
inputUrlField.setValue(newsInputUrl);
|
|
438
|
-
inputUrlField.setEnabled(!showCustom && !showDefault);
|
|
439
518
|
}
|
|
440
519
|
wrapperVBox.addItem(this.controlMap.get(newsFeedURLSimpleFormId) as SimpleForm);
|
|
441
520
|
}
|
|
@@ -508,14 +587,17 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
508
587
|
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
509
588
|
content: {
|
|
510
589
|
oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
|
|
511
|
-
oldShowCustomNewsFeed:
|
|
590
|
+
oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
|
|
512
591
|
oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
513
|
-
oldshowDefaultNewsFeed:
|
|
592
|
+
oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
|
|
593
|
+
oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
|
|
594
|
+
|
|
514
595
|
newsFeedURL: String(this._getPanel().getProperty("url")),
|
|
515
596
|
showCustomNewsFeed: true,
|
|
516
597
|
customNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
517
598
|
customNewsFeedFileName: String(this._getPanel().getProperty("customFileName")),
|
|
518
|
-
showDefaultNewsFeed:
|
|
599
|
+
showDefaultNewsFeed: false,
|
|
600
|
+
showRssNewsFeed: false
|
|
519
601
|
}
|
|
520
602
|
}
|
|
521
603
|
});
|
|
@@ -536,14 +618,16 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
536
618
|
changeType: CHANGE_TYPES.NEWS_FEED_URL,
|
|
537
619
|
content: {
|
|
538
620
|
oldNewsFeedUrl: String(this._getPanel().getProperty("url")),
|
|
539
|
-
oldShowCustomNewsFeed:
|
|
621
|
+
oldShowCustomNewsFeed: this.checkNewsType(NewsType.Custom),
|
|
540
622
|
oldCustomNewsFeedKey: String(this._getPanel().getProperty("customFeedKey")),
|
|
541
|
-
oldshowDefaultNewsFeed:
|
|
623
|
+
oldshowDefaultNewsFeed: this.checkNewsType(NewsType.Default),
|
|
624
|
+
oldShowRssNewsFeed: this.checkNewsType(NewsType.NewsUrl),
|
|
542
625
|
newsFeedURL: String(this._getPanel().getProperty("url")),
|
|
543
626
|
showCustomNewsFeed: true,
|
|
544
627
|
customNewsFeedKey: customKey,
|
|
545
628
|
customNewsFeedFileName: this.getFileUploader().getValue(),
|
|
546
|
-
showDefaultNewsFeed:
|
|
629
|
+
showDefaultNewsFeed: false,
|
|
630
|
+
showRssNewsFeed: false
|
|
547
631
|
}
|
|
548
632
|
}
|
|
549
633
|
});
|
|
@@ -612,13 +696,9 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
612
696
|
private addCustomNewsUploadSimpleForm(wrapperVBox: VBox): void {
|
|
613
697
|
const customNewsUploadSimpleFormId = `${this.getId()}-customNewsUploadSimpleForm`;
|
|
614
698
|
if (!this.controlMap.get(customNewsUploadSimpleFormId)) {
|
|
615
|
-
const customNewsUploadSimpleForm = new SimpleForm(`${this.getId()}-customNewsUploadSimpleForm
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
text: this._i18nBundle.getText("customNewsFeed")
|
|
619
|
-
})
|
|
620
|
-
]
|
|
621
|
-
}).addStyleClass("sapContrastPlus");
|
|
699
|
+
const customNewsUploadSimpleForm = new SimpleForm(`${this.getId()}-customNewsUploadSimpleForm`).addStyleClass(
|
|
700
|
+
"sapContrastPlus"
|
|
701
|
+
);
|
|
622
702
|
const customNewsUploadVBox = new VBox(`${this.getId()}-customNewsUploadVBox`);
|
|
623
703
|
const customNewsUploadFileUploader = `${this.getId()}-customNewsUploadFileUploader`;
|
|
624
704
|
const newsPanel = this._getPanel() as NewsPanel;
|
|
@@ -633,7 +713,7 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
633
713
|
sameFilenameAllowed: true,
|
|
634
714
|
afterDialogClose: this.handleFileDialogClose.bind(this),
|
|
635
715
|
value: String(this._getPanel().getProperty("customFileName")),
|
|
636
|
-
enabled: this.
|
|
716
|
+
enabled: this.checkNewsType(NewsType.Custom)
|
|
637
717
|
});
|
|
638
718
|
this.controlMap.set(customNewsUploadFileUploader, customNewsUploadFileUploaderControl);
|
|
639
719
|
const customNewsUploadFileUploaderButtonId = `${this.getId()}-customNewsUploadFileUploaderButton`;
|
|
@@ -662,9 +742,11 @@ export default class KeyUserNewsSettingsPanel extends BaseSettingsPanel {
|
|
|
662
742
|
const wrapperVBox = this.controlMap.get(wrapperVBoxId) as VBox;
|
|
663
743
|
wrapperVBox.removeAllItems();
|
|
664
744
|
this.addMessageStrip(wrapperVBox);
|
|
665
|
-
this.
|
|
666
|
-
this.
|
|
745
|
+
this.addNewsPaneLabel(wrapperVBox);
|
|
746
|
+
this.addDefaultNewsFeedRadioBtn(wrapperVBox);
|
|
747
|
+
this.addNewsUrlRadioBtn(wrapperVBox);
|
|
667
748
|
this.addNewsURLSimpleForm(wrapperVBox);
|
|
749
|
+
this.addCustomNewsFeedRadioBtn(wrapperVBox);
|
|
668
750
|
this.addCustomNewsUploadSimpleForm(wrapperVBox);
|
|
669
751
|
}
|
|
670
752
|
}
|
|
@@ -17,7 +17,6 @@ declare module "sap/cux/home/Layout" {
|
|
|
17
17
|
text: string;
|
|
18
18
|
}
|
|
19
19
|
interface UserActionProperties {
|
|
20
|
-
id: string;
|
|
21
20
|
icon: string;
|
|
22
21
|
text: string;
|
|
23
22
|
tooltip: string;
|
|
@@ -33,8 +32,8 @@ declare module "sap/cux/home/Layout" {
|
|
|
33
32
|
* @version 0.0.1
|
|
34
33
|
* @since 1.121
|
|
35
34
|
*
|
|
36
|
-
* @
|
|
37
|
-
* @
|
|
35
|
+
* @private
|
|
36
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
38
37
|
*
|
|
39
38
|
* @alias sap.cux.home.Layout
|
|
40
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/Layout.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,qBAAqB,CAAC;IACrC;;;OAGG;IAEH,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;IAG/B,OAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAO/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;IACnE,OAAO,UAAU,MAAM,yBAAyB,CAAC;IACjD,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;IAwBjE,UAAU,QAAQ;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,EAAE,MAAM,CAAC;QACvB,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACb;IAED,UAAiB,oBAAoB;QACpC,
|
|
1
|
+
{"version":3,"file":"Layout.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/Layout.ts"],"names":[],"mappings":"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"}
|
|
@@ -205,8 +205,8 @@ sap.ui.define(["sap/base/Log", "sap/ui/core/Element", "sap/ushell/api/S4MyHome",
|
|
|
205
205
|
* @version 0.0.1
|
|
206
206
|
* @since 1.121
|
|
207
207
|
*
|
|
208
|
-
* @
|
|
209
|
-
* @
|
|
208
|
+
* @private
|
|
209
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
210
210
|
*
|
|
211
211
|
* @alias sap.cux.home.Layout
|
|
212
212
|
*/
|
|
@@ -259,7 +259,6 @@ sap.ui.define(["sap/base/Log", "sap/ui/core/Element", "sap/ushell/api/S4MyHome",
|
|
|
259
259
|
|
|
260
260
|
// Configure User Actions
|
|
261
261
|
const userActions = [{
|
|
262
|
-
id: `${_this.getId()}-homeSettingsBtn`,
|
|
263
262
|
icon: "sap-icon://edit",
|
|
264
263
|
text: _this._i18nBundle.getText("myHomeSettings"),
|
|
265
264
|
tooltip: _this._i18nBundle.getText("myHomeSettings"),
|