@sapui5/sap.cux.home 1.142.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 -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/AppsAdditionPanel.d.ts +47 -34
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.js +333 -237
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.ts +344 -230
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.js +3 -2
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +3 -2
- package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.js +6 -1
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +6 -1
- package/src/sap/cux/home/BaseContainer.d.ts +1 -1
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.js +10 -2
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +7 -3
- 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/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 +43 -62
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.js +345 -285
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +211 -200
- 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 +14 -10
- 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 +20 -8
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +20 -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 -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.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.js +12 -14
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +13 -16
- package/src/sap/cux/home/NewsSettingsPanel.js +4 -4
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +5 -5
- 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/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 +16 -1
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +15 -1
- 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 +1 -0
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +38 -63
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +32 -31
- 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 +26 -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 +18 -2
- 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/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/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/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/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,489 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
-
* * (c) Copyright 2009-2025 SAP SE. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import Button from "sap/m/Button";
|
|
7
|
-
import type { $BaseContainerSettings } from "./BaseContainer";
|
|
8
|
-
import BaseContainer from "./BaseContainer";
|
|
9
|
-
import BasePanel from "./BasePanel";
|
|
10
|
-
import CardsPanel, { cardsContainerActionButtons, cardsContainerMenuItems } from "./CardsPanel";
|
|
11
|
-
import ErrorPanel from "./ErrorPanel";
|
|
12
|
-
import MenuItem from "./MenuItem";
|
|
13
|
-
import SpaceInsightsPanel from "./SpaceInsightsPanel";
|
|
14
|
-
import TilesPanel, { tilesContainerActionButtons, tilesContainerMenuItems } from "./TilesPanel";
|
|
15
|
-
import { DeviceType } from "./utils/Device";
|
|
16
|
-
import { sortMenuItems } from "./utils/InsightsUtils";
|
|
17
|
-
import { getInsightsPlaceholder } from "./utils/placeholder/InsightsPlaceholder";
|
|
18
|
-
|
|
19
|
-
const tilesPanelName: string = "sap.cux.home.TilesPanel";
|
|
20
|
-
const cardsPanelName: string = "sap.cux.home.CardsPanel";
|
|
21
|
-
const spaceInsightsPanelName: string = "sap.cux.home.SpaceInsightsPanel";
|
|
22
|
-
const sortedMenuItems: (tilesContainerMenuItems | cardsContainerMenuItems | string)[] = [
|
|
23
|
-
tilesContainerMenuItems.REFRESH,
|
|
24
|
-
cardsContainerMenuItems.REFRESH,
|
|
25
|
-
tilesContainerMenuItems.ADD_APPS,
|
|
26
|
-
tilesContainerMenuItems.EDIT_TILES,
|
|
27
|
-
cardsContainerMenuItems.EDIT_CARDS,
|
|
28
|
-
cardsContainerMenuItems.AI_INSIGHT_CARD,
|
|
29
|
-
tilesContainerMenuItems.SHOW_MORE,
|
|
30
|
-
cardsContainerMenuItems.SHOW_MORE,
|
|
31
|
-
"settings"
|
|
32
|
-
];
|
|
33
|
-
|
|
34
|
-
interface IpanelLoaded {
|
|
35
|
-
[key: string]: { loaded: boolean | undefined; count: number };
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface IpanelContext {
|
|
39
|
-
[key: string]: TilesPanel | CardsPanel;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* Container class for managing and storing Insights Tiles and Insights Cards.
|
|
45
|
-
*
|
|
46
|
-
* @extends sap.cux.home.BaseContainer
|
|
47
|
-
*
|
|
48
|
-
* @author SAP SE
|
|
49
|
-
* @version 0.0.1
|
|
50
|
-
* @since 1.121
|
|
51
|
-
*
|
|
52
|
-
* @private
|
|
53
|
-
* @ui5-restricted ux.eng.s4producthomes1
|
|
54
|
-
*
|
|
55
|
-
* @alias sap.cux.home.InsightsContainer
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
export default class InsightsContainer extends BaseContainer {
|
|
59
|
-
static readonly renderer = {
|
|
60
|
-
...BaseContainer.renderer,
|
|
61
|
-
apiVersion: 2
|
|
62
|
-
};
|
|
63
|
-
private _errorPanel!: ErrorPanel;
|
|
64
|
-
private _isInitialRender: boolean = true;
|
|
65
|
-
private panelLoaded!: IpanelLoaded;
|
|
66
|
-
private panelContext!: IpanelContext;
|
|
67
|
-
|
|
68
|
-
constructor(id?: string | $BaseContainerSettings);
|
|
69
|
-
constructor(id?: string, settings?: $BaseContainerSettings);
|
|
70
|
-
/**
|
|
71
|
-
* Constructor for a new Insights container.
|
|
72
|
-
*
|
|
73
|
-
* @param {string} [id] ID for the new control, generated automatically if an ID is not provided
|
|
74
|
-
* @param {object} [settings] Initial settings for the new control
|
|
75
|
-
*/
|
|
76
|
-
public constructor(id?: string, settings?: $BaseContainerSettings) {
|
|
77
|
-
super(id, settings);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Init lifecycle method
|
|
82
|
-
*
|
|
83
|
-
* @private
|
|
84
|
-
* @override
|
|
85
|
-
*/
|
|
86
|
-
public init(): void {
|
|
87
|
-
super.init();
|
|
88
|
-
this.setProperty("title", this._i18nBundle?.getText("insights"));
|
|
89
|
-
/* As Container Level default value for enableSettings is false,
|
|
90
|
-
this needs to be added from container level.
|
|
91
|
-
(default value cannot be true as News & Page Container header should be hidden)
|
|
92
|
-
*/
|
|
93
|
-
this.setProperty("enableSettings", true);
|
|
94
|
-
this.setProperty("orientation", "Vertical");
|
|
95
|
-
this.panelLoaded = {
|
|
96
|
-
[tilesPanelName]: { loaded: undefined, count: 0 },
|
|
97
|
-
[cardsPanelName]: { loaded: undefined, count: 0 },
|
|
98
|
-
[spaceInsightsPanelName]: { loaded: undefined, count: 0 }
|
|
99
|
-
};
|
|
100
|
-
this.panelContext = {};
|
|
101
|
-
this.setTooltip(String(this._i18nBundle.getText("insights")));
|
|
102
|
-
this.addCustomSetting("title", this._i18nBundle.getText("insightLayoutSectionTitle") as string);
|
|
103
|
-
this.setTooltip(String(this._i18nBundle.getText("insightLayoutSectionTitle")));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Loads the Insights section.
|
|
108
|
-
* Overrides the load method of the BaseContainer.
|
|
109
|
-
*
|
|
110
|
-
* @private
|
|
111
|
-
* @override
|
|
112
|
-
*/
|
|
113
|
-
public load() {
|
|
114
|
-
if (this._isInitialRender) {
|
|
115
|
-
const aContent = this.getContent();
|
|
116
|
-
aContent.forEach((oContent) => {
|
|
117
|
-
this.panelContext[oContent.getMetadata().getName()] = oContent as TilesPanel | CardsPanel;
|
|
118
|
-
this.addCommonMenuItems((oContent as TilesPanel | CardsPanel).getContainerMenuItems?.());
|
|
119
|
-
this.addCommonActionButtons((oContent as TilesPanel | CardsPanel).getContainerActionButtons?.());
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
this._addContainerHeader();
|
|
123
|
-
|
|
124
|
-
// Render individual panels
|
|
125
|
-
aContent.forEach((content) => {
|
|
126
|
-
const panel = content as TilesPanel | CardsPanel;
|
|
127
|
-
panel.handleHideHeader();
|
|
128
|
-
panel.attachHandleHidePanel(() => this.handleHidePanel(panel));
|
|
129
|
-
panel.attachHandleUnhidePanel(() => this.unhidePanelIfHidden(panel));
|
|
130
|
-
void panel.renderPanel();
|
|
131
|
-
});
|
|
132
|
-
this._isInitialRender = false;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Handles the hiding of a panel by removing its content, updating the panel load status,
|
|
138
|
-
* and managing the display of the container header and error panel.
|
|
139
|
-
*
|
|
140
|
-
* @param {BasePanel} panel - The panel to be hidden.
|
|
141
|
-
* @private
|
|
142
|
-
*/
|
|
143
|
-
public handleHidePanel(panel: BasePanel) {
|
|
144
|
-
this.removeContent(panel);
|
|
145
|
-
const panelName = panel.getMetadata().getName();
|
|
146
|
-
this.handlePanelLoad(panelName, { loaded: false, count: 0 });
|
|
147
|
-
const panels = this._getLoadedPanelNames() || [];
|
|
148
|
-
const visibleOrPendingPanels = this.getVisibleOrPendingPanels() || [];
|
|
149
|
-
const panelCount = panels?.length;
|
|
150
|
-
this._addContainerHeader();
|
|
151
|
-
// only show error panel if all panels loaded state is false
|
|
152
|
-
if (
|
|
153
|
-
visibleOrPendingPanels.length === 0 ||
|
|
154
|
-
(visibleOrPendingPanels.length === 1 && visibleOrPendingPanels[0] === spaceInsightsPanelName)
|
|
155
|
-
) {
|
|
156
|
-
if (!this._errorPanel) {
|
|
157
|
-
this._errorPanel = new ErrorPanel(`${this.getId()}-errorPanel`, {
|
|
158
|
-
messageTitle: this._i18nBundle.getText("noAppsTitle"),
|
|
159
|
-
messageDescription: this._i18nBundle.getText("noInsightsMsg")
|
|
160
|
-
});
|
|
161
|
-
this._errorPanel.getData();
|
|
162
|
-
}
|
|
163
|
-
this.addAggregation("content", this._errorPanel);
|
|
164
|
-
} else if (panelCount === 1) {
|
|
165
|
-
const panel = this.getContent()[0];
|
|
166
|
-
if (panel && !(panel instanceof ErrorPanel)) {
|
|
167
|
-
(panel as TilesPanel | CardsPanel)?.handleHideHeader();
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Adds the container header based on the number of visible panels.
|
|
174
|
-
*
|
|
175
|
-
* @private
|
|
176
|
-
*/
|
|
177
|
-
private _addContainerHeader() {
|
|
178
|
-
const panels: string[] = this._getLoadedPanelNames();
|
|
179
|
-
let hiddenMenuItems: string[] = [];
|
|
180
|
-
let hiddenActionButtons: string[] = [];
|
|
181
|
-
this.setProperty("title", this._i18nBundle?.getText("insights"));
|
|
182
|
-
if (panels.length === 0 || this.getContent()[0] instanceof ErrorPanel) {
|
|
183
|
-
hiddenMenuItems = [
|
|
184
|
-
tilesContainerMenuItems.REFRESH,
|
|
185
|
-
cardsContainerMenuItems.REFRESH,
|
|
186
|
-
tilesContainerMenuItems.SHOW_MORE,
|
|
187
|
-
cardsContainerMenuItems.SHOW_MORE
|
|
188
|
-
];
|
|
189
|
-
this._hideMenuItems(hiddenMenuItems);
|
|
190
|
-
hiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE, cardsContainerActionButtons.SHOW_MORE];
|
|
191
|
-
this._hideActionButtons(hiddenActionButtons);
|
|
192
|
-
} else if (panels.length === 1) {
|
|
193
|
-
const panelName = panels[0];
|
|
194
|
-
this.setProperty("title", `${this._i18nBundle?.getText("insights")} (${this.panelLoaded[panelName].count || 0})`);
|
|
195
|
-
if (this.panelContext[panels[0]] instanceof TilesPanel) {
|
|
196
|
-
hiddenMenuItems = [cardsContainerMenuItems.REFRESH, cardsContainerMenuItems.SHOW_MORE];
|
|
197
|
-
hiddenActionButtons = [cardsContainerActionButtons.SHOW_MORE];
|
|
198
|
-
}
|
|
199
|
-
if (this.panelContext[panels[0]] instanceof CardsPanel) {
|
|
200
|
-
hiddenMenuItems = [tilesContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE];
|
|
201
|
-
hiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE];
|
|
202
|
-
}
|
|
203
|
-
if (this.panelContext[panels[0]] instanceof SpaceInsightsPanel) {
|
|
204
|
-
this.setProperty("title", `${this.panelContext[panels[0]].getTitle()} (${this.panelLoaded[panelName].count || 0})`);
|
|
205
|
-
hiddenMenuItems = [tilesContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE, "settings"];
|
|
206
|
-
hiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE];
|
|
207
|
-
}
|
|
208
|
-
this._hideMenuItems(hiddenMenuItems);
|
|
209
|
-
this._hideActionButtons(hiddenActionButtons);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Removes the container header.
|
|
215
|
-
*
|
|
216
|
-
* @private
|
|
217
|
-
*/
|
|
218
|
-
private _removeContainerHeader() {
|
|
219
|
-
this.setProperty("title", "");
|
|
220
|
-
(this.getAggregation("menuItems") as MenuItem[])?.forEach((menuItem) => this.toggleMenuListItem(menuItem, false));
|
|
221
|
-
(this.getAggregation("actionButtons") as Button[])?.forEach((actionButton) => this.toggleActionButton(actionButton, false));
|
|
222
|
-
const panels = this._getLoadedPanelNames();
|
|
223
|
-
panels.forEach((panelName) => {
|
|
224
|
-
this.panelContext[panelName]?.handleAddHeader?.();
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Hides the specified menu items.
|
|
230
|
-
*
|
|
231
|
-
* @private
|
|
232
|
-
* @param {string[]} hiddenMenuItems - The IDs of the menu items to hide.
|
|
233
|
-
*/
|
|
234
|
-
private _hideMenuItems(hiddenMenuItems: string[]) {
|
|
235
|
-
const containerMenuItems = this.getAggregation("menuItems") as MenuItem[];
|
|
236
|
-
containerMenuItems?.forEach((menuItem) => {
|
|
237
|
-
const includedInHiddenItems = hiddenMenuItems.some((hiddenItem) => menuItem.getId().includes(hiddenItem));
|
|
238
|
-
this.toggleMenuListItem(menuItem, !includedInHiddenItems);
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Hides the specified action buttons.
|
|
244
|
-
*
|
|
245
|
-
* @private
|
|
246
|
-
* @param {string[]} hiddenActionButtons - The IDs of the action buttons to hide.
|
|
247
|
-
*/
|
|
248
|
-
private _hideActionButtons(hiddenActionButtons: string[]) {
|
|
249
|
-
const containerActionButtons = this.getAggregation("actionButtons") as Button[];
|
|
250
|
-
containerActionButtons?.forEach((actionButton) => {
|
|
251
|
-
const includedInHiddenItems = hiddenActionButtons.some((hiddenItem) => actionButton.getId().includes(hiddenItem));
|
|
252
|
-
this.toggleActionButton(actionButton, !includedInHiddenItems);
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Updates the item count for the specified panel.
|
|
258
|
-
*
|
|
259
|
-
* @param {number} itemCount - The new item count.
|
|
260
|
-
* @param {string} panelName - The name of the panel.
|
|
261
|
-
*/
|
|
262
|
-
public updatePanelsItemCount(itemCount: number, panelName: string) {
|
|
263
|
-
this.panelLoaded[panelName].count = itemCount;
|
|
264
|
-
const panels = this._getLoadedPanelNames();
|
|
265
|
-
// Container Title Will be displayed only in case of only one panel is present
|
|
266
|
-
if (panels.length === 1) {
|
|
267
|
-
const isSpaceInsightsPanel = this.panelContext[panels[0]] instanceof SpaceInsightsPanel;
|
|
268
|
-
this.setProperty(
|
|
269
|
-
"title",
|
|
270
|
-
`${isSpaceInsightsPanel ? this.panelContext[panels[0]].getTitle() : this._i18nBundle?.getText("insights")} (${itemCount || 0})`
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Unhides the specified panel if it is hidden.
|
|
277
|
-
*
|
|
278
|
-
* @param {TilesPanel | CardsPanel} panel - The panel to unhide.
|
|
279
|
-
*/
|
|
280
|
-
public unhidePanelIfHidden(panel: TilesPanel | CardsPanel) {
|
|
281
|
-
const layout = this._getLayout();
|
|
282
|
-
const panelExpandedName = layout._getCurrentExpandedElementName();
|
|
283
|
-
|
|
284
|
-
if (this._errorPanel) {
|
|
285
|
-
this.removeContent(this._errorPanel);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
// Function to handle panel content insertion
|
|
289
|
-
const processPanelVisibility = (panelName: string, insertContentFn: () => void) => {
|
|
290
|
-
if (!panelExpandedName || panelExpandedName === panel.getProperty("fullScreenName")) {
|
|
291
|
-
/**
|
|
292
|
-
loaded value can be false or undefined, false being hidden and undefined being loading
|
|
293
|
-
if the panel is hidden then only unhide it
|
|
294
|
-
*/
|
|
295
|
-
if (this.panelLoaded[panelName].loaded === false) {
|
|
296
|
-
insertContentFn();
|
|
297
|
-
// Remove hidden class if applied
|
|
298
|
-
panel.setVisible(true);
|
|
299
|
-
}
|
|
300
|
-
this.handlePanelLoad(panelName, { loaded: true, count: this.panelLoaded[panelName].count });
|
|
301
|
-
} else {
|
|
302
|
-
const listener = () => {
|
|
303
|
-
insertContentFn();
|
|
304
|
-
// Remove hidden class if applied
|
|
305
|
-
panel.setVisible(true);
|
|
306
|
-
layout.detachOnCollapse(listener); // Remove the listener after execution
|
|
307
|
-
};
|
|
308
|
-
this.handlePanelLoad(panelName, { loaded: true, count: this.panelLoaded[panelName].count });
|
|
309
|
-
layout.attachOnCollapse(listener);
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
// Handling TilesPanel
|
|
314
|
-
if (panel instanceof TilesPanel && !this.panelLoaded[tilesPanelName].loaded) {
|
|
315
|
-
processPanelVisibility(tilesPanelName, () => this.insertContent(this.panelContext[tilesPanelName], 0));
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
// Handling CardsPanel
|
|
319
|
-
if (panel instanceof CardsPanel && !this.panelLoaded[cardsPanelName].loaded) {
|
|
320
|
-
processPanelVisibility(cardsPanelName, () => this.addContent(this.panelContext[cardsPanelName]));
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
// Handling SpaceInsightsPanel
|
|
324
|
-
if (panel instanceof SpaceInsightsPanel && !this.panelLoaded[spaceInsightsPanelName].loaded) {
|
|
325
|
-
processPanelVisibility(spaceInsightsPanelName, () => this.addContent(this.panelContext[cardsPanelName]));
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Updates the container header based on the number of visible panels.
|
|
331
|
-
*
|
|
332
|
-
* @private
|
|
333
|
-
* @param {TilesPanel | CardsPanel} panel - The panel being managed.
|
|
334
|
-
*/
|
|
335
|
-
|
|
336
|
-
private _updateHeaderElements(panel: TilesPanel | CardsPanel) {
|
|
337
|
-
const panels = this._getLoadedPanelNames();
|
|
338
|
-
if (panels.length > 1) {
|
|
339
|
-
this._removeContainerHeader();
|
|
340
|
-
} else {
|
|
341
|
-
this._addContainerHeader();
|
|
342
|
-
panel.handleHideHeader();
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Adjusts the layout of the container.
|
|
348
|
-
*
|
|
349
|
-
* @private
|
|
350
|
-
* @override
|
|
351
|
-
*/
|
|
352
|
-
public adjustLayout() {
|
|
353
|
-
//hide actions if the device is a phone
|
|
354
|
-
if (this.getDeviceType() === DeviceType.Mobile) {
|
|
355
|
-
this.toggleActionButtons(false);
|
|
356
|
-
} else {
|
|
357
|
-
const panels = this._getLoadedPanelNames();
|
|
358
|
-
// Unhide the Add Tiles button if the device is not a phone and header is visible
|
|
359
|
-
if (panels.length < 2) {
|
|
360
|
-
(this.getAggregation("actionButtons") as Button[])?.forEach((actionButton) => {
|
|
361
|
-
if (actionButton.getId().includes(tilesContainerActionButtons.ADD_TILES)) {
|
|
362
|
-
this.toggleActionButton(actionButton, true);
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
//adjust layout of all panels
|
|
369
|
-
(this.getContent() as (TilesPanel | CardsPanel)[]).forEach((panel) => panel._adjustLayout?.());
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Add common Menu Items for Insights Container from Panel
|
|
374
|
-
*
|
|
375
|
-
* @private
|
|
376
|
-
*/
|
|
377
|
-
public addCommonMenuItems(menuItems: MenuItem[] = []) {
|
|
378
|
-
menuItems.forEach((menuItem) => this.addAggregation("menuItems", menuItem));
|
|
379
|
-
// after adding menu items sort them based on the order
|
|
380
|
-
this._sortMenuItems(sortedMenuItems);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Add common Action Buttons for Insights Container from Panel
|
|
385
|
-
*
|
|
386
|
-
* @private
|
|
387
|
-
*/
|
|
388
|
-
public addCommonActionButtons(actionButtons: Button[] = []) {
|
|
389
|
-
actionButtons.forEach((actionButton) => this.addAggregation("actionButtons", actionButton));
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Handles the loading of a panel.
|
|
394
|
-
*
|
|
395
|
-
* @param {string} panelName - The name of the panel.
|
|
396
|
-
* @param {object} oVal - The load status and count of the panel.
|
|
397
|
-
* @param {boolean} oVal.loaded - The load status of the panel.
|
|
398
|
-
* @param {number} oVal.count - The count of items in the panel.
|
|
399
|
-
*/
|
|
400
|
-
public handlePanelLoad(panelName: string, oVal: { loaded: boolean; count: number }) {
|
|
401
|
-
if (this.panelLoaded[panelName].loaded !== oVal.loaded) {
|
|
402
|
-
this.panelLoaded[panelName] = oVal;
|
|
403
|
-
this._updateHeaderElements(this.panelContext[panelName]);
|
|
404
|
-
}
|
|
405
|
-
this.adjustLayout();
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Updates the visibility and text of an action button.
|
|
410
|
-
*
|
|
411
|
-
* @param {Button} actionButton - The action button to update.
|
|
412
|
-
* @param {boolean} visibility - The visibility of the action button.
|
|
413
|
-
* @param {string} text - The text of the action button.
|
|
414
|
-
*/
|
|
415
|
-
public updateActionButton(actionButton: Button, visibility: boolean, text: string) {
|
|
416
|
-
if (actionButton?.getVisible() !== visibility || actionButton?.getText() !== text) {
|
|
417
|
-
this.toggleActionButton(actionButton, visibility);
|
|
418
|
-
actionButton?.setText(text);
|
|
419
|
-
this._updateContainerHeader(this);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* Updates the visibility and text of a menu item.
|
|
425
|
-
*
|
|
426
|
-
* @param {MenuItem} menuItem - The menu item to update.
|
|
427
|
-
* @param {boolean} visibility - The visibility of the menu item.
|
|
428
|
-
* @param {string} text - The text of the menu item.
|
|
429
|
-
*/
|
|
430
|
-
public updateMenuItem(menuItem: MenuItem, visibility: boolean, text: string) {
|
|
431
|
-
if (menuItem?.getVisible() !== visibility || menuItem?.getTitle() !== text) {
|
|
432
|
-
this.toggleMenuListItem(menuItem, visibility);
|
|
433
|
-
menuItem?.setTitle(text);
|
|
434
|
-
this._updateContainerHeader(this);
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* Gets the names of the loaded panels.
|
|
440
|
-
*
|
|
441
|
-
* @private
|
|
442
|
-
* @returns {string[]} The names of the loaded panels.
|
|
443
|
-
*/
|
|
444
|
-
private _getLoadedPanelNames() {
|
|
445
|
-
return Object.keys(this.panelLoaded).filter((panelName) => this.panelLoaded[panelName].loaded);
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Returns the names of panels that are still loading or in loaded true state
|
|
450
|
-
*
|
|
451
|
-
* @private
|
|
452
|
-
* @private
|
|
453
|
-
*/
|
|
454
|
-
private getVisibleOrPendingPanels() {
|
|
455
|
-
return Object.keys(this.panelLoaded).filter((panelName) => this.panelLoaded[panelName].loaded !== false);
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* Sorts the menu items based on the provided order.
|
|
459
|
-
*
|
|
460
|
-
* @private
|
|
461
|
-
* @param {string[]} menuItems - The order of the menu items.
|
|
462
|
-
*/
|
|
463
|
-
private _sortMenuItems(menuItems: string[]) {
|
|
464
|
-
const containerMenuItems = this.getAggregation("menuItems") as MenuItem[];
|
|
465
|
-
let sortedMenuItems = sortMenuItems(menuItems, containerMenuItems);
|
|
466
|
-
this.removeAllAggregation("menuItems");
|
|
467
|
-
sortedMenuItems?.forEach((menuItem) => this.addAggregation("menuItems", menuItem));
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* Retrieves the generic placeholder content for the Insights container.
|
|
472
|
-
*
|
|
473
|
-
* @returns {string} The HTML string representing the Insights container's placeholder content.
|
|
474
|
-
*/
|
|
475
|
-
protected getGenericPlaceholderContent(): string {
|
|
476
|
-
return getInsightsPlaceholder();
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* Refreshes the data for a specific panel based on its key.
|
|
481
|
-
*
|
|
482
|
-
* @private
|
|
483
|
-
* @param {string} key - The key of the panel to refresh.
|
|
484
|
-
*/
|
|
485
|
-
public async refreshData(key: string) {
|
|
486
|
-
const panel = Object.values(this.panelContext).find((panel) => panel.getKey() === key);
|
|
487
|
-
await panel?.refreshData?.(true);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NewsAndPagesContainer.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/NewsAndPagesContainer.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,oCAAoC,CAAC;IAOpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAC3D,OAAO,aAAa,MAAM,4BAA4B,CAAC;IACvD,OAAO,SAAS,MAAM,wBAAwB,CAAC;IAC/C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;IAGzF,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAA6B,MAAM,yCAAyC,CAAC;IAC7H,OAAO,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC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,"file":"NewsAndPagesContainer.js","names":["sap","ui","define","__BaseContainer","___library","___utils_Device","___utils_placeholder_NewsAndPagesPlaceholder","_interopRequireDefault","obj","__esModule","default","_iteratorSymbol","Symbol","iterator","_settle","pact","state","value","s","_Pact","v","o","bind","then","observer","prototype","onFulfilled","onRejected","result","callback","e","_this","_isSettledPact","thenable","_forTo","array","body","check","i","reject","_cycle","length","BaseContainer","_forOf","target","step","next","done","return","_fixup","TypeError","values","push","NewsType","OrientationType","DeviceType","getNewsPagesPlaceholder","NewsAndPagesContainer","extend","metadata","properties","colorPersonalizations","type","group","defaultValue","visibility","iconPersonalizations","newsFeedVisibility","renderer","apiVersion","constructor","_constructor","id","settings","BaseContainer.prototype.constructor.call","panelLoaded","keyUserChange","isEndUserChange","isEndUser","newsType","None","init","_init","BaseContainer.prototype.init.call","setProperty","getDeviceType","Desktop","LargeDesktop","XLargeDesktop","Horizontal","Vertical","addCustomSetting","_i18nBundle","getText","addStyleClass","load","_load","aContent","getContent","_temp","oContent","checkEndUserChanges","Promise","resolve","getData","getProperty","getMetadata","getName","setVisible","setColorPersonalizations","_setColorPersonalizations","personalizations","existingPers","updatedPers","concat","forEach","applyColorPersonalizations","setIconPersonalizations","_setIconPersonalizations","applyIconPersonalizations","_checkEndUserChanges","getIsEndUserChange","_getIsEndUserChange","newsVisibilityChangeHandler","_newsVisibilityChangeHandler","personalization","newsPanel","isNewsFeedVisible","newsPersonalization","_newsPersonalization","Boolean","showCustomNewsFeed","Custom","showRssNewsFeed","NewsUrl","Default","newsFeedURL","customNewsFeedKey","customNewsFeedFileName","url","customFeedKey","String","setCustomNewsFeed","showDefaultNewsFeed","setDefaultNews","setURL","panelLoadedFn","_panelLoadedFn","sPanelType","oVal","pagePanel","adjustLayout","adjustStyleLayout","_adjustStyleLayout","bIsNewsTileVisible","sDeviceType","newsContentWrapper","undefined","pagesContentWrapper","setWidth","setOrientation","Tablet","setJustifyContent","removeStyleClass","setTimeout","attachResizeHandler","getDomRef","clientWidth","_adjustLayout","getVisible","loaded","removeContent","getGenericPlaceholderContent","_getGenericPlaceholderContent"],"sources":["NewsAndPagesContainer.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport VBox from \"sap/m/VBox\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport BaseContainer from \"./BaseContainer\";\nimport BasePanel from \"./BasePanel\";\nimport type { $NewsAndPagesContainerSettings } from \"./NewsAndPagesContainer\";\nimport NewsPanel from \"./NewsPanel\";\nimport PagePanel from \"./PagePanel\";\nimport { INewsFeedVisibiliyChange, INewsPersData, ISpacePagePersonalization } from \"./interface/KeyUserInterface\";\nimport { NewsType, OrientationType } from \"./library\";\nimport { DeviceType } from \"./utils/Device\";\nimport { getNewsPagesPlaceholder } from \"./utils/placeholder/NewsAndPagesPlaceholder\";\n\ninterface IpanelLoaded {\n\t[key: string]: { loaded: boolean; count: number };\n}\n\ninterface EndUserChangeStatus {\n\tisEndUser: boolean;\n\tnewsType: NewsType;\n}\n\n/**\n *\n * Container class for managing and storing News and Pages.\n *\n * @extends 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.NewsAndPagesContainer\n */\n\nexport default class NewsAndPagesContainer extends BaseContainer {\n\tstatic renderer = {\n\t\t...BaseContainer.renderer,\n\t\tapiVersion: 2\n\t};\n\tstatic readonly metadata: MetadataOptions = {\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Color Personalizations for Spaces & Pages\n\t\t\t */\n\t\t\tcolorPersonalizations: { type: \"array\", group: \"Misc\", defaultValue: [], visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * Icon Personalizations for Spaces & Pages\n\t\t\t */\n\t\t\ticonPersonalizations: { type: \"array\", group: \"Misc\", defaultValue: [], visibility: \"hidden\" },\n\t\t\t/**\n\t\t\t * News feed visibility flag\n\t\t\t */\n\t\t\tnewsFeedVisibility: { type: \"boolean\", group: \"Misc\", defaultValue: true, visibility: \"hidden\" }\n\t\t}\n\t};\n\n\tprivate panelLoaded: IpanelLoaded = {};\n\tprivate pagePanel!: PagePanel;\n\tprivate newsPanel!: NewsPanel;\n\tprivate keyUserChange: boolean = false;\n\tprivate isEndUserChange: EndUserChangeStatus = { isEndUser: false, newsType: NewsType.None };\n\n\tconstructor(id?: string | $NewsAndPagesContainerSettings);\n\tconstructor(id?: string, settings?: $NewsAndPagesContainerSettings);\n\t/**\n\t * Constructor for the new News and Pages 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?: $NewsAndPagesContainerSettings) {\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.panelLoaded = {};\n\n\t\tthis.setProperty(\n\t\t\t\"orientation\",\n\t\t\tthis.getDeviceType() === DeviceType.Desktop ||\n\t\t\t\tthis.getDeviceType() === DeviceType.LargeDesktop ||\n\t\t\t\tthis.getDeviceType() === DeviceType.XLargeDesktop\n\t\t\t\t? OrientationType.Horizontal\n\t\t\t\t: OrientationType.Vertical\n\t\t);\n\t\tthis.addCustomSetting(\"title\", this._i18nBundle.getText(\"myInterestMsg\") as string);\n\t\tthis.addStyleClass(\"sapCuxNewsAndPagesContainer\");\n\t}\n\n\t/**\n\t * Loads the News and Pages section.\n\t * Overrides the load method of the BaseContainer.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic async load() {\n\t\tconst aContent = this.getContent() as PagePanel[] | NewsPanel[];\n\t\tfor (const oContent of aContent) {\n\t\t\tif (!this.keyUserChange) {\n\t\t\t\tthis.checkEndUserChanges(oContent);\n\t\t\t}\n\t\t\tawait oContent.getData();\n\n\t\t\t// If the newsVisibilityChangeHandler is invoked before the data is loaded,\n\t\t\t// it may result in the news panel being incorrectly displayed if it was already set hidden by the handler.\n\t\t\t// newsFeedVisibility is set as false, then hide the news panel\n\t\t\tconst newsFeedVisibility = this.getProperty(\"newsFeedVisibility\") as boolean;\n\t\t\t// if newsFeedVisibility is false, hide the news panel\n\t\t\tif (oContent && oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && !newsFeedVisibility) {\n\t\t\t\toContent.setVisible(false);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Sets property value for colorPersonalization.\n\t * Overridden to update cached personalizations.\n\t *\n\t * @private\n\t * @override\n\t * @returns {NewsAndPagesContainer} the container for chaining\n\t */\n\tsetColorPersonalizations(personalizations: Array<ISpacePagePersonalization>): NewsAndPagesContainer {\n\t\tconst existingPers = (this.getProperty(\"colorPersonalizations\") as ISpacePagePersonalization[]) || [];\n\t\tconst updatedPers = existingPers.concat(personalizations);\n\t\tthis.setProperty(\"colorPersonalizations\", updatedPers);\n\t\tthis.getContent().forEach((oContent) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.PagePanel\") {\n\t\t\t\t(oContent as PagePanel).applyColorPersonalizations(updatedPers);\n\t\t\t}\n\t\t});\n\t\treturn this;\n\t}\n\n\t/**\n\t * Sets property value for iconPersonalization.\n\t * Overridden to update cached personalizations.\n\t *\n\t * @private\n\t * @override\n\t * @returns {NewsAndPagesContainer} the container for chaining\n\t */\n\tsetIconPersonalizations(personalizations: Array<ISpacePagePersonalization>): NewsAndPagesContainer {\n\t\tconst existingPers = (this.getProperty(\"iconPersonalizations\") as ISpacePagePersonalization[]) || [];\n\t\tconst updatedPers = existingPers.concat(personalizations);\n\t\tthis.setProperty(\"iconPersonalizations\", updatedPers);\n\t\tthis.getContent().forEach((oContent) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.PagePanel\") {\n\t\t\t\t(oContent as PagePanel).applyIconPersonalizations(updatedPers);\n\t\t\t}\n\t\t});\n\t\treturn this;\n\t}\n\n\t/**\n\t * Marks the change as an end-user change if the content is a NewsPanel with a URL and no key user changes exist.\n\t *\n\t * @private\n\t * @param {BasePanel} oContent - The content panel to evaluate, typically of type `sap.cux.home.NewsPanel`.\n\t */\n\tpublic checkEndUserChanges(oContent: BasePanel) {\n\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && oContent.getProperty(\"url\") && !this.keyUserChange) {\n\t\t\tthis.isEndUserChange.isEndUser = true;\n\t\t}\n\t}\n\n\t/**\n\t * Returns the current end-user change status.\n\t *\n\t * @private\n\t * @returns {EndUserChangeStatus} An object containing the end-user change flag and the news type.\n\t */\n\tpublic getIsEndUserChange(): EndUserChangeStatus {\n\t\treturn this.isEndUserChange;\n\t}\n\n\tpublic newsVisibilityChangeHandler(personalization: INewsFeedVisibiliyChange) {\n\t\tconst aContent = this.getContent();\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\") {\n\t\t\t\tlet newsPanel = oContent as NewsPanel;\n\t\t\t\tif (personalization.isNewsFeedVisible) {\n\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", true);\n\t\t\t\t\tnewsPanel.setVisible(true);\n\t\t\t\t} else {\n\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", false);\n\t\t\t\t\tnewsPanel.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic newsPersonalization(personalizations: INewsPersData) {\n\t\tconst aContent = this.getContent();\n\t\tlet type: NewsType;\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tthis.checkEndUserChanges(oContent);\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\" && !this.isEndUserChange.isEndUser) {\n\t\t\t\tlet newsPanel = oContent as NewsPanel;\n\t\t\t\tconst newsFeedVisibility = Boolean(this.getProperty(\"newsFeedVisibility\"));\n\t\t\t\tthis.keyUserChange = true;\n\n\t\t\t\tif (personalizations.showCustomNewsFeed) {\n\t\t\t\t\ttype = NewsType.Custom;\n\t\t\t\t} else if (personalizations.showRssNewsFeed) {\n\t\t\t\t\ttype = NewsType.NewsUrl;\n\t\t\t\t} else {\n\t\t\t\t\ttype = NewsType.Default;\n\t\t\t\t}\n\t\t\t\tnewsPanel.setProperty(\"type\", type);\n\t\t\t\tnewsPanel.setProperty(\"url\", personalizations.newsFeedURL);\n\t\t\t\tnewsPanel.setProperty(\"customFeedKey\", personalizations.customNewsFeedKey);\n\t\t\t\tnewsPanel.setProperty(\"customFileName\", personalizations.customNewsFeedFileName);\n\n\t\t\t\tif (newsFeedVisibility) {\n\t\t\t\t\tconst url = personalizations.newsFeedURL as string;\n\t\t\t\t\tnewsPanel.setVisible(true);\n\t\t\t\t\tconst customFeedKey = String(newsPanel.getProperty(\"customFeedKey\"));\n\t\t\t\t\tif (personalizations.showCustomNewsFeed && customFeedKey) {\n\t\t\t\t\t\tnewsPanel.setProperty(\"newsAvailable\", true);\n\t\t\t\t\t\tvoid newsPanel.setCustomNewsFeed(customFeedKey);\n\t\t\t\t\t} else if (personalizations.showDefaultNewsFeed) {\n\t\t\t\t\t\tvoid newsPanel.setDefaultNews();\n\t\t\t\t\t} else if (personalizations.showRssNewsFeed && url) {\n\t\t\t\t\t\tvoid newsPanel.setURL(url);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnewsPanel.setVisible(false);\n\t\t\t\t\t\tthis.setProperty(\"newsFeedVisibility\", false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic panelLoadedFn(sPanelType: string, oVal: { loaded: boolean; count: number }) {\n\t\t// same issue of panelwrapper not available at this time\n\t\tconst aContent = this.getContent();\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tif (oContent.getMetadata().getName() === \"sap.cux.home.PagePanel\") {\n\t\t\t\tthis.pagePanel = oContent as PagePanel;\n\t\t\t} else if (oContent.getMetadata().getName() === \"sap.cux.home.NewsPanel\") {\n\t\t\t\tthis.newsPanel = oContent as NewsPanel;\n\t\t\t}\n\t\t});\n\t\tthis.panelLoaded[sPanelType] = oVal;\n\t\tthis.adjustLayout();\n\t}\n\n\tpublic adjustStyleLayout(bIsNewsTileVisible: boolean) {\n\t\tconst sDeviceType = this.getDeviceType();\n\t\tconst newsContentWrapper = this.newsPanel ? (this.newsPanel.getContent()?.[0] as VBox) : undefined;\n\t\tconst pagesContentWrapper = this.pagePanel ? (this.pagePanel.getContent()?.[0] as VBox) : undefined;\n\t\tif (bIsNewsTileVisible) {\n\t\t\tthis.newsPanel.adjustLayout();\n\t\t}\n\t\tif (sDeviceType === DeviceType.Desktop || sDeviceType === DeviceType.LargeDesktop || sDeviceType === DeviceType.XLargeDesktop) {\n\t\t\tif (bIsNewsTileVisible) {\n\t\t\t\tpagesContentWrapper?.setWidth(\"100%\");\n\t\t\t}\n\t\t\tthis.setOrientation(OrientationType.Horizontal);\n\t\t\tnewsContentWrapper?.setWidth(\"100%\");\n\t\t\tnewsContentWrapper?.addStyleClass(\"newsTileMaxWidth\");\n\t\t} else if (sDeviceType === DeviceType.Tablet) {\n\t\t\tthis.setOrientation(OrientationType.Vertical);\n\t\t\tpagesContentWrapper?.setWidth(\"100%\");\n\t\t\tpagesContentWrapper?.setJustifyContent(\"Start\");\n\t\t\tnewsContentWrapper?.setWidth(\"calc(100vw - 64px)\");\n\t\t\tnewsContentWrapper?.removeStyleClass(\"newsTileMaxWidth\");\n\t\t} else {\n\t\t\tthis.setOrientation(OrientationType.Vertical);\n\t\t\tnewsContentWrapper?.setWidth(\"calc(100vw - 16px)\");\n\t\t}\n\n\t\tif (pagesContentWrapper) {\n\t\t\tsetTimeout(\n\t\t\t\tthis.pagePanel.attachResizeHandler.bind(\n\t\t\t\t\tthis.pagePanel,\n\t\t\t\t\tbIsNewsTileVisible,\n\t\t\t\t\tthis.getDomRef()?.clientWidth || 0,\n\t\t\t\t\tpagesContentWrapper\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}\n\n\t/**\n\t * Adjusts the layout of the all panels in the container.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic adjustLayout() {\n\t\tif (this.pagePanel && this.newsPanel && this.newsPanel.getVisible()) {\n\t\t\tlet bIsNewsTileVisible = true;\n\t\t\tif (this.panelLoaded[\"Page\"]?.loaded || this.panelLoaded[\"News\"]?.loaded) {\n\t\t\t\t// In case News Panel fails to load remove the panel and apply styles for page to take full width\n\t\t\t\tif (this.panelLoaded[\"News\"]?.loaded === false) {\n\t\t\t\t\tbIsNewsTileVisible = false;\n\t\t\t\t\tthis.removeContent(this.newsPanel);\n\t\t\t\t} else if (this.panelLoaded[\"Page\"]?.loaded === false) {\n\t\t\t\t\tthis.removeContent(this.pagePanel);\n\t\t\t\t}\n\t\t\t\tthis.adjustStyleLayout(bIsNewsTileVisible);\n\t\t\t}\n\t\t} else if (this.pagePanel && this.panelLoaded[\"Page\"]?.loaded) {\n\t\t\t// If News Panel is not present apply styles for page to take full width\n\t\t\tthis.adjustStyleLayout(false);\n\t\t}\n\t}\n\n\t/**\n\t * Retrieves the generic placeholder content for the News and Pages container.\n\t *\n\t * @returns {string} The HTML string representing the News and Pages container's placeholder content.\n\t */\n\tprotected getGenericPlaceholderContent(): string {\n\t\treturn getNewsPagesPlaceholder();\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,8GAAAC,eAAA,EAAAC,UAAA,EAAAC,eAAA,EAAAC,4CAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAoKaG,eAAA,GAAkB,aAAc,OAAOC,MAAM,KAAK,WAAW,GAAIA,MAAM,CAACC,QAAQ,KAAKD,MAAM,CAACC,QAAQ,GAAGD,MAAM,CAAC,i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,iBAAiB,CAACE,kBAAkB,CAAC;QAC3C;MACD,CAAC,MAAM,IAAI,IAAI,CAACJ,SAAS,IAAI,IAAI,CAAC3E,WAAW,CAAC,MAAM,CAAC,EAAE+F,MAAM,EAAE;QAC9D;QACA,IAAI,CAAClB,iBAAiB,CAAC,KAAK,CAAC;MAC9B;IACD,CAAC;IAED;AACD;AACA;AACA;AACA;IACWoB,4BAA4B,WAAAC,8BAAA,EAAW;MAChD,OAAOrH,uBAAuB,CAAC,CAAC;IACjC;EAAC;EAAA,OAnSmBC,qBAAqB;AAAA","ignoreList":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare module "sap/cux/home/utils/placeholder/InsightsPlaceholder" {
|
|
2
|
-
/*!
|
|
3
|
-
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
4
|
-
* * (c) Copyright 2009-2025 SAP SE. All rights reserved
|
|
5
|
-
*/
|
|
6
|
-
function getInsightsPlaceholder(): string;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=InsightsPlaceholder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsPlaceholder.d.ts","sourceRoot":"../../../../../../..","sources":["src/sap/cux/home/utils/placeholder/InsightsPlaceholder.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,oDAAoD,CAAC;IACpE;;;OAGG;IACH,SAAgB,sBAAsB,IAAI,MAAM,CAkY/C;CAEA"}
|