@sapui5/sap.cux.home 1.142.0 → 1.143.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/cux/home/.library +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 -5
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +6 -5
- package/src/sap/cux/home/App.d.ts.map +1 -1
- package/src/sap/cux/home/App.js +3 -0
- package/src/sap/cux/home/App.js.map +1 -1
- package/src/sap/cux/home/App.ts +3 -0
- package/src/sap/cux/home/AppsAdditionPanel.d.ts +74 -34
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.js +344 -146
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.ts +367 -149
- package/src/sap/cux/home/AppsContainer.js +2 -1
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +2 -2
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.js +9 -1
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +6 -2
- 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 +6 -0
- 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.map +1 -1
- package/src/sap/cux/home/BasePanel.js +3 -2
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +2 -1
- package/src/sap/cux/home/CardsContainer.d.ts +108 -0
- package/src/sap/cux/home/CardsContainer.d.ts.map +1 -0
- package/src/sap/cux/home/CardsContainer.js +207 -0
- package/src/sap/cux/home/CardsContainer.js.map +1 -0
- package/src/sap/cux/home/CardsContainer.ts +202 -0
- package/src/sap/cux/home/CardsPanel.d.ts +25 -59
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.js +157 -155
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +152 -175
- 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 +12 -6
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.ts +13 -5
- 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 -2
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +296 -301
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +18 -14
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts +4 -4
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.js +10 -9
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +9 -8
- 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 +3 -3
- 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 +288 -58
- 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 +45 -8
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +55 -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 +380 -64
- package/src/sap/cux/home/{NewsAndPagesContainer.d.ts → NewsContainer.d.ts} +13 -14
- package/src/sap/cux/home/NewsContainer.d.ts.map +1 -0
- package/src/sap/cux/home/{NewsAndPagesContainer.gen.d.ts → NewsContainer.gen.d.ts} +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} +29 -118
- 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.js +2 -2
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +3 -3
- package/src/sap/cux/home/NewsSettingsPanel.js +3 -3
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +4 -4
- 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 +18 -10
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +25 -15
- 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/SettingsDialog.d.ts +7 -0
- package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/SettingsDialog.js +18 -10
- package/src/sap/cux/home/SettingsDialog.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.ts +20 -13
- 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 +66 -132
- package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.ts +69 -151
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.js +14 -12
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +17 -15
- 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 +184 -165
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +160 -154
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +30 -58
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +29 -28
- 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 +33 -13
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_da.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_de.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_el.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_en.properties +9 -5
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +14 -6
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +14 -6
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_es.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_et.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_id.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_it.properties +10 -6
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_no.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_th.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +8 -4
- package/src/sap/cux/home/interface/AppsInterface.d.ts +1 -0
- package/src/sap/cux/home/interface/AppsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.js.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.ts +1 -0
- package/src/sap/cux/home/interface/KeyUserInterface.d.ts +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/BaseContainer.less +36 -0
- package/src/sap/cux/home/themes/base/BaseLayout.less +11 -0
- package/src/sap/cux/home/themes/base/{InsightsContainer.less → CardsContainer.less} +0 -45
- package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +10 -18
- package/src/sap/cux/home/themes/base/PlaceHolder.less +1 -1
- package/src/sap/cux/home/themes/base/SettingsDialog.less +4 -0
- package/src/sap/cux/home/themes/base/TilesContainer.less +65 -0
- package/src/sap/cux/home/themes/base/library.source.less +2 -1
- package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/AppManager.js +2 -1
- package/src/sap/cux/home/utils/AppManager.js.map +1 -1
- package/src/sap/cux/home/utils/AppManager.ts +2 -2
- 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 +155 -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,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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsContainer.js","names":["sap","ui","define","__BaseContainer","__CardsPanel","__ErrorPanel","__SpaceInsightsPanel","__TilesPanel","___utils_Device","___utils_InsightsUtils","___utils_placeholder_InsightsPlaceholder","_interopRequireDefault","obj","__esModule","default","BaseContainer","CardsPanel","cardsContainerActionButtons","cardsContainerMenuItems","ErrorPanel","SpaceInsightsPanel","TilesPanel","tilesContainerActionButtons","tilesContainerMenuItems","DeviceType","sortMenuItems","getInsightsPlaceholder","tilesPanelName","cardsPanelName","spaceInsightsPanelName","sortedMenuItems","REFRESH","ADD_APPS","EDIT_TILES","EDIT_CARDS","AI_INSIGHT_CARD","SHOW_MORE","InsightsContainer","extend","renderer","apiVersion","constructor","_constructor","id","settings","BaseContainer.prototype.constructor.call","_isInitialRender","init","_init","BaseContainer.prototype.init.call","setProperty","_i18nBundle","getText","panelLoaded","loaded","undefined","count","panelContext","setTooltip","String","addCustomSetting","load","_load","aContent","getContent","forEach","oContent","getMetadata","getName","addCommonMenuItems","getContainerMenuItems","addCommonActionButtons","getContainerActionButtons","_addContainerHeader","content","panel","handleHideHeader","attachHandleHidePanel","handleHidePanel","attachHandleUnhidePanel","unhidePanelIfHidden","renderPanel","_handleHidePanel","removeContent","panelName","handlePanelLoad","panels","_getLoadedPanelNames","visibleOrPendingPanels","getVisibleOrPendingPanels","panelCount","length","_errorPanel","getId","messageTitle","messageDescription","getData","addAggregation","hiddenMenuItems","hiddenActionButtons","_hideMenuItems","_hideActionButtons","getTitle","_removeContainerHeader","getAggregation","menuItem","toggleMenuListItem","actionButton","toggleActionButton","handleAddHeader","containerMenuItems","includedInHiddenItems","some","hiddenItem","includes","containerActionButtons","updatePanelsItemCount","_updatePanelsItemCount","itemCount","isSpaceInsightsPanel","_unhidePanelIfHidden","layout","_getLayout","panelExpandedName","_getCurrentExpandedElementName","processPanelVisibility","insertContentFn","getProperty","setVisible","listener","detachOnCollapse","attachOnCollapse","insertContent","addContent","_updateHeaderElements","adjustLayout","_adjustLayout","getDeviceType","Mobile","toggleActionButtons","ADD_TILES","_addCommonMenuItems","menuItems","_sortMenuItems","_addCommonActionButtons","actionButtons","_handlePanelLoad","oVal","updateActionButton","_updateActionButton","visibility","text","getVisible","setText","_updateContainerHeader","updateMenuItem","_updateMenuItem","setTitle","Object","keys","filter","_getVisibleOrPendingPanels","removeAllAggregation","getGenericPlaceholderContent","_getGenericPlaceholderContent","refreshData","_refreshData","key","_this","values","find","getKey","Promise","resolve","then","e","reject"],"sources":["InsightsContainer.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Button from \"sap/m/Button\";\nimport type { $BaseContainerSettings } from \"./BaseContainer\";\nimport BaseContainer from \"./BaseContainer\";\nimport BasePanel from \"./BasePanel\";\nimport CardsPanel, { cardsContainerActionButtons, cardsContainerMenuItems } from \"./CardsPanel\";\nimport ErrorPanel from \"./ErrorPanel\";\nimport MenuItem from \"./MenuItem\";\nimport SpaceInsightsPanel from \"./SpaceInsightsPanel\";\nimport TilesPanel, { tilesContainerActionButtons, tilesContainerMenuItems } from \"./TilesPanel\";\nimport { DeviceType } from \"./utils/Device\";\nimport { sortMenuItems } from \"./utils/InsightsUtils\";\nimport { getInsightsPlaceholder } from \"./utils/placeholder/InsightsPlaceholder\";\n\nconst tilesPanelName: string = \"sap.cux.home.TilesPanel\";\nconst cardsPanelName: string = \"sap.cux.home.CardsPanel\";\nconst spaceInsightsPanelName: string = \"sap.cux.home.SpaceInsightsPanel\";\nconst sortedMenuItems: (tilesContainerMenuItems | cardsContainerMenuItems | string)[] = [\n\ttilesContainerMenuItems.REFRESH,\n\tcardsContainerMenuItems.REFRESH,\n\ttilesContainerMenuItems.ADD_APPS,\n\ttilesContainerMenuItems.EDIT_TILES,\n\tcardsContainerMenuItems.EDIT_CARDS,\n\tcardsContainerMenuItems.AI_INSIGHT_CARD,\n\ttilesContainerMenuItems.SHOW_MORE,\n\tcardsContainerMenuItems.SHOW_MORE,\n\t\"settings\"\n];\n\ninterface IpanelLoaded {\n\t[key: string]: { loaded: boolean | undefined; count: number };\n}\n\ninterface IpanelContext {\n\t[key: string]: TilesPanel | CardsPanel;\n}\n\n/**\n *\n * Container class for managing and storing Insights Tiles and Insights Cards.\n *\n * @extends sap.cux.home.BaseContainer\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.InsightsContainer\n */\n\nexport default class InsightsContainer extends BaseContainer {\n\tstatic readonly renderer = {\n\t\t...BaseContainer.renderer,\n\t\tapiVersion: 2\n\t};\n\tprivate _errorPanel!: ErrorPanel;\n\tprivate _isInitialRender: boolean = true;\n\tprivate panelLoaded!: IpanelLoaded;\n\tprivate panelContext!: IpanelContext;\n\n\tconstructor(id?: string | $BaseContainerSettings);\n\tconstructor(id?: string, settings?: $BaseContainerSettings);\n\t/**\n\t * Constructor for a new Insights container.\n\t *\n\t * @param {string} [id] ID for the new control, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new control\n\t */\n\tpublic constructor(id?: string, settings?: $BaseContainerSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tsuper.init();\n\t\tthis.setProperty(\"title\", this._i18nBundle?.getText(\"insights\"));\n\t\t/* As Container Level default value for enableSettings is false,\n\t\t\tthis needs to be added from container level.\n\t\t\t(default value cannot be true as News & Page Container header should be hidden)\n\t\t*/\n\t\tthis.setProperty(\"enableSettings\", true);\n\t\tthis.setProperty(\"orientation\", \"Vertical\");\n\t\tthis.panelLoaded = {\n\t\t\t[tilesPanelName]: { loaded: undefined, count: 0 },\n\t\t\t[cardsPanelName]: { loaded: undefined, count: 0 },\n\t\t\t[spaceInsightsPanelName]: { loaded: undefined, count: 0 }\n\t\t};\n\t\tthis.panelContext = {};\n\t\tthis.setTooltip(String(this._i18nBundle.getText(\"insights\")));\n\t\tthis.addCustomSetting(\"title\", this._i18nBundle.getText(\"insightLayoutSectionTitle\") as string);\n\t\tthis.setTooltip(String(this._i18nBundle.getText(\"insightLayoutSectionTitle\")));\n\t}\n\n\t/**\n\t * Loads the Insights section.\n\t * Overrides the load method of the BaseContainer.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic load() {\n\t\tif (this._isInitialRender) {\n\t\t\tconst aContent = this.getContent();\n\t\t\taContent.forEach((oContent) => {\n\t\t\t\tthis.panelContext[oContent.getMetadata().getName()] = oContent as TilesPanel | CardsPanel;\n\t\t\t\tthis.addCommonMenuItems((oContent as TilesPanel | CardsPanel).getContainerMenuItems?.());\n\t\t\t\tthis.addCommonActionButtons((oContent as TilesPanel | CardsPanel).getContainerActionButtons?.());\n\t\t\t});\n\n\t\t\tthis._addContainerHeader();\n\n\t\t\t// Render individual panels\n\t\t\taContent.forEach((content) => {\n\t\t\t\tconst panel = content as TilesPanel | CardsPanel;\n\t\t\t\tpanel.handleHideHeader();\n\t\t\t\tpanel.attachHandleHidePanel(() => this.handleHidePanel(panel));\n\t\t\t\tpanel.attachHandleUnhidePanel(() => this.unhidePanelIfHidden(panel));\n\t\t\t\tvoid panel.renderPanel();\n\t\t\t});\n\t\t\tthis._isInitialRender = false;\n\t\t}\n\t}\n\n\t/**\n\t * Handles the hiding of a panel by removing its content, updating the panel load status,\n\t * and managing the display of the container header and error panel.\n\t *\n\t * @param {BasePanel} panel - The panel to be hidden.\n\t * @private\n\t */\n\tpublic handleHidePanel(panel: BasePanel) {\n\t\tthis.removeContent(panel);\n\t\tconst panelName = panel.getMetadata().getName();\n\t\tthis.handlePanelLoad(panelName, { loaded: false, count: 0 });\n\t\tconst panels = this._getLoadedPanelNames() || [];\n\t\tconst visibleOrPendingPanels = this.getVisibleOrPendingPanels() || [];\n\t\tconst panelCount = panels?.length;\n\t\tthis._addContainerHeader();\n\t\t// only show error panel if all panels loaded state is false\n\t\tif (\n\t\t\tvisibleOrPendingPanels.length === 0 ||\n\t\t\t(visibleOrPendingPanels.length === 1 && visibleOrPendingPanels[0] === spaceInsightsPanelName)\n\t\t) {\n\t\t\tif (!this._errorPanel) {\n\t\t\t\tthis._errorPanel = new ErrorPanel(`${this.getId()}-errorPanel`, {\n\t\t\t\t\tmessageTitle: this._i18nBundle.getText(\"noAppsTitle\"),\n\t\t\t\t\tmessageDescription: this._i18nBundle.getText(\"noInsightsMsg\")\n\t\t\t\t});\n\t\t\t\tthis._errorPanel.getData();\n\t\t\t}\n\t\t\tthis.addAggregation(\"content\", this._errorPanel);\n\t\t} else if (panelCount === 1) {\n\t\t\tconst panel = this.getContent()[0];\n\t\t\tif (panel && !(panel instanceof ErrorPanel)) {\n\t\t\t\t(panel as TilesPanel | CardsPanel)?.handleHideHeader();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Adds the container header based on the number of visible panels.\n\t *\n\t * @private\n\t */\n\tprivate _addContainerHeader() {\n\t\tconst panels: string[] = this._getLoadedPanelNames();\n\t\tlet hiddenMenuItems: string[] = [];\n\t\tlet hiddenActionButtons: string[] = [];\n\t\tthis.setProperty(\"title\", this._i18nBundle?.getText(\"insights\"));\n\t\tif (panels.length === 0 || this.getContent()[0] instanceof ErrorPanel) {\n\t\t\thiddenMenuItems = [\n\t\t\t\ttilesContainerMenuItems.REFRESH,\n\t\t\t\tcardsContainerMenuItems.REFRESH,\n\t\t\t\ttilesContainerMenuItems.SHOW_MORE,\n\t\t\t\tcardsContainerMenuItems.SHOW_MORE\n\t\t\t];\n\t\t\tthis._hideMenuItems(hiddenMenuItems);\n\t\t\thiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE, cardsContainerActionButtons.SHOW_MORE];\n\t\t\tthis._hideActionButtons(hiddenActionButtons);\n\t\t} else if (panels.length === 1) {\n\t\t\tconst panelName = panels[0];\n\t\t\tthis.setProperty(\"title\", `${this._i18nBundle?.getText(\"insights\")} (${this.panelLoaded[panelName].count || 0})`);\n\t\t\tif (this.panelContext[panels[0]] instanceof TilesPanel) {\n\t\t\t\thiddenMenuItems = [cardsContainerMenuItems.REFRESH, cardsContainerMenuItems.SHOW_MORE];\n\t\t\t\thiddenActionButtons = [cardsContainerActionButtons.SHOW_MORE];\n\t\t\t}\n\t\t\tif (this.panelContext[panels[0]] instanceof CardsPanel) {\n\t\t\t\thiddenMenuItems = [tilesContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE];\n\t\t\t\thiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE];\n\t\t\t}\n\t\t\tif (this.panelContext[panels[0]] instanceof SpaceInsightsPanel) {\n\t\t\t\tthis.setProperty(\"title\", `${this.panelContext[panels[0]].getTitle()} (${this.panelLoaded[panelName].count || 0})`);\n\t\t\t\thiddenMenuItems = [tilesContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE, \"settings\"];\n\t\t\t\thiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE];\n\t\t\t}\n\t\t\tthis._hideMenuItems(hiddenMenuItems);\n\t\t\tthis._hideActionButtons(hiddenActionButtons);\n\t\t}\n\t}\n\n\t/**\n\t * Removes the container header.\n\t *\n\t * @private\n\t */\n\tprivate _removeContainerHeader() {\n\t\tthis.setProperty(\"title\", \"\");\n\t\t(this.getAggregation(\"menuItems\") as MenuItem[])?.forEach((menuItem) => this.toggleMenuListItem(menuItem, false));\n\t\t(this.getAggregation(\"actionButtons\") as Button[])?.forEach((actionButton) => this.toggleActionButton(actionButton, false));\n\t\tconst panels = this._getLoadedPanelNames();\n\t\tpanels.forEach((panelName) => {\n\t\t\tthis.panelContext[panelName]?.handleAddHeader?.();\n\t\t});\n\t}\n\n\t/**\n\t * Hides the specified menu items.\n\t *\n\t * @private\n\t * @param {string[]} hiddenMenuItems - The IDs of the menu items to hide.\n\t */\n\tprivate _hideMenuItems(hiddenMenuItems: string[]) {\n\t\tconst containerMenuItems = this.getAggregation(\"menuItems\") as MenuItem[];\n\t\tcontainerMenuItems?.forEach((menuItem) => {\n\t\t\tconst includedInHiddenItems = hiddenMenuItems.some((hiddenItem) => menuItem.getId().includes(hiddenItem));\n\t\t\tthis.toggleMenuListItem(menuItem, !includedInHiddenItems);\n\t\t});\n\t}\n\n\t/**\n\t * Hides the specified action buttons.\n\t *\n\t * @private\n\t * @param {string[]} hiddenActionButtons - The IDs of the action buttons to hide.\n\t */\n\tprivate _hideActionButtons(hiddenActionButtons: string[]) {\n\t\tconst containerActionButtons = this.getAggregation(\"actionButtons\") as Button[];\n\t\tcontainerActionButtons?.forEach((actionButton) => {\n\t\t\tconst includedInHiddenItems = hiddenActionButtons.some((hiddenItem) => actionButton.getId().includes(hiddenItem));\n\t\t\tthis.toggleActionButton(actionButton, !includedInHiddenItems);\n\t\t});\n\t}\n\n\t/**\n\t * Updates the item count for the specified panel.\n\t *\n\t * @param {number} itemCount - The new item count.\n\t * @param {string} panelName - The name of the panel.\n\t */\n\tpublic updatePanelsItemCount(itemCount: number, panelName: string) {\n\t\tthis.panelLoaded[panelName].count = itemCount;\n\t\tconst panels = this._getLoadedPanelNames();\n\t\t// Container Title Will be displayed only in case of only one panel is present\n\t\tif (panels.length === 1) {\n\t\t\tconst isSpaceInsightsPanel = this.panelContext[panels[0]] instanceof SpaceInsightsPanel;\n\t\t\tthis.setProperty(\n\t\t\t\t\"title\",\n\t\t\t\t`${isSpaceInsightsPanel ? this.panelContext[panels[0]].getTitle() : this._i18nBundle?.getText(\"insights\")} (${itemCount || 0})`\n\t\t\t);\n\t\t}\n\t}\n\n\t/**\n\t * Unhides the specified panel if it is hidden.\n\t *\n\t * @param {TilesPanel | CardsPanel} panel - The panel to unhide.\n\t */\n\tpublic unhidePanelIfHidden(panel: TilesPanel | CardsPanel) {\n\t\tconst layout = this._getLayout();\n\t\tconst panelExpandedName = layout._getCurrentExpandedElementName();\n\n\t\tif (this._errorPanel) {\n\t\t\tthis.removeContent(this._errorPanel);\n\t\t}\n\n\t\t// Function to handle panel content insertion\n\t\tconst processPanelVisibility = (panelName: string, insertContentFn: () => void) => {\n\t\t\tif (!panelExpandedName || panelExpandedName === panel.getProperty(\"fullScreenName\")) {\n\t\t\t\t/**\n loaded value can be false or undefined, false being hidden and undefined being loading\n if the panel is hidden then only unhide it\n */\n\t\t\t\tif (this.panelLoaded[panelName].loaded === false) {\n\t\t\t\t\tinsertContentFn();\n\t\t\t\t\t// Remove hidden class if applied\n\t\t\t\t\tpanel.setVisible(true);\n\t\t\t\t}\n\t\t\t\tthis.handlePanelLoad(panelName, { loaded: true, count: this.panelLoaded[panelName].count });\n\t\t\t} else {\n\t\t\t\tconst listener = () => {\n\t\t\t\t\tinsertContentFn();\n\t\t\t\t\t// Remove hidden class if applied\n\t\t\t\t\tpanel.setVisible(true);\n\t\t\t\t\tlayout.detachOnCollapse(listener); // Remove the listener after execution\n\t\t\t\t};\n\t\t\t\tthis.handlePanelLoad(panelName, { loaded: true, count: this.panelLoaded[panelName].count });\n\t\t\t\tlayout.attachOnCollapse(listener);\n\t\t\t}\n\t\t};\n\n\t\t// Handling TilesPanel\n\t\tif (panel instanceof TilesPanel && !this.panelLoaded[tilesPanelName].loaded) {\n\t\t\tprocessPanelVisibility(tilesPanelName, () => this.insertContent(this.panelContext[tilesPanelName], 0));\n\t\t}\n\n\t\t// Handling CardsPanel\n\t\tif (panel instanceof CardsPanel && !this.panelLoaded[cardsPanelName].loaded) {\n\t\t\tprocessPanelVisibility(cardsPanelName, () => this.addContent(this.panelContext[cardsPanelName]));\n\t\t}\n\n\t\t// Handling SpaceInsightsPanel\n\t\tif (panel instanceof SpaceInsightsPanel && !this.panelLoaded[spaceInsightsPanelName].loaded) {\n\t\t\tprocessPanelVisibility(spaceInsightsPanelName, () => this.addContent(this.panelContext[cardsPanelName]));\n\t\t}\n\t}\n\n\t/**\n\t * Updates the container header based on the number of visible panels.\n\t *\n\t * @private\n\t * @param {TilesPanel | CardsPanel} panel - The panel being managed.\n\t */\n\n\tprivate _updateHeaderElements(panel: TilesPanel | CardsPanel) {\n\t\tconst panels = this._getLoadedPanelNames();\n\t\tif (panels.length > 1) {\n\t\t\tthis._removeContainerHeader();\n\t\t} else {\n\t\t\tthis._addContainerHeader();\n\t\t\tpanel.handleHideHeader();\n\t\t}\n\t}\n\n\t/**\n\t * Adjusts the layout of the container.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic adjustLayout() {\n\t\t//hide actions if the device is a phone\n\t\tif (this.getDeviceType() === DeviceType.Mobile) {\n\t\t\tthis.toggleActionButtons(false);\n\t\t} else {\n\t\t\tconst panels = this._getLoadedPanelNames();\n\t\t\t// Unhide the Add Tiles button if the device is not a phone and header is visible\n\t\t\tif (panels.length < 2) {\n\t\t\t\t(this.getAggregation(\"actionButtons\") as Button[])?.forEach((actionButton) => {\n\t\t\t\t\tif (actionButton.getId().includes(tilesContainerActionButtons.ADD_TILES)) {\n\t\t\t\t\t\tthis.toggleActionButton(actionButton, true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t//adjust layout of all panels\n\t\t(this.getContent() as (TilesPanel | CardsPanel)[]).forEach((panel) => panel._adjustLayout?.());\n\t}\n\n\t/**\n\t * Add common Menu Items for Insights Container from Panel\n\t *\n\t * @private\n\t */\n\tpublic addCommonMenuItems(menuItems: MenuItem[] = []) {\n\t\tmenuItems.forEach((menuItem) => this.addAggregation(\"menuItems\", menuItem));\n\t\t// after adding menu items sort them based on the order\n\t\tthis._sortMenuItems(sortedMenuItems);\n\t}\n\n\t/**\n\t * Add common Action Buttons for Insights Container from Panel\n\t *\n\t * @private\n\t */\n\tpublic addCommonActionButtons(actionButtons: Button[] = []) {\n\t\tactionButtons.forEach((actionButton) => this.addAggregation(\"actionButtons\", actionButton));\n\t}\n\n\t/**\n\t * Handles the loading of a panel.\n\t *\n\t * @param {string} panelName - The name of the panel.\n\t * @param {object} oVal - The load status and count of the panel.\n\t * @param {boolean} oVal.loaded - The load status of the panel.\n\t * @param {number} oVal.count - The count of items in the panel.\n\t */\n\tpublic handlePanelLoad(panelName: string, oVal: { loaded: boolean; count: number }) {\n\t\tif (this.panelLoaded[panelName].loaded !== oVal.loaded) {\n\t\t\tthis.panelLoaded[panelName] = oVal;\n\t\t\tthis._updateHeaderElements(this.panelContext[panelName]);\n\t\t}\n\t\tthis.adjustLayout();\n\t}\n\n\t/**\n\t * Updates the visibility and text of an action button.\n\t *\n\t * @param {Button} actionButton - The action button to update.\n\t * @param {boolean} visibility - The visibility of the action button.\n\t * @param {string} text - The text of the action button.\n\t */\n\tpublic updateActionButton(actionButton: Button, visibility: boolean, text: string) {\n\t\tif (actionButton?.getVisible() !== visibility || actionButton?.getText() !== text) {\n\t\t\tthis.toggleActionButton(actionButton, visibility);\n\t\t\tactionButton?.setText(text);\n\t\t\tthis._updateContainerHeader(this);\n\t\t}\n\t}\n\n\t/**\n\t * Updates the visibility and text of a menu item.\n\t *\n\t * @param {MenuItem} menuItem - The menu item to update.\n\t * @param {boolean} visibility - The visibility of the menu item.\n\t * @param {string} text - The text of the menu item.\n\t */\n\tpublic updateMenuItem(menuItem: MenuItem, visibility: boolean, text: string) {\n\t\tif (menuItem?.getVisible() !== visibility || menuItem?.getTitle() !== text) {\n\t\t\tthis.toggleMenuListItem(menuItem, visibility);\n\t\t\tmenuItem?.setTitle(text);\n\t\t\tthis._updateContainerHeader(this);\n\t\t}\n\t}\n\n\t/**\n\t * Gets the names of the loaded panels.\n\t *\n\t * @private\n\t * @returns {string[]} The names of the loaded panels.\n\t */\n\tprivate _getLoadedPanelNames() {\n\t\treturn Object.keys(this.panelLoaded).filter((panelName) => this.panelLoaded[panelName].loaded);\n\t}\n\n\t/**\n\t * Returns the names of panels that are still loading or in loaded true state\n\t *\n\t * @private\n\t * @private\n\t */\n\tprivate getVisibleOrPendingPanels() {\n\t\treturn Object.keys(this.panelLoaded).filter((panelName) => this.panelLoaded[panelName].loaded !== false);\n\t}\n\t/**\n\t * Sorts the menu items based on the provided order.\n\t *\n\t * @private\n\t * @param {string[]} menuItems - The order of the menu items.\n\t */\n\tprivate _sortMenuItems(menuItems: string[]) {\n\t\tconst containerMenuItems = this.getAggregation(\"menuItems\") as MenuItem[];\n\t\tlet sortedMenuItems = sortMenuItems(menuItems, containerMenuItems);\n\t\tthis.removeAllAggregation(\"menuItems\");\n\t\tsortedMenuItems?.forEach((menuItem) => this.addAggregation(\"menuItems\", menuItem));\n\t}\n\n\t/**\n\t * Retrieves the generic placeholder content for the Insights container.\n\t *\n\t * @returns {string} The HTML string representing the Insights container's placeholder content.\n\t */\n\tprotected getGenericPlaceholderContent(): string {\n\t\treturn getInsightsPlaceholder();\n\t}\n\n\t/**\n\t * Refreshes the data for a specific panel based on its key.\n\t *\n\t * @private\n\t * @param {string} key - The key of the panel to refresh.\n\t */\n\tpublic async refreshData(key: string) {\n\t\tconst panel = Object.values(this.panelContext).find((panel) => panel.getKey() === key);\n\t\tawait panel?.refreshData?.(true);\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,8LAAAC,eAAA,EAAAC,YAAA,EAAAC,YAAA,EAAAC,oBAAA,EAAAC,YAAA,EAAAC,eAAA,EAAAC,sBAAA,EAAAC,wCAAA;EAAA;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