@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyUserLayoutSettingsPanel.js","names":["sap","ui","define","Column","ColumnListItem","HBox","ObjectIdentifier","Table","ToggleButton","CustomData","Element","Icon","__BaseSettingsPanel","___flexibility_Layoutflexibility","___utils_Constants","___utils_DataFormatUtils","___utils_DragDropUtils","_interopRequireDefault","obj","__esModule","default","BaseSettingsPanel","CHANGE_TYPES","KEYUSER_SETTINGS_PANELS_KEYS","recycleId","focusDraggedItem","KeyUserLayoutSettingsPanel","extend","metadata","library","init","_init","BaseSettingsPanel.prototype.init.call","setProperty","LAYOUT","_i18nBundle","getText","addAggregation","getContent","attachPanelNavigated","layout","_getPanel","resetSections","loadSections","_getContent","layoutTable","getId","width","items","columns","addStyleClass","addDragDropConfigTo","event","onDropLayoutSettings","_loadSections","_this","Promise","resolve","_calculateSectionsState","then","orderedSections","getSections","keyUserSettingsDialog","getParent","removeAllItems","forEach","section","index","addItem","type","hasDetailsPage","completeId","cells","alignItems","src","justifyContent","title","text","tooltip","visible","icon","enabled","blocked","press","createShowHideChangeFile","pressed","ariaLabelledBy","navigateToPage","getDetailsPage","customData","key","value","e","reject","_onDropLayoutSettings","wrapper","wrapperId","dragItem","getParameter","draggedControl","dragItemIndex","indexOfItem","dropItem","droppedControl","dropItemIndex","sectionOrder","dragObject","data","dropObject","actualDragItemIndex","_getActualIndex","actualDropItemIndex","_rearrangeLayoutElements","splice","setSections","addKeyUserChanges","selectorControl","changeSpecificData","changeType","MOVE","content","movedElements","id","sourceIndex","targetIndex","source","aggregation","target","_allLayoutElements","getItems","isLayoutExpanded","getProperty","expandedElementConfig","_getCurrentExpandedElement","some","element","targetContainer","findIndex","container","_createShowHideChangeFile","oControlEvent","isCheckBoxSelected","keyUserChanges","getKeyUserChanges","UNHIDE","HIDE","oExistingChange","find","oChange","getElementById"],"sources":["KeyUserLayoutSettingsPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Column from \"sap/m/Column\";\nimport ColumnListItem from \"sap/m/ColumnListItem\";\nimport HBox from \"sap/m/HBox\";\nimport ObjectIdentifier from \"sap/m/ObjectIdentifier\";\nimport Table from \"sap/m/Table\";\nimport ToggleButton, { ToggleButton$PressEvent } from \"sap/m/ToggleButton\";\nimport Control from \"sap/ui/core/Control\";\nimport CustomData from \"sap/ui/core/CustomData\";\nimport { DropInfo$DropEvent } from \"sap/ui/core/dnd/DropInfo\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport Element from \"sap/ui/core/Element\";\nimport Icon from \"sap/ui/core/Icon\";\nimport BaseContainer from \"./BaseContainer\";\nimport BaseSettingsPanel from \"./BaseSettingsPanel\";\nimport { CHANGE_TYPES } from \"./flexibility/Layout.flexibility\";\nimport { IDragEvent, IElement } from \"./interface/LayoutInterface\";\nimport KeyUserSettingsDialog from \"./KeyUserSettingsDialog\";\nimport Layout from \"./Layout\";\nimport { KEYUSER_SETTINGS_PANELS_KEYS } from \"./utils/Constants\";\nimport { recycleId } from \"./utils/DataFormatUtils\";\nimport { focusDraggedItem } from \"./utils/DragDropUtils\";\n\n/**\n *\n * Class for Layout Settings Panel for KeyUser Settings Dialog.\n *\n * @extends BaseSettingsPanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n * @private\n *\n * @alias sap.cux.home.KeyUserLayoutSettingsPanel\n */\nexport default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\"\n\t};\n\n\tprivate layoutTable!: Table;\n\tprivate orderedSections!: IElement[];\n\tprivate _allLayoutElements!: BaseContainer[];\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @public\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tsuper.init();\n\n\t\t//setup panel\n\t\tthis.setProperty(\"key\", KEYUSER_SETTINGS_PANELS_KEYS.LAYOUT);\n\t\tthis.setProperty(\"title\", this._i18nBundle.getText(\"editModeTitle\"));\n\n\t\t// //setup layout content\n\t\tthis.addAggregation(\"content\", this.getContent());\n\n\t\t//fired every time on panel navigation\n\t\tthis.attachPanelNavigated(() => {\n\t\t\tconst layout = this._getPanel() as Layout;\n\t\t\tlayout.resetSections();\n\t\t\tvoid this.loadSections();\n\t\t});\n\t}\n\n\t/**\n\t * Returns the content for the Layout Settings Panel.\n\t *\n\t * @private\n\t * @returns {VBox} The control containing the Layout Settings Panel content.\n\t */\n\tprivate getContent(): Table {\n\t\tif (!this.layoutTable) {\n\t\t\tthis.layoutTable = new Table(this.getId() + \"--idLayoutSettingsTable\", {\n\t\t\t\twidth: \"calc(100% - 2rem)\",\n\t\t\t\titems: [],\n\t\t\t\tcolumns: [\n\t\t\t\t\tnew Column(this.getId() + \"--idSectionTitleColumn\", {\n\t\t\t\t\t\twidth: \"100%\"\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t}).addStyleClass(\"layoutSettingsTable sapContrastPlus sapUiSmallMarginBegin\");\n\t\t\tthis.addDragDropConfigTo(this.layoutTable, (event) => this.onDropLayoutSettings(event));\n\t\t}\n\t\treturn this.layoutTable;\n\t}\n\n\t/**\n\t * Method to load the sections\n\t *\n\t * @private\n\t */\n\tprivate async loadSections(): Promise<void> {\n\t\tconst layout = this._getPanel() as Layout;\n\t\tawait layout._calculateSectionsState();\n\t\tthis.orderedSections = layout.getSections() || [];\n\n\t\tconst keyUserSettingsDialog = this.getParent() as KeyUserSettingsDialog;\n\n\t\tthis.layoutTable.removeAllItems();\n\t\tthis.orderedSections.forEach((section: IElement, index: number) => {\n\t\t\tthis.layoutTable\n\t\t\t\t.addItem(\n\t\t\t\t\tnew ColumnListItem(recycleId(`${this.getId()}--layoutSettingsColumnListItem--${index}`), {\n\t\t\t\t\t\ttype: (this.getParent() as KeyUserSettingsDialog)?.hasDetailsPage?.(section.completeId) ? \"Navigation\" : \"Inactive\",\n\t\t\t\t\t\tcells: [\n\t\t\t\t\t\t\tnew HBox(recycleId(`${this.getId()}--layoutColumnListHBox--${index}`), {\n\t\t\t\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\tnew Icon(recycleId(`${this.getId()}--layoutColumnListItemIcon--${index}`), {\n\t\t\t\t\t\t\t\t\t\tsrc: \"sap-icon://vertical-grip\"\n\t\t\t\t\t\t\t\t\t}).addStyleClass(\"sapUiSmallMarginEnd\"),\n\t\t\t\t\t\t\t\t\tnew HBox(recycleId(`${this.getId()}--layoutColumnListItemHBox--${index}`), {\n\t\t\t\t\t\t\t\t\t\tjustifyContent: \"SpaceBetween\",\n\t\t\t\t\t\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t\t\tnew ObjectIdentifier(recycleId(`${this.getId()}--layoutColumnListObjectIdentifier--${index}`), {\n\t\t\t\t\t\t\t\t\t\t\t\ttitle: section.title,\n\t\t\t\t\t\t\t\t\t\t\t\ttext: section.text,\n\t\t\t\t\t\t\t\t\t\t\t\ttooltip: section.title\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tnew ToggleButton(recycleId(`${this.getId()}--layoutColumnListToggleButton--${index}`), {\n\t\t\t\t\t\t\t\t\t\t\t\ttooltip: section.visible\n\t\t\t\t\t\t\t\t\t\t\t\t\t? this._i18nBundle.getText(\"hideBtn\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t: this._i18nBundle.getText(\"showBtn\"),\n\t\t\t\t\t\t\t\t\t\t\t\ticon: \"sap-icon://show\",\n\t\t\t\t\t\t\t\t\t\t\t\ttype: \"Emphasized\",\n\t\t\t\t\t\t\t\t\t\t\t\tenabled: !section.blocked,\n\t\t\t\t\t\t\t\t\t\t\t\tpress: (event) => this.createShowHideChangeFile(event, section),\n\t\t\t\t\t\t\t\t\t\t\t\tpressed: !section.visible,\n\t\t\t\t\t\t\t\t\t\t\t\tariaLabelledBy: [\"selectLabel\"]\n\t\t\t\t\t\t\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginEnd sapUiTinyMarginTop\")\n\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginBegin\")\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\twidth: \"100%\"\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t],\n\t\t\t\t\t\tpress: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),\n\t\t\t\t\t\tcustomData: new CustomData(recycleId(`${this.getId()}--custom-data--${index}`), {\n\t\t\t\t\t\t\tkey: \"sectionObject\",\n\t\t\t\t\t\t\tvalue: section\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t\t.addStyleClass(\"insightsListItem insightsListMargin\");\n\t\t});\n\t}\n\n\t/**\n\t * Function to execute drag and drop among sections\n\t *\n\t * @private\n\t */\n\tprivate onDropLayoutSettings(event: DropInfo$DropEvent | IDragEvent) {\n\t\tconst wrapper = this._getPanel() as Layout | Control;\n\t\tconst wrapperId = wrapper.getId();\n\t\tconst dragItem = ((event as DropInfo$DropEvent).getParameter?.(\"draggedControl\") ||\n\t\t\t(event as IDragEvent).draggedControl) as ColumnListItem;\n\t\tconst dragItemIndex = (dragItem.getParent() as Table)?.indexOfItem(dragItem);\n\t\tconst dropItem = ((event as DropInfo$DropEvent).getParameter?.(\"droppedControl\") ||\n\t\t\t(event as IDragEvent).droppedControl) as ColumnListItem;\n\t\tconst dropItemIndex = (dragItem.getParent() as Table)?.indexOfItem(dropItem);\n\n\t\tif (dragItemIndex !== dropItemIndex) {\n\t\t\tconst sectionOrder = this.orderedSections;\n\t\t\tconst dragObject = dragItem.data(\"sectionObject\") as IElement;\n\t\t\tconst dropObject = dropItem.data(\"sectionObject\") as IElement;\n\n\t\t\tconst actualDragItemIndex = this._getActualIndex(dragObject.completeId);\n\t\t\tconst actualDropItemIndex = this._getActualIndex(dropObject.completeId);\n\t\t\tthis._rearrangeLayoutElements(actualDragItemIndex, actualDropItemIndex);\n\n\t\t\tsectionOrder.splice(dragItemIndex, 1);\n\t\t\tsectionOrder.splice(dropItemIndex, 0, dragObject);\n\t\t\t(wrapper as Layout).setSections(sectionOrder);\n\n\t\t\tthis.addKeyUserChanges({\n\t\t\t\tselectorControl: wrapper as Control,\n\t\t\t\tchangeSpecificData: {\n\t\t\t\t\tchangeType: CHANGE_TYPES.MOVE,\n\t\t\t\t\tcontent: {\n\t\t\t\t\t\tmovedElements: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: dragObject.completeId,\n\t\t\t\t\t\t\t\tsourceIndex: actualDragItemIndex,\n\t\t\t\t\t\t\t\ttargetIndex: actualDropItemIndex\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\tsource: {\n\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttarget: {\n\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tvoid this.loadSections();\n\t\t}\n\t\tfocusDraggedItem(this.layoutTable, dropItemIndex);\n\t}\n\n\t/**\n\t * Retrieves the actual index of a layout element by its ID.\n\t *\n\t * @private\n\t * @param {string} id - The ID of the layout element to find.\n\t * @returns {number} The index of the layout element.\n\t */\n\tprivate _getActualIndex(id: string): number {\n\t\tconst layout = this._getPanel() as Layout;\n\t\tthis._allLayoutElements = this._allLayoutElements || [...layout.getItems()];\n\t\tconst isLayoutExpanded = layout.getProperty(\"expanded\") as boolean;\n\t\tconst expandedElementConfig = layout._getCurrentExpandedElement();\n\n\t\tif (isLayoutExpanded && expandedElementConfig) {\n\t\t\t// add the expanded element if it isn't already in the list\n\t\t\tif (!this._allLayoutElements.some((element) => element.getId() === expandedElementConfig.targetContainer.getId())) {\n\t\t\t\tthis._allLayoutElements.splice(\n\t\t\t\t\tlayout.indexOfItem(expandedElementConfig.targetContainer),\n\t\t\t\t\t0,\n\t\t\t\t\texpandedElementConfig.targetContainer\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn this._allLayoutElements.findIndex((element) => element.getId() === id);\n\t}\n\n\t/**\n\t * Rearranges the layout elements by moving an element from the source index to the target index.\n\t *\n\t * @private\n\t * @param {number} sourceIndex - The index of the element to move.\n\t * @param {number} targetIndex - The index to move the element to.\n\t */\n\tprivate _rearrangeLayoutElements(sourceIndex: number, targetIndex: number): void {\n\t\tconst container = this._allLayoutElements.splice(sourceIndex, 1)[0];\n\t\tthis._allLayoutElements.splice(targetIndex, 0, container);\n\t}\n\n\t/**\n\t * Method to set visibility of the container sections\n\t * Toggle button pressed event handler\n\t *\n\t * @private\n\t */\n\tprivate createShowHideChangeFile(oControlEvent: ToggleButton$PressEvent, section: IElement): void {\n\t\tconst isCheckBoxSelected: boolean = !oControlEvent.getParameter(\"pressed\");\n\t\tconst keyUserChanges = this.getKeyUserChanges();\n\t\tconst changeType = isCheckBoxSelected ? CHANGE_TYPES.UNHIDE : CHANGE_TYPES.HIDE;\n\t\tconst oExistingChange = keyUserChanges.find((oChange) => {\n\t\t\treturn oChange.selectorControl.getId() === section.completeId;\n\t\t});\n\n\t\t//Check if the change already exists\n\t\tif (oExistingChange) {\n\t\t\toExistingChange.changeSpecificData.changeType = changeType;\n\t\t} else {\n\t\t\tthis.addKeyUserChanges({\n\t\t\t\tselectorControl: Element.getElementById(section.completeId) as Control,\n\t\t\t\tchangeSpecificData: {\n\t\t\t\t\tchangeType\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,2UAAAC,MAAA,EAAAC,cAAA,EAAAC,IAAA,EAAAC,gBAAA,EAAAC,KAAA,EAAAC,YAAA,EAAAC,UAAA,EAAAC,OAAA,EAAAC,IAAA,EAAAC,mBAAA,EAAAC,gCAAA,EAAAC,kBAAA,EAAAC,wBAAA,EAAAC,sBAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAkBOG,iBAAiB,GAAAJ,sBAAA,CAAAL,mBAAA;EAAA,MACfU,YAAY,GAAAT,gCAAA;EAAA,MAIZU,4BAA4B,GAAAT,kBAAA;EAAA,MAC5BU,SAAS,GAAAT,wBAAA;EAAA,MACTU,gBAAgB,GAAAT,sBAAA;EAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAZA,MAaqBU,0BAA0B,GAASL,iBAAiB,CAAAM,MAAA;IACxDC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE;IACV,CAAC;IAMD;AACD;AACA;AACA;AACA;AACA;IACQC,IAAI,WAAAC,MAAA,EAAS;MACnBC,qCAAA;;MAEA;MACA,IAAI,CAACC,WAAW,CAAC,KAAK,EAAEV,4BAA4B,CAACW,MAAM,CAAC;MAC5D,IAAI,CAACD,WAAW,CAAC,OAAO,EAAE,IAAI,CAACE,WAAW,CAACC,OAAO,CAAC,eAAe,CAAC,CAAC;;MAEpE;MACA,IAAI,CAACC,cAAc,CAAC,SAAS,EAAE,IAAI,CAACC,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AAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"KeyUserLayoutSettingsPanel.js","names":["sap","ui","define","Column","ColumnListItem","HBox","ObjectIdentifier","Table","ToggleButton","VBox","CustomData","Element","Icon","__BaseContainer","__BaseSettingsPanel","___flexibility_Layoutflexibility","__NoDataContainer","___utils_Constants","___utils_DataFormatUtils","___utils_DragDropUtils","_interopRequireDefault","obj","__esModule","default","BaseContainer","BaseSettingsPanel","CHANGE_TYPES","NoDataContainer","KEYUSER_SETTINGS_PANELS_KEYS","recycleId","focusDraggedItem","KeyUserLayoutSettingsPanel","extend","metadata","library","init","_init","BaseSettingsPanel.prototype.init.call","setProperty","LAYOUT","_i18nBundle","getText","addAggregation","getContent","attachPanelNavigated","layout","_getPanel","resetSections","loadSections","_getContent","layoutTable","getId","width","items","columns","addStyleClass","addDragDropConfigTo","event","onDropLayoutSettings","_loadSections","_this","Promise","resolve","_calculateSectionsState","then","orderedSections","getSections","reduce","accumulator","section","isComposite","children","push","createEmptyCompositeItem","completeId","sContainerType","blocked","visible","title","text","compositeId","compositeMap","forEach","container","getElementById","getProperty","groupTitle","getCustomSettings","map","compositeItem","addToCompositeItem","filter","length","removeAllItems","index","addItem","getLayoutListItem","e","reject","_getLayoutListItem","keyUserSettingsDialog","getParent","getCompositeLayoutListItem","type","hasDetailsPage","cells","alignItems","src","justifyContent","tooltip","icon","enabled","press","createShowHideChangeFile","pressed","ariaLabelledBy","navigateToPage","getDetailsPage","customData","key","value","_getCompositeLayoutListItem","childBoxes","child","childIndex","_addToCompositeItem","compositeTitle","_onDropLayoutSettings","wrapper","wrapperId","dragItem","getParameter","draggedControl","dragItemIndex","indexOfItem","dropItem","droppedControl","dropItemIndex","sectionOrder","dragObject","data","dropObject","actualDragItemIndex","_getActualIndex","actualDropItemIndex","_rearrangeLayoutElements","splice","setSections","noDataContainerIndex","getItems","noDataContainer","i","item","finalTargetIndex","elementList","findIndex","element","compositeChildren","addKeyUserChanges","selectorControl","changeSpecificData","changeType","MOVE","content","movedElements","id","sourceIndex","targetIndex","source","aggregation","target","compositeChild","_allLayoutElements","isLayoutExpanded","expandedElementConfig","_getCurrentExpandedElement","some","targetContainer","_createShowHideChangeFile","oControlEvent","isCheckBoxSelected","selectedCompleteId","keyUserChanges","getKeyUserChanges","wrapperItem","UNHIDE","HIDE","oExistingChange","find","oChange","undefined"],"sources":["KeyUserLayoutSettingsPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2026 SAP SE. All rights reserved\n */\n\nimport Column from \"sap/m/Column\";\nimport ColumnListItem from \"sap/m/ColumnListItem\";\nimport HBox from \"sap/m/HBox\";\nimport ObjectIdentifier from \"sap/m/ObjectIdentifier\";\nimport Table from \"sap/m/Table\";\nimport ToggleButton, { ToggleButton$PressEvent } from \"sap/m/ToggleButton\";\nimport VBox from \"sap/m/VBox\";\nimport CustomData from \"sap/ui/core/CustomData\";\nimport { DropInfo$DropEvent } from \"sap/ui/core/dnd/DropInfo\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport Element from \"sap/ui/core/Element\";\nimport Icon from \"sap/ui/core/Icon\";\nimport BaseContainer from \"./BaseContainer\";\nimport BaseSettingsPanel from \"./BaseSettingsPanel\";\nimport { CHANGE_TYPES } from \"./flexibility/Layout.flexibility\";\nimport { IDragEvent, IElement } from \"./interface/LayoutInterface\";\nimport KeyUserSettingsDialog from \"./KeyUserSettingsDialog\";\nimport Layout from \"./Layout\";\nimport NoDataContainer from \"./NoDataContainer\";\nimport { KEYUSER_SETTINGS_PANELS_KEYS } from \"./utils/Constants\";\nimport { recycleId } from \"./utils/DataFormatUtils\";\nimport { focusDraggedItem } from \"./utils/DragDropUtils\";\n\n/**\n *\n * Class for Layout Settings Panel for KeyUser Settings Dialog.\n *\n * @extends BaseSettingsPanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n * @private\n *\n * @alias sap.cux.home.KeyUserLayoutSettingsPanel\n */\nexport default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\"\n\t};\n\n\tprivate layoutTable!: Table;\n\tprivate orderedSections!: IElement[];\n\tprivate _allLayoutElements!: BaseContainer[];\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @public\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tsuper.init();\n\n\t\t//setup panel\n\t\tthis.setProperty(\"key\", KEYUSER_SETTINGS_PANELS_KEYS.LAYOUT);\n\t\tthis.setProperty(\"title\", this._i18nBundle.getText(\"editModeTitle\"));\n\n\t\t// //setup layout content\n\t\tthis.addAggregation(\"content\", this.getContent());\n\n\t\t//fired every time on panel navigation\n\t\tthis.attachPanelNavigated(() => {\n\t\t\tconst layout = this._getPanel() as Layout;\n\t\t\tlayout.resetSections();\n\t\t\tvoid this.loadSections();\n\t\t});\n\t}\n\n\t/**\n\t * Returns the content for the Layout Settings Panel.\n\t *\n\t * @private\n\t * @returns {VBox} The control containing the Layout Settings Panel content.\n\t */\n\tprivate getContent(): Table {\n\t\tif (!this.layoutTable) {\n\t\t\tthis.layoutTable = new Table(this.getId() + \"--idLayoutSettingsTable\", {\n\t\t\t\twidth: \"calc(100% - 2rem)\",\n\t\t\t\titems: [],\n\t\t\t\tcolumns: [\n\t\t\t\t\tnew Column(this.getId() + \"--idSectionTitleColumn\", {\n\t\t\t\t\t\twidth: \"100%\"\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t}).addStyleClass(\"layoutSettingsTable sapContrastPlus sapUiSmallMarginBegin\");\n\t\t\tthis.addDragDropConfigTo(this.layoutTable, (event) => this.onDropLayoutSettings(event));\n\t\t}\n\t\treturn this.layoutTable;\n\t}\n\n\t/**\n\t * Method to load the sections\n\t *\n\t * @private\n\t */\n\tprivate async loadSections(): Promise<void> {\n\t\tconst layout = this._getPanel() as Layout;\n\t\tawait layout._calculateSectionsState();\n\t\tthis.orderedSections = layout.getSections() || [];\n\t\t//loop through this._orderedSections and take out the children items from composite items and add them to same list\n\t\tthis.orderedSections = this.orderedSections.reduce((accumulator, section) => {\n\t\t\tif (section.isComposite && section.children) {\n\t\t\t\taccumulator.push(...section.children);\n\t\t\t} else {\n\t\t\t\taccumulator.push(section);\n\t\t\t}\n\t\t\treturn accumulator;\n\t\t}, [] as IElement[]);\n\n\t\t// create composite list item\n\t\tconst createEmptyCompositeItem = (): IElement => ({\n\t\t\tcompleteId: \"\",\n\t\t\tsContainerType: \"\",\n\t\t\tblocked: false,\n\t\t\tvisible: false,\n\t\t\ttitle: \"\",\n\t\t\ttext: \"\",\n\t\t\tisComposite: false,\n\t\t\tcompositeId: null,\n\t\t\tchildren: []\n\t\t});\n\n\t\tconst compositeMap: { [key: string]: IElement[] } = {};\n\n\t\tthis.orderedSections.forEach((section) => {\n\t\t\tconst container = Element.getElementById(section.completeId) as BaseContainer | null;\n\n\t\t\tif (container instanceof BaseContainer) {\n\t\t\t\tconst compositeId = container.getProperty(\"compositeId\") as string;\n\t\t\t\tif (compositeId) {\n\t\t\t\t\tif (!compositeMap[compositeId]) {\n\t\t\t\t\t\tcompositeMap[compositeId] = [];\n\t\t\t\t\t}\n\t\t\t\t\tsection.compositeId = compositeId;\n\t\t\t\t\tsection.groupTitle = container.getCustomSettings().groupTitle || \"\";\n\t\t\t\t\tcompositeMap[compositeId].push(section);\n\t\t\t\t} else {\n\t\t\t\t\tsection.compositeId = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// map through this.orderedSections and replace items with compositeId with a single composite item containing its children\n\t\tthis.orderedSections = this.orderedSections.map((section) => {\n\t\t\tif (section.compositeId && compositeMap[section.compositeId]) {\n\t\t\t\tconst compositeItem = createEmptyCompositeItem();\n\t\t\t\tcompositeMap[section.compositeId].forEach((section) => {\n\t\t\t\t\tthis.addToCompositeItem(section, compositeItem, section.groupTitle as string);\n\t\t\t\t});\n\t\t\t\tdelete compositeMap[section.compositeId];\n\t\t\t\treturn compositeItem;\n\t\t\t}\n\t\t\treturn section;\n\t\t});\n\t\t//filter this.orderedSections to remove items which has same composite item with no children\n\t\tthis.orderedSections = this.orderedSections.filter((section) => {\n\t\t\tif (section.compositeId) {\n\t\t\t\treturn section.children && section.children.length > 0;\n\t\t\t}\n\t\t\treturn true;\n\t\t});\n\n\t\tthis.layoutTable.removeAllItems();\n\t\tthis.orderedSections.forEach((section: IElement, index: number) => {\n\t\t\tthis.layoutTable.addItem(this.getLayoutListItem(section, index)).addStyleClass(\"insightsListItem insightsListMargin\");\n\t\t});\n\t}\n\n\tprivate getLayoutListItem(section: IElement, index: number): ColumnListItem {\n\t\tconst keyUserSettingsDialog = this.getParent() as KeyUserSettingsDialog;\n\n\t\t//check the condition for news and pages as it is a composite container\n\t\tif (section?.isComposite === true) {\n\t\t\treturn this.getCompositeLayoutListItem(section, index);\n\t\t}\n\t\treturn new ColumnListItem(recycleId(`${this.getId()}--layoutSettingsColumnListItem--${index}`), {\n\t\t\ttype: (this.getParent() as KeyUserSettingsDialog)?.hasDetailsPage?.(section.completeId) ? \"Navigation\" : \"Inactive\",\n\t\t\tcells: [\n\t\t\t\tnew HBox(recycleId(`${this.getId()}--layoutColumnListHBox--${index}`), {\n\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\titems: [\n\t\t\t\t\t\tnew Icon(recycleId(`${this.getId()}--layoutColumnListItemIcon--${index}`), {\n\t\t\t\t\t\t\tsrc: \"sap-icon://vertical-grip\"\n\t\t\t\t\t\t}).addStyleClass(\"sapUiSmallMarginEnd\"),\n\t\t\t\t\t\tnew HBox(recycleId(`${this.getId()}--layoutColumnListItemHBox--${index}`), {\n\t\t\t\t\t\t\tjustifyContent: \"SpaceBetween\",\n\t\t\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\tnew ObjectIdentifier(recycleId(`${this.getId()}--layoutColumnListObjectIdentifier--${index}`), {\n\t\t\t\t\t\t\t\t\ttitle: section.title,\n\t\t\t\t\t\t\t\t\ttext: section.text,\n\t\t\t\t\t\t\t\t\ttooltip: section.title\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tnew ToggleButton(recycleId(`${this.getId()}--layoutColumnListToggleButton--${index}`), {\n\t\t\t\t\t\t\t\t\ttooltip: section.visible ? this._i18nBundle.getText(\"hideBtn\") : this._i18nBundle.getText(\"showBtn\"),\n\t\t\t\t\t\t\t\t\ticon: \"sap-icon://show\",\n\t\t\t\t\t\t\t\t\ttype: \"Emphasized\",\n\t\t\t\t\t\t\t\t\tenabled: !section.blocked,\n\t\t\t\t\t\t\t\t\tpress: (event) => this.createShowHideChangeFile(event, section),\n\t\t\t\t\t\t\t\t\tpressed: !section.visible,\n\t\t\t\t\t\t\t\t\tariaLabelledBy: [\"selectLabel\"]\n\t\t\t\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginEnd sapUiTinyMarginTop\")\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t})\n\t\t\t\t\t],\n\t\t\t\t\twidth: \"100%\"\n\t\t\t\t})\n\t\t\t],\n\t\t\tpress: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),\n\t\t\tcustomData: new CustomData(recycleId(`${this.getId()}--custom-data--${index}`), {\n\t\t\t\tkey: \"sectionObject\",\n\t\t\t\tvalue: section\n\t\t\t})\n\t\t});\n\t}\n\n\tprivate getCompositeLayoutListItem(section: IElement, index: number): ColumnListItem {\n\t\tconst keyUserSettingsDialog = this.getParent() as KeyUserSettingsDialog;\n\n\t\t// Create child HBoxes dynamically based on number of children\n\t\tconst childBoxes = (section.children || []).map((child, childIndex) => {\n\t\t\treturn new HBox(recycleId(`${this.getId()}--columnListItemChildHBox--${index}-${childIndex}`), {\n\t\t\t\tjustifyContent: \"SpaceBetween\",\n\t\t\t\talignItems: \"Center\",\n\t\t\t\titems: [\n\t\t\t\t\tnew ObjectIdentifier(recycleId(`${this.getId()}--childObjectIdentifier--${index}-${childIndex}`), {\n\t\t\t\t\t\ttitle: child.title,\n\t\t\t\t\t\ttext: child.text,\n\t\t\t\t\t\ttooltip: child.title\n\t\t\t\t\t}),\n\t\t\t\t\tnew ToggleButton(recycleId(`${this.getId()}--layoutSettingstoggleButtonChild--${index}-${childIndex}`), {\n\t\t\t\t\t\ttooltip: child.visible ? this._i18nBundle.getText(\"hideBtn\") : this._i18nBundle.getText(\"showBtn\"),\n\t\t\t\t\t\ticon: \"sap-icon://show\",\n\t\t\t\t\t\ttype: \"Emphasized\",\n\t\t\t\t\t\tenabled: !child.blocked,\n\t\t\t\t\t\tpress: (event) => this.createShowHideChangeFile(event, child),\n\t\t\t\t\t\tpressed: !child.visible,\n\t\t\t\t\t\tariaLabelledBy: [\"selectLabel\"]\n\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginEnd sapUiTinyMarginTop\")\n\t\t\t\t]\n\t\t\t}).addStyleClass(\"sapCuxCompositeItem\");\n\t\t});\n\n\t\t// Now build the main composite item layout\n\t\treturn new ColumnListItem(recycleId(`${this.getId()}--layoutSettingsColumnListItem--${index}`), {\n\t\t\ttype: keyUserSettingsDialog?.hasDetailsPage?.(section.completeId) ? \"Navigation\" : \"Inactive\",\n\t\t\tpress: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),\n\t\t\tcustomData: new CustomData(recycleId(`${this.getId()}--custom-data--${index}`), {\n\t\t\t\tkey: \"sectionObject\",\n\t\t\t\tvalue: section\n\t\t\t}),\n\t\t\tcells: [\n\t\t\t\tnew VBox(recycleId(`${this.getId()}--compositeVBox--${index}`), {\n\t\t\t\t\titems: [\n\t\t\t\t\t\t// Parent section header (with main title)\n\t\t\t\t\t\tnew HBox(recycleId(`${this.getId()}--columnListHBox--${index}`), {\n\t\t\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\tnew Icon(recycleId(`${this.getId()}--columnListIcon--${index}`), {\n\t\t\t\t\t\t\t\t\tsrc: \"sap-icon://vertical-grip\"\n\t\t\t\t\t\t\t\t}).addStyleClass(\"sapUiSmallMarginEnd\"),\n\t\t\t\t\t\t\t\tnew HBox(recycleId(`${this.getId()}--columnListItemHBox--${index}`), {\n\t\t\t\t\t\t\t\t\tjustifyContent: \"SpaceBetween\",\n\t\t\t\t\t\t\t\t\talignItems: \"Center\",\n\t\t\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t\tnew ObjectIdentifier(recycleId(`${this.getId()}--columnListObjectIdentifier--${index}`), {\n\t\t\t\t\t\t\t\t\t\t\ttitle: section.title,\n\t\t\t\t\t\t\t\t\t\t\ttext: section.text,\n\t\t\t\t\t\t\t\t\t\t\ttooltip: section.title\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\twidth: \"100%\"\n\t\t\t\t\t\t}).addStyleClass(\"sapUiTinyMarginTopBottom\"),\n\n\t\t\t\t\t\t// All dynamically created child boxes\n\t\t\t\t\t\t...childBoxes\n\t\t\t\t\t]\n\t\t\t\t})\n\t\t\t]\n\t\t}).addStyleClass(\"insightsListItem insightsListMargin\");\n\t}\n\n\tprivate addToCompositeItem(section: IElement, compositeItem: IElement, compositeTitle: string) {\n\t\tcompositeItem.isComposite = true;\n\t\tcompositeItem.title = compositeTitle;\n\n\t\tif (!compositeItem.completeId) {\n\t\t\tcompositeItem.completeId = section.completeId;\n\t\t}\n\t\t//Add compositeId\n\t\tcompositeItem.compositeId = section.compositeId;\n\n\t\tcompositeItem.children?.push({ ...section });\n\n\t\tcompositeItem.text = section.text;\n\t\tcompositeItem.blocked = section.blocked;\n\t\tcompositeItem.visible = section.visible;\n\t}\n\n\t/**\n\t * Function to execute drag and drop among sections\n\t *\n\t * @private\n\t */\n\tprivate onDropLayoutSettings(event: DropInfo$DropEvent | IDragEvent) {\n\t\tconst wrapper = this._getPanel() as Layout;\n\t\tconst wrapperId = wrapper.getId();\n\t\tconst dragItem = ((event as DropInfo$DropEvent).getParameter?.(\"draggedControl\") ||\n\t\t\t(event as IDragEvent).draggedControl) as ColumnListItem;\n\t\tconst dragItemIndex = (dragItem.getParent() as Table)?.indexOfItem(dragItem);\n\t\tconst dropItem = ((event as DropInfo$DropEvent).getParameter?.(\"droppedControl\") ||\n\t\t\t(event as IDragEvent).droppedControl) as ColumnListItem;\n\t\tconst dropItemIndex = (dragItem.getParent() as Table)?.indexOfItem(dropItem);\n\n\t\tif (dragItemIndex !== dropItemIndex) {\n\t\t\tconst sectionOrder = this.orderedSections;\n\t\t\tconst dragObject = dragItem.data(\"sectionObject\") as IElement;\n\t\t\tconst dropObject = dropItem.data(\"sectionObject\") as IElement;\n\n\t\t\tlet actualDragItemIndex = this._getActualIndex(dragObject.completeId);\n\t\t\tlet actualDropItemIndex = this._getActualIndex(dropObject.completeId);\n\t\t\tthis._rearrangeLayoutElements(actualDragItemIndex, actualDropItemIndex);\n\n\t\t\tsectionOrder.splice(dragItemIndex, 1);\n\t\t\tsectionOrder.splice(dropItemIndex, 0, dragObject);\n\t\t\twrapper.setSections(sectionOrder);\n\t\t\t//loop through the wrapper.getItems() and find the index and noData Container\n\t\t\tlet noDataContainerIndex = -1;\n\t\t\tconst items = wrapper.getItems();\n\t\t\tlet noDataContainer: NoDataContainer | null = null;\n\t\t\tfor (let i = 0; i < items.length; i++) {\n\t\t\t\tconst item = items[i];\n\t\t\t\tif (item instanceof NoDataContainer) {\n\t\t\t\t\tnoDataContainerIndex = i;\n\t\t\t\t\tnoDataContainer = item;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//now insert the noDataContainer back to its noDataContainerIndex in sectionOrder\n\t\t\tif (noDataContainer && noDataContainerIndex !== -1) {\n\t\t\t\tsectionOrder.splice(noDataContainerIndex, 0, noDataContainer as unknown as IElement);\n\t\t\t}\n\t\t\tlet finalTargetIndex = 0;\n\t\t\tconst elementList = this.orderedSections.reduce((accumulator, section) => {\n\t\t\t\tif (section.isComposite && section.children) {\n\t\t\t\t\taccumulator.push(...section.children);\n\t\t\t\t} else {\n\t\t\t\t\taccumulator.push(section);\n\t\t\t\t}\n\t\t\t\treturn accumulator;\n\t\t\t}, [] as IElement[]);\n\t\t\tfinalTargetIndex = elementList.findIndex((element) => element.completeId === dragObject.completeId);\n\t\t\t//find the composite child for this dragObject if it has a composite id\n\t\t\tconst compositeChildren = elementList.filter(\n\t\t\t\t(element) =>\n\t\t\t\t\tdragObject.compositeId && dragObject.compositeId === element.compositeId && element.completeId !== dragObject.completeId\n\t\t\t);\n\t\t\tif (noDataContainer && noDataContainerIndex !== -1) {\n\t\t\t\t//remove noDataContainer from sectionOrder to avoid the display of an empty item in myhome Settings dialog\n\t\t\t\tsectionOrder.splice(noDataContainerIndex, 1);\n\t\t\t}\n\t\t\tthis.addKeyUserChanges({\n\t\t\t\tselectorControl: wrapper,\n\t\t\t\tchangeSpecificData: {\n\t\t\t\t\tchangeType: CHANGE_TYPES.MOVE,\n\t\t\t\t\tcontent: {\n\t\t\t\t\t\tmovedElements: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: dragObject.completeId,\n\t\t\t\t\t\t\t\tsourceIndex: actualDragItemIndex,\n\t\t\t\t\t\t\t\ttargetIndex:\n\t\t\t\t\t\t\t\t\tdragItemIndex < dropItemIndex && dragObject.isComposite ? finalTargetIndex + 1 : finalTargetIndex\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\tsource: {\n\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttarget: {\n\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (compositeChildren.length > 0) {\n\t\t\t\tcompositeChildren.forEach((compositeChild) => {\n\t\t\t\t\tthis.addKeyUserChanges({\n\t\t\t\t\t\tselectorControl: wrapper,\n\t\t\t\t\t\tchangeSpecificData: {\n\t\t\t\t\t\t\tchangeType: CHANGE_TYPES.MOVE,\n\t\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\t\tmovedElements: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: compositeChild.completeId,\n\t\t\t\t\t\t\t\t\t\tsourceIndex: actualDragItemIndex,\n\t\t\t\t\t\t\t\t\t\ttargetIndex: finalTargetIndex + 1 // +1 as it will be after the main dragObject\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tsource: {\n\t\t\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttarget: {\n\t\t\t\t\t\t\t\t\tid: wrapperId,\n\t\t\t\t\t\t\t\t\taggregation: \"items\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tvoid this.loadSections();\n\t\t}\n\t\tfocusDraggedItem(this.layoutTable, dropItemIndex);\n\t}\n\n\t/**\n\t * Retrieves the actual index of a layout element by its ID.\n\t *\n\t * @private\n\t * @param {string} id - The ID of the layout element to find.\n\t * @returns {number} The index of the layout element.\n\t */\n\tprivate _getActualIndex(id: string): number {\n\t\tconst layout = this._getPanel() as Layout;\n\t\tthis._allLayoutElements = layout.getItems();\n\t\tconst isLayoutExpanded = layout.getProperty(\"expanded\") as boolean;\n\t\tconst expandedElementConfig = layout._getCurrentExpandedElement();\n\n\t\tif (isLayoutExpanded && expandedElementConfig) {\n\t\t\t// add the expanded element if it isn't already in the list\n\t\t\tif (!this._allLayoutElements.some((element) => element.getId() === expandedElementConfig.targetContainer.getId())) {\n\t\t\t\tthis._allLayoutElements.splice(\n\t\t\t\t\tlayout.indexOfItem(expandedElementConfig.targetContainer),\n\t\t\t\t\t0,\n\t\t\t\t\texpandedElementConfig.targetContainer\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn this._allLayoutElements.findIndex((element) => element.getId() === id);\n\t}\n\n\t/**\n\t * Rearranges the layout elements by moving an element from the source index to the target index.\n\t *\n\t * @private\n\t * @param {number} sourceIndex - The index of the element to move.\n\t * @param {number} targetIndex - The index to move the element to.\n\t */\n\tprivate _rearrangeLayoutElements(sourceIndex: number, targetIndex: number): void {\n\t\tconst container = this._allLayoutElements.splice(sourceIndex, 1)[0];\n\t\tthis._allLayoutElements.splice(targetIndex, 0, container);\n\t}\n\n\t/**\n\t * Method to set visibility of the container sections\n\t * Toggle button pressed event handler\n\t *\n\t * @private\n\t */\n\tprivate createShowHideChangeFile(oControlEvent: ToggleButton$PressEvent, section: IElement): void {\n\t\tconst isCheckBoxSelected: boolean = !oControlEvent.getParameter(\"pressed\");\n\t\tconst selectedCompleteId = section.completeId;\n\t\tconst keyUserChanges = this.getKeyUserChanges();\n\t\tconst wrapperItem = Element.getElementById(section.completeId) as BaseContainer;\n\t\tconst changeType = isCheckBoxSelected ? CHANGE_TYPES.UNHIDE : CHANGE_TYPES.HIDE;\n\t\tconst oExistingChange = keyUserChanges.find((oChange) => {\n\t\t\treturn oChange.selectorControl.getId() === section.completeId;\n\t\t});\n\n\t\t//Check if the change already exists\n\t\tif (oExistingChange) {\n\t\t\toExistingChange.changeSpecificData.changeType = changeType;\n\t\t} else {\n\t\t\tthis.addKeyUserChanges({\n\t\t\t\tselectorControl: Element.getElementById(section.completeId) as BaseContainer,\n\t\t\t\tchangeSpecificData: {\n\t\t\t\t\tchangeType: changeType,\n\t\t\t\t\tcontent: {\n\t\t\t\t\t\tcompositeId: wrapperItem.getProperty(\"compositeId\") as string\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t//update this.orderedSections\n\t\tthis.orderedSections.forEach((section) => {\n\t\t\t//now check if oWrapperItem has composite id and check if section has same composite id and composite id is not undefined\n\t\t\t// if yes, then loop through the children item and update its visibility\n\t\t\tif (section.compositeId === wrapperItem.getProperty(\"compositeId\") && section.compositeId !== undefined) {\n\t\t\t\tsection.children?.forEach((child) => {\n\t\t\t\t\tif (child.completeId === selectedCompleteId) {\n\t\t\t\t\t\tchild.visible = isCheckBoxSelected;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else if (section.completeId === selectedCompleteId) {\n\t\t\t\tsection.visible = isCheckBoxSelected;\n\t\t\t}\n\t\t});\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,iYAAAC,MAAA,EAAAC,cAAA,EAAAC,IAAA,EAAAC,gBAAA,EAAAC,KAAA,EAAAC,YAAA,EAAAC,IAAA,EAAAC,UAAA,EAAAC,OAAA,EAAAC,IAAA,EAAAC,eAAA,EAAAC,mBAAA,EAAAC,gCAAA,EAAAC,iBAAA,EAAAC,kBAAA,EAAAC,wBAAA,EAAAC,sBAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAiBOG,aAAa,GAAAJ,sBAAA,CAAAP,eAAA;EAAA,MACbY,iBAAiB,GAAAL,sBAAA,CAAAN,mBAAA;EAAA,MACfY,YAAY,GAAAX,gCAAA;EAAA,MAIdY,eAAe,GAAAP,sBAAA,CAAAJ,iBAAA;EAAA,MACbY,4BAA4B,GAAAX,kBAAA;EAAA,MAC5BY,SAAS,GAAAX,wBAAA;EAAA,MACTY,gBAAgB,GAAAX,sBAAA;EAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA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QACD,CAAC,CAAC;MACH;MACA;MACA,IAAI,CAACpB,eAAe,CAACiB,OAAO,CAAEb,OAAO,IAAK;QACzC;QACA;QACA,IAAIA,OAAO,CAACW,WAAW,KAAKwG,WAAW,CAACnG,WAAW,CAAC,aAAa,CAAC,IAAIhB,OAAO,CAACW,WAAW,KAAK8G,SAAS,EAAE;UACxGzH,OAAO,CAACE,QAAQ,EAAEW,OAAO,CAAEyC,KAAK,IAAK;YACpC,IAAIA,KAAK,CAACjD,UAAU,KAAK2G,kBAAkB,EAAE;cAC5C1D,KAAK,CAAC9C,OAAO,GAAGuG,kBAAkB;YACnC;UACD,CAAC,CAAC;QACH,CAAC,MAAM,IAAI/G,OAAO,CAACK,UAAU,KAAK2G,kBAAkB,EAAE;UACrDhH,OAAO,CAACQ,OAAO,GAAGuG,kBAAkB;QACrC;MACD,CAAC,CAAC;IACH;EAAC;EAAA,OApdmBrJ,0BAA0B;AAAA","ignoreList":[]}
|
|
@@ -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 Column from "sap/m/Column";
|
|
@@ -9,7 +9,7 @@ import HBox from "sap/m/HBox";
|
|
|
9
9
|
import ObjectIdentifier from "sap/m/ObjectIdentifier";
|
|
10
10
|
import Table from "sap/m/Table";
|
|
11
11
|
import ToggleButton, { ToggleButton$PressEvent } from "sap/m/ToggleButton";
|
|
12
|
-
import
|
|
12
|
+
import VBox from "sap/m/VBox";
|
|
13
13
|
import CustomData from "sap/ui/core/CustomData";
|
|
14
14
|
import { DropInfo$DropEvent } from "sap/ui/core/dnd/DropInfo";
|
|
15
15
|
import type { MetadataOptions } from "sap/ui/core/Element";
|
|
@@ -21,6 +21,7 @@ import { CHANGE_TYPES } from "./flexibility/Layout.flexibility";
|
|
|
21
21
|
import { IDragEvent, IElement } from "./interface/LayoutInterface";
|
|
22
22
|
import KeyUserSettingsDialog from "./KeyUserSettingsDialog";
|
|
23
23
|
import Layout from "./Layout";
|
|
24
|
+
import NoDataContainer from "./NoDataContainer";
|
|
24
25
|
import { KEYUSER_SETTINGS_PANELS_KEYS } from "./utils/Constants";
|
|
25
26
|
import { recycleId } from "./utils/DataFormatUtils";
|
|
26
27
|
import { focusDraggedItem } from "./utils/DragDropUtils";
|
|
@@ -102,58 +103,207 @@ export default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {
|
|
|
102
103
|
const layout = this._getPanel() as Layout;
|
|
103
104
|
await layout._calculateSectionsState();
|
|
104
105
|
this.orderedSections = layout.getSections() || [];
|
|
106
|
+
//loop through this._orderedSections and take out the children items from composite items and add them to same list
|
|
107
|
+
this.orderedSections = this.orderedSections.reduce((accumulator, section) => {
|
|
108
|
+
if (section.isComposite && section.children) {
|
|
109
|
+
accumulator.push(...section.children);
|
|
110
|
+
} else {
|
|
111
|
+
accumulator.push(section);
|
|
112
|
+
}
|
|
113
|
+
return accumulator;
|
|
114
|
+
}, [] as IElement[]);
|
|
105
115
|
|
|
106
|
-
|
|
116
|
+
// create composite list item
|
|
117
|
+
const createEmptyCompositeItem = (): IElement => ({
|
|
118
|
+
completeId: "",
|
|
119
|
+
sContainerType: "",
|
|
120
|
+
blocked: false,
|
|
121
|
+
visible: false,
|
|
122
|
+
title: "",
|
|
123
|
+
text: "",
|
|
124
|
+
isComposite: false,
|
|
125
|
+
compositeId: null,
|
|
126
|
+
children: []
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
const compositeMap: { [key: string]: IElement[] } = {};
|
|
130
|
+
|
|
131
|
+
this.orderedSections.forEach((section) => {
|
|
132
|
+
const container = Element.getElementById(section.completeId) as BaseContainer | null;
|
|
133
|
+
|
|
134
|
+
if (container instanceof BaseContainer) {
|
|
135
|
+
const compositeId = container.getProperty("compositeId") as string;
|
|
136
|
+
if (compositeId) {
|
|
137
|
+
if (!compositeMap[compositeId]) {
|
|
138
|
+
compositeMap[compositeId] = [];
|
|
139
|
+
}
|
|
140
|
+
section.compositeId = compositeId;
|
|
141
|
+
section.groupTitle = container.getCustomSettings().groupTitle || "";
|
|
142
|
+
compositeMap[compositeId].push(section);
|
|
143
|
+
} else {
|
|
144
|
+
section.compositeId = null;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
// map through this.orderedSections and replace items with compositeId with a single composite item containing its children
|
|
149
|
+
this.orderedSections = this.orderedSections.map((section) => {
|
|
150
|
+
if (section.compositeId && compositeMap[section.compositeId]) {
|
|
151
|
+
const compositeItem = createEmptyCompositeItem();
|
|
152
|
+
compositeMap[section.compositeId].forEach((section) => {
|
|
153
|
+
this.addToCompositeItem(section, compositeItem, section.groupTitle as string);
|
|
154
|
+
});
|
|
155
|
+
delete compositeMap[section.compositeId];
|
|
156
|
+
return compositeItem;
|
|
157
|
+
}
|
|
158
|
+
return section;
|
|
159
|
+
});
|
|
160
|
+
//filter this.orderedSections to remove items which has same composite item with no children
|
|
161
|
+
this.orderedSections = this.orderedSections.filter((section) => {
|
|
162
|
+
if (section.compositeId) {
|
|
163
|
+
return section.children && section.children.length > 0;
|
|
164
|
+
}
|
|
165
|
+
return true;
|
|
166
|
+
});
|
|
107
167
|
|
|
108
168
|
this.layoutTable.removeAllItems();
|
|
109
169
|
this.orderedSections.forEach((section: IElement, index: number) => {
|
|
110
|
-
this.layoutTable
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
key: "sectionObject",
|
|
151
|
-
value: section
|
|
170
|
+
this.layoutTable.addItem(this.getLayoutListItem(section, index)).addStyleClass("insightsListItem insightsListMargin");
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
private getLayoutListItem(section: IElement, index: number): ColumnListItem {
|
|
175
|
+
const keyUserSettingsDialog = this.getParent() as KeyUserSettingsDialog;
|
|
176
|
+
|
|
177
|
+
//check the condition for news and pages as it is a composite container
|
|
178
|
+
if (section?.isComposite === true) {
|
|
179
|
+
return this.getCompositeLayoutListItem(section, index);
|
|
180
|
+
}
|
|
181
|
+
return new ColumnListItem(recycleId(`${this.getId()}--layoutSettingsColumnListItem--${index}`), {
|
|
182
|
+
type: (this.getParent() as KeyUserSettingsDialog)?.hasDetailsPage?.(section.completeId) ? "Navigation" : "Inactive",
|
|
183
|
+
cells: [
|
|
184
|
+
new HBox(recycleId(`${this.getId()}--layoutColumnListHBox--${index}`), {
|
|
185
|
+
alignItems: "Center",
|
|
186
|
+
items: [
|
|
187
|
+
new Icon(recycleId(`${this.getId()}--layoutColumnListItemIcon--${index}`), {
|
|
188
|
+
src: "sap-icon://vertical-grip"
|
|
189
|
+
}).addStyleClass("sapUiSmallMarginEnd"),
|
|
190
|
+
new HBox(recycleId(`${this.getId()}--layoutColumnListItemHBox--${index}`), {
|
|
191
|
+
justifyContent: "SpaceBetween",
|
|
192
|
+
alignItems: "Center",
|
|
193
|
+
width: "100%",
|
|
194
|
+
items: [
|
|
195
|
+
new ObjectIdentifier(recycleId(`${this.getId()}--layoutColumnListObjectIdentifier--${index}`), {
|
|
196
|
+
title: section.title,
|
|
197
|
+
text: section.text,
|
|
198
|
+
tooltip: section.title
|
|
199
|
+
}),
|
|
200
|
+
new ToggleButton(recycleId(`${this.getId()}--layoutColumnListToggleButton--${index}`), {
|
|
201
|
+
tooltip: section.visible ? this._i18nBundle.getText("hideBtn") : this._i18nBundle.getText("showBtn"),
|
|
202
|
+
icon: "sap-icon://show",
|
|
203
|
+
type: "Emphasized",
|
|
204
|
+
enabled: !section.blocked,
|
|
205
|
+
press: (event) => this.createShowHideChangeFile(event, section),
|
|
206
|
+
pressed: !section.visible,
|
|
207
|
+
ariaLabelledBy: ["selectLabel"]
|
|
208
|
+
}).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")
|
|
209
|
+
]
|
|
152
210
|
})
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
211
|
+
],
|
|
212
|
+
width: "100%"
|
|
213
|
+
})
|
|
214
|
+
],
|
|
215
|
+
press: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),
|
|
216
|
+
customData: new CustomData(recycleId(`${this.getId()}--custom-data--${index}`), {
|
|
217
|
+
key: "sectionObject",
|
|
218
|
+
value: section
|
|
219
|
+
})
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
private getCompositeLayoutListItem(section: IElement, index: number): ColumnListItem {
|
|
224
|
+
const keyUserSettingsDialog = this.getParent() as KeyUserSettingsDialog;
|
|
225
|
+
|
|
226
|
+
// Create child HBoxes dynamically based on number of children
|
|
227
|
+
const childBoxes = (section.children || []).map((child, childIndex) => {
|
|
228
|
+
return new HBox(recycleId(`${this.getId()}--columnListItemChildHBox--${index}-${childIndex}`), {
|
|
229
|
+
justifyContent: "SpaceBetween",
|
|
230
|
+
alignItems: "Center",
|
|
231
|
+
items: [
|
|
232
|
+
new ObjectIdentifier(recycleId(`${this.getId()}--childObjectIdentifier--${index}-${childIndex}`), {
|
|
233
|
+
title: child.title,
|
|
234
|
+
text: child.text,
|
|
235
|
+
tooltip: child.title
|
|
236
|
+
}),
|
|
237
|
+
new ToggleButton(recycleId(`${this.getId()}--layoutSettingstoggleButtonChild--${index}-${childIndex}`), {
|
|
238
|
+
tooltip: child.visible ? this._i18nBundle.getText("hideBtn") : this._i18nBundle.getText("showBtn"),
|
|
239
|
+
icon: "sap-icon://show",
|
|
240
|
+
type: "Emphasized",
|
|
241
|
+
enabled: !child.blocked,
|
|
242
|
+
press: (event) => this.createShowHideChangeFile(event, child),
|
|
243
|
+
pressed: !child.visible,
|
|
244
|
+
ariaLabelledBy: ["selectLabel"]
|
|
245
|
+
}).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")
|
|
246
|
+
]
|
|
247
|
+
}).addStyleClass("sapCuxCompositeItem");
|
|
156
248
|
});
|
|
249
|
+
|
|
250
|
+
// Now build the main composite item layout
|
|
251
|
+
return new ColumnListItem(recycleId(`${this.getId()}--layoutSettingsColumnListItem--${index}`), {
|
|
252
|
+
type: keyUserSettingsDialog?.hasDetailsPage?.(section.completeId) ? "Navigation" : "Inactive",
|
|
253
|
+
press: () => keyUserSettingsDialog?.navigateToPage?.(keyUserSettingsDialog.getDetailsPage(section.completeId)),
|
|
254
|
+
customData: new CustomData(recycleId(`${this.getId()}--custom-data--${index}`), {
|
|
255
|
+
key: "sectionObject",
|
|
256
|
+
value: section
|
|
257
|
+
}),
|
|
258
|
+
cells: [
|
|
259
|
+
new VBox(recycleId(`${this.getId()}--compositeVBox--${index}`), {
|
|
260
|
+
items: [
|
|
261
|
+
// Parent section header (with main title)
|
|
262
|
+
new HBox(recycleId(`${this.getId()}--columnListHBox--${index}`), {
|
|
263
|
+
alignItems: "Center",
|
|
264
|
+
items: [
|
|
265
|
+
new Icon(recycleId(`${this.getId()}--columnListIcon--${index}`), {
|
|
266
|
+
src: "sap-icon://vertical-grip"
|
|
267
|
+
}).addStyleClass("sapUiSmallMarginEnd"),
|
|
268
|
+
new HBox(recycleId(`${this.getId()}--columnListItemHBox--${index}`), {
|
|
269
|
+
justifyContent: "SpaceBetween",
|
|
270
|
+
alignItems: "Center",
|
|
271
|
+
width: "100%",
|
|
272
|
+
items: [
|
|
273
|
+
new ObjectIdentifier(recycleId(`${this.getId()}--columnListObjectIdentifier--${index}`), {
|
|
274
|
+
title: section.title,
|
|
275
|
+
text: section.text,
|
|
276
|
+
tooltip: section.title
|
|
277
|
+
})
|
|
278
|
+
]
|
|
279
|
+
})
|
|
280
|
+
],
|
|
281
|
+
width: "100%"
|
|
282
|
+
}).addStyleClass("sapUiTinyMarginTopBottom"),
|
|
283
|
+
|
|
284
|
+
// All dynamically created child boxes
|
|
285
|
+
...childBoxes
|
|
286
|
+
]
|
|
287
|
+
})
|
|
288
|
+
]
|
|
289
|
+
}).addStyleClass("insightsListItem insightsListMargin");
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
private addToCompositeItem(section: IElement, compositeItem: IElement, compositeTitle: string) {
|
|
293
|
+
compositeItem.isComposite = true;
|
|
294
|
+
compositeItem.title = compositeTitle;
|
|
295
|
+
|
|
296
|
+
if (!compositeItem.completeId) {
|
|
297
|
+
compositeItem.completeId = section.completeId;
|
|
298
|
+
}
|
|
299
|
+
//Add compositeId
|
|
300
|
+
compositeItem.compositeId = section.compositeId;
|
|
301
|
+
|
|
302
|
+
compositeItem.children?.push({ ...section });
|
|
303
|
+
|
|
304
|
+
compositeItem.text = section.text;
|
|
305
|
+
compositeItem.blocked = section.blocked;
|
|
306
|
+
compositeItem.visible = section.visible;
|
|
157
307
|
}
|
|
158
308
|
|
|
159
309
|
/**
|
|
@@ -162,7 +312,7 @@ export default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {
|
|
|
162
312
|
* @private
|
|
163
313
|
*/
|
|
164
314
|
private onDropLayoutSettings(event: DropInfo$DropEvent | IDragEvent) {
|
|
165
|
-
const wrapper = this._getPanel() as Layout
|
|
315
|
+
const wrapper = this._getPanel() as Layout;
|
|
166
316
|
const wrapperId = wrapper.getId();
|
|
167
317
|
const dragItem = ((event as DropInfo$DropEvent).getParameter?.("draggedControl") ||
|
|
168
318
|
(event as IDragEvent).draggedControl) as ColumnListItem;
|
|
@@ -176,16 +326,49 @@ export default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {
|
|
|
176
326
|
const dragObject = dragItem.data("sectionObject") as IElement;
|
|
177
327
|
const dropObject = dropItem.data("sectionObject") as IElement;
|
|
178
328
|
|
|
179
|
-
|
|
180
|
-
|
|
329
|
+
let actualDragItemIndex = this._getActualIndex(dragObject.completeId);
|
|
330
|
+
let actualDropItemIndex = this._getActualIndex(dropObject.completeId);
|
|
181
331
|
this._rearrangeLayoutElements(actualDragItemIndex, actualDropItemIndex);
|
|
182
332
|
|
|
183
333
|
sectionOrder.splice(dragItemIndex, 1);
|
|
184
334
|
sectionOrder.splice(dropItemIndex, 0, dragObject);
|
|
185
|
-
|
|
186
|
-
|
|
335
|
+
wrapper.setSections(sectionOrder);
|
|
336
|
+
//loop through the wrapper.getItems() and find the index and noData Container
|
|
337
|
+
let noDataContainerIndex = -1;
|
|
338
|
+
const items = wrapper.getItems();
|
|
339
|
+
let noDataContainer: NoDataContainer | null = null;
|
|
340
|
+
for (let i = 0; i < items.length; i++) {
|
|
341
|
+
const item = items[i];
|
|
342
|
+
if (item instanceof NoDataContainer) {
|
|
343
|
+
noDataContainerIndex = i;
|
|
344
|
+
noDataContainer = item;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
//now insert the noDataContainer back to its noDataContainerIndex in sectionOrder
|
|
348
|
+
if (noDataContainer && noDataContainerIndex !== -1) {
|
|
349
|
+
sectionOrder.splice(noDataContainerIndex, 0, noDataContainer as unknown as IElement);
|
|
350
|
+
}
|
|
351
|
+
let finalTargetIndex = 0;
|
|
352
|
+
const elementList = this.orderedSections.reduce((accumulator, section) => {
|
|
353
|
+
if (section.isComposite && section.children) {
|
|
354
|
+
accumulator.push(...section.children);
|
|
355
|
+
} else {
|
|
356
|
+
accumulator.push(section);
|
|
357
|
+
}
|
|
358
|
+
return accumulator;
|
|
359
|
+
}, [] as IElement[]);
|
|
360
|
+
finalTargetIndex = elementList.findIndex((element) => element.completeId === dragObject.completeId);
|
|
361
|
+
//find the composite child for this dragObject if it has a composite id
|
|
362
|
+
const compositeChildren = elementList.filter(
|
|
363
|
+
(element) =>
|
|
364
|
+
dragObject.compositeId && dragObject.compositeId === element.compositeId && element.completeId !== dragObject.completeId
|
|
365
|
+
);
|
|
366
|
+
if (noDataContainer && noDataContainerIndex !== -1) {
|
|
367
|
+
//remove noDataContainer from sectionOrder to avoid the display of an empty item in myhome Settings dialog
|
|
368
|
+
sectionOrder.splice(noDataContainerIndex, 1);
|
|
369
|
+
}
|
|
187
370
|
this.addKeyUserChanges({
|
|
188
|
-
selectorControl: wrapper
|
|
371
|
+
selectorControl: wrapper,
|
|
189
372
|
changeSpecificData: {
|
|
190
373
|
changeType: CHANGE_TYPES.MOVE,
|
|
191
374
|
content: {
|
|
@@ -193,7 +376,8 @@ export default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {
|
|
|
193
376
|
{
|
|
194
377
|
id: dragObject.completeId,
|
|
195
378
|
sourceIndex: actualDragItemIndex,
|
|
196
|
-
targetIndex:
|
|
379
|
+
targetIndex:
|
|
380
|
+
dragItemIndex < dropItemIndex && dragObject.isComposite ? finalTargetIndex + 1 : finalTargetIndex
|
|
197
381
|
}
|
|
198
382
|
],
|
|
199
383
|
source: {
|
|
@@ -207,6 +391,33 @@ export default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {
|
|
|
207
391
|
}
|
|
208
392
|
}
|
|
209
393
|
});
|
|
394
|
+
if (compositeChildren.length > 0) {
|
|
395
|
+
compositeChildren.forEach((compositeChild) => {
|
|
396
|
+
this.addKeyUserChanges({
|
|
397
|
+
selectorControl: wrapper,
|
|
398
|
+
changeSpecificData: {
|
|
399
|
+
changeType: CHANGE_TYPES.MOVE,
|
|
400
|
+
content: {
|
|
401
|
+
movedElements: [
|
|
402
|
+
{
|
|
403
|
+
id: compositeChild.completeId,
|
|
404
|
+
sourceIndex: actualDragItemIndex,
|
|
405
|
+
targetIndex: finalTargetIndex + 1 // +1 as it will be after the main dragObject
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
source: {
|
|
409
|
+
id: wrapperId,
|
|
410
|
+
aggregation: "items"
|
|
411
|
+
},
|
|
412
|
+
target: {
|
|
413
|
+
id: wrapperId,
|
|
414
|
+
aggregation: "items"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
});
|
|
420
|
+
}
|
|
210
421
|
|
|
211
422
|
void this.loadSections();
|
|
212
423
|
}
|
|
@@ -222,7 +433,7 @@ export default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {
|
|
|
222
433
|
*/
|
|
223
434
|
private _getActualIndex(id: string): number {
|
|
224
435
|
const layout = this._getPanel() as Layout;
|
|
225
|
-
this._allLayoutElements =
|
|
436
|
+
this._allLayoutElements = layout.getItems();
|
|
226
437
|
const isLayoutExpanded = layout.getProperty("expanded") as boolean;
|
|
227
438
|
const expandedElementConfig = layout._getCurrentExpandedElement();
|
|
228
439
|
|
|
@@ -260,7 +471,9 @@ export default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {
|
|
|
260
471
|
*/
|
|
261
472
|
private createShowHideChangeFile(oControlEvent: ToggleButton$PressEvent, section: IElement): void {
|
|
262
473
|
const isCheckBoxSelected: boolean = !oControlEvent.getParameter("pressed");
|
|
474
|
+
const selectedCompleteId = section.completeId;
|
|
263
475
|
const keyUserChanges = this.getKeyUserChanges();
|
|
476
|
+
const wrapperItem = Element.getElementById(section.completeId) as BaseContainer;
|
|
264
477
|
const changeType = isCheckBoxSelected ? CHANGE_TYPES.UNHIDE : CHANGE_TYPES.HIDE;
|
|
265
478
|
const oExistingChange = keyUserChanges.find((oChange) => {
|
|
266
479
|
return oChange.selectorControl.getId() === section.completeId;
|
|
@@ -271,11 +484,28 @@ export default class KeyUserLayoutSettingsPanel extends BaseSettingsPanel {
|
|
|
271
484
|
oExistingChange.changeSpecificData.changeType = changeType;
|
|
272
485
|
} else {
|
|
273
486
|
this.addKeyUserChanges({
|
|
274
|
-
selectorControl: Element.getElementById(section.completeId) as
|
|
487
|
+
selectorControl: Element.getElementById(section.completeId) as BaseContainer,
|
|
275
488
|
changeSpecificData: {
|
|
276
|
-
changeType
|
|
489
|
+
changeType: changeType,
|
|
490
|
+
content: {
|
|
491
|
+
compositeId: wrapperItem.getProperty("compositeId") as string
|
|
492
|
+
}
|
|
277
493
|
}
|
|
278
494
|
});
|
|
279
495
|
}
|
|
496
|
+
//update this.orderedSections
|
|
497
|
+
this.orderedSections.forEach((section) => {
|
|
498
|
+
//now check if oWrapperItem has composite id and check if section has same composite id and composite id is not undefined
|
|
499
|
+
// if yes, then loop through the children item and update its visibility
|
|
500
|
+
if (section.compositeId === wrapperItem.getProperty("compositeId") && section.compositeId !== undefined) {
|
|
501
|
+
section.children?.forEach((child) => {
|
|
502
|
+
if (child.completeId === selectedCompleteId) {
|
|
503
|
+
child.visible = isCheckBoxSelected;
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
} else if (section.completeId === selectedCompleteId) {
|
|
507
|
+
section.visible = isCheckBoxSelected;
|
|
508
|
+
}
|
|
509
|
+
});
|
|
280
510
|
}
|
|
281
511
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyUserNewsPagesSettingsPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,4CAA4C,CAAC;IAc5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAM3D,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"KeyUserNewsPagesSettingsPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,4CAA4C,CAAC;IAc5D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P SE. All rights reserved
|
|
4
4
|
*/
|
|
5
|
-
sap.ui.define(["sap/m/List", "sap/m/Page", "sap/m/StandardListItem", "sap/m/VBox", "sap/ui/core/Element", "sap/ui/core/EventBus", "./BaseSettingsPanel", "./flexibility/Layout.flexibility", "./KeyUserNewsSettingsPanel", "./KeyUserPagesSettingsPanel", "./
|
|
5
|
+
sap.ui.define(["sap/m/List", "sap/m/Page", "sap/m/StandardListItem", "sap/m/VBox", "sap/ui/core/Element", "sap/ui/core/EventBus", "./BaseSettingsPanel", "./flexibility/Layout.flexibility", "./KeyUserNewsSettingsPanel", "./KeyUserPagesSettingsPanel", "./NewsContainer", "./PagesContainer", "./utils/Constants", "./utils/DataFormatUtils"], function (List, Page, StandardListItem, VBox, Element, EventBus, __BaseSettingsPanel, ___flexibility_Layoutflexibility, __KeyUserNewsSettingsPanel, __KeyUserPagesSettingsPanel, __NewsContainer, __PagesContainer, ___utils_Constants, ___utils_DataFormatUtils) {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
8
|
function _interopRequireDefault(obj) {
|
|
@@ -23,8 +23,8 @@ sap.ui.define(["sap/m/List", "sap/m/Page", "sap/m/StandardListItem", "sap/m/VBox
|
|
|
23
23
|
const CHANGE_TYPES = ___flexibility_Layoutflexibility["CHANGE_TYPES"];
|
|
24
24
|
const KeyUserNewsSettingsPanel = _interopRequireDefault(__KeyUserNewsSettingsPanel);
|
|
25
25
|
const KeyUserPagesSettingsPanel = _interopRequireDefault(__KeyUserPagesSettingsPanel);
|
|
26
|
-
const
|
|
27
|
-
const
|
|
26
|
+
const NewsContainer = _interopRequireDefault(__NewsContainer);
|
|
27
|
+
const PagesContainer = _interopRequireDefault(__PagesContainer);
|
|
28
28
|
const KEYUSER_SETTINGS_PANELS_KEYS = ___utils_Constants["KEYUSER_SETTINGS_PANELS_KEYS"];
|
|
29
29
|
const recycleId = ___utils_DataFormatUtils["recycleId"];
|
|
30
30
|
/**
|
|
@@ -94,14 +94,15 @@ sap.ui.define(["sap/m/List", "sap/m/Page", "sap/m/StandardListItem", "sap/m/VBox
|
|
|
94
94
|
const associatedPanelId = this.getPanel();
|
|
95
95
|
const associatedPanel = Element.getElementById(associatedPanelId);
|
|
96
96
|
const container = associatedPanel?.getParent();
|
|
97
|
-
container.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
this.
|
|
97
|
+
const layout = container.getParent();
|
|
98
|
+
layout.getContent()?.forEach(container => {
|
|
99
|
+
if (container instanceof NewsContainer) {
|
|
100
|
+
this.newsPanel = container.getContent()[0];
|
|
101
|
+
this.wrapperVBox.addItem(this.getNewsSettingsList(this.newsPanel));
|
|
101
102
|
}
|
|
102
|
-
if (
|
|
103
|
-
this.pagePanel =
|
|
104
|
-
this.wrapperVBox.addItem(this.getPageSettingsList(
|
|
103
|
+
if (container instanceof PagesContainer) {
|
|
104
|
+
this.pagePanel = container.getContent()[0];
|
|
105
|
+
this.wrapperVBox.addItem(this.getPageSettingsList(this.pagePanel));
|
|
105
106
|
}
|
|
106
107
|
});
|
|
107
108
|
},
|