@sapui5/sap.cux.home 1.136.1 → 1.138.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/cux/home/.library +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js +33 -30
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +13 -7
- package/src/sap/cux/home/App.d.ts +1 -2
- package/src/sap/cux/home/App.d.ts.map +1 -1
- package/src/sap/cux/home/App.js +7 -2
- package/src/sap/cux/home/App.js.map +1 -1
- package/src/sap/cux/home/App.ts +8 -3
- package/src/sap/cux/home/AppsAdditionPanel.d.ts +0 -2
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.js +28 -23
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.ts +18 -5
- package/src/sap/cux/home/AppsContainer.d.ts +0 -1
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.js +22 -25
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +4 -4
- package/src/sap/cux/home/BaseApp.d.ts +2 -2
- package/src/sap/cux/home/BaseApp.d.ts.map +1 -1
- package/src/sap/cux/home/BaseApp.js +10 -3
- package/src/sap/cux/home/BaseApp.js.map +1 -1
- package/src/sap/cux/home/BaseApp.ts +11 -4
- package/src/sap/cux/home/BaseAppPanel.d.ts +0 -2
- package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.js +7 -12
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +2 -4
- package/src/sap/cux/home/BaseAppPersPanel.d.ts +3 -3
- package/src/sap/cux/home/BaseAppPersPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.js +17 -13
- package/src/sap/cux/home/BaseAppPersPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.ts +18 -11
- package/src/sap/cux/home/BaseContainer.d.ts +0 -1
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.js +16 -13
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +10 -5
- package/src/sap/cux/home/BaseLayout.d.ts +0 -1
- package/src/sap/cux/home/BaseLayout.d.ts.map +1 -1
- package/src/sap/cux/home/BaseLayout.js +6 -13
- package/src/sap/cux/home/BaseLayout.js.map +1 -1
- package/src/sap/cux/home/BaseLayout.ts +1 -2
- package/src/sap/cux/home/BaseNewsItem.d.ts +1 -2
- package/src/sap/cux/home/BaseNewsItem.d.ts.map +1 -1
- package/src/sap/cux/home/BaseNewsItem.js +7 -2
- package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
- package/src/sap/cux/home/BaseNewsItem.ts +8 -3
- package/src/sap/cux/home/BaseNewsPanel.d.ts +1 -2
- package/src/sap/cux/home/BaseNewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.js +7 -2
- package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.ts +8 -3
- package/src/sap/cux/home/BasePagePanel.d.ts +1 -2
- package/src/sap/cux/home/BasePagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePagePanel.gen.d.ts +34 -0
- package/src/sap/cux/home/BasePagePanel.js +16 -2
- package/src/sap/cux/home/BasePagePanel.js.map +1 -1
- package/src/sap/cux/home/BasePagePanel.ts +17 -3
- package/src/sap/cux/home/BasePanel.d.ts +0 -1
- package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePanel.js +1 -3
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +0 -1
- package/src/sap/cux/home/BaseSettingsDialog.d.ts +0 -1
- package/src/sap/cux/home/BaseSettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.js +0 -1
- package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.ts +0 -1
- package/src/sap/cux/home/BaseSettingsPanel.d.ts +1 -2
- package/src/sap/cux/home/BaseSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.js +0 -1
- package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.ts +1 -2
- package/src/sap/cux/home/CardsPanel.d.ts +0 -1
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.js +103 -104
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +4 -3
- package/src/sap/cux/home/ContentAdditionDialog.d.ts +0 -3
- package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.js +3 -7
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.ts +3 -7
- package/src/sap/cux/home/ErrorPanel.d.ts +1 -2
- package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ErrorPanel.gen.d.ts +24 -0
- package/src/sap/cux/home/ErrorPanel.js +16 -2
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +17 -3
- package/src/sap/cux/home/FavAppPanel.d.ts +0 -1
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +286 -291
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +23 -18
- package/src/sap/cux/home/FrequentAppPanel.d.ts +0 -1
- package/src/sap/cux/home/FrequentAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.js +1 -4
- package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.ts +0 -1
- package/src/sap/cux/home/Group.d.ts +2 -2
- package/src/sap/cux/home/Group.d.ts.map +1 -1
- package/src/sap/cux/home/Group.gen.d.ts +47 -1
- package/src/sap/cux/home/Group.js +30 -3
- package/src/sap/cux/home/Group.js.map +1 -1
- package/src/sap/cux/home/Group.ts +26 -6
- package/src/sap/cux/home/IToDoPanel.d.ts +1 -2
- package/src/sap/cux/home/IToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/IToDoPanel.js.map +1 -1
- package/src/sap/cux/home/IToDoPanel.ts +1 -2
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts +0 -4
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.js +1 -7
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +1 -8
- package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsCardsSettingsPanel.js +0 -3
- package/src/sap/cux/home/InsightsCardsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsCardsSettingsPanel.ts +0 -3
- package/src/sap/cux/home/InsightsContainer.d.ts +1 -1
- package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsContainer.js +19 -3
- package/src/sap/cux/home/InsightsContainer.js.map +1 -1
- package/src/sap/cux/home/InsightsContainer.ts +17 -4
- package/src/sap/cux/home/InsightsTilesSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/InsightsTilesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js +5 -5
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +5 -5
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +0 -3
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +0 -3
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +0 -3
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +0 -3
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +22 -13
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +22 -17
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js +0 -3
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +0 -3
- package/src/sap/cux/home/KeyUserSettingsDialog.d.ts +0 -3
- package/src/sap/cux/home/KeyUserSettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.js +1 -4
- package/src/sap/cux/home/KeyUserSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.ts +1 -4
- package/src/sap/cux/home/Layout.d.ts +0 -1
- package/src/sap/cux/home/Layout.d.ts.map +1 -1
- package/src/sap/cux/home/Layout.js +7 -10
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +3 -4
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.js +0 -3
- package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.ts +0 -3
- package/src/sap/cux/home/MenuItem.d.ts +0 -1
- package/src/sap/cux/home/MenuItem.d.ts.map +1 -1
- package/src/sap/cux/home/MenuItem.js +0 -1
- package/src/sap/cux/home/MenuItem.js.map +1 -1
- package/src/sap/cux/home/MenuItem.ts +0 -1
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts +0 -1
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js +0 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.ts +0 -1
- package/src/sap/cux/home/NewsGroup.d.ts +0 -3
- package/src/sap/cux/home/NewsGroup.d.ts.map +1 -1
- package/src/sap/cux/home/NewsGroup.js +1 -4
- package/src/sap/cux/home/NewsGroup.js.map +1 -1
- package/src/sap/cux/home/NewsGroup.ts +1 -4
- package/src/sap/cux/home/NewsItem.d.ts +0 -3
- package/src/sap/cux/home/NewsItem.d.ts.map +1 -1
- package/src/sap/cux/home/NewsItem.js +0 -3
- package/src/sap/cux/home/NewsItem.js.map +1 -1
- package/src/sap/cux/home/NewsItem.ts +0 -3
- package/src/sap/cux/home/NewsPanel.d.ts +0 -1
- package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.js +84 -96
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +32 -35
- package/src/sap/cux/home/NewsSettingsPanel.d.ts +6 -3
- package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js +18 -4
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +16 -4
- package/src/sap/cux/home/NoDataContainer.d.ts +0 -1
- package/src/sap/cux/home/NoDataContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NoDataContainer.js +0 -1
- package/src/sap/cux/home/NoDataContainer.js.map +1 -1
- package/src/sap/cux/home/NoDataContainer.ts +0 -1
- package/src/sap/cux/home/Page.d.ts +0 -3
- package/src/sap/cux/home/Page.d.ts.map +1 -1
- package/src/sap/cux/home/Page.gen.d.ts +0 -12
- package/src/sap/cux/home/Page.js +0 -7
- package/src/sap/cux/home/Page.js.map +1 -1
- package/src/sap/cux/home/Page.ts +0 -7
- package/src/sap/cux/home/PagePanel.d.ts +0 -4
- package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/PagePanel.js +5 -11
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +4 -9
- package/src/sap/cux/home/PageSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/PageSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.js +3 -5
- package/src/sap/cux/home/PageSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.ts +3 -5
- package/src/sap/cux/home/RecentAppPanel.d.ts +0 -1
- package/src/sap/cux/home/RecentAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.js +2 -6
- package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.ts +0 -1
- package/src/sap/cux/home/RecommendedAppPanel.d.ts +0 -1
- package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js +0 -1
- package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.ts +0 -1
- package/src/sap/cux/home/SettingsDialog.d.ts +0 -3
- package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/SettingsDialog.js +25 -23
- package/src/sap/cux/home/SettingsDialog.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.ts +9 -16
- package/src/sap/cux/home/SituationPanel.d.ts +0 -1
- package/src/sap/cux/home/SituationPanel.d.ts.map +1 -1
- package/src/sap/cux/home/SituationPanel.js +0 -1
- package/src/sap/cux/home/SituationPanel.js.map +1 -1
- package/src/sap/cux/home/SituationPanel.ts +0 -1
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts +207 -0
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -0
- package/src/sap/cux/home/SpaceInsightsPanel.gen.d.ts +200 -0
- package/src/sap/cux/home/SpaceInsightsPanel.js +786 -0
- package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -0
- package/src/sap/cux/home/SpaceInsightsPanel.ts +628 -0
- package/src/sap/cux/home/SpacePanel.d.ts +117 -0
- package/src/sap/cux/home/SpacePanel.d.ts.map +1 -0
- package/src/sap/cux/home/SpacePanel.gen.d.ts +77 -0
- package/src/sap/cux/home/SpacePanel.js +599 -0
- package/src/sap/cux/home/SpacePanel.js.map +1 -0
- package/src/sap/cux/home/SpacePanel.ts +461 -0
- package/src/sap/cux/home/TaskPanel.d.ts +0 -1
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.js +14 -24
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +6 -11
- package/src/sap/cux/home/TilesPanel.d.ts +0 -1
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.js +4 -5
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +3 -3
- package/src/sap/cux/home/ToDoPanel.d.ts +11 -1
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +67 -17
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +70 -13
- package/src/sap/cux/home/ToDosContainer.d.ts +0 -1
- package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
- package/src/sap/cux/home/ToDosContainer.js +0 -1
- package/src/sap/cux/home/ToDosContainer.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.ts +0 -1
- package/src/sap/cux/home/i18n/messagebundle.properties +8 -6
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +59 -13
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_da.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_de.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_el.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_en.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +46 -6
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_es.properties +62 -16
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_et.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +54 -8
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +56 -10
- package/src/sap/cux/home/i18n/messagebundle_id.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_it.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +56 -10
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +58 -12
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_no.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +56 -10
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_th.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +57 -11
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +56 -10
- package/src/sap/cux/home/interface/AppsInterface.d.ts +1 -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 +1 -0
- package/src/sap/cux/home/library.d.ts +3 -4
- package/src/sap/cux/home/library.d.ts.map +1 -1
- package/src/sap/cux/home/library.js +3 -4
- package/src/sap/cux/home/library.js.map +1 -1
- package/src/sap/cux/home/library.ts +3 -4
- package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +1 -1
- package/src/sap/cux/home/themes/base/InsightsContainer.less +4 -0
- package/src/sap/cux/home/utils/Accessibility.js +3 -4
- package/src/sap/cux/home/utils/Accessibility.js.map +1 -1
- package/src/sap/cux/home/utils/Accessibility.ts +2 -2
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.d.ts +0 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.d.ts.map +1 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.js +0 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.js.map +1 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.ts +0 -1
- package/src/sap/cux/home/utils/AppManager.d.ts +12 -7
- package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/AppManager.js +172 -172
- package/src/sap/cux/home/utils/AppManager.js.map +1 -1
- package/src/sap/cux/home/utils/AppManager.ts +42 -23
- package/src/sap/cux/home/utils/BatchHelper.d.ts +0 -3
- package/src/sap/cux/home/utils/BatchHelper.d.ts.map +1 -1
- package/src/sap/cux/home/utils/BatchHelper.js +5 -10
- package/src/sap/cux/home/utils/BatchHelper.js.map +1 -1
- package/src/sap/cux/home/utils/BatchHelper.ts +0 -3
- package/src/sap/cux/home/utils/CommonUtils.d.ts +9 -0
- package/src/sap/cux/home/utils/CommonUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/CommonUtils.js +23 -2
- package/src/sap/cux/home/utils/CommonUtils.js.map +1 -1
- package/src/sap/cux/home/utils/CommonUtils.ts +25 -1
- package/src/sap/cux/home/utils/Constants.d.ts +4 -5
- package/src/sap/cux/home/utils/Constants.d.ts.map +1 -1
- package/src/sap/cux/home/utils/Constants.js +5 -5
- package/src/sap/cux/home/utils/Constants.js.map +1 -1
- package/src/sap/cux/home/utils/Constants.ts +4 -5
- package/src/sap/cux/home/utils/DecisionDialog.d.ts +0 -3
- package/src/sap/cux/home/utils/DecisionDialog.d.ts.map +1 -1
- package/src/sap/cux/home/utils/DecisionDialog.js +0 -3
- package/src/sap/cux/home/utils/DecisionDialog.js.map +1 -1
- package/src/sap/cux/home/utils/DecisionDialog.ts +0 -3
- package/src/sap/cux/home/utils/Device.js +1 -2
- package/src/sap/cux/home/utils/Device.js.map +1 -1
- package/src/sap/cux/home/utils/FESRUtil.js +1 -1
- package/src/sap/cux/home/utils/FESRUtil.js.map +1 -1
- package/src/sap/cux/home/utils/FESRUtil.ts +1 -1
- package/src/sap/cux/home/utils/FeatureUtils.d.ts +20 -13
- package/src/sap/cux/home/utils/FeatureUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/FeatureUtils.js +38 -33
- package/src/sap/cux/home/utils/FeatureUtils.js.map +1 -1
- package/src/sap/cux/home/utils/FeatureUtils.ts +39 -32
- package/src/sap/cux/home/utils/HttpHelper.d.ts +7 -3
- package/src/sap/cux/home/utils/HttpHelper.d.ts.map +1 -1
- package/src/sap/cux/home/utils/HttpHelper.js +43 -3
- package/src/sap/cux/home/utils/HttpHelper.js.map +1 -1
- package/src/sap/cux/home/utils/HttpHelper.ts +25 -3
- package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts.map +1 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.js +33 -13
- package/src/sap/cux/home/utils/KeyUserPersonalization.js.map +1 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.ts +2 -2
- package/src/sap/cux/home/utils/PageManager.d.ts +0 -3
- package/src/sap/cux/home/utils/PageManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PageManager.js +8 -14
- package/src/sap/cux/home/utils/PageManager.js.map +1 -1
- package/src/sap/cux/home/utils/PageManager.ts +0 -3
- package/src/sap/cux/home/utils/PersonalisationUtils.d.ts +0 -3
- package/src/sap/cux/home/utils/PersonalisationUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PersonalisationUtils.js +1 -5
- package/src/sap/cux/home/utils/PersonalisationUtils.js.map +1 -1
- package/src/sap/cux/home/utils/PersonalisationUtils.ts +0 -3
- package/src/sap/cux/home/utils/SituationUtils.js +1 -2
- package/src/sap/cux/home/utils/SituationUtils.js.map +1 -1
- package/src/sap/cux/home/utils/TaskUtils.js +1 -2
- package/src/sap/cux/home/utils/TaskUtils.js.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts +0 -3
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.js +0 -3
- package/src/sap/cux/home/utils/UshellPersonalizer.js.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.ts +0 -3
- package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +16 -17
- package/src/sap/cux/home/utils/CardSkeleton.d.ts +0 -54
- package/src/sap/cux/home/utils/CardSkeleton.d.ts.map +0 -1
- package/src/sap/cux/home/utils/CardSkeleton.js +0 -61
- package/src/sap/cux/home/utils/CardSkeleton.js.map +0 -1
- package/src/sap/cux/home/utils/CardSkeleton.ts +0 -53
|
@@ -286,10 +286,7 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
286
286
|
* @author SAP SE
|
|
287
287
|
* @version 0.0.1
|
|
288
288
|
* @since 1.121.0
|
|
289
|
-
*
|
|
290
289
|
* @private
|
|
291
|
-
* @experimental Since 1.121
|
|
292
|
-
* @hidden
|
|
293
290
|
*
|
|
294
291
|
* @alias sap.cux.home.util.AppManager
|
|
295
292
|
*/
|
|
@@ -320,7 +317,7 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
320
317
|
* @returns {Promise} - returns a promise which resolves with the requested page data
|
|
321
318
|
* @private
|
|
322
319
|
*/
|
|
323
|
-
_fetchRequestFromQueue(bForceRefresh) {
|
|
320
|
+
_fetchRequestFromQueue(bForceRefresh, pageId = MYHOME_PAGE_ID) {
|
|
324
321
|
try {
|
|
325
322
|
const _this = this;
|
|
326
323
|
return Promise.resolve(Container.getServiceAsync("SpaceContent")).then(function (oSpaceContentService) {
|
|
@@ -328,15 +325,15 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
328
325
|
_this.aRequestQueue = _this.aRequestQueue || [];
|
|
329
326
|
|
|
330
327
|
//Check if request already exists in the queue, if not add it
|
|
331
|
-
const oRequestedPage = _this.aRequestQueue.find(oRequest => oRequest.pageId ===
|
|
328
|
+
const oRequestedPage = _this.aRequestQueue.find(oRequest => oRequest.pageId === pageId);
|
|
332
329
|
if (!oRequestedPage || bForceRefresh === true || _this.vizDataModified === true) {
|
|
333
330
|
_this.vizDataModified = false;
|
|
334
|
-
oPageLoadPromise = oSpaceContentService.getPage(
|
|
331
|
+
oPageLoadPromise = oSpaceContentService.getPage(pageId);
|
|
335
332
|
if (oRequestedPage) {
|
|
336
333
|
oRequestedPage.pageLoadPromise = oPageLoadPromise;
|
|
337
334
|
} else {
|
|
338
335
|
_this.aRequestQueue.push({
|
|
339
|
-
pageId:
|
|
336
|
+
pageId: pageId,
|
|
340
337
|
pageLoadPromise: oPageLoadPromise
|
|
341
338
|
});
|
|
342
339
|
}
|
|
@@ -366,11 +363,10 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
366
363
|
* @returns {Promise} - resolves to array of all sections available in MyHome page
|
|
367
364
|
* @private
|
|
368
365
|
*/
|
|
369
|
-
_getSections() {
|
|
370
|
-
let bForceRefresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
366
|
+
_getSections(bForceRefresh = false, pageId = MYHOME_PAGE_ID) {
|
|
371
367
|
try {
|
|
372
368
|
const _this2 = this;
|
|
373
|
-
return Promise.resolve(_this2._fetchRequestFromQueue(bForceRefresh)).then(function (oPage) {
|
|
369
|
+
return Promise.resolve(_this2._fetchRequestFromQueue(bForceRefresh, pageId)).then(function (oPage) {
|
|
374
370
|
const aSections = oPage && oPage.sections || [],
|
|
375
371
|
iRecentAppSectionIndex = aSections.findIndex(oSection => oSection.default);
|
|
376
372
|
if (iRecentAppSectionIndex > 0) {
|
|
@@ -399,12 +395,12 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
399
395
|
* @returns {Promise} - resolves to array of all apps available in MyHome page
|
|
400
396
|
* @private
|
|
401
397
|
*/
|
|
402
|
-
|
|
398
|
+
_fetchPageVizs(bForceRefresh, pageId = MYHOME_PAGE_ID) {
|
|
403
399
|
try {
|
|
404
400
|
const _this3 = this;
|
|
405
401
|
const aVizs = [];
|
|
406
402
|
_this3._oVizCacheData = _this3._oVizCacheData || {};
|
|
407
|
-
return Promise.resolve(_this3._getSections(bForceRefresh)).then(function (aSections) {
|
|
403
|
+
return Promise.resolve(_this3._getSections(bForceRefresh, pageId)).then(function (aSections) {
|
|
408
404
|
return Promise.resolve(Container.getServiceAsync("VisualizationInstantiation")).then(function (oVizInstantiationService) {
|
|
409
405
|
aSections.forEach((oSection, iSectionIndex) => {
|
|
410
406
|
oSection?.visualizations?.forEach((oVisualization, iVisualizationIndex) => {
|
|
@@ -425,6 +421,7 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
425
421
|
oViz.BGColor = DEFAULT_BG_COLOR().key;
|
|
426
422
|
oViz.isFav = true;
|
|
427
423
|
oViz.isSection = false;
|
|
424
|
+
oViz.pageId = pageId;
|
|
428
425
|
oViz.icon = vizConfig?.["sap.ui"]?.icons?.icon || FALLBACK_ICON;
|
|
429
426
|
if (oVisualization?.indicatorDataSource) {
|
|
430
427
|
oViz.isCount = true;
|
|
@@ -490,10 +487,10 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
490
487
|
* @returns {Promise} - resolves to array of favourite vizualizations in MyHome page
|
|
491
488
|
* @private
|
|
492
489
|
*/
|
|
493
|
-
fetchFavVizs(bForceRefresh, bPreventGrouping) {
|
|
490
|
+
fetchFavVizs(bForceRefresh, bPreventGrouping, pageId = MYHOME_PAGE_ID) {
|
|
494
491
|
try {
|
|
495
492
|
const _this5 = this;
|
|
496
|
-
return Promise.resolve(_this5.
|
|
493
|
+
return Promise.resolve(_this5._fetchPageVizs(bForceRefresh, pageId)).then(function (aMyHomeVizs) {
|
|
497
494
|
const aVisibleFavVizs = aMyHomeVizs.filter(oViz => oViz.persConfig && oViz.persConfig.sectionId !== MYINSIGHT_SECTION_ID && oViz.url && oViz.title);
|
|
498
495
|
if (bPreventGrouping) {
|
|
499
496
|
return _this5._filterDuplicateVizs(_linkDuplicateVizs(aVisibleFavVizs), false);
|
|
@@ -520,7 +517,7 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
520
517
|
}
|
|
521
518
|
const fnFetchInsightsApps = function () {
|
|
522
519
|
try {
|
|
523
|
-
return Promise.resolve(_this6.
|
|
520
|
+
return Promise.resolve(_this6._fetchPageVizs(bForceRefresh)).then(function (aVizs) {
|
|
524
521
|
return aVizs.filter(oViz => oViz.persConfig?.sectionId === MYINSIGHT_SECTION_ID && oViz.url && oViz.title);
|
|
525
522
|
});
|
|
526
523
|
} catch (e) {
|
|
@@ -566,8 +563,7 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
566
563
|
* @returns {Promise} resolves to void after adding app to a section
|
|
567
564
|
* @private
|
|
568
565
|
*/
|
|
569
|
-
addVisualization(visualizationId) {
|
|
570
|
-
let sectionId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
566
|
+
addVisualization(visualizationId, sectionId = undefined) {
|
|
571
567
|
try {
|
|
572
568
|
return Promise.resolve(Container.getServiceAsync("SpaceContent")).then(function (spaceContentService) {
|
|
573
569
|
return Promise.resolve(spaceContentService.addVisualization(MYHOME_PAGE_ID, sectionId, visualizationId)).then(function () {});
|
|
@@ -584,11 +580,10 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
584
580
|
* @private
|
|
585
581
|
* @returns {Promise} resolves after all visualizations are deleted
|
|
586
582
|
*/
|
|
587
|
-
removeVisualizations(
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
} = _ref;
|
|
583
|
+
removeVisualizations({
|
|
584
|
+
sectionId,
|
|
585
|
+
vizIds
|
|
586
|
+
}) {
|
|
592
587
|
try {
|
|
593
588
|
const _this7 = this;
|
|
594
589
|
return Promise.resolve(Container.getServiceAsync("SpaceContent")).then(function (spaceContentService) {
|
|
@@ -620,13 +615,12 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
620
615
|
* @private
|
|
621
616
|
* @returns {Promise} resolves to void
|
|
622
617
|
*/
|
|
623
|
-
updateVisualizations(
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
} = _ref2;
|
|
618
|
+
updateVisualizations({
|
|
619
|
+
pageId,
|
|
620
|
+
sourceSectionIndex,
|
|
621
|
+
sourceVisualizationIndex,
|
|
622
|
+
oVisualizationData
|
|
623
|
+
}) {
|
|
630
624
|
try {
|
|
631
625
|
return Promise.resolve(Container.getServiceAsync("SpaceContent")).then(function (spaceContentService) {
|
|
632
626
|
return spaceContentService.updateVisualization(pageId, sourceSectionIndex, sourceVisualizationIndex, oVisualizationData);
|
|
@@ -708,11 +702,10 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
708
702
|
* @returns {Promise} resolves to array of visualizations
|
|
709
703
|
* @private
|
|
710
704
|
*/
|
|
711
|
-
getSectionVisualizations(sectionId) {
|
|
712
|
-
let forceRefresh = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
705
|
+
getSectionVisualizations(sectionId, forceRefresh = false, pageId = MYHOME_PAGE_ID) {
|
|
713
706
|
try {
|
|
714
707
|
const _this9 = this;
|
|
715
|
-
return Promise.resolve(_this9.fetchFavVizs(forceRefresh)).then(function (aApps) {
|
|
708
|
+
return Promise.resolve(_this9.fetchFavVizs(forceRefresh, false, pageId)).then(function (aApps) {
|
|
716
709
|
if (sectionId) {
|
|
717
710
|
return aApps.find(oViz => oViz.isSection && oViz.id === sectionId)?.apps || [];
|
|
718
711
|
} else {
|
|
@@ -731,13 +724,13 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
731
724
|
*/
|
|
732
725
|
addBookMark(bookmark, moveConfig) {
|
|
733
726
|
try {
|
|
734
|
-
const
|
|
727
|
+
const _this0 = this;
|
|
735
728
|
return Promise.resolve(Container.getServiceAsync("BookmarkV2")).then(function (oBookmarkService) {
|
|
736
729
|
return Promise.resolve(oBookmarkService.getContentNodes()).then(function (aContentNodes) {
|
|
737
730
|
const oMyHomeSpace = aContentNodes.find(contentNode => contentNode.id === MYHOME_SPACE_ID);
|
|
738
731
|
const contentNode = oMyHomeSpace?.children?.find(contentNode => contentNode.id === MYHOME_PAGE_ID);
|
|
739
732
|
return Promise.resolve(oBookmarkService.addBookmark(createBookMarkData(bookmark), contentNode)).then(function () {
|
|
740
|
-
return moveConfig ?
|
|
733
|
+
return moveConfig ? _this0.moveVisualization(moveConfig) : Promise.resolve();
|
|
741
734
|
});
|
|
742
735
|
});
|
|
743
736
|
});
|
|
@@ -753,11 +746,10 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
753
746
|
* @returns {Promise<object|null>} A promise that resolves with the visualization object if found, or null if not found.
|
|
754
747
|
* @private
|
|
755
748
|
*/
|
|
756
|
-
getVisualization(appId, sectionId) {
|
|
757
|
-
let forceRefresh = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
749
|
+
getVisualization(appId, sectionId, forceRefresh = false) {
|
|
758
750
|
try {
|
|
759
|
-
const
|
|
760
|
-
return Promise.resolve(
|
|
751
|
+
const _this1 = this;
|
|
752
|
+
return Promise.resolve(_this1.getSectionVisualizations(sectionId, forceRefresh)).then(function (sectionVisualizations) {
|
|
761
753
|
return sectionVisualizations.find(sectionVisualization => sectionVisualization.appId === appId);
|
|
762
754
|
});
|
|
763
755
|
} catch (e) {
|
|
@@ -776,9 +768,9 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
776
768
|
*/
|
|
777
769
|
moveVisualization(moveConfig) {
|
|
778
770
|
try {
|
|
779
|
-
const
|
|
771
|
+
const _this10 = this;
|
|
780
772
|
return Promise.resolve(Container.getServiceAsync("SpaceContent")).then(function (spaceContentService) {
|
|
781
|
-
|
|
773
|
+
_this10.vizDataModified = true;
|
|
782
774
|
return spaceContentService.moveVisualization(MYHOME_PAGE_ID, moveConfig.sourceSectionIndex, moveConfig.sourceVisualizationIndex, moveConfig.targetSectionIndex, moveConfig.targetVisualizationIndex);
|
|
783
775
|
});
|
|
784
776
|
} catch (e) {
|
|
@@ -825,6 +817,7 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
825
817
|
BGColor: DEFAULT_BG_COLOR().key,
|
|
826
818
|
icon: "sap-icon://folder-full",
|
|
827
819
|
isSection: true,
|
|
820
|
+
pageId: oViz.pageId,
|
|
828
821
|
isPresetSection: oViz.persConfig?.isPresetSection,
|
|
829
822
|
apps: [oViz]
|
|
830
823
|
});
|
|
@@ -874,20 +867,19 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
874
867
|
* @returns {Promise} resolves to array of recommended fiori ids
|
|
875
868
|
* @private
|
|
876
869
|
*/
|
|
877
|
-
_getRecommenedFioriIds() {
|
|
878
|
-
let bForceRefresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
870
|
+
_getRecommenedFioriIds(bForceRefresh = false) {
|
|
879
871
|
try {
|
|
880
872
|
let _exit2 = false;
|
|
881
|
-
const
|
|
882
|
-
function
|
|
883
|
-
return _exit2 ? _result3 :
|
|
873
|
+
const _this11 = this;
|
|
874
|
+
function _temp1(_result3) {
|
|
875
|
+
return _exit2 ? _result3 : _this11.recommendedFioriIds;
|
|
884
876
|
}
|
|
885
|
-
const
|
|
886
|
-
if (!
|
|
877
|
+
const _temp0 = function () {
|
|
878
|
+
if (!_this11.recommendedFioriIds || bForceRefresh) {
|
|
887
879
|
return _catch(function () {
|
|
888
880
|
return Promise.resolve(HttpHelper.GetJSON(RECOMMENDATION_SRVC_URL)).then(function (_HttpHelper$GetJSON) {
|
|
889
881
|
const response = _HttpHelper$GetJSON;
|
|
890
|
-
|
|
882
|
+
_this11.recommendedFioriIds = response?.value?.map(oApp => {
|
|
891
883
|
return oApp.app_id;
|
|
892
884
|
}) || [];
|
|
893
885
|
});
|
|
@@ -899,7 +891,7 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
899
891
|
});
|
|
900
892
|
}
|
|
901
893
|
}();
|
|
902
|
-
return Promise.resolve(
|
|
894
|
+
return Promise.resolve(_temp0 && _temp0.then ? _temp0.then(_temp1) : _temp1(_temp0));
|
|
903
895
|
} catch (e) {
|
|
904
896
|
return Promise.reject(e);
|
|
905
897
|
}
|
|
@@ -913,31 +905,31 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
913
905
|
_getCatalogApps() {
|
|
914
906
|
try {
|
|
915
907
|
let _exit3 = false;
|
|
916
|
-
const
|
|
917
|
-
function
|
|
918
|
-
return _exit3 ? _result4 : Promise.resolve(
|
|
908
|
+
const _this12 = this;
|
|
909
|
+
function _temp12(_result4) {
|
|
910
|
+
return _exit3 ? _result4 : Promise.resolve(_this12.catalogAppData);
|
|
919
911
|
}
|
|
920
|
-
const
|
|
921
|
-
if (!
|
|
912
|
+
const _temp11 = function () {
|
|
913
|
+
if (!_this12.catalogAppData) {
|
|
922
914
|
return _catch(function () {
|
|
923
915
|
return Promise.resolve(Container.getServiceAsync("SearchableContent")).then(function (SearchableContent) {
|
|
924
|
-
|
|
916
|
+
_this12.catalogAppData = SearchableContent.getApps({
|
|
925
917
|
includeAppsWithoutVisualizations: false
|
|
926
918
|
});
|
|
927
|
-
const
|
|
919
|
+
const _this12$catalogAppDat = _this12.catalogAppData;
|
|
928
920
|
_exit3 = true;
|
|
929
|
-
return
|
|
921
|
+
return _this12$catalogAppDat;
|
|
930
922
|
});
|
|
931
923
|
}, function (error) {
|
|
932
|
-
|
|
924
|
+
_this12.catalogAppData = undefined;
|
|
933
925
|
Log.error(error instanceof Error ? "Error while fetching catalog apps:" + error.message : String(error));
|
|
934
|
-
const
|
|
926
|
+
const _temp10 = [];
|
|
935
927
|
_exit3 = true;
|
|
936
|
-
return
|
|
928
|
+
return _temp10;
|
|
937
929
|
});
|
|
938
930
|
}
|
|
939
931
|
}();
|
|
940
|
-
return Promise.resolve(
|
|
932
|
+
return Promise.resolve(_temp11 && _temp11.then ? _temp11.then(_temp12) : _temp12(_temp11));
|
|
941
933
|
} catch (e) {
|
|
942
934
|
return Promise.reject(e);
|
|
943
935
|
}
|
|
@@ -1039,27 +1031,27 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1039
1031
|
*/
|
|
1040
1032
|
loadI18n(manifest, manifestUrl) {
|
|
1041
1033
|
try {
|
|
1042
|
-
const
|
|
1043
|
-
function
|
|
1044
|
-
return
|
|
1034
|
+
const _this13 = this;
|
|
1035
|
+
function _temp14() {
|
|
1036
|
+
return _this13._RBManifestMap[absoluteUrl];
|
|
1045
1037
|
}
|
|
1046
1038
|
// construct abslute url for properties file relative to manifest url
|
|
1047
1039
|
const i18nBundleUrl = manifest?.["sap.app"]?.["i18n"]?.["bundleUrl"];
|
|
1048
1040
|
const absoluteUrl = new URL(i18nBundleUrl, manifestUrl).href;
|
|
1049
|
-
|
|
1050
|
-
const
|
|
1051
|
-
if (!
|
|
1041
|
+
_this13._RBManifestMap = _this13._RBManifestMap || {};
|
|
1042
|
+
const _temp13 = function () {
|
|
1043
|
+
if (!_this13._RBManifestMap[absoluteUrl]) {
|
|
1052
1044
|
return Promise.resolve(ResourceBundle.create({
|
|
1053
1045
|
// specify url of the base .properties file
|
|
1054
1046
|
bundleUrl: absoluteUrl,
|
|
1055
1047
|
async: true,
|
|
1056
1048
|
terminologies: manifest["sap.app"]?.["i18n"]?.["terminologies"]
|
|
1057
1049
|
})).then(function (oResourceBundle) {
|
|
1058
|
-
|
|
1050
|
+
_this13._RBManifestMap[absoluteUrl] = oResourceBundle;
|
|
1059
1051
|
});
|
|
1060
1052
|
}
|
|
1061
1053
|
}();
|
|
1062
|
-
return Promise.resolve(
|
|
1054
|
+
return Promise.resolve(_temp13 && _temp13.then ? _temp13.then(_temp14) : _temp14(_temp13));
|
|
1063
1055
|
} catch (e) {
|
|
1064
1056
|
return Promise.reject(e);
|
|
1065
1057
|
}
|
|
@@ -1106,18 +1098,18 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1106
1098
|
*/
|
|
1107
1099
|
getProcessedManifest(metaModel, manifestObj, parentApp, versionInfo) {
|
|
1108
1100
|
try {
|
|
1109
|
-
const
|
|
1101
|
+
const _this14 = this;
|
|
1110
1102
|
return Promise.resolve(_catch(function () {
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1103
|
+
function _temp17() {
|
|
1104
|
+
return _this14.recommendedUtilInstance._createCardManifest(cardInput, versionInfo, manifest, suppressRowNavigation);
|
|
1113
1105
|
}
|
|
1114
1106
|
const manifest = manifestObj.manifest;
|
|
1115
|
-
const mainEntitySetName =
|
|
1107
|
+
const mainEntitySetName = _this14._getEntitySet(manifest);
|
|
1116
1108
|
if (!mainEntitySetName) {
|
|
1117
1109
|
return undefined;
|
|
1118
1110
|
}
|
|
1119
1111
|
const mainEntitySet = metaModel.getODataEntitySet(mainEntitySetName);
|
|
1120
|
-
const lineItemDetails =
|
|
1112
|
+
const lineItemDetails = _this14.recommendedUtilInstance.getLineItemDetails(metaModel, manifest, mainEntitySetName);
|
|
1121
1113
|
if (!lineItemDetails?.lineItem) {
|
|
1122
1114
|
return undefined;
|
|
1123
1115
|
}
|
|
@@ -1127,19 +1119,19 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1127
1119
|
const suppressRowNavigation = lineItemDetails?.lrSettings?.["bSupressCardRowNavigation"];
|
|
1128
1120
|
|
|
1129
1121
|
// Check for mandatory properties
|
|
1130
|
-
if (
|
|
1122
|
+
if (_this14.recommendedUtilInstance.hasMandatoryProperties(entitySet, entityType?.property)) {
|
|
1131
1123
|
return undefined;
|
|
1132
1124
|
}
|
|
1133
1125
|
|
|
1134
1126
|
// Check for parameterized entity sets
|
|
1135
|
-
const parameterDetails =
|
|
1127
|
+
const parameterDetails = _this14.recommendedUtilInstance._getParametersisedEntitySetParams(metaModel, entitySetName, true);
|
|
1136
1128
|
if (parameterDetails?.entitySetName && parameterDetails?.parameters?.length) {
|
|
1137
1129
|
const paramEntitySet = metaModel.getODataEntitySet(parameterDetails.entitySetName);
|
|
1138
|
-
if (
|
|
1130
|
+
if (_this14.recommendedUtilInstance.hasMandatoryProperties(paramEntitySet, parameterDetails.parameters)) {
|
|
1139
1131
|
return undefined;
|
|
1140
1132
|
}
|
|
1141
1133
|
}
|
|
1142
|
-
const cardInput =
|
|
1134
|
+
const cardInput = _this14.recommendedUtilInstance._getManifestCardData(manifest, lineItemDetails, parentApp, metaModel);
|
|
1143
1135
|
|
|
1144
1136
|
// Ensure the card has at least 3 columns
|
|
1145
1137
|
if (cardInput.columns.length < COLUMN_LENGTH) {
|
|
@@ -1152,21 +1144,21 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1152
1144
|
cardInput.cardTitle = cardTitle || cardInput.cardTitle;
|
|
1153
1145
|
|
|
1154
1146
|
// Resolve i18n title if necessary
|
|
1155
|
-
const
|
|
1147
|
+
const _temp16 = function () {
|
|
1156
1148
|
if (!cardTitle && manifest["sap.app"]?.i18n) {
|
|
1157
1149
|
const i18nBundleUrl = manifest["sap.app"].i18n.bundleUrl;
|
|
1158
1150
|
const appTitle = manifest["sap.app"].title;
|
|
1159
|
-
const
|
|
1151
|
+
const _temp15 = function () {
|
|
1160
1152
|
if (i18nBundleUrl && (appTitle.startsWith("i18n>") || appTitle.startsWith("{"))) {
|
|
1161
|
-
return Promise.resolve(
|
|
1162
|
-
cardInput.cardTitle =
|
|
1153
|
+
return Promise.resolve(_this14.loadI18n(manifest, manifestObj.url)).then(function (i18nResourceBundle) {
|
|
1154
|
+
cardInput.cardTitle = _this14.getI18nValueOrDefaultString(cardInput.cardTitle, i18nResourceBundle);
|
|
1163
1155
|
});
|
|
1164
1156
|
}
|
|
1165
1157
|
}();
|
|
1166
|
-
if (
|
|
1158
|
+
if (_temp15 && _temp15.then) return _temp15.then(function () {});
|
|
1167
1159
|
}
|
|
1168
1160
|
}();
|
|
1169
|
-
return
|
|
1161
|
+
return _temp16 && _temp16.then ? _temp16.then(_temp17) : _temp17(_temp16);
|
|
1170
1162
|
}, function (oError) {
|
|
1171
1163
|
Log.error("Error while processing manifest", oError instanceof Error ? oError.message : String(oError));
|
|
1172
1164
|
return undefined;
|
|
@@ -1184,12 +1176,12 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1184
1176
|
*/
|
|
1185
1177
|
fetchMetaModels(validManifests) {
|
|
1186
1178
|
try {
|
|
1187
|
-
const
|
|
1179
|
+
const _this15 = this;
|
|
1188
1180
|
const odataPromises = validManifests.map(function (manifestObj) {
|
|
1189
1181
|
try {
|
|
1190
1182
|
return Promise.resolve(_catch(function () {
|
|
1191
|
-
return Promise.resolve(
|
|
1192
|
-
return
|
|
1183
|
+
return Promise.resolve(_this15._getOdataModel(manifestObj.manifest)).then(function (_this15$_getOdataMode) {
|
|
1184
|
+
return _this15$_getOdataMode?.getMetaModel();
|
|
1193
1185
|
});
|
|
1194
1186
|
}, function (oError) {
|
|
1195
1187
|
Log.error("Error while fetching metamodel", oError instanceof Error ? oError.message : String(oError));
|
|
@@ -1233,10 +1225,10 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1233
1225
|
*/
|
|
1234
1226
|
processManifests(combinedDetails, aCSTR) {
|
|
1235
1227
|
try {
|
|
1236
|
-
const
|
|
1228
|
+
const _this16 = this;
|
|
1237
1229
|
return Promise.all(combinedDetails.map(item => {
|
|
1238
1230
|
const parentApp = aCSTR.find(oApp => oApp.resolutionResult?.ui5ComponentName === item.manifest.manifest?.["sap.app"]?.id);
|
|
1239
|
-
return
|
|
1231
|
+
return _this16.getProcessedManifest(item.metaModel, item.manifest, parentApp, _this16.versionInfo);
|
|
1240
1232
|
}));
|
|
1241
1233
|
} catch (e) {
|
|
1242
1234
|
return Promise.reject(e);
|
|
@@ -1274,22 +1266,21 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1274
1266
|
*/
|
|
1275
1267
|
_getCardManifest(aList, aAppComponentIds) {
|
|
1276
1268
|
try {
|
|
1277
|
-
const
|
|
1269
|
+
const _this17 = this;
|
|
1278
1270
|
return Promise.resolve(_catch(function () {
|
|
1279
|
-
return Promise.resolve(Promise.all([
|
|
1280
|
-
let [aCatalog, aFioriData] = _ref3;
|
|
1271
|
+
return Promise.resolve(Promise.all([_this17._getCatalogApps(), _this17.getFioriAppData()])).then(function ([aCatalog, aFioriData]) {
|
|
1281
1272
|
return Promise.resolve(VersionInfo.load()).then(function (_VersionInfo$load) {
|
|
1282
|
-
|
|
1273
|
+
_this17.versionInfo = _VersionInfo$load;
|
|
1283
1274
|
const aCSTR = Object.values(aFioriData).flat();
|
|
1284
|
-
const aComponent =
|
|
1275
|
+
const aComponent = _this17.componentData;
|
|
1285
1276
|
// in case of replacing old recommended cards fioriIds are not available hence make use of componnetname
|
|
1286
1277
|
// and semanticobject and action to find fioriId, and populate aList to recreate recommended card again
|
|
1287
|
-
const processedList =
|
|
1288
|
-
return Promise.resolve(
|
|
1289
|
-
const validManifests = manifests.filter(manifestObj =>
|
|
1290
|
-
return Promise.resolve(
|
|
1291
|
-
const combinedDetails =
|
|
1292
|
-
return Promise.resolve(
|
|
1278
|
+
const processedList = _this17.processAppList(aList, aAppComponentIds, aComponent);
|
|
1279
|
+
return Promise.resolve(_this17.fetchManifests(processedList, aFioriData, aCatalog)).then(function (manifests) {
|
|
1280
|
+
const validManifests = manifests.filter(manifestObj => _this17._checkValidManifests(manifestObj.manifest));
|
|
1281
|
+
return Promise.resolve(_this17.fetchMetaModels(validManifests)).then(function (aMetaModel) {
|
|
1282
|
+
const combinedDetails = _this17.combineManifestsAndMetaModels(validManifests, aMetaModel);
|
|
1283
|
+
return Promise.resolve(_this17.processManifests(combinedDetails, aCSTR)).then(function (cards) {
|
|
1293
1284
|
return cards.filter(card => card !== undefined);
|
|
1294
1285
|
});
|
|
1295
1286
|
});
|
|
@@ -1319,7 +1310,7 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1319
1310
|
try {
|
|
1320
1311
|
let _exit4 = false;
|
|
1321
1312
|
const aApp = fioriData[appId] || [];
|
|
1322
|
-
const
|
|
1313
|
+
const _temp18 = _forOf(aApp, function (oApp) {
|
|
1323
1314
|
const oViz = catalogData.find(catalog => oApp.semanticObject === catalog.target?.semanticObject && oApp.action === catalog.target?.action);
|
|
1324
1315
|
const manifestUrl = oApp?.resolutionResult?.applicationDependencies?.manifest;
|
|
1325
1316
|
return function () {
|
|
@@ -1346,9 +1337,9 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1346
1337
|
}, function () {
|
|
1347
1338
|
return _exit4;
|
|
1348
1339
|
});
|
|
1349
|
-
return Promise.resolve(
|
|
1340
|
+
return Promise.resolve(_temp18 && _temp18.then ? _temp18.then(function (_result6) {
|
|
1350
1341
|
return _exit4 ? _result6 : undefined;
|
|
1351
|
-
}) : _exit4 ?
|
|
1342
|
+
}) : _exit4 ? _temp18 : undefined); // No valid manifest found in this appId's entries
|
|
1352
1343
|
} catch (e) {
|
|
1353
1344
|
return Promise.reject(e);
|
|
1354
1345
|
}
|
|
@@ -1392,10 +1383,10 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1392
1383
|
*/
|
|
1393
1384
|
getRecommenedCards() {
|
|
1394
1385
|
try {
|
|
1395
|
-
const
|
|
1386
|
+
const _this18 = this;
|
|
1396
1387
|
return Promise.resolve(_catch(function () {
|
|
1397
|
-
return Promise.resolve(
|
|
1398
|
-
return Promise.resolve(
|
|
1388
|
+
return Promise.resolve(_this18._getRecommenedFioriIds()).then(function (aAppIds) {
|
|
1389
|
+
return Promise.resolve(_this18._getCardManifest(aAppIds)).then(function (aManifests) {
|
|
1399
1390
|
const aRecManifests = aManifests?.slice(0, RECOMMENDED_CARD_LIMIT);
|
|
1400
1391
|
const aRecommendedCards = aRecManifests?.map(manifest => {
|
|
1401
1392
|
let id;
|
|
@@ -1408,7 +1399,7 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1408
1399
|
descriptorContent: manifest
|
|
1409
1400
|
};
|
|
1410
1401
|
});
|
|
1411
|
-
return
|
|
1402
|
+
return _this18._removeDuplicateCards(aRecommendedCards);
|
|
1412
1403
|
});
|
|
1413
1404
|
});
|
|
1414
1405
|
}, function (error) {
|
|
@@ -1432,22 +1423,20 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1432
1423
|
* @returns {Promise<ICustomVisualization[]>} A promise that resolves to an array of recommended visualizations.
|
|
1433
1424
|
* The array is limited to 10 visualizations, including must-include recommendations.
|
|
1434
1425
|
*/
|
|
1435
|
-
getRecommendedVisualizations() {
|
|
1436
|
-
let forceRefresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
1426
|
+
getRecommendedVisualizations(forceRefresh = false) {
|
|
1437
1427
|
try {
|
|
1438
|
-
const
|
|
1439
|
-
function
|
|
1440
|
-
return
|
|
1428
|
+
const _this19 = this;
|
|
1429
|
+
function _temp21() {
|
|
1430
|
+
return _this19._recommendedVisualizations;
|
|
1441
1431
|
}
|
|
1442
|
-
const
|
|
1443
|
-
if (!
|
|
1444
|
-
return Promise.resolve(
|
|
1445
|
-
const
|
|
1432
|
+
const _temp20 = function () {
|
|
1433
|
+
if (!_this19._recommendedVisualizations || forceRefresh) {
|
|
1434
|
+
return Promise.resolve(_this19._getRecommenedFioriIds(forceRefresh)).then(function (recommendedFioriIds) {
|
|
1435
|
+
const _temp19 = function () {
|
|
1446
1436
|
if (recommendedFioriIds.length) {
|
|
1447
1437
|
let finalRecommendations = [];
|
|
1448
1438
|
let mustIncludeRecommendations = [];
|
|
1449
|
-
return Promise.resolve(Promise.all([
|
|
1450
|
-
let [recommendedVisualizations, favoriteVisualizations] = _ref4;
|
|
1439
|
+
return Promise.resolve(Promise.all([_this19._getVisualizationsByFioriIds(recommendedFioriIds), _this19._fetchPageVizs(forceRefresh)])).then(function ([recommendedVisualizations, favoriteVisualizations]) {
|
|
1451
1440
|
//filter out recommendations that are already added
|
|
1452
1441
|
recommendedVisualizations = recommendedVisualizations.filter(recViz => _isVisualizationAlreadyAdded(recViz, favoriteVisualizations));
|
|
1453
1442
|
recommendedVisualizations.forEach(recViz => {
|
|
@@ -1458,17 +1447,17 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1458
1447
|
}
|
|
1459
1448
|
});
|
|
1460
1449
|
//return only 10 recommended apps along with 'MyInbox' and 'Manage My Timesheet' if user has access to these apps.
|
|
1461
|
-
|
|
1450
|
+
_this19._recommendedVisualizations = finalRecommendations.slice(0, 10 - mustIncludeRecommendations.length).concat(mustIncludeRecommendations);
|
|
1462
1451
|
});
|
|
1463
1452
|
} else {
|
|
1464
|
-
|
|
1453
|
+
_this19._recommendedVisualizations = [];
|
|
1465
1454
|
}
|
|
1466
1455
|
}();
|
|
1467
|
-
if (
|
|
1456
|
+
if (_temp19 && _temp19.then) return _temp19.then(function () {});
|
|
1468
1457
|
});
|
|
1469
1458
|
}
|
|
1470
1459
|
}();
|
|
1471
|
-
return Promise.resolve(
|
|
1460
|
+
return Promise.resolve(_temp20 && _temp20.then ? _temp20.then(_temp21) : _temp21(_temp20));
|
|
1472
1461
|
} catch (e) {
|
|
1473
1462
|
return Promise.reject(e);
|
|
1474
1463
|
}
|
|
@@ -1507,16 +1496,16 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1507
1496
|
*/
|
|
1508
1497
|
getFioriAppData() {
|
|
1509
1498
|
try {
|
|
1510
|
-
const
|
|
1499
|
+
const _this20 = this;
|
|
1511
1500
|
return Promise.resolve(_catch(function () {
|
|
1512
|
-
function
|
|
1513
|
-
return
|
|
1501
|
+
function _temp23() {
|
|
1502
|
+
return _this20.fioriAppData;
|
|
1514
1503
|
}
|
|
1515
|
-
const
|
|
1516
|
-
if (!Object.keys(
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
return Promise.resolve(
|
|
1504
|
+
const _temp22 = function () {
|
|
1505
|
+
if (!Object.keys(_this20.componentData).length) {
|
|
1506
|
+
_this20.componentData = {};
|
|
1507
|
+
_this20.fioriAppData = {};
|
|
1508
|
+
return Promise.resolve(_this20._getInboundApps()).then(function (inbounds) {
|
|
1520
1509
|
inbounds.forEach(oItem => {
|
|
1521
1510
|
const fioriId = oItem?.signature?.parameters?.["sap-fiori-id"]?.defaultValue?.value;
|
|
1522
1511
|
const componentId = oItem?.resolutionResult?.ui5ComponentName;
|
|
@@ -1526,8 +1515,8 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1526
1515
|
semanticObject: oItem.semanticObject,
|
|
1527
1516
|
resolutionResult: oItem.resolutionResult
|
|
1528
1517
|
};
|
|
1529
|
-
|
|
1530
|
-
|
|
1518
|
+
_this20.fioriAppData[fioriId] = _this20.fioriAppData[fioriId] || [];
|
|
1519
|
+
_this20.fioriAppData[fioriId].push(semanticData);
|
|
1531
1520
|
|
|
1532
1521
|
// store data along with fioriId in componentData, this can be used later to find the
|
|
1533
1522
|
// fioriId for those apps when only ui5ComponentName is known
|
|
@@ -1536,15 +1525,15 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1536
1525
|
...semanticData,
|
|
1537
1526
|
fioriId
|
|
1538
1527
|
};
|
|
1539
|
-
|
|
1540
|
-
|
|
1528
|
+
_this20.componentData[componentId] = _this20.componentData[componentId] || [];
|
|
1529
|
+
_this20.componentData[componentId].push(combinedData);
|
|
1541
1530
|
}
|
|
1542
1531
|
}
|
|
1543
1532
|
});
|
|
1544
1533
|
});
|
|
1545
1534
|
}
|
|
1546
1535
|
}();
|
|
1547
|
-
return
|
|
1536
|
+
return _temp22 && _temp22.then ? _temp22.then(_temp23) : _temp23(_temp22);
|
|
1548
1537
|
}, function (oError) {
|
|
1549
1538
|
Log.error(oError instanceof Error ? oError.message : String(oError));
|
|
1550
1539
|
return {};
|
|
@@ -1568,11 +1557,10 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1568
1557
|
*/
|
|
1569
1558
|
_getVisualizationsByFioriIds(fioriIds) {
|
|
1570
1559
|
try {
|
|
1571
|
-
const
|
|
1560
|
+
const _this21 = this;
|
|
1572
1561
|
const visualizations = [];
|
|
1573
1562
|
const visitedVisualizations = new Map();
|
|
1574
|
-
return Promise.resolve(Promise.all([
|
|
1575
|
-
let [inbounds, catalogApps] = _ref5;
|
|
1563
|
+
return Promise.resolve(Promise.all([_this21._getInboundApps(), _this21._getCatalogApps()])).then(function ([inbounds, catalogApps]) {
|
|
1576
1564
|
fioriIds.forEach(fioriId => {
|
|
1577
1565
|
// get all inbounds with the fiori id
|
|
1578
1566
|
const authorizedApps = inbounds.filter(function (inbound) {
|
|
@@ -1625,16 +1613,16 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1625
1613
|
_getAllFavPageApps(pages, shouldReload) {
|
|
1626
1614
|
try {
|
|
1627
1615
|
let _exit5 = false;
|
|
1628
|
-
const
|
|
1616
|
+
const _this22 = this;
|
|
1629
1617
|
return Promise.resolve(_catch(function () {
|
|
1630
|
-
function
|
|
1618
|
+
function _temp25(_result7) {
|
|
1631
1619
|
return _exit5 ? _result7 : [];
|
|
1632
1620
|
}
|
|
1633
|
-
const
|
|
1621
|
+
const _temp24 = function () {
|
|
1634
1622
|
if (pages) {
|
|
1635
|
-
|
|
1623
|
+
_this22._favPageVisualizations = _this22._favPageVisualizations || [];
|
|
1636
1624
|
//Check to ensure that missing visualization data is loaded, if any
|
|
1637
|
-
const loadedPages =
|
|
1625
|
+
const loadedPages = _this22._favPageVisualizations.reduce((pageIDs, visualization) => {
|
|
1638
1626
|
if (visualization.pageId && !pageIDs.includes(visualization.pageId)) {
|
|
1639
1627
|
pageIDs.push(visualization.pageId);
|
|
1640
1628
|
}
|
|
@@ -1643,20 +1631,20 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1643
1631
|
const pageIds = pages.map(page => page.pageId);
|
|
1644
1632
|
const shouldLoadMissingApps = loadedPages.length === 0 || !loadedPages.every(pageId => pageIds.includes(pageId));
|
|
1645
1633
|
if (!shouldReload && !shouldLoadMissingApps) {
|
|
1646
|
-
const
|
|
1634
|
+
const _this22$_favPageVisua = _this22._favPageVisualizations;
|
|
1647
1635
|
_exit5 = true;
|
|
1648
|
-
return
|
|
1636
|
+
return _this22$_favPageVisua;
|
|
1649
1637
|
} else {
|
|
1650
|
-
return Promise.resolve(
|
|
1651
|
-
|
|
1652
|
-
const
|
|
1638
|
+
return Promise.resolve(_this22._loadAllPageVisualizations(pages, shouldReload)).then(function (_this22$_loadAllPageV) {
|
|
1639
|
+
_this22._favPageVisualizations = _this22$_loadAllPageV;
|
|
1640
|
+
const _this22$_favPageVisua2 = _this22._favPageVisualizations;
|
|
1653
1641
|
_exit5 = true;
|
|
1654
|
-
return
|
|
1642
|
+
return _this22$_favPageVisua2;
|
|
1655
1643
|
});
|
|
1656
1644
|
}
|
|
1657
1645
|
}
|
|
1658
1646
|
}();
|
|
1659
|
-
return
|
|
1647
|
+
return _temp24 && _temp24.then ? _temp24.then(_temp25) : _temp25(_temp24);
|
|
1660
1648
|
}, function (error) {
|
|
1661
1649
|
Log.error(error);
|
|
1662
1650
|
return [];
|
|
@@ -1672,37 +1660,34 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1672
1660
|
* @returns {Promise<ICustomVisualization[]>} A promise that resolves with an array of page visualizations.
|
|
1673
1661
|
* @private
|
|
1674
1662
|
*/
|
|
1675
|
-
_loadAllPageVisualizations(pages) {
|
|
1676
|
-
let shouldFetchDistinctApps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1663
|
+
_loadAllPageVisualizations(pages, forceRefresh = false, shouldFetchDistinctApps = false) {
|
|
1677
1664
|
try {
|
|
1665
|
+
const _this23 = this;
|
|
1678
1666
|
const getBgColor = pageId => {
|
|
1679
1667
|
return pages.find(page => page.pageId === pageId)?.BGColor ?? DEFAULT_BG_COLOR().key;
|
|
1680
1668
|
};
|
|
1681
1669
|
return Promise.resolve(_catch(function () {
|
|
1682
1670
|
const favPageVisualizations = [];
|
|
1683
|
-
return Promise.resolve(
|
|
1684
|
-
|
|
1685
|
-
const
|
|
1686
|
-
for (const
|
|
1687
|
-
const
|
|
1688
|
-
for (const
|
|
1689
|
-
const
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
if (!shouldFetchDistinctApps || !favPageVisualizations.some(oVizApp => oVizApp.appId === app.appId)) {
|
|
1699
|
-
favPageVisualizations.push(app);
|
|
1700
|
-
}
|
|
1671
|
+
return Promise.resolve(_this23.loadPages(pages, forceRefresh)).then(function (aPages) {
|
|
1672
|
+
for (const page of aPages) {
|
|
1673
|
+
const sections = page?.sections || [];
|
|
1674
|
+
for (const section of sections) {
|
|
1675
|
+
const visualizations = section.visualizations || [];
|
|
1676
|
+
for (const visualization of visualizations) {
|
|
1677
|
+
const app = {
|
|
1678
|
+
appId: visualization.targetURL,
|
|
1679
|
+
vizId: visualization.vizId,
|
|
1680
|
+
icon: visualization.icon,
|
|
1681
|
+
BGColor: getBgColor(page.id),
|
|
1682
|
+
pageId: page.id
|
|
1683
|
+
};
|
|
1684
|
+
if (!shouldFetchDistinctApps || !favPageVisualizations.some(oVizApp => oVizApp.appId === app.appId)) {
|
|
1685
|
+
favPageVisualizations.push(app);
|
|
1701
1686
|
}
|
|
1702
1687
|
}
|
|
1703
1688
|
}
|
|
1704
|
-
|
|
1705
|
-
|
|
1689
|
+
}
|
|
1690
|
+
return favPageVisualizations;
|
|
1706
1691
|
});
|
|
1707
1692
|
}, function (error) {
|
|
1708
1693
|
Log.error(error);
|
|
@@ -1712,6 +1697,21 @@ sap.ui.define(["sap/base/Log", "sap/base/i18n/ResourceBundle", "sap/ui/VersionIn
|
|
|
1712
1697
|
return Promise.reject(e);
|
|
1713
1698
|
}
|
|
1714
1699
|
}
|
|
1700
|
+
/**
|
|
1701
|
+
* Fetches page data for the specified pages.
|
|
1702
|
+
* @param {Array} pages - An array of pages.
|
|
1703
|
+
* @param {boolean} forceRefresh - If true, forces a refresh of the page data.
|
|
1704
|
+
* @returns {Promise<IPage>} A promise that resolves to the fetched page data.
|
|
1705
|
+
* @private
|
|
1706
|
+
*/
|
|
1707
|
+
loadPages(pages, forceRefresh = false) {
|
|
1708
|
+
try {
|
|
1709
|
+
const _this24 = this;
|
|
1710
|
+
return Promise.resolve(Promise.all(pages.map(page => _this24._fetchRequestFromQueue(forceRefresh, page.pageId))));
|
|
1711
|
+
} catch (e) {
|
|
1712
|
+
return Promise.reject(e);
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
1715
|
}
|
|
1716
1716
|
return AppManager;
|
|
1717
1717
|
});
|