@sapui5/sap.cux.home 1.141.0 → 1.142.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/cux/home/.library +4 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +3 -2
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js +6 -6
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +6 -6
- package/src/sap/cux/home/App.d.ts.map +1 -1
- package/src/sap/cux/home/App.js +6 -1
- package/src/sap/cux/home/App.js.map +1 -1
- package/src/sap/cux/home/App.ts +7 -1
- package/src/sap/cux/home/AppsAdditionPanel.d.ts +48 -34
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.js +362 -265
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.ts +374 -254
- package/src/sap/cux/home/AppsContainer.d.ts +5 -1
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.js +33 -18
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +32 -15
- package/src/sap/cux/home/BaseAppPanel.d.ts +2 -1
- package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.js +8 -2
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +10 -3
- package/src/sap/cux/home/BaseContainer.d.ts +9 -1
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.js +36 -6
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +33 -6
- package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js +6 -0
- package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.ts +7 -1
- package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
- package/src/sap/cux/home/BasePanel.d.ts +7 -0
- package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePanel.js +20 -0
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +16 -0
- package/src/sap/cux/home/CardsContainer.d.ts +108 -0
- package/src/sap/cux/home/CardsContainer.d.ts.map +1 -0
- package/src/sap/cux/home/CardsContainer.js +207 -0
- package/src/sap/cux/home/CardsContainer.js.map +1 -0
- package/src/sap/cux/home/CardsContainer.ts +202 -0
- package/src/sap/cux/home/CardsPanel.d.ts +47 -59
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.js +405 -326
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +223 -201
- package/src/sap/cux/home/ContentAdditionDialog.d.ts +2 -0
- package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.js +17 -7
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.ts +18 -6
- package/src/sap/cux/home/ErrorPanel.d.ts +0 -5
- package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ErrorPanel.gen.d.ts +31 -0
- package/src/sap/cux/home/ErrorPanel.js +11 -16
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +7 -19
- package/src/sap/cux/home/FavAppPanel.d.ts +1 -12
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +354 -414
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +21 -66
- package/src/sap/cux/home/FrequentAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.js +5 -1
- package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
- package/src/sap/cux/home/FrequentAppPanel.ts +4 -0
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts +11 -4
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.js +22 -8
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +22 -7
- package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts +8 -0
- package/src/sap/cux/home/InsightsCardsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsCardsSettingsPanel.js +15 -0
- package/src/sap/cux/home/InsightsCardsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsCardsSettingsPanel.ts +11 -0
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +3 -0
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +252 -39
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +287 -57
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +11 -10
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +12 -10
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +2 -2
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +7 -7
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +2 -2
- package/src/sap/cux/home/Layout.d.ts +3 -1
- package/src/sap/cux/home/Layout.d.ts.map +1 -1
- package/src/sap/cux/home/Layout.js +49 -8
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +59 -8
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts +10 -0
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.js +341 -56
- package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.ts +379 -63
- package/src/sap/cux/home/{NewsAndPagesContainer.d.ts → NewsContainer.d.ts} +13 -18
- package/src/sap/cux/home/NewsContainer.d.ts.map +1 -0
- package/src/sap/cux/home/{NewsAndPagesContainer.gen.d.ts → NewsContainer.gen.d.ts} +3 -3
- package/src/sap/cux/home/{NewsAndPagesContainer.js → NewsContainer.js} +26 -113
- package/src/sap/cux/home/NewsContainer.js.map +1 -0
- package/src/sap/cux/home/{NewsAndPagesContainer.ts → NewsContainer.ts} +31 -120
- package/src/sap/cux/home/NewsGroup.js.map +1 -1
- package/src/sap/cux/home/NewsGroup.ts +1 -1
- package/src/sap/cux/home/NewsPanel.d.ts +17 -0
- package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.js +100 -69
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +61 -36
- package/src/sap/cux/home/NewsSettingsPanel.d.ts +42 -6
- package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js +219 -81
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +216 -81
- package/src/sap/cux/home/Page.d.ts.map +1 -1
- package/src/sap/cux/home/Page.js +4 -1
- package/src/sap/cux/home/Page.js.map +1 -1
- package/src/sap/cux/home/Page.ts +2 -0
- package/src/sap/cux/home/PagePanel.d.ts +1 -1
- package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/PagePanel.js +19 -11
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +26 -20
- package/src/sap/cux/home/PageSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.js +6 -3
- package/src/sap/cux/home/PageSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.ts +2 -2
- package/src/sap/cux/home/PagesContainer.d.ts +72 -0
- package/src/sap/cux/home/PagesContainer.d.ts.map +1 -0
- package/src/sap/cux/home/PagesContainer.gen.d.ts +78 -0
- package/src/sap/cux/home/PagesContainer.js +333 -0
- package/src/sap/cux/home/PagesContainer.js.map +1 -0
- package/src/sap/cux/home/PagesContainer.ts +179 -0
- package/src/sap/cux/home/RecentAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.js +6 -0
- package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.ts +5 -1
- package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js +7 -0
- package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.ts +6 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.d.ts +10 -0
- package/src/sap/cux/home/SideBySideIconTabFilter.d.ts.map +1 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.js +11 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.js.map +1 -1
- package/src/sap/cux/home/SideBySideIconTabFilter.ts +11 -0
- package/src/sap/cux/home/SituationPanel.d.ts.map +1 -1
- package/src/sap/cux/home/SituationPanel.js +7 -2
- package/src/sap/cux/home/SituationPanel.js.map +1 -1
- package/src/sap/cux/home/SituationPanel.ts +2 -0
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts +8 -60
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.js +67 -133
- package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.ts +70 -152
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.js +19 -1
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +17 -2
- package/src/sap/cux/home/TilesContainer.d.ts +111 -0
- package/src/sap/cux/home/TilesContainer.d.ts.map +1 -0
- package/src/sap/cux/home/TilesContainer.js +218 -0
- package/src/sap/cux/home/TilesContainer.js.map +1 -0
- package/src/sap/cux/home/TilesContainer.ts +216 -0
- package/src/sap/cux/home/TilesPanel.d.ts +22 -52
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.js +194 -168
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +167 -157
- package/src/sap/cux/home/ToDoPanel.d.ts +1 -0
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +64 -68
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +48 -36
- package/src/sap/cux/home/ToDosContainer.js +3 -3
- package/src/sap/cux/home/ToDosContainer.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.ts +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +4 -4
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +4 -4
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.ts +3 -3
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +4 -4
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +5 -5
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +30 -3
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +23 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +29 -19
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.js +78 -2
- package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.ts +81 -1
- package/src/sap/cux/home/i18n/messagebundle.properties +32 -12
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_da.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_de.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_el.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_en.properties +19 -3
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +21 -5
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +21 -5
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_es.properties +19 -2
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_et.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_id.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_it.properties +23 -7
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_no.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +19 -3
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_th.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +20 -4
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +18 -2
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +18 -2
- package/src/sap/cux/home/interface/AppsInterface.d.ts +5 -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 +6 -0
- package/src/sap/cux/home/interface/CardsInterface.d.ts +6 -0
- package/src/sap/cux/home/interface/CardsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.js.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.ts +6 -1
- package/src/sap/cux/home/interface/KeyUserInterface.d.ts +27 -4
- 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 +23 -4
- package/src/sap/cux/home/interface/LayoutInterface.d.ts +7 -0
- package/src/sap/cux/home/interface/LayoutInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/LayoutInterface.js.map +1 -1
- package/src/sap/cux/home/interface/LayoutInterface.ts +7 -0
- package/src/sap/cux/home/library.d.ts.map +1 -1
- package/src/sap/cux/home/library.js +7 -4
- package/src/sap/cux/home/library.js.map +1 -1
- package/src/sap/cux/home/library.ts +10 -5
- package/src/sap/cux/home/themes/base/AppsContainer.less +12 -1
- package/src/sap/cux/home/themes/base/BaseContainer.less +36 -0
- package/src/sap/cux/home/themes/base/BaseLayout.less +22 -0
- package/src/sap/cux/home/themes/base/{InsightsContainer.less → CardsContainer.less} +4 -45
- package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +10 -18
- package/src/sap/cux/home/themes/base/PlaceHolder.less +1 -1
- package/src/sap/cux/home/themes/base/SettingsDialog.less +4 -0
- package/src/sap/cux/home/themes/base/TilesContainer.less +65 -0
- package/src/sap/cux/home/themes/base/ToDosContainer.less +4 -0
- package/src/sap/cux/home/themes/base/library.source.less +2 -1
- package/src/sap/cux/home/utils/BatchHelper.d.ts +1 -0
- package/src/sap/cux/home/utils/BatchHelper.d.ts.map +1 -1
- package/src/sap/cux/home/utils/BatchHelper.js +7 -2
- package/src/sap/cux/home/utils/BatchHelper.js.map +1 -1
- package/src/sap/cux/home/utils/BatchHelper.ts +8 -1
- package/src/sap/cux/home/utils/FESRUtil.d.ts +30 -0
- package/src/sap/cux/home/utils/FESRUtil.d.ts.map +1 -1
- package/src/sap/cux/home/utils/FESRUtil.js +36 -1
- package/src/sap/cux/home/utils/FESRUtil.js.map +1 -1
- package/src/sap/cux/home/utils/FESRUtil.ts +36 -0
- package/src/sap/cux/home/utils/PXFeedback.d.ts +4 -0
- package/src/sap/cux/home/utils/PXFeedback.d.ts.map +1 -0
- package/src/sap/cux/home/utils/PXFeedback.js +28 -0
- package/src/sap/cux/home/utils/PXFeedback.js.map +1 -0
- package/src/sap/cux/home/utils/PXFeedback.ts +19 -0
- package/src/sap/cux/home/utils/PageManager.d.ts +0 -4
- package/src/sap/cux/home/utils/PageManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PageManager.js +6 -6
- package/src/sap/cux/home/utils/PageManager.js.map +1 -1
- package/src/sap/cux/home/utils/PageManager.ts +6 -5
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts +4 -2
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.js +4 -2
- package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.ts +4 -2
- package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +150 -151
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.js → CardsPlaceholder.js} +3 -77
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.ts → CardsPlaceholder.ts} +1 -75
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js +44 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.ts +34 -0
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.js → PagesPlaceholder.js} +3 -23
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.ts → PagesPlaceholder.ts} +1 -21
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js +95 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.ts +85 -0
- package/ui5.yaml +1 -0
- package/src/sap/cux/home/InsightsContainer.d.ts +0 -205
- package/src/sap/cux/home/InsightsContainer.d.ts.map +0 -1
- package/src/sap/cux/home/InsightsContainer.js +0 -459
- package/src/sap/cux/home/InsightsContainer.js.map +0 -1
- package/src/sap/cux/home/InsightsContainer.ts +0 -489
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +0 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +0 -1
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +0 -8
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +0 -1
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts +0 -8
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +0 -1
|
@@ -2,13 +2,15 @@
|
|
|
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/m/Button", "sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/MessageBox", "sap/m/ObjectIdentifier", "sap/m/Table", "sap/m/Text", "sap/m/ToggleButton", "sap/m/VBox", "sap/ui/core/Element", "sap/ui/core/Icon", "sap/ui/core/Lib", "sap/ui/model/json/JSONModel", "./BaseSettingsPanel", "./flexibility/Layout.flexibility", "./utils/Accessibility", "./utils/Constants", "./utils/DragDropUtils", "./utils/PersonalisationUtils"], function (Log, Button, Column, ColumnListItem, HBox, MessageBox, ObjectIdentifier, Table, Text, ToggleButton, VBox, Element, Icon, Lib, JSONModel, __BaseSettingsPanel, ___flexibility_Layoutflexibility, ___utils_Accessibility, ___utils_Constants, ___utils_DragDropUtils, __PersonalisationUtils) {
|
|
5
|
+
sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/MessageBox", "sap/m/ObjectIdentifier", "sap/m/Table", "sap/m/Text", "sap/m/ToggleButton", "sap/m/VBox", "sap/ui/core/Element", "sap/ui/core/Icon", "sap/ui/core/Lib", "sap/ui/model/json/JSONModel", "./BaseContainer", "./BaseSettingsPanel", "./NoDataContainer", "./flexibility/Layout.flexibility", "./utils/Accessibility", "./utils/Constants", "./utils/DragDropUtils", "./utils/PersonalisationUtils"], function (Log, Button, Column, ColumnListItem, HBox, MessageBox, ObjectIdentifier, Table, Text, ToggleButton, VBox, Element, Icon, Lib, JSONModel, __BaseContainer, __BaseSettingsPanel, __NoDataContainer, ___flexibility_Layoutflexibility, ___utils_Accessibility, ___utils_Constants, ___utils_DragDropUtils, __PersonalisationUtils) {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
8
|
function _interopRequireDefault(obj) {
|
|
9
9
|
return obj && obj.__esModule && typeof obj.default !== "undefined" ? obj.default : obj;
|
|
10
10
|
}
|
|
11
|
+
const BaseContainer = _interopRequireDefault(__BaseContainer);
|
|
11
12
|
const BaseSettingsPanel = _interopRequireDefault(__BaseSettingsPanel);
|
|
13
|
+
const NoDataContainer = _interopRequireDefault(__NoDataContainer);
|
|
12
14
|
const CHANGE_TYPES = ___flexibility_Layoutflexibility["CHANGE_TYPES"];
|
|
13
15
|
const getInvisibleText = ___utils_Accessibility["getInvisibleText"];
|
|
14
16
|
const SETTINGS_PANELS_KEYS = ___utils_Constants["SETTINGS_PANELS_KEYS"];
|
|
@@ -67,30 +69,48 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
|
|
|
67
69
|
*
|
|
68
70
|
* @private
|
|
69
71
|
*/
|
|
70
|
-
createShowHideChangeFile: function _createShowHideChangeFile(oControlEvent) {
|
|
72
|
+
createShowHideChangeFile: function _createShowHideChangeFile(oControlEvent, itemIndex) {
|
|
71
73
|
try {
|
|
72
74
|
const _this = this;
|
|
73
75
|
const toggle = oControlEvent.getSource();
|
|
74
76
|
const bValue = !toggle.getPressed();
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
_this._getPanel().getSections().find(section => section.completeId === oContext.completeId).visible = bValue;
|
|
77
|
+
const contextObject = toggle.getBindingContext()?.getObject();
|
|
78
|
+
const selectedCompleteId = contextObject.isComposite ? contextObject.children[itemIndex].completeId : contextObject.completeId;
|
|
78
79
|
const sChangeType = bValue ? CHANGE_TYPES.UNHIDE : CHANGE_TYPES.HIDE;
|
|
79
|
-
const oWrapperItem = Element.getElementById(
|
|
80
|
+
const oWrapperItem = Element.getElementById(selectedCompleteId);
|
|
80
81
|
_this._manageSectionsChanges.push({
|
|
81
82
|
selectorElement: oWrapperItem,
|
|
82
83
|
changeSpecificData: {
|
|
83
|
-
changeType: sChangeType
|
|
84
|
+
changeType: sChangeType,
|
|
85
|
+
content: {
|
|
86
|
+
compositeId: oWrapperItem.getProperty("compositeId")
|
|
87
|
+
}
|
|
84
88
|
}
|
|
85
89
|
});
|
|
86
|
-
// }
|
|
87
90
|
return Promise.resolve(_this._saveManageSectionsDialog()).then(function () {
|
|
88
91
|
setTimeout(() => oWrapperItem.adjustLayout());
|
|
89
92
|
|
|
90
93
|
// switch to collapsed view if the container is in expanded view
|
|
94
|
+
//update this._orderedSections visibility
|
|
95
|
+
//loop through this._orderedSections and update the visibility of the section which has same composite id as oWrapperItem
|
|
91
96
|
if (!bValue) {
|
|
92
97
|
_this._switchToCollapsedViewIfRequired([oWrapperItem]);
|
|
93
98
|
}
|
|
99
|
+
toggle.setPressed(!bValue);
|
|
100
|
+
for (const section of _this._orderedSections) {
|
|
101
|
+
// Check for matching composite ID
|
|
102
|
+
if (section.compositeId === oWrapperItem.getProperty("compositeId") && section.compositeId !== undefined) {
|
|
103
|
+
for (const child of section.children || []) {
|
|
104
|
+
if (child.completeId === selectedCompleteId) {
|
|
105
|
+
child.visible = bValue;
|
|
106
|
+
return; // Exit the whole function once found & set
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
} else if (section.completeId === selectedCompleteId) {
|
|
110
|
+
section.visible = bValue;
|
|
111
|
+
return; // Exit the whole function once found & set
|
|
112
|
+
}
|
|
113
|
+
}
|
|
94
114
|
});
|
|
95
115
|
} catch (e) {
|
|
96
116
|
return Promise.reject(e);
|
|
@@ -106,11 +126,70 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
|
|
|
106
126
|
_switchToCollapsedViewIfRequired: function _switchToCollapsedViewIfRequired(containers) {
|
|
107
127
|
const layout = this._getPanel();
|
|
108
128
|
const isLayoutExpanded = layout.getProperty("expanded");
|
|
109
|
-
const expandedContainer = containers.filter(container =>
|
|
129
|
+
const expandedContainer = containers.filter(container => {
|
|
130
|
+
//find the fullscreename of the container if available else loop through the content of container
|
|
131
|
+
// and search in its panels which are present in its content aggregation
|
|
132
|
+
let fullScreenName = container.getProperty("fullScreenName") || undefined;
|
|
133
|
+
if (!fullScreenName) {
|
|
134
|
+
return container.getContent().some(panel => layout._getCurrentExpandedElementName() === panel.getProperty("fullScreenName"));
|
|
135
|
+
}
|
|
136
|
+
return layout._getCurrentExpandedElementName() === container.getProperty("fullScreenName");
|
|
137
|
+
});
|
|
110
138
|
if (isLayoutExpanded) {
|
|
111
139
|
layout.toggleFullScreen(expandedContainer[0]._getSelectedPanel());
|
|
112
140
|
}
|
|
113
141
|
},
|
|
142
|
+
//function to update this._orderedSections
|
|
143
|
+
_updateOrderedSections: function _updateOrderedSections() {
|
|
144
|
+
const createEmptyCompositeItem = () => ({
|
|
145
|
+
completeId: "",
|
|
146
|
+
sContainerType: "",
|
|
147
|
+
blocked: false,
|
|
148
|
+
visible: false,
|
|
149
|
+
title: "",
|
|
150
|
+
text: "",
|
|
151
|
+
isComposite: false,
|
|
152
|
+
children: []
|
|
153
|
+
});
|
|
154
|
+
const compositeMap = {};
|
|
155
|
+
this._orderedSections.forEach(section => {
|
|
156
|
+
const container = Element.getElementById(section.completeId);
|
|
157
|
+
if (container instanceof BaseContainer) {
|
|
158
|
+
const compositeId = container.getProperty("compositeId");
|
|
159
|
+
if (compositeId) {
|
|
160
|
+
if (!compositeMap[compositeId]) {
|
|
161
|
+
compositeMap[compositeId] = [];
|
|
162
|
+
}
|
|
163
|
+
section.compositeId = compositeId;
|
|
164
|
+
section.groupTitle = container.getCustomSettings().groupTitle || "";
|
|
165
|
+
compositeMap[compositeId].push(section);
|
|
166
|
+
} else {
|
|
167
|
+
section.compositeId = null;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
// map through this.orderedSections and replace items with compositeId with a single composite item containing its children
|
|
173
|
+
this._orderedSections = this._orderedSections.map(section => {
|
|
174
|
+
if (section.compositeId && compositeMap[section.compositeId]) {
|
|
175
|
+
const compositeItem = createEmptyCompositeItem();
|
|
176
|
+
compositeMap[section.compositeId].forEach(section => {
|
|
177
|
+
this.addToCompositeItem(section, compositeItem, section.groupTitle);
|
|
178
|
+
});
|
|
179
|
+
delete compositeMap[section.compositeId];
|
|
180
|
+
return compositeItem;
|
|
181
|
+
}
|
|
182
|
+
return section;
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
//filter this.orderedSections to remove items which has same composite item with no children
|
|
186
|
+
this._orderedSections = this._orderedSections.filter(section => {
|
|
187
|
+
if (section.compositeId) {
|
|
188
|
+
return section.children && section.children.length > 0;
|
|
189
|
+
}
|
|
190
|
+
return true;
|
|
191
|
+
});
|
|
192
|
+
},
|
|
114
193
|
/**
|
|
115
194
|
* Method to load the sections
|
|
116
195
|
*
|
|
@@ -121,52 +200,33 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
|
|
|
121
200
|
const _this2 = this;
|
|
122
201
|
const layout = _this2._getPanel();
|
|
123
202
|
return Promise.resolve(layout._calculateSectionsState()).then(function () {
|
|
124
|
-
|
|
125
|
-
|
|
203
|
+
const sections = layout.getSections();
|
|
204
|
+
_this2._orderedSections = JSON.parse(JSON.stringify(sections));
|
|
205
|
+
|
|
206
|
+
//loop through this._orderedSections and take out the children items from composite items and add them to same list
|
|
126
207
|
// attach collapse event handler to rearrange layout elements if required
|
|
127
|
-
_this2._orderedSections.
|
|
128
|
-
if (
|
|
129
|
-
|
|
208
|
+
_this2._orderedSections = _this2._orderedSections.reduce((accumulator, section) => {
|
|
209
|
+
if (section.isComposite && section.children) {
|
|
210
|
+
accumulator.push(...section.children);
|
|
211
|
+
} else {
|
|
212
|
+
accumulator.push(section);
|
|
130
213
|
}
|
|
131
|
-
|
|
214
|
+
return accumulator;
|
|
215
|
+
}, []);
|
|
216
|
+
_this2._updateOrderedSections();
|
|
132
217
|
_this2._controlModel = new JSONModel(_this2._orderedSections);
|
|
133
218
|
_this2._layoutTable.setModel(_this2._controlModel);
|
|
134
219
|
_this2._layoutTable.bindItems({
|
|
135
220
|
path: "/",
|
|
136
|
-
factory: id => {
|
|
221
|
+
factory: (id, context) => {
|
|
137
222
|
if (!_this2._dndInvisibleText || _this2._dndInvisibleText.isDestroyed()) {
|
|
138
223
|
_this2._dndInvisibleText = getInvisibleText(_this2.getId() + "--layoutDndText", _this2._i18nBundle.getText("keyPressAriaText"));
|
|
139
224
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
src: "sap-icon://vertical-grip"
|
|
146
|
-
}).addStyleClass("sapUiSmallMarginEnd"), new HBox(`${id}--columnListItemHBox`, {
|
|
147
|
-
justifyContent: "SpaceBetween",
|
|
148
|
-
alignItems: "Center",
|
|
149
|
-
width: "100%",
|
|
150
|
-
items: [new ObjectIdentifier(`${id}--columnListObjectIdentifier`, {
|
|
151
|
-
title: "{title}",
|
|
152
|
-
text: "{text}",
|
|
153
|
-
tooltip: "{title}"
|
|
154
|
-
}), new ToggleButton(`${id}--layoutSettingstoggleButton`, {
|
|
155
|
-
tooltip: "{= ${visible} ? '" + _this2._i18nBundle.getText("hideBtn") + "' : '" + _this2._i18nBundle.getText("showBtn") + "' }",
|
|
156
|
-
icon: "sap-icon://show",
|
|
157
|
-
type: "Emphasized",
|
|
158
|
-
enabled: "{= !${blocked}}",
|
|
159
|
-
press: event => {
|
|
160
|
-
void _this2.createShowHideChangeFile(event);
|
|
161
|
-
},
|
|
162
|
-
pressed: "{= !${visible}}",
|
|
163
|
-
ariaLabelledBy: ["selectLabel"]
|
|
164
|
-
}).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")]
|
|
165
|
-
}), _this2._dndInvisibleText],
|
|
166
|
-
width: "100%"
|
|
167
|
-
})],
|
|
168
|
-
ariaLabelledBy: [_this2._dndInvisibleText.getId()]
|
|
169
|
-
}).addStyleClass("insightsListItem insightsListMargin");
|
|
225
|
+
//check the condition for news and pages as it is a composite container
|
|
226
|
+
if (context.getObject()?.isComposite === true) {
|
|
227
|
+
return _this2.getCompositeLayoutListItem(id);
|
|
228
|
+
}
|
|
229
|
+
return _this2.getLayoutListItem(id);
|
|
170
230
|
}
|
|
171
231
|
});
|
|
172
232
|
if (!_this2._isCollapseHandlerAttached) {
|
|
@@ -178,6 +238,138 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
|
|
|
178
238
|
return Promise.reject(e);
|
|
179
239
|
}
|
|
180
240
|
},
|
|
241
|
+
addToCompositeItem: function _addToCompositeItem(section, compositeItem, compositeTitle) {
|
|
242
|
+
compositeItem.isComposite = true;
|
|
243
|
+
compositeItem.title = compositeTitle;
|
|
244
|
+
if (!compositeItem.completeId) {
|
|
245
|
+
compositeItem.completeId = section.completeId;
|
|
246
|
+
}
|
|
247
|
+
//Add compositeId
|
|
248
|
+
compositeItem.compositeId = section.compositeId;
|
|
249
|
+
compositeItem.children?.push({
|
|
250
|
+
...section
|
|
251
|
+
});
|
|
252
|
+
compositeItem.text = section.text;
|
|
253
|
+
compositeItem.blocked = section.blocked;
|
|
254
|
+
compositeItem.visible = section.visible;
|
|
255
|
+
},
|
|
256
|
+
getLayoutListItem: function _getLayoutListItem(id) {
|
|
257
|
+
return new ColumnListItem(`${id}--columnListItem`, {
|
|
258
|
+
type: "Inactive",
|
|
259
|
+
cells: [new HBox(`${id}--columnListHBox`, {
|
|
260
|
+
alignItems: "Center",
|
|
261
|
+
items: [new Icon(`${id}--columnListIcon`, {
|
|
262
|
+
src: "sap-icon://vertical-grip"
|
|
263
|
+
}).addStyleClass("sapUiSmallMarginEnd"), new HBox(`${id}--columnListItemHBox`, {
|
|
264
|
+
justifyContent: "SpaceBetween",
|
|
265
|
+
alignItems: "Center",
|
|
266
|
+
width: "100%",
|
|
267
|
+
items: [new ObjectIdentifier(`${id}--columnListObjectIdentifier`, {
|
|
268
|
+
title: "{title}",
|
|
269
|
+
text: "{text}",
|
|
270
|
+
tooltip: "{title}"
|
|
271
|
+
}), new ToggleButton(`${id}--layoutSettingstoggleButton`, {
|
|
272
|
+
tooltip: "{= ${visible} ? '" + this._i18nBundle.getText("hideBtn") + "' : '" + this._i18nBundle.getText("showBtn") + "' }",
|
|
273
|
+
icon: "sap-icon://show",
|
|
274
|
+
type: "Emphasized",
|
|
275
|
+
enabled: "{= !${blocked}}",
|
|
276
|
+
press: event => {
|
|
277
|
+
void this.createShowHideChangeFile(event, 0);
|
|
278
|
+
},
|
|
279
|
+
pressed: "{= !${visible}}",
|
|
280
|
+
ariaLabelledBy: ["selectLabel"]
|
|
281
|
+
}).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")]
|
|
282
|
+
}), this._dndInvisibleText],
|
|
283
|
+
width: "100%"
|
|
284
|
+
})],
|
|
285
|
+
ariaLabelledBy: [this._dndInvisibleText.getId()]
|
|
286
|
+
}).addStyleClass("insightsListItem insightsListMargin");
|
|
287
|
+
},
|
|
288
|
+
getCompositeLayoutListItem: function _getCompositeLayoutListItem(id) {
|
|
289
|
+
const oTemplateHBox = new VBox(`${id}--compositeVBox`, {
|
|
290
|
+
items: {
|
|
291
|
+
path: "children",
|
|
292
|
+
factory: (childId, oContext) => {
|
|
293
|
+
const iIndex = parseInt(childId.split("-").pop() || "0", 10);
|
|
294
|
+
return new HBox(`${id}--columnListItemChildHBox${iIndex}`, {
|
|
295
|
+
justifyContent: "SpaceBetween",
|
|
296
|
+
alignItems: "Center",
|
|
297
|
+
items: [new ObjectIdentifier(`${id}--childObjectIdentifier${iIndex}`, {
|
|
298
|
+
title: oContext.getProperty("title"),
|
|
299
|
+
text: oContext.getProperty("text"),
|
|
300
|
+
tooltip: oContext.getProperty("title")
|
|
301
|
+
}), new ToggleButton(`${id}--layoutSettingstoggleButtonChild${iIndex}`, {
|
|
302
|
+
tooltip: {
|
|
303
|
+
parts: [{
|
|
304
|
+
path: "visible"
|
|
305
|
+
}, {
|
|
306
|
+
path: "blocked"
|
|
307
|
+
}],
|
|
308
|
+
formatter: (bVisible, bBlocked) => {
|
|
309
|
+
if (bBlocked) {
|
|
310
|
+
return this._i18nBundle.getText("blockedTooltip");
|
|
311
|
+
}
|
|
312
|
+
return bVisible ? this._i18nBundle.getText("hideBtn") : this._i18nBundle.getText("showBtn");
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
icon: "sap-icon://show",
|
|
316
|
+
type: "Emphasized",
|
|
317
|
+
enabled: "{= !${blocked}}",
|
|
318
|
+
pressed: "{= !${visible}}",
|
|
319
|
+
ariaLabelledBy: ["selectLabel"],
|
|
320
|
+
press: event => {
|
|
321
|
+
void this.createShowHideChangeFile(event, iIndex);
|
|
322
|
+
}
|
|
323
|
+
}).addStyleClass("sapUiTinyMarginEnd sapUiTinyMarginTop")]
|
|
324
|
+
}).addStyleClass("sapCuxCompositeItem");
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
return new ColumnListItem(`${id}--columnListItem`, {
|
|
329
|
+
type: "Inactive",
|
|
330
|
+
cells: [new VBox(`${id}--compositeVBoxContainer`, {
|
|
331
|
+
items: [
|
|
332
|
+
// Header (main title)
|
|
333
|
+
new HBox(`${id}--columnListHBox`, {
|
|
334
|
+
alignItems: "Center",
|
|
335
|
+
items: [new Icon(`${id}--columnListIcon`, {
|
|
336
|
+
src: "sap-icon://vertical-grip"
|
|
337
|
+
}).addStyleClass("sapUiSmallMarginEnd"), new HBox(`${id}--columnListItemHBox`, {
|
|
338
|
+
justifyContent: "SpaceBetween",
|
|
339
|
+
alignItems: "Center",
|
|
340
|
+
width: "100%",
|
|
341
|
+
items: [new ObjectIdentifier(`${id}--columnListObjectIdentifier`, {
|
|
342
|
+
title: "{title}",
|
|
343
|
+
text: "{text}",
|
|
344
|
+
tooltip: "{title}"
|
|
345
|
+
})]
|
|
346
|
+
})],
|
|
347
|
+
width: "100%"
|
|
348
|
+
}).addStyleClass("sapUiTinyMarginTopBottom"),
|
|
349
|
+
// Dynamically bound children
|
|
350
|
+
oTemplateHBox,
|
|
351
|
+
// Drag-n-drop invisible text
|
|
352
|
+
this._dndInvisibleText]
|
|
353
|
+
})],
|
|
354
|
+
ariaLabelledBy: [this._dndInvisibleText.getId()]
|
|
355
|
+
}).addStyleClass("insightsListItem insightsListMargin");
|
|
356
|
+
},
|
|
357
|
+
/**
|
|
358
|
+
* Reduces the ordered sections by flattening composite items.
|
|
359
|
+
* @private
|
|
360
|
+
* @returns {IElement[]} The reduced list of ordered sections.
|
|
361
|
+
*/
|
|
362
|
+
_reduceOrderedSections: function _reduceOrderedSections() {
|
|
363
|
+
//loop through this._orderedSections and take out the children items from composite items and add them to same list
|
|
364
|
+
return this._orderedSections.reduce((accumulator, section) => {
|
|
365
|
+
if (section.isComposite && section.children) {
|
|
366
|
+
accumulator.push(...section.children);
|
|
367
|
+
} else {
|
|
368
|
+
accumulator.push(section);
|
|
369
|
+
}
|
|
370
|
+
return accumulator;
|
|
371
|
+
}, []);
|
|
372
|
+
},
|
|
181
373
|
/**
|
|
182
374
|
* Rearranges the layout elements if their order has changed.
|
|
183
375
|
*
|
|
@@ -187,6 +379,12 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
|
|
|
187
379
|
const layout = this._getPanel();
|
|
188
380
|
const currentLayoutElements = layout.getItems();
|
|
189
381
|
if (Array.isArray(this._allLayoutElements) && currentLayoutElements.length === this._allLayoutElements.length) {
|
|
382
|
+
//pick each elements out from this._orderedSections
|
|
383
|
+
const elementList = this._reduceOrderedSections();
|
|
384
|
+
//Now loop through elementList and _allLayoutElements to rearrange _allLayoutElements list based on completeId
|
|
385
|
+
this._allLayoutElements = elementList.map(element => {
|
|
386
|
+
return this._allLayoutElements.find(layoutElement => layoutElement.getId() === element.completeId);
|
|
387
|
+
});
|
|
190
388
|
const isOrderChanged = currentLayoutElements.some((element, index) => {
|
|
191
389
|
return element.getId() !== this._allLayoutElements[index].getId();
|
|
192
390
|
});
|
|
@@ -319,7 +517,7 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
|
|
|
319
517
|
*/
|
|
320
518
|
_getActualIndex: function _getActualIndex(id) {
|
|
321
519
|
const layout = this._getPanel();
|
|
322
|
-
this._allLayoutElements =
|
|
520
|
+
this._allLayoutElements = [...layout.getItems()];
|
|
323
521
|
const isLayoutExpanded = layout.getProperty("expanded");
|
|
324
522
|
const expandedElementConfig = layout._getCurrentExpandedElement();
|
|
325
523
|
if (isLayoutExpanded && expandedElementConfig) {
|
|
@@ -374,12 +572,42 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
|
|
|
374
572
|
const sectionOrder = _this4._orderedSections;
|
|
375
573
|
const dragObject = oDragItem.getBindingContext()?.getObject();
|
|
376
574
|
const dropObject = oDropItem.getBindingContext()?.getObject();
|
|
377
|
-
|
|
378
|
-
|
|
575
|
+
let actualDragItemIndex = _this4._getActualIndex(dragObject.completeId);
|
|
576
|
+
let actualDropItemIndex = _this4._getActualIndex(dropObject.completeId);
|
|
379
577
|
_this4._rearrangeLayoutElements(actualDragItemIndex, actualDropItemIndex);
|
|
380
578
|
sectionOrder.splice(iDragItemIndex, 1);
|
|
381
579
|
sectionOrder.splice(iDropItemIndex, 0, dragObject);
|
|
382
580
|
oWrapper.setSections(sectionOrder);
|
|
581
|
+
//loop through the oWrapper.getItems() and find the index and noData Container
|
|
582
|
+
let noDataContainerIndex = -1;
|
|
583
|
+
const items = oWrapper.getItems();
|
|
584
|
+
let noDataContainer = null;
|
|
585
|
+
for (let i = 0; i < items.length; i++) {
|
|
586
|
+
const item = items[i];
|
|
587
|
+
if (item instanceof NoDataContainer) {
|
|
588
|
+
noDataContainerIndex = i;
|
|
589
|
+
noDataContainer = item;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
//now insert the noDataContainer back to its noDataContainerIndex in sectionOrder
|
|
594
|
+
if (noDataContainer && noDataContainerIndex !== -1) {
|
|
595
|
+
sectionOrder.splice(noDataContainerIndex, 0, noDataContainer);
|
|
596
|
+
}
|
|
597
|
+
let finalTargetIndex = 0;
|
|
598
|
+
const elementList = _this4._reduceOrderedSections();
|
|
599
|
+
finalTargetIndex = elementList.findIndex(element => element.completeId === dragObject.completeId);
|
|
600
|
+
|
|
601
|
+
//find the composite child for this dragObject if it has a composite id
|
|
602
|
+
const compositeChildren = elementList.filter(element => {
|
|
603
|
+
if (dragObject.compositeId && dragObject.compositeId === element.compositeId && element.completeId !== dragObject.completeId) {
|
|
604
|
+
return true;
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
if (noDataContainer && noDataContainerIndex !== -1) {
|
|
608
|
+
//remove noDataContainer from sectionOrder to avoid the display of an empty item in myhome Settings dialog
|
|
609
|
+
sectionOrder.splice(noDataContainerIndex, 1);
|
|
610
|
+
}
|
|
383
611
|
_this4._manageSectionsChanges.push({
|
|
384
612
|
selectorElement: oWrapper,
|
|
385
613
|
changeSpecificData: {
|
|
@@ -387,7 +615,8 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
|
|
|
387
615
|
movedElements: [{
|
|
388
616
|
id: dragObject.completeId,
|
|
389
617
|
sourceIndex: actualDragItemIndex,
|
|
390
|
-
targetIndex:
|
|
618
|
+
targetIndex: iDragItemIndex < iDropItemIndex && dragObject.isComposite && compositeChildren.length ? finalTargetIndex + 1 // Adjust index when composite has children and moving forward
|
|
619
|
+
: finalTargetIndex
|
|
391
620
|
}],
|
|
392
621
|
source: {
|
|
393
622
|
id: wrapperId,
|
|
@@ -399,11 +628,60 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
|
|
|
399
628
|
}
|
|
400
629
|
}
|
|
401
630
|
});
|
|
631
|
+
if (compositeChildren.length > 0) {
|
|
632
|
+
compositeChildren.forEach(compositeChild => {
|
|
633
|
+
_this4._manageSectionsChanges.push({
|
|
634
|
+
selectorElement: oWrapper,
|
|
635
|
+
changeSpecificData: {
|
|
636
|
+
changeType: CHANGE_TYPES.MOVE,
|
|
637
|
+
movedElements: [{
|
|
638
|
+
id: compositeChild.completeId,
|
|
639
|
+
sourceIndex: actualDragItemIndex,
|
|
640
|
+
targetIndex: finalTargetIndex + 1 // +1 as it will be after the main dragObject
|
|
641
|
+
}],
|
|
642
|
+
source: {
|
|
643
|
+
id: wrapperId,
|
|
644
|
+
aggregation: "items"
|
|
645
|
+
},
|
|
646
|
+
target: {
|
|
647
|
+
id: wrapperId,
|
|
648
|
+
aggregation: "items"
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
});
|
|
653
|
+
}
|
|
402
654
|
return Promise.resolve(_this4._saveManageSectionsDialog()).then(function () {
|
|
403
|
-
//
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
|
|
655
|
+
// Switch to collapsed view if any of the containers is in expanded view
|
|
656
|
+
const isLayoutExpanded = oWrapper.getProperty("expanded");
|
|
657
|
+
if (isLayoutExpanded && dragObject.isComposite) {
|
|
658
|
+
const expandedElementName = oWrapper._getCurrentExpandedElementName();
|
|
659
|
+
const compositeContainer = Element.getElementById(dragObject.completeId);
|
|
660
|
+
//find the fullScreenName of the expanded element from the content of composite container
|
|
661
|
+
const fullScreenName = compositeContainer.getContent().find(panel => panel.getProperty("fullScreenName") === expandedElementName)?.getProperty("fullScreenName");
|
|
662
|
+
let draggedContainer;
|
|
663
|
+
|
|
664
|
+
// If expanded element name differs, find the matching child container
|
|
665
|
+
if (expandedElementName !== fullScreenName) {
|
|
666
|
+
const matchingChild = dragObject.children?.find(child => {
|
|
667
|
+
const childContainer = Element.getElementById(child.completeId);
|
|
668
|
+
//loop through the content of childContainer to find the panel which has fullScreenName property same as expandedElementName
|
|
669
|
+
return childContainer.getContent().find(panel => {
|
|
670
|
+
return panel.getProperty("fullScreenName") === expandedElementName;
|
|
671
|
+
});
|
|
672
|
+
});
|
|
673
|
+
draggedContainer = matchingChild ? Element.getElementById(matchingChild.completeId) : Element.getElementById(dragObject.completeId);
|
|
674
|
+
} else {
|
|
675
|
+
draggedContainer = Element.getElementById(dragObject.completeId);
|
|
676
|
+
}
|
|
677
|
+
const droppedContainer = Element.getElementById(dropObject.completeId);
|
|
678
|
+
_this4._switchToCollapsedViewIfRequired([draggedContainer, droppedContainer]);
|
|
679
|
+
} else {
|
|
680
|
+
// Fallback: always collapse dragged and dropped containers
|
|
681
|
+
const draggedContainer = Element.getElementById(dragObject.completeId);
|
|
682
|
+
const droppedContainer = Element.getElementById(dropObject.completeId);
|
|
683
|
+
_this4._switchToCollapsedViewIfRequired([draggedContainer, droppedContainer]);
|
|
684
|
+
}
|
|
407
685
|
});
|
|
408
686
|
}
|
|
409
687
|
}();
|
|
@@ -430,8 +708,15 @@ sap.ui.define(["sap/base/Log", "sap/m/Button", "sap/m/Column", "sap/m/ColumnList
|
|
|
430
708
|
if (oAction === _this5._i18nBundle.getText("reset_cards_button")) {
|
|
431
709
|
const aChangesForDeletion = [];
|
|
432
710
|
for (let section of _this5._orderedSections) {
|
|
433
|
-
|
|
434
|
-
|
|
711
|
+
if (section.isComposite && section.children) {
|
|
712
|
+
for (let panel of section.children) {
|
|
713
|
+
const element = Element.getElementById(panel.completeId);
|
|
714
|
+
aChangesForDeletion.push(element);
|
|
715
|
+
}
|
|
716
|
+
} else {
|
|
717
|
+
const element = Element.getElementById(section.completeId);
|
|
718
|
+
aChangesForDeletion.push(element);
|
|
719
|
+
}
|
|
435
720
|
}
|
|
436
721
|
// Revert Changes Related to DragnDrop
|
|
437
722
|
aChangesForDeletion.push(_this5._getPanel());
|