@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,6 +1,6 @@
|
|
|
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
5
|
|
|
6
6
|
import Log from "sap/base/Log";
|
|
@@ -27,9 +27,11 @@ import Container from "sap/ushell/Container";
|
|
|
27
27
|
import S4MyHome from "sap/ushell/api/S4MyHome";
|
|
28
28
|
import { Intent } from "sap/ushell/services/AppLifeCycle";
|
|
29
29
|
import Navigation from "sap/ushell/services/Navigation";
|
|
30
|
+
import BaseContainer from "./BaseContainer";
|
|
30
31
|
import BasePanel from "./BasePanel";
|
|
32
|
+
import CardsContainer from "./CardsContainer";
|
|
31
33
|
import { $CardsPanelSettings } from "./CardsPanel";
|
|
32
|
-
import
|
|
34
|
+
import ErrorPanel from "./ErrorPanel";
|
|
33
35
|
import MenuItem from "./MenuItem";
|
|
34
36
|
import {
|
|
35
37
|
ICard,
|
|
@@ -51,41 +53,25 @@ import { recycleId } from "./utils/DataFormatUtils";
|
|
|
51
53
|
import { calculateCardWidth, DeviceType, fetchElementProperties } from "./utils/Device";
|
|
52
54
|
import { focusDraggedItem } from "./utils/DragDropUtils";
|
|
53
55
|
import { addFESRId, addFESRNavigationSource, FESRNavigationSource } from "./utils/FESRUtil";
|
|
54
|
-
import {
|
|
55
|
-
createShowMoreActionButton,
|
|
56
|
-
createShowMoreMenuItem,
|
|
57
|
-
getAssociatedFullScreenMenuItem,
|
|
58
|
-
sortMenuItems,
|
|
59
|
-
targetsAreEqual
|
|
60
|
-
} from "./utils/InsightsUtils";
|
|
56
|
+
import { getAssociatedFullScreenButton, getAssociatedFullScreenMenuItem, sortMenuItems, targetsAreEqual } from "./utils/InsightsUtils";
|
|
61
57
|
import PageManager from "./utils/PageManager";
|
|
62
58
|
import PersonalisationUtils from "./utils/PersonalisationUtils";
|
|
63
59
|
import UShellPersonalizer, { IPersonalizationData } from "./utils/UshellPersonalizer";
|
|
64
60
|
|
|
65
61
|
export enum cardsMenuItems {
|
|
66
62
|
REFRESH = "cards-refresh",
|
|
67
|
-
EDIT_CARDS = "cards-editCards"
|
|
68
|
-
AI_INSIGHT_CARD = "cards-addAIInsightCard"
|
|
63
|
+
EDIT_CARDS = "cards-editCards"
|
|
69
64
|
}
|
|
70
65
|
|
|
71
|
-
export enum
|
|
72
|
-
|
|
73
|
-
EDIT_CARDS = "container-cards-editCards",
|
|
74
|
-
SHOW_MORE = "cardsContainerFullScreenMenuItem",
|
|
75
|
-
AI_INSIGHT_CARD = "container-cards-addAIInsightCard"
|
|
66
|
+
export enum cardsActionButtons {
|
|
67
|
+
SHOW_MORE = "fullScreen"
|
|
76
68
|
}
|
|
77
69
|
|
|
78
|
-
export enum
|
|
79
|
-
|
|
70
|
+
export enum errorPanelMenuItems {
|
|
71
|
+
EDIT_CARDS = "cards-errorPanel-editCards"
|
|
80
72
|
}
|
|
81
|
-
const sortedMenuItems: (cardsMenuItems | string)[] = [
|
|
82
|
-
cardsMenuItems.REFRESH,
|
|
83
|
-
cardsMenuItems.EDIT_CARDS,
|
|
84
|
-
cardsMenuItems.AI_INSIGHT_CARD,
|
|
85
|
-
"showMore",
|
|
86
|
-
"settings"
|
|
87
|
-
];
|
|
88
73
|
|
|
74
|
+
const sortedMenuItems: (cardsMenuItems | string)[] = [cardsMenuItems.REFRESH, cardsMenuItems.EDIT_CARDS, "showMore", "settings"];
|
|
89
75
|
interface IcardActionEvent {
|
|
90
76
|
getParameter(sParam: string): unknown;
|
|
91
77
|
preventDefault(): void;
|
|
@@ -163,7 +149,7 @@ export default class CardsPanel extends BasePanel {
|
|
|
163
149
|
};
|
|
164
150
|
private cardHelperInstance!: ICardHelperInstance;
|
|
165
151
|
private _cardsFlexWrapper!: VBox;
|
|
166
|
-
private
|
|
152
|
+
private cardsWrapperContainer!: GridContainer;
|
|
167
153
|
private cardsMobileContainer!: HeaderContainer;
|
|
168
154
|
private aVisibleCardInstances: Card[] = [];
|
|
169
155
|
private _oData!: Record<string, unknown>;
|
|
@@ -176,14 +162,13 @@ export default class CardsPanel extends BasePanel {
|
|
|
176
162
|
private cardsInViewport: Card[] = [];
|
|
177
163
|
private oEventBus!: EventBus;
|
|
178
164
|
private _appSwitched: boolean = false;
|
|
179
|
-
private
|
|
180
|
-
private _containerActionButtons!: Button[];
|
|
181
|
-
private insightsContainer!: InsightsContainer;
|
|
182
|
-
private _headerVisible: boolean = false;
|
|
165
|
+
private cardsContainer!: CardsContainer;
|
|
183
166
|
private _controlMap!: Map<string, UI5Element>;
|
|
184
167
|
private _cardsRendered!: Promise<void> | undefined;
|
|
185
168
|
private pageManagerInstance!: PageManager;
|
|
186
169
|
private hasCustomSpace!: boolean;
|
|
170
|
+
private _errorPanel!: ErrorPanel;
|
|
171
|
+
private cardHelper: Promise<ICardHelperInstance> | null = null;
|
|
187
172
|
|
|
188
173
|
constructor(idOrSettings?: string | $CardsPanelSettings);
|
|
189
174
|
constructor(id?: string, settings?: $CardsPanelSettings);
|
|
@@ -205,6 +190,7 @@ export default class CardsPanel extends BasePanel {
|
|
|
205
190
|
*/
|
|
206
191
|
public init() {
|
|
207
192
|
super.init();
|
|
193
|
+
this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")}`);
|
|
208
194
|
this.setProperty("key", "cards");
|
|
209
195
|
this.setProperty("enableFullScreen", true);
|
|
210
196
|
this.cardWidth = "19rem";
|
|
@@ -233,7 +219,6 @@ export default class CardsPanel extends BasePanel {
|
|
|
233
219
|
"importChannel",
|
|
234
220
|
"cardsImport",
|
|
235
221
|
async (sChannelId?: string, sEventId?: string, oData?) => {
|
|
236
|
-
await this.initializeCardHelper();
|
|
237
222
|
await this._createCards(oData as ICardManifest[]);
|
|
238
223
|
this._importdone();
|
|
239
224
|
},
|
|
@@ -279,7 +264,8 @@ export default class CardsPanel extends BasePanel {
|
|
|
279
264
|
* @returns {any}
|
|
280
265
|
*/
|
|
281
266
|
private async _createCards(aCards: ICardManifest[]) {
|
|
282
|
-
await this.
|
|
267
|
+
const cardHelper = await this.getCardHelper();
|
|
268
|
+
await cardHelper?._createCards(aCards);
|
|
283
269
|
return this.rerenderCards();
|
|
284
270
|
}
|
|
285
271
|
|
|
@@ -334,10 +320,8 @@ export default class CardsPanel extends BasePanel {
|
|
|
334
320
|
) as object;
|
|
335
321
|
}
|
|
336
322
|
if (oCheckSemanticProperty && Object.keys(oCheckSemanticProperty).length) {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
oIntegrationCardManifest
|
|
340
|
-
) as ICardActionParameters;
|
|
323
|
+
const cardHelper = await this.getCardHelper();
|
|
324
|
+
oParameters = cardHelper?.processSemanticDate(oParameters, oIntegrationCardManifest) as ICardActionParameters;
|
|
341
325
|
}
|
|
342
326
|
|
|
343
327
|
let aContentActions = this.getContentActions(oIntegrationCardManifest);
|
|
@@ -383,9 +367,7 @@ export default class CardsPanel extends BasePanel {
|
|
|
383
367
|
icon: "sap-icon://filter",
|
|
384
368
|
action: (oCard: Card) => {
|
|
385
369
|
const cardId = (oCard.getManifestEntry("sap.app") as ISapApp).id;
|
|
386
|
-
(this.getParent() as
|
|
387
|
-
?._getLayout()
|
|
388
|
-
.openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS, { cardId });
|
|
370
|
+
(this.getParent() as CardsContainer)?._getLayout().openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS, { cardId });
|
|
389
371
|
},
|
|
390
372
|
visible: async (oCard: Card) => {
|
|
391
373
|
const oEntry = await this._getManifestEntryFromCard(oCard, "sap.insights");
|
|
@@ -416,7 +398,8 @@ export default class CardsPanel extends BasePanel {
|
|
|
416
398
|
visible: async (oCard: Card) => {
|
|
417
399
|
return this._getManifestEntryFromCard(oCard, "sap.insights").then(async (oEntry: ICardManifest | undefined) => {
|
|
418
400
|
if (oEntry) {
|
|
419
|
-
const
|
|
401
|
+
const cardHelper = await this.getCardHelper();
|
|
402
|
+
const parentApp = await cardHelper?.getParentAppDetails({
|
|
420
403
|
descriptorContent: oCard.getManifestEntry("/") as ICardManifest
|
|
421
404
|
});
|
|
422
405
|
if (parentApp.semanticObject && parentApp.action) {
|
|
@@ -440,7 +423,8 @@ export default class CardsPanel extends BasePanel {
|
|
|
440
423
|
});
|
|
441
424
|
},
|
|
442
425
|
action: async (oCard: Card) => {
|
|
443
|
-
const
|
|
426
|
+
const cardHelper = await this.getCardHelper();
|
|
427
|
+
const parentApp = await cardHelper?.getParentAppDetails({
|
|
444
428
|
descriptorContent: oCard.getManifestEntry("/") as ICardManifest
|
|
445
429
|
});
|
|
446
430
|
const sShellHash = parentApp.semanticURL || parentApp.semanticObject;
|
|
@@ -563,21 +547,22 @@ export default class CardsPanel extends BasePanel {
|
|
|
563
547
|
}
|
|
564
548
|
|
|
565
549
|
/**
|
|
566
|
-
*
|
|
550
|
+
* Retrieves the Card Helper instance.
|
|
567
551
|
*
|
|
568
552
|
* @private
|
|
569
|
-
* @returns {Promise<
|
|
553
|
+
* @returns {Promise<ICardHelperInstance>} A promise that resolves with the Card Helper instance.
|
|
570
554
|
*/
|
|
571
|
-
private async
|
|
555
|
+
private async getCardHelper(): Promise<ICardHelperInstance> {
|
|
572
556
|
if (!this.cardHelperInstance) {
|
|
573
557
|
this.pageManagerInstance = this.pageManagerInstance || getPageManagerInstance(this);
|
|
574
558
|
const [cardHelperInstance, hasCustomSpace] = await Promise.all([
|
|
575
|
-
|
|
559
|
+
this.getCardHelperService(),
|
|
576
560
|
this.pageManagerInstance.hasCustomSpace()
|
|
577
561
|
]);
|
|
578
562
|
this.cardHelperInstance = cardHelperInstance;
|
|
579
563
|
this.hasCustomSpace = hasCustomSpace;
|
|
580
564
|
}
|
|
565
|
+
return this.cardHelperInstance;
|
|
581
566
|
}
|
|
582
567
|
/**
|
|
583
568
|
* Renders the panel.
|
|
@@ -586,9 +571,36 @@ export default class CardsPanel extends BasePanel {
|
|
|
586
571
|
* @returns {Promise<void>} A promise that resolves when the panel is rendered.
|
|
587
572
|
*/
|
|
588
573
|
public async renderPanel(): Promise<void> {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
574
|
+
try {
|
|
575
|
+
await this.rerenderCards();
|
|
576
|
+
this.fireEvent("loaded");
|
|
577
|
+
} catch (error) {
|
|
578
|
+
Log.error(error instanceof Error ? error.message : String(error));
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Sorts the menu items based on the provided order.
|
|
584
|
+
*
|
|
585
|
+
* @private
|
|
586
|
+
* @param {string[]} menuItems - The order of the menu items.
|
|
587
|
+
*/
|
|
588
|
+
private _sortMenuItems(menuItems: string[]) {
|
|
589
|
+
const panelMenuItems = this.getAggregation("menuItems") as MenuItem[];
|
|
590
|
+
let sortedMenuItems = sortMenuItems(menuItems, panelMenuItems);
|
|
591
|
+
this.removeAllAggregation("menuItems");
|
|
592
|
+
sortedMenuItems?.forEach((menuItem) => this.addAggregation("menuItems", menuItem));
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
private _setMenuItemsVisibility(menuItem: MenuItem, bVisible: boolean) {
|
|
596
|
+
if (
|
|
597
|
+
menuItem &&
|
|
598
|
+
(menuItem.getId().includes(cardsMenuItems.REFRESH) ||
|
|
599
|
+
menuItem.getId().includes(cardsMenuItems.EDIT_CARDS) ||
|
|
600
|
+
menuItem.getId().includes("showMore"))
|
|
601
|
+
) {
|
|
602
|
+
menuItem.setVisible(bVisible);
|
|
603
|
+
}
|
|
592
604
|
}
|
|
593
605
|
|
|
594
606
|
/**
|
|
@@ -603,13 +615,14 @@ export default class CardsPanel extends BasePanel {
|
|
|
603
615
|
void (async () => {
|
|
604
616
|
try {
|
|
605
617
|
// Enable placeholders after updating/rerendering cards
|
|
606
|
-
const sDefaultAggreName = this.
|
|
618
|
+
const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
|
|
607
619
|
|
|
608
|
-
this.
|
|
620
|
+
this._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
|
|
609
621
|
this._showPlaceHolders();
|
|
610
622
|
// Fetch Cards from insights service
|
|
623
|
+
const cardHelper = await this.getCardHelper();
|
|
611
624
|
const preferedCardIDs = this.hasCustomSpace ? PREFERED_CARDS : [];
|
|
612
|
-
const userVisibleCardModel = await
|
|
625
|
+
const userVisibleCardModel = await cardHelper._getUserVisibleCardModel(preferedCardIDs);
|
|
613
626
|
const aCards = userVisibleCardModel.getProperty("/cards") as ICard[];
|
|
614
627
|
const listBinding = userVisibleCardModel?.bindList("/cards");
|
|
615
628
|
if (!listBinding.hasListeners("change")) {
|
|
@@ -618,9 +631,16 @@ export default class CardsPanel extends BasePanel {
|
|
|
618
631
|
await (this._cardsRendered ?? Promise.resolve());
|
|
619
632
|
const visibleCards = userVisibleCardModel.getProperty("/cards") as ICard[];
|
|
620
633
|
if (visibleCards.length !== this.aVisibleCardInstances.length && visibleCards.length > 0) {
|
|
634
|
+
// Show cards in UI
|
|
621
635
|
this._showCards(visibleCards);
|
|
622
636
|
} else if (!visibleCards.length) {
|
|
637
|
+
//if there are no tiles, hide the panel and show the error panel
|
|
638
|
+
this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")}`);
|
|
639
|
+
this.getMenuItems().forEach((item) => {
|
|
640
|
+
this._setMenuItemsVisibility(item, false);
|
|
641
|
+
});
|
|
623
642
|
this.fireHandleHidePanel();
|
|
643
|
+
this._addErrorPanel();
|
|
624
644
|
}
|
|
625
645
|
});
|
|
626
646
|
}
|
|
@@ -630,6 +650,13 @@ export default class CardsPanel extends BasePanel {
|
|
|
630
650
|
if (aCards.length === 0 && showRecommendation === undefined && !skipRecommendation) {
|
|
631
651
|
await this._getRecommendationCards();
|
|
632
652
|
} else if (aCards.length) {
|
|
653
|
+
this._errorPanel?.setVisible(false);
|
|
654
|
+
//Update the panel title with the number of cards
|
|
655
|
+
this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")} (${aCards.length})`);
|
|
656
|
+
//if the panel has been loaded and has cards, update the visibility of header elements of the panel
|
|
657
|
+
this.getMenuItems().forEach((item) => {
|
|
658
|
+
this._setMenuItemsVisibility(item, true);
|
|
659
|
+
});
|
|
633
660
|
if (showRecommendation === undefined) {
|
|
634
661
|
await this._updateRecommendationStatus();
|
|
635
662
|
}
|
|
@@ -638,11 +665,20 @@ export default class CardsPanel extends BasePanel {
|
|
|
638
665
|
await this.checkForRecommendedCards(aCards);
|
|
639
666
|
} else {
|
|
640
667
|
this.fireHandleHidePanel();
|
|
668
|
+
this._addErrorPanel();
|
|
669
|
+
const layout = this._getCardsContainer()?._getLayout();
|
|
670
|
+
if (layout.getProperty("expanded")) {
|
|
671
|
+
this.cardsContainer.addContent(this);
|
|
672
|
+
layout?.toggleFullScreen(this);
|
|
673
|
+
//remove the cards panel from the cards container
|
|
674
|
+
this.cardsContainer.removeContent(this);
|
|
675
|
+
}
|
|
641
676
|
}
|
|
642
677
|
this._cardsRendered = undefined;
|
|
643
678
|
resolve();
|
|
644
679
|
} catch (error) {
|
|
645
680
|
this.fireHandleHidePanel();
|
|
681
|
+
this._addErrorPanel(false);
|
|
646
682
|
this._cardsRendered = undefined;
|
|
647
683
|
if (error instanceof Error) {
|
|
648
684
|
Log.error(error.message);
|
|
@@ -654,13 +690,61 @@ export default class CardsPanel extends BasePanel {
|
|
|
654
690
|
}
|
|
655
691
|
return this._cardsRendered;
|
|
656
692
|
}
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Adds an error panel when no cards are available.
|
|
696
|
+
*
|
|
697
|
+
* @private
|
|
698
|
+
*/
|
|
699
|
+
private _addErrorPanel(showActions: boolean = true) {
|
|
700
|
+
const parentContainer = this._getCardsContainer() as BaseContainer;
|
|
701
|
+
//set the visibility of cards panel to false
|
|
702
|
+
this.setVisible(false);
|
|
703
|
+
if (!this._errorPanel) {
|
|
704
|
+
this._errorPanel = new ErrorPanel(`${this.getId()}-errorCardsPanel`, {
|
|
705
|
+
additionalData: [
|
|
706
|
+
new Button(`${this.getId()}-addInsightsCardsBtn`, {
|
|
707
|
+
text: this._i18nBundle.getText("addInsightsCardBtn"),
|
|
708
|
+
type: "Emphasized",
|
|
709
|
+
press: () => {
|
|
710
|
+
(this._getCardsContainer() as BaseContainer)
|
|
711
|
+
?._getLayout()
|
|
712
|
+
.openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS);
|
|
713
|
+
}
|
|
714
|
+
})
|
|
715
|
+
],
|
|
716
|
+
messageTitle: this._i18nBundle.getText("noAppsTitle"),
|
|
717
|
+
messageDescription: this._i18nBundle.getText("noInsightsCardsMsg")
|
|
718
|
+
});
|
|
719
|
+
this._errorPanel.getData();
|
|
720
|
+
//Add the menu items and action buttons to the error panel
|
|
721
|
+
const editCardsMenuItem = this._createEditCardsMenuItem(errorPanelMenuItems.EDIT_CARDS, "manageCards");
|
|
722
|
+
this._errorPanel.addAggregation("menuItems", editCardsMenuItem);
|
|
723
|
+
this._sortMenuItems(sortedMenuItems);
|
|
724
|
+
this._errorPanel.setProperty("enableSettings", true);
|
|
725
|
+
}
|
|
726
|
+
(this._errorPanel.getProperty("additionalData") as Control[]).forEach((control) => control.setVisible(showActions));
|
|
727
|
+
//Add the title to the error panel
|
|
728
|
+
this._errorPanel.setProperty("title", this._i18nBundle?.getText("insightsCards"));
|
|
729
|
+
this._errorPanel.setVisible(true);
|
|
730
|
+
parentContainer.addAggregation("content", this._errorPanel);
|
|
731
|
+
//set the visibility of header elements of the error panel
|
|
732
|
+
this._errorPanel.getMenuItems().forEach((item) => {
|
|
733
|
+
if ((item.getId().includes(errorPanelMenuItems.EDIT_CARDS) && showActions) || item.getId().includes("settings")) {
|
|
734
|
+
item.setVisible(true);
|
|
735
|
+
} else {
|
|
736
|
+
item.setVisible(false);
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
}
|
|
657
740
|
/**
|
|
658
741
|
* Sets the new visible cards in the model and updates the UI.
|
|
659
742
|
* @private
|
|
660
743
|
*/
|
|
661
744
|
private async setNewVisibleCards() {
|
|
745
|
+
const cardHelper = await this.getCardHelper();
|
|
662
746
|
const preferedCardIDs = this.hasCustomSpace ? PREFERED_CARDS : [];
|
|
663
|
-
const visibleCardModel = await
|
|
747
|
+
const visibleCardModel = await cardHelper?._getUserVisibleCardModel(preferedCardIDs);
|
|
664
748
|
const aNewCards = visibleCardModel.getProperty("/cards") as ICard[];
|
|
665
749
|
this._controlModel.setProperty("/userVisibleCards", aNewCards);
|
|
666
750
|
this._showCards(aNewCards);
|
|
@@ -702,7 +786,8 @@ export default class CardsPanel extends BasePanel {
|
|
|
702
786
|
const aUpdatedCards = await this.regenerateCards(uniqueManifestDetails, manifestIds);
|
|
703
787
|
if (aUpdatedCards?.length) {
|
|
704
788
|
// Update the model with updated cards
|
|
705
|
-
await this.
|
|
789
|
+
const cardHelper = await this.getCardHelper();
|
|
790
|
+
await cardHelper?._updateCards(
|
|
706
791
|
aUpdatedCards.map((oCard: ICardDetails) => oCard?.newManifest?.descriptorContent) as ICardManifest[]
|
|
707
792
|
);
|
|
708
793
|
} else {
|
|
@@ -931,7 +1016,8 @@ export default class CardsPanel extends BasePanel {
|
|
|
931
1016
|
*/
|
|
932
1017
|
private async _handleRecommendationCards(aRecommendedCards: ICard[]) {
|
|
933
1018
|
const cardManifests = aRecommendedCards.map((oCard) => oCard.descriptorContent);
|
|
934
|
-
await this.
|
|
1019
|
+
const cardHelper = await this.getCardHelper();
|
|
1020
|
+
await cardHelper?._createCards(cardManifests);
|
|
935
1021
|
await this._updateRecommendationStatus();
|
|
936
1022
|
return this.setNewVisibleCards();
|
|
937
1023
|
}
|
|
@@ -965,15 +1051,15 @@ export default class CardsPanel extends BasePanel {
|
|
|
965
1051
|
rowSize: this.cardHeight,
|
|
966
1052
|
gap: "1rem"
|
|
967
1053
|
});
|
|
968
|
-
this.
|
|
1054
|
+
this.cardsWrapperContainer = new GridContainer(`${this.getId()}-insightsCardsFlexBox`, {
|
|
969
1055
|
visible: "{= !${/isPhone}}"
|
|
970
1056
|
})
|
|
971
1057
|
.addStyleClass("sapUiSmallMarginTop")
|
|
972
1058
|
.setLayout(this.cardsContainerSettings);
|
|
973
|
-
this.
|
|
974
|
-
this.addDragDropConfigTo(this.
|
|
1059
|
+
this.cardsWrapperContainer.setModel(this._controlModel);
|
|
1060
|
+
this.addDragDropConfigTo(this.cardsWrapperContainer, (oEvent) => this._handleCardsDnd(oEvent));
|
|
975
1061
|
|
|
976
|
-
return this.
|
|
1062
|
+
return this.cardsWrapperContainer;
|
|
977
1063
|
}
|
|
978
1064
|
|
|
979
1065
|
/**
|
|
@@ -1023,9 +1109,9 @@ export default class CardsPanel extends BasePanel {
|
|
|
1023
1109
|
});
|
|
1024
1110
|
|
|
1025
1111
|
// add HBox as item to GridList
|
|
1026
|
-
const sDefaultAggreName = this.
|
|
1112
|
+
const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
|
|
1027
1113
|
if (sDefaultAggreName) {
|
|
1028
|
-
this.
|
|
1114
|
+
this._getCardWrapperContainer().addAggregation(sDefaultAggreName, oPreviewHBox);
|
|
1029
1115
|
}
|
|
1030
1116
|
}
|
|
1031
1117
|
|
|
@@ -1036,7 +1122,7 @@ export default class CardsPanel extends BasePanel {
|
|
|
1036
1122
|
* @returns {number} The number of placeholder cards that should be displayed. Defaults to 1 if no valid count is determined.
|
|
1037
1123
|
*/
|
|
1038
1124
|
private _calculatePlaceholderCardCount(): number {
|
|
1039
|
-
const layoutDomRef = this.
|
|
1125
|
+
const layoutDomRef = this._getCardsContainer()?._getLayout()?.getDomRef();
|
|
1040
1126
|
let count = 0;
|
|
1041
1127
|
if (layoutDomRef) {
|
|
1042
1128
|
const sectionDomRef = layoutDomRef.childNodes[0] as Element;
|
|
@@ -1069,14 +1155,11 @@ export default class CardsPanel extends BasePanel {
|
|
|
1069
1155
|
* @param {ICard[]} aCards - The cards to display.
|
|
1070
1156
|
*/
|
|
1071
1157
|
private _showCards(aCards: ICard[]) {
|
|
1072
|
-
const
|
|
1158
|
+
const parentContainer = this._getCardsContainer() as BaseContainer;
|
|
1159
|
+
parentContainer.removeContent(this._errorPanel);
|
|
1073
1160
|
this.fireHandleUnhidePanel();
|
|
1074
|
-
this.
|
|
1075
|
-
|
|
1076
|
-
this.setProperty("title", `${this._i18nBundle?.getText("insightsCards")} (${aCards.length})`);
|
|
1077
|
-
}
|
|
1078
|
-
const sDefaultAggreName = this._getCardContainer().getMetadata().getDefaultAggregationName();
|
|
1079
|
-
this._getCardContainer().removeAllAggregation(sDefaultAggreName);
|
|
1161
|
+
const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
|
|
1162
|
+
this._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
|
|
1080
1163
|
this.aVisibleCardInstances = [];
|
|
1081
1164
|
this.cardsInViewport = [];
|
|
1082
1165
|
|
|
@@ -1124,8 +1207,8 @@ export default class CardsPanel extends BasePanel {
|
|
|
1124
1207
|
});
|
|
1125
1208
|
|
|
1126
1209
|
// add VBox as item to GridList
|
|
1127
|
-
const sDefaultAggreName = this.
|
|
1128
|
-
this.
|
|
1210
|
+
const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
|
|
1211
|
+
this._getCardWrapperContainer().addAggregation(sDefaultAggreName, oPreviewVBox);
|
|
1129
1212
|
});
|
|
1130
1213
|
}
|
|
1131
1214
|
|
|
@@ -1136,38 +1219,13 @@ export default class CardsPanel extends BasePanel {
|
|
|
1136
1219
|
* @param {Event} event - The event object.
|
|
1137
1220
|
*/
|
|
1138
1221
|
private _handleEditCards(event: Event) {
|
|
1139
|
-
/* If called from Panel Header event.source() will return TilesPanel, if called from
|
|
1222
|
+
/* If called from Panel Header event.source() will return TilesPanel, if called from cards Container event.source() will return cardsContainer.
|
|
1140
1223
|
_getLayout is available at Container Level*/
|
|
1141
1224
|
let parent: ManagedObject = event.getSource<CardsPanel>().getParent() || this;
|
|
1142
|
-
if (parent instanceof CardsPanel) {
|
|
1225
|
+
if (parent instanceof CardsPanel || parent instanceof ErrorPanel) {
|
|
1143
1226
|
parent = parent.getParent() as ManagedObject;
|
|
1144
1227
|
}
|
|
1145
|
-
(parent as
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* Hides the header of the cards panel.
|
|
1150
|
-
*
|
|
1151
|
-
* @private
|
|
1152
|
-
*/
|
|
1153
|
-
public handleHideHeader() {
|
|
1154
|
-
this._headerVisible = false;
|
|
1155
|
-
this.setProperty("title", "");
|
|
1156
|
-
this._toggleHeaderActions(false);
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
/**
|
|
1160
|
-
* Adds the header to the cards panel.
|
|
1161
|
-
*
|
|
1162
|
-
* @private
|
|
1163
|
-
*/
|
|
1164
|
-
public handleAddHeader() {
|
|
1165
|
-
this._headerVisible = true;
|
|
1166
|
-
this.setProperty(
|
|
1167
|
-
"title",
|
|
1168
|
-
`${this._i18nBundle?.getText("insightsCards")} (${(this._controlModel.getProperty("/userVisibleCards") as ICard[])?.length})`
|
|
1169
|
-
);
|
|
1170
|
-
this._toggleHeaderActions(true);
|
|
1228
|
+
(parent as CardsContainer)?._getLayout().openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_CARDS);
|
|
1171
1229
|
}
|
|
1172
1230
|
|
|
1173
1231
|
/**
|
|
@@ -1197,14 +1255,15 @@ export default class CardsPanel extends BasePanel {
|
|
|
1197
1255
|
// take the moved item from dragIndex and add to dropindex
|
|
1198
1256
|
try {
|
|
1199
1257
|
if (!(this._controlModel.getProperty("/userAllCards") as ICard[]).length) {
|
|
1200
|
-
const
|
|
1258
|
+
const cardHelper = await this.getCardHelper();
|
|
1259
|
+
const userAllCardsModel = await cardHelper?._getUserAllCardModel();
|
|
1201
1260
|
this._controlModel.setProperty("/userAllCards", userAllCardsModel.getProperty("/cards"));
|
|
1202
1261
|
await this.updateCardList(sInsertPosition, iDropItemIndex, iDragItemIndex);
|
|
1203
1262
|
} else {
|
|
1204
1263
|
await this.updateCardList(sInsertPosition, iDropItemIndex, iDragItemIndex);
|
|
1205
1264
|
}
|
|
1206
1265
|
setTimeout(() => {
|
|
1207
|
-
focusDraggedItem(this.
|
|
1266
|
+
focusDraggedItem(this._getCardWrapperContainer(), iDropItemIndex);
|
|
1208
1267
|
}, 0);
|
|
1209
1268
|
} catch (error) {
|
|
1210
1269
|
if (error instanceof Error) {
|
|
@@ -1245,12 +1304,9 @@ export default class CardsPanel extends BasePanel {
|
|
|
1245
1304
|
iUpdatedDropItemIndex++;
|
|
1246
1305
|
}
|
|
1247
1306
|
if (iUpdatedDragItemIndex !== iUpdatedDropItemIndex) {
|
|
1248
|
-
const
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
aUserAllCards
|
|
1252
|
-
);
|
|
1253
|
-
await this.cardHelperInstance._updateMultipleCards(aUpdatedCards, "PUT");
|
|
1307
|
+
const cardHelper = await this.getCardHelper();
|
|
1308
|
+
const aUpdatedCards = cardHelper?.handleDndCardsRanking(iUpdatedDragItemIndex, iUpdatedDropItemIndex, aUserAllCards);
|
|
1309
|
+
await cardHelper?._updateMultipleCards(aUpdatedCards, "PUT");
|
|
1254
1310
|
this._sortCardsOnRank(aUserAllCards);
|
|
1255
1311
|
this._controlModel.setProperty("/userAllCards", aUserAllCards);
|
|
1256
1312
|
this._controlModel.setProperty(
|
|
@@ -1310,7 +1366,7 @@ export default class CardsPanel extends BasePanel {
|
|
|
1310
1366
|
* @returns {number} - The number of visible cards.
|
|
1311
1367
|
*/
|
|
1312
1368
|
private _calculateVisibleCardCount() {
|
|
1313
|
-
const layout = this.
|
|
1369
|
+
const layout = this._getCardsContainer()._getLayout();
|
|
1314
1370
|
const pageDomRef = layout.getDomRef();
|
|
1315
1371
|
const deviceType = this.getDeviceType();
|
|
1316
1372
|
let count = 1;
|
|
@@ -1344,7 +1400,7 @@ export default class CardsPanel extends BasePanel {
|
|
|
1344
1400
|
* @override
|
|
1345
1401
|
*/
|
|
1346
1402
|
public _adjustLayout() {
|
|
1347
|
-
const layout = this.
|
|
1403
|
+
const layout = this._getCardsContainer()?._getLayout();
|
|
1348
1404
|
let cardWidth = this.cardWidth;
|
|
1349
1405
|
const isMobileDevice = this.getDeviceType() === DeviceType.Mobile;
|
|
1350
1406
|
|
|
@@ -1363,8 +1419,8 @@ export default class CardsPanel extends BasePanel {
|
|
|
1363
1419
|
if (cardCount !== this.cardsInViewport.length) {
|
|
1364
1420
|
this.cardsInViewport = this.aVisibleCardInstances.slice(0, cardCount);
|
|
1365
1421
|
|
|
1366
|
-
const sDefaultAggreName = this.
|
|
1367
|
-
this.
|
|
1422
|
+
const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
|
|
1423
|
+
this._getCardWrapperContainer().removeAllAggregation(sDefaultAggreName);
|
|
1368
1424
|
this.cardsInViewport.forEach((card) => {
|
|
1369
1425
|
const manifest = card.getManifest() as ICardManifest;
|
|
1370
1426
|
const sType = manifest["sap.card"]?.type;
|
|
@@ -1387,31 +1443,22 @@ export default class CardsPanel extends BasePanel {
|
|
|
1387
1443
|
if (overlayHBoxWrapper) {
|
|
1388
1444
|
cardWrapper.addItem(overlayHBoxWrapper);
|
|
1389
1445
|
}
|
|
1390
|
-
const sDefaultAggreName = this.
|
|
1391
|
-
this.
|
|
1446
|
+
const sDefaultAggreName = this._getCardWrapperContainer().getMetadata().getDefaultAggregationName();
|
|
1447
|
+
this._getCardWrapperContainer().addAggregation(sDefaultAggreName, cardWrapper);
|
|
1392
1448
|
});
|
|
1393
1449
|
|
|
1394
1450
|
this.shareCardsInViewport();
|
|
1395
1451
|
}
|
|
1396
|
-
|
|
1397
|
-
// show/hide Full Screen Button if available
|
|
1452
|
+
// show/hide full screen button
|
|
1398
1453
|
const showFullScreenButton = isElementExpanded || this.aVisibleCardInstances.length > cardCount;
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
fullScreenText
|
|
1408
|
-
);
|
|
1409
|
-
this._getInsightsContainer()?.updateActionButton(
|
|
1410
|
-
this._controlMap.get(`${this.getId()}-${cardsContainerActionButtons.SHOW_MORE}`) as Button,
|
|
1411
|
-
showFullScreenButton,
|
|
1412
|
-
fullScreenText
|
|
1413
|
-
);
|
|
1414
|
-
}
|
|
1454
|
+
const fullScreenButton = getAssociatedFullScreenMenuItem(this);
|
|
1455
|
+
const fullScreenText = fullScreenButton.getTitle();
|
|
1456
|
+
//update the panel menu-item show more button and show more action button in panel header
|
|
1457
|
+
fullScreenButton?.setVisible(showFullScreenButton);
|
|
1458
|
+
fullScreenButton?.setTitle(fullScreenText);
|
|
1459
|
+
const fullScreenActionButton = getAssociatedFullScreenButton(this);
|
|
1460
|
+
fullScreenActionButton?.setVisible(showFullScreenButton);
|
|
1461
|
+
fullScreenActionButton?.setText(fullScreenText);
|
|
1415
1462
|
} else {
|
|
1416
1463
|
this.cardWidth = this.getDeviceType() === DeviceType.Mobile ? "19rem" : "22rem";
|
|
1417
1464
|
}
|
|
@@ -1423,53 +1470,17 @@ export default class CardsPanel extends BasePanel {
|
|
|
1423
1470
|
}
|
|
1424
1471
|
}
|
|
1425
1472
|
|
|
1426
|
-
/**
|
|
1427
|
-
* Retrieves the menu items for the container.
|
|
1428
|
-
*
|
|
1429
|
-
* @private
|
|
1430
|
-
* @returns {MenuItem[]} An array of MenuItem instances.
|
|
1431
|
-
*/
|
|
1432
|
-
public getContainerMenuItems(): MenuItem[] {
|
|
1433
|
-
if (!this._containerMenuItems) {
|
|
1434
|
-
const containerRefreshMenuItem = this._createRefreshMenuItem(cardsContainerMenuItems.REFRESH, "containerCardsRefresh");
|
|
1435
|
-
const containerEditCardsMenuItem = this._createEditCardsMenuItem(cardsContainerMenuItems.EDIT_CARDS, "containerManageCards");
|
|
1436
|
-
const containerShowMoreMenuItem = createShowMoreMenuItem(this, cardsContainerMenuItems.SHOW_MORE, "containerCardsShowMore");
|
|
1437
|
-
this._controlMap.set(`${this.getId()}-${cardsContainerMenuItems.SHOW_MORE}`, containerShowMoreMenuItem);
|
|
1438
|
-
this._containerMenuItems = [containerRefreshMenuItem, containerEditCardsMenuItem, containerShowMoreMenuItem];
|
|
1439
|
-
}
|
|
1440
|
-
return this._containerMenuItems;
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
/**
|
|
1444
|
-
* Retrieves the action buttons for the container.
|
|
1445
|
-
*
|
|
1446
|
-
* @private
|
|
1447
|
-
* @returns {Button[]} An array of Button instances.
|
|
1448
|
-
*/
|
|
1449
|
-
public getContainerActionButtons(): Button[] {
|
|
1450
|
-
if (!this._containerActionButtons) {
|
|
1451
|
-
this._containerActionButtons = [];
|
|
1452
|
-
const actionButton = createShowMoreActionButton(this, cardsContainerActionButtons.SHOW_MORE, "containerCardsShowMore");
|
|
1453
|
-
if (actionButton) {
|
|
1454
|
-
this._controlMap.set(`${this.getId()}-${cardsContainerActionButtons.SHOW_MORE}`, actionButton);
|
|
1455
|
-
this._containerActionButtons.push(actionButton);
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
return this._containerActionButtons;
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
1473
|
/**
|
|
1463
1474
|
* Retrieves the insights container.
|
|
1464
1475
|
*
|
|
1465
1476
|
* @private
|
|
1466
|
-
* @returns {
|
|
1477
|
+
* @returns {CardsContainer} - The cards container.
|
|
1467
1478
|
*/
|
|
1468
|
-
private
|
|
1469
|
-
if (!this.
|
|
1470
|
-
this.
|
|
1479
|
+
private _getCardsContainer(): CardsContainer {
|
|
1480
|
+
if (!this.cardsContainer) {
|
|
1481
|
+
this.cardsContainer = this.getParent() as CardsContainer;
|
|
1471
1482
|
}
|
|
1472
|
-
return this.
|
|
1483
|
+
return this.cardsContainer;
|
|
1473
1484
|
}
|
|
1474
1485
|
|
|
1475
1486
|
/**
|
|
@@ -1517,21 +1528,6 @@ export default class CardsPanel extends BasePanel {
|
|
|
1517
1528
|
return menuItem;
|
|
1518
1529
|
}
|
|
1519
1530
|
|
|
1520
|
-
/**
|
|
1521
|
-
* Toggles the visibility of the header actions.
|
|
1522
|
-
*
|
|
1523
|
-
* @param {boolean} bShow - Whether to show or hide the header actions.
|
|
1524
|
-
* @private
|
|
1525
|
-
*/
|
|
1526
|
-
private _toggleHeaderActions(bShow: boolean) {
|
|
1527
|
-
(this.getAggregation("menuItems") as MenuItem[])?.forEach((menuItem) => {
|
|
1528
|
-
this._getInsightsContainer()?.toggleMenuListItem(menuItem, bShow);
|
|
1529
|
-
});
|
|
1530
|
-
(this.getAggregation("actionButtons") as Button[])?.forEach((actionButton) =>
|
|
1531
|
-
this._getInsightsContainer()?.toggleActionButton(actionButton, bShow)
|
|
1532
|
-
);
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
1531
|
/**
|
|
1536
1532
|
* Retrieves the card container based on the device type.
|
|
1537
1533
|
*
|
|
@@ -1539,24 +1535,11 @@ export default class CardsPanel extends BasePanel {
|
|
|
1539
1535
|
* @returns {GridContainer | HeaderContainer} - The card container.
|
|
1540
1536
|
*
|
|
1541
1537
|
*/
|
|
1542
|
-
private
|
|
1538
|
+
private _getCardWrapperContainer() {
|
|
1543
1539
|
if (this.getDeviceType() === DeviceType.Mobile) {
|
|
1544
1540
|
return this.cardsMobileContainer;
|
|
1545
1541
|
}
|
|
1546
|
-
return this.
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
/**
|
|
1550
|
-
* Sorts the menu items based on the provided order.
|
|
1551
|
-
*
|
|
1552
|
-
* @private
|
|
1553
|
-
* @param {string[]} menuItems - The order of the menu items.
|
|
1554
|
-
*/
|
|
1555
|
-
private _sortMenuItems(menuItems: string[]) {
|
|
1556
|
-
const panelMenuItems = this.getAggregation("menuItems") as MenuItem[];
|
|
1557
|
-
let sortedMenuItems = sortMenuItems(menuItems, panelMenuItems);
|
|
1558
|
-
this.removeAllAggregation("menuItems");
|
|
1559
|
-
sortedMenuItems?.forEach((menuItem) => this.addAggregation("menuItems", menuItem));
|
|
1542
|
+
return this.cardsWrapperContainer;
|
|
1560
1543
|
}
|
|
1561
1544
|
|
|
1562
1545
|
/**
|
|
@@ -1583,4 +1566,32 @@ export default class CardsPanel extends BasePanel {
|
|
|
1583
1566
|
runtimeHostCreated = false;
|
|
1584
1567
|
(this.getAggregation("host") as Host)?.destroy();
|
|
1585
1568
|
}
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Initializes the CardHelper service promise.
|
|
1572
|
+
*
|
|
1573
|
+
* @private
|
|
1574
|
+
* @returns {Promise<ICardHelperInstance>} - card helper service.
|
|
1575
|
+
*/
|
|
1576
|
+
private getCardHelperService(): Promise<ICardHelperInstance> {
|
|
1577
|
+
if (this.cardHelper === null) {
|
|
1578
|
+
this.cardHelper = (CardHelper as ICardHelper).getServiceAsync();
|
|
1579
|
+
}
|
|
1580
|
+
return this.cardHelper;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Checks if insights service is enabled.
|
|
1585
|
+
*
|
|
1586
|
+
* @private
|
|
1587
|
+
* @returns {Promise<boolean>} - true if insights service is enabled else false.
|
|
1588
|
+
*/
|
|
1589
|
+
public async isInsightsEnabled(): Promise<boolean> {
|
|
1590
|
+
try {
|
|
1591
|
+
return (await this.getCardHelperService()) !== null;
|
|
1592
|
+
} catch (error) {
|
|
1593
|
+
Log.error(error instanceof Error ? error.message : String(error));
|
|
1594
|
+
return false;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1586
1597
|
}
|