@sapui5/sap.cux.home 1.139.0 → 1.141.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 +7 -0
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js +116 -64
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +50 -15
- package/src/sap/cux/home/App.d.ts +2 -2
- package/src/sap/cux/home/App.js +2 -2
- package/src/sap/cux/home/App.js.map +1 -1
- package/src/sap/cux/home/App.ts +2 -2
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.js +5 -1
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.ts +5 -1
- package/src/sap/cux/home/AppsContainer.d.ts +2 -2
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.js +16 -24
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +16 -23
- package/src/sap/cux/home/BaseApp.d.ts +2 -2
- package/src/sap/cux/home/BaseApp.js +2 -2
- package/src/sap/cux/home/BaseApp.js.map +1 -1
- package/src/sap/cux/home/BaseApp.ts +2 -2
- package/src/sap/cux/home/BaseAppPanel.d.ts +10 -0
- package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.js +22 -2
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +16 -2
- package/src/sap/cux/home/BaseContainer.d.ts +10 -27
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.gen.d.ts +61 -0
- package/src/sap/cux/home/BaseContainer.js +39 -71
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +33 -77
- package/src/sap/cux/home/BaseContainerRenderer.d.ts +2 -0
- package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js +31 -3
- package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.ts +39 -2
- package/src/sap/cux/home/BaseLayout.d.ts +2 -2
- package/src/sap/cux/home/BaseLayout.d.ts.map +1 -1
- package/src/sap/cux/home/BaseLayout.js +5 -4
- package/src/sap/cux/home/BaseLayout.js.map +1 -1
- package/src/sap/cux/home/BaseLayout.ts +5 -4
- package/src/sap/cux/home/BaseNewsItem.d.ts +2 -2
- package/src/sap/cux/home/BaseNewsItem.js +2 -2
- package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
- package/src/sap/cux/home/BaseNewsItem.ts +2 -2
- package/src/sap/cux/home/BaseNewsPanel.d.ts +4 -3
- package/src/sap/cux/home/BaseNewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.js +14 -3
- package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.ts +11 -5
- package/src/sap/cux/home/BasePagePanel.d.ts +2 -2
- package/src/sap/cux/home/BasePagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePagePanel.js +10 -2
- package/src/sap/cux/home/BasePagePanel.js.map +1 -1
- package/src/sap/cux/home/BasePagePanel.ts +6 -2
- package/src/sap/cux/home/BasePanel.d.ts +2 -21
- package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePanel.gen.d.ts +109 -0
- package/src/sap/cux/home/BasePanel.js +15 -31
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +11 -34
- package/src/sap/cux/home/BaseSettingsDialog.d.ts +2 -2
- package/src/sap/cux/home/BaseSettingsDialog.js +2 -2
- package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.ts +2 -2
- package/src/sap/cux/home/BaseSettingsPanel.d.ts +11 -2
- package/src/sap/cux/home/BaseSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.js +15 -2
- package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.ts +17 -2
- package/src/sap/cux/home/CardsPanel.d.ts +2 -2
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.js +15 -7
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +11 -7
- package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.js +0 -1
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.ts +0 -1
- package/src/sap/cux/home/ErrorPanel.d.ts +2 -2
- package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ErrorPanel.js +15 -5
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +11 -5
- package/src/sap/cux/home/FavAppPanel.d.ts +6 -2
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +196 -154
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +59 -37
- package/src/sap/cux/home/FrequentAppPanel.d.ts +2 -2
- package/src/sap/cux/home/FrequentAppPanel.js +2 -2
- package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.ts +2 -2
- package/src/sap/cux/home/Group.d.ts +2 -2
- package/src/sap/cux/home/Group.js +2 -2
- package/src/sap/cux/home/Group.js.map +1 -1
- package/src/sap/cux/home/Group.ts +2 -2
- package/src/sap/cux/home/IToDoPanel.d.ts +2 -2
- package/src/sap/cux/home/IToDoPanel.js.map +1 -1
- package/src/sap/cux/home/IToDoPanel.ts +2 -2
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +3 -1
- package/src/sap/cux/home/InsightsContainer.d.ts +4 -4
- package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsContainer.js +8 -13
- package/src/sap/cux/home/InsightsContainer.js.map +1 -1
- package/src/sap/cux/home/InsightsContainer.ts +7 -12
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +2 -2
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +2 -3
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +4 -4
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +6 -4
- package/src/sap/cux/home/KeyUserSettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.js +18 -12
- package/src/sap/cux/home/KeyUserSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/KeyUserSettingsDialog.ts +9 -5
- package/src/sap/cux/home/Layout.d.ts +2 -3
- package/src/sap/cux/home/Layout.d.ts.map +1 -1
- package/src/sap/cux/home/Layout.js +35 -42
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +15 -19
- package/src/sap/cux/home/MenuItem.d.ts +2 -2
- package/src/sap/cux/home/MenuItem.js +2 -2
- package/src/sap/cux/home/MenuItem.js.map +1 -1
- package/src/sap/cux/home/MenuItem.ts +2 -2
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts +11 -7
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js +22 -26
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.ts +26 -32
- package/src/sap/cux/home/NewsPanel.d.ts +10 -2
- package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.js +23 -16
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +24 -18
- package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +2 -2
- package/src/sap/cux/home/NoDataContainer.d.ts +2 -2
- package/src/sap/cux/home/NoDataContainer.js +3 -3
- package/src/sap/cux/home/NoDataContainer.js.map +1 -1
- package/src/sap/cux/home/NoDataContainer.ts +3 -3
- package/src/sap/cux/home/PagePanel.d.ts +11 -3
- package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/PagePanel.js +21 -7
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +22 -8
- package/src/sap/cux/home/RecentAppPanel.d.ts +2 -2
- package/src/sap/cux/home/RecentAppPanel.js +2 -2
- package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.ts +2 -2
- package/src/sap/cux/home/RecommendedAppPanel.d.ts +2 -2
- package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js +15 -9
- package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.ts +11 -6
- package/src/sap/cux/home/SettingsDialog.d.ts +1 -0
- package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/SettingsDialog.js +13 -6
- package/src/sap/cux/home/SettingsDialog.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.ts +14 -6
- package/src/sap/cux/home/SideBySideIconTabFilter.d.ts +48 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.d.ts.map +1 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.gen.d.ts +33 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.js +84 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.js.map +1 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.ts +88 -0
- package/src/sap/cux/home/SituationPanel.d.ts +2 -2
- package/src/sap/cux/home/SituationPanel.js +2 -2
- package/src/sap/cux/home/SituationPanel.js.map +1 -1
- package/src/sap/cux/home/SituationPanel.ts +2 -2
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts +2 -2
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.js +11 -3
- package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.ts +7 -3
- package/src/sap/cux/home/SpacePanel.d.ts +2 -2
- package/src/sap/cux/home/SpacePanel.js +2 -2
- package/src/sap/cux/home/SpacePanel.js.map +1 -1
- package/src/sap/cux/home/SpacePanel.ts +2 -2
- package/src/sap/cux/home/TaskPanel.d.ts +2 -2
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.js +5 -3
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +4 -3
- package/src/sap/cux/home/TilesPanel.d.ts +2 -3
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.js +89 -59
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +93 -70
- package/src/sap/cux/home/ToDoPanel.d.ts +2 -2
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +13 -3
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +9 -3
- package/src/sap/cux/home/ToDosContainer.d.ts +2 -3
- package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
- package/src/sap/cux/home/ToDosContainer.js +3 -8
- package/src/sap/cux/home/ToDosContainer.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.ts +2 -9
- package/src/sap/cux/home/changeHandler/LayoutHandler.d.ts +1 -2
- package/src/sap/cux/home/changeHandler/LayoutHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/LayoutHandler.js +0 -3
- package/src/sap/cux/home/changeHandler/LayoutHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/LayoutHandler.ts +2 -6
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +0 -3
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +0 -3
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +0 -3
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +0 -3
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +0 -3
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +0 -3
- package/src/sap/cux/home/designtime/Layout.designtime.d.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 +4 -3
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +3 -2
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +0 -2
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.js +0 -2
- package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.ts +0 -2
- package/src/sap/cux/home/i18n/messagebundle.properties +6 -9
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_da.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_de.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_el.properties +18 -14
- package/src/sap/cux/home/i18n/messagebundle_en.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +5 -7
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +5 -7
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_es.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_et.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +14 -10
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_id.properties +16 -12
- package/src/sap/cux/home/i18n/messagebundle_it.properties +13 -9
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_no.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +22 -18
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_th.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +12 -8
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +12 -8
- package/src/sap/cux/home/library.d.ts +10 -6
- package/src/sap/cux/home/library.d.ts.map +1 -1
- package/src/sap/cux/home/library.js +11 -6
- 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 +31 -0
- package/src/sap/cux/home/themes/base/KeyUserSettingsDialog.less +5 -0
- package/src/sap/cux/home/themes/base/ToDosContainer.less +0 -4
- package/src/sap/cux/home/utils/AppManager.d.ts +7 -6
- package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/AppManager.js +1 -1
- package/src/sap/cux/home/utils/AppManager.js.map +1 -1
- package/src/sap/cux/home/utils/AppManager.ts +9 -10
- package/src/sap/cux/home/utils/BatchHelper.d.ts.map +1 -1
- package/src/sap/cux/home/utils/BatchHelper.js +1 -1
- package/src/sap/cux/home/utils/BatchHelper.js.map +1 -1
- package/src/sap/cux/home/utils/BatchHelper.ts +4 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts +0 -4
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts.map +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 -2
- package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts +0 -19
- package/src/sap/cux/home/utils/KeyUserPersonalization.d.ts.map +0 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.js +0 -126
- package/src/sap/cux/home/utils/KeyUserPersonalization.js.map +0 -1
- package/src/sap/cux/home/utils/KeyUserPersonalization.ts +0 -93
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
3
|
* * (c) Copyright 2009-2025 SAP SE. All rights reserved
|
|
4
4
|
*/
|
|
5
|
-
sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettings", "sap/m/Button", "sap/m/ColorPalette", "sap/m/ColorPalettePopover", "sap/m/CustomListItem", "sap/m/Dialog", "sap/m/HBox", "sap/m/IllustratedMessage", "sap/m/IllustratedMessageSize", "sap/m/IllustratedMessageType", "sap/m/Input", "sap/m/Label", "sap/m/List", "sap/m/MessageBox", "sap/m/MessageStrip", "sap/m/MessageToast", "sap/m/NavContainer", "sap/m/ObjectIdentifier", "sap/m/Page", "sap/m/Popover", "sap/m/ScrollContainer", "sap/m/SearchField", "sap/m/StandardListItem", "sap/m/Text", "sap/m/Title", "sap/m/Toolbar", "sap/m/ToolbarSpacer", "sap/m/VBox", "sap/m/library", "sap/ui/base/Event", "sap/ui/core/Element", "sap/ui/core/EventBus", "sap/ui/core/Icon", "sap/ui/core/library", "sap/ui/core/message/MessageType", "sap/ui/core/theming/Parameters", "sap/ui/layout/form/SimpleForm", "sap/ui/layout/library", "sap/ushell/Config", "sap/ushell/Container", "sap/ushell/components/pages/MyHomeImport", "sap/ushell/components/pages/controller/PageRuntime.controller", "./BaseApp", "./BaseAppPersPanel", "./Group", "./MenuItem", "./RecommendedAppPanel", "./utils/Accessibility", "./utils/Constants", "./utils/DataFormatUtils", "./utils/FESRUtil", "./utils/InsightsUtils"], function (Log, GridContainer, GridContainerSettings, Button, ColorPalette, ColorPalettePopover, CustomListItem, Dialog, HBox, IllustratedMessage, IllustratedMessageSize, IllustratedMessageType, Input, Label, List, MessageBox, MessageStrip, MessageToast, NavContainer, ObjectIdentifier, Page, Popover, ScrollContainer, SearchField, StandardListItem, Text, Title, Toolbar, ToolbarSpacer, VBox, sap_m_library, Event, Element, EventBus, Icon, sap_ui_core_library, MessageType, Parameters, SimpleForm, sap_ui_layout_library, Config, Container, MyHomeImport, PageRuntime, ___BaseApp, __BaseAppPersPanel, __Group, __MenuItem, __RecommendedAppPanel, ___utils_Accessibility, ___utils_Constants, ___utils_DataFormatUtils, ___utils_FESRUtil, ___utils_InsightsUtils) {
|
|
5
|
+
sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettings", "sap/m/Button", "sap/m/ColorPalette", "sap/m/ColorPalettePopover", "sap/m/CustomListItem", "sap/m/Dialog", "sap/m/HBox", "sap/m/IllustratedMessage", "sap/m/IllustratedMessageSize", "sap/m/IllustratedMessageType", "sap/m/Input", "sap/m/Label", "sap/m/List", "sap/m/MessageBox", "sap/m/MessageStrip", "sap/m/MessageToast", "sap/m/NavContainer", "sap/m/ObjectIdentifier", "sap/m/Page", "sap/m/Popover", "sap/m/ScrollContainer", "sap/m/SearchField", "sap/m/StandardListItem", "sap/m/Text", "sap/m/Title", "sap/m/Toolbar", "sap/m/ToolbarSpacer", "sap/m/VBox", "sap/m/library", "sap/ui/base/Event", "sap/ui/core/Element", "sap/ui/core/EventBus", "sap/ui/core/Icon", "sap/ui/core/library", "sap/ui/core/message/MessageType", "sap/ui/core/theming/Parameters", "sap/ui/layout/form/SimpleForm", "sap/ui/layout/library", "sap/ushell/Config", "sap/ushell/Container", "sap/ushell/components/pages/MyHomeImport", "sap/ushell/components/pages/controller/PageRuntime.controller", "./BaseApp", "./BaseAppPersPanel", "./Group", "./MenuItem", "./RecommendedAppPanel", "./utils/Accessibility", "./utils/Constants", "./utils/DataFormatUtils", "./utils/Device", "./utils/FESRUtil", "./utils/InsightsUtils"], function (Log, GridContainer, GridContainerSettings, Button, ColorPalette, ColorPalettePopover, CustomListItem, Dialog, HBox, IllustratedMessage, IllustratedMessageSize, IllustratedMessageType, Input, Label, List, MessageBox, MessageStrip, MessageToast, NavContainer, ObjectIdentifier, Page, Popover, ScrollContainer, SearchField, StandardListItem, Text, Title, Toolbar, ToolbarSpacer, VBox, sap_m_library, Event, Element, EventBus, Icon, sap_ui_core_library, MessageType, Parameters, SimpleForm, sap_ui_layout_library, Config, Container, MyHomeImport, PageRuntime, ___BaseApp, __BaseAppPersPanel, __Group, __MenuItem, __RecommendedAppPanel, ___utils_Accessibility, ___utils_Constants, ___utils_DataFormatUtils, ___utils_Device, ___utils_FESRUtil, ___utils_InsightsUtils) {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
8
|
function _interopRequireDefault(obj) {
|
|
@@ -202,6 +202,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
202
202
|
const MYHOME_PAGE_ID = ___utils_Constants["MYHOME_PAGE_ID"];
|
|
203
203
|
const getLeanURL = ___utils_DataFormatUtils["getLeanURL"];
|
|
204
204
|
const recycleId = ___utils_DataFormatUtils["recycleId"];
|
|
205
|
+
const DeviceType = ___utils_Device["DeviceType"];
|
|
205
206
|
const addFESRId = ___utils_FESRUtil["addFESRId"];
|
|
206
207
|
const addFESRSemanticStepName = ___utils_FESRUtil["addFESRSemanticStepName"];
|
|
207
208
|
const sortMenuItems = ___utils_InsightsUtils["sortMenuItems"];
|
|
@@ -228,8 +229,8 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
228
229
|
* @version 0.0.1
|
|
229
230
|
* @since 1.121.0
|
|
230
231
|
*
|
|
231
|
-
* @
|
|
232
|
-
* @
|
|
232
|
+
* @private
|
|
233
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
233
234
|
*
|
|
234
235
|
* @alias sap.cux.home.FavAppPanel
|
|
235
236
|
*/
|
|
@@ -368,60 +369,59 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
368
369
|
const _this3 = this;
|
|
369
370
|
let aPromise = [];
|
|
370
371
|
return Promise.resolve(_this3._getAppPersonalization()).then(function (aPersonalization) {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
return
|
|
375
|
-
return
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
return _this3.updateDefaultSectionPersonalization(aPersonalization);
|
|
379
|
-
});
|
|
372
|
+
function _temp5() {
|
|
373
|
+
//update personalization
|
|
374
|
+
return Promise.resolve(_this3.setFavAppsPersonalization(aPersonalization)).then(function () {
|
|
375
|
+
return aPromise.reduce((chain, current) => {
|
|
376
|
+
return chain.then(() => current());
|
|
377
|
+
}, Promise.resolve()).then(() => {
|
|
378
|
+
return _this3.updateDefaultSectionPersonalization(aPersonalization);
|
|
380
379
|
});
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
return
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
const _temp4 = _forOf(sections, function (section) {
|
|
383
|
+
const sectionViz = section.visualizations;
|
|
384
|
+
const _temp3 = function () {
|
|
385
|
+
if (sectionViz?.length) {
|
|
386
|
+
function _temp2() {
|
|
387
|
+
const filteredPersonalizations = _this3.filterPersonalizations(importedPersonalizations, section);
|
|
388
|
+
aPersonalization = aPersonalization.concat(filteredPersonalizations);
|
|
389
|
+
}
|
|
390
|
+
const _temp = function () {
|
|
391
|
+
if (section.default || section.id === MYAPPS_SECTION_ID) {
|
|
392
|
+
aPromise.push(() => {
|
|
393
|
+
return section.default ? _this3.addSectionViz(sectionViz) : _this3.addSectionViz(sectionViz, MYAPPS_SECTION_ID);
|
|
394
|
+
});
|
|
395
|
+
} else {
|
|
396
|
+
return Promise.resolve(_this3.appManagerInstance._getSections(true)).then(function (sections) {
|
|
397
|
+
// If Section exists, add visualization to existing section else create a new section with same sectionId
|
|
398
|
+
const sectionIndex = sections.findIndex(n => n.id === section.id);
|
|
399
|
+
if (sectionIndex > -1) {
|
|
400
|
+
aPromise.push(() => {
|
|
401
|
+
return _this3.addSectionViz(sectionViz, section.id);
|
|
402
|
+
});
|
|
403
|
+
} else {
|
|
400
404
|
aPromise.push(() => {
|
|
401
405
|
return _this3.appManagerInstance.addSection({
|
|
402
406
|
sectionIndex: sections.length,
|
|
403
407
|
sectionProperties: {
|
|
404
|
-
id:
|
|
408
|
+
id: section.id,
|
|
405
409
|
title: section.title,
|
|
406
410
|
visible: true,
|
|
407
|
-
visualizations: sectionViz
|
|
408
|
-
//check if this generate id can be replaced with any exposed method
|
|
409
|
-
oViz.id = pagesService._generateId(MYHOME_PAGE_ID);
|
|
410
|
-
return oViz;
|
|
411
|
-
})
|
|
411
|
+
visualizations: sectionViz
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
414
|
});
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
});
|
|
423
|
-
return _temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3);
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
}();
|
|
419
|
+
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
420
|
+
}
|
|
421
|
+
}();
|
|
422
|
+
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
424
423
|
});
|
|
424
|
+
return _temp4 && _temp4.then ? _temp4.then(_temp5) : _temp5(_temp4);
|
|
425
425
|
});
|
|
426
426
|
} catch (e) {
|
|
427
427
|
return Promise.reject(e);
|
|
@@ -486,16 +486,47 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
486
486
|
*
|
|
487
487
|
* @param {Array} sectionsViz - array of section visualizations
|
|
488
488
|
* @param {String} sSectionId - section id for which visualizations needs to be added
|
|
489
|
+
* @param {Array} sections - array of sections
|
|
489
490
|
* @returns {String} resolves to visualizations being added to given section
|
|
490
491
|
*/
|
|
491
492
|
addSectionViz: function _addSectionViz(sectionsViz, sSectionId) {
|
|
492
493
|
try {
|
|
493
494
|
const _this5 = this;
|
|
494
495
|
return Promise.resolve(sectionsViz.reduce((promiseChain, oViz) => {
|
|
495
|
-
return promiseChain.then(()
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
496
|
+
return promiseChain.then(function () {
|
|
497
|
+
try {
|
|
498
|
+
let _exit = false;
|
|
499
|
+
function _temp7(_result) {
|
|
500
|
+
return _exit ? _result : _this5._addVisualization({
|
|
501
|
+
visualization: oViz
|
|
502
|
+
}, sSectionId);
|
|
503
|
+
}
|
|
504
|
+
const _temp6 = function () {
|
|
505
|
+
if (oViz.isBookmark && sSectionId) {
|
|
506
|
+
return Promise.resolve(_this5.appManagerInstance._getSections()).then(function (sections) {
|
|
507
|
+
const defaultSection = sections.find(section => section.default);
|
|
508
|
+
const targetSection = sections.find(section => section.id === sSectionId);
|
|
509
|
+
if (defaultSection && targetSection) {
|
|
510
|
+
const moveConfig = {
|
|
511
|
+
sourceSectionIndex: sections.indexOf(defaultSection),
|
|
512
|
+
sourceVisualizationIndex: defaultSection.visualizations.length,
|
|
513
|
+
targetSectionIndex: sections.indexOf(targetSection),
|
|
514
|
+
targetVisualizationIndex: targetSection.visualizations.length
|
|
515
|
+
};
|
|
516
|
+
const _this5$_addVisualizat = _this5._addVisualization({
|
|
517
|
+
visualization: oViz
|
|
518
|
+
}, sSectionId, moveConfig);
|
|
519
|
+
_exit = true;
|
|
520
|
+
return _this5$_addVisualizat;
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
}();
|
|
525
|
+
// in case of bookmark, move the viz to target section
|
|
526
|
+
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp7) : _temp7(_temp6));
|
|
527
|
+
} catch (e) {
|
|
528
|
+
return Promise.reject(e);
|
|
529
|
+
}
|
|
499
530
|
});
|
|
500
531
|
}, Promise.resolve()));
|
|
501
532
|
} catch (e) {
|
|
@@ -510,6 +541,14 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
510
541
|
try {
|
|
511
542
|
const _this6 = this;
|
|
512
543
|
return Promise.resolve(_this6.appManagerInstance.fetchFavVizs(true, false)).then(function (favoriteVisualizations) {
|
|
544
|
+
function _temp9() {
|
|
545
|
+
if (checkPanelExists(container, insightsConatinerlName, tilesPanelName)) {
|
|
546
|
+
_this6._createAddFromInsTilesMenuItem(favouritesMenuItems.ADD_FROM_INSIGHTS);
|
|
547
|
+
}
|
|
548
|
+
//updating header once the visibility for createGrp menu item is set according to the no. of apps
|
|
549
|
+
container._updateContainerHeader(container);
|
|
550
|
+
}
|
|
551
|
+
const isPhone = _this6.getDeviceType() === DeviceType.Mobile;
|
|
513
552
|
//Create groups
|
|
514
553
|
_this6.destroyAggregation("groups", true);
|
|
515
554
|
const groupVisualizations = favoriteVisualizations.filter(visualization => visualization.isSection).map(groupVisualization => {
|
|
@@ -536,13 +575,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
536
575
|
}
|
|
537
576
|
const container = _this6.getParent();
|
|
538
577
|
container.toggleMenuListItem(_this6._createGroupMenuItem, _this6.getApps().length > 0);
|
|
539
|
-
|
|
540
|
-
if (
|
|
541
|
-
_this6.
|
|
578
|
+
const _temp8 = function () {
|
|
579
|
+
if (!isPhone) {
|
|
580
|
+
return Promise.resolve(_this6._switchToRecommendedIfNoFavApps(apps, groups)).then(function () {});
|
|
542
581
|
}
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
});
|
|
582
|
+
}();
|
|
583
|
+
return _temp8 && _temp8.then ? _temp8.then(_temp9) : _temp9(_temp8);
|
|
546
584
|
});
|
|
547
585
|
} catch (e) {
|
|
548
586
|
return Promise.reject(e);
|
|
@@ -559,19 +597,19 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
559
597
|
_switchToRecommendedIfNoFavApps: function _switchToRecommendedIfNoFavApps(apps, groups) {
|
|
560
598
|
try {
|
|
561
599
|
const _this7 = this;
|
|
562
|
-
function
|
|
600
|
+
function _temp1() {
|
|
563
601
|
_this7._isInitialLoad = false;
|
|
564
602
|
}
|
|
565
603
|
const container = _this7.getParent();
|
|
566
604
|
const panels = container.getContent();
|
|
567
605
|
const recommendedPanel = panels ? panels.find(panel => panel instanceof RecommendedAppPanel) : null;
|
|
568
|
-
const
|
|
569
|
-
if (_this7._isInitialLoad && [...apps, ...groups].length === 0 && recommendedPanel) {
|
|
606
|
+
const _temp0 = function () {
|
|
607
|
+
if (_this7._isInitialLoad && [...apps, ...groups].length === 0 && recommendedPanel?.isSupported()) {
|
|
570
608
|
container.setProperty?.("selectedKey", "recommendedApps");
|
|
571
609
|
return Promise.resolve(container.refreshPanel(recommendedPanel)).then(function () {});
|
|
572
610
|
}
|
|
573
611
|
}();
|
|
574
|
-
return Promise.resolve(
|
|
612
|
+
return Promise.resolve(_temp0 && _temp0.then ? _temp0.then(_temp1) : _temp1(_temp0));
|
|
575
613
|
} catch (e) {
|
|
576
614
|
return Promise.reject(e);
|
|
577
615
|
}
|
|
@@ -657,7 +695,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
657
695
|
const isUngroupedApp = !groupId;
|
|
658
696
|
const appActions = [];
|
|
659
697
|
const selectColorMenuItem = new MenuItem({
|
|
660
|
-
id: groupId && !defaultSection ? recycleId(
|
|
698
|
+
id: groupId && !defaultSection ? recycleId(`_${groupId}--selectColorGroupAppMenuItem--${index}`) : recycleId(`_${this.getKey()}--selectColorAppMenuItem--${index}`),
|
|
661
699
|
title: this._i18nBundle.getText("selectColor"),
|
|
662
700
|
type: ListType.Navigation,
|
|
663
701
|
press: this._openColorPopover.bind(this)
|
|
@@ -666,7 +704,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
666
704
|
addFESRId(selectColorMenuItem, "changeColor");
|
|
667
705
|
if (this._getAllowedMoveGroups(groupId)?.length >= 1) {
|
|
668
706
|
const moveToMenuItem = new MenuItem({
|
|
669
|
-
id: groupId && !defaultSection ? recycleId(
|
|
707
|
+
id: groupId && !defaultSection ? recycleId(`_${groupId}--moveToGroupAppMenuItem--${index}`) : recycleId(`_${this.getKey()}--moveToMenuItem--${index}`),
|
|
670
708
|
title: this._i18nBundle.getText("moveTo"),
|
|
671
709
|
type: ListType.Navigation,
|
|
672
710
|
press: event => this._openMoveToGroupPopover(event, group)
|
|
@@ -688,7 +726,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
688
726
|
addFESRId(createGroupMenuItem, "createGroupDialog");
|
|
689
727
|
}
|
|
690
728
|
const removeFromMyHomeMenuItem = new MenuItem({
|
|
691
|
-
id: groupId && !defaultSection ? recycleId(
|
|
729
|
+
id: groupId && !defaultSection ? recycleId(`_${groupId}--removeFromMyHomeGroupAppMenuItem--${index}`) : recycleId(`_${this.getKey()}--removeFromMyHomeMenuItem--${index}`),
|
|
692
730
|
title: this._i18nBundle.getText("removeFromMyHome"),
|
|
693
731
|
press: event => {
|
|
694
732
|
const source = event.getSource();
|
|
@@ -863,24 +901,24 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
863
901
|
dropItemIndex
|
|
864
902
|
};
|
|
865
903
|
//adjust drap drop info
|
|
866
|
-
const
|
|
904
|
+
const _temp12 = function () {
|
|
867
905
|
if (dragItemIndex !== dropItemIndex) {
|
|
868
|
-
const
|
|
906
|
+
const _temp11 = function () {
|
|
869
907
|
if (!(dragItem instanceof Group) && !(dropItem instanceof Group)) {
|
|
870
908
|
return Promise.resolve(_this0._adjustAppDragDropInfo(dragDropInfo, appGroupId)).then(function () {});
|
|
871
909
|
} else {
|
|
872
|
-
const
|
|
910
|
+
const _temp10 = function () {
|
|
873
911
|
if (dragItem instanceof Group) {
|
|
874
912
|
return Promise.resolve(_this0._adjustGroupDragDropInfo(dragDropInfo)).then(function () {});
|
|
875
913
|
}
|
|
876
914
|
}();
|
|
877
|
-
if (
|
|
915
|
+
if (_temp10 && _temp10.then) return _temp10.then(function () {});
|
|
878
916
|
}
|
|
879
917
|
}();
|
|
880
|
-
if (
|
|
918
|
+
if (_temp11 && _temp11.then) return _temp11.then(function () {});
|
|
881
919
|
}
|
|
882
920
|
}();
|
|
883
|
-
return Promise.resolve(
|
|
921
|
+
return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(function () {
|
|
884
922
|
return dragDropInfo;
|
|
885
923
|
}) : dragDropInfo);
|
|
886
924
|
} catch (e) {
|
|
@@ -986,7 +1024,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
986
1024
|
const _this11 = this;
|
|
987
1025
|
const dragTile = event.getParameter?.("draggedControl");
|
|
988
1026
|
return Promise.resolve(_this11._getDragDropInfo(event, appGroupId)).then(function (dragDropInfo) {
|
|
989
|
-
function
|
|
1027
|
+
function _temp15() {
|
|
990
1028
|
dragTile.removeStyleClass("sapMGTPressActive");
|
|
991
1029
|
}
|
|
992
1030
|
const {
|
|
@@ -997,13 +1035,13 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
997
1035
|
dropItem
|
|
998
1036
|
} = dragDropInfo;
|
|
999
1037
|
if (dragItemIndex === dropItemIndex) return;
|
|
1000
|
-
const
|
|
1038
|
+
const _temp14 = function () {
|
|
1001
1039
|
if (dropPosition === dnd.RelativeDropPosition.On) {
|
|
1002
1040
|
return Promise.resolve(_this11._handleOnItemDrop(dragItem, dropItem)).then(function () {
|
|
1003
1041
|
void _this11.refresh();
|
|
1004
1042
|
});
|
|
1005
1043
|
} else {
|
|
1006
|
-
const
|
|
1044
|
+
const _temp13 = function () {
|
|
1007
1045
|
if (dropPosition === dnd.RelativeDropPosition.After || dropPosition === dnd.RelativeDropPosition.Before) {
|
|
1008
1046
|
_this11._setBusy(true);
|
|
1009
1047
|
return Promise.resolve(_this11._handleItemsReorder(dragDropInfo, appGroupId)).then(function () {
|
|
@@ -1016,10 +1054,10 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1016
1054
|
});
|
|
1017
1055
|
}
|
|
1018
1056
|
}();
|
|
1019
|
-
if (
|
|
1057
|
+
if (_temp13 && _temp13.then) return _temp13.then(function () {});
|
|
1020
1058
|
}
|
|
1021
1059
|
}();
|
|
1022
|
-
return
|
|
1060
|
+
return _temp14 && _temp14.then ? _temp14.then(_temp15) : _temp15(_temp14);
|
|
1023
1061
|
});
|
|
1024
1062
|
} catch (e) {
|
|
1025
1063
|
return Promise.reject(e);
|
|
@@ -1038,7 +1076,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1038
1076
|
try {
|
|
1039
1077
|
const _this12 = this;
|
|
1040
1078
|
if (dragItem instanceof Group) return Promise.resolve();
|
|
1041
|
-
const
|
|
1079
|
+
const _temp16 = function () {
|
|
1042
1080
|
if (!(dropItem instanceof Group)) {
|
|
1043
1081
|
//if both dragged and dropped items are apps, create group dialog is opened.
|
|
1044
1082
|
const dragApp = dragItem;
|
|
@@ -1054,7 +1092,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1054
1092
|
});
|
|
1055
1093
|
}
|
|
1056
1094
|
}();
|
|
1057
|
-
return Promise.resolve(
|
|
1095
|
+
return Promise.resolve(_temp16 && _temp16.then ? _temp16.then(function () {}) : void 0);
|
|
1058
1096
|
} catch (e) {
|
|
1059
1097
|
return Promise.reject(e);
|
|
1060
1098
|
}
|
|
@@ -1076,7 +1114,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1076
1114
|
} = dragDropInfo;
|
|
1077
1115
|
const isDragItemGroup = dragItem.getMetadata()?.getName() === "sap.cux.home.Group";
|
|
1078
1116
|
const isDropItemGroup = dropItem.getMetadata()?.getName() === "sap.cux.home.Group";
|
|
1079
|
-
const
|
|
1117
|
+
const _temp18 = function () {
|
|
1080
1118
|
if (!isDragItemGroup && !isDropItemGroup) {
|
|
1081
1119
|
const drapApp = dragItem;
|
|
1082
1120
|
const dropApp = dropItem;
|
|
@@ -1089,15 +1127,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1089
1127
|
})).then(function () {});
|
|
1090
1128
|
});
|
|
1091
1129
|
} else {
|
|
1092
|
-
const
|
|
1130
|
+
const _temp17 = function () {
|
|
1093
1131
|
if (isDragItemGroup && isDropItemGroup) {
|
|
1094
1132
|
return Promise.resolve(_this13.appManagerInstance.moveSection(dragItemIndex, dropItemIndex)).then(function () {});
|
|
1095
1133
|
}
|
|
1096
1134
|
}();
|
|
1097
|
-
if (
|
|
1135
|
+
if (_temp17 && _temp17.then) return _temp17.then(function () {});
|
|
1098
1136
|
}
|
|
1099
1137
|
}();
|
|
1100
|
-
return Promise.resolve(
|
|
1138
|
+
return Promise.resolve(_temp18 && _temp18.then ? _temp18.then(function () {}) : void 0);
|
|
1101
1139
|
} catch (e) {
|
|
1102
1140
|
return Promise.reject(e);
|
|
1103
1141
|
}
|
|
@@ -1523,12 +1561,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1523
1561
|
try {
|
|
1524
1562
|
const _this14 = this;
|
|
1525
1563
|
const groupNameInput = _this14._controlMap.get(`${_this14.getId()}-createGroupDialog-mainPage-form-groupName-input`);
|
|
1526
|
-
const
|
|
1564
|
+
const _temp21 = function () {
|
|
1527
1565
|
if (_this14._validateGroupName()) {
|
|
1528
|
-
const
|
|
1566
|
+
const _temp20 = function () {
|
|
1529
1567
|
if (_this14._selectedApps?.length) {
|
|
1530
1568
|
_this14._setBusy(true);
|
|
1531
|
-
const
|
|
1569
|
+
const _temp19 = _finallyRethrows(function () {
|
|
1532
1570
|
return _catch(function () {
|
|
1533
1571
|
return Promise.resolve(_this14._createGroup({
|
|
1534
1572
|
selectedApps: _this14._selectedApps,
|
|
@@ -1549,21 +1587,21 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1549
1587
|
Log.error(err);
|
|
1550
1588
|
MessageToast.show(_this14._i18nBundle.getText("unableToCreateGroup"));
|
|
1551
1589
|
});
|
|
1552
|
-
}, function (_wasThrown,
|
|
1590
|
+
}, function (_wasThrown, _result2) {
|
|
1553
1591
|
_this14._setBusy(false);
|
|
1554
1592
|
_this14._closeCreateGroupDialog();
|
|
1555
|
-
if (_wasThrown) throw
|
|
1556
|
-
return
|
|
1593
|
+
if (_wasThrown) throw _result2;
|
|
1594
|
+
return _result2;
|
|
1557
1595
|
});
|
|
1558
|
-
if (
|
|
1596
|
+
if (_temp19 && _temp19.then) return _temp19.then(function () {});
|
|
1559
1597
|
} else {
|
|
1560
1598
|
_this14._setNoAppsSelectedError(true);
|
|
1561
1599
|
}
|
|
1562
1600
|
}();
|
|
1563
|
-
if (
|
|
1601
|
+
if (_temp20 && _temp20.then) return _temp20.then(function () {});
|
|
1564
1602
|
}
|
|
1565
1603
|
}();
|
|
1566
|
-
return Promise.resolve(
|
|
1604
|
+
return Promise.resolve(_temp21 && _temp21.then ? _temp21.then(function () {}) : void 0);
|
|
1567
1605
|
} catch (e) {
|
|
1568
1606
|
return Promise.reject(e);
|
|
1569
1607
|
}
|
|
@@ -1683,7 +1721,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1683
1721
|
_handleColorSelect: function _handleColorSelect(item, color) {
|
|
1684
1722
|
try {
|
|
1685
1723
|
const _this16 = this;
|
|
1686
|
-
function
|
|
1724
|
+
function _temp23() {
|
|
1687
1725
|
_this16.oEventBus.publish("appsChannel", "favAppColorChanged", {
|
|
1688
1726
|
item,
|
|
1689
1727
|
color
|
|
@@ -1707,7 +1745,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1707
1745
|
}
|
|
1708
1746
|
|
|
1709
1747
|
//update personalization
|
|
1710
|
-
const
|
|
1748
|
+
const _temp22 = function () {
|
|
1711
1749
|
if (groupId) {
|
|
1712
1750
|
//if group
|
|
1713
1751
|
void _this16._updateGroupPersonalization(groupId, selectedColor);
|
|
@@ -1727,7 +1765,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1727
1765
|
});
|
|
1728
1766
|
}
|
|
1729
1767
|
}();
|
|
1730
|
-
return Promise.resolve(
|
|
1768
|
+
return Promise.resolve(_temp22 && _temp22.then ? _temp22.then(_temp23) : _temp23(_temp22));
|
|
1731
1769
|
} catch (e) {
|
|
1732
1770
|
return Promise.reject(e);
|
|
1733
1771
|
}
|
|
@@ -1820,10 +1858,10 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1820
1858
|
emphasizedAction: actionText,
|
|
1821
1859
|
onClose: function (action) {
|
|
1822
1860
|
try {
|
|
1823
|
-
const
|
|
1861
|
+
const _temp25 = function () {
|
|
1824
1862
|
if (action === actionText) {
|
|
1825
1863
|
_this17._setBusy(true);
|
|
1826
|
-
const
|
|
1864
|
+
const _temp24 = _finallyRethrows(function () {
|
|
1827
1865
|
return _catch(function () {
|
|
1828
1866
|
return Promise.resolve(_this17._removeApp(app, group)).then(function () {
|
|
1829
1867
|
if (lastAppInGroup) {
|
|
@@ -1839,15 +1877,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1839
1877
|
Log.error(err);
|
|
1840
1878
|
MessageToast.show(_this17._i18nBundle.getText("unableToRemoveApp"));
|
|
1841
1879
|
});
|
|
1842
|
-
}, function (_wasThrown2,
|
|
1880
|
+
}, function (_wasThrown2, _result3) {
|
|
1843
1881
|
_this17._setBusy(false);
|
|
1844
|
-
if (_wasThrown2) throw
|
|
1845
|
-
return
|
|
1882
|
+
if (_wasThrown2) throw _result3;
|
|
1883
|
+
return _result3;
|
|
1846
1884
|
});
|
|
1847
|
-
if (
|
|
1885
|
+
if (_temp24 && _temp24.then) return _temp24.then(function () {});
|
|
1848
1886
|
}
|
|
1849
1887
|
}();
|
|
1850
|
-
return Promise.resolve(
|
|
1888
|
+
return Promise.resolve(_temp25 && _temp25.then ? _temp25.then(function () {}) : void 0);
|
|
1851
1889
|
} catch (e) {
|
|
1852
1890
|
return Promise.reject(e);
|
|
1853
1891
|
}
|
|
@@ -1870,7 +1908,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1870
1908
|
groupId = group?.getGroupId(),
|
|
1871
1909
|
appId = app.getUrl();
|
|
1872
1910
|
return Promise.resolve(_this18.appManagerInstance.getVisualization(appId, groupId)).then(function (viz) {
|
|
1873
|
-
const
|
|
1911
|
+
const _temp27 = function () {
|
|
1874
1912
|
if (lastAppInGroup) {
|
|
1875
1913
|
//if last app in group, then delete the group as well
|
|
1876
1914
|
return Promise.resolve(_this18._deleteGroup(groupId)).then(function () {});
|
|
@@ -1880,7 +1918,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1880
1918
|
//for apps outside group i.e. for favorite apps delete duplicate apps as well
|
|
1881
1919
|
visualizationsToBeDeleted = visualizationsToBeDeleted.concat(viz?.persConfig?.duplicateApps?.map(viz => viz.visualization?.id));
|
|
1882
1920
|
}
|
|
1883
|
-
const
|
|
1921
|
+
const _temp26 = function () {
|
|
1884
1922
|
if (viz?.persConfig?.sectionId && visualizationsToBeDeleted.length > 0) {
|
|
1885
1923
|
return Promise.resolve(_this18.appManagerInstance.removeVisualizations({
|
|
1886
1924
|
sectionId: viz.persConfig.sectionId,
|
|
@@ -1895,10 +1933,10 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1895
1933
|
});
|
|
1896
1934
|
}
|
|
1897
1935
|
}();
|
|
1898
|
-
if (
|
|
1936
|
+
if (_temp26 && _temp26.then) return _temp26.then(function () {});
|
|
1899
1937
|
}
|
|
1900
1938
|
}();
|
|
1901
|
-
if (
|
|
1939
|
+
if (_temp27 && _temp27.then) return _temp27.then(function () {});
|
|
1902
1940
|
});
|
|
1903
1941
|
} catch (e) {
|
|
1904
1942
|
return Promise.reject(e);
|
|
@@ -1916,7 +1954,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1916
1954
|
const _this19 = this;
|
|
1917
1955
|
const sourceGroup = sourceGroupId ? _this19._getGroup(sourceGroupId) : undefined,
|
|
1918
1956
|
isLastAppInGroup = sourceGroup?.getApps()?.length === 1;
|
|
1919
|
-
const
|
|
1957
|
+
const _temp28 = function () {
|
|
1920
1958
|
if (isLastAppInGroup) {
|
|
1921
1959
|
const confirmationMessage = _this19._i18nBundle.getText("moveAppMessage", [app.getTitle()]);
|
|
1922
1960
|
const confirmationTitle = _this19._i18nBundle.getText("delete");
|
|
@@ -1935,7 +1973,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1935
1973
|
return Promise.resolve(_this19._moveAppAndHandleGroupChanges(app, sourceGroupId, targetGroupId)).then(function () {});
|
|
1936
1974
|
}
|
|
1937
1975
|
}();
|
|
1938
|
-
return Promise.resolve(
|
|
1976
|
+
return Promise.resolve(_temp28 && _temp28.then ? _temp28.then(function () {}) : void 0);
|
|
1939
1977
|
} catch (e) {
|
|
1940
1978
|
return Promise.reject(e);
|
|
1941
1979
|
}
|
|
@@ -1955,16 +1993,16 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1955
1993
|
targetGroup = targetGroupId ? _this20._getGroup(targetGroupId) : null,
|
|
1956
1994
|
sTargetGroupTile = targetGroup?.getTitle(),
|
|
1957
1995
|
isLastAppInGroup = sourceGroup?.getApps()?.length === 1;
|
|
1958
|
-
const
|
|
1996
|
+
const _temp31 = _finallyRethrows(function () {
|
|
1959
1997
|
return _catch(function () {
|
|
1960
1998
|
_this20._setBusy(true);
|
|
1961
1999
|
return Promise.resolve(_this20._moveAppToGroup(app, sourceGroupId, targetGroupId)).then(function () {
|
|
1962
|
-
function
|
|
2000
|
+
function _temp30() {
|
|
1963
2001
|
const sMsg = sTargetGroupTile ? _this20._i18nBundle.getText("appMoved", [sTargetGroupTile]) : _this20._i18nBundle.getText("appUngrouped");
|
|
1964
2002
|
MessageToast.show(sMsg);
|
|
1965
2003
|
return Promise.resolve(_this20.refresh()).then(function () {});
|
|
1966
2004
|
}
|
|
1967
|
-
const
|
|
2005
|
+
const _temp29 = function () {
|
|
1968
2006
|
if (isLastAppInGroup) {
|
|
1969
2007
|
return Promise.resolve(_this20._deleteGroup(sourceGroupId)).then(function () {
|
|
1970
2008
|
_this20._closeGroupDetailDialog();
|
|
@@ -1974,17 +2012,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
1974
2012
|
}
|
|
1975
2013
|
}();
|
|
1976
2014
|
//delete group, if it is the last app in the group
|
|
1977
|
-
return
|
|
2015
|
+
return _temp29 && _temp29.then ? _temp29.then(_temp30) : _temp30(_temp29);
|
|
1978
2016
|
});
|
|
1979
2017
|
}, function (error) {
|
|
1980
2018
|
Log.error(error);
|
|
1981
2019
|
});
|
|
1982
|
-
}, function (_wasThrown3,
|
|
2020
|
+
}, function (_wasThrown3, _result4) {
|
|
1983
2021
|
_this20._setBusy(false);
|
|
1984
|
-
if (_wasThrown3) throw
|
|
1985
|
-
return
|
|
2022
|
+
if (_wasThrown3) throw _result4;
|
|
2023
|
+
return _result4;
|
|
1986
2024
|
});
|
|
1987
|
-
return Promise.resolve(
|
|
2025
|
+
return Promise.resolve(_temp31 && _temp31.then ? _temp31.then(function () {}) : void 0);
|
|
1988
2026
|
} catch (e) {
|
|
1989
2027
|
return Promise.reject(e);
|
|
1990
2028
|
}
|
|
@@ -2037,9 +2075,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2037
2075
|
const isTargetGroupDefault = !targetGroupId; //if group id is not passed, then we consider it as default section
|
|
2038
2076
|
const isSourceGroupDefault = !sourceGroupId;
|
|
2039
2077
|
const targetSectionIndex = sections.findIndex(section => !targetGroupId ? section.default : section.id === targetGroupId);
|
|
2040
|
-
const
|
|
2078
|
+
const _temp36 = function () {
|
|
2041
2079
|
if (sourceVisualization) {
|
|
2042
|
-
function
|
|
2080
|
+
function _temp35() {
|
|
2043
2081
|
return Promise.resolve(_this21.appManagerInstance._getSections(true)).then(function (sections) {
|
|
2044
2082
|
const defaultSection = sections.find(oSection => oSection.default);
|
|
2045
2083
|
return Promise.resolve(_this21._updateAppPersonalization([{
|
|
@@ -2049,11 +2087,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2049
2087
|
}])).then(function () {});
|
|
2050
2088
|
});
|
|
2051
2089
|
}
|
|
2052
|
-
const
|
|
2090
|
+
const _temp34 = function () {
|
|
2053
2091
|
if (isTargetGroupDefault) {
|
|
2054
2092
|
return Promise.resolve(_this21._moveAppToDefaultGroup(sourceVisualization)).then(function () {});
|
|
2055
2093
|
} else {
|
|
2056
|
-
function
|
|
2094
|
+
function _temp33() {
|
|
2057
2095
|
return Promise.resolve(_this21.appManagerInstance.moveVisualization({
|
|
2058
2096
|
sourceSectionIndex: sourceSectionIndex,
|
|
2059
2097
|
sourceVisualizationIndex: sourceVisualizationIndex,
|
|
@@ -2061,19 +2099,19 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2061
2099
|
targetVisualizationIndex: -1
|
|
2062
2100
|
})).then(function () {});
|
|
2063
2101
|
}
|
|
2064
|
-
const
|
|
2102
|
+
const _temp32 = function () {
|
|
2065
2103
|
if (isSourceGroupDefault) {
|
|
2066
2104
|
//remove duplicate apps
|
|
2067
2105
|
return Promise.resolve(_this21._removeDuplicateVisualizations(sourceVisualization)).then(function () {});
|
|
2068
2106
|
}
|
|
2069
2107
|
}();
|
|
2070
|
-
return
|
|
2108
|
+
return _temp32 && _temp32.then ? _temp32.then(_temp33) : _temp33(_temp32);
|
|
2071
2109
|
}
|
|
2072
2110
|
}();
|
|
2073
|
-
return
|
|
2111
|
+
return _temp34 && _temp34.then ? _temp34.then(_temp35) : _temp35(_temp34);
|
|
2074
2112
|
}
|
|
2075
2113
|
}();
|
|
2076
|
-
if (
|
|
2114
|
+
if (_temp36 && _temp36.then) return _temp36.then(function () {});
|
|
2077
2115
|
});
|
|
2078
2116
|
} catch (e) {
|
|
2079
2117
|
return Promise.reject(e);
|
|
@@ -2089,7 +2127,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2089
2127
|
try {
|
|
2090
2128
|
const _this22 = this;
|
|
2091
2129
|
return Promise.resolve(_this22._addVisualization(visualization)).then(function () {
|
|
2092
|
-
const
|
|
2130
|
+
const _temp37 = function () {
|
|
2093
2131
|
if (visualization.persConfig?.sectionId && visualization.visualization?.id) {
|
|
2094
2132
|
return Promise.resolve(_this22.appManagerInstance.removeVisualizations({
|
|
2095
2133
|
sectionId: visualization.persConfig?.sectionId,
|
|
@@ -2097,7 +2135,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2097
2135
|
})).then(function () {});
|
|
2098
2136
|
}
|
|
2099
2137
|
}();
|
|
2100
|
-
if (
|
|
2138
|
+
if (_temp37 && _temp37.then) return _temp37.then(function () {});
|
|
2101
2139
|
});
|
|
2102
2140
|
} catch (e) {
|
|
2103
2141
|
return Promise.reject(e);
|
|
@@ -2113,7 +2151,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2113
2151
|
try {
|
|
2114
2152
|
const _this23 = this;
|
|
2115
2153
|
const vizIdsToBeDeleted = visualization?.persConfig?.duplicateApps?.map(oViz => oViz.visualization?.id) || [];
|
|
2116
|
-
const
|
|
2154
|
+
const _temp38 = function () {
|
|
2117
2155
|
if (visualization.persConfig?.sectionId && vizIdsToBeDeleted.length > 0) {
|
|
2118
2156
|
return Promise.resolve(_this23.appManagerInstance.removeVisualizations({
|
|
2119
2157
|
sectionId: visualization.persConfig?.sectionId,
|
|
@@ -2121,7 +2159,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2121
2159
|
})).then(function () {});
|
|
2122
2160
|
}
|
|
2123
2161
|
}();
|
|
2124
|
-
return Promise.resolve(
|
|
2162
|
+
return Promise.resolve(_temp38 && _temp38.then ? _temp38.then(function () {}) : void 0);
|
|
2125
2163
|
} catch (e) {
|
|
2126
2164
|
return Promise.reject(e);
|
|
2127
2165
|
}
|
|
@@ -2177,7 +2215,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2177
2215
|
emphasizedAction: deleteAction,
|
|
2178
2216
|
onClose: function (action) {
|
|
2179
2217
|
try {
|
|
2180
|
-
const
|
|
2218
|
+
const _temp39 = function () {
|
|
2181
2219
|
if (action === deleteAction) {
|
|
2182
2220
|
_this24._setBusy(true);
|
|
2183
2221
|
return Promise.resolve(_this24._deleteGroup(group.getGroupId())).then(function () {
|
|
@@ -2190,7 +2228,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2190
2228
|
void _this24._ungroupApps(group.getGroupId());
|
|
2191
2229
|
}
|
|
2192
2230
|
}();
|
|
2193
|
-
return Promise.resolve(
|
|
2231
|
+
return Promise.resolve(_temp39 && _temp39.then ? _temp39.then(function () {}) : void 0);
|
|
2194
2232
|
} catch (e) {
|
|
2195
2233
|
return Promise.reject(e);
|
|
2196
2234
|
}
|
|
@@ -2208,7 +2246,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2208
2246
|
try {
|
|
2209
2247
|
const _this25 = this;
|
|
2210
2248
|
_this25._setBusy(true);
|
|
2211
|
-
const
|
|
2249
|
+
const _temp42 = _finallyRethrows(function () {
|
|
2212
2250
|
return _catch(function () {
|
|
2213
2251
|
return Promise.resolve(_this25.appManagerInstance.getSectionVisualizations(groupId)).then(function (visualizations) {
|
|
2214
2252
|
return Promise.resolve(_this25.appManagerInstance._getSections()).then(function (sections) {
|
|
@@ -2225,11 +2263,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2225
2263
|
isTargetGroupDefault: true
|
|
2226
2264
|
};
|
|
2227
2265
|
}))).then(function () {
|
|
2228
|
-
function
|
|
2266
|
+
function _temp41() {
|
|
2229
2267
|
MessageToast.show(_this25._i18nBundle.getText("appsUngrouped") ?? "");
|
|
2230
2268
|
return Promise.resolve(_this25.refresh()).then(function () {});
|
|
2231
2269
|
}
|
|
2232
|
-
const
|
|
2270
|
+
const _temp40 = function () {
|
|
2233
2271
|
if (section?.preset) {
|
|
2234
2272
|
return Promise.resolve(_this25.appManagerInstance.removeVisualizations({
|
|
2235
2273
|
sectionId: groupId,
|
|
@@ -2239,7 +2277,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2239
2277
|
return Promise.resolve(_this25._deleteGroup(groupId)).then(function () {});
|
|
2240
2278
|
}
|
|
2241
2279
|
}();
|
|
2242
|
-
return
|
|
2280
|
+
return _temp40 && _temp40.then ? _temp40.then(_temp41) : _temp41(_temp40);
|
|
2243
2281
|
});
|
|
2244
2282
|
});
|
|
2245
2283
|
});
|
|
@@ -2249,13 +2287,13 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2249
2287
|
Log.error(error);
|
|
2250
2288
|
MessageToast.show(_this25._i18nBundle.getText("unableToUngroupApps") ?? "");
|
|
2251
2289
|
});
|
|
2252
|
-
}, function (_wasThrown4,
|
|
2290
|
+
}, function (_wasThrown4, _result5) {
|
|
2253
2291
|
_this25._setBusy(false);
|
|
2254
2292
|
_this25._closeGroupDetailDialog();
|
|
2255
|
-
if (_wasThrown4) throw
|
|
2256
|
-
return
|
|
2293
|
+
if (_wasThrown4) throw _result5;
|
|
2294
|
+
return _result5;
|
|
2257
2295
|
});
|
|
2258
|
-
return Promise.resolve(
|
|
2296
|
+
return Promise.resolve(_temp42 && _temp42.then ? _temp42.then(function () {}) : void 0);
|
|
2259
2297
|
} catch (e) {
|
|
2260
2298
|
return Promise.reject(e);
|
|
2261
2299
|
}
|
|
@@ -2302,7 +2340,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2302
2340
|
try {
|
|
2303
2341
|
const _this27 = this;
|
|
2304
2342
|
const group = _this27._getGroup(groupId);
|
|
2305
|
-
const
|
|
2343
|
+
const _temp43 = function () {
|
|
2306
2344
|
if (group) {
|
|
2307
2345
|
return Promise.resolve(_this27.appManagerInstance.getSectionVisualizations(groupId, false)).then(function (appVisualizations) {
|
|
2308
2346
|
group.destroyAggregation("apps", true);
|
|
@@ -2322,7 +2360,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2322
2360
|
});
|
|
2323
2361
|
}
|
|
2324
2362
|
}();
|
|
2325
|
-
return Promise.resolve(
|
|
2363
|
+
return Promise.resolve(_temp43 && _temp43.then ? _temp43.then(function () {}) : void 0);
|
|
2326
2364
|
} catch (e) {
|
|
2327
2365
|
return Promise.reject(e);
|
|
2328
2366
|
}
|
|
@@ -2454,7 +2492,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2454
2492
|
_onGroupEditName: function _onGroupEditName(updatedTitle) {
|
|
2455
2493
|
try {
|
|
2456
2494
|
const _this28 = this;
|
|
2457
|
-
function
|
|
2495
|
+
function _temp45() {
|
|
2458
2496
|
_this28._setGroupNameControl(updatedTitle, false);
|
|
2459
2497
|
_this28._setBusy(false);
|
|
2460
2498
|
}
|
|
@@ -2462,7 +2500,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2462
2500
|
const groupId = _this28._selectedGroupId,
|
|
2463
2501
|
group = _this28._getGroup(groupId),
|
|
2464
2502
|
oldTitle = group?.getTitle();
|
|
2465
|
-
const
|
|
2503
|
+
const _temp44 = function () {
|
|
2466
2504
|
if (updatedTitle && updatedTitle !== oldTitle) {
|
|
2467
2505
|
return Promise.resolve(_this28._renameGroup(groupId, updatedTitle)).then(function () {
|
|
2468
2506
|
group?.setProperty("title", updatedTitle, true);
|
|
@@ -2471,7 +2509,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2471
2509
|
});
|
|
2472
2510
|
}
|
|
2473
2511
|
}();
|
|
2474
|
-
return Promise.resolve(
|
|
2512
|
+
return Promise.resolve(_temp44 && _temp44.then ? _temp44.then(_temp45) : _temp45(_temp44));
|
|
2475
2513
|
} catch (e) {
|
|
2476
2514
|
return Promise.reject(e);
|
|
2477
2515
|
}
|
|
@@ -2489,12 +2527,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2489
2527
|
const pageIndex = pagesService.getPageIndex(MYHOME_PAGE_ID),
|
|
2490
2528
|
groups = pagesService.getModel().getProperty(`/pages/${pageIndex}/sections/`),
|
|
2491
2529
|
groupIndex = groups.findIndex(group => group.id === groupId);
|
|
2492
|
-
const
|
|
2530
|
+
const _temp46 = function () {
|
|
2493
2531
|
if (groupIndex > -1) {
|
|
2494
2532
|
return Promise.resolve(pagesService.renameSection(pageIndex, groupIndex, updatedTitle)).then(function () {});
|
|
2495
2533
|
}
|
|
2496
2534
|
}();
|
|
2497
|
-
if (
|
|
2535
|
+
if (_temp46 && _temp46.then) return _temp46.then(function () {});
|
|
2498
2536
|
});
|
|
2499
2537
|
} catch (e) {
|
|
2500
2538
|
return Promise.reject(e);
|
|
@@ -2711,7 +2749,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2711
2749
|
_addFromInsights: function _addFromInsights() {
|
|
2712
2750
|
try {
|
|
2713
2751
|
const _this31 = this;
|
|
2714
|
-
function
|
|
2752
|
+
function _temp48() {
|
|
2715
2753
|
_this31._closeAddFromInsightsDialog();
|
|
2716
2754
|
MessageToast.show(_this31._i18nBundle.getText(selectedItems.length === 1 ? "addFromInsightTileSuccess" : "addFromInsightTilesSuccess", [selectedItems.length]));
|
|
2717
2755
|
return Promise.resolve(_this31.getParent()._refreshAllPanels()).then(function () {
|
|
@@ -2720,10 +2758,10 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2720
2758
|
}
|
|
2721
2759
|
_this31._setBusy(true);
|
|
2722
2760
|
const selectedItems = _this31._getSelectedInsights();
|
|
2723
|
-
const
|
|
2761
|
+
const _temp47 = _forOf(selectedItems, function (selectedItem) {
|
|
2724
2762
|
return Promise.resolve(_this31.appManagerInstance.addVisualization(selectedItem.data("vizId"))).then(function () {});
|
|
2725
2763
|
});
|
|
2726
|
-
return Promise.resolve(
|
|
2764
|
+
return Promise.resolve(_temp47 && _temp47.then ? _temp47.then(_temp48) : _temp48(_temp47));
|
|
2727
2765
|
} catch (e) {
|
|
2728
2766
|
return Promise.reject(e);
|
|
2729
2767
|
}
|
|
@@ -2887,12 +2925,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2887
2925
|
* @param {object} oViz.visualization - The visualization object.
|
|
2888
2926
|
* @param {boolean} [oViz.visualization.isBookmark=false] - Indicates if the visualization is a bookmark.
|
|
2889
2927
|
* @param {string} [oViz.visualization.vizId] - The ID of the visualization if it's not a bookmark.
|
|
2928
|
+
* @param {string} [sSectionId] - The ID of the section (group) to which the visualization should be added.
|
|
2929
|
+
* If not provided, the visualization will be added to the default section.
|
|
2930
|
+
* @param {IMoveConfig} [moveConfig] - Configuration for moving the visualization.
|
|
2890
2931
|
* @returns {Promise<void>} A promise that resolves to void after the visualization is added.
|
|
2891
2932
|
* @private
|
|
2892
2933
|
*/
|
|
2893
|
-
_addVisualization: function _addVisualization(viz, sSectionId) {
|
|
2934
|
+
_addVisualization: function _addVisualization(viz, sSectionId, moveConfig) {
|
|
2894
2935
|
if (viz.visualization) {
|
|
2895
|
-
return viz.visualization.isBookmark ? this.appManagerInstance.addBookMark(viz.visualization) : this.appManagerInstance.addVisualization(viz.visualization.vizId, sSectionId);
|
|
2936
|
+
return viz.visualization.isBookmark ? this.appManagerInstance.addBookMark(viz.visualization, moveConfig) : this.appManagerInstance.addVisualization(viz.visualization.vizId, sSectionId);
|
|
2896
2937
|
}
|
|
2897
2938
|
return Promise.reject(new Error("No visualization provided to add"));
|
|
2898
2939
|
},
|
|
@@ -2909,7 +2950,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2909
2950
|
const pageIndex = pagesService.getPageIndex(MYHOME_PAGE_ID),
|
|
2910
2951
|
groups = pagesService.getModel().getProperty(`/pages/${pageIndex}/sections/`),
|
|
2911
2952
|
groupIndex = groups.findIndex(group => group.id === groupId);
|
|
2912
|
-
const
|
|
2953
|
+
const _temp49 = function () {
|
|
2913
2954
|
if (groupIndex > -1) {
|
|
2914
2955
|
return Promise.resolve(pagesService.deleteSection(pageIndex, groupIndex)).then(function () {
|
|
2915
2956
|
void _this34._deletePersonalization({
|
|
@@ -2919,7 +2960,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2919
2960
|
});
|
|
2920
2961
|
}
|
|
2921
2962
|
}();
|
|
2922
|
-
if (
|
|
2963
|
+
if (_temp49 && _temp49.then) return _temp49.then(function () {});
|
|
2923
2964
|
});
|
|
2924
2965
|
} catch (e) {
|
|
2925
2966
|
return Promise.reject(e);
|
|
@@ -2986,7 +3027,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2986
3027
|
const _this36 = this;
|
|
2987
3028
|
const currentItem = Element.closestTo(event.target.firstElementChild);
|
|
2988
3029
|
const container = currentItem.getParent();
|
|
2989
|
-
const
|
|
3030
|
+
const _temp51 = function () {
|
|
2990
3031
|
if (event.metaKey || event.ctrlKey) {
|
|
2991
3032
|
// ctrl(windows)/cmd (mac) + x, sets app to be moved to a group, or to create a group
|
|
2992
3033
|
if (event.key === "x" && !currentItem.data("groupId") && !_this36._cutApp && !appGroupId) {
|
|
@@ -2994,7 +3035,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
2994
3035
|
currentItem._oMoreIcon.setEnabled(false);
|
|
2995
3036
|
_this36._cutApp = currentItem;
|
|
2996
3037
|
}
|
|
2997
|
-
const
|
|
3038
|
+
const _temp50 = function () {
|
|
2998
3039
|
if (event.key === "v" && _this36._cutApp && !appGroupId) {
|
|
2999
3040
|
const dragDropEvent = new Event("keyboardDragDropEvent", container, {
|
|
3000
3041
|
draggedControl: _this36._cutApp,
|
|
@@ -3006,10 +3047,10 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
3006
3047
|
});
|
|
3007
3048
|
}
|
|
3008
3049
|
}();
|
|
3009
|
-
if (
|
|
3050
|
+
if (_temp50 && _temp50.then) return _temp50.then(function () {});
|
|
3010
3051
|
}
|
|
3011
3052
|
}();
|
|
3012
|
-
return Promise.resolve(
|
|
3053
|
+
return Promise.resolve(_temp51 && _temp51.then ? _temp51.then(function () {}) : void 0);
|
|
3013
3054
|
} catch (e) {
|
|
3014
3055
|
return Promise.reject(e);
|
|
3015
3056
|
}
|
|
@@ -3036,7 +3077,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
3036
3077
|
const illustratedMessage = BaseAppPersPanel.prototype.generateIllustratedMessage.call(this);
|
|
3037
3078
|
//overrride the default title and add additional content
|
|
3038
3079
|
illustratedMessage.setDescription(this._i18nBundle.getText("noFavAppsDescription"));
|
|
3039
|
-
illustratedMessage.setIllustrationSize(IllustratedMessageSize.
|
|
3080
|
+
illustratedMessage.setIllustrationSize(IllustratedMessageSize.ExtraSmall);
|
|
3040
3081
|
illustratedMessage.setIllustrationType(IllustratedMessageType.AddingColumns);
|
|
3041
3082
|
illustratedMessage.addAdditionalContent(new Button(`${this.getId()}-errorMessage-addApps`, {
|
|
3042
3083
|
text: this._i18nBundle.getText("addApps"),
|
|
@@ -3048,6 +3089,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerSettin
|
|
|
3048
3089
|
},
|
|
3049
3090
|
type: "Emphasized"
|
|
3050
3091
|
}));
|
|
3092
|
+
illustratedMessage.addStyleClass("sapUiTinyMarginTop");
|
|
3051
3093
|
return illustratedMessage;
|
|
3052
3094
|
}
|
|
3053
3095
|
});
|