@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
|
@@ -0,0 +1,333 @@
|
|
|
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", "./utils/placeholder/PagesPlaceholder"], function (__BaseContainer, ___utils_placeholder_PagesPlaceholder) {
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
function _interopRequireDefault(obj) {
|
|
9
|
+
return obj && obj.__esModule && typeof obj.default !== "undefined" ? obj.default : obj;
|
|
10
|
+
}
|
|
11
|
+
const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
12
|
+
function _settle(pact, state, value) {
|
|
13
|
+
if (!pact.s) {
|
|
14
|
+
if (value instanceof _Pact) {
|
|
15
|
+
if (value.s) {
|
|
16
|
+
if (state & 1) {
|
|
17
|
+
state = value.s;
|
|
18
|
+
}
|
|
19
|
+
value = value.v;
|
|
20
|
+
} else {
|
|
21
|
+
value.o = _settle.bind(null, pact, state);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (value && value.then) {
|
|
26
|
+
value.then(_settle.bind(null, pact, state), _settle.bind(null, pact, 2));
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
pact.s = state;
|
|
30
|
+
pact.v = value;
|
|
31
|
+
const observer = pact.o;
|
|
32
|
+
if (observer) {
|
|
33
|
+
observer(pact);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const _Pact = /*#__PURE__*/function () {
|
|
38
|
+
function _Pact() {}
|
|
39
|
+
_Pact.prototype.then = function (onFulfilled, onRejected) {
|
|
40
|
+
const result = new _Pact();
|
|
41
|
+
const state = this.s;
|
|
42
|
+
if (state) {
|
|
43
|
+
const callback = state & 1 ? onFulfilled : onRejected;
|
|
44
|
+
if (callback) {
|
|
45
|
+
try {
|
|
46
|
+
_settle(result, 1, callback(this.v));
|
|
47
|
+
} catch (e) {
|
|
48
|
+
_settle(result, 2, e);
|
|
49
|
+
}
|
|
50
|
+
return result;
|
|
51
|
+
} else {
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
this.o = function (_this) {
|
|
56
|
+
try {
|
|
57
|
+
const value = _this.v;
|
|
58
|
+
if (_this.s & 1) {
|
|
59
|
+
_settle(result, 1, onFulfilled ? onFulfilled(value) : value);
|
|
60
|
+
} else if (onRejected) {
|
|
61
|
+
_settle(result, 1, onRejected(value));
|
|
62
|
+
} else {
|
|
63
|
+
_settle(result, 2, value);
|
|
64
|
+
}
|
|
65
|
+
} catch (e) {
|
|
66
|
+
_settle(result, 2, e);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
return result;
|
|
70
|
+
};
|
|
71
|
+
return _Pact;
|
|
72
|
+
}();
|
|
73
|
+
function _isSettledPact(thenable) {
|
|
74
|
+
return thenable instanceof _Pact && thenable.s & 1;
|
|
75
|
+
}
|
|
76
|
+
function _forTo(array, body, check) {
|
|
77
|
+
var i = -1,
|
|
78
|
+
pact,
|
|
79
|
+
reject;
|
|
80
|
+
function _cycle(result) {
|
|
81
|
+
try {
|
|
82
|
+
while (++i < array.length && (!check || !check())) {
|
|
83
|
+
result = body(i);
|
|
84
|
+
if (result && result.then) {
|
|
85
|
+
if (_isSettledPact(result)) {
|
|
86
|
+
result = result.v;
|
|
87
|
+
} else {
|
|
88
|
+
result.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (pact) {
|
|
94
|
+
_settle(pact, 1, result);
|
|
95
|
+
} else {
|
|
96
|
+
pact = result;
|
|
97
|
+
}
|
|
98
|
+
} catch (e) {
|
|
99
|
+
_settle(pact || (pact = new _Pact()), 2, e);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
_cycle();
|
|
103
|
+
return pact;
|
|
104
|
+
}
|
|
105
|
+
const BaseContainer = _interopRequireDefault(__BaseContainer);
|
|
106
|
+
function _forOf(target, body, check) {
|
|
107
|
+
if (typeof target[_iteratorSymbol] === "function") {
|
|
108
|
+
var iterator = target[_iteratorSymbol](),
|
|
109
|
+
step,
|
|
110
|
+
pact,
|
|
111
|
+
reject;
|
|
112
|
+
function _cycle(result) {
|
|
113
|
+
try {
|
|
114
|
+
while (!(step = iterator.next()).done && (!check || !check())) {
|
|
115
|
+
result = body(step.value);
|
|
116
|
+
if (result && result.then) {
|
|
117
|
+
if (_isSettledPact(result)) {
|
|
118
|
+
result = result.v;
|
|
119
|
+
} else {
|
|
120
|
+
result.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (pact) {
|
|
126
|
+
_settle(pact, 1, result);
|
|
127
|
+
} else {
|
|
128
|
+
pact = result;
|
|
129
|
+
}
|
|
130
|
+
} catch (e) {
|
|
131
|
+
_settle(pact || (pact = new _Pact()), 2, e);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
_cycle();
|
|
135
|
+
if (iterator.return) {
|
|
136
|
+
var _fixup = function (value) {
|
|
137
|
+
try {
|
|
138
|
+
if (!step.done) {
|
|
139
|
+
iterator.return();
|
|
140
|
+
}
|
|
141
|
+
} catch (e) {}
|
|
142
|
+
return value;
|
|
143
|
+
};
|
|
144
|
+
if (pact && pact.then) {
|
|
145
|
+
return pact.then(_fixup, function (e) {
|
|
146
|
+
throw _fixup(e);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
_fixup();
|
|
150
|
+
}
|
|
151
|
+
return pact;
|
|
152
|
+
}
|
|
153
|
+
// No support for Symbol.iterator
|
|
154
|
+
if (!("length" in target)) {
|
|
155
|
+
throw new TypeError("Object is not iterable");
|
|
156
|
+
}
|
|
157
|
+
// Handle live collections properly
|
|
158
|
+
var values = [];
|
|
159
|
+
for (var i = 0; i < target.length; i++) {
|
|
160
|
+
values.push(target[i]);
|
|
161
|
+
}
|
|
162
|
+
return _forTo(values, function (i) {
|
|
163
|
+
return body(values[i]);
|
|
164
|
+
}, check);
|
|
165
|
+
}
|
|
166
|
+
const getPagesPlaceholder = ___utils_placeholder_PagesPlaceholder["getPagesPlaceholder"];
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* Container class for managing and storing Pages.
|
|
170
|
+
*
|
|
171
|
+
* @extends BaseContainer
|
|
172
|
+
*
|
|
173
|
+
* @author SAP SE
|
|
174
|
+
* @version 0.0.1
|
|
175
|
+
* @since 1.142
|
|
176
|
+
*
|
|
177
|
+
* @private
|
|
178
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
179
|
+
*
|
|
180
|
+
* @alias sap.cux.home.PagesContainer
|
|
181
|
+
*/
|
|
182
|
+
const PagesContainer = BaseContainer.extend("sap.cux.home.PagesContainer", {
|
|
183
|
+
metadata: {
|
|
184
|
+
properties: {
|
|
185
|
+
/**
|
|
186
|
+
* Color Personalizations for Spaces & Pages
|
|
187
|
+
*/
|
|
188
|
+
colorPersonalizations: {
|
|
189
|
+
type: "array",
|
|
190
|
+
group: "Misc",
|
|
191
|
+
defaultValue: [],
|
|
192
|
+
visibility: "hidden"
|
|
193
|
+
},
|
|
194
|
+
/**
|
|
195
|
+
* Icon Personalizations for Spaces & Pages
|
|
196
|
+
*/
|
|
197
|
+
iconPersonalizations: {
|
|
198
|
+
type: "array",
|
|
199
|
+
group: "Misc",
|
|
200
|
+
defaultValue: [],
|
|
201
|
+
visibility: "hidden"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
renderer: {
|
|
206
|
+
...BaseContainer.renderer,
|
|
207
|
+
apiVersion: 2
|
|
208
|
+
},
|
|
209
|
+
/**
|
|
210
|
+
* Constructor for the new Pages container.
|
|
211
|
+
*
|
|
212
|
+
* @param {string} [id] ID for the new control, generated automatically if an ID is not provided
|
|
213
|
+
* @param {object} [settings] Initial settings for the new control
|
|
214
|
+
*/
|
|
215
|
+
constructor: function _constructor(id, settings) {
|
|
216
|
+
BaseContainer.prototype.constructor.call(this, id, settings);
|
|
217
|
+
this.panelLoaded = {};
|
|
218
|
+
},
|
|
219
|
+
/**
|
|
220
|
+
* Init lifecycle method
|
|
221
|
+
*
|
|
222
|
+
* @private
|
|
223
|
+
* @override
|
|
224
|
+
*/
|
|
225
|
+
init: function _init() {
|
|
226
|
+
BaseContainer.prototype.init.call(this);
|
|
227
|
+
this.panelLoaded = {};
|
|
228
|
+
this.setProperty("compositeId", "NewsAndPages");
|
|
229
|
+
this.addStyleClass("NewsAndPages");
|
|
230
|
+
this.setProperty("title", this._i18nBundle?.getText("pageTitle"));
|
|
231
|
+
this.addCustomSetting("title", this._i18nBundle.getText("pageTitle"));
|
|
232
|
+
this.addCustomSetting("groupTitle", this._i18nBundle.getText("myInterestMsg"));
|
|
233
|
+
this.addStyleClass("sapCuxNewsAndPagesContainer");
|
|
234
|
+
this.addStyleClass("sapCuxHorizontalContainers");
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
* Loads Pages section.
|
|
238
|
+
* Overrides the load method of the BaseContainer.
|
|
239
|
+
*
|
|
240
|
+
* @private
|
|
241
|
+
* @override
|
|
242
|
+
*/
|
|
243
|
+
load: function _load() {
|
|
244
|
+
try {
|
|
245
|
+
const _this = this;
|
|
246
|
+
const aContent = _this.getContent();
|
|
247
|
+
const _temp = _forOf(aContent, function (oContent) {
|
|
248
|
+
return Promise.resolve(oContent.getData()).then(function () {});
|
|
249
|
+
});
|
|
250
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
251
|
+
} catch (e) {
|
|
252
|
+
return Promise.reject(e);
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
/**
|
|
256
|
+
* Sets property value for iconPersonalization.
|
|
257
|
+
* Overridden to update cached personalizations.
|
|
258
|
+
*
|
|
259
|
+
* @private
|
|
260
|
+
* @override
|
|
261
|
+
* @returns {NewsAndPagesContainer} the container for chaining
|
|
262
|
+
*/
|
|
263
|
+
setIconPersonalizations: function _setIconPersonalizations(personalizations) {
|
|
264
|
+
const existingPers = this.getProperty("iconPersonalizations") || [];
|
|
265
|
+
const updatedPers = existingPers.concat(personalizations);
|
|
266
|
+
this.setProperty("iconPersonalizations", updatedPers);
|
|
267
|
+
this.getContent().forEach(oContent => {
|
|
268
|
+
if (oContent.getMetadata().getName() === "sap.cux.home.PagePanel") {
|
|
269
|
+
oContent.applyIconPersonalizations(updatedPers);
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
return this;
|
|
273
|
+
},
|
|
274
|
+
/**
|
|
275
|
+
* Sets property value for colorPersonalization.
|
|
276
|
+
* Overridden to update cached personalizations.
|
|
277
|
+
*
|
|
278
|
+
* @private
|
|
279
|
+
* @override
|
|
280
|
+
* @returns {NewsAndPagesContainer} the container for chaining
|
|
281
|
+
*/
|
|
282
|
+
setColorPersonalizations: function _setColorPersonalizations(personalizations) {
|
|
283
|
+
const existingPers = this.getProperty("colorPersonalizations") || [];
|
|
284
|
+
const updatedPers = existingPers.concat(personalizations);
|
|
285
|
+
this.setProperty("colorPersonalizations", updatedPers);
|
|
286
|
+
this.getContent().forEach(oContent => {
|
|
287
|
+
if (oContent.getMetadata().getName() === "sap.cux.home.PagePanel") {
|
|
288
|
+
oContent.applyColorPersonalizations(updatedPers);
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
return this;
|
|
292
|
+
},
|
|
293
|
+
panelLoadedFn: function _panelLoadedFn(sPanelType, oVal) {
|
|
294
|
+
const aContent = this.getContent();
|
|
295
|
+
aContent.forEach(oContent => {
|
|
296
|
+
this.pagePanel = oContent;
|
|
297
|
+
});
|
|
298
|
+
this.panelLoaded[sPanelType] = oVal;
|
|
299
|
+
this.adjustLayout();
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* Adjusts the layout of the all panels in the container.
|
|
303
|
+
*
|
|
304
|
+
* @private
|
|
305
|
+
* @override
|
|
306
|
+
*/
|
|
307
|
+
adjustLayout: function _adjustLayout() {
|
|
308
|
+
if (this.pagePanel) {
|
|
309
|
+
if (this.panelLoaded["Page"]?.loaded) {
|
|
310
|
+
this.adjustStyleLayout();
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
//check Both
|
|
315
|
+
adjustStyleLayout: function _adjustStyleLayout() {
|
|
316
|
+
const pagesContentWrapper = this.pagePanel ? this.pagePanel.getContent()?.[0] : undefined;
|
|
317
|
+
pagesContentWrapper?.setWidth("100%");
|
|
318
|
+
if (pagesContentWrapper) {
|
|
319
|
+
setTimeout(this.pagePanel.attachResizeHandler.bind(this.pagePanel, this.getDomRef()?.clientWidth || 0, pagesContentWrapper));
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
/**
|
|
323
|
+
* Retrieves the generic placeholder content for the Pages container.
|
|
324
|
+
*
|
|
325
|
+
* @returns {string} The HTML string representing the Pages container's placeholder content.
|
|
326
|
+
*/
|
|
327
|
+
getGenericPlaceholderContent: function _getGenericPlaceholderContent() {
|
|
328
|
+
return getPagesPlaceholder();
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
return PagesContainer;
|
|
332
|
+
});
|
|
333
|
+
//# sourceMappingURL=PagesContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagesContainer.js","names":["sap","ui","define","__BaseContainer","___utils_placeholder_PagesPlaceholder","_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","getPagesPlaceholder","PagesContainer","extend","metadata","properties","colorPersonalizations","type","group","defaultValue","visibility","iconPersonalizations","renderer","apiVersion","constructor","_constructor","id","settings","BaseContainer.prototype.constructor.call","panelLoaded","init","_init","BaseContainer.prototype.init.call","setProperty","addStyleClass","_i18nBundle","getText","addCustomSetting","load","_load","aContent","getContent","_temp","oContent","Promise","resolve","getData","setIconPersonalizations","_setIconPersonalizations","personalizations","existingPers","getProperty","updatedPers","concat","forEach","getMetadata","getName","applyIconPersonalizations","setColorPersonalizations","_setColorPersonalizations","applyColorPersonalizations","panelLoadedFn","_panelLoadedFn","sPanelType","oVal","pagePanel","adjustLayout","_adjustLayout","loaded","adjustStyleLayout","_adjustStyleLayout","pagesContentWrapper","undefined","setWidth","setTimeout","attachResizeHandler","getDomRef","clientWidth","getGenericPlaceholderContent","_getGenericPlaceholderContent"],"sources":["PagesContainer.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport VBox from \"sap/m/VBox\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport BaseContainer from \"./BaseContainer\";\nimport BasePanel from \"./BasePanel\";\nimport { ISpacePagePersonalization } from \"./interface/KeyUserInterface\";\nimport PagePanel from \"./PagePanel\";\nimport { $PagesContainerSettings } from \"./PagesContainer\";\nimport { getPagesPlaceholder } from \"./utils/placeholder/PagesPlaceholder\";\n\ninterface IpanelLoaded {\n\t[key: string]: { loaded: boolean; count: number };\n}\n\n/**\n *\n * Container class for managing and storing Pages.\n *\n * @extends BaseContainer\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.142\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.PagesContainer\n */\nexport default class PagesContainer 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}\n\t};\n\n\tprivate panelLoaded: IpanelLoaded = {};\n\tprivate pagePanel!: PagePanel;\n\n\tconstructor(id?: string | $PagesContainerSettings);\n\tconstructor(id?: string, settings?: $PagesContainerSettings);\n\t/**\n\t * Constructor for the new 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?: $PagesContainerSettings) {\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\t\tthis.setProperty(\"compositeId\", \"NewsAndPages\");\n\t\tthis.addStyleClass(\"NewsAndPages\");\n\t\tthis.setProperty(\"title\", this._i18nBundle?.getText(\"pageTitle\"));\n\t\tthis.addCustomSetting(\"title\", this._i18nBundle.getText(\"pageTitle\") as string);\n\t\tthis.addCustomSetting(\"groupTitle\", this._i18nBundle.getText(\"myInterestMsg\") as string);\n\t\tthis.addStyleClass(\"sapCuxNewsAndPagesContainer\");\n\t\tthis.addStyleClass(\"sapCuxHorizontalContainers\");\n\t}\n\n\t/**\n\t * Loads 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[];\n\t\tfor (const oContent of aContent) {\n\t\t\tawait oContent.getData();\n\t\t}\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>): PagesContainer {\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 * 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>): PagesContainer {\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\tpublic panelLoadedFn(sPanelType: string, oVal: { loaded: boolean; count: number }) {\n\t\tconst aContent = this.getContent();\n\t\taContent.forEach((oContent: BasePanel) => {\n\t\t\tthis.pagePanel = oContent as PagePanel;\n\t\t});\n\t\tthis.panelLoaded[sPanelType] = oVal;\n\t\tthis.adjustLayout();\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) {\n\t\t\tif (this.panelLoaded[\"Page\"]?.loaded) {\n\t\t\t\tthis.adjustStyleLayout();\n\t\t\t}\n\t\t}\n\t}\n\n\t//check Both\n\tpublic adjustStyleLayout() {\n\t\tconst pagesContentWrapper = this.pagePanel ? (this.pagePanel.getContent()?.[0] as VBox) : undefined;\n\t\tpagesContentWrapper?.setWidth(\"100%\");\n\n\t\tif (pagesContentWrapper) {\n\t\t\tsetTimeout(this.pagePanel.attachResizeHandler.bind(this.pagePanel, this.getDomRef()?.clientWidth || 0, pagesContentWrapper));\n\t\t}\n\t}\n\n\t/**\n\t * Retrieves the generic placeholder content for the Pages container.\n\t *\n\t * @returns {string} The HTML string representing the Pages container's placeholder content.\n\t */\n\tprotected getGenericPlaceholderContent(): string {\n\t\treturn getPagesPlaceholder();\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,wEAAAC,eAAA,EAAAC,qCAAA;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,iBAAiB,CAAC,CAAC,GAAI,YAAY;EA7HvJ,SAASE,OAAOA,CAACC,IAAI,EAAEC,KAAK,EAAEC,KAAK,EAAE;IAC3C,IAAI,CAACF,IAAI,CAACG,CAAC,EAAE;MACZ,IAAID,KAAK,YAAYE,KAAK,EAAE;QAC3B,IAAIF,KAAK,CAACC,CAAC,EAAE;UACZ,IAAIF,KAAK,GAAG,CAAC,EAAE;YACdA,KAAK,GAAGC,KAAK,CAACC,CAAC;UAChB;UACAD,KAAK,GAAGA,KAAK,CAACG,CAAC;QAChB,CAAC,MAAM;UACNH,KAAK,CAACI,CAAC,GAAGP,OAAO,CAACQ,IAAI,CAAC,IAAI,EAAEP,IAAI,EAAEC,KAAK,CAAC;UACzC;QACD;MACD;MACA,IAAIC,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,SAAS,CAACxB,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,GAAY+B,SAAS;MACnGD,mBAAmB,EAAEE,QAAQ,CAAC,MAAM,CAAC;MAErC,IAAIF,mBAAmB,EAAE;QACxBG,UAAU,CAAC,IAAI,CAACT,SAAS,CAACU,mBAAmB,CAAC/F,IAAI,CAAC,IAAI,CAACqF,SAAS,EAAE,IAAI,CAACW,SAAS,CAAC,CAAC,EAAEC,WAAW,IAAI,CAAC,EAAEN,mBAAmB,CAAC,CAAC;MAC7H;IACD,CAAC;IAED;AACD;AACA;AACA;AACA;IACWO,4BAA4B,WAAAC,8BAAA,EAAW;MAChD,OAAOpE,mBAAmB,CAAC,CAAC;IAC7B;EAAC;EAAA,OAjJmBC,cAAc;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
* * (c) Copyright 2009-2025 SAP SE. All rights reserved
|
|
4
|
+
*/
|
|
5
|
+
import VBox from "sap/m/VBox";
|
|
6
|
+
import type { MetadataOptions } from "sap/ui/core/Element";
|
|
7
|
+
import BaseContainer from "./BaseContainer";
|
|
8
|
+
import BasePanel from "./BasePanel";
|
|
9
|
+
import { ISpacePagePersonalization } from "./interface/KeyUserInterface";
|
|
10
|
+
import PagePanel from "./PagePanel";
|
|
11
|
+
import { $PagesContainerSettings } from "./PagesContainer";
|
|
12
|
+
import { getPagesPlaceholder } from "./utils/placeholder/PagesPlaceholder";
|
|
13
|
+
|
|
14
|
+
interface IpanelLoaded {
|
|
15
|
+
[key: string]: { loaded: boolean; count: number };
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* Container class for managing and storing Pages.
|
|
21
|
+
*
|
|
22
|
+
* @extends BaseContainer
|
|
23
|
+
*
|
|
24
|
+
* @author SAP SE
|
|
25
|
+
* @version 0.0.1
|
|
26
|
+
* @since 1.142
|
|
27
|
+
*
|
|
28
|
+
* @private
|
|
29
|
+
* @ui5-restricted ux.eng.s4producthomes1
|
|
30
|
+
*
|
|
31
|
+
* @alias sap.cux.home.PagesContainer
|
|
32
|
+
*/
|
|
33
|
+
export default class PagesContainer extends BaseContainer {
|
|
34
|
+
static renderer = {
|
|
35
|
+
...BaseContainer.renderer,
|
|
36
|
+
apiVersion: 2
|
|
37
|
+
};
|
|
38
|
+
static readonly metadata: MetadataOptions = {
|
|
39
|
+
properties: {
|
|
40
|
+
/**
|
|
41
|
+
* Color Personalizations for Spaces & Pages
|
|
42
|
+
*/
|
|
43
|
+
colorPersonalizations: { type: "array", group: "Misc", defaultValue: [], visibility: "hidden" },
|
|
44
|
+
/**
|
|
45
|
+
* Icon Personalizations for Spaces & Pages
|
|
46
|
+
*/
|
|
47
|
+
iconPersonalizations: { type: "array", group: "Misc", defaultValue: [], visibility: "hidden" }
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
private panelLoaded: IpanelLoaded = {};
|
|
52
|
+
private pagePanel!: PagePanel;
|
|
53
|
+
|
|
54
|
+
constructor(id?: string | $PagesContainerSettings);
|
|
55
|
+
constructor(id?: string, settings?: $PagesContainerSettings);
|
|
56
|
+
/**
|
|
57
|
+
* Constructor for the new Pages container.
|
|
58
|
+
*
|
|
59
|
+
* @param {string} [id] ID for the new control, generated automatically if an ID is not provided
|
|
60
|
+
* @param {object} [settings] Initial settings for the new control
|
|
61
|
+
*/
|
|
62
|
+
public constructor(id?: string, settings?: $PagesContainerSettings) {
|
|
63
|
+
super(id, settings);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Init lifecycle method
|
|
68
|
+
*
|
|
69
|
+
* @private
|
|
70
|
+
* @override
|
|
71
|
+
*/
|
|
72
|
+
public init(): void {
|
|
73
|
+
super.init();
|
|
74
|
+
this.panelLoaded = {};
|
|
75
|
+
this.setProperty("compositeId", "NewsAndPages");
|
|
76
|
+
this.addStyleClass("NewsAndPages");
|
|
77
|
+
this.setProperty("title", this._i18nBundle?.getText("pageTitle"));
|
|
78
|
+
this.addCustomSetting("title", this._i18nBundle.getText("pageTitle") as string);
|
|
79
|
+
this.addCustomSetting("groupTitle", this._i18nBundle.getText("myInterestMsg") as string);
|
|
80
|
+
this.addStyleClass("sapCuxNewsAndPagesContainer");
|
|
81
|
+
this.addStyleClass("sapCuxHorizontalContainers");
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Loads Pages section.
|
|
86
|
+
* Overrides the load method of the BaseContainer.
|
|
87
|
+
*
|
|
88
|
+
* @private
|
|
89
|
+
* @override
|
|
90
|
+
*/
|
|
91
|
+
public async load() {
|
|
92
|
+
const aContent = this.getContent() as PagePanel[];
|
|
93
|
+
for (const oContent of aContent) {
|
|
94
|
+
await oContent.getData();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Sets property value for iconPersonalization.
|
|
100
|
+
* Overridden to update cached personalizations.
|
|
101
|
+
*
|
|
102
|
+
* @private
|
|
103
|
+
* @override
|
|
104
|
+
* @returns {NewsAndPagesContainer} the container for chaining
|
|
105
|
+
*/
|
|
106
|
+
setIconPersonalizations(personalizations: Array<ISpacePagePersonalization>): PagesContainer {
|
|
107
|
+
const existingPers = (this.getProperty("iconPersonalizations") as ISpacePagePersonalization[]) || [];
|
|
108
|
+
const updatedPers = existingPers.concat(personalizations);
|
|
109
|
+
this.setProperty("iconPersonalizations", updatedPers);
|
|
110
|
+
this.getContent().forEach((oContent) => {
|
|
111
|
+
if (oContent.getMetadata().getName() === "sap.cux.home.PagePanel") {
|
|
112
|
+
(oContent as PagePanel).applyIconPersonalizations(updatedPers);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
return this;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Sets property value for colorPersonalization.
|
|
120
|
+
* Overridden to update cached personalizations.
|
|
121
|
+
*
|
|
122
|
+
* @private
|
|
123
|
+
* @override
|
|
124
|
+
* @returns {NewsAndPagesContainer} the container for chaining
|
|
125
|
+
*/
|
|
126
|
+
setColorPersonalizations(personalizations: Array<ISpacePagePersonalization>): PagesContainer {
|
|
127
|
+
const existingPers = (this.getProperty("colorPersonalizations") as ISpacePagePersonalization[]) || [];
|
|
128
|
+
const updatedPers = existingPers.concat(personalizations);
|
|
129
|
+
this.setProperty("colorPersonalizations", updatedPers);
|
|
130
|
+
this.getContent().forEach((oContent) => {
|
|
131
|
+
if (oContent.getMetadata().getName() === "sap.cux.home.PagePanel") {
|
|
132
|
+
(oContent as PagePanel).applyColorPersonalizations(updatedPers);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
return this;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
public panelLoadedFn(sPanelType: string, oVal: { loaded: boolean; count: number }) {
|
|
139
|
+
const aContent = this.getContent();
|
|
140
|
+
aContent.forEach((oContent: BasePanel) => {
|
|
141
|
+
this.pagePanel = oContent as PagePanel;
|
|
142
|
+
});
|
|
143
|
+
this.panelLoaded[sPanelType] = oVal;
|
|
144
|
+
this.adjustLayout();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Adjusts the layout of the all panels in the container.
|
|
149
|
+
*
|
|
150
|
+
* @private
|
|
151
|
+
* @override
|
|
152
|
+
*/
|
|
153
|
+
public adjustLayout() {
|
|
154
|
+
if (this.pagePanel) {
|
|
155
|
+
if (this.panelLoaded["Page"]?.loaded) {
|
|
156
|
+
this.adjustStyleLayout();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
//check Both
|
|
162
|
+
public adjustStyleLayout() {
|
|
163
|
+
const pagesContentWrapper = this.pagePanel ? (this.pagePanel.getContent()?.[0] as VBox) : undefined;
|
|
164
|
+
pagesContentWrapper?.setWidth("100%");
|
|
165
|
+
|
|
166
|
+
if (pagesContentWrapper) {
|
|
167
|
+
setTimeout(this.pagePanel.attachResizeHandler.bind(this.pagePanel, this.getDomRef()?.clientWidth || 0, pagesContentWrapper));
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Retrieves the generic placeholder content for the Pages container.
|
|
173
|
+
*
|
|
174
|
+
* @returns {string} The HTML string representing the Pages container's placeholder content.
|
|
175
|
+
*/
|
|
176
|
+
protected getGenericPlaceholderContent(): string {
|
|
177
|
+
return getPagesPlaceholder();
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -1,29 +1,9 @@
|
|
|
1
1
|
declare module "sap/cux/home/SpaceInsightsPanel" {
|
|
2
|
-
import Button from "sap/m/Button";
|
|
3
2
|
import Control from "sap/ui/core/Control";
|
|
4
3
|
import type { MetadataOptions } from "sap/ui/core/Element";
|
|
5
4
|
import UI5Element from "sap/ui/core/Element";
|
|
6
5
|
import BasePanel from "sap/cux/home/BasePanel";
|
|
7
|
-
import MenuItem from "sap/cux/home/MenuItem";
|
|
8
6
|
import { $SpaceInsightsPanelSettings } from "sap/cux/home/SpaceInsightsPanel";
|
|
9
|
-
enum tilesMenuItems {
|
|
10
|
-
REFRESH = "tiles-refresh",
|
|
11
|
-
ADD_APPS = "tiles-addSmartApps",
|
|
12
|
-
EDIT_TILES = "tiles-editTiles"
|
|
13
|
-
}
|
|
14
|
-
enum tilesContainerMenuItems {
|
|
15
|
-
REFRESH = "container-tiles-refresh",
|
|
16
|
-
ADD_APPS = "container-tiles-addSmartApps",
|
|
17
|
-
EDIT_TILES = "container-tiles-editTiles",
|
|
18
|
-
SHOW_MORE = "tilesContainerFullScreenMenuItem"
|
|
19
|
-
}
|
|
20
|
-
enum tilesActionButtons {
|
|
21
|
-
ADD_TILES = "tiles-addTilesButton"
|
|
22
|
-
}
|
|
23
|
-
enum tilesContainerActionButtons {
|
|
24
|
-
ADD_TILES = "container-tiles-addTilesButton",
|
|
25
|
-
SHOW_MORE = "tilesContanerFullScreenActionButton"
|
|
26
|
-
}
|
|
27
7
|
enum DisplayFormat {
|
|
28
8
|
Standard = "standard",
|
|
29
9
|
StandardWide = "standardWide"
|
|
@@ -52,20 +32,18 @@ declare module "sap/cux/home/SpaceInsightsPanel" {
|
|
|
52
32
|
private _oData;
|
|
53
33
|
private appManagerInstance;
|
|
54
34
|
private VizInstantiationService;
|
|
55
|
-
private
|
|
35
|
+
private tilesWrapperContainer;
|
|
56
36
|
private tilesMobileContainer;
|
|
57
37
|
private _tilesWrapper;
|
|
58
38
|
private aInsightsApps;
|
|
59
39
|
private _controlModel;
|
|
60
40
|
_controlMap: Map<string, Control | Element | UI5Element>;
|
|
61
|
-
private
|
|
62
|
-
private _containerActionButtons;
|
|
63
|
-
private insightsContainer;
|
|
41
|
+
private tilesContainer;
|
|
64
42
|
private _appSwitched;
|
|
65
|
-
private _headerVisible;
|
|
66
43
|
private pageManager;
|
|
67
44
|
private allSpaces;
|
|
68
45
|
private spaceTitle;
|
|
46
|
+
private _errorPanel;
|
|
69
47
|
static readonly metadata: MetadataOptions;
|
|
70
48
|
/**
|
|
71
49
|
* Initializes the Tiles Panel.
|
|
@@ -111,6 +89,7 @@ declare module "sap/cux/home/SpaceInsightsPanel" {
|
|
|
111
89
|
* @returns {Promise<void>} A promise that resolves when the data is refreshed.
|
|
112
90
|
*/
|
|
113
91
|
refreshData(refreshTiles?: boolean): Promise<void>;
|
|
92
|
+
private _addErrorPanel;
|
|
114
93
|
/**
|
|
115
94
|
* Generates the wrapper for the tiles container, if it doesn't already exist
|
|
116
95
|
*
|
|
@@ -143,21 +122,11 @@ declare module "sap/cux/home/SpaceInsightsPanel" {
|
|
|
143
122
|
* Attaches necessary aggregations and configurations to the provided container.
|
|
144
123
|
*
|
|
145
124
|
* @private
|
|
146
|
-
* @param {GridContainer | HeaderContainer}
|
|
125
|
+
* @param {GridContainer | HeaderContainer} tilesWrapperContainer - The container to which the aggregation and events are to be attached.
|
|
147
126
|
* @returns {void}
|
|
148
127
|
*
|
|
149
128
|
*/
|
|
150
129
|
private _attachAggregationToContainer;
|
|
151
|
-
/**
|
|
152
|
-
* Hides the header of the tiles panel.
|
|
153
|
-
* @private
|
|
154
|
-
*/
|
|
155
|
-
handleHideHeader(): void;
|
|
156
|
-
/**
|
|
157
|
-
* Adds the header to the tiles panel.
|
|
158
|
-
* @private
|
|
159
|
-
*/
|
|
160
|
-
handleAddHeader(): void;
|
|
161
130
|
/**
|
|
162
131
|
* Calculates the number of visible tiles that can fit within the available width of the parent container.
|
|
163
132
|
*
|
|
@@ -175,33 +144,12 @@ declare module "sap/cux/home/SpaceInsightsPanel" {
|
|
|
175
144
|
*/
|
|
176
145
|
_adjustLayout(): void;
|
|
177
146
|
/**
|
|
178
|
-
* Retrieves the
|
|
179
|
-
*
|
|
180
|
-
* @private
|
|
181
|
-
* @returns {InsightsContainer} The InsightsContainer instance.
|
|
182
|
-
*/
|
|
183
|
-
private _getInsightsContainer;
|
|
184
|
-
/**
|
|
185
|
-
* Retrieves the menu items for the container.
|
|
186
|
-
*
|
|
187
|
-
* @private
|
|
188
|
-
* @returns {MenuItem[]} An array of MenuItem instances.
|
|
189
|
-
*/
|
|
190
|
-
getContainerMenuItems(): MenuItem[];
|
|
191
|
-
/**
|
|
192
|
-
* Retrieves the action buttons for the container.
|
|
193
|
-
*
|
|
194
|
-
* @private
|
|
195
|
-
* @returns {Button[]} An array of Button instances.
|
|
196
|
-
*/
|
|
197
|
-
getContainerActionButtons(): Button[];
|
|
198
|
-
/**
|
|
199
|
-
* Toggles the visibility of the header actions.
|
|
147
|
+
* Retrieves the TilesContainer instance associated with this TilesPanel.
|
|
200
148
|
*
|
|
201
|
-
* @param {boolean} bShow - Whether to show or hide the header actions.
|
|
202
149
|
* @private
|
|
150
|
+
* @returns {TilesContainer} The TilesContainer instance.
|
|
203
151
|
*/
|
|
204
|
-
private
|
|
152
|
+
private _getTilesContainer;
|
|
205
153
|
}
|
|
206
154
|
}
|
|
207
155
|
//# sourceMappingURL=SpaceInsightsPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpaceInsightsPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/SpaceInsightsPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"SpaceInsightsPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/SpaceInsightsPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,iCAAiC,CAAC;IAejD,OAAO,OAAO,MAAM,qBAAqB,CAAC;IAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAC3D,OAAO,UAAU,MAAM,qBAAqB,CAAC;IAQ7C,OAAO,SAAS,MAAM,wBAAwB,CAAC;IAE/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;IAW9E,KAAY,aAAa;QACxB,QAAQ,aAAa;QACrB,YAAY,iBAAiB;KAC7B;IAED,MAAM,iBAAiB,MAAM,CAAC;IAC9B,MAAM,qBAAqB,MAAM,CAAC;IAClC,MAAM,GAAG,KAAK,CAAC;IAEf;;;;;;;;;;;;;;OAcG;IAEH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAS;oBAC5C,YAAY,CAAC,EAAE,MAAM,GAAG,2BAA2B;oBACnD,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,2BAA2B;QAU/D,OAAO,CAAC,MAAM,CAA2B;QACzC,OAAO,CAAC,kBAAkB,CAAc;QACxC,OAAO,CAAC,uBAAuB,CAA8B;QAC7D,OAAO,CAAC,qBAAqB,CAAiB;QAC9C,OAAO,CAAC,oBAAoB,CAAmB;QAC/C,OAAO,CAAC,aAAa,CAAQ;QAC7B,OAAO,CAAC,aAAa,CAA0C;QAC/D,OAAO,CAAC,aAAa,CAAa;QAC3B,WAAW,EAAG,GAAG,CAAC,M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