@sapui5/sap.cux.home 1.135.0 → 1.136.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/AdvancedSettingsPanel-dbg.js +23 -5
- package/src/sap/cux/home/AdvancedSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +7 -0
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +24 -5
- package/src/sap/cux/home/AppsAdditionPanel-dbg.js +919 -0
- package/src/sap/cux/home/AppsAdditionPanel-dbg.js.map +1 -0
- package/src/sap/cux/home/AppsAdditionPanel.d.ts +293 -0
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -0
- package/src/sap/cux/home/AppsAdditionPanel.js +6 -0
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -0
- package/src/sap/cux/home/AppsAdditionPanel.ts +757 -0
- package/src/sap/cux/home/AppsContainer-dbg.js +42 -28
- package/src/sap/cux/home/AppsContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.d.ts +17 -1
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.js +1 -1
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +27 -6
- package/src/sap/cux/home/AppsContainerGenericPlaceholder-dbg.js +261 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder-dbg.js.map +1 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.js +6 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.js.map +1 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.ts +251 -0
- package/src/sap/cux/home/BaseAppPanel-dbg.js +4 -5
- package/src/sap/cux/home/BaseAppPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.js +1 -1
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +3 -5
- package/src/sap/cux/home/BaseAppPersPanel-dbg.js +2 -1
- package/src/sap/cux/home/BaseAppPersPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.js +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.ts +2 -1
- package/src/sap/cux/home/BaseContainer-dbg.js +24 -3
- package/src/sap/cux/home/BaseContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.d.ts +10 -0
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.js +1 -1
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +24 -2
- package/src/sap/cux/home/BaseContainerRenderer-dbg.js +18 -1
- package/src/sap/cux/home/BaseContainerRenderer-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.d.ts +4 -4
- package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.ts +25 -4
- package/src/sap/cux/home/BaseLayout-dbg.js +22 -2
- package/src/sap/cux/home/BaseLayout-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseLayout.d.ts +6 -0
- package/src/sap/cux/home/BaseLayout.d.ts.map +1 -1
- package/src/sap/cux/home/BaseLayout.js +1 -1
- package/src/sap/cux/home/BaseLayout.js.map +1 -1
- package/src/sap/cux/home/BaseLayout.ts +23 -2
- package/src/sap/cux/home/BaseNewsItem-dbg.js +3 -3
- package/src/sap/cux/home/BaseNewsItem-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseNewsItem.js +1 -1
- package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
- package/src/sap/cux/home/BaseNewsItem.ts +3 -3
- package/src/sap/cux/home/BaseNewsPanel-dbg.js +4 -5
- package/src/sap/cux/home/BaseNewsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.js +1 -1
- package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.ts +5 -4
- package/src/sap/cux/home/BasePanel-dbg.js +1 -1
- package/src/sap/cux/home/BasePanel-dbg.js.map +1 -1
- package/src/sap/cux/home/BasePanel.js +1 -1
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +1 -1
- package/src/sap/cux/home/BaseSettingsDialog-dbg.js +11 -0
- package/src/sap/cux/home/BaseSettingsDialog-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.js +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.ts +12 -0
- package/src/sap/cux/home/BaseSettingsPanel-dbg.js +67 -2
- package/src/sap/cux/home/BaseSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.d.ts +42 -0
- package/src/sap/cux/home/BaseSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.gen.d.ts +75 -0
- package/src/sap/cux/home/BaseSettingsPanel.js +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.ts +70 -2
- package/src/sap/cux/home/CardsPanel-dbg.js +548 -168
- package/src/sap/cux/home/CardsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.d.ts +121 -15
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.gen.d.ts +78 -0
- package/src/sap/cux/home/CardsPanel.js +1 -1
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +450 -97
- package/src/sap/cux/home/ContentAdditionDialog-dbg.js +353 -0
- package/src/sap/cux/home/ContentAdditionDialog-dbg.js.map +1 -0
- package/src/sap/cux/home/ContentAdditionDialog.d.ts +82 -0
- package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -0
- package/src/sap/cux/home/ContentAdditionDialog.js +6 -0
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -0
- package/src/sap/cux/home/ContentAdditionDialog.ts +214 -0
- package/src/sap/cux/home/ErrorPanel-dbg.js +3 -3
- package/src/sap/cux/home/ErrorPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ErrorPanel.js +1 -1
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +4 -2
- package/src/sap/cux/home/FavAppPanel-dbg.js +352 -333
- package/src/sap/cux/home/FavAppPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +1 -1
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +63 -54
- package/src/sap/cux/home/InsightsAdditionPanel-dbg.js +97 -0
- package/src/sap/cux/home/InsightsAdditionPanel-dbg.js.map +1 -0
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts +57 -0
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -0
- package/src/sap/cux/home/InsightsAdditionPanel.js +6 -0
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -0
- package/src/sap/cux/home/InsightsAdditionPanel.ts +94 -0
- package/src/sap/cux/home/InsightsContainer-dbg.js +22 -2
- package/src/sap/cux/home/InsightsContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/InsightsContainer.d.ts +14 -0
- package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsContainer.js +1 -1
- package/src/sap/cux/home/InsightsContainer.js.map +1 -1
- package/src/sap/cux/home/InsightsContainer.ts +22 -1
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder-dbg.js +401 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder-dbg.js.map +1 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.js +6 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.js.map +1 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.ts +391 -0
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel-dbg.js +10 -9
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +9 -8
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel-dbg.js +2 -2
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +2 -2
- package/src/sap/cux/home/KeyUserPagesSettingsPanel-dbg.js +6 -6
- package/src/sap/cux/home/KeyUserPagesSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +6 -6
- package/src/sap/cux/home/Layout-dbg.js +58 -33
- package/src/sap/cux/home/Layout-dbg.js.map +1 -1
- package/src/sap/cux/home/Layout.d.ts +13 -0
- package/src/sap/cux/home/Layout.d.ts.map +1 -1
- package/src/sap/cux/home/Layout.js +1 -1
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +48 -20
- package/src/sap/cux/home/LayoutSettingsPanel-dbg.js +1 -10
- package/src/sap/cux/home/LayoutSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.js +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.ts +2 -10
- package/src/sap/cux/home/NewsAndPagesContainer-dbg.js +35 -17
- package/src/sap/cux/home/NewsAndPagesContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts +7 -0
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.ts +40 -16
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder-dbg.js +164 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder-dbg.js.map +1 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.js +6 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.js.map +1 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.ts +154 -0
- package/src/sap/cux/home/NewsGroup-dbg.js +112 -79
- package/src/sap/cux/home/NewsGroup-dbg.js.map +1 -1
- package/src/sap/cux/home/NewsGroup.d.ts +1 -0
- package/src/sap/cux/home/NewsGroup.d.ts.map +1 -1
- package/src/sap/cux/home/NewsGroup.js +1 -1
- package/src/sap/cux/home/NewsGroup.js.map +1 -1
- package/src/sap/cux/home/NewsGroup.ts +136 -100
- package/src/sap/cux/home/NewsPanel-dbg.js +541 -173
- package/src/sap/cux/home/NewsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.d.ts +156 -16
- package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.js +1 -1
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +452 -82
- package/src/sap/cux/home/NewsSettingsPanel-dbg.js +61 -20
- package/src/sap/cux/home/NewsSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.d.ts +14 -0
- package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +75 -21
- package/src/sap/cux/home/NoDataContainer-dbg.js +3 -3
- package/src/sap/cux/home/NoDataContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/NoDataContainer.d.ts +1 -0
- package/src/sap/cux/home/NoDataContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NoDataContainer.js +1 -1
- package/src/sap/cux/home/NoDataContainer.js.map +1 -1
- package/src/sap/cux/home/NoDataContainer.ts +4 -2
- package/src/sap/cux/home/PagePanel-dbg.js +86 -75
- package/src/sap/cux/home/PagePanel-dbg.js.map +1 -1
- package/src/sap/cux/home/PagePanel.d.ts +25 -3
- package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/PagePanel.js +1 -1
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +91 -76
- package/src/sap/cux/home/PageSettingsPanel-dbg.js +16 -15
- package/src/sap/cux/home/PageSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.js +1 -1
- package/src/sap/cux/home/PageSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.ts +15 -14
- package/src/sap/cux/home/RecentAppPanel-dbg.js +2 -2
- package/src/sap/cux/home/RecentAppPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.js +1 -1
- package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.ts +2 -2
- package/src/sap/cux/home/RecommendedAppPanel-dbg.js +4 -3
- package/src/sap/cux/home/RecommendedAppPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.ts +4 -2
- package/src/sap/cux/home/SettingsDialog-dbg.js +4 -3
- package/src/sap/cux/home/SettingsDialog-dbg.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/SettingsDialog.js +1 -1
- package/src/sap/cux/home/SettingsDialog.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.ts +4 -2
- package/src/sap/cux/home/TaskPanel-dbg.js +16 -12
- package/src/sap/cux/home/TaskPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.d.ts +1 -2
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.js +1 -1
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +19 -12
- package/src/sap/cux/home/TilesPanel-dbg.js +9 -8
- package/src/sap/cux/home/TilesPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.js +1 -1
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +15 -8
- package/src/sap/cux/home/ToDoPanel-dbg.js +34 -25
- package/src/sap/cux/home/ToDoPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.d.ts +0 -7
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +1 -1
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +27 -29
- package/src/sap/cux/home/ToDosContainer-dbg.js +27 -18
- package/src/sap/cux/home/ToDosContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.d.ts +7 -0
- package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
- package/src/sap/cux/home/ToDosContainer.js +1 -1
- package/src/sap/cux/home/ToDosContainer.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.ts +10 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder-dbg.js +84 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder-dbg.js.map +1 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.js +6 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.js.map +1 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.ts +74 -0
- package/src/sap/cux/home/i18n/messagebundle.properties +63 -1
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_da.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_de.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_el.properties +44 -2
- package/src/sap/cux/home/i18n/messagebundle_en.properties +43 -246
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +31 -1
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_es.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_et.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_id.properties +47 -5
- package/src/sap/cux/home/i18n/messagebundle_it.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_no.properties +44 -2
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +44 -2
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +44 -2
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_th.properties +43 -2
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +42 -1
- package/src/sap/cux/home/interface/AppsInterface-dbg.js.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.d.ts +5 -3
- package/src/sap/cux/home/interface/AppsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.ts +5 -3
- package/src/sap/cux/home/interface/CardsInterface-dbg.js +32 -0
- package/src/sap/cux/home/interface/CardsInterface-dbg.js.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.d.ts +320 -55
- package/src/sap/cux/home/interface/CardsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.js +5 -1
- package/src/sap/cux/home/interface/CardsInterface.js.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.ts +359 -55
- package/src/sap/cux/home/library-preload.js +88 -45
- package/src/sap/cux/home/library-preload.js.map +1 -1
- package/src/sap/cux/home/manifest.json +4 -4
- package/src/sap/cux/home/themes/base/AppsContainer.less +12 -0
- package/src/sap/cux/home/themes/base/BaseLayout.less +1 -0
- package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +69 -0
- package/src/sap/cux/home/themes/base/NewsAndPagesContainer.less +37 -12
- package/src/sap/cux/home/themes/base/PlaceHolder.less +1374 -0
- package/src/sap/cux/home/themes/base/ToDosContainer.less +1 -1
- package/src/sap/cux/home/themes/base/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/base/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/base/library.css +2 -2
- package/src/sap/cux/home/themes/base/library.source.less +2 -0
- package/src/sap/cux/home/themes/sap_fiori_3/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_fiori_3/library.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_dark/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_dark/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_fiori_3_dark/library.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_hcb/AppsContainer.less +1 -0
- package/src/sap/cux/home/themes/sap_fiori_3_hcb/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_hcb/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_fiori_3_hcb/library.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_hcb/library.source.less +2 -0
- package/src/sap/cux/home/themes/sap_fiori_3_hcw/AppsContainer.less +1 -0
- package/src/sap/cux/home/themes/sap_fiori_3_hcw/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_hcw/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_fiori_3_hcw/library.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_hcw/library.source.less +2 -0
- package/src/sap/cux/home/themes/sap_horizon/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_horizon/library.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_dark/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_dark/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_horizon_dark/library.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_hcb/AppsContainer.less +1 -0
- package/src/sap/cux/home/themes/sap_horizon_hcb/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_hcb/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_horizon_hcb/library.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_hcb/library.source.less +2 -0
- package/src/sap/cux/home/themes/sap_horizon_hcw/AppsContainer.less +1 -0
- package/src/sap/cux/home/themes/sap_horizon_hcw/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_hcw/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_horizon_hcw/library.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_hcw/library.source.less +2 -0
- package/src/sap/cux/home/utils/AppManager-dbg.js +405 -440
- package/src/sap/cux/home/utils/AppManager-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/AppManager.d.ts +88 -124
- package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/AppManager.js +1 -1
- package/src/sap/cux/home/utils/AppManager.js.map +1 -1
- package/src/sap/cux/home/utils/AppManager.ts +351 -542
- package/src/sap/cux/home/utils/Constants-dbg.js +25 -1
- package/src/sap/cux/home/utils/Constants-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/Constants.d.ts +17 -0
- package/src/sap/cux/home/utils/Constants.d.ts.map +1 -1
- package/src/sap/cux/home/utils/Constants.js +1 -1
- package/src/sap/cux/home/utils/Constants.js.map +1 -1
- package/src/sap/cux/home/utils/Constants.ts +20 -1
- package/src/sap/cux/home/utils/Device-dbg.js +49 -1
- package/src/sap/cux/home/utils/Device-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/Device.d.ts +13 -0
- package/src/sap/cux/home/utils/Device.d.ts.map +1 -1
- package/src/sap/cux/home/utils/Device.js +1 -1
- package/src/sap/cux/home/utils/Device.js.map +1 -1
- package/src/sap/cux/home/utils/Device.ts +58 -1
- package/src/sap/cux/home/utils/InsightsUtils-dbg.js +25 -0
- package/src/sap/cux/home/utils/InsightsUtils-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/InsightsUtils.d.ts +14 -0
- package/src/sap/cux/home/utils/InsightsUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/InsightsUtils.js +1 -1
- package/src/sap/cux/home/utils/InsightsUtils.js.map +1 -1
- package/src/sap/cux/home/utils/InsightsUtils.ts +25 -0
- package/src/sap/cux/home/utils/PerformanceUtils-dbg.js +5 -2
- package/src/sap/cux/home/utils/PerformanceUtils-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts +1 -0
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.js +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.ts +5 -1
- package/src/sap/cux/home/utils/RecommendedCardUtil-dbg.js +1599 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil-dbg.js.map +1 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil.d.ts +534 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil.d.ts.map +1 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil.js +6 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil.js.map +1 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil.ts +1945 -0
- package/src/sap/cux/home/utils/SituationUtils-dbg.js +1 -1
- package/src/sap/cux/home/utils/SituationUtils-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/SituationUtils.js +1 -1
- package/src/sap/cux/home/utils/SituationUtils.js.map +1 -1
- package/src/sap/cux/home/utils/SituationUtils.ts +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts +4 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.js.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.ts +2 -1
- package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +126 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare module "sap/cux/home/utils/AppManager" {
|
|
2
2
|
import BaseObject from "sap/ui/base/Object";
|
|
3
|
-
import
|
|
3
|
+
import ODataMetaModel from "sap/ui/model/odata/ODataMetaModel";
|
|
4
4
|
import { AppData } from "sap/ushell/services/SearchableContent";
|
|
5
5
|
import { ICustomVisualization, IParseSBParameters, ISection, ISectionAndVisualization, IVisualization } from "../interface/AppsInterface";
|
|
6
|
-
import { ICard, ICardManifest } from "
|
|
6
|
+
import { IAppManifest, ICard, ICardDetails, ICardManifest } from "../interface/CardsInterface";
|
|
7
7
|
import { IPage } from "sap/cux/home/interface/PageSpaceInterface";
|
|
8
8
|
const CONSTANTS: {
|
|
9
9
|
MUST_INCLUDE_RECOMMEDED_APPS: string[];
|
|
@@ -11,53 +11,13 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
11
11
|
interface IFeatureToggles {
|
|
12
12
|
TASK_ACTIONS: string;
|
|
13
13
|
}
|
|
14
|
-
interface
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
settings?: {
|
|
18
|
-
tableSettings?: {
|
|
19
|
-
addCardtoInsightsHidden?: boolean;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
entitySet?: IEntitySet;
|
|
24
|
-
}
|
|
25
|
-
interface IEntitySet extends EntitySet {
|
|
26
|
-
"Org.OData.Capabilities.V1.FilterRestrictions"?: {
|
|
27
|
-
RequiredProperties?: Array<unknown>;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
interface IEntityType extends EntityType {
|
|
31
|
-
"com.sap.vocabularies.UI.v1.LineItem": Array<ILineItemContext>;
|
|
32
|
-
"sap:semantics": string;
|
|
33
|
-
"com.sap.vocabularies.Common.v1.SemanticKey": Array<{
|
|
34
|
-
PropertyPath: string;
|
|
35
|
-
}>;
|
|
36
|
-
"com.sap.vocabularies.UI.v1.TextArrangement": {
|
|
37
|
-
EnumMember: string;
|
|
38
|
-
};
|
|
39
|
-
"com.sap.vocabularies.Common.v1.Label": {
|
|
40
|
-
String: string;
|
|
41
|
-
};
|
|
42
|
-
property: Property[];
|
|
43
|
-
}
|
|
44
|
-
interface ILineItemContext {
|
|
45
|
-
Value: {
|
|
46
|
-
Path: string;
|
|
47
|
-
};
|
|
48
|
-
"com.sap.vocabularies.UI.v1.Importance": string;
|
|
49
|
-
"com.sap.vocabularies.UI.v1.Hidden": {
|
|
50
|
-
Bool: boolean;
|
|
51
|
-
};
|
|
14
|
+
interface ICombinedManifestDetails {
|
|
15
|
+
manifest: IValidManifest;
|
|
16
|
+
metaModel: ODataMetaModel;
|
|
52
17
|
}
|
|
53
|
-
interface
|
|
54
|
-
cardTitle?: string;
|
|
55
|
-
subTitle: string;
|
|
18
|
+
interface IValidManifest {
|
|
56
19
|
url: string;
|
|
57
|
-
|
|
58
|
-
action: string;
|
|
59
|
-
id?: string;
|
|
60
|
-
columns: Array<unknown>;
|
|
20
|
+
manifest: IAppManifest;
|
|
61
21
|
}
|
|
62
22
|
const _parseSBParameters: (oParam: object | string | undefined) => IParseSBParameters | undefined;
|
|
63
23
|
const _getTileProperties: (vizConfigFLP?: IVisualization) => IParseSBParameters | undefined;
|
|
@@ -108,6 +68,10 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
108
68
|
private vizDataModified;
|
|
109
69
|
private _oVizCacheData;
|
|
110
70
|
private _favPageVisualizations;
|
|
71
|
+
private componentData;
|
|
72
|
+
private fioriAppData;
|
|
73
|
+
private recommendedUtilInstance;
|
|
74
|
+
private catalogAppData;
|
|
111
75
|
private constructor();
|
|
112
76
|
static getInstance(): AppManager;
|
|
113
77
|
/**
|
|
@@ -306,6 +270,13 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
306
270
|
* @returns {boolean} - returns true if feature is enabled.
|
|
307
271
|
*/
|
|
308
272
|
isFeatureEnabled(sToggleId: string): Promise<boolean>;
|
|
273
|
+
/**
|
|
274
|
+
* Checks if a specific URL parameter is enabled (set to "true").
|
|
275
|
+
*
|
|
276
|
+
* @param {string} param - The name of the URL parameter to check.
|
|
277
|
+
* @returns {boolean} `true` if the URL parameter exists and is set to "true" (case-insensitive), otherwise `false`.
|
|
278
|
+
*/
|
|
279
|
+
isURLParamEnabled(param: string): boolean;
|
|
309
280
|
/**
|
|
310
281
|
* Fetch Recommended Fiori IDs
|
|
311
282
|
*
|
|
@@ -319,15 +290,7 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
319
290
|
* @returns {Promise} resolves to array of Catalog Apps
|
|
320
291
|
* @private
|
|
321
292
|
*/
|
|
322
|
-
_getCatalogApps(): Promise<
|
|
323
|
-
/**
|
|
324
|
-
* Check If Page is List Report
|
|
325
|
-
*
|
|
326
|
-
* @param {object} page - page object
|
|
327
|
-
* @returns {boolean} returns boolean
|
|
328
|
-
* @private
|
|
329
|
-
*/
|
|
330
|
-
private _isListReport;
|
|
293
|
+
_getCatalogApps(): Promise<AppData[]>;
|
|
331
294
|
/**
|
|
332
295
|
* Checks whether page settings contains addCardtoInsightsHidden
|
|
333
296
|
* @param {object} page - page object
|
|
@@ -346,7 +309,7 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
346
309
|
* Get OData Model
|
|
347
310
|
*
|
|
348
311
|
* @param {object} manifest - manifest object
|
|
349
|
-
* @returns {
|
|
312
|
+
* @returns {ODataModelV2} returns OData Model
|
|
350
313
|
* @private
|
|
351
314
|
*/
|
|
352
315
|
private _getOdataModel;
|
|
@@ -358,58 +321,6 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
358
321
|
* @private
|
|
359
322
|
*/
|
|
360
323
|
private _getEntitySet;
|
|
361
|
-
/**
|
|
362
|
-
* function returns true if the passed entityset / properties have mandatory properties
|
|
363
|
-
*
|
|
364
|
-
* @param {EntitySet} oEntitySet - Entity set
|
|
365
|
-
* @param {Array} aProperties - Additional Properties
|
|
366
|
-
* @returns {boolean} returns boolean
|
|
367
|
-
* @private
|
|
368
|
-
*/
|
|
369
|
-
private _hasMandatoryProperties;
|
|
370
|
-
/**
|
|
371
|
-
* Get Parametersised Entity Set Params
|
|
372
|
-
*
|
|
373
|
-
* @param {ODataMetaModel} oMetaModel - Meta Model
|
|
374
|
-
* @param {string} sEntitySet - Entity Set
|
|
375
|
-
* @param {boolean} bIsParamEntitySet - Is Param Entity Set
|
|
376
|
-
* @returns {object} returns entity set params
|
|
377
|
-
* @private
|
|
378
|
-
*/
|
|
379
|
-
private _getParametersisedEntitySetParams;
|
|
380
|
-
/**
|
|
381
|
-
* Get Column Detail
|
|
382
|
-
*
|
|
383
|
-
* @param {object} oEntityType - entity type object
|
|
384
|
-
* @param {object} oMetaModel - meta model object
|
|
385
|
-
* @param {object} oColumn - column object
|
|
386
|
-
* @returns {object} returns column detail
|
|
387
|
-
* @private
|
|
388
|
-
*/
|
|
389
|
-
private _getColumnDetail;
|
|
390
|
-
/**
|
|
391
|
-
* Sets display text format of column
|
|
392
|
-
*
|
|
393
|
-
* @private
|
|
394
|
-
* @param {{EnumMember: string} | undefined} sTextArragement - sTextArragement object
|
|
395
|
-
* @param {Record<string, unknown>} oColumnObject - Object containing column details
|
|
396
|
-
* @param {string} sColumnKeyDescription - Description field to include in text value
|
|
397
|
-
* @param {string} sColumnValue - The value to include in Text value
|
|
398
|
-
*/
|
|
399
|
-
private _setColumnTextValue;
|
|
400
|
-
/**
|
|
401
|
-
* Get Manifest Card Data
|
|
402
|
-
*
|
|
403
|
-
* @param {object} manifest - manifest object
|
|
404
|
-
* @param {object} entityType - entity type object
|
|
405
|
-
* @param {object} lineItem - line item object
|
|
406
|
-
* @param {string} entitySet - entity set
|
|
407
|
-
* @param {object} parentApp - parent app object
|
|
408
|
-
* @param {object} metaModel - meta model object
|
|
409
|
-
* @returns {object} returns card data
|
|
410
|
-
* @private
|
|
411
|
-
*/
|
|
412
|
-
private _getManifestCardData;
|
|
413
324
|
/**
|
|
414
325
|
* Load I18n
|
|
415
326
|
*
|
|
@@ -428,14 +339,6 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
428
339
|
* @private
|
|
429
340
|
*/
|
|
430
341
|
private getI18nValueOrDefaultString;
|
|
431
|
-
/**
|
|
432
|
-
* Get Attribute Value
|
|
433
|
-
*
|
|
434
|
-
* @param {object} oColumn - column object
|
|
435
|
-
* @returns {string} returns attribute value
|
|
436
|
-
* @private
|
|
437
|
-
*/
|
|
438
|
-
private _getAttributeValue;
|
|
439
342
|
/**
|
|
440
343
|
* Retrieves a copy of the analytical card manifest.
|
|
441
344
|
*
|
|
@@ -445,13 +348,54 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
445
348
|
*/
|
|
446
349
|
_getAnalyticalCardManifest(): ICardManifest;
|
|
447
350
|
/**
|
|
448
|
-
*
|
|
351
|
+
* Processes the app manifest and generates a recommended card manifest if the app meets the required conditions.
|
|
449
352
|
*
|
|
450
|
-
* @param {
|
|
451
|
-
* @
|
|
353
|
+
* @param {ODataMetaModel} metaModel - The OData meta model containing metadata about entities and properties.
|
|
354
|
+
* @param {IValidManifest} manifestObj - An object containing the app manifest and its URL.
|
|
355
|
+
* @param {AppInfoData | undefined} parentApp - The parent app information, if available.
|
|
356
|
+
* @param {IVersionInfo} versionInfo - The version and build timestamp of the app.
|
|
357
|
+
* @returns {Promise<ICardManifest | undefined>} A promise that resolves to the generated card manifest if the app is eligible,
|
|
358
|
+
* or `undefined` if the app does not meet the required conditions.
|
|
359
|
+
* @private
|
|
360
|
+
*/
|
|
361
|
+
private getProcessedManifest;
|
|
362
|
+
/**
|
|
363
|
+
* Fetches the OData meta models for a given list of valid manifests.
|
|
364
|
+
* @param {IValidManifest[]} validManifests - An array of valid manifest objects
|
|
365
|
+
* @returns {Promise<(ODataMetaModel | undefined)[]>} A promise that resolves to an array of OData meta models.
|
|
366
|
+
* Each element corresponds to a manifest in the input array, and may be `undefined` if the meta model could not be fetched.
|
|
367
|
+
* @private
|
|
368
|
+
*/
|
|
369
|
+
private fetchMetaModels;
|
|
370
|
+
/**
|
|
371
|
+
* Combines the valid manifests with their corresponding OData meta models.
|
|
372
|
+
* @param {IValidManifest[]} validManifests - An array of valid manifest objects
|
|
373
|
+
* @param {ODataMetaModel[]} aMetaModel - An array of OData meta models
|
|
374
|
+
* @returns {ICombinedManifestDetails[]} An array of objects containing the manifest and the corresponding meta model.
|
|
452
375
|
* @private
|
|
453
376
|
*/
|
|
454
|
-
private
|
|
377
|
+
private combineManifestsAndMetaModels;
|
|
378
|
+
/**
|
|
379
|
+
* Process the manifest and meta model to get the card manifest
|
|
380
|
+
* @param {ICombinedManifestDetails[]} combinedDetails - An array of objects containing the manifest and the corresponding meta model.
|
|
381
|
+
* @param {IAppInfoData[]} aCSTR - An array of app info data
|
|
382
|
+
* @returns {Promise<(ICardManifest | undefined)[]>} A promise that resolves to an array of recommended card manifests.
|
|
383
|
+
* @private
|
|
384
|
+
*/
|
|
385
|
+
private processManifests;
|
|
386
|
+
/**
|
|
387
|
+
* Processes the app list to generate a list of Fiori IDs.
|
|
388
|
+
*
|
|
389
|
+
* If `aList` is not provided, it uses `aAppComponentIds` and `aComponent` to generate the list of Fiori IDs.
|
|
390
|
+
* It matches the `semanticObject` and `action` of each component in `aAppComponentIds` with the entries in `aComponent`.
|
|
391
|
+
* If a match is found, the corresponding `fioriId` is added to the list.
|
|
392
|
+
*
|
|
393
|
+
* @param {string[]} [aList] - An optional array of Fiori IDs to return directly.
|
|
394
|
+
* @param {ICardDetails[]} [aAppComponentIds] - An array of app component details to process.
|
|
395
|
+
* @param {IAppInfo} [aComponent] - A mapping of component IDs to their corresponding data entries.
|
|
396
|
+
* @returns {string[]} - A list of Fiori IDs.
|
|
397
|
+
*/
|
|
398
|
+
private processAppList;
|
|
455
399
|
/**
|
|
456
400
|
* Fetch Card Mainfest
|
|
457
401
|
*
|
|
@@ -459,7 +403,16 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
459
403
|
* @returns {Promise} resolves to array of card manifest
|
|
460
404
|
* @private
|
|
461
405
|
*/
|
|
462
|
-
|
|
406
|
+
_getCardManifest(aList?: string[], aAppComponentIds?: ICardDetails[]): Promise<ICardManifest[]>;
|
|
407
|
+
/**
|
|
408
|
+
* Fetch the app manifest for the given app ids
|
|
409
|
+
* @param {string[]} appIdList - array of app ids
|
|
410
|
+
* @param {AppInfo} fioriData - fiori data
|
|
411
|
+
* @param {AppData[]} catalogData - catalog data
|
|
412
|
+
* @returns {Promise} resolves to array of manifests
|
|
413
|
+
* @private
|
|
414
|
+
*/
|
|
415
|
+
private fetchManifests;
|
|
463
416
|
/**
|
|
464
417
|
* Remove Duplicate Cards
|
|
465
418
|
*
|
|
@@ -471,10 +424,10 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
471
424
|
/**
|
|
472
425
|
* Fetch Recommended Cards
|
|
473
426
|
*
|
|
474
|
-
* @returns {Promise} resolves to array of recommended cards
|
|
427
|
+
* @returns {Promise<ICard[] | []> } resolves to array of recommended cards
|
|
475
428
|
* @private
|
|
476
429
|
*/
|
|
477
|
-
getRecommenedCards(): Promise<ICard[]>;
|
|
430
|
+
getRecommenedCards(): Promise<ICard[] | []>;
|
|
478
431
|
/**
|
|
479
432
|
* Retrieves a list of recommended visualizations for the user.
|
|
480
433
|
*
|
|
@@ -498,6 +451,17 @@ declare module "sap/cux/home/utils/AppManager" {
|
|
|
498
451
|
* If an error occurs or the inbound applications are not available, it resolves to an empty array.
|
|
499
452
|
*/
|
|
500
453
|
private _getInboundApps;
|
|
454
|
+
/**
|
|
455
|
+
* Retrieves Fiori app data and stores it in the `fioriAppData` and `componentData` properties.
|
|
456
|
+
*
|
|
457
|
+
* This method fetches inbound applications using the `_getInboundApps` method and processes them to extract
|
|
458
|
+
* Fiori app IDs (`sap-fiori-id`) and their associated semantic data. It also maps UI5 component names to their
|
|
459
|
+
* corresponding Fiori app IDs for later use.
|
|
460
|
+
*
|
|
461
|
+
* @returns {Promise<IAppInfo>} A promise that resolves to an object containing Fiori app data
|
|
462
|
+
* @private
|
|
463
|
+
*/
|
|
464
|
+
private getFioriAppData;
|
|
501
465
|
/**
|
|
502
466
|
* Retrieves visualizations based on a list of Fiori IDs.
|
|
503
467
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppManager.d.ts","sourceRoot":"../../../../../..","sources":["src/sap/cux/home/utils/AppManager.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"AppManager.d.ts","sourceRoot":"../../../../../..","sources":["src/sap/cux/home/utils/AppManager.ts"],"names":[],"mappings":"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"}
|
|
@@ -2,5 +2,5 @@
|
|
|
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/base/i18n/Formatting","sap/base/i18n/ResourceBundle","sap/ui/VersionInfo","sap/ui/base/Object","sap/ui/model/odata/v2/ODataModel","sap/ushell/Config","sap/ushell/Container","./AnalyticalCardSkeleton","./CardSkeleton","./Constants","./DataFormatUtils","./HttpHelper"],function(e,t,n,i,r,s,o,a,c,u,l,f,d){"use strict";function p(e){return e&&e.__esModule&&typeof e.default!=="undefined"?e.default:e}const m=typeof Symbol!=="undefined"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function h(e,t,n){if(!e.s){if(n instanceof g){if(n.s){if(t&1){t=n.s}n=n.v}else{n.o=h.bind(null,e,t);return}}if(n&&n.then){n.then(h.bind(null,e,t),h.bind(null,e,2));return}e.s=t;e.v=n;const i=e.o;if(i){i(e)}}}const g=function(){function e(){}e.prototype.then=function(t,n){const i=new e;const r=this.s;if(r){const e=r&1?t:n;if(e){try{h(i,1,e(this.v))}catch(e){h(i,2,e)}return i}else{return this}}this.o=function(e){try{const r=e.v;if(e.s&1){h(i,1,t?t(r):r)}else if(n){h(i,1,n(r))}else{h(i,2,r)}}catch(e){h(i,2,e)}};return i};return e}();function v(e){return e instanceof g&&e.s&1}function P(e,t,n){var i=-1,r,s;function o(a){try{while(++i<e.length&&(!n||!n())){a=t(i);if(a&&a.then){if(v(a)){a=a.v}else{a.then(o,s||(s=h.bind(null,r=new g,2)));return}}}if(r){h(r,1,a)}else{r=a}}catch(e){h(r||(r=new g),2,e)}}o();return r}const y=c["AnalyticalCardSkeleton"];function I(e,t,n){if(typeof e[m]==="function"){var i=e[m](),r,s,o;function l(e){try{while(!(r=i.next()).done&&(!n||!n())){e=t(r.value);if(e&&e.then){if(v(e)){e=e.v}else{e.then(l,o||(o=h.bind(null,s=new g,2)));return}}}if(s){h(s,1,e)}else{s=e}}catch(e){h(s||(s=new g),2,e)}}l();if(i.return){var a=function(e){try{if(!r.done){i.return()}}catch(e){}return e};if(s&&s.then){return s.then(a,function(e){throw a(e)})}a()}return s}if(!("length"in e)){throw new TypeError("Object is not iterable")}var c=[];for(var u=0;u<e.length;u++){c.push(e[u])}return P(c,function(e){return t(c[e])},n)}const S=u["CardSkeleton"];function _(e,t){try{var n=e()}catch(e){return t(e)}if(n&&n.then){return n.then(void 0,t)}return n}const b=l["DEFAULT_BG_COLOR"];const C=l["FALLBACK_ICON"];const z=l["FEATURE_TOGGLES"];const V=l["FEATURE_TOGGLE_SRVC_URL"];const D=l["MYHOME_PAGE_ID"];const O=l["MYHOME_SPACE_ID"];const A=l["MYINSIGHT_SECTION_ID"];const M=l["RECOMMENDATION_SRVC_URL"];const E=l["RECOMMENDED_CARD_LIMIT"];const T=f["createBookMarkData"];const j=f["getLeanURL"];const R=f["sortCollectionByImportance"];const x=p(d);const L={MUST_INCLUDE_RECOMMEDED_APPS:["F0862","F1823"]};const U=t=>{let n={};if(t){if(typeof t==="object"){n=t}else{try{n=JSON.parse(t)}catch(t){e.error(t instanceof Error?t.message:String(t));n=undefined}}}return n};const F=e=>{let t={};if(e?._instantiationData?.chip?.configuration){const n=U(e._instantiationData.chip.configuration);if(n?.tileConfiguration){const e=U(n.tileConfiguration);if(e){t=U(e.TILE_PROPERTIES)}}}return t};const N=e=>{let t="";let n={};if(e?.target?.semanticObject&&e?.target?.action){t=`#${e.target.semanticObject}-${e.target.action}`}else if(e?._instantiationData?.chip?.configuration){n=F(e);if(n?.semanticObject&&n?.semanticAction){t=`#${n?.semanticObject}-${n?.semanticAction}`}}return t};const B=e=>{let t=N(e)||"";const n=F(e);if(n?.evaluationId){t+="?EvaluationId="+n.evaluationId}return t};const k=e=>e.vizType?.startsWith("X-SAP-UI2-CHIP:SSB");const w=(e,t)=>{const n=t?._instantiationData?.chip?.bags?.sb_tileProperties?.texts;return{title:e.title?e.title:n?.title||"",subtitle:e.subtitle?e.subtitle:n?.description||""}};const $=e=>{e.forEach(t=>{e.filter(e=>e.appId===t.appId&&e?.visualization?.id!==t?.visualization?.id&&e.persConfig?.sectionIndex===t.persConfig?.sectionIndex).forEach(e=>{e?.persConfig?.duplicateApps?.push(t)})});return e};const G=e=>e?.target?.parameters?.["sap-ui-tech-hint"]?.value?.value==="GUI";const H=e=>e.fioriId&&L.MUST_INCLUDE_RECOMMEDED_APPS.includes(e.fioriId);const q=(e,t)=>!t.some(t=>t.visualization?.target?.semanticObject===e.visualization?.target?.semanticObject&&t.visualization?.target?.action===e.visualization?.target?.action);class J extends r{aRequestQueue=[];bInsightsSectionPresent=false;vizDataModified=false;_oVizCacheData={};_favPageVisualizations=[];constructor(){super()}static getInstance(){if(!J.Instance){J.Instance=new J}return J.Instance}_fetchRequestFromQueue(e){try{const t=this;return Promise.resolve(a.getServiceAsync("SpaceContent")).then(function(n){let i;t.aRequestQueue=t.aRequestQueue||[];const r=t.aRequestQueue.find(e=>e.pageId===D);if(!r||e===true||t.vizDataModified===true){t.vizDataModified=false;i=n.getPage(D);if(r){r.pageLoadPromise=i}else{t.aRequestQueue.push({pageId:D,pageLoadPromise:i})}}else{i=r.pageLoadPromise}return i})}catch(e){return Promise.reject(e)}}_fetchDynamicVizs(e){return this.fetchFavVizs(e,true).then(e=>e.filter(e=>e.isCount||e.isSmartBusinessTile))}_getSections(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;try{const t=this;return Promise.resolve(t._fetchRequestFromQueue(e)).then(function(e){const n=e&&e.sections||[],i=n.findIndex(e=>e.default);if(i>0){function r(){return t._getSections(true)}const s=function(){if(t._oMoveAppsPromise!==undefined){t._oMoveAppsPromise=t.moveSection(i,0);return Promise.resolve(t._oMoveAppsPromise).then(function(){})}}();return s&&s.then?s.then(r):r(s)}else{return n}})}catch(e){return Promise.reject(e)}}_fetchMyHomeVizs(e){try{const t=this;const n=[];t._oVizCacheData=t._oVizCacheData||{};return Promise.resolve(t._getSections(e)).then(function(e){return Promise.resolve(a.getServiceAsync("VisualizationInstantiation")).then(function(i){e.forEach((e,r)=>{e?.visualizations?.forEach((s,o)=>{const a=s.vizConfig,c=a?.["sap.app"]||{title:"?"},u={};u.oldAppId=N(a?.["sap.flp"]);u.appId=s?.targetURL;u.url=s?.targetURL;if(!u.url&&k(s)){u.url=B(a?.["sap.flp"])}u.leanURL=j(u.url);u.title=s?.title||w(c,s)?.title;u.subtitle=s.subtitle||w(c,s).subtitle;u.BGColor=b().key;u.isFav=true;u.isSection=false;u.icon=a?.["sap.ui"]?.icons?.icon||C;if(s?.indicatorDataSource){u.isCount=true;u.indicatorDataSource=s.indicatorDataSource.path;u.contentProviderId=s.contentProviderId}u.isSmartBusinessTile=k(s);if(u.isSmartBusinessTile){if(!t._oVizCacheData[u.appId]){t._oVizCacheData[u.appId]=i.instantiateVisualization(s);t._oVizCacheData[u.appId].setActive(true)}u.vizInstance=t._oVizCacheData[u.appId]}u.persConfig={pageId:D,sectionTitle:e.title,sectionId:e.id,sectionIndex:r,visualizationIndex:o,isDefaultSection:e.default,isPresetSection:e.preset,duplicateApps:[]};u.visualization=s;u.visualization.title=u.title;u.visualization.subtitle=u.subtitle;n.push(u)})});return n})})}catch(e){return Promise.reject(e)}}_copyDynamicVizs(){try{const e=this;return Promise.resolve(e._fetchDynamicVizs(true)).then(function(t){return Promise.all(t.map(t=>e.addVisualization(t.visualization.vizId,A)))})}catch(e){return Promise.reject(e)}}fetchFavVizs(e,t){try{const n=this;return Promise.resolve(n._fetchMyHomeVizs(e)).then(function(e){const i=e.filter(e=>e.persConfig&&e.persConfig.sectionId!==A&&e.url&&e.title);if(t){return n._filterDuplicateVizs($(i),false)}else{return n._addGroupInformation(i)}})}catch(e){return Promise.reject(e)}}fetchInsightApps(e,t){try{const n=this;function i(){return Promise.resolve(r())}const r=function(){try{return Promise.resolve(n._fetchMyHomeVizs(e)).then(function(e){return e.filter(e=>e.persConfig?.sectionId===A&&e.url&&e.title)})}catch(e){return Promise.reject(e)}};const s=function(){if(!n.bInsightsSectionPresent){return Promise.resolve(n._getSections(e)).then(function(e){n.insightsSectionIndex=e.findIndex(function(e){return e.id===A});const i=function(){if(n.insightsSectionIndex===-1&&(o.last("/core/shell/enablePersonalization")||o.last("/core/catalog/enabled"))&&n.bInsightsSectionPresent===false){n.bInsightsSectionPresent=true;return Promise.resolve(n.addSection({sectionIndex:e?.length,sectionProperties:{id:A,title:t}})).then(function(){return Promise.resolve(n._copyDynamicVizs()).then(function(){})})}else{n.bInsightsSectionPresent=true}}();if(i&&i.then)return i.then(function(){})})}}();return Promise.resolve(s&&s.then?s.then(i):i(s))}catch(a){return Promise.reject(a)}}addVisualization(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;try{return Promise.resolve(a.getServiceAsync("SpaceContent")).then(function(n){return Promise.resolve(n.addVisualization(D,t,e)).then(function(){})})}catch(e){return Promise.reject(e)}}removeVisualizations(e){let{sectionId:t,vizIds:n}=e;try{const e=this;return Promise.resolve(a.getServiceAsync("SpaceContent")).then(function(i){const r=I(n,function(n){return Promise.resolve(e._getSections(true)).then(function(e){const r=e.findIndex(e=>e.id===t);const s=r>-1?e[r]:null;const o=s?.visualizations?.findIndex(e=>e.id===n)??-1;const a=function(){if(o>-1){return Promise.resolve(i.deleteVisualization(D,r,o)).then(function(){})}}();if(a&&a.then)return a.then(function(){})})});if(r&&r.then)return r.then(function(){})})}catch(e){return Promise.reject(e)}}updateVisualizations(e){let{pageId:t,sourceSectionIndex:n,sourceVisualizationIndex:i,oVisualizationData:r}=e;try{return Promise.resolve(a.getServiceAsync("SpaceContent")).then(function(e){return e.updateVisualization(t,n,i,r)})}catch(e){return Promise.reject(e)}}createInsightSection(e){try{let t=false;const n=this;function i(e){return t?e:Promise.resolve()}const r=function(){if(!n.bInsightsSectionPresent){return Promise.resolve(n._getSections()).then(function(i){const r=i.findIndex(function(e){return e.id===A});if(r===-1&&(o.last("/core/shell/enablePersonalization")||o.last("/core/catalog/enabled"))){const r=n.addSection({sectionIndex:i.length,sectionProperties:{id:A,title:e,visible:true}});t=true;return r}})}}();return Promise.resolve(r&&r.then?r.then(i):i(r))}catch(s){return Promise.reject(s)}}addSection(e){try{const{sectionIndex:t,sectionProperties:n}=e;return Promise.resolve(a.getServiceAsync("SpaceContent")).then(function(e){return Promise.resolve(e.addSection(D,t,{...n,visible:true})).then(function(){})})}catch(e){return Promise.reject(e)}}getSectionVisualizations(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;try{const n=this;return Promise.resolve(n.fetchFavVizs(t)).then(function(t){if(e){return t.find(t=>t.isSection&&t.id===e)?.apps||[]}else{return t.filter(e=>!e.isSection)}})}catch(e){return Promise.reject(e)}}addBookMark(e,t){try{const n=this;return Promise.resolve(a.getServiceAsync("BookmarkV2")).then(function(i){return Promise.resolve(i.getContentNodes()).then(function(r){const s=r.find(e=>e.id===O);const o=s?.children?.find(e=>e.id===D);return Promise.resolve(i.addBookmark(T(e),o)).then(function(){return t?n.moveVisualization(t):Promise.resolve()})})})}catch(e){return Promise.reject(e)}}getVisualization(e,t){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;try{const i=this;return Promise.resolve(i.getSectionVisualizations(t,n)).then(function(t){return t.find(t=>t.appId===e)})}catch(e){return Promise.reject(e)}}moveVisualization(e){try{const t=this;return Promise.resolve(a.getServiceAsync("SpaceContent")).then(function(n){t.vizDataModified=true;return n.moveVisualization(D,e.sourceSectionIndex,e.sourceVisualizationIndex,e.targetSectionIndex,e.targetVisualizationIndex)})}catch(e){return Promise.reject(e)}}_filterDuplicateVizs(e,t){return e.filter((e,n,i)=>{const r=i.findIndex(t=>t.appId===e.appId);return t?r!==n:r===n})}_addGroupInformation(e){const t=[],n=[];let i;$(e).forEach(e=>{if(e.persConfig?.isDefaultSection){t.push(e)}else{i=n.find(t=>t.isSection&&t.id===e.persConfig?.sectionId);if(!i){n.push({id:e.persConfig?.sectionId,index:e.persConfig?.sectionIndex,title:e.persConfig?.sectionTitle||"",badge:"1",BGColor:b().key,icon:"sap-icon://folder-full",isSection:true,isPresetSection:e.persConfig?.isPresetSection,apps:[e]})}else{i.apps?.push(e);i.badge=i.apps?.length.toString()}}});return[...n,...this._filterDuplicateVizs(t,false)]}moveSection(e,t){try{return Promise.resolve(a.getServiceAsync("Pages").then(function(n){const i=n.getPageIndex(D);return n.moveSection(i,e,t)}))}catch(e){return Promise.reject(e)}}_getFeatureToggles(){try{let e=V+"?$filter=";const t=Object.keys(z);const n=t.map(e=>"ToggleId eq '"+z[e]+"'").join(" or ");e=e+"("+n+")";return Promise.resolve(x.GetJSON(e)).then(function(e){const t=e;if(t?.error){throw new Error(t.error.message)}return t?.value||[]})}catch(e){return Promise.reject(e)}}isFeatureEnabled(t){try{const n=this;return Promise.resolve(_(function(){return Promise.resolve(n._getFeatureToggles()).then(function(e){const n=e.find(e=>e.ToggleId===t);return!n||n.State===""?false:true})},function(t){e.error("Unable to load feature toggles: "+t.message);return false}))}catch(e){return Promise.reject(e)}}_getRecommenedFioriIds(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;try{let n=false;const i=this;function r(e){return n?e:i.recommendedFioriIds}const s=function(){if(!i.recommendedFioriIds||t){return _(function(){return Promise.resolve(x.GetJSON(M)).then(function(e){const t=e;i.recommendedFioriIds=t?.value?.map(e=>e.app_id)||[]})},function(t){e.error("Unable to load recommendations: "+t.message);const i=Promise.resolve([]);n=true;return i})}}();return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(o){return Promise.reject(o)}}_getCatalogApps(){try{return Promise.resolve(_(function(){return Promise.resolve(a.getServiceAsync("SearchableContent")).then(function(e){return e.getApps({includeAppsWithoutVisualizations:false})})},function(t){e.error("Error while fetching catalog apps: "+t.message);return[]}))}catch(e){return Promise.reject(e)}}_isListReport(e){return e?.component?.name==="sap.suite.ui.generic.template.ListReport"}isAddCardToInsightsHidden(e){return e?.component?.settings?.tableSettings?.addCardtoInsightsHidden}_checkValidManifests(e){const t=e["sap.ui.generic.app"]&&e["sap.app"]?.dataSources?.mainService;if(!t){return false}const n=e["sap.ui.generic.app"]?.pages;if(Array.isArray(n)){return this._isListReport(n[0])&&!this.isAddCardToInsightsHidden(n[0])}else if(Object.keys(n).length){return Object.keys(n).some(e=>{if(n[e]){return this._isListReport(n[e])&&!this.isAddCardToInsightsHidden(n[e])}})}return false}_getOdataModel(e){return new Promise(function(t){const n=e?.["sap.app"]?.dataSources;const i=n?.mainService;const r=i?.settings?.annotations.map(e=>{if(n&&n[e]){return n[e]?.uri}}).filter(e=>e!==undefined);const o=new s(i?.uri,{annotationURI:r,loadAnnotationsJoined:true});o.attachMetadataLoaded(()=>{t(o)});o.attachMetadataFailed(()=>{t(o)})})}_getEntitySet(e){const t=e["sap.ui.generic.app"]?.pages;if(Array.isArray(t)){return t[0].entitySet}else if(t){for(const e in t){const n=t[e];if(n.component&&n.component?.name==="sap.suite.ui.generic.template.ListReport"){return n.entitySet}}}return undefined}_hasMandatoryProperties(e,t){if(e?.["Org.OData.Capabilities.V1.FilterRestrictions"]?.["RequiredProperties"]?.length){return true}else if(t?.length){return t.some(e=>Object.keys(e).length&&(e["sap:parameter"]==="mandatory"||e["sap:required-in-filter"]==="true"))}}_getParametersisedEntitySetParams(e,t,n){if(!e){throw new Error("OData Model needs to be passed as an argument")}const i={entitySetName:null,parameters:[],navPropertyName:null};const r=e.getODataEntitySet(t);const s=e.getODataEntityType(r.entityType);const o=s.navigationProperty;if(!o){return i}o.forEach(function(t){const o=e.getODataAssociationEnd(s,t.name);const a=o&&e.getODataEntityType(o.type);if(a?.["sap:semantics"]!=="parameters"||!a.key){return}i.entitySetName=e.getODataAssociationSetEnd(s,t.name)?.entitySet;for(let r of a.key.propertyRef){if(n){const n=a.property;for(let o of n){if(o.name===r.name){i.parameters.push(o);i.entitySetName=e.getODataAssociationSetEnd(s,t.name)?.entitySet}}}else{i.parameters.push(r.name)}}const c=a.navigationProperty;const u=c?.some(function(t){const n=e.getODataAssociationEnd(a,t.name)?.type;i.navPropertyName=n===r.entityType?t.name:null;return i.navPropertyName});return u&&i.navPropertyName&&i.entitySetName});return i}_getColumnDetail(e,t,n){let i,r={};if(n.Value?.Path){i=t.getODataProperty(e,n.Value.Path)}if(!i||i["com.sap.vocabularies.UI.v1.Hidden"]?.Bool||n["com.sap.vocabularies.UI.v1.Hidden"]?.Bool){return r}if(i["com.sap.vocabularies.Common.v1.FieldControl"]?.Path){return undefined}let s=i["com.sap.vocabularies.Common.v1.Text"]?.Path||"";s="{"+s+"}";let o="{"+i.name+"}";let a="";const c=e["com.sap.vocabularies.Common.v1.SemanticKey"];const u=!!c&&c.some(function(e){return e.PropertyPath===i.name});if(i["Org.OData.Measures.V1.ISOCurrency"]?.Path){o=o.concat(" "+"{"+a+i["Org.OData.Measures.V1.ISOCurrency"].Path+"}")}if(i["Org.OData.Measures.V1.Unit"]?.Path){o=o.concat(" "+"{"+a+i["Org.OData.Measures.V1.Unit"].Path+"}")}if(i["com.sap.vocabularies.Common.v1.Text"]?.Path){let t=i["com.sap.vocabularies.Common.v1.Text"]["com.sap.vocabularies.UI.v1.TextArrangement"];if(!t){t=e["com.sap.vocabularies.UI.v1.TextArrangement"]}this._setColumnTextValue(t,r,s,o)}else{r["value"]=o;if(u){r.identifier=u}}r.path=i["com.sap.vocabularies.Common.v1.Text"]?i["com.sap.vocabularies.Common.v1.Text"].Path:i.name;r.importance=n["com.sap.vocabularies.UI.v1.Importance"];r.type=i.type;return r}_setColumnTextValue(e,t,n,i){const r=e?.EnumMember.split("/")[1];if(r==="TextOnly"){t["value"]="{= $"+n+" === '' ? '' : $"+n+"}"}else if(r==="TextLast"){t["value"]="{= $"+i+" === '' ? '' : $"+i+"}"+"{= $"+n+" === '' ? '' : ' (' + ($"+n+") + ')'}"}else if(r==="TextSeparate"){t["value"]="{= $"+i+" === '' ? '' : $"+i+"}"}else{t["value"]="{= $"+n+" === '' ? '' : $"+n+"}"+"{= $"+i+" === '' ? '' : ' (' + ($"+i+") + ')'}"}}_getManifestCardData(e,t,n,i,r,s){const o=e?.["sap.app"]?.dataSources.mainService.uri;const a=o?.[o.length-1]==="/"?o+i:o+"/"+i;const c=n?.map(e=>this._getColumnDetail(t,s,e)).filter(function(e){return e!==undefined&&e.path.split("/").length<=1});const u=R(c).map(e=>({path:e.path,type:e.type,value:e.value})).splice(0,4);return{cardTitle:e?.["sap.app"]?.title,subTitle:t["com.sap.vocabularies.Common.v1.Label"]?"Top 5 "+t["com.sap.vocabularies.Common.v1.Label"].String:"",url:a+"?$top=5&skip=0",semanticObject:r.semanticObject,action:r.action,id:e?.["sap.app"]?.id,columns:u}}loadI18n(e,t){try{const i=this;function r(){return i._RBManifestMap[o]}const s=e?.["sap.app"]?.["i18n"]["bundleUrl"];const o=new URL(s,t).href;i._RBManifestMap=i._RBManifestMap||{};const a=function(){if(!i._RBManifestMap[o]){return Promise.resolve(n.create({bundleUrl:o,async:true,terminologies:e["sap.app"]?.["i18n"]["terminologies"]})).then(function(e){i._RBManifestMap[o]=e})}}();return Promise.resolve(a&&a.then?a.then(r):r(a))}catch(c){return Promise.reject(c)}}getI18nValueOrDefaultString(e,t){let n="";if(e&&e.startsWith("{{")){n=e.substring(2,e.length-2)}else if(e&&e.startsWith("{")){n=e.substring(1,e.length-1)}return n?t.getText(n):e}_getAttributeValue(e){let n=!e.value.startsWith("{")?"{= extension.formatters.stringFormatter(${"+e.path+"}) }":e.value;if(e.type==="Edm.Date"||e.type==="Edm.DateTime"){const i=JSON.stringify({pattern:t.getDatePattern("short")});n="{=${"+e.path+"}?format.dateTime(${"+e.path+"}, "+i+") : ''}"}return n}_getAnalyticalCardManifest(){return JSON.parse(JSON.stringify(y))}_getListCardManifest(e){const t=JSON.parse(JSON.stringify(S));const n=t["sap.app"];const i=t["sap.card"];if(n){n.id="user."+e.id+"."+Date.now();n.title=i.header.title=e.cardTitle;n.subTitle=i.header.subTitle=e.subTitle}const r=i.content;r.item.title=this._getAttributeValue(e.columns[0]);r.item.description=this._getAttributeValue(e.columns[1]);r.item.attributes[0]={value:this._getAttributeValue(e.columns[2]),visible:"{= !!${"+e.columns[2].path+"} }"};r.data.request.url=e.url;r.item.actions=i.header.actions=[{type:"Navigation",parameters:{ibnTarget:{semanticObject:e.semanticObject,action:e.action}}}];t["sap.insights"]={parentAppId:e.id,cardType:"RT",versions:{ui5:this.versionInfo.version+"-"+this.versionInfo.buildTimestamp},visible:true};return t}_getCardMainfest(t){try{const n=this;return Promise.resolve(Promise.all([n._getInboundApps(),n._getCatalogApps()])).then(function(r){let[s,o]=r;return Promise.resolve(i.load()).then(function(i){n.versionInfo=i;let r=t.map(e=>{const t=s.find(t=>t?.signature?.parameters?.["sap-fiori-id"]?.defaultValue?.value===e);if(t){const e=o.find(e=>t.semanticObject===e.target?.semanticObject&&t.action===e.target?.action);return e&&t?.resolutionResult?.applicationDependencies?.manifest}return undefined}).filter(e=>e!==undefined);const a=r.map(function(e){try{return Promise.resolve(fetch(String(e))).then(function(e){return Promise.resolve(e.json()).then(function(t){const n=t;return{url:e.url,manifest:n}})})}catch(e){return Promise.reject(e)}});return Promise.resolve(Promise.all(a)).then(function(t){const i=t.filter(e=>n._checkValidManifests(e.manifest));const r=i.map(e=>n._getOdataModel(e.manifest).then(e=>e.getMetaModel()));return Promise.resolve(Promise.all(r)).then(function(t){const r=i.map(function(i,r){try{let o=false;return Promise.resolve(_(function(){function e(e){return o?e:n._getListCardManifest(m)}const a=t[r];const c=n._getEntitySet(i.manifest);if(!c){return undefined}const u=a.getODataEntitySet(c);const l=a.getODataEntityType(u.entityType);const f=l["com.sap.vocabularies.UI.v1.LineItem"];if(!f||n._hasMandatoryProperties(u,l.property)){return undefined}const d=n._getParametersisedEntitySetParams(a,c,true);if(d&&d.entitySetName&&d.parameters.length){const e=a.getODataEntitySet(d.entitySetName);if(n._hasMandatoryProperties(e,d.parameters)){return undefined}}const p=s.find(function(e){return e.resolutionResult&&e.resolutionResult.ui5ComponentName===i?.manifest?.["sap.app"]?.id});const m=n._getManifestCardData(i.manifest,l,f,c,p,a);if(m.columns.length<3){return undefined}const h=function(){if(typeof i?.manifest?.["sap.app"]?.i18n==="object"){const e=i.manifest["sap.app"].i18n.bundleUrl;return function(){if(e&&(i.manifest["sap.app"].title.startsWith("i18n>")||i.manifest["sap.app"].title.startsWith("{"))){return Promise.resolve(n.loadI18n(i.manifest,i.url)).then(function(e){m.cardTitle=n.getI18nValueOrDefaultString(m.cardTitle,e);const t=n._getListCardManifest(m);o=true;return t})}}()}}();return h&&h.then?h.then(e):e(h)},function(t){e.error(t);return undefined}))}catch(e){return Promise.reject(e)}});return Promise.resolve(Promise.all(r)).then(function(e){return e.filter(e=>e!==undefined)})})})})})}catch(e){return Promise.reject(e)}}_removeDuplicateCards(e){const t={};const n=[];e.forEach(e=>{const i=e?.descriptorContent?.["sap.card"]?.header?.title||"";if(!t[i]){n.push(e);t[i]=true}});return n}getRecommenedCards(){try{const t=this;return Promise.resolve(_(function(){return Promise.resolve(t._getRecommenedFioriIds()).then(function(e){return Promise.resolve(t._getCardMainfest(e)).then(function(e){const n=e.slice(0,E);const i=n.map(e=>{let t;if(e){e["sap.card"].rec=true;t=e["sap.app"]?.id}return{id:t,descriptorContent:e}});return t._removeDuplicateCards(i)})})},function(t){e.error("Error while fetching recommended cards: "+t.message);return[]}))}catch(e){return Promise.reject(e)}}getRecommendedVisualizations(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;try{const t=this;function n(){return t._recommendedVisualizations}const i=function(){if(!t._recommendedVisualizations||e){return Promise.resolve(t._getRecommenedFioriIds(e)).then(function(n){const i=function(){if(n.length){let i=[];let r=[];return Promise.resolve(Promise.all([t._getVisualizationsByFioriIds(n),t._fetchMyHomeVizs(e)])).then(function(e){let[n,s]=e;n=n.filter(e=>q(e,s));n.forEach(e=>{if(H(e)){r.push(e)}else{i.push(e)}});t._recommendedVisualizations=i.slice(0,10-r.length).concat(r)})}else{t._recommendedVisualizations=[]}}();if(i&&i.then)return i.then(function(){})})}}();return Promise.resolve(i&&i.then?i.then(n):n(i))}catch(r){return Promise.reject(r)}}_getInboundApps(){try{return Promise.resolve(_(function(){return Promise.resolve(a.getServiceAsync("ClientSideTargetResolution")).then(function(e){return e?._oAdapter?._aInbounds||[]})},function(t){e.error("Error while fetching inbound apps: "+t.message);return[]}))}catch(e){return Promise.reject(e)}}_getVisualizationsByFioriIds(e){try{const t=this;const n=[];const i=new Map;return Promise.resolve(Promise.all([t._getInboundApps(),t._getCatalogApps()])).then(function(t){let[r,s]=t;e.forEach(e=>{const t=r.filter(function(t){return t?.signature.parameters["sap-fiori-id"]?.defaultValue?.value===e});t.forEach(t=>{let r=s.filter(e=>e?.target?.semanticObject===t.semanticObject&&e.target.action===t.action);const o=r.filter(e=>G(e));const a=r.filter(e=>!G(e));if(o.length>0&&a.length>0){r=[...a]}r.forEach(t=>{let r=t.visualizations[0];let s={title:r.title,subtitle:r.subtitle,icon:r.icon,url:r.targetURL,vizId:r.vizId,fioriId:e,visualization:r};if(!i.has(s.url)||!i.has(s.title)){i.set(s.url,true);i.set(s.title,true);n.push(s)}})})});return n})}catch(e){return Promise.reject(e)}}_getAllFavPageApps(t,n){try{let i=false;const r=this;return Promise.resolve(_(function(){function e(e){return i?e:[]}const s=function(){if(t){r._favPageVisualizations=r._favPageVisualizations||[];const e=r._favPageVisualizations.reduce((e,t)=>{if(t.pageId&&!e.includes(t.pageId)){e.push(t.pageId)}return e},[]);const s=t.map(e=>e.pageId);const o=e.length===0||!e.every(e=>s.includes(e));if(!n&&!o){const e=r._favPageVisualizations;i=true;return e}else{return Promise.resolve(r._loadAllPageVisualizations(t)).then(function(e){r._favPageVisualizations=e;const t=r._favPageVisualizations;i=true;return t})}}}();return s&&s.then?s.then(e):e(s)},function(t){e.error(t);return[]}))}catch(e){return Promise.reject(e)}}_loadAllPageVisualizations(t){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;try{const i=e=>t.find(t=>t.pageId===e)?.BGColor??b().key;return Promise.resolve(_(function(){const e=[];return Promise.resolve(a.getServiceAsync("SpaceContent")).then(function(r){return Promise.resolve(r.getPages(t.map(e=>e.pageId))).then(function(t){const r=Object.values(t);for(const t of r){const r=t.sections||[];for(const s of r){const r=s.visualizations||[];for(const s of r){const r={appId:s.targetURL,vizId:s.vizId,icon:s.icon,BGColor:i(t.id),pageId:t.id};if(!n||!e.some(e=>e.appId===r.appId)){e.push(r)}}}}return e})})},function(t){e.error(t);return[]}))}catch(e){return Promise.reject(e)}}}return J});
|
|
5
|
+
sap.ui.define(["sap/base/Log","sap/base/i18n/ResourceBundle","sap/ui/VersionInfo","sap/ui/base/Object","sap/ui/model/odata/v2/ODataModel","sap/ushell/Config","sap/ushell/Container","./AnalyticalCardSkeleton","./Constants","./DataFormatUtils","./HttpHelper","./RecommendedCardUtil"],function(e,t,n,r,i,o,s,a,c,u,l,f){"use strict";function d(e){return e&&e.__esModule&&typeof e.default!=="undefined"?e.default:e}const h=typeof Symbol!=="undefined"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function p(e,t,n){if(!e.s){if(n instanceof m){if(n.s){if(t&1){t=n.s}n=n.v}else{n.o=p.bind(null,e,t);return}}if(n&&n.then){n.then(p.bind(null,e,t),p.bind(null,e,2));return}e.s=t;e.v=n;const r=e.o;if(r){r(e)}}}const m=function(){function e(){}e.prototype.then=function(t,n){const r=new e;const i=this.s;if(i){const e=i&1?t:n;if(e){try{p(r,1,e(this.v))}catch(e){p(r,2,e)}return r}else{return this}}this.o=function(e){try{const i=e.v;if(e.s&1){p(r,1,t?t(i):i)}else if(n){p(r,1,n(i))}else{p(r,2,i)}}catch(e){p(r,2,e)}};return r};return e}();function g(e){return e instanceof m&&e.s&1}function v(e,t,n){var r=-1,i,o;function s(a){try{while(++r<e.length&&(!n||!n())){a=t(r);if(a&&a.then){if(g(a)){a=a.v}else{a.then(s,o||(o=p.bind(null,i=new m,2)));return}}}if(i){p(i,1,a)}else{i=a}}catch(e){p(i||(i=new m),2,e)}}s();return i}const P=a["AnalyticalCardSkeleton"];function I(e,t,n){if(typeof e[h]==="function"){var r=e[h](),i,o,s;function l(e){try{while(!(i=r.next()).done&&(!n||!n())){e=t(i.value);if(e&&e.then){if(g(e)){e=e.v}else{e.then(l,s||(s=p.bind(null,o=new m,2)));return}}}if(o){p(o,1,e)}else{o=e}}catch(e){p(o||(o=new m),2,e)}}l();if(r.return){var a=function(e){try{if(!i.done){r.return()}}catch(e){}return e};if(o&&o.then){return o.then(a,function(e){throw a(e)})}a()}return o}if(!("length"in e)){throw new TypeError("Object is not iterable")}var c=[];for(var u=0;u<e.length;u++){c.push(e[u])}return v(c,function(e){return t(c[e])},n)}const S=c["COLUMN_LENGTH"];function _(e,t){try{var n=e()}catch(e){return t(e)}if(n&&n.then){return n.then(void 0,t)}return n}const y=c["DEFAULT_BG_COLOR"];const z=c["FALLBACK_ICON"];const b=c["FEATURE_TOGGLES"];const C=c["FEATURE_TOGGLE_SRVC_URL"];const D=c["MYHOME_PAGE_ID"];const M=c["MYHOME_SPACE_ID"];const A=c["MYINSIGHT_SECTION_ID"];const E=c["RECOMMENDATION_SRVC_URL"];const V=c["RECOMMENDED_CARD_LIMIT"];const j=u["createBookMarkData"];const R=u["getLeanURL"];const O=d(l);const U=d(f);const T={MUST_INCLUDE_RECOMMEDED_APPS:["F0862","F1823"]};const L=t=>{let n={};if(t){if(typeof t==="object"){n=t}else{try{n=JSON.parse(t)}catch(t){e.error(t instanceof Error?t.message:String(t));n=undefined}}}return n};const w=e=>{let t={};if(e?._instantiationData?.chip?.configuration){const n=L(e._instantiationData.chip.configuration);if(n?.tileConfiguration){const e=L(n.tileConfiguration);if(e){t=L(e.TILE_PROPERTIES)}}}return t};const x=e=>{let t="";let n={};if(e?.target?.semanticObject&&e?.target?.action){t=`#${e.target.semanticObject}-${e.target.action}`}else if(e?._instantiationData?.chip?.configuration){n=w(e);if(n?.semanticObject&&n?.semanticAction){t=`#${n?.semanticObject}-${n?.semanticAction}`}}return t};const F=e=>{let t=x(e)||"";const n=w(e);if(n?.evaluationId){t+="?EvaluationId="+n.evaluationId}return t};const B=e=>e.vizType?.startsWith("X-SAP-UI2-CHIP:SSB");const N=(e,t)=>{const n=t?._instantiationData?.chip?.bags?.sb_tileProperties?.texts;return{title:e.title?e.title:n?.title||"",subtitle:e.subtitle?e.subtitle:n?.description||""}};const k=e=>{e.forEach(t=>{e.filter(e=>e.appId===t.appId&&e?.visualization?.id!==t?.visualization?.id&&e.persConfig?.sectionIndex===t.persConfig?.sectionIndex).forEach(e=>{e?.persConfig?.duplicateApps?.push(t)})});return e};const G=e=>e?.target?.parameters?.["sap-ui-tech-hint"]?.value?.value==="GUI";const H=e=>e.fioriId&&T.MUST_INCLUDE_RECOMMEDED_APPS.includes(e.fioriId);const q=(e,t)=>!t.some(t=>t.visualization?.target?.semanticObject===e.visualization?.target?.semanticObject&&t.visualization?.target?.action===e.visualization?.target?.action);class Q extends r{aRequestQueue=[];bInsightsSectionPresent=false;vizDataModified=false;_oVizCacheData={};_favPageVisualizations=[];componentData={};fioriAppData={};constructor(){super();this.recommendedUtilInstance=U.getInstance()}static getInstance(){if(!Q.Instance){Q.Instance=new Q}return Q.Instance}_fetchRequestFromQueue(e){try{const t=this;return Promise.resolve(s.getServiceAsync("SpaceContent")).then(function(n){let r;t.aRequestQueue=t.aRequestQueue||[];const i=t.aRequestQueue.find(e=>e.pageId===D);if(!i||e===true||t.vizDataModified===true){t.vizDataModified=false;r=n.getPage(D);if(i){i.pageLoadPromise=r}else{t.aRequestQueue.push({pageId:D,pageLoadPromise:r})}}else{r=i.pageLoadPromise}return r})}catch(e){return Promise.reject(e)}}_fetchDynamicVizs(e){return this.fetchFavVizs(e,true).then(e=>e.filter(e=>e.isCount||e.isSmartBusinessTile))}_getSections(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;try{const t=this;return Promise.resolve(t._fetchRequestFromQueue(e)).then(function(e){const n=e&&e.sections||[],r=n.findIndex(e=>e.default);if(r>0){function i(){return t._getSections(true)}const o=function(){if(t._oMoveAppsPromise!==undefined){t._oMoveAppsPromise=t.moveSection(r,0);return Promise.resolve(t._oMoveAppsPromise).then(function(){})}}();return o&&o.then?o.then(i):i(o)}else{return n}})}catch(e){return Promise.reject(e)}}_fetchMyHomeVizs(e){try{const t=this;const n=[];t._oVizCacheData=t._oVizCacheData||{};return Promise.resolve(t._getSections(e)).then(function(e){return Promise.resolve(s.getServiceAsync("VisualizationInstantiation")).then(function(r){e.forEach((e,i)=>{e?.visualizations?.forEach((o,s)=>{const a=o.vizConfig,c=a?.["sap.app"]||{title:"?"},u={};u.oldAppId=x(a?.["sap.flp"]);u.appId=o?.targetURL;u.url=o?.targetURL;if(!u.url&&B(o)){u.url=F(a?.["sap.flp"])}u.leanURL=R(u.url);u.title=o?.title||N(c,o)?.title;u.subtitle=o.subtitle||N(c,o).subtitle;u.BGColor=y().key;u.isFav=true;u.isSection=false;u.icon=a?.["sap.ui"]?.icons?.icon||z;if(o?.indicatorDataSource){u.isCount=true;u.indicatorDataSource=o.indicatorDataSource.path;u.contentProviderId=o.contentProviderId}u.isSmartBusinessTile=B(o);if(u.isSmartBusinessTile){if(!t._oVizCacheData[u.appId]){t._oVizCacheData[u.appId]=r.instantiateVisualization(o);t._oVizCacheData[u.appId].setActive(true)}u.vizInstance=t._oVizCacheData[u.appId]}u.persConfig={pageId:D,sectionTitle:e.title,sectionId:e.id,sectionIndex:i,visualizationIndex:s,isDefaultSection:e.default,isPresetSection:e.preset,duplicateApps:[]};u.visualization=o;u.visualization.title=u.title;u.visualization.subtitle=u.subtitle;n.push(u)})});return n})})}catch(e){return Promise.reject(e)}}_copyDynamicVizs(){try{const e=this;return Promise.resolve(e._fetchDynamicVizs(true)).then(function(t){return Promise.all(t.map(t=>e.addVisualization(t.visualization.vizId,A)))})}catch(e){return Promise.reject(e)}}fetchFavVizs(e,t){try{const n=this;return Promise.resolve(n._fetchMyHomeVizs(e)).then(function(e){const r=e.filter(e=>e.persConfig&&e.persConfig.sectionId!==A&&e.url&&e.title);if(t){return n._filterDuplicateVizs(k(r),false)}else{return n._addGroupInformation(r)}})}catch(e){return Promise.reject(e)}}fetchInsightApps(e,t){try{const n=this;function r(){return Promise.resolve(i())}const i=function(){try{return Promise.resolve(n._fetchMyHomeVizs(e)).then(function(e){return e.filter(e=>e.persConfig?.sectionId===A&&e.url&&e.title)})}catch(e){return Promise.reject(e)}};const s=function(){if(!n.bInsightsSectionPresent){return Promise.resolve(n._getSections(e)).then(function(e){n.insightsSectionIndex=e.findIndex(function(e){return e.id===A});const r=function(){if(n.insightsSectionIndex===-1&&(o.last("/core/shell/enablePersonalization")||o.last("/core/catalog/enabled"))&&n.bInsightsSectionPresent===false){n.bInsightsSectionPresent=true;return Promise.resolve(n.addSection({sectionIndex:e?.length,sectionProperties:{id:A,title:t}})).then(function(){return Promise.resolve(n._copyDynamicVizs()).then(function(){})})}else{n.bInsightsSectionPresent=true}}();if(r&&r.then)return r.then(function(){})})}}();return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}}addVisualization(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;try{return Promise.resolve(s.getServiceAsync("SpaceContent")).then(function(n){return Promise.resolve(n.addVisualization(D,t,e)).then(function(){})})}catch(e){return Promise.reject(e)}}removeVisualizations(e){let{sectionId:t,vizIds:n}=e;try{const e=this;return Promise.resolve(s.getServiceAsync("SpaceContent")).then(function(r){const i=I(n,function(n){return Promise.resolve(e._getSections(true)).then(function(e){const i=e.findIndex(e=>e.id===t);const o=i>-1?e[i]:null;const s=o?.visualizations?.findIndex(e=>e.id===n)??-1;const a=function(){if(s>-1){return Promise.resolve(r.deleteVisualization(D,i,s)).then(function(){})}}();if(a&&a.then)return a.then(function(){})})});if(i&&i.then)return i.then(function(){})})}catch(e){return Promise.reject(e)}}updateVisualizations(e){let{pageId:t,sourceSectionIndex:n,sourceVisualizationIndex:r,oVisualizationData:i}=e;try{return Promise.resolve(s.getServiceAsync("SpaceContent")).then(function(e){return e.updateVisualization(t,n,r,i)})}catch(e){return Promise.reject(e)}}createInsightSection(e){try{let t=false;const n=this;function r(e){return t?e:Promise.resolve()}const i=function(){if(!n.bInsightsSectionPresent){return Promise.resolve(n._getSections()).then(function(r){const i=r.findIndex(function(e){return e.id===A});if(i===-1&&(o.last("/core/shell/enablePersonalization")||o.last("/core/catalog/enabled"))){const i=n.addSection({sectionIndex:r.length,sectionProperties:{id:A,title:e,visible:true}});t=true;return i}})}}();return Promise.resolve(i&&i.then?i.then(r):r(i))}catch(s){return Promise.reject(s)}}addSection(e){try{const{sectionIndex:t,sectionProperties:n}=e;return Promise.resolve(s.getServiceAsync("SpaceContent")).then(function(e){return Promise.resolve(e.addSection(D,t,{...n,visible:true})).then(function(){})})}catch(e){return Promise.reject(e)}}getSectionVisualizations(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;try{const n=this;return Promise.resolve(n.fetchFavVizs(t)).then(function(t){if(e){return t.find(t=>t.isSection&&t.id===e)?.apps||[]}else{return t.filter(e=>!e.isSection)}})}catch(e){return Promise.reject(e)}}addBookMark(e,t){try{const n=this;return Promise.resolve(s.getServiceAsync("BookmarkV2")).then(function(r){return Promise.resolve(r.getContentNodes()).then(function(i){const o=i.find(e=>e.id===M);const s=o?.children?.find(e=>e.id===D);return Promise.resolve(r.addBookmark(j(e),s)).then(function(){return t?n.moveVisualization(t):Promise.resolve()})})})}catch(e){return Promise.reject(e)}}getVisualization(e,t){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;try{const r=this;return Promise.resolve(r.getSectionVisualizations(t,n)).then(function(t){return t.find(t=>t.appId===e)})}catch(e){return Promise.reject(e)}}moveVisualization(e){try{const t=this;return Promise.resolve(s.getServiceAsync("SpaceContent")).then(function(n){t.vizDataModified=true;return n.moveVisualization(D,e.sourceSectionIndex,e.sourceVisualizationIndex,e.targetSectionIndex,e.targetVisualizationIndex)})}catch(e){return Promise.reject(e)}}_filterDuplicateVizs(e,t){return e.filter((e,n,r)=>{const i=r.findIndex(t=>t.appId===e.appId);return t?i!==n:i===n})}_addGroupInformation(e){const t=[],n=[];let r;k(e).forEach(e=>{if(e.persConfig?.isDefaultSection){t.push(e)}else{r=n.find(t=>t.isSection&&t.id===e.persConfig?.sectionId);if(!r){n.push({id:e.persConfig?.sectionId,index:e.persConfig?.sectionIndex,title:e.persConfig?.sectionTitle||"",badge:"1",BGColor:y().key,icon:"sap-icon://folder-full",isSection:true,isPresetSection:e.persConfig?.isPresetSection,apps:[e]})}else{r.apps?.push(e);r.badge=r.apps?.length.toString()}}});return[...n,...this._filterDuplicateVizs(t,false)]}moveSection(e,t){try{return Promise.resolve(s.getServiceAsync("Pages").then(function(n){const r=n.getPageIndex(D);return n.moveSection(r,e,t)}))}catch(e){return Promise.reject(e)}}_getFeatureToggles(){try{let e=C+"?$filter=";const t=Object.keys(b);const n=t.map(e=>"ToggleId eq '"+b[e]+"'").join(" or ");e=e+"("+n+")";return Promise.resolve(O.GetJSON(e)).then(function(e){const t=e;if(t?.error){throw new Error(t.error.message)}return t?.value||[]})}catch(e){return Promise.reject(e)}}isFeatureEnabled(t){try{const n=this;return Promise.resolve(_(function(){return Promise.resolve(n._getFeatureToggles()).then(function(e){const n=e.find(e=>e.ToggleId===t);return!n||n.State===""?false:true})},function(t){e.error("Unable to load feature toggles: "+t.message);return false}))}catch(e){return Promise.reject(e)}}isURLParamEnabled(e){const t=new URLSearchParams(window.location.search);return t?.get(e)?.toLowerCase()==="true"||false}_getRecommenedFioriIds(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;try{let n=false;const r=this;function i(e){return n?e:r.recommendedFioriIds}const o=function(){if(!r.recommendedFioriIds||t){return _(function(){return Promise.resolve(O.GetJSON(E)).then(function(e){const t=e;r.recommendedFioriIds=t?.value?.map(e=>e.app_id)||[]})},function(t){e.error("Unable to load recommendations: "+t.message);const r=Promise.resolve([]);n=true;return r})}}();return Promise.resolve(o&&o.then?o.then(i):i(o))}catch(s){return Promise.reject(s)}}_getCatalogApps(){try{let t=false;const n=this;function r(e){return t?e:Promise.resolve(n.catalogAppData)}const i=function(){if(!n.catalogAppData){return _(function(){return Promise.resolve(s.getServiceAsync("SearchableContent")).then(function(e){n.catalogAppData=e.getApps({includeAppsWithoutVisualizations:false});const r=n.catalogAppData;t=true;return r})},function(r){n.catalogAppData=undefined;e.error(r instanceof Error?"Error while fetching catalog apps:"+r.message:String(r));const i=[];t=true;return i})}}();return Promise.resolve(i&&i.then?i.then(r):r(i))}catch(o){return Promise.reject(o)}}isAddCardToInsightsHidden(e){return e?.component?.settings?.tableSettings?.addCardtoInsightsHidden}_checkValidManifests(e){const t=e["sap.app"]?.dataSources;const n=e["sap.ui.generic.app"]&&t?.mainService;if(!n){return false}const r=e["sap.ui.generic.app"]?.pages;if(Array.isArray(r)){return this.recommendedUtilInstance._isListReport(r[0])&&!this.isAddCardToInsightsHidden(r[0])}const i=Object.values(r);if(i.length>0){return i.some(e=>typeof e==="object"&&this.recommendedUtilInstance._isListReport(e)&&!this.isAddCardToInsightsHidden(e))}return false}_getOdataModel(e){return new Promise(function(t){const n=e?.["sap.app"]?.dataSources;const r=n?.mainService;let o=(r?.settings?.annotations||[]).map(e=>n?.[e]?.uri||"").filter(Boolean);const s=new i(r?.uri,{annotationURI:o,loadAnnotationsJoined:true});s.attachMetadataLoaded(()=>{t(s)});s.attachMetadataFailed(()=>{t(s)})})}_getEntitySet(e){const t=e["sap.ui.generic.app"]?.pages;if(Array.isArray(t)){return t[0].entitySet}else if(t){for(const e in t){const n=t[e];if(this.recommendedUtilInstance._isListReport(n)){return n.entitySet}}}return undefined}loadI18n(e,n){try{const r=this;function i(){return r._RBManifestMap[s]}const o=e?.["sap.app"]?.["i18n"]?.["bundleUrl"];const s=new URL(o,n).href;r._RBManifestMap=r._RBManifestMap||{};const a=function(){if(!r._RBManifestMap[s]){return Promise.resolve(t.create({bundleUrl:s,async:true,terminologies:e["sap.app"]?.["i18n"]?.["terminologies"]})).then(function(e){r._RBManifestMap[s]=e})}}();return Promise.resolve(a&&a.then?a.then(i):i(a))}catch(c){return Promise.reject(c)}}getI18nValueOrDefaultString(e,t){let n="";if(e&&e.startsWith("{{")){n=e.substring(2,e.length-2)}else if(e&&e.startsWith("{")){n=e.substring(1,e.length-1)}return n?t.getText(n):e}_getAnalyticalCardManifest(){return JSON.parse(JSON.stringify(P))}getProcessedManifest(t,n,r,i){try{const o=this;return Promise.resolve(_(function(){function e(){return o.recommendedUtilInstance._createCardManifest(m,i,s,h)}const s=n.manifest;const a=o._getEntitySet(s);if(!a){return undefined}const c=t.getODataEntitySet(a);const u=o.recommendedUtilInstance.getLineItemDetails(t,s,a);if(!u?.lineItem){return undefined}const l=u.entitySet||a;const f=l===a?c:t.getODataEntitySet(l);const d=t.getODataEntityType(f.entityType);const h=u?.lrSettings?.["bSupressCardRowNavigation"];if(o.recommendedUtilInstance.hasMandatoryProperties(f,d?.property)){return undefined}const p=o.recommendedUtilInstance._getParametersisedEntitySetParams(t,l,true);if(p?.entitySetName&&p?.parameters?.length){const e=t.getODataEntitySet(p.entitySetName);if(o.recommendedUtilInstance.hasMandatoryProperties(e,p.parameters)){return undefined}}const m=o.recommendedUtilInstance._getManifestCardData(s,u,r,t);if(m.columns.length<S){return undefined}const g=u?.headerInfo;const v=g.TypeNamePlural?.String||"";m.cardTitle=v||m.cardTitle;const P=function(){if(!v&&s["sap.app"]?.i18n){const e=s["sap.app"].i18n.bundleUrl;const t=s["sap.app"].title;const r=function(){if(e&&(t.startsWith("i18n>")||t.startsWith("{"))){return Promise.resolve(o.loadI18n(s,n.url)).then(function(e){m.cardTitle=o.getI18nValueOrDefaultString(m.cardTitle,e)})}}();if(r&&r.then)return r.then(function(){})}}();return P&&P.then?P.then(e):e(P)},function(t){e.error("Error while processing manifest",t instanceof Error?t.message:String(t));return undefined}))}catch(e){return Promise.reject(e)}}fetchMetaModels(t){try{const n=this;const r=t.map(function(t){try{return Promise.resolve(_(function(){return Promise.resolve(n._getOdataModel(t.manifest)).then(function(e){return e?.getMetaModel()})},function(t){e.error("Error while fetching metamodel",t instanceof Error?t.message:String(t));return undefined}))}catch(e){return Promise.reject(e)}});return Promise.resolve(Promise.all(r))}catch(e){return Promise.reject(e)}}combineManifestsAndMetaModels(e,t){return e.reduce((e,n,r)=>{const i=t[r];if(i){e.push({manifest:n,metaModel:i})}return e},[])}processManifests(e,t){try{const n=this;return Promise.all(e.map(e=>{const r=t.find(t=>t.resolutionResult?.ui5ComponentName===e.manifest.manifest?.["sap.app"]?.id);return n.getProcessedManifest(e.metaModel,e.manifest,r,n.versionInfo)}))}catch(e){return Promise.reject(e)}}processAppList(e,t,n){if(!e&&t&&t.length){return t.reduce((e,t)=>{const r=n?.[t.id]||[];const i=r.find(e=>e.semanticObject===t.target?.semanticObject&&e.action===t.target?.action);return i?[...e,i.fioriId]:e},[])}return e||[]}_getCardManifest(t,r){try{const i=this;return Promise.resolve(_(function(){return Promise.resolve(Promise.all([i._getCatalogApps(),i.getFioriAppData()])).then(function(e){let[o,s]=e;return Promise.resolve(n.load()).then(function(e){i.versionInfo=e;const n=Object.values(s).flat();const a=i.componentData;const c=i.processAppList(t,r,a);return Promise.resolve(i.fetchManifests(c,s,o)).then(function(e){const t=e.filter(e=>i._checkValidManifests(e.manifest));return Promise.resolve(i.fetchMetaModels(t)).then(function(e){const r=i.combineManifestsAndMetaModels(t,e);return Promise.resolve(i.processManifests(r,n)).then(function(e){return e.filter(e=>e!==undefined)})})})})})},function(t){e.error("Error while fetching card manifest",t instanceof Error?t.message:String(t));return[]}))}catch(e){return Promise.reject(e)}}fetchManifests(t,n,r){try{return Promise.resolve(_(function(){const i=t.map(function(t){try{let i=false;const o=n[t]||[];const s=I(o,function(t){const n=r.find(e=>t.semanticObject===e.target?.semanticObject&&t.action===e.target?.action);const o=t?.resolutionResult?.applicationDependencies?.manifest;return function(){if(n&&o){return _(function(){return Promise.resolve(fetch(o)).then(function(e){return Promise.resolve(e.json()).then(function(t){const n=t;const r={url:e.url,manifest:n};i=true;return r})})},function(t){e.error("Error while fetching manifest",t instanceof Error?t.message:String(t));i=true;return undefined})}}()},function(){return i});return Promise.resolve(s&&s.then?s.then(function(e){return i?e:undefined}):i?s:undefined)}catch(e){return Promise.reject(e)}});return Promise.resolve(Promise.all(i)).then(function(e){return e.filter(e=>e!==undefined)})},function(t){e.error("Error while processing manifests",t instanceof Error?t.message:String(t));return[]}))}catch(e){return Promise.reject(e)}}_removeDuplicateCards(e){const t={};const n=[];e.forEach(e=>{const r=e?.descriptorContent?.["sap.card"]?.header?.title||"";if(!t[r]){n.push(e);t[r]=true}});return n}getRecommenedCards(){try{const t=this;return Promise.resolve(_(function(){return Promise.resolve(t._getRecommenedFioriIds()).then(function(e){return Promise.resolve(t._getCardManifest(e)).then(function(e){const n=e?.slice(0,V);const r=n?.map(e=>{let t;if(e?.["sap.card"]){e["sap.card"].rec=true;t=e["sap.app"]?.id}return{id:t,descriptorContent:e}});return t._removeDuplicateCards(r)})})},function(t){e.error("Error while fetching recommended cards:",t instanceof Error?t.message:String(t));return[]}))}catch(e){return Promise.reject(e)}}getRecommendedVisualizations(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;try{const t=this;function n(){return t._recommendedVisualizations}const r=function(){if(!t._recommendedVisualizations||e){return Promise.resolve(t._getRecommenedFioriIds(e)).then(function(n){const r=function(){if(n.length){let r=[];let i=[];return Promise.resolve(Promise.all([t._getVisualizationsByFioriIds(n),t._fetchMyHomeVizs(e)])).then(function(e){let[n,o]=e;n=n.filter(e=>q(e,o));n.forEach(e=>{if(H(e)){i.push(e)}else{r.push(e)}});t._recommendedVisualizations=r.slice(0,10-i.length).concat(i)})}else{t._recommendedVisualizations=[]}}();if(r&&r.then)return r.then(function(){})})}}();return Promise.resolve(r&&r.then?r.then(n):n(r))}catch(i){return Promise.reject(i)}}_getInboundApps(){try{return Promise.resolve(_(function(){return Promise.resolve(s.getServiceAsync("ClientSideTargetResolution")).then(function(e){return e?._oAdapter?._aInbounds||[]})},function(t){e.error("Error while fetching inbound apps: "+t.message);return[]}))}catch(e){return Promise.reject(e)}}getFioriAppData(){try{const t=this;return Promise.resolve(_(function(){function e(){return t.fioriAppData}const n=function(){if(!Object.keys(t.componentData).length){t.componentData={};t.fioriAppData={};return Promise.resolve(t._getInboundApps()).then(function(e){e.forEach(e=>{const n=e?.signature?.parameters?.["sap-fiori-id"]?.defaultValue?.value;const r=e?.resolutionResult?.ui5ComponentName;if(n){const i={action:e.action,semanticObject:e.semanticObject,resolutionResult:e.resolutionResult};t.fioriAppData[n]=t.fioriAppData[n]||[];t.fioriAppData[n].push(i);if(r){const e={...i,fioriId:n};t.componentData[r]=t.componentData[r]||[];t.componentData[r].push(e)}}})})}}();return n&&n.then?n.then(e):e(n)},function(t){e.error(t instanceof Error?t.message:String(t));return{}}))}catch(e){return Promise.reject(e)}}_getVisualizationsByFioriIds(e){try{const t=this;const n=[];const r=new Map;return Promise.resolve(Promise.all([t._getInboundApps(),t._getCatalogApps()])).then(function(t){let[i,o]=t;e.forEach(e=>{const t=i.filter(function(t){return t?.signature.parameters["sap-fiori-id"]?.defaultValue?.value===e});t.forEach(t=>{let i=o.filter(e=>e?.target?.semanticObject===t.semanticObject&&e.target.action===t.action);const s=i.filter(e=>G(e));const a=i.filter(e=>!G(e));if(s.length>0&&a.length>0){i=[...a]}i.forEach(t=>{let i=t.visualizations[0];let o={title:i.title,subtitle:i.subtitle,icon:i.icon,url:i.targetURL,vizId:i.vizId,fioriId:e,visualization:i};if(!r.has(o.url)||!r.has(o.title)){r.set(o.url,true);r.set(o.title,true);n.push(o)}})})});return n})}catch(e){return Promise.reject(e)}}_getAllFavPageApps(t,n){try{let r=false;const i=this;return Promise.resolve(_(function(){function e(e){return r?e:[]}const o=function(){if(t){i._favPageVisualizations=i._favPageVisualizations||[];const e=i._favPageVisualizations.reduce((e,t)=>{if(t.pageId&&!e.includes(t.pageId)){e.push(t.pageId)}return e},[]);const o=t.map(e=>e.pageId);const s=e.length===0||!e.every(e=>o.includes(e));if(!n&&!s){const e=i._favPageVisualizations;r=true;return e}else{return Promise.resolve(i._loadAllPageVisualizations(t)).then(function(e){i._favPageVisualizations=e;const t=i._favPageVisualizations;r=true;return t})}}}();return o&&o.then?o.then(e):e(o)},function(t){e.error(t);return[]}))}catch(e){return Promise.reject(e)}}_loadAllPageVisualizations(t){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;try{const r=e=>t.find(t=>t.pageId===e)?.BGColor??y().key;return Promise.resolve(_(function(){const e=[];return Promise.resolve(s.getServiceAsync("SpaceContent")).then(function(i){return Promise.resolve(i.getPages(t.map(e=>e.pageId))).then(function(t){const i=Object.values(t);for(const t of i){const i=t.sections||[];for(const o of i){const i=o.visualizations||[];for(const o of i){const i={appId:o.targetURL,vizId:o.vizId,icon:o.icon,BGColor:r(t.id),pageId:t.id};if(!n||!e.some(e=>e.appId===i.appId)){e.push(i)}}}}return e})})},function(t){e.error(t);return[]}))}catch(e){return Promise.reject(e)}}}return Q});
|
|
6
6
|
//# sourceMappingURL=AppManager.js.map
|