@sapui5/sap.cux.home 1.136.2 → 1.138.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/cux/home/.library +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js +33 -30
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +13 -7
- package/src/sap/cux/home/App.d.ts +1 -2
- package/src/sap/cux/home/App.d.ts.map +1 -1
- package/src/sap/cux/home/App.js +7 -2
- package/src/sap/cux/home/App.js.map +1 -1
- package/src/sap/cux/home/App.ts +8 -3
- package/src/sap/cux/home/AppsAdditionPanel.d.ts +0 -2
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.js +28 -23
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.ts +18 -5
- package/src/sap/cux/home/AppsContainer.d.ts +0 -1
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.js +3 -3
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +1 -2
- package/src/sap/cux/home/BaseApp.d.ts +2 -2
- package/src/sap/cux/home/BaseApp.d.ts.map +1 -1
- package/src/sap/cux/home/BaseApp.js +10 -3
- package/src/sap/cux/home/BaseApp.js.map +1 -1
- package/src/sap/cux/home/BaseApp.ts +11 -4
- package/src/sap/cux/home/BaseAppPanel.d.ts +0 -2
- package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.js +7 -12
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +2 -4
- package/src/sap/cux/home/BaseAppPersPanel.d.ts +0 -2
- package/src/sap/cux/home/BaseAppPersPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.js +9 -12
- package/src/sap/cux/home/BaseAppPersPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.ts +9 -7
- package/src/sap/cux/home/BaseContainer.d.ts +0 -1
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.js +15 -12
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +9 -4
- package/src/sap/cux/home/BaseLayout.d.ts +0 -1
- package/src/sap/cux/home/BaseLayout.d.ts.map +1 -1
- package/src/sap/cux/home/BaseLayout.js +6 -13
- package/src/sap/cux/home/BaseLayout.js.map +1 -1
- package/src/sap/cux/home/BaseLayout.ts +1 -2
- package/src/sap/cux/home/BaseNewsItem.d.ts +1 -2
- package/src/sap/cux/home/BaseNewsItem.d.ts.map +1 -1
- package/src/sap/cux/home/BaseNewsItem.js +7 -2
- package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
- package/src/sap/cux/home/BaseNewsItem.ts +8 -3
- package/src/sap/cux/home/BaseNewsPanel.d.ts +1 -2
- package/src/sap/cux/home/BaseNewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.js +7 -2
- package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.ts +8 -3
- package/src/sap/cux/home/BasePagePanel.d.ts +1 -2
- package/src/sap/cux/home/BasePagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePagePanel.gen.d.ts +34 -0
- package/src/sap/cux/home/BasePagePanel.js +16 -2
- package/src/sap/cux/home/BasePagePanel.js.map +1 -1
- package/src/sap/cux/home/BasePagePanel.ts +17 -3
- package/src/sap/cux/home/BasePanel.d.ts +0 -1
- package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePanel.js +1 -3
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +0 -1
- package/src/sap/cux/home/BaseSettingsDialog.d.ts +0 -1
- package/src/sap/cux/home/BaseSettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.js +0 -1
- package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.ts +0 -1
- package/src/sap/cux/home/BaseSettingsPanel.d.ts +1 -2
- package/src/sap/cux/home/BaseSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.js +0 -1
- package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.ts +1 -2
- package/src/sap/cux/home/CardsPanel.d.ts +0 -1
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.js +102 -105
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +1 -2
- package/src/sap/cux/home/ContentAdditionDialog.d.ts +0 -3
- package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.js +3 -7
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.ts +3 -7
- package/src/sap/cux/home/ErrorPanel.d.ts +1 -2
- package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ErrorPanel.gen.d.ts +24 -0
- package/src/sap/cux/home/ErrorPanel.js +16 -2
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +17 -3
- package/src/sap/cux/home/FavAppPanel.d.ts +0 -1
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +283 -288
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +20 -15
- package/src/sap/cux/home/FrequentAppPanel.d.ts +0 -1
- package/src/sap/cux/home/FrequentAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.js +1 -4
- package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.ts +0 -1
- package/src/sap/cux/home/Group.d.ts +2 -2
- package/src/sap/cux/home/Group.d.ts.map +1 -1
- package/src/sap/cux/home/Group.gen.d.ts +47 -1
- package/src/sap/cux/home/Group.js +30 -3
- package/src/sap/cux/home/Group.js.map +1 -1
- package/src/sap/cux/home/Group.ts +26 -6
- package/src/sap/cux/home/IToDoPanel.d.ts +1 -2
- package/src/sap/cux/home/IToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/IToDoPanel.js.map +1 -1
- package/src/sap/cux/home/IToDoPanel.ts +1 -2
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts +0 -4
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.js +1 -7
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +1 -8
- package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsCardsSettingsPanel.js +0 -3
- package/src/sap/cux/home/InsightsCardsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsCardsSettingsPanel.ts +0 -3
- package/src/sap/cux/home/InsightsContainer.d.ts +1 -1
- package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsContainer.js +19 -3
- package/src/sap/cux/home/InsightsContainer.js.map +1 -1
- package/src/sap/cux/home/InsightsContainer.ts +17 -4
- package/src/sap/cux/home/InsightsTilesSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/InsightsTilesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js +5 -5
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +5 -5
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +0 -3
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +0 -3
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +0 -3
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +0 -3
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts +5 -11
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +58 -129
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +53 -120
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js +0 -3
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +0 -3
- package/src/sap/cux/home/KeyUserSettingsDialog.d.ts +0 -3
- package/src/sap/cux/home/KeyUserSettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.js +0 -3
- package/src/sap/cux/home/KeyUserSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.ts +0 -3
- package/src/sap/cux/home/Layout.d.ts +0 -1
- package/src/sap/cux/home/Layout.d.ts.map +1 -1
- package/src/sap/cux/home/Layout.js +3 -6
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +0 -1
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.js +0 -3
- package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.ts +0 -3
- package/src/sap/cux/home/MenuItem.d.ts +0 -1
- package/src/sap/cux/home/MenuItem.d.ts.map +1 -1
- package/src/sap/cux/home/MenuItem.js +0 -1
- package/src/sap/cux/home/MenuItem.js.map +1 -1
- package/src/sap/cux/home/MenuItem.ts +0 -1
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts +0 -1
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js +4 -7
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.ts +5 -9
- package/src/sap/cux/home/NewsGroup.d.ts +0 -3
- package/src/sap/cux/home/NewsGroup.d.ts.map +1 -1
- package/src/sap/cux/home/NewsGroup.js +0 -3
- package/src/sap/cux/home/NewsGroup.js.map +1 -1
- package/src/sap/cux/home/NewsGroup.ts +0 -3
- package/src/sap/cux/home/NewsItem.d.ts +0 -3
- package/src/sap/cux/home/NewsItem.d.ts.map +1 -1
- package/src/sap/cux/home/NewsItem.js +0 -3
- package/src/sap/cux/home/NewsItem.js.map +1 -1
- package/src/sap/cux/home/NewsItem.ts +0 -3
- package/src/sap/cux/home/NewsPanel.d.ts +1 -2
- package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.gen.d.ts +0 -30
- package/src/sap/cux/home/NewsPanel.js +81 -104
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +18 -32
- package/src/sap/cux/home/NewsSettingsPanel.d.ts +6 -3
- package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js +18 -4
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +16 -4
- package/src/sap/cux/home/NoDataContainer.d.ts +0 -1
- package/src/sap/cux/home/NoDataContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NoDataContainer.js +0 -1
- package/src/sap/cux/home/NoDataContainer.js.map +1 -1
- package/src/sap/cux/home/NoDataContainer.ts +0 -1
- package/src/sap/cux/home/Page.d.ts +0 -3
- package/src/sap/cux/home/Page.d.ts.map +1 -1
- package/src/sap/cux/home/Page.gen.d.ts +0 -12
- package/src/sap/cux/home/Page.js +0 -7
- package/src/sap/cux/home/Page.js.map +1 -1
- package/src/sap/cux/home/Page.ts +0 -7
- package/src/sap/cux/home/PagePanel.d.ts +0 -4
- package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/PagePanel.js +1 -6
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +0 -4
- package/src/sap/cux/home/PageSettingsPanel.d.ts +0 -3
- package/src/sap/cux/home/PageSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.js +3 -5
- package/src/sap/cux/home/PageSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.ts +3 -5
- package/src/sap/cux/home/RecentAppPanel.d.ts +0 -1
- package/src/sap/cux/home/RecentAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.js +2 -6
- package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.ts +0 -1
- package/src/sap/cux/home/RecommendedAppPanel.d.ts +0 -1
- package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js +0 -1
- package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.ts +0 -1
- package/src/sap/cux/home/SettingsDialog.d.ts +0 -3
- package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/SettingsDialog.js +24 -22
- package/src/sap/cux/home/SettingsDialog.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.ts +8 -15
- package/src/sap/cux/home/SituationPanel.d.ts +0 -1
- package/src/sap/cux/home/SituationPanel.d.ts.map +1 -1
- package/src/sap/cux/home/SituationPanel.js +0 -1
- package/src/sap/cux/home/SituationPanel.js.map +1 -1
- package/src/sap/cux/home/SituationPanel.ts +0 -1
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts +207 -0
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -0
- package/src/sap/cux/home/SpaceInsightsPanel.gen.d.ts +200 -0
- package/src/sap/cux/home/SpaceInsightsPanel.js +786 -0
- package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -0
- package/src/sap/cux/home/SpaceInsightsPanel.ts +628 -0
- package/src/sap/cux/home/SpacePanel.d.ts +117 -0
- package/src/sap/cux/home/SpacePanel.d.ts.map +1 -0
- package/src/sap/cux/home/SpacePanel.gen.d.ts +77 -0
- package/src/sap/cux/home/SpacePanel.js +599 -0
- package/src/sap/cux/home/SpacePanel.js.map +1 -0
- package/src/sap/cux/home/SpacePanel.ts +461 -0
- package/src/sap/cux/home/TaskPanel.d.ts +0 -1
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.js +14 -24
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +6 -11
- package/src/sap/cux/home/TilesPanel.d.ts +0 -1
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.js +2 -4
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +1 -2
- package/src/sap/cux/home/ToDoPanel.d.ts +11 -1
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +67 -17
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +70 -13
- package/src/sap/cux/home/ToDosContainer.d.ts +0 -1
- package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
- package/src/sap/cux/home/ToDosContainer.js +0 -1
- package/src/sap/cux/home/ToDosContainer.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.ts +0 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +0 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +0 -1
- package/src/sap/cux/home/i18n/messagebundle.properties +8 -6
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_da.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_de.properties +16 -13
- package/src/sap/cux/home/i18n/messagebundle_el.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_en.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +8 -3
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +55 -9
- package/src/sap/cux/home/i18n/messagebundle_es.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_et.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_id.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_it.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +10 -7
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_no.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_th.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +7 -4
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +6 -3
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +6 -3
- package/src/sap/cux/home/interface/AppsInterface.d.ts +1 -0
- package/src/sap/cux/home/interface/AppsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.js.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.ts +1 -0
- package/src/sap/cux/home/interface/KeyUserInterface.d.ts +0 -2
- 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 +0 -2
- package/src/sap/cux/home/library.d.ts +3 -4
- package/src/sap/cux/home/library.d.ts.map +1 -1
- package/src/sap/cux/home/library.js +3 -4
- package/src/sap/cux/home/library.js.map +1 -1
- package/src/sap/cux/home/library.ts +3 -4
- package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +1 -1
- package/src/sap/cux/home/themes/base/InsightsContainer.less +4 -0
- package/src/sap/cux/home/utils/Accessibility.js +3 -4
- package/src/sap/cux/home/utils/Accessibility.js.map +1 -1
- package/src/sap/cux/home/utils/Accessibility.ts +2 -2
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.d.ts +0 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.d.ts.map +1 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.js +0 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.js.map +1 -1
- package/src/sap/cux/home/utils/AnalyticalCardSkeleton.ts +0 -1
- package/src/sap/cux/home/utils/AppManager.d.ts +4 -7
- package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/AppManager.js +141 -157
- package/src/sap/cux/home/utils/AppManager.js.map +1 -1
- package/src/sap/cux/home/utils/AppManager.ts +20 -13
- package/src/sap/cux/home/utils/BatchHelper.d.ts +0 -3
- package/src/sap/cux/home/utils/BatchHelper.d.ts.map +1 -1
- package/src/sap/cux/home/utils/BatchHelper.js +5 -10
- package/src/sap/cux/home/utils/BatchHelper.js.map +1 -1
- package/src/sap/cux/home/utils/BatchHelper.ts +0 -3
- package/src/sap/cux/home/utils/CommonUtils.d.ts +9 -0
- package/src/sap/cux/home/utils/CommonUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/CommonUtils.js +23 -2
- package/src/sap/cux/home/utils/CommonUtils.js.map +1 -1
- package/src/sap/cux/home/utils/CommonUtils.ts +25 -1
- package/src/sap/cux/home/utils/Constants.d.ts +4 -5
- package/src/sap/cux/home/utils/Constants.d.ts.map +1 -1
- package/src/sap/cux/home/utils/Constants.js +5 -5
- package/src/sap/cux/home/utils/Constants.js.map +1 -1
- package/src/sap/cux/home/utils/Constants.ts +4 -5
- package/src/sap/cux/home/utils/DecisionDialog.d.ts +0 -3
- package/src/sap/cux/home/utils/DecisionDialog.d.ts.map +1 -1
- package/src/sap/cux/home/utils/DecisionDialog.js +0 -3
- package/src/sap/cux/home/utils/DecisionDialog.js.map +1 -1
- package/src/sap/cux/home/utils/DecisionDialog.ts +0 -3
- package/src/sap/cux/home/utils/Device.js +1 -2
- package/src/sap/cux/home/utils/Device.js.map +1 -1
- package/src/sap/cux/home/utils/FESRUtil.js +1 -1
- package/src/sap/cux/home/utils/FESRUtil.js.map +1 -1
- package/src/sap/cux/home/utils/FESRUtil.ts +1 -1
- package/src/sap/cux/home/utils/FeatureUtils.d.ts +20 -13
- package/src/sap/cux/home/utils/FeatureUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/FeatureUtils.js +38 -33
- package/src/sap/cux/home/utils/FeatureUtils.js.map +1 -1
- package/src/sap/cux/home/utils/FeatureUtils.ts +39 -32
- package/src/sap/cux/home/utils/HttpHelper.d.ts +7 -3
- package/src/sap/cux/home/utils/HttpHelper.d.ts.map +1 -1
- package/src/sap/cux/home/utils/HttpHelper.js +43 -3
- package/src/sap/cux/home/utils/HttpHelper.js.map +1 -1
- package/src/sap/cux/home/utils/HttpHelper.ts +25 -3
- package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts.map +1 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.js +33 -13
- package/src/sap/cux/home/utils/KeyUserPersonalization.js.map +1 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.ts +2 -2
- package/src/sap/cux/home/utils/PageManager.d.ts +0 -3
- package/src/sap/cux/home/utils/PageManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PageManager.js +8 -14
- package/src/sap/cux/home/utils/PageManager.js.map +1 -1
- package/src/sap/cux/home/utils/PageManager.ts +0 -3
- package/src/sap/cux/home/utils/PersonalisationUtils.d.ts +0 -3
- package/src/sap/cux/home/utils/PersonalisationUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PersonalisationUtils.js +1 -5
- package/src/sap/cux/home/utils/PersonalisationUtils.js.map +1 -1
- package/src/sap/cux/home/utils/PersonalisationUtils.ts +0 -3
- package/src/sap/cux/home/utils/SituationUtils.js +1 -2
- package/src/sap/cux/home/utils/SituationUtils.js.map +1 -1
- package/src/sap/cux/home/utils/TaskUtils.js +1 -2
- package/src/sap/cux/home/utils/TaskUtils.js.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts +0 -3
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.js +0 -3
- package/src/sap/cux/home/utils/UshellPersonalizer.js.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.ts +0 -3
- package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +16 -17
- package/src/sap/cux/home/utils/CardSkeleton.d.ts +0 -54
- package/src/sap/cux/home/utils/CardSkeleton.d.ts.map +0 -1
- package/src/sap/cux/home/utils/CardSkeleton.js +0 -61
- package/src/sap/cux/home/utils/CardSkeleton.js.map +0 -1
- package/src/sap/cux/home/utils/CardSkeleton.ts +0 -53
|
@@ -195,6 +195,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
195
195
|
const MenuItem = _interopRequireDefault(__MenuItem);
|
|
196
196
|
const RecommendedAppPanel = _interopRequireDefault(__RecommendedAppPanel);
|
|
197
197
|
const checkPanelExists = ___utils_Accessibility["checkPanelExists"];
|
|
198
|
+
const getInvisibleText = ___utils_Accessibility["getInvisibleText"];
|
|
198
199
|
const DEFAULT_BG_COLOR = ___utils_Constants["DEFAULT_BG_COLOR"];
|
|
199
200
|
const END_USER_COLORS = ___utils_Constants["END_USER_COLORS"];
|
|
200
201
|
const MYAPPS_SECTION_ID = ___utils_Constants["MYAPPS_SECTION_ID"];
|
|
@@ -228,7 +229,6 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
228
229
|
* @since 1.121.0
|
|
229
230
|
*
|
|
230
231
|
* @internal
|
|
231
|
-
* @experimental Since 1.121
|
|
232
232
|
* @public
|
|
233
233
|
*
|
|
234
234
|
* @alias sap.cux.home.FavAppPanel
|
|
@@ -845,15 +845,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
845
845
|
*/
|
|
846
846
|
_getDragDropInfo: function _getDragDropInfo(event, appGroupId) {
|
|
847
847
|
try {
|
|
848
|
-
const
|
|
848
|
+
const _this0 = this;
|
|
849
849
|
const dragTile = event.getParameter?.("draggedControl"),
|
|
850
850
|
dropTile = event.getParameter?.("droppedControl"),
|
|
851
851
|
dropPosition = event.getParameter?.("dropPosition"),
|
|
852
852
|
dropControl = dragTile.getParent(),
|
|
853
853
|
dragItemIndex = dropControl.indexOfItem(dragTile),
|
|
854
854
|
dropItemIndex = dropControl.indexOfItem(dropTile),
|
|
855
|
-
dragItem =
|
|
856
|
-
dropItem =
|
|
855
|
+
dragItem = _this0._getTileItem(dragTile, appGroupId),
|
|
856
|
+
dropItem = _this0._getTileItem(dropTile, appGroupId);
|
|
857
857
|
const dragDropInfo = {
|
|
858
858
|
dragItem: dragItem,
|
|
859
859
|
dropItem: dropItem,
|
|
@@ -866,12 +866,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
866
866
|
const _temp9 = function () {
|
|
867
867
|
if (dragItemIndex !== dropItemIndex) {
|
|
868
868
|
const _temp8 = function () {
|
|
869
|
-
if (!dragItem
|
|
870
|
-
return Promise.resolve(
|
|
869
|
+
if (!(dragItem instanceof Group) && !(dropItem instanceof Group)) {
|
|
870
|
+
return Promise.resolve(_this0._adjustAppDragDropInfo(dragDropInfo, appGroupId)).then(function () {});
|
|
871
871
|
} else {
|
|
872
872
|
const _temp7 = function () {
|
|
873
|
-
if (dragItem
|
|
874
|
-
return Promise.resolve(
|
|
873
|
+
if (dragItem instanceof Group) {
|
|
874
|
+
return Promise.resolve(_this0._adjustGroupDragDropInfo(dragDropInfo)).then(function () {});
|
|
875
875
|
}
|
|
876
876
|
}();
|
|
877
877
|
if (_temp7 && _temp7.then) return _temp7.then(function () {});
|
|
@@ -895,12 +895,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
895
895
|
*/
|
|
896
896
|
_adjustAppDragDropInfo: function _adjustAppDragDropInfo(dragDropInfo, appGroupId) {
|
|
897
897
|
try {
|
|
898
|
-
const
|
|
898
|
+
const _this1 = this;
|
|
899
899
|
let isUpdated = false;
|
|
900
900
|
const dragApp = dragDropInfo.dragItem;
|
|
901
901
|
const dropApp = dragDropInfo.dropItem;
|
|
902
|
-
return Promise.resolve(Promise.all([
|
|
903
|
-
let [dragVisualization, dropVisualization] = _ref;
|
|
902
|
+
return Promise.resolve(Promise.all([_this1.appManagerInstance.getVisualization(dragApp.getUrl(), appGroupId), _this1.appManagerInstance.getVisualization(dropApp.getUrl(), appGroupId)])).then(function ([dragVisualization, dropVisualization]) {
|
|
904
903
|
if (dragDropInfo.dropPosition === dnd.RelativeDropPosition.Before) {
|
|
905
904
|
//let's say there are two apps a1, a2, if a1 is moved before a2, that essentailly means the drop item index is same as current item index, adjust the dropItemIndex accordingly
|
|
906
905
|
if (dragDropInfo.dragItemIndex === dragDropInfo.dropItemIndex - 1) {
|
|
@@ -921,7 +920,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
921
920
|
}
|
|
922
921
|
if (isUpdated) {
|
|
923
922
|
const tile = dragDropInfo.dropControl.getItems()[dragDropInfo.dropItemIndex];
|
|
924
|
-
const app =
|
|
923
|
+
const app = _this1._getTileItem(tile, appGroupId);
|
|
925
924
|
if (app) {
|
|
926
925
|
dragDropInfo.dropItem = app;
|
|
927
926
|
}
|
|
@@ -950,14 +949,14 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
950
949
|
*/
|
|
951
950
|
_adjustGroupDragDropInfo: function _adjustGroupDragDropInfo(dragDropInfo) {
|
|
952
951
|
try {
|
|
953
|
-
const
|
|
954
|
-
return Promise.resolve(
|
|
952
|
+
const _this10 = this;
|
|
953
|
+
return Promise.resolve(_this10.appManagerInstance._getSections()).then(function (sections) {
|
|
955
954
|
let dropGroupIndex;
|
|
956
955
|
dragDropInfo.dragItemIndex = sections.findIndex(section => section.id === dragDropInfo.dragItem.getGroupId());
|
|
957
956
|
|
|
958
957
|
//If dropped app is the first ungrouped app, put the group at the end
|
|
959
|
-
if (!dragDropInfo.dropItem
|
|
960
|
-
const lastGroupIndex =
|
|
958
|
+
if (!(dragDropInfo.dropItem instanceof Group)) {
|
|
959
|
+
const lastGroupIndex = _this10.getAggregation("groups").length;
|
|
961
960
|
dragDropInfo.dropItemIndex = dragDropInfo.dropPosition === dnd.RelativeDropPosition.Before && dragDropInfo.dropItemIndex === lastGroupIndex && dragDropInfo.dragItemIndex !== lastGroupIndex ? lastGroupIndex + 1 : dragDropInfo.dragItemIndex;
|
|
962
961
|
} else {
|
|
963
962
|
dropGroupIndex = sections.findIndex(section => section.id === dragDropInfo.dropItem.getGroupId());
|
|
@@ -984,10 +983,10 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
984
983
|
*/
|
|
985
984
|
_onFavItemDrop: function _onFavItemDrop(event, appGroupId) {
|
|
986
985
|
try {
|
|
987
|
-
const
|
|
986
|
+
const _this11 = this;
|
|
988
987
|
const dragTile = event.getParameter?.("draggedControl");
|
|
989
|
-
return Promise.resolve(
|
|
990
|
-
function
|
|
988
|
+
return Promise.resolve(_this11._getDragDropInfo(event, appGroupId)).then(function (dragDropInfo) {
|
|
989
|
+
function _temp10() {
|
|
991
990
|
dragTile.removeStyleClass("sapMGTPressActive");
|
|
992
991
|
}
|
|
993
992
|
const {
|
|
@@ -998,29 +997,29 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
998
997
|
dropItem
|
|
999
998
|
} = dragDropInfo;
|
|
1000
999
|
if (dragItemIndex === dropItemIndex) return;
|
|
1001
|
-
const
|
|
1000
|
+
const _temp1 = function () {
|
|
1002
1001
|
if (dropPosition === dnd.RelativeDropPosition.On) {
|
|
1003
|
-
return Promise.resolve(
|
|
1004
|
-
void
|
|
1002
|
+
return Promise.resolve(_this11._handleOnItemDrop(dragItem, dropItem)).then(function () {
|
|
1003
|
+
void _this11.refresh();
|
|
1005
1004
|
});
|
|
1006
1005
|
} else {
|
|
1007
|
-
const
|
|
1006
|
+
const _temp0 = function () {
|
|
1008
1007
|
if (dropPosition === dnd.RelativeDropPosition.After || dropPosition === dnd.RelativeDropPosition.Before) {
|
|
1009
|
-
|
|
1010
|
-
return Promise.resolve(
|
|
1011
|
-
return Promise.resolve(
|
|
1008
|
+
_this11._setBusy(true);
|
|
1009
|
+
return Promise.resolve(_this11._handleItemsReorder(dragDropInfo, appGroupId)).then(function () {
|
|
1010
|
+
return Promise.resolve(_this11.refresh()).then(function () {
|
|
1012
1011
|
if (appGroupId) {
|
|
1013
|
-
void
|
|
1012
|
+
void _this11._setGroupDetailDialogApps(appGroupId);
|
|
1014
1013
|
}
|
|
1015
|
-
|
|
1014
|
+
_this11._setBusy(false);
|
|
1016
1015
|
});
|
|
1017
1016
|
});
|
|
1018
1017
|
}
|
|
1019
1018
|
}();
|
|
1020
|
-
if (
|
|
1019
|
+
if (_temp0 && _temp0.then) return _temp0.then(function () {});
|
|
1021
1020
|
}
|
|
1022
1021
|
}();
|
|
1023
|
-
return
|
|
1022
|
+
return _temp1 && _temp1.then ? _temp1.then(_temp10) : _temp10(_temp1);
|
|
1024
1023
|
});
|
|
1025
1024
|
} catch (e) {
|
|
1026
1025
|
return Promise.reject(e);
|
|
@@ -1037,25 +1036,25 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1037
1036
|
*/
|
|
1038
1037
|
_handleOnItemDrop: function _handleOnItemDrop(dragItem, dropItem) {
|
|
1039
1038
|
try {
|
|
1040
|
-
const
|
|
1041
|
-
if (dragItem
|
|
1042
|
-
const
|
|
1043
|
-
if (!dropItem
|
|
1039
|
+
const _this12 = this;
|
|
1040
|
+
if (dragItem instanceof Group) return Promise.resolve();
|
|
1041
|
+
const _temp11 = function () {
|
|
1042
|
+
if (!(dropItem instanceof Group)) {
|
|
1044
1043
|
//if both dragged and dropped items are apps, create group dialog is opened.
|
|
1045
1044
|
const dragApp = dragItem;
|
|
1046
1045
|
const dropApp = dropItem;
|
|
1047
|
-
|
|
1048
|
-
|
|
1046
|
+
_this12._selectedApps = [dragApp, dropApp];
|
|
1047
|
+
_this12._openCreateGroupDialog(true);
|
|
1049
1048
|
} else {
|
|
1050
1049
|
//if dragged item is an app and dropped item is a group, app should be moved into that group.
|
|
1051
1050
|
const targetGroupId = dropItem.getGroupId();
|
|
1052
|
-
|
|
1053
|
-
return Promise.resolve(
|
|
1054
|
-
|
|
1051
|
+
_this12._setBusy(true);
|
|
1052
|
+
return Promise.resolve(_this12._handleMoveToGroup(dragItem, undefined, targetGroupId)).then(function () {
|
|
1053
|
+
_this12._setBusy(false);
|
|
1055
1054
|
});
|
|
1056
1055
|
}
|
|
1057
1056
|
}();
|
|
1058
|
-
return Promise.resolve(
|
|
1057
|
+
return Promise.resolve(_temp11 && _temp11.then ? _temp11.then(function () {}) : void 0);
|
|
1059
1058
|
} catch (e) {
|
|
1060
1059
|
return Promise.reject(e);
|
|
1061
1060
|
}
|
|
@@ -1068,22 +1067,21 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1068
1067
|
*/
|
|
1069
1068
|
_handleItemsReorder: function _handleItemsReorder(dragDropInfo, appGroupId) {
|
|
1070
1069
|
try {
|
|
1071
|
-
const
|
|
1070
|
+
const _this13 = this;
|
|
1072
1071
|
const {
|
|
1073
1072
|
dragItem,
|
|
1074
1073
|
dropItem,
|
|
1075
1074
|
dragItemIndex,
|
|
1076
1075
|
dropItemIndex
|
|
1077
1076
|
} = dragDropInfo;
|
|
1078
|
-
const isDragItemGroup = dragItem.
|
|
1079
|
-
const isDropItemGroup = dropItem.
|
|
1080
|
-
const
|
|
1077
|
+
const isDragItemGroup = dragItem.getMetadata()?.getName() === "sap.cux.home.Group";
|
|
1078
|
+
const isDropItemGroup = dropItem.getMetadata()?.getName() === "sap.cux.home.Group";
|
|
1079
|
+
const _temp13 = function () {
|
|
1081
1080
|
if (!isDragItemGroup && !isDropItemGroup) {
|
|
1082
1081
|
const drapApp = dragItem;
|
|
1083
1082
|
const dropApp = dropItem;
|
|
1084
|
-
return Promise.resolve(Promise.all([
|
|
1085
|
-
|
|
1086
|
-
return Promise.resolve(_this15.appManagerInstance.moveVisualization({
|
|
1083
|
+
return Promise.resolve(Promise.all([_this13.appManagerInstance.getVisualization(drapApp.getUrl(), appGroupId), _this13.appManagerInstance.getVisualization(dropApp.getUrl(), appGroupId)])).then(function ([dragVisualization, dropVisualization]) {
|
|
1084
|
+
return Promise.resolve(_this13.appManagerInstance.moveVisualization({
|
|
1087
1085
|
sourceSectionIndex: dragVisualization?.persConfig?.sectionIndex,
|
|
1088
1086
|
sourceVisualizationIndex: dragVisualization?.persConfig?.visualizationIndex,
|
|
1089
1087
|
targetSectionIndex: dropVisualization?.persConfig?.sectionIndex,
|
|
@@ -1091,15 +1089,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1091
1089
|
})).then(function () {});
|
|
1092
1090
|
});
|
|
1093
1091
|
} else {
|
|
1094
|
-
const
|
|
1092
|
+
const _temp12 = function () {
|
|
1095
1093
|
if (isDragItemGroup && isDropItemGroup) {
|
|
1096
|
-
return Promise.resolve(
|
|
1094
|
+
return Promise.resolve(_this13.appManagerInstance.moveSection(dragItemIndex, dropItemIndex)).then(function () {});
|
|
1097
1095
|
}
|
|
1098
1096
|
}();
|
|
1099
|
-
if (
|
|
1097
|
+
if (_temp12 && _temp12.then) return _temp12.then(function () {});
|
|
1100
1098
|
}
|
|
1101
1099
|
}();
|
|
1102
|
-
return Promise.resolve(
|
|
1100
|
+
return Promise.resolve(_temp13 && _temp13.then ? _temp13.then(function () {}) : void 0);
|
|
1103
1101
|
} catch (e) {
|
|
1104
1102
|
return Promise.reject(e);
|
|
1105
1103
|
}
|
|
@@ -1155,8 +1153,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1155
1153
|
* @private
|
|
1156
1154
|
* @param {boolean} [skipAppsSelection=false] - Whether to skip the apps selection page.
|
|
1157
1155
|
*/
|
|
1158
|
-
_openCreateGroupDialog: function _openCreateGroupDialog() {
|
|
1159
|
-
let skipAppsSelection = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
1156
|
+
_openCreateGroupDialog: function _openCreateGroupDialog(skipAppsSelection = false) {
|
|
1160
1157
|
const createGroupDialog = this._generateCreateGroupDialog(skipAppsSelection);
|
|
1161
1158
|
const appsWrapper = this._controlMap.get(`${this.getId()}-createGroupDialog-appsPage-scrollContainer-apps`);
|
|
1162
1159
|
appsWrapper.destroyItems();
|
|
@@ -1205,8 +1202,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1205
1202
|
* @param {boolean} bSkipAppsSelection - Whether to skip the apps selection page.
|
|
1206
1203
|
* @returns {sap.m.Dialog} The generated dialog for creating a group.
|
|
1207
1204
|
*/
|
|
1208
|
-
_generateCreateGroupDialog: function _generateCreateGroupDialog() {
|
|
1209
|
-
let skipAppsSelection = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
1205
|
+
_generateCreateGroupDialog: function _generateCreateGroupDialog(skipAppsSelection = true) {
|
|
1210
1206
|
const id = `${this.getId()}-createGroupDialog`;
|
|
1211
1207
|
const navContainer = this._generateCreateGroupNavContainer();
|
|
1212
1208
|
const _toggleNavButton = skipAppsSelection => {
|
|
@@ -1525,49 +1521,49 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1525
1521
|
*/
|
|
1526
1522
|
_onPressGroupCreate: function _onPressGroupCreate() {
|
|
1527
1523
|
try {
|
|
1528
|
-
const
|
|
1529
|
-
const groupNameInput =
|
|
1530
|
-
const
|
|
1531
|
-
if (
|
|
1532
|
-
const
|
|
1533
|
-
if (
|
|
1534
|
-
|
|
1535
|
-
const
|
|
1524
|
+
const _this14 = this;
|
|
1525
|
+
const groupNameInput = _this14._controlMap.get(`${_this14.getId()}-createGroupDialog-mainPage-form-groupName-input`);
|
|
1526
|
+
const _temp16 = function () {
|
|
1527
|
+
if (_this14._validateGroupName()) {
|
|
1528
|
+
const _temp15 = function () {
|
|
1529
|
+
if (_this14._selectedApps?.length) {
|
|
1530
|
+
_this14._setBusy(true);
|
|
1531
|
+
const _temp14 = _finallyRethrows(function () {
|
|
1536
1532
|
return _catch(function () {
|
|
1537
|
-
return Promise.resolve(
|
|
1538
|
-
selectedApps:
|
|
1533
|
+
return Promise.resolve(_this14._createGroup({
|
|
1534
|
+
selectedApps: _this14._selectedApps,
|
|
1539
1535
|
groupName: groupNameInput.getValue(),
|
|
1540
|
-
groupColor:
|
|
1536
|
+
groupColor: _this14._getGroupColor()
|
|
1541
1537
|
})).then(function () {
|
|
1542
|
-
return Promise.resolve(
|
|
1538
|
+
return Promise.resolve(_this14.refresh()).then(function () {
|
|
1543
1539
|
// Show toast message after successful group creation
|
|
1544
|
-
MessageToast.show(
|
|
1545
|
-
of:
|
|
1540
|
+
MessageToast.show(_this14._i18nBundle.getText("newGroupCreated"), {
|
|
1541
|
+
of: _this14._controlMap.get(`${_this14.getId()}-createGroupDialog`),
|
|
1546
1542
|
offset: "0 80"
|
|
1547
1543
|
});
|
|
1548
|
-
const groups =
|
|
1549
|
-
void
|
|
1544
|
+
const groups = _this14.getAggregation("groups") || [];
|
|
1545
|
+
void _this14._showGroupDetailDialog(groups[0]?.getGroupId());
|
|
1550
1546
|
});
|
|
1551
1547
|
});
|
|
1552
1548
|
}, function (err) {
|
|
1553
1549
|
Log.error(err);
|
|
1554
|
-
MessageToast.show(
|
|
1550
|
+
MessageToast.show(_this14._i18nBundle.getText("unableToCreateGroup"));
|
|
1555
1551
|
});
|
|
1556
1552
|
}, function (_wasThrown, _result) {
|
|
1557
|
-
|
|
1558
|
-
|
|
1553
|
+
_this14._setBusy(false);
|
|
1554
|
+
_this14._closeCreateGroupDialog();
|
|
1559
1555
|
if (_wasThrown) throw _result;
|
|
1560
1556
|
return _result;
|
|
1561
1557
|
});
|
|
1562
|
-
if (
|
|
1558
|
+
if (_temp14 && _temp14.then) return _temp14.then(function () {});
|
|
1563
1559
|
} else {
|
|
1564
|
-
|
|
1560
|
+
_this14._setNoAppsSelectedError(true);
|
|
1565
1561
|
}
|
|
1566
1562
|
}();
|
|
1567
|
-
if (
|
|
1563
|
+
if (_temp15 && _temp15.then) return _temp15.then(function () {});
|
|
1568
1564
|
}
|
|
1569
1565
|
}();
|
|
1570
|
-
return Promise.resolve(
|
|
1566
|
+
return Promise.resolve(_temp16 && _temp16.then ? _temp16.then(function () {}) : void 0);
|
|
1571
1567
|
} catch (e) {
|
|
1572
1568
|
return Promise.reject(e);
|
|
1573
1569
|
}
|
|
@@ -1582,13 +1578,13 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1582
1578
|
*/
|
|
1583
1579
|
_createGroup: function _createGroup(params) {
|
|
1584
1580
|
try {
|
|
1585
|
-
const
|
|
1581
|
+
const _this15 = this;
|
|
1586
1582
|
const {
|
|
1587
1583
|
selectedApps,
|
|
1588
1584
|
groupName,
|
|
1589
1585
|
groupColor
|
|
1590
1586
|
} = params;
|
|
1591
|
-
return Promise.resolve(
|
|
1587
|
+
return Promise.resolve(_this15.appManagerInstance.getSectionVisualizations()).then(function (sectionVisualizations) {
|
|
1592
1588
|
const visualizations = selectedApps.reduce((selectedVisualizations, oApp) => {
|
|
1593
1589
|
const sectionVisualization = sectionVisualizations.find(oSectionViz => oSectionViz.url === oApp.getUrl());
|
|
1594
1590
|
if (sectionVisualization) {
|
|
@@ -1597,10 +1593,10 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1597
1593
|
return selectedVisualizations;
|
|
1598
1594
|
}, []);
|
|
1599
1595
|
const sectionId = visualizations[0].persConfig.sectionId;
|
|
1600
|
-
return Promise.resolve(
|
|
1596
|
+
return Promise.resolve(_this15.appManagerInstance.addSection({
|
|
1601
1597
|
sectionIndex: 1,
|
|
1602
1598
|
sectionProperties: {
|
|
1603
|
-
title: groupName ||
|
|
1599
|
+
title: groupName || _this15._i18nBundle.getText("newGroup"),
|
|
1604
1600
|
visible: true,
|
|
1605
1601
|
visualizations: visualizations.map(viz => viz.visualization)
|
|
1606
1602
|
}
|
|
@@ -1612,21 +1608,21 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1612
1608
|
}
|
|
1613
1609
|
return visualizationsToBeDeleted;
|
|
1614
1610
|
}, []);
|
|
1615
|
-
return Promise.resolve(
|
|
1611
|
+
return Promise.resolve(_this15.appManagerInstance.removeVisualizations({
|
|
1616
1612
|
sectionId,
|
|
1617
1613
|
vizIds: visualizationsToBeDeleted
|
|
1618
1614
|
})).then(function () {
|
|
1619
|
-
return Promise.resolve(
|
|
1615
|
+
return Promise.resolve(_this15.appManagerInstance._getSections(true)).then(function (sections) {
|
|
1620
1616
|
const defaultSection = sections.find(oSection => oSection.default);
|
|
1621
1617
|
const targetGroupId = sections[defaultSection ? 1 : 0]?.id;
|
|
1622
1618
|
//update personalization
|
|
1623
|
-
return Promise.resolve(
|
|
1619
|
+
return Promise.resolve(_this15._updateAppPersonalization(visualizations.map(oViz => {
|
|
1624
1620
|
return {
|
|
1625
1621
|
visualization: oViz,
|
|
1626
1622
|
targetGroupId
|
|
1627
1623
|
};
|
|
1628
1624
|
}))).then(function () {
|
|
1629
|
-
return Promise.resolve(
|
|
1625
|
+
return Promise.resolve(_this15._updateGroupPersonalization(targetGroupId, groupColor)).then(function () {});
|
|
1630
1626
|
});
|
|
1631
1627
|
});
|
|
1632
1628
|
});
|
|
@@ -1686,44 +1682,44 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1686
1682
|
*/
|
|
1687
1683
|
_handleColorSelect: function _handleColorSelect(item, color) {
|
|
1688
1684
|
try {
|
|
1689
|
-
const
|
|
1690
|
-
function
|
|
1691
|
-
|
|
1685
|
+
const _this16 = this;
|
|
1686
|
+
function _temp18() {
|
|
1687
|
+
_this16.oEventBus.publish("appsChannel", "favAppColorChanged", {
|
|
1692
1688
|
item,
|
|
1693
1689
|
color
|
|
1694
1690
|
});
|
|
1695
1691
|
}
|
|
1696
|
-
const selectedColor =
|
|
1692
|
+
const selectedColor = _this16._getLegendColor(color).key;
|
|
1697
1693
|
item.setProperty("bgColor", selectedColor, true);
|
|
1698
|
-
const groupId = item
|
|
1699
|
-
const isGroupedApp = !groupId && item.getParent()
|
|
1694
|
+
const groupId = item instanceof Group ? item.getGroupId() : null;
|
|
1695
|
+
const isGroupedApp = !groupId && item.getParent() instanceof Group;
|
|
1700
1696
|
|
|
1701
1697
|
//update tile color
|
|
1702
1698
|
if (isGroupedApp) {
|
|
1703
|
-
|
|
1699
|
+
_this16._refreshGroupDetailDialog(item, false);
|
|
1704
1700
|
} else {
|
|
1705
1701
|
//if ungroup app or group
|
|
1706
|
-
|
|
1707
|
-
|
|
1702
|
+
_this16._applyUngroupedTileColor(item, color);
|
|
1703
|
+
_this16.oEventBus.publish("appsChannel", "favAppColorChanged", {
|
|
1708
1704
|
item,
|
|
1709
1705
|
color
|
|
1710
1706
|
});
|
|
1711
1707
|
}
|
|
1712
1708
|
|
|
1713
1709
|
//update personalization
|
|
1714
|
-
const
|
|
1710
|
+
const _temp17 = function () {
|
|
1715
1711
|
if (groupId) {
|
|
1716
1712
|
//if group
|
|
1717
|
-
void
|
|
1718
|
-
const groupIconControl =
|
|
1713
|
+
void _this16._updateGroupPersonalization(groupId, selectedColor);
|
|
1714
|
+
const groupIconControl = _this16._controlMap.get(`${_this16.getId()}-detailDialog-toolbar-color`);
|
|
1719
1715
|
groupIconControl?.setColor(color);
|
|
1720
1716
|
} else {
|
|
1721
1717
|
//if app
|
|
1722
1718
|
const app = item;
|
|
1723
1719
|
const groupId = isGroupedApp ? app.getParent().getGroupId() : undefined;
|
|
1724
|
-
return Promise.resolve(
|
|
1720
|
+
return Promise.resolve(_this16.appManagerInstance.getVisualization(app.getUrl(), groupId)).then(function (visualization) {
|
|
1725
1721
|
if (visualization) {
|
|
1726
|
-
void
|
|
1722
|
+
void _this16._updateAppPersonalization([{
|
|
1727
1723
|
visualization,
|
|
1728
1724
|
color: selectedColor
|
|
1729
1725
|
}]);
|
|
@@ -1731,7 +1727,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1731
1727
|
});
|
|
1732
1728
|
}
|
|
1733
1729
|
}();
|
|
1734
|
-
return Promise.resolve(
|
|
1730
|
+
return Promise.resolve(_temp17 && _temp17.then ? _temp17.then(_temp18) : _temp18(_temp17));
|
|
1735
1731
|
} catch (e) {
|
|
1736
1732
|
return Promise.reject(e);
|
|
1737
1733
|
}
|
|
@@ -1805,7 +1801,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1805
1801
|
* @private
|
|
1806
1802
|
*/
|
|
1807
1803
|
_handleRemove: function _handleRemove(app, group) {
|
|
1808
|
-
const
|
|
1804
|
+
const _this17 = this;
|
|
1809
1805
|
const lastAppInGroup = group?.getApps()?.length === 1;
|
|
1810
1806
|
let message = this._i18nBundle.getText("removeAppMessage", [app.getTitle()]),
|
|
1811
1807
|
title = this._i18nBundle.getText("remove"),
|
|
@@ -1824,34 +1820,34 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1824
1820
|
emphasizedAction: actionText,
|
|
1825
1821
|
onClose: function (action) {
|
|
1826
1822
|
try {
|
|
1827
|
-
const
|
|
1823
|
+
const _temp20 = function () {
|
|
1828
1824
|
if (action === actionText) {
|
|
1829
|
-
|
|
1830
|
-
const
|
|
1825
|
+
_this17._setBusy(true);
|
|
1826
|
+
const _temp19 = _finallyRethrows(function () {
|
|
1831
1827
|
return _catch(function () {
|
|
1832
|
-
return Promise.resolve(
|
|
1828
|
+
return Promise.resolve(_this17._removeApp(app, group)).then(function () {
|
|
1833
1829
|
if (lastAppInGroup) {
|
|
1834
|
-
|
|
1830
|
+
_this17._closeGroupDetailDialog();
|
|
1835
1831
|
} else if (group) {
|
|
1836
|
-
|
|
1832
|
+
_this17._refreshGroupDetailDialog(app);
|
|
1837
1833
|
}
|
|
1838
|
-
return Promise.resolve(
|
|
1839
|
-
MessageToast.show(
|
|
1834
|
+
return Promise.resolve(_this17.getParent()._refreshAllPanels()).then(function () {
|
|
1835
|
+
MessageToast.show(_this17._i18nBundle.getText("appRemoved"));
|
|
1840
1836
|
});
|
|
1841
1837
|
});
|
|
1842
1838
|
}, function (err) {
|
|
1843
1839
|
Log.error(err);
|
|
1844
|
-
MessageToast.show(
|
|
1840
|
+
MessageToast.show(_this17._i18nBundle.getText("unableToRemoveApp"));
|
|
1845
1841
|
});
|
|
1846
1842
|
}, function (_wasThrown2, _result2) {
|
|
1847
|
-
|
|
1843
|
+
_this17._setBusy(false);
|
|
1848
1844
|
if (_wasThrown2) throw _result2;
|
|
1849
1845
|
return _result2;
|
|
1850
1846
|
});
|
|
1851
|
-
if (
|
|
1847
|
+
if (_temp19 && _temp19.then) return _temp19.then(function () {});
|
|
1852
1848
|
}
|
|
1853
1849
|
}();
|
|
1854
|
-
return Promise.resolve(
|
|
1850
|
+
return Promise.resolve(_temp20 && _temp20.then ? _temp20.then(function () {}) : void 0);
|
|
1855
1851
|
} catch (e) {
|
|
1856
1852
|
return Promise.reject(e);
|
|
1857
1853
|
}
|
|
@@ -1869,28 +1865,28 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1869
1865
|
*/
|
|
1870
1866
|
_removeApp: function _removeApp(app, group) {
|
|
1871
1867
|
try {
|
|
1872
|
-
const
|
|
1868
|
+
const _this18 = this;
|
|
1873
1869
|
const lastAppInGroup = group?.getApps()?.length === 1,
|
|
1874
1870
|
groupId = group?.getGroupId(),
|
|
1875
1871
|
appId = app.getUrl();
|
|
1876
|
-
return Promise.resolve(
|
|
1877
|
-
const
|
|
1872
|
+
return Promise.resolve(_this18.appManagerInstance.getVisualization(appId, groupId)).then(function (viz) {
|
|
1873
|
+
const _temp22 = function () {
|
|
1878
1874
|
if (lastAppInGroup) {
|
|
1879
1875
|
//if last app in group, then delete the group as well
|
|
1880
|
-
return Promise.resolve(
|
|
1876
|
+
return Promise.resolve(_this18._deleteGroup(groupId)).then(function () {});
|
|
1881
1877
|
} else {
|
|
1882
1878
|
let visualizationsToBeDeleted = [viz?.visualization?.id];
|
|
1883
1879
|
if (!groupId) {
|
|
1884
1880
|
//for apps outside group i.e. for favorite apps delete duplicate apps as well
|
|
1885
1881
|
visualizationsToBeDeleted = visualizationsToBeDeleted.concat(viz?.persConfig?.duplicateApps?.map(viz => viz.visualization?.id));
|
|
1886
1882
|
}
|
|
1887
|
-
const
|
|
1883
|
+
const _temp21 = function () {
|
|
1888
1884
|
if (viz?.persConfig?.sectionId && visualizationsToBeDeleted.length > 0) {
|
|
1889
|
-
return Promise.resolve(
|
|
1885
|
+
return Promise.resolve(_this18.appManagerInstance.removeVisualizations({
|
|
1890
1886
|
sectionId: viz.persConfig.sectionId,
|
|
1891
1887
|
vizIds: visualizationsToBeDeleted
|
|
1892
1888
|
})).then(function () {
|
|
1893
|
-
void
|
|
1889
|
+
void _this18._deletePersonalization({
|
|
1894
1890
|
appId: appId,
|
|
1895
1891
|
oldAppId: viz?.oldAppId,
|
|
1896
1892
|
sectionId: viz?.persConfig?.sectionId,
|
|
@@ -1899,10 +1895,10 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1899
1895
|
});
|
|
1900
1896
|
}
|
|
1901
1897
|
}();
|
|
1902
|
-
if (
|
|
1898
|
+
if (_temp21 && _temp21.then) return _temp21.then(function () {});
|
|
1903
1899
|
}
|
|
1904
1900
|
}();
|
|
1905
|
-
if (
|
|
1901
|
+
if (_temp22 && _temp22.then) return _temp22.then(function () {});
|
|
1906
1902
|
});
|
|
1907
1903
|
} catch (e) {
|
|
1908
1904
|
return Promise.reject(e);
|
|
@@ -1917,13 +1913,13 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1917
1913
|
*/
|
|
1918
1914
|
_handleMoveToGroup: function _handleMoveToGroup(app, sourceGroupId, targetGroupId) {
|
|
1919
1915
|
try {
|
|
1920
|
-
const
|
|
1921
|
-
const sourceGroup = sourceGroupId ?
|
|
1916
|
+
const _this19 = this;
|
|
1917
|
+
const sourceGroup = sourceGroupId ? _this19._getGroup(sourceGroupId) : undefined,
|
|
1922
1918
|
isLastAppInGroup = sourceGroup?.getApps()?.length === 1;
|
|
1923
|
-
const
|
|
1919
|
+
const _temp23 = function () {
|
|
1924
1920
|
if (isLastAppInGroup) {
|
|
1925
|
-
const confirmationMessage =
|
|
1926
|
-
const confirmationTitle =
|
|
1921
|
+
const confirmationMessage = _this19._i18nBundle.getText("moveAppMessage", [app.getTitle()]);
|
|
1922
|
+
const confirmationTitle = _this19._i18nBundle.getText("delete");
|
|
1927
1923
|
MessageBox.show(confirmationMessage, {
|
|
1928
1924
|
icon: MessageBox.Icon.WARNING,
|
|
1929
1925
|
title: confirmationTitle,
|
|
@@ -1931,15 +1927,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1931
1927
|
emphasizedAction: confirmationTitle,
|
|
1932
1928
|
onClose: action => {
|
|
1933
1929
|
if (action === confirmationTitle) {
|
|
1934
|
-
void
|
|
1930
|
+
void _this19._moveAppAndHandleGroupChanges(app, sourceGroupId, targetGroupId);
|
|
1935
1931
|
}
|
|
1936
1932
|
}
|
|
1937
1933
|
});
|
|
1938
1934
|
} else {
|
|
1939
|
-
return Promise.resolve(
|
|
1935
|
+
return Promise.resolve(_this19._moveAppAndHandleGroupChanges(app, sourceGroupId, targetGroupId)).then(function () {});
|
|
1940
1936
|
}
|
|
1941
1937
|
}();
|
|
1942
|
-
return Promise.resolve(
|
|
1938
|
+
return Promise.resolve(_temp23 && _temp23.then ? _temp23.then(function () {}) : void 0);
|
|
1943
1939
|
} catch (e) {
|
|
1944
1940
|
return Promise.reject(e);
|
|
1945
1941
|
}
|
|
@@ -1954,41 +1950,41 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1954
1950
|
*/
|
|
1955
1951
|
_moveAppAndHandleGroupChanges: function _moveAppAndHandleGroupChanges(app, sourceGroupId, targetGroupId) {
|
|
1956
1952
|
try {
|
|
1957
|
-
const
|
|
1958
|
-
const sourceGroup = sourceGroupId ?
|
|
1959
|
-
targetGroup = targetGroupId ?
|
|
1953
|
+
const _this20 = this;
|
|
1954
|
+
const sourceGroup = sourceGroupId ? _this20._getGroup(sourceGroupId) : null,
|
|
1955
|
+
targetGroup = targetGroupId ? _this20._getGroup(targetGroupId) : null,
|
|
1960
1956
|
sTargetGroupTile = targetGroup?.getTitle(),
|
|
1961
1957
|
isLastAppInGroup = sourceGroup?.getApps()?.length === 1;
|
|
1962
|
-
const
|
|
1958
|
+
const _temp26 = _finallyRethrows(function () {
|
|
1963
1959
|
return _catch(function () {
|
|
1964
|
-
|
|
1965
|
-
return Promise.resolve(
|
|
1966
|
-
function
|
|
1967
|
-
const sMsg = sTargetGroupTile ?
|
|
1960
|
+
_this20._setBusy(true);
|
|
1961
|
+
return Promise.resolve(_this20._moveAppToGroup(app, sourceGroupId, targetGroupId)).then(function () {
|
|
1962
|
+
function _temp25() {
|
|
1963
|
+
const sMsg = sTargetGroupTile ? _this20._i18nBundle.getText("appMoved", [sTargetGroupTile]) : _this20._i18nBundle.getText("appUngrouped");
|
|
1968
1964
|
MessageToast.show(sMsg);
|
|
1969
|
-
return Promise.resolve(
|
|
1965
|
+
return Promise.resolve(_this20.refresh()).then(function () {});
|
|
1970
1966
|
}
|
|
1971
|
-
const
|
|
1967
|
+
const _temp24 = function () {
|
|
1972
1968
|
if (isLastAppInGroup) {
|
|
1973
|
-
return Promise.resolve(
|
|
1974
|
-
|
|
1969
|
+
return Promise.resolve(_this20._deleteGroup(sourceGroupId)).then(function () {
|
|
1970
|
+
_this20._closeGroupDetailDialog();
|
|
1975
1971
|
});
|
|
1976
1972
|
} else if (sourceGroupId) {
|
|
1977
|
-
|
|
1973
|
+
_this20._refreshGroupDetailDialog(app);
|
|
1978
1974
|
}
|
|
1979
1975
|
}();
|
|
1980
1976
|
//delete group, if it is the last app in the group
|
|
1981
|
-
return
|
|
1977
|
+
return _temp24 && _temp24.then ? _temp24.then(_temp25) : _temp25(_temp24);
|
|
1982
1978
|
});
|
|
1983
1979
|
}, function (error) {
|
|
1984
1980
|
Log.error(error);
|
|
1985
1981
|
});
|
|
1986
1982
|
}, function (_wasThrown3, _result3) {
|
|
1987
|
-
|
|
1983
|
+
_this20._setBusy(false);
|
|
1988
1984
|
if (_wasThrown3) throw _result3;
|
|
1989
1985
|
return _result3;
|
|
1990
1986
|
});
|
|
1991
|
-
return Promise.resolve(
|
|
1987
|
+
return Promise.resolve(_temp26 && _temp26.then ? _temp26.then(function () {}) : void 0);
|
|
1992
1988
|
} catch (e) {
|
|
1993
1989
|
return Promise.reject(e);
|
|
1994
1990
|
}
|
|
@@ -1999,8 +1995,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1999
1995
|
* @param {boolean} [isRemove=true] - A flag indicating whether to remove the app. Defaults to true.
|
|
2000
1996
|
* @private
|
|
2001
1997
|
*/
|
|
2002
|
-
_refreshGroupDetailDialog: function _refreshGroupDetailDialog(updatedApp) {
|
|
2003
|
-
let isRemove = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
1998
|
+
_refreshGroupDetailDialog: function _refreshGroupDetailDialog(updatedApp, isRemove = true) {
|
|
2004
1999
|
const appsWrapper = this._controlMap.get(`${this.getId()}-detailDialog-apps`);
|
|
2005
2000
|
const tiles = appsWrapper.getItems();
|
|
2006
2001
|
const group = updatedApp.getParent();
|
|
@@ -2033,53 +2028,52 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2033
2028
|
*/
|
|
2034
2029
|
_moveAppToGroup: function _moveAppToGroup(app, sourceGroupId, targetGroupId) {
|
|
2035
2030
|
try {
|
|
2036
|
-
const
|
|
2031
|
+
const _this21 = this;
|
|
2037
2032
|
const appId = app.getUrl();
|
|
2038
|
-
return Promise.resolve(Promise.all([
|
|
2039
|
-
let [visualizations, sections] = _ref3;
|
|
2033
|
+
return Promise.resolve(Promise.all([_this21.appManagerInstance.getSectionVisualizations(sourceGroupId), _this21.appManagerInstance._getSections()])).then(function ([visualizations, sections]) {
|
|
2040
2034
|
const sourceVisualization = visualizations.find(oViz => oViz.url === appId),
|
|
2041
2035
|
sourceVisualizationIndex = sourceVisualization?.persConfig?.visualizationIndex ?? -1,
|
|
2042
2036
|
sourceSectionIndex = sourceVisualization?.persConfig?.sectionIndex;
|
|
2043
2037
|
const isTargetGroupDefault = !targetGroupId; //if group id is not passed, then we consider it as default section
|
|
2044
2038
|
const isSourceGroupDefault = !sourceGroupId;
|
|
2045
2039
|
const targetSectionIndex = sections.findIndex(section => !targetGroupId ? section.default : section.id === targetGroupId);
|
|
2046
|
-
const
|
|
2040
|
+
const _temp31 = function () {
|
|
2047
2041
|
if (sourceVisualization) {
|
|
2048
|
-
function
|
|
2049
|
-
return Promise.resolve(
|
|
2042
|
+
function _temp30() {
|
|
2043
|
+
return Promise.resolve(_this21.appManagerInstance._getSections(true)).then(function (sections) {
|
|
2050
2044
|
const defaultSection = sections.find(oSection => oSection.default);
|
|
2051
|
-
return Promise.resolve(
|
|
2045
|
+
return Promise.resolve(_this21._updateAppPersonalization([{
|
|
2052
2046
|
visualization: sourceVisualization,
|
|
2053
2047
|
targetGroupId: targetGroupId ?? defaultSection?.id,
|
|
2054
2048
|
isTargetGroupDefault
|
|
2055
2049
|
}])).then(function () {});
|
|
2056
2050
|
});
|
|
2057
2051
|
}
|
|
2058
|
-
const
|
|
2052
|
+
const _temp29 = function () {
|
|
2059
2053
|
if (isTargetGroupDefault) {
|
|
2060
|
-
return Promise.resolve(
|
|
2054
|
+
return Promise.resolve(_this21._moveAppToDefaultGroup(sourceVisualization)).then(function () {});
|
|
2061
2055
|
} else {
|
|
2062
|
-
function
|
|
2063
|
-
return Promise.resolve(
|
|
2056
|
+
function _temp28() {
|
|
2057
|
+
return Promise.resolve(_this21.appManagerInstance.moveVisualization({
|
|
2064
2058
|
sourceSectionIndex: sourceSectionIndex,
|
|
2065
2059
|
sourceVisualizationIndex: sourceVisualizationIndex,
|
|
2066
2060
|
targetSectionIndex: targetSectionIndex,
|
|
2067
2061
|
targetVisualizationIndex: -1
|
|
2068
2062
|
})).then(function () {});
|
|
2069
2063
|
}
|
|
2070
|
-
const
|
|
2064
|
+
const _temp27 = function () {
|
|
2071
2065
|
if (isSourceGroupDefault) {
|
|
2072
2066
|
//remove duplicate apps
|
|
2073
|
-
return Promise.resolve(
|
|
2067
|
+
return Promise.resolve(_this21._removeDuplicateVisualizations(sourceVisualization)).then(function () {});
|
|
2074
2068
|
}
|
|
2075
2069
|
}();
|
|
2076
|
-
return
|
|
2070
|
+
return _temp27 && _temp27.then ? _temp27.then(_temp28) : _temp28(_temp27);
|
|
2077
2071
|
}
|
|
2078
2072
|
}();
|
|
2079
|
-
return
|
|
2073
|
+
return _temp29 && _temp29.then ? _temp29.then(_temp30) : _temp30(_temp29);
|
|
2080
2074
|
}
|
|
2081
2075
|
}();
|
|
2082
|
-
if (
|
|
2076
|
+
if (_temp31 && _temp31.then) return _temp31.then(function () {});
|
|
2083
2077
|
});
|
|
2084
2078
|
} catch (e) {
|
|
2085
2079
|
return Promise.reject(e);
|
|
@@ -2093,17 +2087,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2093
2087
|
*/
|
|
2094
2088
|
_moveAppToDefaultGroup: function _moveAppToDefaultGroup(visualization) {
|
|
2095
2089
|
try {
|
|
2096
|
-
const
|
|
2097
|
-
return Promise.resolve(
|
|
2098
|
-
const
|
|
2090
|
+
const _this22 = this;
|
|
2091
|
+
return Promise.resolve(_this22._addVisualization(visualization)).then(function () {
|
|
2092
|
+
const _temp32 = function () {
|
|
2099
2093
|
if (visualization.persConfig?.sectionId && visualization.visualization?.id) {
|
|
2100
|
-
return Promise.resolve(
|
|
2094
|
+
return Promise.resolve(_this22.appManagerInstance.removeVisualizations({
|
|
2101
2095
|
sectionId: visualization.persConfig?.sectionId,
|
|
2102
2096
|
vizIds: [visualization.visualization?.id]
|
|
2103
2097
|
})).then(function () {});
|
|
2104
2098
|
}
|
|
2105
2099
|
}();
|
|
2106
|
-
if (
|
|
2100
|
+
if (_temp32 && _temp32.then) return _temp32.then(function () {});
|
|
2107
2101
|
});
|
|
2108
2102
|
} catch (e) {
|
|
2109
2103
|
return Promise.reject(e);
|
|
@@ -2117,17 +2111,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2117
2111
|
*/
|
|
2118
2112
|
_removeDuplicateVisualizations: function _removeDuplicateVisualizations(visualization) {
|
|
2119
2113
|
try {
|
|
2120
|
-
const
|
|
2114
|
+
const _this23 = this;
|
|
2121
2115
|
const vizIdsToBeDeleted = visualization?.persConfig?.duplicateApps?.map(oViz => oViz.visualization?.id) || [];
|
|
2122
|
-
const
|
|
2116
|
+
const _temp33 = function () {
|
|
2123
2117
|
if (visualization.persConfig?.sectionId && vizIdsToBeDeleted.length > 0) {
|
|
2124
|
-
return Promise.resolve(
|
|
2118
|
+
return Promise.resolve(_this23.appManagerInstance.removeVisualizations({
|
|
2125
2119
|
sectionId: visualization.persConfig?.sectionId,
|
|
2126
2120
|
vizIds: vizIdsToBeDeleted
|
|
2127
2121
|
})).then(function () {});
|
|
2128
2122
|
}
|
|
2129
2123
|
}();
|
|
2130
|
-
return Promise.resolve(
|
|
2124
|
+
return Promise.resolve(_temp33 && _temp33.then ? _temp33.then(function () {}) : void 0);
|
|
2131
2125
|
} catch (e) {
|
|
2132
2126
|
return Promise.reject(e);
|
|
2133
2127
|
}
|
|
@@ -2170,7 +2164,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2170
2164
|
* @param {sap.ui.base.Event} event - The event object.
|
|
2171
2165
|
*/
|
|
2172
2166
|
_onDeleteGroup: function _onDeleteGroup(event) {
|
|
2173
|
-
const
|
|
2167
|
+
const _this24 = this;
|
|
2174
2168
|
const group = event.getSource()?.getParent(),
|
|
2175
2169
|
message = this._i18nBundle.getText("deleteGroupMessage", [group.getTitle()]),
|
|
2176
2170
|
title = this._i18nBundle.getText("delete"),
|
|
@@ -2183,20 +2177,20 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2183
2177
|
emphasizedAction: deleteAction,
|
|
2184
2178
|
onClose: function (action) {
|
|
2185
2179
|
try {
|
|
2186
|
-
const
|
|
2180
|
+
const _temp34 = function () {
|
|
2187
2181
|
if (action === deleteAction) {
|
|
2188
|
-
|
|
2189
|
-
return Promise.resolve(
|
|
2190
|
-
MessageToast.show(
|
|
2191
|
-
void
|
|
2192
|
-
|
|
2193
|
-
|
|
2182
|
+
_this24._setBusy(true);
|
|
2183
|
+
return Promise.resolve(_this24._deleteGroup(group.getGroupId())).then(function () {
|
|
2184
|
+
MessageToast.show(_this24._i18nBundle.getText("groupDeleted"));
|
|
2185
|
+
void _this24.refresh();
|
|
2186
|
+
_this24._closeGroupDetailDialog();
|
|
2187
|
+
_this24._setBusy(false);
|
|
2194
2188
|
});
|
|
2195
2189
|
} else if (action === moveAppAction) {
|
|
2196
|
-
void
|
|
2190
|
+
void _this24._ungroupApps(group.getGroupId());
|
|
2197
2191
|
}
|
|
2198
2192
|
}();
|
|
2199
|
-
return Promise.resolve(
|
|
2193
|
+
return Promise.resolve(_temp34 && _temp34.then ? _temp34.then(function () {}) : void 0);
|
|
2200
2194
|
} catch (e) {
|
|
2201
2195
|
return Promise.reject(e);
|
|
2202
2196
|
}
|
|
@@ -2212,40 +2206,40 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2212
2206
|
*/
|
|
2213
2207
|
_ungroupApps: function _ungroupApps(groupId) {
|
|
2214
2208
|
try {
|
|
2215
|
-
const
|
|
2216
|
-
|
|
2217
|
-
const
|
|
2209
|
+
const _this25 = this;
|
|
2210
|
+
_this25._setBusy(true);
|
|
2211
|
+
const _temp37 = _finallyRethrows(function () {
|
|
2218
2212
|
return _catch(function () {
|
|
2219
|
-
return Promise.resolve(
|
|
2220
|
-
return Promise.resolve(
|
|
2213
|
+
return Promise.resolve(_this25.appManagerInstance.getSectionVisualizations(groupId)).then(function (visualizations) {
|
|
2214
|
+
return Promise.resolve(_this25.appManagerInstance._getSections()).then(function (sections) {
|
|
2221
2215
|
const section = sections.find(oSection => oSection.id === groupId);
|
|
2222
|
-
return Promise.resolve(Promise.all(visualizations.map(oViz =>
|
|
2223
|
-
return Promise.resolve(
|
|
2216
|
+
return Promise.resolve(Promise.all(visualizations.map(oViz => _this25._addVisualization(oViz)))).then(function () {
|
|
2217
|
+
return Promise.resolve(_this25.appManagerInstance._getSections(true)).then(function (updatedSections) {
|
|
2224
2218
|
const defaultSection = updatedSections.find(oSection => oSection.default);
|
|
2225
2219
|
//update personalization
|
|
2226
2220
|
//if preset section, then section shouldn't be deleted, instead remove visualizations inside section
|
|
2227
|
-
return Promise.resolve(
|
|
2221
|
+
return Promise.resolve(_this25._updateAppPersonalization(visualizations.map(oViz => {
|
|
2228
2222
|
return {
|
|
2229
2223
|
visualization: oViz,
|
|
2230
2224
|
targetGroupId: defaultSection?.id,
|
|
2231
2225
|
isTargetGroupDefault: true
|
|
2232
2226
|
};
|
|
2233
2227
|
}))).then(function () {
|
|
2234
|
-
function
|
|
2235
|
-
MessageToast.show(
|
|
2236
|
-
return Promise.resolve(
|
|
2228
|
+
function _temp36() {
|
|
2229
|
+
MessageToast.show(_this25._i18nBundle.getText("appsUngrouped") ?? "");
|
|
2230
|
+
return Promise.resolve(_this25.refresh()).then(function () {});
|
|
2237
2231
|
}
|
|
2238
|
-
const
|
|
2232
|
+
const _temp35 = function () {
|
|
2239
2233
|
if (section?.preset) {
|
|
2240
|
-
return Promise.resolve(
|
|
2234
|
+
return Promise.resolve(_this25.appManagerInstance.removeVisualizations({
|
|
2241
2235
|
sectionId: groupId,
|
|
2242
2236
|
vizIds: visualizations.map(oViz => oViz.visualization?.id)
|
|
2243
2237
|
})).then(function () {});
|
|
2244
2238
|
} else {
|
|
2245
|
-
return Promise.resolve(
|
|
2239
|
+
return Promise.resolve(_this25._deleteGroup(groupId)).then(function () {});
|
|
2246
2240
|
}
|
|
2247
2241
|
}();
|
|
2248
|
-
return
|
|
2242
|
+
return _temp35 && _temp35.then ? _temp35.then(_temp36) : _temp36(_temp35);
|
|
2249
2243
|
});
|
|
2250
2244
|
});
|
|
2251
2245
|
});
|
|
@@ -2253,15 +2247,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2253
2247
|
});
|
|
2254
2248
|
}, function (error) {
|
|
2255
2249
|
Log.error(error);
|
|
2256
|
-
MessageToast.show(
|
|
2250
|
+
MessageToast.show(_this25._i18nBundle.getText("unableToUngroupApps") ?? "");
|
|
2257
2251
|
});
|
|
2258
2252
|
}, function (_wasThrown4, _result4) {
|
|
2259
|
-
|
|
2260
|
-
|
|
2253
|
+
_this25._setBusy(false);
|
|
2254
|
+
_this25._closeGroupDetailDialog();
|
|
2261
2255
|
if (_wasThrown4) throw _result4;
|
|
2262
2256
|
return _result4;
|
|
2263
2257
|
});
|
|
2264
|
-
return Promise.resolve(
|
|
2258
|
+
return Promise.resolve(_temp37 && _temp37.then ? _temp37.then(function () {}) : void 0);
|
|
2265
2259
|
} catch (e) {
|
|
2266
2260
|
return Promise.reject(e);
|
|
2267
2261
|
}
|
|
@@ -2273,26 +2267,25 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2273
2267
|
* @param {boolean} [editMode=false] - Whether to open the dialog in edit mode.
|
|
2274
2268
|
* @private
|
|
2275
2269
|
*/
|
|
2276
|
-
_showGroupDetailDialog: function _showGroupDetailDialog(groupId) {
|
|
2277
|
-
let editMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
2270
|
+
_showGroupDetailDialog: function _showGroupDetailDialog(groupId, editMode = false) {
|
|
2278
2271
|
try {
|
|
2279
|
-
const
|
|
2280
|
-
const group =
|
|
2272
|
+
const _this26 = this;
|
|
2273
|
+
const group = _this26._getGroup(groupId);
|
|
2281
2274
|
if (!group) {
|
|
2282
2275
|
return Promise.resolve();
|
|
2283
2276
|
}
|
|
2284
|
-
|
|
2285
|
-
const dialog =
|
|
2277
|
+
_this26._selectedGroupId = groupId;
|
|
2278
|
+
const dialog = _this26._generateGroupDetailDialog();
|
|
2286
2279
|
//set group icon
|
|
2287
|
-
const groupIconControl =
|
|
2280
|
+
const groupIconControl = _this26._controlMap.get(`${_this26.getId()}-detailDialog-toolbar-color`);
|
|
2288
2281
|
groupIconControl.setColor(Parameters.get({
|
|
2289
2282
|
name: group.getBgColor()
|
|
2290
2283
|
}));
|
|
2291
2284
|
//set group apps
|
|
2292
|
-
return Promise.resolve(
|
|
2285
|
+
return Promise.resolve(_this26._setGroupDetailDialogApps(groupId)).then(function () {
|
|
2293
2286
|
dialog.open();
|
|
2294
2287
|
//set group title
|
|
2295
|
-
|
|
2288
|
+
_this26._setGroupNameControl(group.getTitle(), editMode);
|
|
2296
2289
|
});
|
|
2297
2290
|
} catch (e) {
|
|
2298
2291
|
return Promise.reject(e);
|
|
@@ -2307,29 +2300,29 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2307
2300
|
*/
|
|
2308
2301
|
_setGroupDetailDialogApps: function _setGroupDetailDialogApps(groupId) {
|
|
2309
2302
|
try {
|
|
2310
|
-
const
|
|
2311
|
-
const group =
|
|
2312
|
-
const
|
|
2303
|
+
const _this27 = this;
|
|
2304
|
+
const group = _this27._getGroup(groupId);
|
|
2305
|
+
const _temp38 = function () {
|
|
2313
2306
|
if (group) {
|
|
2314
|
-
return Promise.resolve(
|
|
2307
|
+
return Promise.resolve(_this27.appManagerInstance.getSectionVisualizations(groupId, false)).then(function (appVisualizations) {
|
|
2315
2308
|
group.destroyAggregation("apps", true);
|
|
2316
2309
|
appVisualizations = appVisualizations.map((appVisualization, index) => {
|
|
2317
2310
|
return {
|
|
2318
2311
|
...appVisualization,
|
|
2319
|
-
menuItems:
|
|
2312
|
+
menuItems: _this27._getAppActions(group, index, appVisualization) //add actions to show in group
|
|
2320
2313
|
};
|
|
2321
2314
|
});
|
|
2322
|
-
const apps =
|
|
2323
|
-
const appsWrapper =
|
|
2324
|
-
|
|
2315
|
+
const apps = _this27.generateApps(appVisualizations);
|
|
2316
|
+
const appsWrapper = _this27._controlMap.get(`${_this27.getId()}-detailDialog-apps`);
|
|
2317
|
+
_this27._setAggregation(group, apps, "apps");
|
|
2325
2318
|
appsWrapper.destroyItems();
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2319
|
+
_this27._setAggregation(appsWrapper, group.getApps().map(app => _this27.getParent()._getAppTile(app)));
|
|
2320
|
+
_this27._applyGroupedAppsPersonalization(groupId);
|
|
2321
|
+
_this27._dispatchAppsLoadedEvent(apps);
|
|
2329
2322
|
});
|
|
2330
2323
|
}
|
|
2331
2324
|
}();
|
|
2332
|
-
return Promise.resolve(
|
|
2325
|
+
return Promise.resolve(_temp38 && _temp38.then ? _temp38.then(function () {}) : void 0);
|
|
2333
2326
|
} catch (e) {
|
|
2334
2327
|
return Promise.reject(e);
|
|
2335
2328
|
}
|
|
@@ -2375,10 +2368,13 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2375
2368
|
id: `${id}-toolbar-title`,
|
|
2376
2369
|
visible: true
|
|
2377
2370
|
}));
|
|
2371
|
+
const oInvisibleText = getInvisibleText(`${id}-toolbar-renameTitle`, this._i18nBundle.getText("renameGroup"));
|
|
2372
|
+
this._controlMap.set(`${id}-toolbar-renameTitle`, oInvisibleText);
|
|
2378
2373
|
const oGroupNameInput = new Input({
|
|
2379
2374
|
id: `${id}-toolbar-title-edit`,
|
|
2380
2375
|
width: "13.75rem",
|
|
2381
|
-
visible: false
|
|
2376
|
+
visible: false,
|
|
2377
|
+
ariaLabelledBy: [`${id}-toolbar-renameTitle`]
|
|
2382
2378
|
});
|
|
2383
2379
|
this._controlMap.set(`${id}-toolbar-title-edit`, oGroupNameInput);
|
|
2384
2380
|
oGroupNameInput.onsapfocusleave = () => {
|
|
@@ -2418,7 +2414,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2418
2414
|
}),
|
|
2419
2415
|
escapeHandler: this._closeGroupDetailDialog.bind(this),
|
|
2420
2416
|
customHeader: new Toolbar(`${this.getId()}-toolbar`, {
|
|
2421
|
-
content: [this._controlMap.get(`${id}-toolbar-color`), this._controlMap.get(`${id}-toolbar-title`), this._controlMap.get(`${id}-toolbar-title-edit`), new ToolbarSpacer({
|
|
2417
|
+
content: [this._controlMap.get(`${id}-toolbar-color`), this._controlMap.get(`${id}-toolbar-title`), this._controlMap.get(`${id}-toolbar-title-edit`), this._controlMap.get(`${id}-toolbar-renameTitle`), new ToolbarSpacer({
|
|
2422
2418
|
id: `${this.getId()}-toolbarSpacer`
|
|
2423
2419
|
}), this._controlMap.get(`${id}-addAppsBtn`), new Button({
|
|
2424
2420
|
id: "overflowBtn",
|
|
@@ -2457,25 +2453,25 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2457
2453
|
*/
|
|
2458
2454
|
_onGroupEditName: function _onGroupEditName(updatedTitle) {
|
|
2459
2455
|
try {
|
|
2460
|
-
const
|
|
2461
|
-
function
|
|
2462
|
-
|
|
2463
|
-
|
|
2456
|
+
const _this28 = this;
|
|
2457
|
+
function _temp40() {
|
|
2458
|
+
_this28._setGroupNameControl(updatedTitle, false);
|
|
2459
|
+
_this28._setBusy(false);
|
|
2464
2460
|
}
|
|
2465
|
-
|
|
2466
|
-
const groupId =
|
|
2467
|
-
group =
|
|
2461
|
+
_this28._setBusy(true);
|
|
2462
|
+
const groupId = _this28._selectedGroupId,
|
|
2463
|
+
group = _this28._getGroup(groupId),
|
|
2468
2464
|
oldTitle = group?.getTitle();
|
|
2469
|
-
const
|
|
2465
|
+
const _temp39 = function () {
|
|
2470
2466
|
if (updatedTitle && updatedTitle !== oldTitle) {
|
|
2471
|
-
return Promise.resolve(
|
|
2467
|
+
return Promise.resolve(_this28._renameGroup(groupId, updatedTitle)).then(function () {
|
|
2472
2468
|
group?.setProperty("title", updatedTitle, true);
|
|
2473
|
-
void
|
|
2474
|
-
MessageToast.show(
|
|
2469
|
+
void _this28.refresh();
|
|
2470
|
+
MessageToast.show(_this28._i18nBundle.getText("groupNameChanged") || "");
|
|
2475
2471
|
});
|
|
2476
2472
|
}
|
|
2477
2473
|
}();
|
|
2478
|
-
return Promise.resolve(
|
|
2474
|
+
return Promise.resolve(_temp39 && _temp39.then ? _temp39.then(_temp40) : _temp40(_temp39));
|
|
2479
2475
|
} catch (e) {
|
|
2480
2476
|
return Promise.reject(e);
|
|
2481
2477
|
}
|
|
@@ -2493,12 +2489,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2493
2489
|
const pageIndex = pagesService.getPageIndex(MYHOME_PAGE_ID),
|
|
2494
2490
|
groups = pagesService.getModel().getProperty(`/pages/${pageIndex}/sections/`),
|
|
2495
2491
|
groupIndex = groups.findIndex(group => group.id === groupId);
|
|
2496
|
-
const
|
|
2492
|
+
const _temp41 = function () {
|
|
2497
2493
|
if (groupIndex > -1) {
|
|
2498
2494
|
return Promise.resolve(pagesService.renameSection(pageIndex, groupIndex, updatedTitle)).then(function () {});
|
|
2499
2495
|
}
|
|
2500
2496
|
}();
|
|
2501
|
-
if (
|
|
2497
|
+
if (_temp41 && _temp41.then) return _temp41.then(function () {});
|
|
2502
2498
|
});
|
|
2503
2499
|
} catch (e) {
|
|
2504
2500
|
return Promise.reject(e);
|
|
@@ -2613,11 +2609,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2613
2609
|
*/
|
|
2614
2610
|
_handleAddFromInsights: function _handleAddFromInsights() {
|
|
2615
2611
|
try {
|
|
2616
|
-
const
|
|
2617
|
-
return Promise.resolve(
|
|
2618
|
-
const dialog =
|
|
2619
|
-
|
|
2620
|
-
|
|
2612
|
+
const _this29 = this;
|
|
2613
|
+
return Promise.resolve(_this29._getInsightTilesToAdd()).then(function (appsToAdd) {
|
|
2614
|
+
const dialog = _this29._generateAddFromInsightsDialog();
|
|
2615
|
+
_this29._controlMap.get(`${_this29.getId()}-addFromInsightsDialog-errorMessage`)?.setVisible(appsToAdd.length === 0);
|
|
2616
|
+
_this29._generateInsightListItems(appsToAdd);
|
|
2621
2617
|
dialog.open();
|
|
2622
2618
|
});
|
|
2623
2619
|
} catch (e) {
|
|
@@ -2668,9 +2664,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2668
2664
|
*/
|
|
2669
2665
|
_getInsightTilesToAdd: function _getInsightTilesToAdd() {
|
|
2670
2666
|
try {
|
|
2671
|
-
const
|
|
2672
|
-
return Promise.resolve(Promise.all([
|
|
2673
|
-
let [insightsApps, favoriteApps] = _ref4;
|
|
2667
|
+
const _this30 = this;
|
|
2668
|
+
return Promise.resolve(Promise.all([_this30.appManagerInstance.fetchInsightApps(true, _this30._i18nBundle.getText("insights")), _this30.appManagerInstance.fetchFavVizs(false, true)])).then(function ([insightsApps, favoriteApps]) {
|
|
2674
2669
|
//check force refresh true?
|
|
2675
2670
|
//find the visualizations that are present in insight tile but not in favorite apps
|
|
2676
2671
|
const appsToAdd = insightsApps.reduce((appsToAdd, insightsApp) => {
|
|
@@ -2683,7 +2678,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2683
2678
|
}
|
|
2684
2679
|
return appsToAdd;
|
|
2685
2680
|
}, []);
|
|
2686
|
-
return
|
|
2681
|
+
return _this30.appManagerInstance._filterDuplicateVizs(appsToAdd, false);
|
|
2687
2682
|
});
|
|
2688
2683
|
} catch (e) {
|
|
2689
2684
|
return Promise.reject(e);
|
|
@@ -2715,20 +2710,20 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2715
2710
|
*/
|
|
2716
2711
|
_addFromInsights: function _addFromInsights() {
|
|
2717
2712
|
try {
|
|
2718
|
-
const
|
|
2719
|
-
function
|
|
2720
|
-
|
|
2721
|
-
MessageToast.show(
|
|
2722
|
-
return Promise.resolve(
|
|
2723
|
-
|
|
2713
|
+
const _this31 = this;
|
|
2714
|
+
function _temp43() {
|
|
2715
|
+
_this31._closeAddFromInsightsDialog();
|
|
2716
|
+
MessageToast.show(_this31._i18nBundle.getText(selectedItems.length === 1 ? "addFromInsightTileSuccess" : "addFromInsightTilesSuccess", [selectedItems.length]));
|
|
2717
|
+
return Promise.resolve(_this31.getParent()._refreshAllPanels()).then(function () {
|
|
2718
|
+
_this31._setBusy(false);
|
|
2724
2719
|
});
|
|
2725
2720
|
}
|
|
2726
|
-
|
|
2727
|
-
const selectedItems =
|
|
2728
|
-
const
|
|
2729
|
-
return Promise.resolve(
|
|
2721
|
+
_this31._setBusy(true);
|
|
2722
|
+
const selectedItems = _this31._getSelectedInsights();
|
|
2723
|
+
const _temp42 = _forOf(selectedItems, function (selectedItem) {
|
|
2724
|
+
return Promise.resolve(_this31.appManagerInstance.addVisualization(selectedItem.data("vizId"))).then(function () {});
|
|
2730
2725
|
});
|
|
2731
|
-
return Promise.resolve(
|
|
2726
|
+
return Promise.resolve(_temp42 && _temp42.then ? _temp42.then(_temp43) : _temp43(_temp42));
|
|
2732
2727
|
} catch (e) {
|
|
2733
2728
|
return Promise.reject(e);
|
|
2734
2729
|
}
|
|
@@ -2746,8 +2741,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2746
2741
|
*/
|
|
2747
2742
|
_updateAppPersonalization: function _updateAppPersonalization(updateConfigs) {
|
|
2748
2743
|
try {
|
|
2749
|
-
const
|
|
2750
|
-
return Promise.resolve(
|
|
2744
|
+
const _this32 = this;
|
|
2745
|
+
return Promise.resolve(_this32._getAppPersonalization()).then(function (personalizations) {
|
|
2751
2746
|
for (const updateConfig of updateConfigs) {
|
|
2752
2747
|
const {
|
|
2753
2748
|
visualization
|
|
@@ -2759,13 +2754,13 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2759
2754
|
const targetGroupId = updateConfig.targetGroupId ?? sourceGroupId;
|
|
2760
2755
|
if (sourceGroupId !== targetGroupId) {
|
|
2761
2756
|
//move app scenario
|
|
2762
|
-
|
|
2757
|
+
_this32._updateMoveAppPersonalization(personalizations, updateConfig);
|
|
2763
2758
|
} else {
|
|
2764
2759
|
//only color is updated
|
|
2765
|
-
|
|
2760
|
+
_this32._updateAppColorPersonalization(personalizations, updateConfig);
|
|
2766
2761
|
}
|
|
2767
2762
|
}
|
|
2768
|
-
return Promise.resolve(
|
|
2763
|
+
return Promise.resolve(_this32.setFavAppsPersonalization(personalizations)).then(function () {});
|
|
2769
2764
|
});
|
|
2770
2765
|
} catch (e) {
|
|
2771
2766
|
return Promise.reject(e);
|
|
@@ -2834,9 +2829,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2834
2829
|
*/
|
|
2835
2830
|
_updateGroupPersonalization: function _updateGroupPersonalization(groupId, selectedColor) {
|
|
2836
2831
|
try {
|
|
2837
|
-
const
|
|
2838
|
-
return Promise.resolve(
|
|
2839
|
-
const personalizationIndex =
|
|
2832
|
+
const _this33 = this;
|
|
2833
|
+
return Promise.resolve(_this33._getAppPersonalization()).then(function (personalizations) {
|
|
2834
|
+
const personalizationIndex = _this33._getPersonalizationIndex(personalizations, {
|
|
2840
2835
|
isSection: true,
|
|
2841
2836
|
sectionId: groupId
|
|
2842
2837
|
});
|
|
@@ -2852,7 +2847,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2852
2847
|
} else {
|
|
2853
2848
|
personalizations.push(updatedPersonalization);
|
|
2854
2849
|
}
|
|
2855
|
-
return Promise.resolve(
|
|
2850
|
+
return Promise.resolve(_this33.setFavAppsPersonalization(personalizations)).then(function () {});
|
|
2856
2851
|
});
|
|
2857
2852
|
} catch (e) {
|
|
2858
2853
|
return Promise.reject(e);
|
|
@@ -2909,22 +2904,22 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2909
2904
|
*/
|
|
2910
2905
|
_deleteGroup: function _deleteGroup(groupId) {
|
|
2911
2906
|
try {
|
|
2912
|
-
const
|
|
2907
|
+
const _this34 = this;
|
|
2913
2908
|
return Promise.resolve(Container.getServiceAsync("Pages")).then(function (pagesService) {
|
|
2914
2909
|
const pageIndex = pagesService.getPageIndex(MYHOME_PAGE_ID),
|
|
2915
2910
|
groups = pagesService.getModel().getProperty(`/pages/${pageIndex}/sections/`),
|
|
2916
2911
|
groupIndex = groups.findIndex(group => group.id === groupId);
|
|
2917
|
-
const
|
|
2912
|
+
const _temp44 = function () {
|
|
2918
2913
|
if (groupIndex > -1) {
|
|
2919
2914
|
return Promise.resolve(pagesService.deleteSection(pageIndex, groupIndex)).then(function () {
|
|
2920
|
-
void
|
|
2915
|
+
void _this34._deletePersonalization({
|
|
2921
2916
|
sectionId: groupId,
|
|
2922
2917
|
isSection: true
|
|
2923
2918
|
});
|
|
2924
2919
|
});
|
|
2925
2920
|
}
|
|
2926
2921
|
}();
|
|
2927
|
-
if (
|
|
2922
|
+
if (_temp44 && _temp44.then) return _temp44.then(function () {});
|
|
2928
2923
|
});
|
|
2929
2924
|
} catch (e) {
|
|
2930
2925
|
return Promise.reject(e);
|
|
@@ -2943,14 +2938,14 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2943
2938
|
*/
|
|
2944
2939
|
_deletePersonalization: function _deletePersonalization(personalizationConfig) {
|
|
2945
2940
|
try {
|
|
2946
|
-
const
|
|
2941
|
+
const _this35 = this;
|
|
2947
2942
|
const {
|
|
2948
2943
|
isSection,
|
|
2949
2944
|
sectionId
|
|
2950
2945
|
} = personalizationConfig;
|
|
2951
|
-
return Promise.resolve(
|
|
2946
|
+
return Promise.resolve(_this35._getAppPersonalization()).then(function (personalizations) {
|
|
2952
2947
|
if (!isSection) {
|
|
2953
|
-
const personalizationIndex =
|
|
2948
|
+
const personalizationIndex = _this35._getPersonalizationIndex(personalizations, personalizationConfig);
|
|
2954
2949
|
if (personalizationIndex > -1) {
|
|
2955
2950
|
personalizations.splice(personalizationIndex, 1);
|
|
2956
2951
|
}
|
|
@@ -2958,7 +2953,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2958
2953
|
// Delete personalizations for all associated apps if a group is deleted
|
|
2959
2954
|
personalizations = personalizations.filter(personalization => personalization.sectionId !== sectionId);
|
|
2960
2955
|
}
|
|
2961
|
-
void
|
|
2956
|
+
void _this35.setFavAppsPersonalization(personalizations);
|
|
2962
2957
|
});
|
|
2963
2958
|
} catch (e) {
|
|
2964
2959
|
return Promise.reject(e);
|
|
@@ -2988,33 +2983,33 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2988
2983
|
*/
|
|
2989
2984
|
_handleKeyboardMoveApp: function _handleKeyboardMoveApp(event, appGroupId) {
|
|
2990
2985
|
try {
|
|
2991
|
-
const
|
|
2986
|
+
const _this36 = this;
|
|
2992
2987
|
const currentItem = Element.closestTo(event.target.firstElementChild);
|
|
2993
2988
|
const container = currentItem.getParent();
|
|
2994
|
-
const
|
|
2989
|
+
const _temp46 = function () {
|
|
2995
2990
|
if (event.metaKey || event.ctrlKey) {
|
|
2996
2991
|
// ctrl(windows)/cmd (mac) + x, sets app to be moved to a group, or to create a group
|
|
2997
|
-
if (event.key === "x" && !currentItem.data("groupId") && !
|
|
2992
|
+
if (event.key === "x" && !currentItem.data("groupId") && !_this36._cutApp && !appGroupId) {
|
|
2998
2993
|
currentItem.$().css("opacity", 0.6);
|
|
2999
2994
|
currentItem._oMoreIcon.setEnabled(false);
|
|
3000
|
-
|
|
2995
|
+
_this36._cutApp = currentItem;
|
|
3001
2996
|
}
|
|
3002
|
-
const
|
|
3003
|
-
if (event.key === "v" &&
|
|
2997
|
+
const _temp45 = function () {
|
|
2998
|
+
if (event.key === "v" && _this36._cutApp && !appGroupId) {
|
|
3004
2999
|
const dragDropEvent = new Event("keyboardDragDropEvent", container, {
|
|
3005
|
-
draggedControl:
|
|
3000
|
+
draggedControl: _this36._cutApp,
|
|
3006
3001
|
droppedControl: currentItem,
|
|
3007
3002
|
dropPosition: dnd.RelativeDropPosition.On
|
|
3008
3003
|
});
|
|
3009
|
-
return Promise.resolve(
|
|
3010
|
-
|
|
3004
|
+
return Promise.resolve(_this36._onFavItemDrop(dragDropEvent)).then(function () {
|
|
3005
|
+
_this36._cutApp = undefined;
|
|
3011
3006
|
});
|
|
3012
3007
|
}
|
|
3013
3008
|
}();
|
|
3014
|
-
if (
|
|
3009
|
+
if (_temp45 && _temp45.then) return _temp45.then(function () {});
|
|
3015
3010
|
}
|
|
3016
3011
|
}();
|
|
3017
|
-
return Promise.resolve(
|
|
3012
|
+
return Promise.resolve(_temp46 && _temp46.then ? _temp46.then(function () {}) : void 0);
|
|
3018
3013
|
} catch (e) {
|
|
3019
3014
|
return Promise.reject(e);
|
|
3020
3015
|
}
|