@sapui5/sap.cux.home 1.142.0 → 1.142.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/cux/home/.library +4 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +3 -2
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.gen.d.ts +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js +7 -6
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +7 -6
- package/src/sap/cux/home/App.d.ts.map +1 -1
- package/src/sap/cux/home/App.gen.d.ts +1 -1
- package/src/sap/cux/home/App.js +6 -3
- package/src/sap/cux/home/App.js.map +1 -1
- package/src/sap/cux/home/App.ts +6 -3
- package/src/sap/cux/home/AppsAdditionPanel.d.ts +47 -34
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.js +334 -238
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.ts +345 -231
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.gen.d.ts +1 -1
- package/src/sap/cux/home/AppsContainer.js +4 -3
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +4 -3
- package/src/sap/cux/home/BaseApp.gen.d.ts +1 -1
- package/src/sap/cux/home/BaseApp.js +1 -1
- package/src/sap/cux/home/BaseApp.js.map +1 -1
- package/src/sap/cux/home/BaseApp.ts +1 -1
- package/src/sap/cux/home/BaseAppPanel.d.ts +9 -0
- package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.gen.d.ts +1 -1
- package/src/sap/cux/home/BaseAppPanel.js +21 -2
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +23 -2
- package/src/sap/cux/home/BaseAppPersPanel.d.ts +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.gen.d.ts +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 +1 -1
- package/src/sap/cux/home/BaseContainer.d.ts +2 -2
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.gen.d.ts +1 -1
- package/src/sap/cux/home/BaseContainer.js +11 -3
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +8 -4
- package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js +7 -1
- package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.ts +7 -1
- package/src/sap/cux/home/BaseLayout.d.ts +1 -1
- package/src/sap/cux/home/BaseLayout.gen.d.ts +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 +1 -1
- package/src/sap/cux/home/BaseLayoutRenderer.js +1 -1
- package/src/sap/cux/home/BaseLayoutRenderer.js.map +1 -1
- package/src/sap/cux/home/BaseLayoutRenderer.ts +1 -1
- package/src/sap/cux/home/BaseNewsItem.d.ts +1 -1
- package/src/sap/cux/home/BaseNewsItem.gen.d.ts +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 +1 -1
- package/src/sap/cux/home/BaseNewsPanel.gen.d.ts +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 +3 -3
- package/src/sap/cux/home/BasePagePanel.d.ts +1 -1
- package/src/sap/cux/home/BasePagePanel.gen.d.ts +1 -1
- package/src/sap/cux/home/BasePagePanel.js +1 -1
- package/src/sap/cux/home/BasePagePanel.js.map +1 -1
- package/src/sap/cux/home/BasePagePanel.ts +1 -1
- package/src/sap/cux/home/BasePanel.d.ts +1 -1
- package/src/sap/cux/home/BasePanel.gen.d.ts +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.d.ts +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.gen.d.ts +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 +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.d.ts +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.gen.d.ts +1 -1
- 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 +1 -1
- package/src/sap/cux/home/CardsContainer.d.ts +108 -0
- package/src/sap/cux/home/CardsContainer.d.ts.map +1 -0
- package/src/sap/cux/home/CardsContainer.js +207 -0
- package/src/sap/cux/home/CardsContainer.js.map +1 -0
- package/src/sap/cux/home/CardsContainer.ts +202 -0
- package/src/sap/cux/home/CardsPanel.d.ts +43 -62
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.gen.d.ts +1 -1
- package/src/sap/cux/home/CardsPanel.js +346 -286
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +212 -201
- package/src/sap/cux/home/ContentAdditionDialog.d.ts +3 -1
- package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.js +13 -7
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.ts +14 -6
- package/src/sap/cux/home/CustomFlexBox.gen.d.ts +1 -1
- package/src/sap/cux/home/ErrorPanel.d.ts +0 -5
- package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ErrorPanel.gen.d.ts +32 -1
- package/src/sap/cux/home/ErrorPanel.js +12 -17
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +8 -20
- package/src/sap/cux/home/FavAppPanel.d.ts +1 -2
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +297 -302
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +15 -11
- package/src/sap/cux/home/FrequentAppPanel.js +1 -1
- package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.ts +1 -1
- package/src/sap/cux/home/Group.d.ts +1 -1
- package/src/sap/cux/home/Group.gen.d.ts +1 -1
- package/src/sap/cux/home/Group.js +1 -1
- package/src/sap/cux/home/Group.js.map +1 -1
- package/src/sap/cux/home/Group.ts +1 -1
- package/src/sap/cux/home/IToDoPanel.d.ts +1 -1
- package/src/sap/cux/home/IToDoPanel.js +1 -1
- package/src/sap/cux/home/IToDoPanel.js.map +1 -1
- package/src/sap/cux/home/IToDoPanel.ts +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts +4 -4
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.js +9 -9
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +8 -8
- package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts +8 -0
- package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsCardsSettingsPanel.js +16 -1
- package/src/sap/cux/home/InsightsCardsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsCardsSettingsPanel.ts +12 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js +2 -2
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +2 -2
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +3 -0
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +253 -40
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +288 -58
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +12 -11
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +13 -11
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +3 -3
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +8 -8
- 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 +3 -3
- package/src/sap/cux/home/KeyUserSettingsDialog.d.ts +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.js +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.ts +1 -1
- package/src/sap/cux/home/Layout.d.ts +4 -2
- package/src/sap/cux/home/Layout.d.ts.map +1 -1
- package/src/sap/cux/home/Layout.js +50 -9
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +60 -9
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts +10 -0
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.js +342 -57
- package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.ts +380 -64
- package/src/sap/cux/home/MenuItem.d.ts +1 -1
- package/src/sap/cux/home/MenuItem.gen.d.ts +1 -1
- package/src/sap/cux/home/MenuItem.js +1 -1
- package/src/sap/cux/home/MenuItem.js.map +1 -1
- package/src/sap/cux/home/MenuItem.ts +1 -1
- package/src/sap/cux/home/{NewsAndPagesContainer.d.ts → NewsContainer.d.ts} +13 -14
- package/src/sap/cux/home/NewsContainer.d.ts.map +1 -0
- package/src/sap/cux/home/{NewsAndPagesContainer.gen.d.ts → NewsContainer.gen.d.ts} +4 -4
- package/src/sap/cux/home/{NewsAndPagesContainer.js → NewsContainer.js} +27 -114
- package/src/sap/cux/home/NewsContainer.js.map +1 -0
- package/src/sap/cux/home/{NewsAndPagesContainer.ts → NewsContainer.ts} +30 -119
- package/src/sap/cux/home/NewsGroup.gen.d.ts +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 +2 -2
- package/src/sap/cux/home/NewsItem.gen.d.ts +1 -1
- package/src/sap/cux/home/NewsItem.js +1 -1
- package/src/sap/cux/home/NewsItem.js.map +1 -1
- package/src/sap/cux/home/NewsItem.ts +1 -1
- package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.gen.d.ts +1 -1
- package/src/sap/cux/home/NewsPanel.js +13 -15
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +14 -17
- package/src/sap/cux/home/NewsSettingsPanel.js +5 -5
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +6 -6
- 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 +1 -1
- package/src/sap/cux/home/Page.d.ts +1 -1
- package/src/sap/cux/home/Page.gen.d.ts +1 -1
- package/src/sap/cux/home/Page.js +1 -1
- package/src/sap/cux/home/Page.js.map +1 -1
- package/src/sap/cux/home/Page.ts +1 -1
- package/src/sap/cux/home/PagePanel.d.ts +1 -1
- package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/PagePanel.js +19 -11
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +26 -16
- 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 +1 -1
- package/src/sap/cux/home/PagesContainer.d.ts +72 -0
- package/src/sap/cux/home/PagesContainer.d.ts.map +1 -0
- package/src/sap/cux/home/PagesContainer.gen.d.ts +78 -0
- package/src/sap/cux/home/PagesContainer.js +333 -0
- package/src/sap/cux/home/PagesContainer.js.map +1 -0
- package/src/sap/cux/home/PagesContainer.ts +179 -0
- package/src/sap/cux/home/RecentAppPanel.d.ts +18 -0
- package/src/sap/cux/home/RecentAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.js +30 -1
- package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.ts +33 -2
- package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js +6 -5
- package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.ts +5 -4
- package/src/sap/cux/home/SettingsDialog.d.ts +8 -1
- package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/SettingsDialog.js +185 -15
- package/src/sap/cux/home/SettingsDialog.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.ts +15 -5
- package/src/sap/cux/home/SideBySideIconTabFilter.d.ts +1 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.gen.d.ts +1 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.js +1 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.js.map +1 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.ts +1 -1
- package/src/sap/cux/home/SituationPanel.js +1 -1
- package/src/sap/cux/home/SituationPanel.js.map +1 -1
- package/src/sap/cux/home/SituationPanel.ts +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts +8 -60
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.gen.d.ts +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.js +67 -133
- package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.ts +70 -152
- package/src/sap/cux/home/SpacePanel.gen.d.ts +1 -1
- package/src/sap/cux/home/SpacePanel.js +1 -1
- package/src/sap/cux/home/SpacePanel.js.map +1 -1
- package/src/sap/cux/home/SpacePanel.ts +1 -1
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.gen.d.ts +1 -1
- package/src/sap/cux/home/TaskPanel.js +17 -2
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +16 -2
- package/src/sap/cux/home/TilesContainer.d.ts +111 -0
- package/src/sap/cux/home/TilesContainer.d.ts.map +1 -0
- package/src/sap/cux/home/TilesContainer.js +218 -0
- package/src/sap/cux/home/TilesContainer.js.map +1 -0
- package/src/sap/cux/home/TilesContainer.ts +216 -0
- package/src/sap/cux/home/TilesPanel.d.ts +22 -52
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.gen.d.ts +1 -1
- package/src/sap/cux/home/TilesPanel.js +185 -166
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +161 -155
- package/src/sap/cux/home/ToDoPanel.d.ts +1 -0
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.gen.d.ts +1 -1
- package/src/sap/cux/home/ToDoPanel.js +39 -64
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +33 -32
- 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 +1 -1
- package/src/sap/cux/home/changeHandler/LayoutHandler.js +1 -1
- package/src/sap/cux/home/changeHandler/LayoutHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/LayoutHandler.ts +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts +3 -3
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +2 -2
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +5 -5
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts +3 -3
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +2 -2
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +5 -5
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts +3 -3
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js +2 -2
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.ts +4 -4
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts +3 -3
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +5 -5
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +6 -6
- package/src/sap/cux/home/designtime/Layout.designtime.js +1 -1
- package/src/sap/cux/home/designtime/Layout.designtime.js.map +1 -1
- package/src/sap/cux/home/designtime/Layout.designtime.ts +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +31 -4
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +24 -2
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +29 -19
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.js +79 -3
- package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.ts +82 -2
- package/src/sap/cux/home/i18n/messagebundle.properties +27 -13
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +20 -4
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +21 -9
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +26 -14
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_da.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_de.properties +22 -10
- package/src/sap/cux/home/i18n/messagebundle_el.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_en.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_es.properties +21 -8
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_et.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_id.properties +33 -21
- package/src/sap/cux/home/i18n/messagebundle_it.properties +25 -13
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_no.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +26 -14
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +21 -9
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +26 -14
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_th.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +24 -12
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +20 -8
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +20 -8
- package/src/sap/cux/home/interface/AppsInterface.d.ts +1 -1
- package/src/sap/cux/home/interface/AppsInterface.js.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.ts +1 -1
- package/src/sap/cux/home/interface/CardsInterface.d.ts +1 -1
- package/src/sap/cux/home/interface/CardsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.js +1 -1
- package/src/sap/cux/home/interface/CardsInterface.js.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.ts +1 -2
- package/src/sap/cux/home/interface/KeyUserInterface.d.ts +28 -5
- package/src/sap/cux/home/interface/KeyUserInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/KeyUserInterface.js.map +1 -1
- package/src/sap/cux/home/interface/KeyUserInterface.ts +24 -5
- package/src/sap/cux/home/interface/LayoutInterface.d.ts +8 -1
- package/src/sap/cux/home/interface/LayoutInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/LayoutInterface.js.map +1 -1
- package/src/sap/cux/home/interface/LayoutInterface.ts +8 -1
- package/src/sap/cux/home/interface/PageSpaceInterface.d.ts +1 -1
- package/src/sap/cux/home/interface/PageSpaceInterface.js.map +1 -1
- package/src/sap/cux/home/interface/PageSpaceInterface.ts +1 -1
- package/src/sap/cux/home/library.d.ts.map +1 -1
- package/src/sap/cux/home/library.js +8 -5
- package/src/sap/cux/home/library.js.map +1 -1
- package/src/sap/cux/home/library.ts +11 -6
- package/src/sap/cux/home/themes/base/BaseContainer.less +36 -0
- package/src/sap/cux/home/themes/base/BaseLayout.less +11 -0
- package/src/sap/cux/home/themes/base/{InsightsContainer.less → CardsContainer.less} +0 -45
- package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +10 -18
- package/src/sap/cux/home/themes/base/PlaceHolder.less +1 -1
- package/src/sap/cux/home/themes/base/SettingsDialog.less +4 -0
- package/src/sap/cux/home/themes/base/TilesContainer.less +65 -0
- package/src/sap/cux/home/themes/base/library.source.less +2 -1
- package/src/sap/cux/home/utils/Accessibility.d.ts +1 -1
- package/src/sap/cux/home/utils/Accessibility.js +1 -1
- package/src/sap/cux/home/utils/Accessibility.js.map +1 -1
- package/src/sap/cux/home/utils/Accessibility.ts +1 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.d.ts +1 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.js +1 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.js.map +1 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.ts +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 +1 -1
- package/src/sap/cux/home/utils/BatchHelper.d.ts +2 -1
- package/src/sap/cux/home/utils/BatchHelper.d.ts.map +1 -1
- package/src/sap/cux/home/utils/BatchHelper.js +8 -3
- package/src/sap/cux/home/utils/BatchHelper.js.map +1 -1
- package/src/sap/cux/home/utils/BatchHelper.ts +9 -2
- package/src/sap/cux/home/utils/ColorUtils.d.ts +1 -1
- package/src/sap/cux/home/utils/ColorUtils.js +1 -1
- package/src/sap/cux/home/utils/ColorUtils.js.map +1 -1
- package/src/sap/cux/home/utils/ColorUtils.ts +1 -1
- package/src/sap/cux/home/utils/CommonUtils.js +1 -1
- package/src/sap/cux/home/utils/CommonUtils.js.map +1 -1
- package/src/sap/cux/home/utils/CommonUtils.ts +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 +1 -1
- package/src/sap/cux/home/utils/DataFormatUtils.d.ts +1 -1
- package/src/sap/cux/home/utils/DataFormatUtils.js +1 -1
- package/src/sap/cux/home/utils/DataFormatUtils.js.map +1 -1
- package/src/sap/cux/home/utils/DataFormatUtils.ts +1 -1
- package/src/sap/cux/home/utils/DecisionDialog.js +1 -1
- package/src/sap/cux/home/utils/DecisionDialog.js.map +1 -1
- package/src/sap/cux/home/utils/DecisionDialog.ts +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 +1 -1
- package/src/sap/cux/home/utils/DragDropUtils.d.ts +1 -1
- package/src/sap/cux/home/utils/DragDropUtils.js +1 -1
- package/src/sap/cux/home/utils/DragDropUtils.js.map +1 -1
- package/src/sap/cux/home/utils/DragDropUtils.ts +1 -1
- package/src/sap/cux/home/utils/FESRUtil.d.ts +1 -1
- package/src/sap/cux/home/utils/FESRUtil.js +1 -1
- package/src/sap/cux/home/utils/FESRUtil.js.map +1 -1
- package/src/sap/cux/home/utils/FESRUtil.ts +1 -1
- package/src/sap/cux/home/utils/FeatureUtils.js +1 -1
- package/src/sap/cux/home/utils/FeatureUtils.js.map +1 -1
- package/src/sap/cux/home/utils/FeatureUtils.ts +1 -1
- package/src/sap/cux/home/utils/HttpHelper.js +1 -1
- package/src/sap/cux/home/utils/HttpHelper.js.map +1 -1
- package/src/sap/cux/home/utils/HttpHelper.ts +1 -1
- package/src/sap/cux/home/utils/IconList.d.ts +1 -1
- package/src/sap/cux/home/utils/IconList.js +1 -1
- package/src/sap/cux/home/utils/IconList.js.map +1 -1
- package/src/sap/cux/home/utils/IconList.ts +1 -1
- package/src/sap/cux/home/utils/InsightsUtils.d.ts +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 +1 -1
- package/src/sap/cux/home/utils/PXFeedback.js +1 -1
- package/src/sap/cux/home/utils/PXFeedback.js.map +1 -1
- package/src/sap/cux/home/utils/PXFeedback.ts +1 -1
- package/src/sap/cux/home/utils/PageManager.js +1 -1
- package/src/sap/cux/home/utils/PageManager.js.map +1 -1
- package/src/sap/cux/home/utils/PageManager.ts +1 -1
- package/src/sap/cux/home/utils/PagesIconsConstants.d.ts +1 -1
- package/src/sap/cux/home/utils/PagesIconsConstants.js +1 -1
- package/src/sap/cux/home/utils/PagesIconsConstants.js.map +1 -1
- package/src/sap/cux/home/utils/PagesIconsConstants.ts +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts +4 -2
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.js +5 -3
- package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.ts +5 -3
- package/src/sap/cux/home/utils/PersonalisationUtils.d.ts +1 -1
- package/src/sap/cux/home/utils/PersonalisationUtils.js +1 -1
- package/src/sap/cux/home/utils/PersonalisationUtils.js.map +1 -1
- package/src/sap/cux/home/utils/PersonalisationUtils.ts +1 -1
- package/src/sap/cux/home/utils/RecommendedCardUtil.js +1 -1
- package/src/sap/cux/home/utils/RecommendedCardUtil.js.map +1 -1
- package/src/sap/cux/home/utils/RecommendedCardUtil.ts +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/TaskUtils.js +1 -1
- package/src/sap/cux/home/utils/TaskUtils.js.map +1 -1
- package/src/sap/cux/home/utils/TaskUtils.ts +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.js +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.js.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.ts +1 -1
- package/src/sap/cux/home/utils/extension/CardExtension.js +1 -1
- package/src/sap/cux/home/utils/extension/CardExtension.js.map +1 -1
- package/src/sap/cux/home/utils/extension/CardExtension.ts +1 -1
- package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +151 -152
- package/src/sap/cux/home/utils/fragment/showDecisionDialog.fragment.xml +1 -1
- package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.d.ts +1 -1
- package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.js +1 -1
- package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.js.map +1 -1
- package/src/sap/cux/home/utils/placeholder/AppsPlaceholder.ts +1 -1
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.js → CardsPlaceholder.js} +4 -78
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.ts → CardsPlaceholder.ts} +2 -76
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js +44 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.ts +34 -0
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.js → PagesPlaceholder.js} +4 -24
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.ts → PagesPlaceholder.ts} +2 -22
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js +95 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.ts +85 -0
- package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.d.ts +1 -1
- package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.js +1 -1
- package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.js.map +1 -1
- package/src/sap/cux/home/utils/placeholder/ToDosPlaceholder.ts +1 -1
- package/ui5.yaml +1 -0
- package/src/sap/cux/home/InsightsContainer.d.ts +0 -205
- package/src/sap/cux/home/InsightsContainer.d.ts.map +0 -1
- package/src/sap/cux/home/InsightsContainer.js +0 -459
- package/src/sap/cux/home/InsightsContainer.js.map +0 -1
- package/src/sap/cux/home/InsightsContainer.ts +0 -489
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +0 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +0 -1
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +0 -8
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +0 -1
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts +0 -8
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
-
* * (c) Copyright 2009-
|
|
3
|
+
* * (c) Copyright 2009-2026 SAP SE. All rights reserved
|
|
4
4
|
*/
|
|
5
|
-
sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sap/m/CustomListItem", "sap/m/ExpandableText", "sap/m/FlexBox", "sap/m/GenericTile", "sap/m/HBox", "sap/m/Label", "sap/m/library", "sap/m/MessageToast", "sap/m/
|
|
5
|
+
sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sap/m/CustomListItem", "sap/m/ExpandableText", "sap/m/FlexBox", "sap/m/FlexItemData", "sap/m/GenericTile", "sap/m/HBox", "sap/m/Label", "sap/m/library", "sap/m/MessageToast", "sap/m/ObjectStatus", "sap/m/SegmentedButton", "sap/m/SegmentedButtonItem", "sap/m/Title", "sap/m/VBox", "sap/ui/core/Fragment", "sap/ui/core/library", "sap/ui/model/ChangeReason", "sap/ui/model/json/JSONModel", "sap/ui/model/resource/ResourceModel", "sap/ui/model/Sorter", "sap/ushell/Container", "./AppsContainer", "./BaseSettingsPanel", "./FavAppPanel", "./TilesContainer", "./utils/AppManager", "./utils/Constants", "./utils/DataFormatUtils", "./utils/FeatureUtils", "./utils/FESRUtil", "./utils/PXFeedback"], function (Localization, Log, Button, CustomListItem, ExpandableText, FlexBox, FlexItemData, GenericTile, HBox, Label, sap_m_library, MessageToast, ObjectStatus, SegmentedButton, SegmentedButtonItem, Title, VBox, Fragment, sap_ui_core_library, ChangeReason, JSONModel, ResourceModel, Sorter, Container, __AppsContainer, __BaseSettingsPanel, __FavAppPanel, __TilesContainer, __AppManager, ___utils_Constants, ___utils_DataFormatUtils, ___utils_FeatureUtils, ___utils_FESRUtil, ___utils_PXFeedback) {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
8
|
function _interopRequireDefault(obj) {
|
|
@@ -31,7 +31,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
31
31
|
}
|
|
32
32
|
return finalizer(false, result);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
34
|
+
const FlexAlignItems = sap_m_library["FlexAlignItems"];
|
|
35
35
|
const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
36
36
|
function _settle(pact, state, value) {
|
|
37
37
|
if (!pact.s) {
|
|
@@ -126,7 +126,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
126
126
|
_cycle();
|
|
127
127
|
return pact;
|
|
128
128
|
}
|
|
129
|
-
const
|
|
129
|
+
const FlexDirection = sap_m_library["FlexDirection"];
|
|
130
130
|
function _forOf(target, body, check) {
|
|
131
131
|
if (typeof target[_iteratorSymbol] === "function") {
|
|
132
132
|
var iterator = target[_iteratorSymbol](),
|
|
@@ -187,10 +187,15 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
187
187
|
return body(values[i]);
|
|
188
188
|
}, check);
|
|
189
189
|
}
|
|
190
|
+
const FlexJustifyContent = sap_m_library["FlexJustifyContent"];
|
|
191
|
+
const FlexRendertype = sap_m_library["FlexRendertype"];
|
|
192
|
+
const URLHelper = sap_m_library["URLHelper"];
|
|
193
|
+
const TitleLevel = sap_ui_core_library["TitleLevel"];
|
|
194
|
+
const ValueState = sap_ui_core_library["ValueState"];
|
|
190
195
|
const AppsContainer = _interopRequireDefault(__AppsContainer);
|
|
191
196
|
const BaseSettingsPanel = _interopRequireDefault(__BaseSettingsPanel);
|
|
192
197
|
const FavAppPanel = _interopRequireDefault(__FavAppPanel);
|
|
193
|
-
const
|
|
198
|
+
const TilesContainer = _interopRequireDefault(__TilesContainer);
|
|
194
199
|
const AppManager = _interopRequireDefault(__AppManager);
|
|
195
200
|
const AI_APP_FINDER_API = ___utils_Constants["AI_APP_FINDER_API"];
|
|
196
201
|
const AI_APP_FINDER_BASE_URL = ___utils_Constants["AI_APP_FINDER_BASE_URL"];
|
|
@@ -207,7 +212,8 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
207
212
|
const Constants = {
|
|
208
213
|
DeprecatedInfoText: "deprecated",
|
|
209
214
|
MinQueryLength: 2,
|
|
210
|
-
|
|
215
|
+
MaxQueryLength: 2000,
|
|
216
|
+
MaxDescriptionLength: 300
|
|
211
217
|
};
|
|
212
218
|
var SearchStatus = /*#__PURE__*/function (SearchStatus) {
|
|
213
219
|
SearchStatus["Idle"] = "idle";
|
|
@@ -222,6 +228,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
222
228
|
}(ErrorType || {});
|
|
223
229
|
var TileType = /*#__PURE__*/function (TileType) {
|
|
224
230
|
TileType["Static"] = "STATIC";
|
|
231
|
+
TileType["Dynamic"] = "DYNAMIC";
|
|
225
232
|
return TileType;
|
|
226
233
|
}(TileType || {});
|
|
227
234
|
/**
|
|
@@ -318,84 +325,87 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
318
325
|
const _this = this;
|
|
319
326
|
return Promise.resolve(Container.getServiceAsync("VisualizationInstantiation")).then(function (_Container$getService) {
|
|
320
327
|
_this.vizInstantiationService = _Container$getService;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
//initialize ui model
|
|
331
|
-
//bind suggested apps list
|
|
332
|
-
//focus on the first item when the list is updated
|
|
333
|
-
//bind search field
|
|
334
|
-
_this.model = new JSONModel({
|
|
335
|
-
query: "",
|
|
336
|
-
hasError: false,
|
|
337
|
-
errorType: ErrorType.NoResultsFound,
|
|
338
|
-
errorDescription: "",
|
|
339
|
-
searchStatus: SearchStatus.Idle,
|
|
340
|
-
loadingAnimations: _this._generateSearchingAnimations(),
|
|
341
|
-
suggestedAppsCount: 0,
|
|
342
|
-
userSelectedApps: [],
|
|
343
|
-
suggestedApps: [],
|
|
344
|
-
aiPolicyText: _this._generateAIPolicyText(),
|
|
345
|
-
invalidQuery: true,
|
|
346
|
-
feedback: {
|
|
347
|
-
thumbsUp: false,
|
|
348
|
-
thumbsDown: false
|
|
349
|
-
},
|
|
350
|
-
sampleQueries: [{
|
|
351
|
-
index: 1,
|
|
352
|
-
query: _this._i18nBundle.getText("sampleQuery_1")
|
|
353
|
-
}, {
|
|
354
|
-
index: 2,
|
|
355
|
-
query: _this._i18nBundle.getText("sampleQuery_2")
|
|
356
|
-
}, {
|
|
357
|
-
index: 3,
|
|
358
|
-
query: _this._i18nBundle.getText("sampleQuery_3")
|
|
359
|
-
}]
|
|
360
|
-
});
|
|
361
|
-
panelContent.setModel(_this.model);
|
|
362
|
-
panelContent.setModel(new ResourceModel({
|
|
363
|
-
bundleName: "sap.cux.home.i18n.messagebundle"
|
|
364
|
-
}), "i18n");
|
|
365
|
-
_this.addAppsButton.setModel(_this.model);
|
|
366
|
-
_this.appSuggestionList = Fragment.byId(`${_this.getId()}-content`, "appsList");
|
|
367
|
-
_this.appSuggestionList.bindAggregation("items", {
|
|
368
|
-
path: "/suggestedApps",
|
|
369
|
-
factory: _this._generateListItem.bind(_this),
|
|
370
|
-
sorter: new Sorter({
|
|
371
|
-
path: "status",
|
|
372
|
-
comparator: (firstApp, secondApp) => {
|
|
373
|
-
const getPriority = statusArray => {
|
|
374
|
-
if (statusArray.length === 0) return 0; // Empty array has highest priority
|
|
328
|
+
const _temp = _catch(function () {
|
|
329
|
+
return Promise.resolve(Fragment.load({
|
|
330
|
+
id: recycleId(`${_this.getId()}-content`),
|
|
331
|
+
name: "sap.cux.home.utils.fragment.appsAdditionContent",
|
|
332
|
+
controller: _this
|
|
333
|
+
})).then(function (_Fragment$load) {
|
|
334
|
+
const panelContent = _Fragment$load;
|
|
335
|
+
_this.addAggregation("content", panelContent);
|
|
375
336
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
337
|
+
//initialize ui model
|
|
338
|
+
//bind suggested apps list
|
|
339
|
+
//focus on the first item when the list is updated
|
|
340
|
+
//bind search field
|
|
341
|
+
_this.model = new JSONModel({
|
|
342
|
+
query: "",
|
|
343
|
+
hasError: false,
|
|
344
|
+
errorType: ErrorType.NoResultsFound,
|
|
345
|
+
errorDescription: "",
|
|
346
|
+
searchStatus: SearchStatus.Idle,
|
|
347
|
+
loadingAnimations: _this._generateSearchingAnimations(),
|
|
348
|
+
suggestedAppsCount: 0,
|
|
349
|
+
userSelectedApps: [],
|
|
350
|
+
suggestedApps: [],
|
|
351
|
+
aiPolicyText: _this._generateAIPolicyText(),
|
|
352
|
+
invalidQuery: true,
|
|
353
|
+
feedback: {
|
|
354
|
+
thumbsUp: false,
|
|
355
|
+
thumbsDown: false
|
|
356
|
+
},
|
|
357
|
+
sampleQueries: [{
|
|
358
|
+
index: 1,
|
|
359
|
+
query: _this._i18nBundle.getText("sampleQuery_1")
|
|
360
|
+
}, {
|
|
361
|
+
index: 2,
|
|
362
|
+
query: _this._i18nBundle.getText("sampleQuery_2")
|
|
363
|
+
}, {
|
|
364
|
+
index: 3,
|
|
365
|
+
query: _this._i18nBundle.getText("sampleQuery_3")
|
|
366
|
+
}]
|
|
367
|
+
});
|
|
368
|
+
panelContent.setModel(_this.model);
|
|
369
|
+
panelContent.setModel(new ResourceModel({
|
|
370
|
+
bundleName: "sap.cux.home.i18n.messagebundle"
|
|
371
|
+
}), "i18n");
|
|
372
|
+
_this.addAppsButton.setModel(_this.model);
|
|
373
|
+
_this.appSuggestionList = Fragment.byId(`${_this.getId()}-content`, "appsList");
|
|
374
|
+
_this.appSuggestionList.bindAggregation("items", {
|
|
375
|
+
path: "/suggestedApps",
|
|
376
|
+
factory: _this._generateListItem.bind(_this),
|
|
377
|
+
sorter: new Sorter({
|
|
378
|
+
path: "",
|
|
379
|
+
comparator: (firstApp, secondApp) => {
|
|
380
|
+
const getPriority = app => {
|
|
381
|
+
const hasAlreadyAdded = app.isStaticApp ? app.addedToApps : app.addedToInsights;
|
|
382
|
+
const hasDeprecated = app.isDeprecated;
|
|
383
|
+
if (!hasAlreadyAdded && !hasDeprecated) return 0; // Neither status - highest priority
|
|
384
|
+
if (hasAlreadyAdded && hasDeprecated) return 3; // Both statuses - lowest priority
|
|
385
|
+
if (hasAlreadyAdded) return 1; // Only "Already Added"
|
|
386
|
+
if (hasDeprecated) return 2; // Only "Deprecated"
|
|
381
387
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
388
|
+
return 4; // Any other combination (fallback)
|
|
389
|
+
};
|
|
390
|
+
const firstPriority = getPriority(firstApp);
|
|
391
|
+
const secondPriority = getPriority(secondApp);
|
|
392
|
+
return firstPriority - secondPriority;
|
|
393
|
+
}
|
|
394
|
+
})
|
|
395
|
+
});
|
|
396
|
+
_this.appSuggestionList.attachUpdateFinished(() => {
|
|
397
|
+
if (_this.model.getProperty("/suggestedAppsCount") > 0 && _this.model.getProperty("/searchStatus") === SearchStatus.Complete) {
|
|
398
|
+
_this.appSuggestionList.getItems()?.[0]?.focus();
|
|
387
399
|
}
|
|
388
|
-
})
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
if (_this.model.getProperty("/suggestedAppsCount") > 0 && _this.model.getProperty("/searchStatus") === SearchStatus.Complete) {
|
|
392
|
-
_this.appSuggestionList.getItems()?.[0]?.focus();
|
|
393
|
-
}
|
|
400
|
+
});
|
|
401
|
+
const searchTextArea = Fragment.byId(`${_this.getId()}-content`, "searchTextArea");
|
|
402
|
+
searchTextArea.onsapenter = _this.onPressGo.bind(_this);
|
|
394
403
|
});
|
|
395
|
-
|
|
396
|
-
|
|
404
|
+
}, function (error) {
|
|
405
|
+
Log.error("Failed to load panel content for AppsAdditionPanel:", error);
|
|
397
406
|
});
|
|
398
|
-
|
|
407
|
+
if (_temp && _temp.then) return _temp.then(function () {});
|
|
408
|
+
}); //load ui fragment
|
|
399
409
|
} catch (e) {
|
|
400
410
|
return Promise.reject(e);
|
|
401
411
|
}
|
|
@@ -409,26 +419,47 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
409
419
|
* @returns {CustomListItem} The generated list item control.
|
|
410
420
|
*/
|
|
411
421
|
_generateListItem: function _generateListItem(id, context) {
|
|
412
|
-
const isStaticApp = context.getProperty("isStaticApp");
|
|
413
422
|
const langTag = Localization.getLanguageTag();
|
|
414
423
|
const currentLanguage = langTag.language.toLowerCase();
|
|
415
424
|
const isEnglishLanguage = currentLanguage.startsWith("en");
|
|
416
425
|
const listItem = new CustomListItem(id, {
|
|
417
|
-
selected
|
|
426
|
+
//when toggled b/w app and tile view, the selection should update according to whether the app is already added to selected section
|
|
427
|
+
selected: {
|
|
428
|
+
path: "selectedView",
|
|
429
|
+
formatter: () => {
|
|
430
|
+
const isAppAlreadyAdded = this.isAppAlreadyAdded(context);
|
|
431
|
+
//bind associated checkbox to disable it when the app is already added
|
|
432
|
+
listItem.getMultiSelectControl(true).setEnabled(!isAppAlreadyAdded);
|
|
433
|
+
// if app is already added or if user has selected the app, mark it as selected
|
|
434
|
+
return isAppAlreadyAdded || this.userSelectedApps.has(listItem);
|
|
435
|
+
}
|
|
436
|
+
},
|
|
418
437
|
content: [new FlexBox(recycleId(`${id}-result-container`), {
|
|
419
|
-
renderType:
|
|
420
|
-
direction:
|
|
421
|
-
|
|
422
|
-
items: [this.
|
|
423
|
-
}).addStyleClass("sapUiSmallMargin")]
|
|
438
|
+
renderType: FlexRendertype.Bare,
|
|
439
|
+
direction: FlexDirection.Row,
|
|
440
|
+
gap: "1.5rem",
|
|
441
|
+
items: [this._getAppDetailsContainer(id, context, isEnglishLanguage), this._getAppPreviewContainer(id, context)]
|
|
442
|
+
}).addStyleClass("sapUiSmallMargin sapUiTinyMarginBegin")]
|
|
424
443
|
});
|
|
425
|
-
|
|
426
|
-
//bind associated checkbox to disable it when the app is already added to home page
|
|
427
|
-
listItem.getMultiSelectControl(true).setEnabled(!context.getProperty("addedToHomePage"));
|
|
428
444
|
return listItem;
|
|
429
445
|
},
|
|
430
446
|
/**
|
|
431
|
-
*
|
|
447
|
+
* Cleans up resources when exiting the panel.
|
|
448
|
+
*
|
|
449
|
+
* @public
|
|
450
|
+
* @override
|
|
451
|
+
*/
|
|
452
|
+
exit: function _exit() {
|
|
453
|
+
// Destroy fragments if they exist
|
|
454
|
+
const dialogId = `${this.getId()}-content`;
|
|
455
|
+
["number", "query", "searchingAnimation"].forEach(elementId => {
|
|
456
|
+
const element = Fragment.byId(dialogId, elementId);
|
|
457
|
+
element?.destroy();
|
|
458
|
+
});
|
|
459
|
+
BaseSettingsPanel.prototype.exit.call(this);
|
|
460
|
+
},
|
|
461
|
+
/**
|
|
462
|
+
* Creates a preview container for the suggested app.
|
|
432
463
|
*
|
|
433
464
|
* @private
|
|
434
465
|
* @param {string} id - The unique ID for the container.
|
|
@@ -437,33 +468,41 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
437
468
|
*/
|
|
438
469
|
_getAppPreviewContainer: function _getAppPreviewContainer(id, context) {
|
|
439
470
|
const container = new HBox(recycleId(`${id}-suggestedAppContainer`), {
|
|
440
|
-
renderType:
|
|
471
|
+
renderType: FlexRendertype.Bare,
|
|
472
|
+
width: "19rem",
|
|
473
|
+
layoutData: new FlexItemData({
|
|
474
|
+
growFactor: 0,
|
|
475
|
+
shrinkFactor: 0,
|
|
476
|
+
alignSelf: FlexAlignItems.Center
|
|
477
|
+
}),
|
|
478
|
+
justifyContent: FlexJustifyContent.Center
|
|
441
479
|
});
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
466
|
-
|
|
480
|
+
container.addItem(new GenericTile(recycleId(`${id}-staticApp`), {
|
|
481
|
+
mode: "IconMode",
|
|
482
|
+
frameType: "TwoByHalf",
|
|
483
|
+
width: "19rem",
|
|
484
|
+
header: context.getProperty("title"),
|
|
485
|
+
subheader: context.getProperty("subTitle"),
|
|
486
|
+
tileIcon: context.getProperty("icon") || DEFAULT_APP_ICON,
|
|
487
|
+
visible: "{= ${selectedView} === 'STATIC'}",
|
|
488
|
+
url: context.getProperty("url"),
|
|
489
|
+
press: event => {
|
|
490
|
+
this._persistDialog(this.getParent());
|
|
491
|
+
URLHelper.redirect(event.getSource()?.getUrl(), false);
|
|
492
|
+
}
|
|
493
|
+
}).addStyleClass("suggestedTile"));
|
|
494
|
+
const vizData = context.getProperty("vizData");
|
|
495
|
+
// instantiate visualization for dynamic app
|
|
496
|
+
const vizInstance = this.vizInstantiationService.instantiateVisualization(vizData);
|
|
497
|
+
vizInstance?.setActive(true);
|
|
498
|
+
vizInstance?.setProperty("sizeBehavior", "Small", true);
|
|
499
|
+
vizInstance?.attachPress(() => this._persistDialog(this.getParent()));
|
|
500
|
+
vizInstance.bindProperty("visible", {
|
|
501
|
+
parts: ["selectedView"],
|
|
502
|
+
formatter: selectedView => selectedView !== TileType.Static
|
|
503
|
+
});
|
|
504
|
+
container.addItem(vizInstance);
|
|
505
|
+
return container.addStyleClass("suggestedAppPreviewContainer");
|
|
467
506
|
},
|
|
468
507
|
/**
|
|
469
508
|
* Creates a details container for the suggested app.
|
|
@@ -477,23 +516,49 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
477
516
|
_getAppDetailsContainer: function _getAppDetailsContainer(id, context, isEnglishLanguage) {
|
|
478
517
|
let description = isEnglishLanguage ? context.getProperty("description") : this._i18nBundle.getText("NoDescriptionAvailable");
|
|
479
518
|
return new VBox(recycleId(`${id}-app-details-container`), {
|
|
480
|
-
renderType:
|
|
481
|
-
gap: "
|
|
482
|
-
|
|
519
|
+
renderType: FlexRendertype.Bare,
|
|
520
|
+
gap: "1rem",
|
|
521
|
+
layoutData: new FlexItemData({
|
|
522
|
+
growFactor: 1
|
|
523
|
+
}),
|
|
524
|
+
items: [new HBox(recycleId(`${id}-title-container`), {
|
|
525
|
+
gap: "0.5rem",
|
|
526
|
+
alignItems: FlexAlignItems.Center,
|
|
527
|
+
renderType: FlexRendertype.Bare,
|
|
528
|
+
items: [new Title(recycleId(`${id}-app-title`), {
|
|
529
|
+
text: context.getProperty("title"),
|
|
530
|
+
titleStyle: TitleLevel.H6
|
|
531
|
+
}), new ObjectStatus(recycleId(`${id}-deprecatedApp`), {
|
|
532
|
+
text: this._i18nBundle.getText("deprecatedApp"),
|
|
533
|
+
icon: "sap-icon://alert",
|
|
534
|
+
state: ValueState.Warning,
|
|
535
|
+
visible: context.getProperty("isDeprecated")
|
|
536
|
+
})]
|
|
537
|
+
}), new ExpandableText(recycleId(`${id}-description`), {
|
|
483
538
|
text: description,
|
|
484
|
-
maxCharacters: Constants.MaxDescriptionLength
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
539
|
+
maxCharacters: Constants.MaxDescriptionLength,
|
|
540
|
+
layoutData: new FlexItemData({
|
|
541
|
+
growFactor: 1
|
|
542
|
+
})
|
|
543
|
+
}),
|
|
544
|
+
// app actions container
|
|
545
|
+
new HBox(recycleId(`${id}-app-actions-container`), {
|
|
546
|
+
renderType: FlexRendertype.Bare,
|
|
547
|
+
gap: "1.5rem",
|
|
548
|
+
alignItems: FlexAlignItems.Center,
|
|
549
|
+
items: [this.getAppViewTypeAction(id), new ObjectStatus(recycleId(`${id}-alreadyAddedStatus`), {
|
|
550
|
+
text: "{i18n>alreadyAddedApp}",
|
|
551
|
+
icon: "sap-icon://sys-enter-2",
|
|
552
|
+
state: "Success",
|
|
553
|
+
visible: {
|
|
554
|
+
parts: ["selectedView"],
|
|
555
|
+
formatter: () => {
|
|
556
|
+
return this.isAppAlreadyAdded(context);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
})]
|
|
495
560
|
})]
|
|
496
|
-
})
|
|
561
|
+
});
|
|
497
562
|
},
|
|
498
563
|
/**
|
|
499
564
|
* Checks if the Apps Addition Panel is supported. Internally, it checks if the
|
|
@@ -508,7 +573,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
508
573
|
isSupported: function _isSupported() {
|
|
509
574
|
try {
|
|
510
575
|
const _this2 = this;
|
|
511
|
-
function
|
|
576
|
+
function _temp4() {
|
|
512
577
|
//remove panel if it's not supported
|
|
513
578
|
if (!_this2.isPanelSupported) {
|
|
514
579
|
_this2.removeActionButton(_this2.addAppsButton);
|
|
@@ -524,20 +589,20 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
524
589
|
action: "propose"
|
|
525
590
|
}
|
|
526
591
|
};
|
|
527
|
-
const
|
|
592
|
+
const _temp3 = function () {
|
|
528
593
|
if (_this2.isPanelSupported === undefined) {
|
|
529
594
|
_this2.isPanelSupported = false;
|
|
530
|
-
const
|
|
595
|
+
const _temp2 = function () {
|
|
531
596
|
if (_this2.getFavAppPanel()) {
|
|
532
597
|
return Promise.resolve(isNavigationSupportedForFeature(FEATURE_TOGGLES.AI_SMART_APPFINDER, appsIntent)).then(function (_isNavigationSupporte) {
|
|
533
598
|
_this2.isPanelSupported = _isNavigationSupporte;
|
|
534
599
|
});
|
|
535
600
|
}
|
|
536
601
|
}();
|
|
537
|
-
if (
|
|
602
|
+
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
538
603
|
}
|
|
539
604
|
}();
|
|
540
|
-
return Promise.resolve(
|
|
605
|
+
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3));
|
|
541
606
|
} catch (e) {
|
|
542
607
|
return Promise.reject(e);
|
|
543
608
|
}
|
|
@@ -572,14 +637,18 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
572
637
|
return [`<svg height="167" fill="none">
|
|
573
638
|
${loadingShimmer}
|
|
574
639
|
<rect x="16" y="75" width="16" height="16" rx="4" fill="var(--sapContent_Placeholderloading_Background)"/>
|
|
575
|
-
<rect x="48" y="16" width="
|
|
576
|
-
<rect x="48" y="
|
|
640
|
+
<rect x="48" y="16" width="30%" height="16" rx="4" fill="url(#loadingShimmer)"/>
|
|
641
|
+
<rect x="48" y="54" width="57%" height="64" rx="4" fill="url(#loadingShimmer)"/>
|
|
642
|
+
<rect x="48" y="130" width="16%" height="24" rx="4" fill="url(#loadingShimmer)"/>
|
|
643
|
+
<rect x="600" y="50" width="303" height="70" rx="16" fill="url(#loadingShimmer)"/>
|
|
577
644
|
</svg>`, `<svg height="180" fill="none">
|
|
578
645
|
${loadingShimmer}
|
|
579
646
|
<rect x="16" y="82" width="16" height="16" rx="4" fill="var(--sapContent_Placeholderloading_Background)"/>
|
|
580
|
-
<rect x="48" y="16" width="
|
|
581
|
-
<rect x="
|
|
582
|
-
<rect x="
|
|
647
|
+
<rect x="48" y="16" width="30%" height="16" rx="4" fill="url(#loadingShimmer)"/>
|
|
648
|
+
<rect x="48" y="54" width="57%" height="64" rx="4" fill="url(#loadingShimmer)"/>
|
|
649
|
+
<rect x="48" y="140" width="16%" height="24" rx="4" fill="url(#loadingShimmer)"/>
|
|
650
|
+
<rect x="210" y="140" width="10%" height="24" rx="4" fill="url(#loadingShimmer)"/>
|
|
651
|
+
<rect x="675" y="16" width="148" height="148" rx="16" fill="url(#loadingShimmer)"/>
|
|
583
652
|
</svg>`];
|
|
584
653
|
},
|
|
585
654
|
/**
|
|
@@ -607,6 +676,20 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
607
676
|
});
|
|
608
677
|
this.userSelectedApps?.clear();
|
|
609
678
|
},
|
|
679
|
+
setIllustrationSize: function _setIllustrationSize() {
|
|
680
|
+
const containerDom = Fragment.byId(`${this.getId()}-content`, "container")?.getDomRef();
|
|
681
|
+
if (containerDom) {
|
|
682
|
+
const clientHeight = containerDom.clientHeight;
|
|
683
|
+
const illustratedMessage = Fragment.byId(`${this.getId()}-content`, "beforeSearch");
|
|
684
|
+
if (clientHeight <= 500) {
|
|
685
|
+
illustratedMessage.setIllustrationSize("ExtraSmall");
|
|
686
|
+
} else if (500 < clientHeight && clientHeight < 650) {
|
|
687
|
+
illustratedMessage.setIllustrationSize("Small");
|
|
688
|
+
} else {
|
|
689
|
+
illustratedMessage.setIllustrationSize("Medium");
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
},
|
|
610
693
|
/**
|
|
611
694
|
* Handles the "Go" button press event for searching suggested apps.
|
|
612
695
|
*
|
|
@@ -619,18 +702,18 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
619
702
|
// validate query
|
|
620
703
|
const query = _this3.model.getProperty("/query");
|
|
621
704
|
if (!_this3.isValidQuery(query)) return Promise.resolve();
|
|
622
|
-
const
|
|
705
|
+
const _temp6 = _finallyRethrows(function () {
|
|
623
706
|
return _catch(function () {
|
|
624
707
|
// initiate search
|
|
625
708
|
_this3.resetSearch();
|
|
626
709
|
return Promise.resolve(_this3.fetchAppsFromSearch(query)).then(function (rawApps) {
|
|
627
|
-
const
|
|
710
|
+
const _temp5 = function () {
|
|
628
711
|
if (_this3.model.getProperty("/searchStatus") === SearchStatus.Searching) {
|
|
629
712
|
return Promise.resolve(_this3.fetchAllAvailableVisualizations()).then(function (allVisualizations) {
|
|
630
713
|
return Promise.resolve(_this3.appManagerInstance.fetchFavVizs(true, true)).then(function (favoriteApps) {
|
|
631
714
|
return Promise.resolve(_this3.appManagerInstance.fetchInsightApps(true, _this3._i18nBundle.getText("insights"))).then(function (insightsApps) {
|
|
632
715
|
// generate suggested apps
|
|
633
|
-
const apps = _this3._generateApps(rawApps, allVisualizations,
|
|
716
|
+
const apps = _this3._generateApps(rawApps, allVisualizations, favoriteApps, insightsApps);
|
|
634
717
|
return Promise.resolve(_this3._filterUnsupportedApps(apps)).then(function (suggestedApps) {
|
|
635
718
|
if (suggestedApps.length === 0 && !_this3.model.getProperty("/hasError")) {
|
|
636
719
|
_this3._handleError("", suggestedApps.length);
|
|
@@ -648,7 +731,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
648
731
|
});
|
|
649
732
|
}
|
|
650
733
|
}();
|
|
651
|
-
if (
|
|
734
|
+
if (_temp5 && _temp5.then) return _temp5.then(function () {});
|
|
652
735
|
}); // suggest apps if there are results and search is not cancelled
|
|
653
736
|
}, function (err) {
|
|
654
737
|
const message = err.message || "";
|
|
@@ -663,7 +746,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
663
746
|
if (_wasThrown) throw _result;
|
|
664
747
|
return _result;
|
|
665
748
|
});
|
|
666
|
-
return Promise.resolve(
|
|
749
|
+
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
667
750
|
} catch (e) {
|
|
668
751
|
return Promise.reject(e);
|
|
669
752
|
}
|
|
@@ -694,13 +777,16 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
694
777
|
* @private
|
|
695
778
|
* @param {RawAppData[]} rawApps - The raw app data to process.
|
|
696
779
|
* @param {IVisualization[]} allVisualizations - All available visualizations.
|
|
697
|
-
* @param {ICustomVisualization[]}
|
|
780
|
+
* @param {ICustomVisualization[]} favoriteApps - Favorite apps available in homepage.
|
|
781
|
+
* @param {ICustomVisualization[]} insightsApps - Insights apps available in homepage.
|
|
698
782
|
* @returns {SuggestedApp[]} The list of suggested apps.
|
|
699
783
|
*/
|
|
700
|
-
_generateApps: function _generateApps(rawApps, allVisualizations,
|
|
784
|
+
_generateApps: function _generateApps(rawApps, allVisualizations, favoriteApps, insightsApps) {
|
|
701
785
|
return rawApps.map(app => {
|
|
702
786
|
const vizData = allVisualizations.find(viz => viz.vizId === app.chipID);
|
|
703
|
-
const
|
|
787
|
+
const addedToApps = favoriteApps.some(viz => viz.visualization?.vizId === app.chipID);
|
|
788
|
+
const addedToInsights = insightsApps.some(viz => viz.visualization?.vizId === app.chipID);
|
|
789
|
+
const tileConfig = this.parseTileConfiguration(app.configuration);
|
|
704
790
|
return {
|
|
705
791
|
title: app.title,
|
|
706
792
|
chipID: app.chipID,
|
|
@@ -708,10 +794,12 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
708
794
|
description: app.appDescription,
|
|
709
795
|
icon: app.iconUrl,
|
|
710
796
|
vizData,
|
|
711
|
-
|
|
797
|
+
addedToApps,
|
|
798
|
+
addedToInsights,
|
|
712
799
|
isStaticApp: app.tileType === TileType.Static,
|
|
713
|
-
|
|
714
|
-
|
|
800
|
+
url: vizData?.targetURL || "",
|
|
801
|
+
isDeprecated: (tileConfig?.display_info_text || "").toLowerCase() === Constants.DeprecatedInfoText,
|
|
802
|
+
selectedView: app.tileType === TileType.Static ? TileType.Static : TileType.Dynamic
|
|
715
803
|
};
|
|
716
804
|
});
|
|
717
805
|
},
|
|
@@ -724,7 +812,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
724
812
|
*/
|
|
725
813
|
isValidQuery: function _isValidQuery(query = "") {
|
|
726
814
|
query = query?.trim();
|
|
727
|
-
return query.length >= Constants.MinQueryLength && query.length <= Constants.
|
|
815
|
+
return query.length >= Constants.MinQueryLength && query.length <= Constants.MaxQueryLength;
|
|
728
816
|
},
|
|
729
817
|
/**
|
|
730
818
|
* Fetches all available visualizations for the user.
|
|
@@ -736,10 +824,10 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
736
824
|
fetchAllAvailableVisualizations: function _fetchAllAvailableVisualizations() {
|
|
737
825
|
try {
|
|
738
826
|
const _this4 = this;
|
|
739
|
-
function
|
|
827
|
+
function _temp8() {
|
|
740
828
|
return _this4.allAvailableVisualizations;
|
|
741
829
|
}
|
|
742
|
-
const
|
|
830
|
+
const _temp7 = function () {
|
|
743
831
|
if (!_this4.allAvailableVisualizations) {
|
|
744
832
|
return Promise.resolve(Container.getServiceAsync("SearchableContent")).then(function (searchableContentService) {
|
|
745
833
|
return Promise.resolve(searchableContentService.getApps({
|
|
@@ -752,7 +840,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
752
840
|
});
|
|
753
841
|
}
|
|
754
842
|
}();
|
|
755
|
-
return Promise.resolve(
|
|
843
|
+
return Promise.resolve(_temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7));
|
|
756
844
|
} catch (e) {
|
|
757
845
|
return Promise.reject(e);
|
|
758
846
|
}
|
|
@@ -808,14 +896,14 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
808
896
|
UserInput: query
|
|
809
897
|
})
|
|
810
898
|
})).then(function (response) {
|
|
811
|
-
let
|
|
812
|
-
function
|
|
813
|
-
return
|
|
899
|
+
let _exit2 = false;
|
|
900
|
+
function _temp0(_result2) {
|
|
901
|
+
return _exit2 ? _result2 : Promise.resolve(response.json()).then(function (_response$json2) {
|
|
814
902
|
const queryResult = _response$json2;
|
|
815
903
|
return queryResult.value || [];
|
|
816
904
|
});
|
|
817
905
|
}
|
|
818
|
-
const
|
|
906
|
+
const _temp9 = function () {
|
|
819
907
|
if (!response.ok) {
|
|
820
908
|
return Promise.resolve(response.json()).then(function (_response$json) {
|
|
821
909
|
const errorResponse = _response$json;
|
|
@@ -824,71 +912,13 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
824
912
|
}
|
|
825
913
|
}();
|
|
826
914
|
// handle error responses
|
|
827
|
-
return
|
|
915
|
+
return _temp9 && _temp9.then ? _temp9.then(_temp0) : _temp0(_temp9);
|
|
828
916
|
});
|
|
829
917
|
});
|
|
830
918
|
} catch (e) {
|
|
831
919
|
return Promise.reject(e);
|
|
832
920
|
}
|
|
833
921
|
},
|
|
834
|
-
/**
|
|
835
|
-
* Retrieves status texts for an app based on its configuration and homepage status.
|
|
836
|
-
*
|
|
837
|
-
* @private
|
|
838
|
-
* @param {string} configuration - The app's configuration string.
|
|
839
|
-
* @param {boolean} addedToHomePage - Indicates if the app is already added to the homepage.
|
|
840
|
-
* @returns {string[]} An array of status texts for the app.
|
|
841
|
-
*/
|
|
842
|
-
getAppStatusTexts: function _getAppStatusTexts(configuration, addedToHomePage) {
|
|
843
|
-
let statusTexts = [];
|
|
844
|
-
if (configuration) {
|
|
845
|
-
try {
|
|
846
|
-
const parsedConfig = JSON.parse(configuration);
|
|
847
|
-
const tileConfig = JSON.parse(parsedConfig?.tileConfiguration);
|
|
848
|
-
const infoText = (tileConfig?.display_info_text || "").toLowerCase();
|
|
849
|
-
if (infoText === Constants.DeprecatedInfoText) {
|
|
850
|
-
statusTexts.push(this._i18nBundle.getText("deprecatedApp"));
|
|
851
|
-
}
|
|
852
|
-
} catch (error) {
|
|
853
|
-
Log.warning(error.message);
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
if (addedToHomePage) {
|
|
857
|
-
statusTexts.push(this._i18nBundle.getText("alreadyAddedApp"));
|
|
858
|
-
}
|
|
859
|
-
return statusTexts;
|
|
860
|
-
},
|
|
861
|
-
/**
|
|
862
|
-
* Generates status text controls for the provided status texts.
|
|
863
|
-
*
|
|
864
|
-
* @private
|
|
865
|
-
* @param {string} id - The id of the list item.
|
|
866
|
-
* @param {string[]} stausTexts - The list of status texts.
|
|
867
|
-
* @returns {Text[]} An array of Text controls with applied styles.
|
|
868
|
-
*/
|
|
869
|
-
_generateStatusTexts: function _generateStatusTexts(id, stausTexts) {
|
|
870
|
-
return stausTexts.map((status, index) => {
|
|
871
|
-
return new Text(recycleId(`${id}-statusText-${index}`), {
|
|
872
|
-
text: status
|
|
873
|
-
}).addStyleClass(this.applyStatusClass(status));
|
|
874
|
-
});
|
|
875
|
-
},
|
|
876
|
-
/**
|
|
877
|
-
* Applies a CSS class to the status text based on its type.
|
|
878
|
-
*
|
|
879
|
-
* @private
|
|
880
|
-
* @param {string} status - The status text to classify.
|
|
881
|
-
* @returns {string} The CSS class for the status text.
|
|
882
|
-
*/
|
|
883
|
-
applyStatusClass: function _applyStatusClass(status) {
|
|
884
|
-
if (status === this._i18nBundle.getText("alreadyAddedApp")) {
|
|
885
|
-
return "addedAppStatusText";
|
|
886
|
-
} else if (status === this._i18nBundle.getText("deprecatedApp")) {
|
|
887
|
-
return "deprecatedAppStatusText";
|
|
888
|
-
} else {
|
|
889
|
-
return "";
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
922
|
/**
|
|
893
923
|
* Handles the "Add Apps" button press event to add selected apps to favorites.
|
|
894
924
|
*
|
|
@@ -898,9 +928,9 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
898
928
|
onPressAddApps: function _onPressAddApps() {
|
|
899
929
|
try {
|
|
900
930
|
const _this6 = this;
|
|
901
|
-
function
|
|
902
|
-
function
|
|
903
|
-
function
|
|
931
|
+
function _temp14() {
|
|
932
|
+
function _temp12() {
|
|
933
|
+
function _temp10() {
|
|
904
934
|
_this6.getParent()?.close();
|
|
905
935
|
if (userSelectedApps.length > 1) {
|
|
906
936
|
MessageToast.show(_this6._i18nBundle.getText("contentAddedToMyhome"));
|
|
@@ -912,31 +942,31 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
912
942
|
}
|
|
913
943
|
_this6.resetPanel();
|
|
914
944
|
}
|
|
915
|
-
const
|
|
945
|
+
const _temp1 = function () {
|
|
916
946
|
if (dynamicAppsPresent) {
|
|
917
947
|
return Promise.resolve(_this6.refreshInsightsApps()).then(function () {});
|
|
918
948
|
}
|
|
919
949
|
}();
|
|
920
|
-
return
|
|
950
|
+
return _temp1 && _temp1.then ? _temp1.then(_temp10) : _temp10(_temp1);
|
|
921
951
|
}
|
|
922
|
-
const
|
|
952
|
+
const _temp11 = function () {
|
|
923
953
|
if (staticAppsPresent) {
|
|
924
954
|
return Promise.resolve(_this6.refreshFavoriteApps()).then(function () {});
|
|
925
955
|
}
|
|
926
956
|
}();
|
|
927
|
-
return
|
|
957
|
+
return _temp11 && _temp11.then ? _temp11.then(_temp12) : _temp12(_temp11);
|
|
928
958
|
}
|
|
929
959
|
triggerPXIntegration("addAppsButton");
|
|
930
960
|
const userSelectedApps = _this6.model.getProperty("/userSelectedApps");
|
|
931
961
|
let staticAppsPresent = false;
|
|
932
962
|
let dynamicAppsPresent = false;
|
|
933
|
-
const
|
|
934
|
-
const isStaticApp = app.getBindingContext()?.getProperty("
|
|
963
|
+
const _temp13 = _forOf(userSelectedApps, function (app) {
|
|
964
|
+
const isStaticApp = app.getBindingContext()?.getProperty("selectedView") === TileType.Static;
|
|
935
965
|
if (isStaticApp) staticAppsPresent = true;else dynamicAppsPresent = true;
|
|
936
966
|
const vizId = app.getBindingContext()?.getProperty("chipID");
|
|
937
967
|
return Promise.resolve(_this6.appManagerInstance.addVisualization(vizId, isStaticApp ? undefined : MYINSIGHT_SECTION_ID)).then(function () {});
|
|
938
968
|
});
|
|
939
|
-
return Promise.resolve(
|
|
969
|
+
return Promise.resolve(_temp13 && _temp13.then ? _temp13.then(_temp14) : _temp14(_temp13));
|
|
940
970
|
} catch (e) {
|
|
941
971
|
return Promise.reject(e);
|
|
942
972
|
}
|
|
@@ -983,16 +1013,16 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
983
1013
|
}
|
|
984
1014
|
},
|
|
985
1015
|
/**
|
|
986
|
-
* Retrieves the
|
|
1016
|
+
* Retrieves the TilesContainer instance from the parent layout.
|
|
987
1017
|
*
|
|
988
1018
|
* @private
|
|
989
|
-
* @returns {
|
|
1019
|
+
* @returns {TilesContainer | undefined} The AppsContainer instance or undefined if not found.
|
|
990
1020
|
*/
|
|
991
|
-
|
|
992
|
-
return this.getLayout()?.getItems().find(container => container instanceof
|
|
1021
|
+
getTilesContainer: function _getTilesContainer() {
|
|
1022
|
+
return this.getLayout()?.getItems().find(container => container instanceof TilesContainer);
|
|
993
1023
|
},
|
|
994
1024
|
/**
|
|
995
|
-
* Refreshes the Insights tiles panel in the
|
|
1025
|
+
* Refreshes the Insights tiles panel in the TilesContainer.
|
|
996
1026
|
*
|
|
997
1027
|
* @private
|
|
998
1028
|
* @async
|
|
@@ -1000,7 +1030,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
1000
1030
|
refreshInsightsApps: function _refreshInsightsApps() {
|
|
1001
1031
|
try {
|
|
1002
1032
|
const _this8 = this;
|
|
1003
|
-
return Promise.resolve(_this8.
|
|
1033
|
+
return Promise.resolve(_this8.getTilesContainer()?.refreshData("tiles")).then(function () {});
|
|
1004
1034
|
} catch (e) {
|
|
1005
1035
|
return Promise.reject(e);
|
|
1006
1036
|
}
|
|
@@ -1016,8 +1046,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
1016
1046
|
const selected = event.getParameter("selected");
|
|
1017
1047
|
if (!selected) this.userSelectedApps.delete(listItem);else {
|
|
1018
1048
|
const context = listItem.getBindingContext();
|
|
1019
|
-
|
|
1020
|
-
if (!addedToHomePage) this.userSelectedApps.add(listItem);
|
|
1049
|
+
if (context && !this.isAppAlreadyAdded(context)) this.userSelectedApps.add(listItem);
|
|
1021
1050
|
}
|
|
1022
1051
|
this.model.setProperty("/userSelectedApps", Array.from(this.userSelectedApps));
|
|
1023
1052
|
},
|
|
@@ -1062,7 +1091,7 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
1062
1091
|
if (query.length !== 0 && query.length < Constants.MinQueryLength) {
|
|
1063
1092
|
textArea.setValueState(ValueState.Information);
|
|
1064
1093
|
textArea.setValueStateText(this._i18nBundle.getText("minLengthRequired"));
|
|
1065
|
-
} else if (query.length > Constants.
|
|
1094
|
+
} else if (query.length > Constants.MaxQueryLength) {
|
|
1066
1095
|
textArea.setValueState(ValueState.Warning);
|
|
1067
1096
|
textArea.setValueStateText(this._i18nBundle.getText("maxLengthExceeded"));
|
|
1068
1097
|
} else {
|
|
@@ -1104,6 +1133,73 @@ sap.ui.define(["sap/base/i18n/Localization", "sap/base/Log", "sap/m/Button", "sa
|
|
|
1104
1133
|
MessageToast.show(this._i18nBundle.getText("feedBackSent"), {
|
|
1105
1134
|
width: "20em"
|
|
1106
1135
|
});
|
|
1136
|
+
},
|
|
1137
|
+
/**
|
|
1138
|
+
* Creates the action to change view type (App / Tile) for suggested app.
|
|
1139
|
+
*
|
|
1140
|
+
* @private
|
|
1141
|
+
* @param {string} id - The unique ID for the container.
|
|
1142
|
+
* @returns {HBox} The app view action container.
|
|
1143
|
+
*/
|
|
1144
|
+
getAppViewTypeAction: function _getAppViewTypeAction(id) {
|
|
1145
|
+
const appViewToggleButton = new SegmentedButton(recycleId(`${id}-app-addAs-segmentedBtn`), {
|
|
1146
|
+
selectedKey: "{selectedView}",
|
|
1147
|
+
items: [new SegmentedButtonItem(recycleId(`${id}-addAs-app`), {
|
|
1148
|
+
key: TileType.Static,
|
|
1149
|
+
text: this._i18nBundle.getText("addAsApp")
|
|
1150
|
+
}), new SegmentedButtonItem(recycleId(`${id}-addAs-tile`), {
|
|
1151
|
+
key: TileType.Dynamic,
|
|
1152
|
+
text: this._i18nBundle.getText("addAsTile")
|
|
1153
|
+
})]
|
|
1154
|
+
});
|
|
1155
|
+
const appViewLabel = new Label(recycleId(`${id}-addAsLabel`), {
|
|
1156
|
+
text: this._i18nBundle.getText("addAs"),
|
|
1157
|
+
showColon: true
|
|
1158
|
+
});
|
|
1159
|
+
try {
|
|
1160
|
+
appViewToggleButton.setProperty("contentMode", "ContentFit");
|
|
1161
|
+
appViewLabel.setWidth("100%");
|
|
1162
|
+
} catch (error) {
|
|
1163
|
+
Log.error(error instanceof Error ? error.message : error);
|
|
1164
|
+
}
|
|
1165
|
+
return new HBox(recycleId(`${id}-app-addAs-container`), {
|
|
1166
|
+
renderType: FlexRendertype.Bare,
|
|
1167
|
+
alignItems: FlexAlignItems.Center,
|
|
1168
|
+
gap: "0.25rem",
|
|
1169
|
+
items: [appViewLabel, appViewToggleButton]
|
|
1170
|
+
});
|
|
1171
|
+
},
|
|
1172
|
+
/**
|
|
1173
|
+
* Determines if an app is already added to the appropriate section based on its type and selected view.
|
|
1174
|
+
* For static apps or apps with Static view selected, checks if added to favorites apps section.
|
|
1175
|
+
* For dynamic apps with Dynamic view selected, checks if added to insights section.
|
|
1176
|
+
*
|
|
1177
|
+
* @private
|
|
1178
|
+
* @param {Context} context - The binding context for the app to check.
|
|
1179
|
+
* @returns {boolean} True if the app is already added to the corresponding section, false otherwise.
|
|
1180
|
+
*/
|
|
1181
|
+
isAppAlreadyAdded: function _isAppAlreadyAdded(context) {
|
|
1182
|
+
const selectedAppView = context.getProperty("selectedView");
|
|
1183
|
+
return selectedAppView === TileType.Static ? context.getProperty("addedToApps") : context.getProperty("addedToInsights");
|
|
1184
|
+
},
|
|
1185
|
+
/**
|
|
1186
|
+
* Parses the tile configuration string from raw app configuration.
|
|
1187
|
+
*
|
|
1188
|
+
* @private
|
|
1189
|
+
* @param {string} configuration - The raw app configuration string containing tile settings.
|
|
1190
|
+
* @returns {TileConfig | null} The parsed tile configuration object or null if parsing fails.
|
|
1191
|
+
*/
|
|
1192
|
+
parseTileConfiguration: function _parseTileConfiguration(configuration) {
|
|
1193
|
+
if (configuration) {
|
|
1194
|
+
try {
|
|
1195
|
+
const parsedConfig = JSON.parse(configuration);
|
|
1196
|
+
const tileConfig = JSON.parse(parsedConfig?.tileConfiguration);
|
|
1197
|
+
return tileConfig;
|
|
1198
|
+
} catch (error) {
|
|
1199
|
+
Log.warning(error.message);
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
return null;
|
|
1107
1203
|
}
|
|
1108
1204
|
});
|
|
1109
1205
|
return AppsAdditionPanel;
|