@sapui5/sap.cux.home 1.141.0 → 1.143.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 +4 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +3 -2
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js +6 -6
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +6 -6
- package/src/sap/cux/home/App.d.ts.map +1 -1
- package/src/sap/cux/home/App.js +9 -1
- package/src/sap/cux/home/App.js.map +1 -1
- package/src/sap/cux/home/App.ts +10 -1
- package/src/sap/cux/home/AppsAdditionPanel.d.ts +75 -34
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.js +378 -179
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.ts +399 -175
- package/src/sap/cux/home/AppsContainer.d.ts +5 -1
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.js +32 -17
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +31 -15
- package/src/sap/cux/home/BaseAppPanel.d.ts +2 -1
- package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.js +2 -1
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +4 -2
- package/src/sap/cux/home/BaseContainer.d.ts +8 -0
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.js +35 -5
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +32 -5
- package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js +6 -0
- package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.ts +7 -1
- package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
- package/src/sap/cux/home/BasePanel.d.ts +7 -0
- package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePanel.js +23 -2
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +18 -1
- package/src/sap/cux/home/CardsContainer.d.ts +108 -0
- package/src/sap/cux/home/CardsContainer.d.ts.map +1 -0
- package/src/sap/cux/home/CardsContainer.js +207 -0
- package/src/sap/cux/home/CardsContainer.js.map +1 -0
- package/src/sap/cux/home/CardsContainer.ts +202 -0
- package/src/sap/cux/home/CardsPanel.d.ts +32 -59
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.js +270 -249
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +169 -181
- package/src/sap/cux/home/ContentAdditionDialog.d.ts +2 -0
- package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.js +17 -7
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.ts +18 -6
- package/src/sap/cux/home/ErrorPanel.d.ts +0 -5
- package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ErrorPanel.gen.d.ts +31 -0
- package/src/sap/cux/home/ErrorPanel.js +11 -16
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +7 -19
- package/src/sap/cux/home/FavAppPanel.d.ts +1 -12
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +354 -414
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +25 -70
- package/src/sap/cux/home/FrequentAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.js +5 -1
- package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.ts +4 -0
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts +4 -4
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.js +12 -9
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +11 -8
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +3 -3
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +3 -0
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +252 -39
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +288 -58
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +11 -10
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +12 -10
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +2 -2
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +7 -7
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +2 -2
- package/src/sap/cux/home/Layout.d.ts +3 -1
- package/src/sap/cux/home/Layout.d.ts.map +1 -1
- package/src/sap/cux/home/Layout.js +45 -8
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +55 -8
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts +10 -0
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.js +341 -56
- package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.ts +380 -64
- package/src/sap/cux/home/{NewsAndPagesContainer.d.ts → NewsContainer.d.ts} +13 -18
- package/src/sap/cux/home/NewsContainer.d.ts.map +1 -0
- package/src/sap/cux/home/{NewsAndPagesContainer.gen.d.ts → NewsContainer.gen.d.ts} +3 -3
- package/src/sap/cux/home/{NewsAndPagesContainer.js → NewsContainer.js} +26 -113
- package/src/sap/cux/home/NewsContainer.js.map +1 -0
- package/src/sap/cux/home/{NewsAndPagesContainer.ts → NewsContainer.ts} +31 -120
- package/src/sap/cux/home/NewsGroup.js.map +1 -1
- package/src/sap/cux/home/NewsGroup.ts +1 -1
- package/src/sap/cux/home/NewsPanel.d.ts +17 -0
- package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.js +90 -57
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +51 -23
- package/src/sap/cux/home/NewsSettingsPanel.d.ts +42 -6
- package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js +219 -81
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +216 -81
- package/src/sap/cux/home/Page.d.ts.map +1 -1
- package/src/sap/cux/home/Page.js +4 -1
- package/src/sap/cux/home/Page.js.map +1 -1
- package/src/sap/cux/home/Page.ts +2 -0
- package/src/sap/cux/home/PagePanel.d.ts +1 -1
- package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/PagePanel.js +19 -11
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +26 -20
- package/src/sap/cux/home/PageSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.js +6 -3
- package/src/sap/cux/home/PageSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.ts +2 -2
- package/src/sap/cux/home/PagesContainer.d.ts +72 -0
- package/src/sap/cux/home/PagesContainer.d.ts.map +1 -0
- package/src/sap/cux/home/PagesContainer.gen.d.ts +78 -0
- package/src/sap/cux/home/PagesContainer.js +333 -0
- package/src/sap/cux/home/PagesContainer.js.map +1 -0
- package/src/sap/cux/home/PagesContainer.ts +179 -0
- package/src/sap/cux/home/RecentAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.js +6 -0
- package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.ts +5 -1
- package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js +7 -0
- package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.ts +6 -1
- package/src/sap/cux/home/SettingsDialog.d.ts +7 -0
- package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/SettingsDialog.js +18 -10
- package/src/sap/cux/home/SettingsDialog.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.ts +20 -13
- package/src/sap/cux/home/SideBySideIconTabFilter.d.ts +10 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.d.ts.map +1 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.js +11 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.js.map +1 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.ts +11 -0
- package/src/sap/cux/home/SituationPanel.d.ts.map +1 -1
- package/src/sap/cux/home/SituationPanel.js +7 -2
- package/src/sap/cux/home/SituationPanel.js.map +1 -1
- package/src/sap/cux/home/SituationPanel.ts +2 -0
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts +8 -60
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.js +67 -133
- package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.ts +70 -152
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.js +17 -12
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +19 -16
- package/src/sap/cux/home/TilesContainer.d.ts +111 -0
- package/src/sap/cux/home/TilesContainer.d.ts.map +1 -0
- package/src/sap/cux/home/TilesContainer.js +218 -0
- package/src/sap/cux/home/TilesContainer.js.map +1 -0
- package/src/sap/cux/home/TilesContainer.ts +216 -0
- package/src/sap/cux/home/TilesPanel.d.ts +22 -52
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.js +194 -168
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +167 -157
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +59 -66
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +46 -34
- package/src/sap/cux/home/ToDosContainer.js +3 -3
- package/src/sap/cux/home/ToDosContainer.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.ts +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +4 -4
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +4 -4
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.ts +3 -3
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +4 -4
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +5 -5
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +30 -3
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +23 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +29 -19
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.js +78 -2
- package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.ts +81 -1
- package/src/sap/cux/home/i18n/messagebundle.properties +40 -14
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_da.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_de.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_el.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_en.properties +9 -5
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +14 -6
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +14 -6
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_es.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_et.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_id.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_it.properties +10 -6
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_no.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +9 -5
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_th.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +8 -4
- package/src/sap/cux/home/interface/AppsInterface.d.ts +6 -0
- package/src/sap/cux/home/interface/AppsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.js.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.ts +7 -0
- package/src/sap/cux/home/interface/KeyUserInterface.d.ts +27 -4
- 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 +23 -4
- package/src/sap/cux/home/interface/LayoutInterface.d.ts +7 -0
- package/src/sap/cux/home/interface/LayoutInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/LayoutInterface.js.map +1 -1
- package/src/sap/cux/home/interface/LayoutInterface.ts +7 -0
- package/src/sap/cux/home/library.d.ts.map +1 -1
- package/src/sap/cux/home/library.js +7 -4
- package/src/sap/cux/home/library.js.map +1 -1
- package/src/sap/cux/home/library.ts +10 -5
- package/src/sap/cux/home/themes/base/AppsContainer.less +12 -1
- package/src/sap/cux/home/themes/base/BaseContainer.less +36 -0
- package/src/sap/cux/home/themes/base/BaseLayout.less +22 -0
- package/src/sap/cux/home/themes/base/{InsightsContainer.less → CardsContainer.less} +4 -45
- package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +10 -18
- package/src/sap/cux/home/themes/base/PlaceHolder.less +1 -1
- package/src/sap/cux/home/themes/base/SettingsDialog.less +4 -0
- package/src/sap/cux/home/themes/base/TilesContainer.less +65 -0
- package/src/sap/cux/home/themes/base/ToDosContainer.less +4 -0
- package/src/sap/cux/home/themes/base/library.source.less +2 -1
- package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/AppManager.js +2 -1
- package/src/sap/cux/home/utils/AppManager.js.map +1 -1
- package/src/sap/cux/home/utils/AppManager.ts +2 -2
- package/src/sap/cux/home/utils/FESRUtil.d.ts +30 -0
- package/src/sap/cux/home/utils/FESRUtil.d.ts.map +1 -1
- package/src/sap/cux/home/utils/FESRUtil.js +36 -1
- package/src/sap/cux/home/utils/FESRUtil.js.map +1 -1
- package/src/sap/cux/home/utils/FESRUtil.ts +36 -0
- package/src/sap/cux/home/utils/PXFeedback.d.ts +4 -0
- package/src/sap/cux/home/utils/PXFeedback.d.ts.map +1 -0
- package/src/sap/cux/home/utils/PXFeedback.js +28 -0
- package/src/sap/cux/home/utils/PXFeedback.js.map +1 -0
- package/src/sap/cux/home/utils/PXFeedback.ts +19 -0
- package/src/sap/cux/home/utils/PageManager.d.ts +0 -4
- package/src/sap/cux/home/utils/PageManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PageManager.js +6 -6
- package/src/sap/cux/home/utils/PageManager.js.map +1 -1
- package/src/sap/cux/home/utils/PageManager.ts +6 -5
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts +4 -2
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.js +4 -2
- package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.ts +4 -2
- package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +155 -151
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.js → CardsPlaceholder.js} +3 -77
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.ts → CardsPlaceholder.ts} +1 -75
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js +44 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.ts +34 -0
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.js → PagesPlaceholder.js} +3 -23
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.ts → PagesPlaceholder.ts} +1 -21
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js +95 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.ts +85 -0
- package/ui5.yaml +1 -0
- package/src/sap/cux/home/InsightsContainer.d.ts +0 -205
- package/src/sap/cux/home/InsightsContainer.d.ts.map +0 -1
- package/src/sap/cux/home/InsightsContainer.js +0 -459
- package/src/sap/cux/home/InsightsContainer.js.map +0 -1
- package/src/sap/cux/home/InsightsContainer.ts +0 -489
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +0 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +0 -1
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +0 -8
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +0 -1
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts +0 -8
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +0 -1
|
@@ -101,9 +101,10 @@ const REPO_BASE_URL = BASE_URL + "insights_cards_repo_srv/0001/";
|
|
|
101
101
|
const EXPORT_API = REPO_BASE_URL + "INSIGHTS_CARDS/com.sap.gateway.srvd.ui2.insights_cards_repo_srv.v0001.importExport?";
|
|
102
102
|
const MYINSIGHT_SECTION_ID = "AZHJGRIT78TG7Y65RF6EPFJ9U";
|
|
103
103
|
|
|
104
|
-
const
|
|
104
|
+
const PagesContainerName: string = "sap.cux.home.PagesContainer";
|
|
105
105
|
const AppsContainerlName: string = "sap.cux.home.AppsContainer";
|
|
106
|
-
const
|
|
106
|
+
const TilesContainerName: string = "sap.cux.home.TilesContainer";
|
|
107
|
+
const CardsContainerName: string = "sap.cux.home.CardsContainer";
|
|
107
108
|
const PagePanelName: string = "sap.cux.home.PagePanel";
|
|
108
109
|
const FavAppPanelName: string = "sap.cux.home.FavAppPanel";
|
|
109
110
|
const RecommendedAppPanelName: string = "sap.cux.home.RecommendedAppPanel";
|
|
@@ -654,9 +655,9 @@ export default class AdvancedSettingsPanel extends BaseSettingsPanel {
|
|
|
654
655
|
private _isPanelAvailable(panelClassName: string): boolean {
|
|
655
656
|
const panelMappings: Record<string, { containerName: string; panelName: string }> = {
|
|
656
657
|
[FavAppPanelName]: { containerName: AppsContainerlName, panelName: FavAppPanelName },
|
|
657
|
-
[PagePanelName]: { containerName:
|
|
658
|
-
[TilesPanelName]: { containerName:
|
|
659
|
-
[CardsPanelName]: { containerName:
|
|
658
|
+
[PagePanelName]: { containerName: PagesContainerName, panelName: PagePanelName },
|
|
659
|
+
[TilesPanelName]: { containerName: TilesContainerName, panelName: TilesPanelName },
|
|
660
|
+
[CardsPanelName]: { containerName: CardsContainerName, panelName: CardsPanelName }
|
|
660
661
|
};
|
|
661
662
|
|
|
662
663
|
const mapping = panelMappings[panelClassName];
|
|
@@ -1603,7 +1604,6 @@ export default class AdvancedSettingsPanel extends BaseSettingsPanel {
|
|
|
1603
1604
|
|
|
1604
1605
|
private onResetImportApps(): void {
|
|
1605
1606
|
this.oEventBus.publish("importChannel", "resetImported");
|
|
1606
|
-
MessageToast.show(this._i18nBundle.getText("importAppsNowBtnEnabled") as string);
|
|
1607
1607
|
}
|
|
1608
1608
|
|
|
1609
1609
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/App.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,kBAAkB,CAAC;IAOlC,OAAoB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;IAGxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAG3D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;IAChD,OAAO,OAAO,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/App.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,kBAAkB,CAAC;IAOlC,OAAoB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;IAGxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAG3D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;IAChD,OAAO,OAAO,MAAM,sBAAsB,CAAC;IAK3C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,OAAO;oBAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,YAAY;oBACpC,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,YAAY;QAUhD,OAAO,CAAC,kBAAkB,CAAc;QACxC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAYvC;QAEF,OAAO,CAAC,kBAAkB;QAS1B,OAAO,CAAC,oBAAoB;QAuB5B;;;WAGG;gBACW,UAAU;QA2BxB;;;WAGG;QACU,YAAY,CAAC,KAAK,EAAE,sBAAsB;KASvD;CAEA"}
|
package/src/sap/cux/home/App.js
CHANGED
|
@@ -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/base/Log", "sap/m/GenericTile", "sap/m/library", "sap/ushell/Container", "./BaseApp", "./utils/AppManager"], function (Log, GenericTile, mobileLibrary, Container, __BaseApp, __AppManager) {
|
|
5
|
+
sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/library", "sap/ushell/Container", "./BaseApp", "./utils/AppManager", "./utils/FESRUtil"], function (Log, GenericTile, mobileLibrary, Container, __BaseApp, __AppManager, ___utils_FESRUtil) {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
8
|
function _interopRequireDefault(obj) {
|
|
@@ -10,6 +10,7 @@ sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/library", "sap/ushell
|
|
|
10
10
|
}
|
|
11
11
|
const BaseApp = _interopRequireDefault(__BaseApp);
|
|
12
12
|
const AppManager = _interopRequireDefault(__AppManager);
|
|
13
|
+
const addFESRNavigationSource = ___utils_FESRUtil["addFESRNavigationSource"];
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* App class for managing and storing Apps.
|
|
@@ -101,6 +102,9 @@ sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/library", "sap/ushell
|
|
|
101
102
|
const ssbRootControl = _this._getSSBRootControl(smartBusinessAppViz);
|
|
102
103
|
const ssbGenericTile = isSmartBusinessTile && _this._getInnerGenericTile(ssbRootControl);
|
|
103
104
|
if (ssbGenericTile) {
|
|
105
|
+
if (smartBusinessAppViz.getActive() === false) {
|
|
106
|
+
smartBusinessAppViz.setActive(true);
|
|
107
|
+
}
|
|
104
108
|
ssbGenericTile.firePress();
|
|
105
109
|
return;
|
|
106
110
|
}
|
|
@@ -123,6 +127,10 @@ sap.ui.define(["sap/base/Log", "sap/m/GenericTile", "sap/m/library", "sap/ushell
|
|
|
123
127
|
const _this2 = this;
|
|
124
128
|
const _temp = function () {
|
|
125
129
|
if (_this2.getUrl()) {
|
|
130
|
+
const navInfo = _this2.data("additionalInfo");
|
|
131
|
+
if (navInfo?.fesrSource) {
|
|
132
|
+
addFESRNavigationSource(navInfo.fesrSource);
|
|
133
|
+
}
|
|
126
134
|
return Promise.resolve(_this2._launchApp(event)).then(function () {});
|
|
127
135
|
}
|
|
128
136
|
}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","names":["sap","ui","define","Log","GenericTile","mobileLibrary","Container","__BaseApp","__AppManager","_interopRequireDefault","obj","__esModule","default","BaseApp","AppManager","App","extend","metadata","library","properties","url","type","group","defaultValue","vizId","constructor","_constructor","id","settings","BaseApp.prototype.constructor.call","_getSSBRootControl","oSmartBusinessAppViz","getContent","getComponentInstance","getRootControl","oError","error","Error","message","String","_getInnerGenericTile","oControl","oControlMetadata","getMetadata","oDefaultAggregationDefinition","getDefaultAggregation","sDefaultAggregationName","name","aAggregationData","getAggregation","oAggregationValue","Array","isArray","getState","LoadState","Loaded","_launchApp","event","_this","appManagerInstance","getInstance","tile","getSource","Promise","resolve","fetchFavVizs","then","favoriteApps","selectedApp","find","app","appUrl","getUrl","includes","smartBusinessAppViz","vizInstance","isSmartBusinessTile","ssbRootControl","ssbGenericTile","firePress","getServiceAsync","spaceContentService","launchTileTarget","getTitle","e","reject","_handlePress","_this2","_temp"],"sources":["App.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Log from \"sap/base/Log\";\nimport GenericTile, { GenericTile$PressEvent } from \"sap/m/GenericTile\";\nimport mobileLibrary from \"sap/m/library\";\nimport Control from \"sap/ui/core/Control\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport Container from \"sap/ushell/Container\";\nimport SpaceContent from \"sap/ushell/services/SpaceContent\";\nimport { $AppSettings } from \"./App\";\nimport BaseApp from \"./BaseApp\";\nimport { ICustomVizInstance, ISectionAndVisualization } from \"./interface/AppsInterface\";\nimport AppManager from \"./utils/AppManager\";\n\n/**\n *\n * App class for managing and storing Apps.\n *\n * @extends sap.cux.home.BaseApp\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.App\n */\nexport default class App extends BaseApp {\n\tconstructor(idOrSettings?: string | $AppSettings);\n\tconstructor(id?: string, settings?: $AppSettings);\n\t/**\n\t * Constructor for a new App.\n\t *\n\t * @param {string} [id] ID for the new app, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new app\n\t */\n\tpublic constructor(id?: string, settings?: $AppSettings) {\n\t\tsuper(id, settings);\n\t}\n\tprivate appManagerInstance!: AppManager;\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Url of the app where the user navigates to on click\n\t\t\t */\n\t\t\turl: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * VizId of the app. Used for enabling addition of apps to FavoriteApp panel\n\t\t\t */\n\t\t\tvizId: { type: \"string\", group: \"Misc\", defaultValue: \"\" }\n\t\t}\n\t};\n\tprivate _getSSBRootControl(oSmartBusinessAppViz: ICustomVizInstance): Control | null {\n\t\ttry {\n\t\t\treturn oSmartBusinessAppViz.getContent().getComponentInstance().getRootControl() as Control | null;\n\t\t} catch (oError) {\n\t\t\tLog.error(oError instanceof Error ? oError.message : String(oError));\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tprivate _getInnerGenericTile(oControl: Control | null): GenericTile | null {\n\t\tif (!oControl) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst oControlMetadata = oControl.getMetadata();\n\t\tconst oDefaultAggregationDefinition = oControlMetadata.getDefaultAggregation() as { name?: string } | null;\n\t\tconst sDefaultAggregationName = oDefaultAggregationDefinition ? oDefaultAggregationDefinition?.name : \"content\";\n\n\t\tconst aAggregationData = sDefaultAggregationName ? oControl.getAggregation(sDefaultAggregationName) : null;\n\t\tconst oAggregationValue = Array.isArray(aAggregationData) ? aAggregationData[0] : aAggregationData;\n\n\t\tif (!oAggregationValue) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (oAggregationValue instanceof GenericTile && oAggregationValue.getState() === mobileLibrary.LoadState.Loaded) {\n\t\t\treturn oAggregationValue;\n\t\t}\n\n\t\treturn this._getInnerGenericTile(oAggregationValue as Control);\n\t}\n\n\t/**\n\t * Navigates to the clicked app\n\t * @private\n\t */\n\tprivate async _launchApp(event: GenericTile$PressEvent): Promise<void> {\n\t\tthis.appManagerInstance = this.appManagerInstance || AppManager.getInstance();\n\t\tconst tile = event.getSource();\n\t\tconst favoriteApps: ISectionAndVisualization[] = await this.appManagerInstance.fetchFavVizs(false, true);\n\t\tconst selectedApp = favoriteApps.find((app) => {\n\t\t\tconst appUrl = app.url || \"\";\n\t\t\treturn tile.getUrl().includes(appUrl);\n\t\t});\n\t\tconst smartBusinessAppViz = selectedApp?.vizInstance;\n\t\tconst isSmartBusinessTile = selectedApp?.isSmartBusinessTile;\n\t\tif (smartBusinessAppViz) {\n\t\t\tconst ssbRootControl = this._getSSBRootControl(smartBusinessAppViz);\n\t\t\tconst ssbGenericTile = isSmartBusinessTile && this._getInnerGenericTile(ssbRootControl);\n\n\t\t\tif (ssbGenericTile) {\n\t\t\t\tssbGenericTile.firePress();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Fallback in case smartBusinessAppViz is undefined or ssbGenericTile is not present\n\t\tconst spaceContentService = await Container.getServiceAsync<SpaceContent>(\"SpaceContent\");\n\t\tawait spaceContentService.launchTileTarget(this.getUrl(), this.getTitle());\n\t}\n\n\t/**\n\t * App Press Handler\n\t * @private\n\t */\n\tpublic async _handlePress(event: GenericTile$PressEvent) {\n\t\tif (this.getUrl()) {\n\t\t\tawait this._launchApp(event);\n\t\t}\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,8HAAAC,GAAA,EAAAC,WAAA,EAAAC,aAAA,EAAAC,SAAA,EAAAC,SAAA,EAAAC,YAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAA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ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"App.js","names":["sap","ui","define","Log","GenericTile","mobileLibrary","Container","__BaseApp","__AppManager","___utils_FESRUtil","_interopRequireDefault","obj","__esModule","default","BaseApp","AppManager","addFESRNavigationSource","App","extend","metadata","library","properties","url","type","group","defaultValue","vizId","constructor","_constructor","id","settings","BaseApp.prototype.constructor.call","_getSSBRootControl","oSmartBusinessAppViz","getContent","getComponentInstance","getRootControl","oError","error","Error","message","String","_getInnerGenericTile","oControl","oControlMetadata","getMetadata","oDefaultAggregationDefinition","getDefaultAggregation","sDefaultAggregationName","name","aAggregationData","getAggregation","oAggregationValue","Array","isArray","getState","LoadState","Loaded","_launchApp","event","_this","appManagerInstance","getInstance","tile","getSource","Promise","resolve","fetchFavVizs","then","favoriteApps","selectedApp","find","app","appUrl","getUrl","includes","smartBusinessAppViz","vizInstance","isSmartBusinessTile","ssbRootControl","ssbGenericTile","getActive","setActive","firePress","getServiceAsync","spaceContentService","launchTileTarget","getTitle","e","reject","_handlePress","_this2","_temp","navInfo","data","fesrSource"],"sources":["App.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Log from \"sap/base/Log\";\nimport GenericTile, { GenericTile$PressEvent } from \"sap/m/GenericTile\";\nimport mobileLibrary from \"sap/m/library\";\nimport Control from \"sap/ui/core/Control\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport Container from \"sap/ushell/Container\";\nimport SpaceContent from \"sap/ushell/services/SpaceContent\";\nimport { $AppSettings } from \"./App\";\nimport BaseApp from \"./BaseApp\";\nimport { IAdditionalInfo, ICustomVizInstance, ISectionAndVisualization } from \"./interface/AppsInterface\";\nimport AppManager from \"./utils/AppManager\";\nimport { addFESRNavigationSource } from \"./utils/FESRUtil\";\n\n/**\n *\n * App class for managing and storing Apps.\n *\n * @extends sap.cux.home.BaseApp\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.App\n */\nexport default class App extends BaseApp {\n\tconstructor(idOrSettings?: string | $AppSettings);\n\tconstructor(id?: string, settings?: $AppSettings);\n\t/**\n\t * Constructor for a new App.\n\t *\n\t * @param {string} [id] ID for the new app, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new app\n\t */\n\tpublic constructor(id?: string, settings?: $AppSettings) {\n\t\tsuper(id, settings);\n\t}\n\tprivate appManagerInstance!: AppManager;\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Url of the app where the user navigates to on click\n\t\t\t */\n\t\t\turl: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * VizId of the app. Used for enabling addition of apps to FavoriteApp panel\n\t\t\t */\n\t\t\tvizId: { type: \"string\", group: \"Misc\", defaultValue: \"\" }\n\t\t}\n\t};\n\n\tprivate _getSSBRootControl(oSmartBusinessAppViz: ICustomVizInstance): Control | null {\n\t\ttry {\n\t\t\treturn oSmartBusinessAppViz.getContent().getComponentInstance().getRootControl() as Control | null;\n\t\t} catch (oError) {\n\t\t\tLog.error(oError instanceof Error ? oError.message : String(oError));\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tprivate _getInnerGenericTile(oControl: Control | null): GenericTile | null {\n\t\tif (!oControl) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst oControlMetadata = oControl.getMetadata();\n\t\tconst oDefaultAggregationDefinition = oControlMetadata.getDefaultAggregation() as { name?: string } | null;\n\t\tconst sDefaultAggregationName = oDefaultAggregationDefinition ? oDefaultAggregationDefinition?.name : \"content\";\n\n\t\tconst aAggregationData = sDefaultAggregationName ? oControl.getAggregation(sDefaultAggregationName) : null;\n\t\tconst oAggregationValue = Array.isArray(aAggregationData) ? aAggregationData[0] : aAggregationData;\n\n\t\tif (!oAggregationValue) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (oAggregationValue instanceof GenericTile && oAggregationValue.getState() === mobileLibrary.LoadState.Loaded) {\n\t\t\treturn oAggregationValue;\n\t\t}\n\n\t\treturn this._getInnerGenericTile(oAggregationValue as Control);\n\t}\n\n\t/**\n\t * Navigates to the clicked app\n\t * @private\n\t */\n\tprivate async _launchApp(event: GenericTile$PressEvent): Promise<void> {\n\t\tthis.appManagerInstance = this.appManagerInstance || AppManager.getInstance();\n\t\tconst tile = event.getSource();\n\t\tconst favoriteApps: ISectionAndVisualization[] = await this.appManagerInstance.fetchFavVizs(false, true);\n\t\tconst selectedApp = favoriteApps.find((app) => {\n\t\t\tconst appUrl = app.url || \"\";\n\t\t\treturn tile.getUrl().includes(appUrl);\n\t\t});\n\t\tconst smartBusinessAppViz = selectedApp?.vizInstance;\n\t\tconst isSmartBusinessTile = selectedApp?.isSmartBusinessTile;\n\t\tif (smartBusinessAppViz) {\n\t\t\tconst ssbRootControl = this._getSSBRootControl(smartBusinessAppViz);\n\t\t\tconst ssbGenericTile = isSmartBusinessTile && this._getInnerGenericTile(ssbRootControl);\n\n\t\t\tif (ssbGenericTile) {\n\t\t\t\tif (smartBusinessAppViz.getActive() === false) {\n\t\t\t\t\tsmartBusinessAppViz.setActive(true);\n\t\t\t\t}\n\t\t\t\tssbGenericTile.firePress();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Fallback in case smartBusinessAppViz is undefined or ssbGenericTile is not present\n\t\tconst spaceContentService = await Container.getServiceAsync<SpaceContent>(\"SpaceContent\");\n\t\tawait spaceContentService.launchTileTarget(this.getUrl(), this.getTitle());\n\t}\n\n\t/**\n\t * App Press Handler\n\t * @private\n\t */\n\tpublic async _handlePress(event: GenericTile$PressEvent) {\n\t\tif (this.getUrl()) {\n\t\t\tconst navInfo = this.data(\"additionalInfo\") as IAdditionalInfo;\n\t\t\tif (navInfo?.fesrSource) {\n\t\t\t\taddFESRNavigationSource(navInfo.fesrS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AACD;AACA;AACA;IACcE,YAAY,WAAAA,aAAC/B,KAA6B;MAAA,IAAE;QAAA,MAAAgC,MAAA,GACpD,IAAI;QAAA,MAAAC,KAAA;UAAA,IAAJD,MAAA,CAAKjB,MAAM,CAAC,CAAC;YAChB,MAAMmB,OAAO,GAAGF,MAAA,CAAKG,IAAI,CAAC,gBAAgB,CAAoB;YAC9D,IAAID,OAAO,EAAEE,UAAU,EAAE;cACxB/E,uBAAuB,CAAC6E,OAAO,CAACE,UAAU,CAAC;YAC5C;YAAC,OAAA9B,OAAA,CAAAC,OAAA,CACKyB,MAAA,CAAKjC,UAAU,CAACC,KAAK,CAAC,EAAAS,IAAA;UAAA;QAAA;QAAA,OAAAH,OAAA,CAAAC,OAAA,CAAA0B,KAAA,IAAAA,KAAA,CAAAxB,IAAA,GAAAwB,KAAA,CAAAxB,IAAA;MAE9B,CAAC,QAAAoB,CAAA;QAAA,OAAAvB,OAAA,CAAAwB,MAAA,CAAAD,CAAA;MAAA;IAAA;EAAA;EAAA,OAtGmBvE,GAAG;AAAA","ignoreList":[]}
|
package/src/sap/cux/home/App.ts
CHANGED
|
@@ -12,8 +12,9 @@ import Container from "sap/ushell/Container";
|
|
|
12
12
|
import SpaceContent from "sap/ushell/services/SpaceContent";
|
|
13
13
|
import { $AppSettings } from "./App";
|
|
14
14
|
import BaseApp from "./BaseApp";
|
|
15
|
-
import { ICustomVizInstance, ISectionAndVisualization } from "./interface/AppsInterface";
|
|
15
|
+
import { IAdditionalInfo, ICustomVizInstance, ISectionAndVisualization } from "./interface/AppsInterface";
|
|
16
16
|
import AppManager from "./utils/AppManager";
|
|
17
|
+
import { addFESRNavigationSource } from "./utils/FESRUtil";
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
@@ -56,6 +57,7 @@ export default class App extends BaseApp {
|
|
|
56
57
|
vizId: { type: "string", group: "Misc", defaultValue: "" }
|
|
57
58
|
}
|
|
58
59
|
};
|
|
60
|
+
|
|
59
61
|
private _getSSBRootControl(oSmartBusinessAppViz: ICustomVizInstance): Control | null {
|
|
60
62
|
try {
|
|
61
63
|
return oSmartBusinessAppViz.getContent().getComponentInstance().getRootControl() as Control | null;
|
|
@@ -107,6 +109,9 @@ export default class App extends BaseApp {
|
|
|
107
109
|
const ssbGenericTile = isSmartBusinessTile && this._getInnerGenericTile(ssbRootControl);
|
|
108
110
|
|
|
109
111
|
if (ssbGenericTile) {
|
|
112
|
+
if (smartBusinessAppViz.getActive() === false) {
|
|
113
|
+
smartBusinessAppViz.setActive(true);
|
|
114
|
+
}
|
|
110
115
|
ssbGenericTile.firePress();
|
|
111
116
|
return;
|
|
112
117
|
}
|
|
@@ -122,6 +127,10 @@ export default class App extends BaseApp {
|
|
|
122
127
|
*/
|
|
123
128
|
public async _handlePress(event: GenericTile$PressEvent) {
|
|
124
129
|
if (this.getUrl()) {
|
|
130
|
+
const navInfo = this.data("additionalInfo") as IAdditionalInfo;
|
|
131
|
+
if (navInfo?.fesrSource) {
|
|
132
|
+
addFESRNavigationSource(navInfo.fesrSource);
|
|
133
|
+
}
|
|
125
134
|
await this._launchApp(event);
|
|
126
135
|
}
|
|
127
136
|
}
|
|
@@ -6,6 +6,7 @@ declare module "sap/cux/home/AppsAdditionPanel" {
|
|
|
6
6
|
const Constants: {
|
|
7
7
|
DeprecatedInfoText: string;
|
|
8
8
|
MinQueryLength: number;
|
|
9
|
+
MaxQueryLength: number;
|
|
9
10
|
MaxDescriptionLength: number;
|
|
10
11
|
};
|
|
11
12
|
enum SearchStatus {
|
|
@@ -18,7 +19,8 @@ declare module "sap/cux/home/AppsAdditionPanel" {
|
|
|
18
19
|
ServiceError = "serviceError"
|
|
19
20
|
}
|
|
20
21
|
enum TileType {
|
|
21
|
-
Static = "STATIC"
|
|
22
|
+
Static = "STATIC",
|
|
23
|
+
Dynamic = "DYNAMIC"
|
|
22
24
|
}
|
|
23
25
|
interface RawAppData {
|
|
24
26
|
title: string;
|
|
@@ -33,12 +35,13 @@ declare module "sap/cux/home/AppsAdditionPanel" {
|
|
|
33
35
|
icon: string;
|
|
34
36
|
title: string;
|
|
35
37
|
chipID: string;
|
|
36
|
-
status: string[];
|
|
37
38
|
subTitle: string;
|
|
38
39
|
description: string;
|
|
39
40
|
isStaticApp: boolean;
|
|
40
|
-
|
|
41
|
+
addedToApps?: boolean;
|
|
42
|
+
addedToInsights?: boolean;
|
|
41
43
|
vizData?: IVisualization;
|
|
44
|
+
isDeprecated?: boolean;
|
|
42
45
|
}
|
|
43
46
|
interface QueryResponse {
|
|
44
47
|
value: RawAppData[];
|
|
@@ -123,6 +126,7 @@ declare module "sap/cux/home/AppsAdditionPanel" {
|
|
|
123
126
|
* @private
|
|
124
127
|
* @param {string} id - The unique ID for the container.
|
|
125
128
|
* @param {Context} context - The binding context for the app.
|
|
129
|
+
* @param {boolean} isEnglishLanguage - Flag indicating if the language is english.
|
|
126
130
|
* @returns {VBox} The app details container.
|
|
127
131
|
*/
|
|
128
132
|
private _getAppDetailsContainer;
|
|
@@ -156,6 +160,7 @@ declare module "sap/cux/home/AppsAdditionPanel" {
|
|
|
156
160
|
* @private
|
|
157
161
|
*/
|
|
158
162
|
resetPanel(): void;
|
|
163
|
+
setIllustrationSize(): void;
|
|
159
164
|
/**
|
|
160
165
|
* Handles the "Go" button press event for searching suggested apps.
|
|
161
166
|
*
|
|
@@ -177,7 +182,8 @@ declare module "sap/cux/home/AppsAdditionPanel" {
|
|
|
177
182
|
* @private
|
|
178
183
|
* @param {RawAppData[]} rawApps - The raw app data to process.
|
|
179
184
|
* @param {IVisualization[]} allVisualizations - All available visualizations.
|
|
180
|
-
* @param {ICustomVisualization[]}
|
|
185
|
+
* @param {ICustomVisualization[]} favoriteApps - Favorite apps available in homepage.
|
|
186
|
+
* @param {ICustomVisualization[]} insightsApps - Insights apps available in homepage.
|
|
181
187
|
* @returns {SuggestedApp[]} The list of suggested apps.
|
|
182
188
|
*/
|
|
183
189
|
private _generateApps;
|
|
@@ -214,32 +220,6 @@ declare module "sap/cux/home/AppsAdditionPanel" {
|
|
|
214
220
|
* @returns {Promise<RawAppData[]>} A promise that resolves to the list of raw app data.
|
|
215
221
|
*/
|
|
216
222
|
private fetchAppsFromSearch;
|
|
217
|
-
/**
|
|
218
|
-
* Retrieves status texts for an app based on its configuration and homepage status.
|
|
219
|
-
*
|
|
220
|
-
* @private
|
|
221
|
-
* @param {string} configuration - The app's configuration string.
|
|
222
|
-
* @param {boolean} addedToHomePage - Indicates if the app is already added to the homepage.
|
|
223
|
-
* @returns {string[]} An array of status texts for the app.
|
|
224
|
-
*/
|
|
225
|
-
private getAppStatusTexts;
|
|
226
|
-
/**
|
|
227
|
-
* Generates status text controls for the provided status texts.
|
|
228
|
-
*
|
|
229
|
-
* @private
|
|
230
|
-
* @param {string} id - The id of the list item.
|
|
231
|
-
* @param {string[]} stausTexts - The list of status texts.
|
|
232
|
-
* @returns {Text[]} An array of Text controls with applied styles.
|
|
233
|
-
*/
|
|
234
|
-
private _generateStatusTexts;
|
|
235
|
-
/**
|
|
236
|
-
* Applies a CSS class to the status text based on its type.
|
|
237
|
-
*
|
|
238
|
-
* @private
|
|
239
|
-
* @param {string} status - The status text to classify.
|
|
240
|
-
* @returns {string} The CSS class for the status text.
|
|
241
|
-
*/
|
|
242
|
-
applyStatusClass(status: string): string;
|
|
243
223
|
/**
|
|
244
224
|
* Handles the "Add Apps" button press event to add selected apps to favorites.
|
|
245
225
|
*
|
|
@@ -276,14 +256,14 @@ declare module "sap/cux/home/AppsAdditionPanel" {
|
|
|
276
256
|
*/
|
|
277
257
|
private refreshFavoriteApps;
|
|
278
258
|
/**
|
|
279
|
-
* Retrieves the
|
|
259
|
+
* Retrieves the TilesContainer instance from the parent layout.
|
|
280
260
|
*
|
|
281
261
|
* @private
|
|
282
|
-
* @returns {
|
|
262
|
+
* @returns {TilesContainer | undefined} The AppsContainer instance or undefined if not found.
|
|
283
263
|
*/
|
|
284
|
-
private
|
|
264
|
+
private getTilesContainer;
|
|
285
265
|
/**
|
|
286
|
-
* Refreshes the Insights tiles panel in the
|
|
266
|
+
* Refreshes the Insights tiles panel in the TilesContainer.
|
|
287
267
|
*
|
|
288
268
|
* @private
|
|
289
269
|
* @async
|
|
@@ -337,6 +317,67 @@ declare module "sap/cux/home/AppsAdditionPanel" {
|
|
|
337
317
|
* @private
|
|
338
318
|
*/
|
|
339
319
|
sendFeedback(feedbackType: string): void;
|
|
320
|
+
/**
|
|
321
|
+
* Creates the action to change view type (App / Tile) for suggested app.
|
|
322
|
+
*
|
|
323
|
+
* @private
|
|
324
|
+
* @param {string} id - The unique ID for the container.
|
|
325
|
+
* @returns {HBox} The app view action container.
|
|
326
|
+
*/
|
|
327
|
+
private getAppViewTypeAction;
|
|
328
|
+
/**
|
|
329
|
+
* Creates the action to change display format (standard / wide) for suggested tile.
|
|
330
|
+
*
|
|
331
|
+
* @private
|
|
332
|
+
* @param {string} id - The unique ID for the container.
|
|
333
|
+
* @param {Context} context - The binding context for the app.
|
|
334
|
+
* @returns {HBox} The display format action container.
|
|
335
|
+
*/
|
|
336
|
+
private getDisplayFormatAction;
|
|
337
|
+
/**
|
|
338
|
+
* Checks if the visualization supports wide tile conversion.
|
|
339
|
+
*
|
|
340
|
+
* @private
|
|
341
|
+
* @param {Context} context - The binding context for the app.
|
|
342
|
+
* @returns {boolean} True if wide display format is supported, false otherwise.
|
|
343
|
+
*/
|
|
344
|
+
private isWideTileSupported;
|
|
345
|
+
/**
|
|
346
|
+
* Handler to switch between standard and wide format for tile.
|
|
347
|
+
*
|
|
348
|
+
* @private
|
|
349
|
+
* @param {Switch$ChangeEvent} event - The switch change event.
|
|
350
|
+
* @param {Context} context - The binding context for the app being modified.
|
|
351
|
+
* @returns {void}
|
|
352
|
+
*/
|
|
353
|
+
private toggleDisplayFormat;
|
|
354
|
+
/**
|
|
355
|
+
* Updates the display format of a visualization in the insights section.
|
|
356
|
+
*
|
|
357
|
+
* @private
|
|
358
|
+
* @param {string} vizId - Id of the visualization for which display format has to be updated.
|
|
359
|
+
* @param {DisplayFormat} displayFormatHint - The new display format to apply.
|
|
360
|
+
* @returns {Promise<void>} A promise that resolves when the display format is updated.
|
|
361
|
+
*/
|
|
362
|
+
private updateDisplayFormat;
|
|
363
|
+
/**
|
|
364
|
+
* Determines if an app is already added to the appropriate section based on its type and selected view.
|
|
365
|
+
* For static apps or apps with Static view selected, checks if added to favorites apps section.
|
|
366
|
+
* For dynamic apps with Dynamic view selected, checks if added to insights section.
|
|
367
|
+
*
|
|
368
|
+
* @private
|
|
369
|
+
* @param {Context} context - The binding context for the app to check.
|
|
370
|
+
* @returns {boolean} True if the app is already added to the corresponding section, false otherwise.
|
|
371
|
+
*/
|
|
372
|
+
private isAppAlreadyAdded;
|
|
373
|
+
/**
|
|
374
|
+
* Parses the tile configuration string from raw app configuration.
|
|
375
|
+
*
|
|
376
|
+
* @private
|
|
377
|
+
* @param {string} configuration - The raw app configuration string containing tile settings.
|
|
378
|
+
* @returns {TileConfig | null} The parsed tile configuration object or null if parsing fails.
|
|
379
|
+
*/
|
|
380
|
+
private parseTileConfiguration;
|
|
340
381
|
}
|
|
341
382
|
}
|
|
342
383
|
//# sourceMappingURL=AppsAdditionPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppsAdditionPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/AppsAdditionPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"AppsAdditionPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/AppsAdditionPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,gCAAgC,CAAC;IAmBhD,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;IAM/D,OAAiB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;IAiBpE,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;IAG/D,OAAO,EAA4C,cAAc,EAAE,MAA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