@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
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
declare module "sap/cux/home/InsightsContainer" {
|
|
2
|
-
/*!
|
|
3
|
-
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
4
|
-
* * (c) Copyright 2009-2025 SAP SE. All rights reserved
|
|
5
|
-
*/
|
|
6
|
-
import Button from "sap/m/Button";
|
|
7
|
-
import type { $BaseContainerSettings } from "sap/cux/home/BaseContainer";
|
|
8
|
-
import BaseContainer from "sap/cux/home/BaseContainer";
|
|
9
|
-
import BasePanel from "sap/cux/home/BasePanel";
|
|
10
|
-
import CardsPanel, { cardsContainerMenuItems } from "sap/cux/home/CardsPanel";
|
|
11
|
-
import MenuItem from "sap/cux/home/MenuItem";
|
|
12
|
-
import TilesPanel, { tilesContainerMenuItems } from "sap/cux/home/TilesPanel";
|
|
13
|
-
const tilesPanelName: string;
|
|
14
|
-
const cardsPanelName: string;
|
|
15
|
-
const spaceInsightsPanelName: string;
|
|
16
|
-
const sortedMenuItems: (tilesContainerMenuItems | cardsContainerMenuItems | string)[];
|
|
17
|
-
interface IpanelLoaded {
|
|
18
|
-
[key: string]: {
|
|
19
|
-
loaded: boolean | undefined;
|
|
20
|
-
count: number;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
interface IpanelContext {
|
|
24
|
-
[key: string]: TilesPanel | CardsPanel;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* Container class for managing and storing Insights Tiles and Insights Cards.
|
|
29
|
-
*
|
|
30
|
-
* @extends sap.cux.home.BaseContainer
|
|
31
|
-
*
|
|
32
|
-
* @author SAP SE
|
|
33
|
-
* @version 0.0.1
|
|
34
|
-
* @since 1.121
|
|
35
|
-
*
|
|
36
|
-
* @private
|
|
37
|
-
* @ui5-restricted ux.eng.s4producthomes1
|
|
38
|
-
*
|
|
39
|
-
* @alias sap.cux.home.InsightsContainer
|
|
40
|
-
*/
|
|
41
|
-
export default class InsightsContainer extends BaseContainer {
|
|
42
|
-
static readonly renderer: {
|
|
43
|
-
apiVersion: number;
|
|
44
|
-
render: (rm: import("sap/ui/core/RenderManager").default, control: BaseContainer) => void;
|
|
45
|
-
renderContent: (rm: import("sap/ui/core/RenderManager").default, control: BaseContainer) => void;
|
|
46
|
-
};
|
|
47
|
-
private _errorPanel;
|
|
48
|
-
private _isInitialRender;
|
|
49
|
-
private panelLoaded;
|
|
50
|
-
private panelContext;
|
|
51
|
-
constructor(id?: string | $BaseContainerSettings);
|
|
52
|
-
constructor(id?: string, settings?: $BaseContainerSettings);
|
|
53
|
-
/**
|
|
54
|
-
* Init lifecycle method
|
|
55
|
-
*
|
|
56
|
-
* @private
|
|
57
|
-
* @override
|
|
58
|
-
*/
|
|
59
|
-
init(): void;
|
|
60
|
-
/**
|
|
61
|
-
* Loads the Insights section.
|
|
62
|
-
* Overrides the load method of the BaseContainer.
|
|
63
|
-
*
|
|
64
|
-
* @private
|
|
65
|
-
* @override
|
|
66
|
-
*/
|
|
67
|
-
load(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Handles the hiding of a panel by removing its content, updating the panel load status,
|
|
70
|
-
* and managing the display of the container header and error panel.
|
|
71
|
-
*
|
|
72
|
-
* @param {BasePanel} panel - The panel to be hidden.
|
|
73
|
-
* @private
|
|
74
|
-
*/
|
|
75
|
-
handleHidePanel(panel: BasePanel): void;
|
|
76
|
-
/**
|
|
77
|
-
* Adds the container header based on the number of visible panels.
|
|
78
|
-
*
|
|
79
|
-
* @private
|
|
80
|
-
*/
|
|
81
|
-
private _addContainerHeader;
|
|
82
|
-
/**
|
|
83
|
-
* Removes the container header.
|
|
84
|
-
*
|
|
85
|
-
* @private
|
|
86
|
-
*/
|
|
87
|
-
private _removeContainerHeader;
|
|
88
|
-
/**
|
|
89
|
-
* Hides the specified menu items.
|
|
90
|
-
*
|
|
91
|
-
* @private
|
|
92
|
-
* @param {string[]} hiddenMenuItems - The IDs of the menu items to hide.
|
|
93
|
-
*/
|
|
94
|
-
private _hideMenuItems;
|
|
95
|
-
/**
|
|
96
|
-
* Hides the specified action buttons.
|
|
97
|
-
*
|
|
98
|
-
* @private
|
|
99
|
-
* @param {string[]} hiddenActionButtons - The IDs of the action buttons to hide.
|
|
100
|
-
*/
|
|
101
|
-
private _hideActionButtons;
|
|
102
|
-
/**
|
|
103
|
-
* Updates the item count for the specified panel.
|
|
104
|
-
*
|
|
105
|
-
* @param {number} itemCount - The new item count.
|
|
106
|
-
* @param {string} panelName - The name of the panel.
|
|
107
|
-
*/
|
|
108
|
-
updatePanelsItemCount(itemCount: number, panelName: string): void;
|
|
109
|
-
/**
|
|
110
|
-
* Unhides the specified panel if it is hidden.
|
|
111
|
-
*
|
|
112
|
-
* @param {TilesPanel | CardsPanel} panel - The panel to unhide.
|
|
113
|
-
*/
|
|
114
|
-
unhidePanelIfHidden(panel: TilesPanel | CardsPanel): void;
|
|
115
|
-
/**
|
|
116
|
-
* Updates the container header based on the number of visible panels.
|
|
117
|
-
*
|
|
118
|
-
* @private
|
|
119
|
-
* @param {TilesPanel | CardsPanel} panel - The panel being managed.
|
|
120
|
-
*/
|
|
121
|
-
private _updateHeaderElements;
|
|
122
|
-
/**
|
|
123
|
-
* Adjusts the layout of the container.
|
|
124
|
-
*
|
|
125
|
-
* @private
|
|
126
|
-
* @override
|
|
127
|
-
*/
|
|
128
|
-
adjustLayout(): void;
|
|
129
|
-
/**
|
|
130
|
-
* Add common Menu Items for Insights Container from Panel
|
|
131
|
-
*
|
|
132
|
-
* @private
|
|
133
|
-
*/
|
|
134
|
-
addCommonMenuItems(menuItems?: MenuItem[]): void;
|
|
135
|
-
/**
|
|
136
|
-
* Add common Action Buttons for Insights Container from Panel
|
|
137
|
-
*
|
|
138
|
-
* @private
|
|
139
|
-
*/
|
|
140
|
-
addCommonActionButtons(actionButtons?: Button[]): void;
|
|
141
|
-
/**
|
|
142
|
-
* Handles the loading of a panel.
|
|
143
|
-
*
|
|
144
|
-
* @param {string} panelName - The name of the panel.
|
|
145
|
-
* @param {object} oVal - The load status and count of the panel.
|
|
146
|
-
* @param {boolean} oVal.loaded - The load status of the panel.
|
|
147
|
-
* @param {number} oVal.count - The count of items in the panel.
|
|
148
|
-
*/
|
|
149
|
-
handlePanelLoad(panelName: string, oVal: {
|
|
150
|
-
loaded: boolean;
|
|
151
|
-
count: number;
|
|
152
|
-
}): void;
|
|
153
|
-
/**
|
|
154
|
-
* Updates the visibility and text of an action button.
|
|
155
|
-
*
|
|
156
|
-
* @param {Button} actionButton - The action button to update.
|
|
157
|
-
* @param {boolean} visibility - The visibility of the action button.
|
|
158
|
-
* @param {string} text - The text of the action button.
|
|
159
|
-
*/
|
|
160
|
-
updateActionButton(actionButton: Button, visibility: boolean, text: string): void;
|
|
161
|
-
/**
|
|
162
|
-
* Updates the visibility and text of a menu item.
|
|
163
|
-
*
|
|
164
|
-
* @param {MenuItem} menuItem - The menu item to update.
|
|
165
|
-
* @param {boolean} visibility - The visibility of the menu item.
|
|
166
|
-
* @param {string} text - The text of the menu item.
|
|
167
|
-
*/
|
|
168
|
-
updateMenuItem(menuItem: MenuItem, visibility: boolean, text: string): void;
|
|
169
|
-
/**
|
|
170
|
-
* Gets the names of the loaded panels.
|
|
171
|
-
*
|
|
172
|
-
* @private
|
|
173
|
-
* @returns {string[]} The names of the loaded panels.
|
|
174
|
-
*/
|
|
175
|
-
private _getLoadedPanelNames;
|
|
176
|
-
/**
|
|
177
|
-
* Returns the names of panels that are still loading or in loaded true state
|
|
178
|
-
*
|
|
179
|
-
* @private
|
|
180
|
-
* @private
|
|
181
|
-
*/
|
|
182
|
-
private getVisibleOrPendingPanels;
|
|
183
|
-
/**
|
|
184
|
-
* Sorts the menu items based on the provided order.
|
|
185
|
-
*
|
|
186
|
-
* @private
|
|
187
|
-
* @param {string[]} menuItems - The order of the menu items.
|
|
188
|
-
*/
|
|
189
|
-
private _sortMenuItems;
|
|
190
|
-
/**
|
|
191
|
-
* Retrieves the generic placeholder content for the Insights container.
|
|
192
|
-
*
|
|
193
|
-
* @returns {string} The HTML string representing the Insights container's placeholder content.
|
|
194
|
-
*/
|
|
195
|
-
protected getGenericPlaceholderContent(): string;
|
|
196
|
-
/**
|
|
197
|
-
* Refreshes the data for a specific panel based on its key.
|
|
198
|
-
*
|
|
199
|
-
* @private
|
|
200
|
-
* @param {string} key - The key of the panel to refresh.
|
|
201
|
-
*/
|
|
202
|
-
refreshData(key: string): Promise<void>;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
//# sourceMappingURL=InsightsContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsContainer.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/InsightsContainer.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,gCAAgC,CAAC;IAChD;;;OAGG;IAEH,OAAO,MAAM,MAAM,cAAc,CAAC;IAClC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;IACzE,OAAO,aAAa,MAAM,4BAA4B,CAAC;IACvD,OAAO,SAAS,MAAM,wBAAwB,CAAC;IAC/C,OAAO,UAAU,EAAE,EAA+B,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;IAE3G,OAAO,QAAQ,MAAM,uBAAuB,CAAC;IAE7C,OAAO,UAAU,EAAE,EAA+B,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;IAK3G,MAAM,cAAc,EAAE,MAAkC,CAAC;IACzD,MAAM,cAAc,EAAE,MAAkC,CAAC;IACzD,MAAM,sBAAsB,EAAE,MAA0C,CAAC;IACzE,MAAM,eAAe,EAAE,CAAC,uBAAuB,GAAG,uBAAuB,GAAG,MAAM,CAAC,EAUlF,CAAC;IAEF,UAAU,YAAY;QACrB,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KAC9D;IAED,UAAU,aAAa;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;KACvC;IAED;;;;;;;;;;;;;;OAcG;IAEH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,aAAa;QAC3D,MAAM,CAAC,QAAQ,CAAC,QAAQ;;;;UAGtB;QACF,OAAO,CAAC,WAAW,CAAc;QACjC,OAAO,CAAC,gBAAgB,CAAiB;QACzC,OAAO,CAAC,WAAW,CAAgB;QACnC,OAAO,CAAC,YAAY,CAAiB;oBAEzB,EAAE,CAAC,EAAE,MAAM,GAAG,sBAAsB;oBACpC,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,sBAAsB;QAW1D;;;;;WAKG;QACI,IAAI,IAAI,IAAI;QAoBnB;;;;;;WAMG;QACI,IAAI;QAuBX;;;;;;WAMG;QACI,eAAe,CAAC,KAAK,EAAE,SAAS;QA6BvC;;;;WAIG;QACH,OAAO,CAAC,mBAAmB;QAoC3B;;;;WAIG;QACH,OAAO,CAAC,sBAAsB;QAU9B;;;;;WAKG;QACH,OAAO,CAAC,cAAc;QAQtB;;;;;WAKG;QACH,OAAO,CAAC,kBAAkB;QAQ1B;;;;;WAKG;QACI,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;QAajE;;;;WAIG;QACI,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU;QAiDzD;;;;;WAKG;QAEH,OAAO,CAAC,qBAAqB;QAU7B;;;;;WAKG;QACI,YAAY;QAoBnB;;;;WAIG;QACI,kBAAkB,CAAC,SAAS,GAAE,QAAQ,EAAO;QAMpD;;;;WAIG;QACI,sBAAsB,CAAC,aAAa,GAAE,MAAM,EAAO;QAI1D;;;;;;;WAOG;QACI,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE;YAAE,MAAM,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE;QAQlF;;;;;;WAMG;QACI,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM;QAQjF;;;;;;WAMG;QACI,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM;QAQ3E;;;;;WAKG;QACH,OAAO,CAAC,oBAAoB;QAI5B;;;;;WAKG;QACH,OAAO,CAAC,yBAAyB;QAGjC;;;;;WAKG;QACH,OAAO,CAAC,cAAc;QAOtB;;;;WAIG;QACH,SAAS,CAAC,4BAA4B,IAAI,MAAM;QAIhD;;;;;WAKG;QACU,WAAW,CAAC,GAAG,EAAE,MAAM;KAIpC;CAEA"}
|
|
@@ -1,459 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
-
* * (c) Copyright 2009-2025 SAP SE. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./SpaceInsightsPanel", "./TilesPanel", "./utils/Device", "./utils/InsightsUtils", "./utils/placeholder/InsightsPlaceholder"], function (__BaseContainer, __CardsPanel, __ErrorPanel, __SpaceInsightsPanel, __TilesPanel, ___utils_Device, ___utils_InsightsUtils, ___utils_placeholder_InsightsPlaceholder) {
|
|
6
|
-
"use strict";
|
|
7
|
-
|
|
8
|
-
function _interopRequireDefault(obj) {
|
|
9
|
-
return obj && obj.__esModule && typeof obj.default !== "undefined" ? obj.default : obj;
|
|
10
|
-
}
|
|
11
|
-
const BaseContainer = _interopRequireDefault(__BaseContainer);
|
|
12
|
-
const CardsPanel = _interopRequireDefault(__CardsPanel);
|
|
13
|
-
const cardsContainerActionButtons = __CardsPanel["cardsContainerActionButtons"];
|
|
14
|
-
const cardsContainerMenuItems = __CardsPanel["cardsContainerMenuItems"];
|
|
15
|
-
const ErrorPanel = _interopRequireDefault(__ErrorPanel);
|
|
16
|
-
const SpaceInsightsPanel = _interopRequireDefault(__SpaceInsightsPanel);
|
|
17
|
-
const TilesPanel = _interopRequireDefault(__TilesPanel);
|
|
18
|
-
const tilesContainerActionButtons = __TilesPanel["tilesContainerActionButtons"];
|
|
19
|
-
const tilesContainerMenuItems = __TilesPanel["tilesContainerMenuItems"];
|
|
20
|
-
const DeviceType = ___utils_Device["DeviceType"];
|
|
21
|
-
const sortMenuItems = ___utils_InsightsUtils["sortMenuItems"];
|
|
22
|
-
const getInsightsPlaceholder = ___utils_placeholder_InsightsPlaceholder["getInsightsPlaceholder"];
|
|
23
|
-
const tilesPanelName = "sap.cux.home.TilesPanel";
|
|
24
|
-
const cardsPanelName = "sap.cux.home.CardsPanel";
|
|
25
|
-
const spaceInsightsPanelName = "sap.cux.home.SpaceInsightsPanel";
|
|
26
|
-
const sortedMenuItems = [tilesContainerMenuItems.REFRESH, cardsContainerMenuItems.REFRESH, tilesContainerMenuItems.ADD_APPS, tilesContainerMenuItems.EDIT_TILES, cardsContainerMenuItems.EDIT_CARDS, cardsContainerMenuItems.AI_INSIGHT_CARD, tilesContainerMenuItems.SHOW_MORE, cardsContainerMenuItems.SHOW_MORE, "settings"];
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* Container class for managing and storing Insights Tiles and Insights Cards.
|
|
30
|
-
*
|
|
31
|
-
* @extends sap.cux.home.BaseContainer
|
|
32
|
-
*
|
|
33
|
-
* @author SAP SE
|
|
34
|
-
* @version 0.0.1
|
|
35
|
-
* @since 1.121
|
|
36
|
-
*
|
|
37
|
-
* @private
|
|
38
|
-
* @ui5-restricted ux.eng.s4producthomes1
|
|
39
|
-
*
|
|
40
|
-
* @alias sap.cux.home.InsightsContainer
|
|
41
|
-
*/
|
|
42
|
-
const InsightsContainer = BaseContainer.extend("sap.cux.home.InsightsContainer", {
|
|
43
|
-
renderer: {
|
|
44
|
-
...BaseContainer.renderer,
|
|
45
|
-
apiVersion: 2
|
|
46
|
-
},
|
|
47
|
-
/**
|
|
48
|
-
* Constructor for a new Insights container.
|
|
49
|
-
*
|
|
50
|
-
* @param {string} [id] ID for the new control, generated automatically if an ID is not provided
|
|
51
|
-
* @param {object} [settings] Initial settings for the new control
|
|
52
|
-
*/
|
|
53
|
-
constructor: function _constructor(id, settings) {
|
|
54
|
-
BaseContainer.prototype.constructor.call(this, id, settings);
|
|
55
|
-
this._isInitialRender = true;
|
|
56
|
-
},
|
|
57
|
-
/**
|
|
58
|
-
* Init lifecycle method
|
|
59
|
-
*
|
|
60
|
-
* @private
|
|
61
|
-
* @override
|
|
62
|
-
*/
|
|
63
|
-
init: function _init() {
|
|
64
|
-
BaseContainer.prototype.init.call(this);
|
|
65
|
-
this.setProperty("title", this._i18nBundle?.getText("insights"));
|
|
66
|
-
/* As Container Level default value for enableSettings is false,
|
|
67
|
-
this needs to be added from container level.
|
|
68
|
-
(default value cannot be true as News & Page Container header should be hidden)
|
|
69
|
-
*/
|
|
70
|
-
this.setProperty("enableSettings", true);
|
|
71
|
-
this.setProperty("orientation", "Vertical");
|
|
72
|
-
this.panelLoaded = {
|
|
73
|
-
[tilesPanelName]: {
|
|
74
|
-
loaded: undefined,
|
|
75
|
-
count: 0
|
|
76
|
-
},
|
|
77
|
-
[cardsPanelName]: {
|
|
78
|
-
loaded: undefined,
|
|
79
|
-
count: 0
|
|
80
|
-
},
|
|
81
|
-
[spaceInsightsPanelName]: {
|
|
82
|
-
loaded: undefined,
|
|
83
|
-
count: 0
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
this.panelContext = {};
|
|
87
|
-
this.setTooltip(String(this._i18nBundle.getText("insights")));
|
|
88
|
-
this.addCustomSetting("title", this._i18nBundle.getText("insightLayoutSectionTitle"));
|
|
89
|
-
this.setTooltip(String(this._i18nBundle.getText("insightLayoutSectionTitle")));
|
|
90
|
-
},
|
|
91
|
-
/**
|
|
92
|
-
* Loads the Insights section.
|
|
93
|
-
* Overrides the load method of the BaseContainer.
|
|
94
|
-
*
|
|
95
|
-
* @private
|
|
96
|
-
* @override
|
|
97
|
-
*/
|
|
98
|
-
load: function _load() {
|
|
99
|
-
if (this._isInitialRender) {
|
|
100
|
-
const aContent = this.getContent();
|
|
101
|
-
aContent.forEach(oContent => {
|
|
102
|
-
this.panelContext[oContent.getMetadata().getName()] = oContent;
|
|
103
|
-
this.addCommonMenuItems(oContent.getContainerMenuItems?.());
|
|
104
|
-
this.addCommonActionButtons(oContent.getContainerActionButtons?.());
|
|
105
|
-
});
|
|
106
|
-
this._addContainerHeader();
|
|
107
|
-
|
|
108
|
-
// Render individual panels
|
|
109
|
-
aContent.forEach(content => {
|
|
110
|
-
const panel = content;
|
|
111
|
-
panel.handleHideHeader();
|
|
112
|
-
panel.attachHandleHidePanel(() => this.handleHidePanel(panel));
|
|
113
|
-
panel.attachHandleUnhidePanel(() => this.unhidePanelIfHidden(panel));
|
|
114
|
-
void panel.renderPanel();
|
|
115
|
-
});
|
|
116
|
-
this._isInitialRender = false;
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
/**
|
|
120
|
-
* Handles the hiding of a panel by removing its content, updating the panel load status,
|
|
121
|
-
* and managing the display of the container header and error panel.
|
|
122
|
-
*
|
|
123
|
-
* @param {BasePanel} panel - The panel to be hidden.
|
|
124
|
-
* @private
|
|
125
|
-
*/
|
|
126
|
-
handleHidePanel: function _handleHidePanel(panel) {
|
|
127
|
-
this.removeContent(panel);
|
|
128
|
-
const panelName = panel.getMetadata().getName();
|
|
129
|
-
this.handlePanelLoad(panelName, {
|
|
130
|
-
loaded: false,
|
|
131
|
-
count: 0
|
|
132
|
-
});
|
|
133
|
-
const panels = this._getLoadedPanelNames() || [];
|
|
134
|
-
const visibleOrPendingPanels = this.getVisibleOrPendingPanels() || [];
|
|
135
|
-
const panelCount = panels?.length;
|
|
136
|
-
this._addContainerHeader();
|
|
137
|
-
// only show error panel if all panels loaded state is false
|
|
138
|
-
if (visibleOrPendingPanels.length === 0 || visibleOrPendingPanels.length === 1 && visibleOrPendingPanels[0] === spaceInsightsPanelName) {
|
|
139
|
-
if (!this._errorPanel) {
|
|
140
|
-
this._errorPanel = new ErrorPanel(`${this.getId()}-errorPanel`, {
|
|
141
|
-
messageTitle: this._i18nBundle.getText("noAppsTitle"),
|
|
142
|
-
messageDescription: this._i18nBundle.getText("noInsightsMsg")
|
|
143
|
-
});
|
|
144
|
-
this._errorPanel.getData();
|
|
145
|
-
}
|
|
146
|
-
this.addAggregation("content", this._errorPanel);
|
|
147
|
-
} else if (panelCount === 1) {
|
|
148
|
-
const panel = this.getContent()[0];
|
|
149
|
-
if (panel && !(panel instanceof ErrorPanel)) {
|
|
150
|
-
panel?.handleHideHeader();
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
/**
|
|
155
|
-
* Adds the container header based on the number of visible panels.
|
|
156
|
-
*
|
|
157
|
-
* @private
|
|
158
|
-
*/
|
|
159
|
-
_addContainerHeader: function _addContainerHeader() {
|
|
160
|
-
const panels = this._getLoadedPanelNames();
|
|
161
|
-
let hiddenMenuItems = [];
|
|
162
|
-
let hiddenActionButtons = [];
|
|
163
|
-
this.setProperty("title", this._i18nBundle?.getText("insights"));
|
|
164
|
-
if (panels.length === 0 || this.getContent()[0] instanceof ErrorPanel) {
|
|
165
|
-
hiddenMenuItems = [tilesContainerMenuItems.REFRESH, cardsContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE, cardsContainerMenuItems.SHOW_MORE];
|
|
166
|
-
this._hideMenuItems(hiddenMenuItems);
|
|
167
|
-
hiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE, cardsContainerActionButtons.SHOW_MORE];
|
|
168
|
-
this._hideActionButtons(hiddenActionButtons);
|
|
169
|
-
} else if (panels.length === 1) {
|
|
170
|
-
const panelName = panels[0];
|
|
171
|
-
this.setProperty("title", `${this._i18nBundle?.getText("insights")} (${this.panelLoaded[panelName].count || 0})`);
|
|
172
|
-
if (this.panelContext[panels[0]] instanceof TilesPanel) {
|
|
173
|
-
hiddenMenuItems = [cardsContainerMenuItems.REFRESH, cardsContainerMenuItems.SHOW_MORE];
|
|
174
|
-
hiddenActionButtons = [cardsContainerActionButtons.SHOW_MORE];
|
|
175
|
-
}
|
|
176
|
-
if (this.panelContext[panels[0]] instanceof CardsPanel) {
|
|
177
|
-
hiddenMenuItems = [tilesContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE];
|
|
178
|
-
hiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE];
|
|
179
|
-
}
|
|
180
|
-
if (this.panelContext[panels[0]] instanceof SpaceInsightsPanel) {
|
|
181
|
-
this.setProperty("title", `${this.panelContext[panels[0]].getTitle()} (${this.panelLoaded[panelName].count || 0})`);
|
|
182
|
-
hiddenMenuItems = [tilesContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE, "settings"];
|
|
183
|
-
hiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE];
|
|
184
|
-
}
|
|
185
|
-
this._hideMenuItems(hiddenMenuItems);
|
|
186
|
-
this._hideActionButtons(hiddenActionButtons);
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
/**
|
|
190
|
-
* Removes the container header.
|
|
191
|
-
*
|
|
192
|
-
* @private
|
|
193
|
-
*/
|
|
194
|
-
_removeContainerHeader: function _removeContainerHeader() {
|
|
195
|
-
this.setProperty("title", "");
|
|
196
|
-
this.getAggregation("menuItems")?.forEach(menuItem => this.toggleMenuListItem(menuItem, false));
|
|
197
|
-
this.getAggregation("actionButtons")?.forEach(actionButton => this.toggleActionButton(actionButton, false));
|
|
198
|
-
const panels = this._getLoadedPanelNames();
|
|
199
|
-
panels.forEach(panelName => {
|
|
200
|
-
this.panelContext[panelName]?.handleAddHeader?.();
|
|
201
|
-
});
|
|
202
|
-
},
|
|
203
|
-
/**
|
|
204
|
-
* Hides the specified menu items.
|
|
205
|
-
*
|
|
206
|
-
* @private
|
|
207
|
-
* @param {string[]} hiddenMenuItems - The IDs of the menu items to hide.
|
|
208
|
-
*/
|
|
209
|
-
_hideMenuItems: function _hideMenuItems(hiddenMenuItems) {
|
|
210
|
-
const containerMenuItems = this.getAggregation("menuItems");
|
|
211
|
-
containerMenuItems?.forEach(menuItem => {
|
|
212
|
-
const includedInHiddenItems = hiddenMenuItems.some(hiddenItem => menuItem.getId().includes(hiddenItem));
|
|
213
|
-
this.toggleMenuListItem(menuItem, !includedInHiddenItems);
|
|
214
|
-
});
|
|
215
|
-
},
|
|
216
|
-
/**
|
|
217
|
-
* Hides the specified action buttons.
|
|
218
|
-
*
|
|
219
|
-
* @private
|
|
220
|
-
* @param {string[]} hiddenActionButtons - The IDs of the action buttons to hide.
|
|
221
|
-
*/
|
|
222
|
-
_hideActionButtons: function _hideActionButtons(hiddenActionButtons) {
|
|
223
|
-
const containerActionButtons = this.getAggregation("actionButtons");
|
|
224
|
-
containerActionButtons?.forEach(actionButton => {
|
|
225
|
-
const includedInHiddenItems = hiddenActionButtons.some(hiddenItem => actionButton.getId().includes(hiddenItem));
|
|
226
|
-
this.toggleActionButton(actionButton, !includedInHiddenItems);
|
|
227
|
-
});
|
|
228
|
-
},
|
|
229
|
-
/**
|
|
230
|
-
* Updates the item count for the specified panel.
|
|
231
|
-
*
|
|
232
|
-
* @param {number} itemCount - The new item count.
|
|
233
|
-
* @param {string} panelName - The name of the panel.
|
|
234
|
-
*/
|
|
235
|
-
updatePanelsItemCount: function _updatePanelsItemCount(itemCount, panelName) {
|
|
236
|
-
this.panelLoaded[panelName].count = itemCount;
|
|
237
|
-
const panels = this._getLoadedPanelNames();
|
|
238
|
-
// Container Title Will be displayed only in case of only one panel is present
|
|
239
|
-
if (panels.length === 1) {
|
|
240
|
-
const isSpaceInsightsPanel = this.panelContext[panels[0]] instanceof SpaceInsightsPanel;
|
|
241
|
-
this.setProperty("title", `${isSpaceInsightsPanel ? this.panelContext[panels[0]].getTitle() : this._i18nBundle?.getText("insights")} (${itemCount || 0})`);
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
/**
|
|
245
|
-
* Unhides the specified panel if it is hidden.
|
|
246
|
-
*
|
|
247
|
-
* @param {TilesPanel | CardsPanel} panel - The panel to unhide.
|
|
248
|
-
*/
|
|
249
|
-
unhidePanelIfHidden: function _unhidePanelIfHidden(panel) {
|
|
250
|
-
const layout = this._getLayout();
|
|
251
|
-
const panelExpandedName = layout._getCurrentExpandedElementName();
|
|
252
|
-
if (this._errorPanel) {
|
|
253
|
-
this.removeContent(this._errorPanel);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// Function to handle panel content insertion
|
|
257
|
-
const processPanelVisibility = (panelName, insertContentFn) => {
|
|
258
|
-
if (!panelExpandedName || panelExpandedName === panel.getProperty("fullScreenName")) {
|
|
259
|
-
/**
|
|
260
|
-
loaded value can be false or undefined, false being hidden and undefined being loading
|
|
261
|
-
if the panel is hidden then only unhide it
|
|
262
|
-
*/
|
|
263
|
-
if (this.panelLoaded[panelName].loaded === false) {
|
|
264
|
-
insertContentFn();
|
|
265
|
-
// Remove hidden class if applied
|
|
266
|
-
panel.setVisible(true);
|
|
267
|
-
}
|
|
268
|
-
this.handlePanelLoad(panelName, {
|
|
269
|
-
loaded: true,
|
|
270
|
-
count: this.panelLoaded[panelName].count
|
|
271
|
-
});
|
|
272
|
-
} else {
|
|
273
|
-
const listener = () => {
|
|
274
|
-
insertContentFn();
|
|
275
|
-
// Remove hidden class if applied
|
|
276
|
-
panel.setVisible(true);
|
|
277
|
-
layout.detachOnCollapse(listener); // Remove the listener after execution
|
|
278
|
-
};
|
|
279
|
-
this.handlePanelLoad(panelName, {
|
|
280
|
-
loaded: true,
|
|
281
|
-
count: this.panelLoaded[panelName].count
|
|
282
|
-
});
|
|
283
|
-
layout.attachOnCollapse(listener);
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
// Handling TilesPanel
|
|
288
|
-
if (panel instanceof TilesPanel && !this.panelLoaded[tilesPanelName].loaded) {
|
|
289
|
-
processPanelVisibility(tilesPanelName, () => this.insertContent(this.panelContext[tilesPanelName], 0));
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
// Handling CardsPanel
|
|
293
|
-
if (panel instanceof CardsPanel && !this.panelLoaded[cardsPanelName].loaded) {
|
|
294
|
-
processPanelVisibility(cardsPanelName, () => this.addContent(this.panelContext[cardsPanelName]));
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
// Handling SpaceInsightsPanel
|
|
298
|
-
if (panel instanceof SpaceInsightsPanel && !this.panelLoaded[spaceInsightsPanelName].loaded) {
|
|
299
|
-
processPanelVisibility(spaceInsightsPanelName, () => this.addContent(this.panelContext[cardsPanelName]));
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
/**
|
|
303
|
-
* Updates the container header based on the number of visible panels.
|
|
304
|
-
*
|
|
305
|
-
* @private
|
|
306
|
-
* @param {TilesPanel | CardsPanel} panel - The panel being managed.
|
|
307
|
-
*/
|
|
308
|
-
_updateHeaderElements: function _updateHeaderElements(panel) {
|
|
309
|
-
const panels = this._getLoadedPanelNames();
|
|
310
|
-
if (panels.length > 1) {
|
|
311
|
-
this._removeContainerHeader();
|
|
312
|
-
} else {
|
|
313
|
-
this._addContainerHeader();
|
|
314
|
-
panel.handleHideHeader();
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
/**
|
|
318
|
-
* Adjusts the layout of the container.
|
|
319
|
-
*
|
|
320
|
-
* @private
|
|
321
|
-
* @override
|
|
322
|
-
*/
|
|
323
|
-
adjustLayout: function _adjustLayout() {
|
|
324
|
-
//hide actions if the device is a phone
|
|
325
|
-
if (this.getDeviceType() === DeviceType.Mobile) {
|
|
326
|
-
this.toggleActionButtons(false);
|
|
327
|
-
} else {
|
|
328
|
-
const panels = this._getLoadedPanelNames();
|
|
329
|
-
// Unhide the Add Tiles button if the device is not a phone and header is visible
|
|
330
|
-
if (panels.length < 2) {
|
|
331
|
-
this.getAggregation("actionButtons")?.forEach(actionButton => {
|
|
332
|
-
if (actionButton.getId().includes(tilesContainerActionButtons.ADD_TILES)) {
|
|
333
|
-
this.toggleActionButton(actionButton, true);
|
|
334
|
-
}
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
//adjust layout of all panels
|
|
340
|
-
this.getContent().forEach(panel => panel._adjustLayout?.());
|
|
341
|
-
},
|
|
342
|
-
/**
|
|
343
|
-
* Add common Menu Items for Insights Container from Panel
|
|
344
|
-
*
|
|
345
|
-
* @private
|
|
346
|
-
*/
|
|
347
|
-
addCommonMenuItems: function _addCommonMenuItems(menuItems = []) {
|
|
348
|
-
menuItems.forEach(menuItem => this.addAggregation("menuItems", menuItem));
|
|
349
|
-
// after adding menu items sort them based on the order
|
|
350
|
-
this._sortMenuItems(sortedMenuItems);
|
|
351
|
-
},
|
|
352
|
-
/**
|
|
353
|
-
* Add common Action Buttons for Insights Container from Panel
|
|
354
|
-
*
|
|
355
|
-
* @private
|
|
356
|
-
*/
|
|
357
|
-
addCommonActionButtons: function _addCommonActionButtons(actionButtons = []) {
|
|
358
|
-
actionButtons.forEach(actionButton => this.addAggregation("actionButtons", actionButton));
|
|
359
|
-
},
|
|
360
|
-
/**
|
|
361
|
-
* Handles the loading of a panel.
|
|
362
|
-
*
|
|
363
|
-
* @param {string} panelName - The name of the panel.
|
|
364
|
-
* @param {object} oVal - The load status and count of the panel.
|
|
365
|
-
* @param {boolean} oVal.loaded - The load status of the panel.
|
|
366
|
-
* @param {number} oVal.count - The count of items in the panel.
|
|
367
|
-
*/
|
|
368
|
-
handlePanelLoad: function _handlePanelLoad(panelName, oVal) {
|
|
369
|
-
if (this.panelLoaded[panelName].loaded !== oVal.loaded) {
|
|
370
|
-
this.panelLoaded[panelName] = oVal;
|
|
371
|
-
this._updateHeaderElements(this.panelContext[panelName]);
|
|
372
|
-
}
|
|
373
|
-
this.adjustLayout();
|
|
374
|
-
},
|
|
375
|
-
/**
|
|
376
|
-
* Updates the visibility and text of an action button.
|
|
377
|
-
*
|
|
378
|
-
* @param {Button} actionButton - The action button to update.
|
|
379
|
-
* @param {boolean} visibility - The visibility of the action button.
|
|
380
|
-
* @param {string} text - The text of the action button.
|
|
381
|
-
*/
|
|
382
|
-
updateActionButton: function _updateActionButton(actionButton, visibility, text) {
|
|
383
|
-
if (actionButton?.getVisible() !== visibility || actionButton?.getText() !== text) {
|
|
384
|
-
this.toggleActionButton(actionButton, visibility);
|
|
385
|
-
actionButton?.setText(text);
|
|
386
|
-
this._updateContainerHeader(this);
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
/**
|
|
390
|
-
* Updates the visibility and text of a menu item.
|
|
391
|
-
*
|
|
392
|
-
* @param {MenuItem} menuItem - The menu item to update.
|
|
393
|
-
* @param {boolean} visibility - The visibility of the menu item.
|
|
394
|
-
* @param {string} text - The text of the menu item.
|
|
395
|
-
*/
|
|
396
|
-
updateMenuItem: function _updateMenuItem(menuItem, visibility, text) {
|
|
397
|
-
if (menuItem?.getVisible() !== visibility || menuItem?.getTitle() !== text) {
|
|
398
|
-
this.toggleMenuListItem(menuItem, visibility);
|
|
399
|
-
menuItem?.setTitle(text);
|
|
400
|
-
this._updateContainerHeader(this);
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
/**
|
|
404
|
-
* Gets the names of the loaded panels.
|
|
405
|
-
*
|
|
406
|
-
* @private
|
|
407
|
-
* @returns {string[]} The names of the loaded panels.
|
|
408
|
-
*/
|
|
409
|
-
_getLoadedPanelNames: function _getLoadedPanelNames() {
|
|
410
|
-
return Object.keys(this.panelLoaded).filter(panelName => this.panelLoaded[panelName].loaded);
|
|
411
|
-
},
|
|
412
|
-
/**
|
|
413
|
-
* Returns the names of panels that are still loading or in loaded true state
|
|
414
|
-
*
|
|
415
|
-
* @private
|
|
416
|
-
* @private
|
|
417
|
-
*/
|
|
418
|
-
getVisibleOrPendingPanels: function _getVisibleOrPendingPanels() {
|
|
419
|
-
return Object.keys(this.panelLoaded).filter(panelName => this.panelLoaded[panelName].loaded !== false);
|
|
420
|
-
},
|
|
421
|
-
/**
|
|
422
|
-
* Sorts the menu items based on the provided order.
|
|
423
|
-
*
|
|
424
|
-
* @private
|
|
425
|
-
* @param {string[]} menuItems - The order of the menu items.
|
|
426
|
-
*/
|
|
427
|
-
_sortMenuItems: function _sortMenuItems(menuItems) {
|
|
428
|
-
const containerMenuItems = this.getAggregation("menuItems");
|
|
429
|
-
let sortedMenuItems = sortMenuItems(menuItems, containerMenuItems);
|
|
430
|
-
this.removeAllAggregation("menuItems");
|
|
431
|
-
sortedMenuItems?.forEach(menuItem => this.addAggregation("menuItems", menuItem));
|
|
432
|
-
},
|
|
433
|
-
/**
|
|
434
|
-
* Retrieves the generic placeholder content for the Insights container.
|
|
435
|
-
*
|
|
436
|
-
* @returns {string} The HTML string representing the Insights container's placeholder content.
|
|
437
|
-
*/
|
|
438
|
-
getGenericPlaceholderContent: function _getGenericPlaceholderContent() {
|
|
439
|
-
return getInsightsPlaceholder();
|
|
440
|
-
},
|
|
441
|
-
/**
|
|
442
|
-
* Refreshes the data for a specific panel based on its key.
|
|
443
|
-
*
|
|
444
|
-
* @private
|
|
445
|
-
* @param {string} key - The key of the panel to refresh.
|
|
446
|
-
*/
|
|
447
|
-
refreshData: function _refreshData(key) {
|
|
448
|
-
try {
|
|
449
|
-
const _this = this;
|
|
450
|
-
const panel = Object.values(_this.panelContext).find(panel => panel.getKey() === key);
|
|
451
|
-
return Promise.resolve(panel?.refreshData?.(true)).then(function () {});
|
|
452
|
-
} catch (e) {
|
|
453
|
-
return Promise.reject(e);
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
return InsightsContainer;
|
|
458
|
-
});
|
|
459
|
-
//# sourceMappingURL=InsightsContainer.js.map
|