@sapui5/sap.cux.home 1.142.0 → 1.143.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/cux/home/.library +4 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +3 -2
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js +6 -5
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +6 -5
- package/src/sap/cux/home/App.d.ts.map +1 -1
- package/src/sap/cux/home/App.js +3 -0
- package/src/sap/cux/home/App.js.map +1 -1
- package/src/sap/cux/home/App.ts +3 -0
- package/src/sap/cux/home/AppsAdditionPanel.d.ts +74 -34
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.js +344 -146
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/AppsAdditionPanel.ts +367 -149
- package/src/sap/cux/home/AppsContainer.js +2 -1
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +2 -2
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.js +9 -1
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +6 -2
- package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js +6 -0
- package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.ts +6 -0
- package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
- package/src/sap/cux/home/BasePanel.d.ts.map +1 -1
- package/src/sap/cux/home/BasePanel.js +3 -2
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +2 -1
- package/src/sap/cux/home/CardsContainer.d.ts +108 -0
- package/src/sap/cux/home/CardsContainer.d.ts.map +1 -0
- package/src/sap/cux/home/CardsContainer.js +207 -0
- package/src/sap/cux/home/CardsContainer.js.map +1 -0
- package/src/sap/cux/home/CardsContainer.ts +202 -0
- package/src/sap/cux/home/CardsPanel.d.ts +25 -59
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.js +157 -155
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +152 -175
- package/src/sap/cux/home/ContentAdditionDialog.d.ts +2 -0
- package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.js +12 -6
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -1
- package/src/sap/cux/home/ContentAdditionDialog.ts +13 -5
- package/src/sap/cux/home/ErrorPanel.d.ts +0 -5
- package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ErrorPanel.gen.d.ts +31 -0
- package/src/sap/cux/home/ErrorPanel.js +11 -16
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +7 -19
- package/src/sap/cux/home/FavAppPanel.d.ts +1 -2
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +296 -301
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +18 -14
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts +4 -4
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.js +10 -9
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsAdditionPanel.ts +9 -8
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/InsightsTilesSettingsPanel.ts +3 -3
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts +3 -0
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +252 -39
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +288 -58
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +11 -10
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +12 -10
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js +2 -2
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsSettingsPanel.ts +7 -7
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +2 -2
- package/src/sap/cux/home/Layout.d.ts +3 -1
- package/src/sap/cux/home/Layout.d.ts.map +1 -1
- package/src/sap/cux/home/Layout.js +45 -8
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +55 -8
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts +10 -0
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.js +341 -56
- package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.ts +380 -64
- package/src/sap/cux/home/{NewsAndPagesContainer.d.ts → NewsContainer.d.ts} +13 -14
- package/src/sap/cux/home/NewsContainer.d.ts.map +1 -0
- package/src/sap/cux/home/{NewsAndPagesContainer.gen.d.ts → NewsContainer.gen.d.ts} +3 -3
- package/src/sap/cux/home/{NewsAndPagesContainer.js → NewsContainer.js} +26 -113
- package/src/sap/cux/home/NewsContainer.js.map +1 -0
- package/src/sap/cux/home/{NewsAndPagesContainer.ts → NewsContainer.ts} +29 -118
- package/src/sap/cux/home/NewsGroup.js.map +1 -1
- package/src/sap/cux/home/NewsGroup.ts +1 -1
- package/src/sap/cux/home/NewsPanel.js +2 -2
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +3 -3
- package/src/sap/cux/home/NewsSettingsPanel.js +3 -3
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +4 -4
- package/src/sap/cux/home/PagePanel.d.ts +1 -1
- package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/PagePanel.js +18 -10
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +25 -15
- package/src/sap/cux/home/PagesContainer.d.ts +72 -0
- package/src/sap/cux/home/PagesContainer.d.ts.map +1 -0
- package/src/sap/cux/home/PagesContainer.gen.d.ts +78 -0
- package/src/sap/cux/home/PagesContainer.js +333 -0
- package/src/sap/cux/home/PagesContainer.js.map +1 -0
- package/src/sap/cux/home/PagesContainer.ts +179 -0
- package/src/sap/cux/home/SettingsDialog.d.ts +7 -0
- package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/SettingsDialog.js +18 -10
- package/src/sap/cux/home/SettingsDialog.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.ts +20 -13
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts +8 -60
- package/src/sap/cux/home/SpaceInsightsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.js +66 -132
- package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
- package/src/sap/cux/home/SpaceInsightsPanel.ts +69 -151
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.js +14 -12
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +17 -15
- package/src/sap/cux/home/TilesContainer.d.ts +111 -0
- package/src/sap/cux/home/TilesContainer.d.ts.map +1 -0
- package/src/sap/cux/home/TilesContainer.js +218 -0
- package/src/sap/cux/home/TilesContainer.js.map +1 -0
- package/src/sap/cux/home/TilesContainer.ts +216 -0
- package/src/sap/cux/home/TilesPanel.d.ts +22 -52
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.js +184 -165
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +160 -154
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +30 -58
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +29 -28
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.js.map +1 -1
- package/src/sap/cux/home/changeHandler/NewsFeedVisibilityChange.ts +4 -4
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SetNewsFeedUrl.ts +4 -4
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageColorHandler.ts +3 -3
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts +2 -2
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.d.ts.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js +4 -4
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.js.map +1 -1
- package/src/sap/cux/home/changeHandler/SpacePageIconHandler.ts +5 -5
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js +30 -3
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/BaseContainer.flexibility.ts +23 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts +29 -19
- package/src/sap/cux/home/flexibility/Layout.flexibility.d.ts.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.js +78 -2
- package/src/sap/cux/home/flexibility/Layout.flexibility.js.map +1 -1
- package/src/sap/cux/home/flexibility/Layout.flexibility.ts +81 -1
- package/src/sap/cux/home/i18n/messagebundle.properties +33 -13
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_da.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_de.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_el.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_en.properties +9 -5
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +14 -6
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +14 -6
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_es.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_et.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_id.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_it.properties +10 -6
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_no.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_th.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +8 -4
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +8 -4
- package/src/sap/cux/home/interface/AppsInterface.d.ts +1 -0
- package/src/sap/cux/home/interface/AppsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.js.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.ts +1 -0
- package/src/sap/cux/home/interface/KeyUserInterface.d.ts +27 -4
- package/src/sap/cux/home/interface/KeyUserInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/KeyUserInterface.js.map +1 -1
- package/src/sap/cux/home/interface/KeyUserInterface.ts +23 -4
- package/src/sap/cux/home/interface/LayoutInterface.d.ts +7 -0
- package/src/sap/cux/home/interface/LayoutInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/LayoutInterface.js.map +1 -1
- package/src/sap/cux/home/interface/LayoutInterface.ts +7 -0
- package/src/sap/cux/home/library.d.ts.map +1 -1
- package/src/sap/cux/home/library.js +7 -4
- package/src/sap/cux/home/library.js.map +1 -1
- package/src/sap/cux/home/library.ts +10 -5
- package/src/sap/cux/home/themes/base/BaseContainer.less +36 -0
- package/src/sap/cux/home/themes/base/BaseLayout.less +11 -0
- package/src/sap/cux/home/themes/base/{InsightsContainer.less → CardsContainer.less} +0 -45
- package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +10 -18
- package/src/sap/cux/home/themes/base/PlaceHolder.less +1 -1
- package/src/sap/cux/home/themes/base/SettingsDialog.less +4 -0
- package/src/sap/cux/home/themes/base/TilesContainer.less +65 -0
- package/src/sap/cux/home/themes/base/library.source.less +2 -1
- package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/AppManager.js +2 -1
- package/src/sap/cux/home/utils/AppManager.js.map +1 -1
- package/src/sap/cux/home/utils/AppManager.ts +2 -2
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts +4 -2
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.js +4 -2
- package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.ts +4 -2
- package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +155 -151
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.js → CardsPlaceholder.js} +3 -77
- package/src/sap/cux/home/utils/placeholder/CardsPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{InsightsPlaceholder.ts → CardsPlaceholder.ts} +1 -75
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js +44 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/NewsPlaceholder.ts +34 -0
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.js → PagesPlaceholder.js} +3 -23
- package/src/sap/cux/home/utils/placeholder/PagesPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/{NewsAndPagesPlaceholder.ts → PagesPlaceholder.ts} +1 -21
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js +95 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.js.map +1 -0
- package/src/sap/cux/home/utils/placeholder/TilesPlaceholder.ts +85 -0
- package/ui5.yaml +1 -0
- package/src/sap/cux/home/InsightsContainer.d.ts +0 -205
- package/src/sap/cux/home/InsightsContainer.d.ts.map +0 -1
- package/src/sap/cux/home/InsightsContainer.js +0 -459
- package/src/sap/cux/home/InsightsContainer.js.map +0 -1
- package/src/sap/cux/home/InsightsContainer.ts +0 -489
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +0 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +0 -1
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts +0 -8
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/utils/placeholder/InsightsPlaceholder.js.map +0 -1
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts +0 -8
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.d.ts.map +0 -1
- package/src/sap/cux/home/utils/placeholder/NewsAndPagesPlaceholder.js.map +0 -1
|
@@ -129,7 +129,7 @@ const _getTargetUrl = (vizConfigFLP: IVisualization | undefined) => {
|
|
|
129
129
|
return sTargetURL;
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
const _isSmartBusinessTile = (oVisualization: IVisualization): boolean => {
|
|
132
|
+
export const _isSmartBusinessTile = (oVisualization: IVisualization): boolean => {
|
|
133
133
|
return oVisualization.vizType?.startsWith("X-SAP-UI2-CHIP:SSB");
|
|
134
134
|
};
|
|
135
135
|
|
|
@@ -333,7 +333,7 @@ export default class AppManager extends BaseObject {
|
|
|
333
333
|
this._oVizCacheData[oViz.appId] = oVizInstantiationService.instantiateVisualization(
|
|
334
334
|
oVisualization
|
|
335
335
|
) as ICustomVizInstance;
|
|
336
|
-
this._oVizCacheData[oViz.appId].setActive(
|
|
336
|
+
this._oVizCacheData[oViz.appId].setActive(false);
|
|
337
337
|
}
|
|
338
338
|
oViz.vizInstance = this._oVizCacheData[oViz.appId];
|
|
339
339
|
}
|
|
@@ -17,8 +17,10 @@ declare module "sap/cux/home/utils/PerformanceUtils" {
|
|
|
17
17
|
*/
|
|
18
18
|
const UIElements: {
|
|
19
19
|
"sap.cux.home.AppsContainer": string;
|
|
20
|
-
"sap.cux.home.
|
|
21
|
-
"sap.cux.home.
|
|
20
|
+
"sap.cux.home.TilesContainer": string;
|
|
21
|
+
"sap.cux.home.CardsContainer": string;
|
|
22
|
+
"sap.cux.home.PagesContainer": string;
|
|
23
|
+
"sap.cux.home.NewsContainer": string;
|
|
22
24
|
"sap.cux.home.ToDosContainer": string;
|
|
23
25
|
"sap.cux.home.Layout": string;
|
|
24
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PerformanceUtils.d.ts","sourceRoot":"../../../../../..","sources":["src/sap/cux/home/utils/PerformanceUtils.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,qCAAqC,CAAC;IASrD,OAAO,aAAa,MAAM,4BAA4B,CAAC;IACvD,OAAO,MAAM,MAAM,qBAAqB,CAAC;IAEzC,KAAK,WAAW,GAAG;QAClB,IAAI,EAAE,MAAM,OAAO,UAAU,CAAC;QAC9B,WAAW,EAAE,OAAO,CAAC;QACrB,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;KACjC,CAAC;IAEF,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C,aAAa,EAAE,MAAM,OAAO,UAAU,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CASxH;IAED;;;;OAIG;IACH,SAAsB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAkC5E;IAED;;;;;OAKG;IACH,SAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,OAAO,UAAU,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAE5G;IAED;;;;;OAKG;IACH,SAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,OAAO,UAAU,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAE1G;CAEA"}
|
|
@@ -115,8 +115,10 @@ sap.ui.define(["sap/ushell/Container", "sap/ushell/EventHub", "sap/ushell/utils"
|
|
|
115
115
|
*/
|
|
116
116
|
const UIElements = {
|
|
117
117
|
"sap.cux.home.AppsContainer": "Apps",
|
|
118
|
-
"sap.cux.home.
|
|
119
|
-
"sap.cux.home.
|
|
118
|
+
"sap.cux.home.TilesContainer": "Insights_Tiles",
|
|
119
|
+
"sap.cux.home.CardsContainer": "Insights_Cards",
|
|
120
|
+
"sap.cux.home.PagesContainer": "Pages",
|
|
121
|
+
"sap.cux.home.NewsContainer": "News",
|
|
120
122
|
"sap.cux.home.ToDosContainer": "ToDos",
|
|
121
123
|
[layoutElement]: "Layout"
|
|
122
124
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PerformanceUtils.js","names":["sap","ui","define","Container","EventHub","utils","setupPerformanceTracking","layout","setupTracking","Promise","resolve","containers","getItems","forEach","container","getContent","panel","attachEventOnce","containerName","getMetadata","getName","heroElement","availableElements","filter","availableElement","control","getVisible","name","_temp2","markHomePageEnd","then","e","reject","visibleElements","layoutElement","find","markHomePageStart","_temp","length","isHomeApp","_isHomeApp2","recordElementLoadEnd","homePageLoadEndMarker","emit","_isHomeApp","recordElementLoadStart","homePageLoadStartMarker","getServiceAsync","getCurrentApplication","homePage","UIElements","Object","keys","map","elementName","startMarked","endMarked","findUIElement","setPerformanceMark","markName","bUseUniqueMark","bUseLastMark","recordElementLoad","customMarkName","isStartMaker","element","marker","controlFlag","__exports","__esModule"],"sources":["PerformanceUtils.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport Container from \"sap/ushell/Container\";\nimport EventHub from \"sap/ushell/EventHub\";\nimport AppLifeCycle from \"sap/ushell/services/AppLifeCycle\";\nimport utils from \"sap/ushell/utils\";\nimport BaseContainer from \"../BaseContainer\";\nimport Layout from \"../Layout\";\n\ntype ElementInfo = {\n\tname: keyof typeof UIElements;\n\tstartMarked: boolean;\n\tendMarked: boolean;\n\tcontrol?: Layout | BaseContainer;\n};\n\nconst layoutElement = \"sap.cux.home.Layout\";\nconst homePageLoadStartMarker = \"FLP-TTI-Homepage-Custom-Start\";\nconst homePageLoadEndMarker = \"FLP-TTI-Homepage-Custom\";\nlet setupTracking = false;\n\n/**\n * An object representing the UI elements and their corresponding marker names.\n *\n */\nexport const UIElements = {\n\t\"sap.cux.home.AppsContainer\": \"Apps\",\n\t\"sap.cux.home.InsightsContainer\": \"Insights\",\n\t\"sap.cux.home.NewsAndPagesContainer\": \"News\",\n\t\"sap.cux.home.ToDosContainer\": \"ToDos\",\n\t[layoutElement]: \"Layout\"\n};\n\nlet availableElements: ElementInfo[] = Object.keys(UIElements).map((elementName) => ({\n\tname: elementName as keyof typeof UIElements,\n\tstartMarked: false,\n\tendMarked: false\n}));\n\n/**\n * Checks if the current application is the home app.\n *\n * @returns {Promise<boolean>} - A promise that resolves to true if the current application is the home app, otherwise false.\n */\nasync function isHomeApp(): Promise<boolean> {\n\tconst container = await Container.getServiceAsync<AppLifeCycle>(\"AppLifeCycle\");\n\treturn container.getCurrentApplication()?.homePage as boolean;\n}\n\n/**\n * Records the start of the homepage load.\n *\n * @returns {Promise<void>} - A promise that resolves when the start of the homepage load is recorded.\n */\nasync function markHomePageStart(): Promise<void> {\n\tif (await isHomeApp()) {\n\t\trecordElementLoadStart(layoutElement, homePageLoadStartMarker);\n\t}\n}\n\n/**\n * Records the end of the homepage load.\n *\n * @returns {Promise<void>} - A promise that resolves when the end of the homepage load is recorded.\n */\nasync function markHomePageEnd(): Promise<void> {\n\tif (await isHomeApp()) {\n\t\trecordElementLoadEnd(layoutElement, homePageLoadEndMarker);\n\t\tEventHub.emit(\"CustomHomeRendered\");\n\t}\n}\n\n/**\n * Finds the UI element information by container name.\n *\n * @param {keyof typeof UIElements} containerName - The name of the container.\n * @returns {ElementInfo | undefined} - The element information if found, otherwise undefined.\n */\nfunction findUIElement(containerName: keyof typeof UIElements): ElementInfo | undefined {\n\treturn availableElements.find((heroElement) => heroElement.name === containerName);\n}\n\n/**\n * Sets a performance mark with the given name.\n *\n * @param {string} markName - The name of the performance mark.\n */\nfunction setPerformanceMark(markName: string): void {\n\tutils.setPerformanceMark(markName, {\n\t\tbUseUniqueMark: true,\n\t\tbUseLastMark: true\n\t});\n}\n\n/**\n * Records the load of an element.\n *\n * @param {keyof typeof UIElements} containerName - The name of the container.\n * @param {string} [customMarkName] - The custom mark name.\n * @param {boolean} [isStartMaker] - Indicates if it is a start marker.\n */\nfunction recordElementLoad(containerName: keyof typeof UIElements, customMarkName?: string, isStartMaker?: boolean): void {\n\tconst element = findUIElement(containerName);\n\tconst marker = isStartMaker ? \"Start\" : \"End\";\n\tconst controlFlag = isStartMaker ? \"startMarked\" : \"endMarked\";\n\n\tif (element && !element[controlFlag] && element.control?.getVisible()) {\n\t\telement[controlFlag] = true;\n\t\tsetPerformanceMark(customMarkName || `FLP-Homepage-Section-${marker}[${UIElements[containerName]}]`);\n\t}\n}\n\n/**\n * Sets up performance tracking for the given layout.\n *\n * @param {Layout} layout - The layout object containing the UI elements.\n */\nexport async function setupPerformanceTracking(layout: Layout): Promise<void> {\n\tif (!layout || setupTracking) return;\n\n\tconst containers = layout.getItems();\n\tcontainers.forEach((container) => {\n\t\tcontainer.getContent().forEach((panel) => {\n\t\t\tpanel.attachEventOnce(\"loaded\", async () => {\n\t\t\t\tconst containerName = container.getMetadata().getName();\n\t\t\t\tconst heroElement = availableElements.filter((availableElement) => availableElement.control?.getVisible())[0].name;\n\n\t\t\t\t// If the hero element is loaded, mark the end of the homepage load\n\t\t\t\tif (containerName === heroElement) {\n\t\t\t\t\tawait markHomePageEnd();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t});\n\n\tconst visibleElements = availableElements.filter((availableElement) => {\n\t\tavailableElement.control =\n\t\t\tavailableElement.name === layoutElement\n\t\t\t\t? layout\n\t\t\t\t: containers.find((container) => container.getMetadata().getName() === availableElement.name);\n\t\treturn availableElement.control?.getVisible();\n\t});\n\n\t// record homepage start\n\tsetupTracking = true;\n\tawait markHomePageStart();\n\n\t// record homepage end in case of no visible elements except layout\n\tif (visibleElements.length === 1) {\n\t\tawait markHomePageEnd();\n\t}\n}\n\n/**\n * Records the start of the element load.\n *\n * @param {keyof typeof UIElements} containerName - The name of the container.\n * @param {string} [customMarkName] - The custom mark name.\n */\nexport function recordElementLoadStart(containerName: keyof typeof UIElements, customMarkName?: string): void {\n\trecordElementLoad(containerName, customMarkName, true);\n}\n\n/**\n * Records the end of the element load.\n *\n * @param {keyof typeof UIElements} containerName - The name of the container.\n * @param {string} [customMarkName] - The custom mark name.\n */\nexport function recordElementLoadEnd(containerName: keyof typeof UIElements, customMarkName?: string): void {\n\trecordElementLoad(containerName, customMarkName, false);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,gFAAAC,SAAA,EAAAC,QAAA,EAAAC,KAAA;EAAA;;EAkHA;AACA;AACA;AACA;AACA;EAJA,MAKsBC,wBAAwB,YAAAA,CAACC,MAAc;IAAA,IAAiB;MAC7E,IAAI,CAACA,MAAM,IAAIC,aAAa,EAAE,OA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,GAAG,aAAa,GAAG,WAAW;IAE9D,IAAIC,OAAO,IAAI,CAACA,OAAO,CAACE,WAAW,CAAC,IAAIF,OAAO,CAACxC,OAAO,EAAEC,UAAU,CAAC,CAAC,EAAE;MACtEuC,OAAO,CAACE,WAAW,CAAC,GAAG,IAAI;MAC3BT,kBAAkB,CAACK,cAAc,IAAI,wBAAwBG,MAAM,IAAIhB,UAAU,CAAChC,aAAa,CAAC,GAAG,CAAC;IACrG;EACD;EAiDO,SAAS2B,sBAAsBA,CAAC3B,aAAsC,EAAE6C,cAAuB,EAAQ;IAC7GD,iBAAiB,CAAC5C,aAAa,EAAE6C,cAAc,EAAE,IAAI,CAAC;EACvD;;EAEA;AACA;AACA;AACA;AACA;AACA;EACO,SAAStB,oBAAoBA,CAACvB,aAAsC,EAAE6C,cAAuB,EAAQ;IAC3GD,iBAAiB,CAAC5C,aAAa,EAAE6C,cAAc,EAAE,KAAK,CAAC;EACxD;EAAC,IAAAK,SAAA;IAAAC,UAAA;EAAA;EAAAD,SAAA,CAAAlB,UAAA,GAAAA,UAAA;EAAAkB,SAAA,CAAA9D,wBAAA,GAAAA,wBAAA;EAAA8D,SAAA,CAAAvB,sBAAA,GAAAA,sBAAA;EAAAuB,SAAA,CAAA3B,oBAAA,GAAAA,oBAAA;EAAA,OAAA2B,SAAA;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PerformanceUtils.js","names":["sap","ui","define","Container","EventHub","utils","setupPerformanceTracking","layout","setupTracking","Promise","resolve","containers","getItems","forEach","container","getContent","panel","attachEventOnce","containerName","getMetadata","getName","heroElement","availableElements","filter","availableElement","control","getVisible","name","_temp2","markHomePageEnd","then","e","reject","visibleElements","layoutElement","find","markHomePageStart","_temp","length","isHomeApp","_isHomeApp2","recordElementLoadEnd","homePageLoadEndMarker","emit","_isHomeApp","recordElementLoadStart","homePageLoadStartMarker","getServiceAsync","getCurrentApplication","homePage","UIElements","Object","keys","map","elementName","startMarked","endMarked","findUIElement","setPerformanceMark","markName","bUseUniqueMark","bUseLastMark","recordElementLoad","customMarkName","isStartMaker","element","marker","controlFlag","__exports","__esModule"],"sources":["PerformanceUtils.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport Container from \"sap/ushell/Container\";\nimport EventHub from \"sap/ushell/EventHub\";\nimport AppLifeCycle from \"sap/ushell/services/AppLifeCycle\";\nimport utils from \"sap/ushell/utils\";\nimport BaseContainer from \"../BaseContainer\";\nimport Layout from \"../Layout\";\n\ntype ElementInfo = {\n\tname: keyof typeof UIElements;\n\tstartMarked: boolean;\n\tendMarked: boolean;\n\tcontrol?: Layout | BaseContainer;\n};\n\nconst layoutElement = \"sap.cux.home.Layout\";\nconst homePageLoadStartMarker = \"FLP-TTI-Homepage-Custom-Start\";\nconst homePageLoadEndMarker = \"FLP-TTI-Homepage-Custom\";\nlet setupTracking = false;\n\n/**\n * An object representing the UI elements and their corresponding marker names.\n *\n */\nexport const UIElements = {\n\t\"sap.cux.home.AppsContainer\": \"Apps\",\n\t\"sap.cux.home.TilesContainer\": \"Insights_Tiles\",\n\t\"sap.cux.home.CardsContainer\": \"Insights_Cards\",\n\t\"sap.cux.home.PagesContainer\": \"Pages\",\n\t\"sap.cux.home.NewsContainer\": \"News\",\n\t\"sap.cux.home.ToDosContainer\": \"ToDos\",\n\t[layoutElement]: \"Layout\"\n};\n\nlet availableElements: ElementInfo[] = Object.keys(UIElements).map((elementName) => ({\n\tname: elementName as keyof typeof UIElements,\n\tstartMarked: false,\n\tendMarked: false\n}));\n\n/**\n * Checks if the current application is the home app.\n *\n * @returns {Promise<boolean>} - A promise that resolves to true if the current application is the home app, otherwise false.\n */\nasync function isHomeApp(): Promise<boolean> {\n\tconst container = await Container.getServiceAsync<AppLifeCycle>(\"AppLifeCycle\");\n\treturn container.getCurrentApplication()?.homePage as boolean;\n}\n\n/**\n * Records the start of the homepage load.\n *\n * @returns {Promise<void>} - A promise that resolves when the start of the homepage load is recorded.\n */\nasync function markHomePageStart(): Promise<void> {\n\tif (await isHomeApp()) {\n\t\trecordElementLoadStart(layoutElement, homePageLoadStartMarker);\n\t}\n}\n\n/**\n * Records the end of the homepage load.\n *\n * @returns {Promise<void>} - A promise that resolves when the end of the homepage load is recorded.\n */\nasync function markHomePageEnd(): Promise<void> {\n\tif (await isHomeApp()) {\n\t\trecordElementLoadEnd(layoutElement, homePageLoadEndMarker);\n\t\tEventHub.emit(\"CustomHomeRendered\");\n\t}\n}\n\n/**\n * Finds the UI element information by container name.\n *\n * @param {keyof typeof UIElements} containerName - The name of the container.\n * @returns {ElementInfo | undefined} - The element information if found, otherwise undefined.\n */\nfunction findUIElement(containerName: keyof typeof UIElements): ElementInfo | undefined {\n\treturn availableElements.find((heroElement) => heroElement.name === containerName);\n}\n\n/**\n * Sets a performance mark with the given name.\n *\n * @param {string} markName - The name of the performance mark.\n */\nfunction setPerformanceMark(markName: string): void {\n\tutils.setPerformanceMark(markName, {\n\t\tbUseUniqueMark: true,\n\t\tbUseLastMark: true\n\t});\n}\n\n/**\n * Records the load of an element.\n *\n * @param {keyof typeof UIElements} containerName - The name of the container.\n * @param {string} [customMarkName] - The custom mark name.\n * @param {boolean} [isStartMaker] - Indicates if it is a start marker.\n */\nfunction recordElementLoad(containerName: keyof typeof UIElements, customMarkName?: string, isStartMaker?: boolean): void {\n\tconst element = findUIElement(containerName);\n\tconst marker = isStartMaker ? \"Start\" : \"End\";\n\tconst controlFlag = isStartMaker ? \"startMarked\" : \"endMarked\";\n\n\tif (element && !element[controlFlag] && element.control?.getVisible()) {\n\t\telement[controlFlag] = true;\n\t\tsetPerformanceMark(customMarkName || `FLP-Homepage-Section-${marker}[${UIElements[containerName]}]`);\n\t}\n}\n\n/**\n * Sets up performance tracking for the given layout.\n *\n * @param {Layout} layout - The layout object containing the UI elements.\n */\nexport async function setupPerformanceTracking(layout: Layout): Promise<void> {\n\tif (!layout || setupTracking) return;\n\n\tconst containers = layout.getItems();\n\tcontainers.forEach((container) => {\n\t\tcontainer.getContent().forEach((panel) => {\n\t\t\tpanel.attachEventOnce(\"loaded\", async () => {\n\t\t\t\tconst containerName = container.getMetadata().getName();\n\t\t\t\tconst heroElement = availableElements.filter((availableElement) => availableElement.control?.getVisible())[0].name;\n\n\t\t\t\t// If the hero element is loaded, mark the end of the homepage load\n\t\t\t\tif (containerName === heroElement) {\n\t\t\t\t\tawait markHomePageEnd();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t});\n\n\tconst visibleElements = availableElements.filter((availableElement) => {\n\t\tavailableElement.control =\n\t\t\tavailableElement.name === layoutElement\n\t\t\t\t? layout\n\t\t\t\t: containers.find((container) => container.getMetadata().getName() === availableElement.name);\n\t\treturn availableElement.control?.getVisible();\n\t});\n\n\t// record homepage start\n\tsetupTracking = true;\n\tawait markHomePageStart();\n\n\t// record homepage end in case of no visible elements except layout\n\tif (visibleElements.length === 1) {\n\t\tawait markHomePageEnd();\n\t}\n}\n\n/**\n * Records the start of the element load.\n *\n * @param {keyof typeof UIElements} containerName - The name of the container.\n * @param {string} [customMarkName] - The custom mark name.\n */\nexport function recordElementLoadStart(containerName: keyof typeof UIElements, customMarkName?: string): void {\n\trecordElementLoad(containerName, customMarkName, true);\n}\n\n/**\n * Records the end of the element load.\n *\n * @param {keyof typeof UIElements} containerName - The name of the container.\n * @param {string} [customMarkName] - The custom mark name.\n */\nexport function recordElementLoadEnd(containerName: keyof typeof UIElements, customMarkName?: string): void {\n\trecordElementLoad(containerName, customMarkName, false);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,gFAAAC,SAAA,EAAAC,QAAA,EAAAC,KAAA;EAAA;;EAoHA;AACA;AACA;AACA;AACA;EAJA,MAKsBC,wBAAwB,YAAAA,CAACC,MAAc;IAAA,IAAiB;MAC7E,IAAI,CAACA,MAAM,IAAIC,aAAa,EAAE,OAAAC,OAAA,CAAAC,OAA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AK;IAC7C,MAAMG,WAAW,GAAGH,YAAY,GAAG,aAAa,GAAG,WAAW;IAE9D,IAAIC,OAAO,IAAI,CAACA,OAAO,CAACE,WAAW,CAAC,IAAIF,OAAO,CAACxC,OAAO,EAAEC,UAAU,CAAC,CAAC,EAAE;MACtEuC,OAAO,CAACE,WAAW,CAAC,GAAG,IAAI;MAC3BT,kBAAkB,CAACK,cAAc,IAAI,wBAAwBG,MAAM,IAAIhB,UAAU,CAAChC,aAAa,CAAC,GAAG,CAAC;IACrG;EACD;EAiDO,SAAS2B,sBAAsBA,CAAC3B,aAAsC,EAAE6C,cAAuB,EAAQ;IAC7GD,iBAAiB,CAAC5C,aAAa,EAAE6C,cAAc,EAAE,IAAI,CAAC;EACvD;;EAEA;AACA;AACA;AACA;AACA;AACA;EACO,SAAStB,oBAAoBA,CAACvB,aAAsC,EAAE6C,cAAuB,EAAQ;IAC3GD,iBAAiB,CAAC5C,aAAa,EAAE6C,cAAc,EAAE,KAAK,CAAC;EACxD;EAAC,IAAAK,SAAA;IAAAC,UAAA;EAAA;EAAAD,SAAA,CAAAlB,UAAA,GAAAA,UAAA;EAAAkB,SAAA,CAAA9D,wBAAA,GAAAA,wBAAA;EAAA8D,SAAA,CAAAvB,sBAAA,GAAAA,sBAAA;EAAAuB,SAAA,CAAA3B,oBAAA,GAAAA,oBAAA;EAAA,OAAA2B,SAAA;AAAA","ignoreList":[]}
|
|
@@ -27,8 +27,10 @@ let setupTracking = false;
|
|
|
27
27
|
*/
|
|
28
28
|
export const UIElements = {
|
|
29
29
|
"sap.cux.home.AppsContainer": "Apps",
|
|
30
|
-
"sap.cux.home.
|
|
31
|
-
"sap.cux.home.
|
|
30
|
+
"sap.cux.home.TilesContainer": "Insights_Tiles",
|
|
31
|
+
"sap.cux.home.CardsContainer": "Insights_Cards",
|
|
32
|
+
"sap.cux.home.PagesContainer": "Pages",
|
|
33
|
+
"sap.cux.home.NewsContainer": "News",
|
|
32
34
|
"sap.cux.home.ToDosContainer": "ToDos",
|
|
33
35
|
[layoutElement]: "Layout"
|
|
34
36
|
};
|
|
@@ -4,122 +4,127 @@
|
|
|
4
4
|
-->
|
|
5
5
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:fesr="http://schemas.sap.com/sapui5/extension/sap.ui.core.FESR/1">
|
|
6
6
|
<VBox id="container" height="100%" renderType="Bare">
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<VBox id="sampleQueriesContainer" renderType="Bare" visible="{= ${/searchStatus} === 'idle' }" class="sapUiTinyMarginBottom">
|
|
40
|
-
<HBox id="sampleQueriesHeader" alignItems="Center" renderType="Bare">
|
|
41
|
-
<core:Icon src="sap-icon://sys-help" color="Neutral" size="0.875rem" class="sapUiTinyMarginEnd" />
|
|
42
|
-
<Label id="sampleQueries" text="{i18n>sampleQueries}" />
|
|
7
|
+
<ScrollContainer id="wrapperContainer" vertical="true" class="wrapperContainer">
|
|
8
|
+
<!-- HEADER CONTENT -->
|
|
9
|
+
<VBox id="headerContent" class="headerContent" backgroundDesign="Solid">
|
|
10
|
+
<Text id="appsAdditionDescription" text="{i18n>addAppsSearchDescription}" />
|
|
11
|
+
<HBox id="searchContainer" class="sapUiTinyMarginTop" renderType="Bare" justifyContent="SpaceBetween" gap="0.5rem">
|
|
12
|
+
<TextArea
|
|
13
|
+
id="searchTextArea"
|
|
14
|
+
rows="2"
|
|
15
|
+
width="100%"
|
|
16
|
+
maxLength="2000"
|
|
17
|
+
valueLiveUpdate="true"
|
|
18
|
+
showExceededText="true"
|
|
19
|
+
liveChange=".onSearchTextAreaLiveChange"
|
|
20
|
+
placeholder="{i18n>searchPlaceholder}"
|
|
21
|
+
enabled="{= ${/searchStatus} !== 'searching' }"
|
|
22
|
+
value="{ path: '/query', mode: 'TwoWay' }"
|
|
23
|
+
/>
|
|
24
|
+
<Button
|
|
25
|
+
id="goBtn"
|
|
26
|
+
text="{i18n>goButton}"
|
|
27
|
+
enabled="{= ${/searchStatus} !== 'searching' && !${/invalidQuery} }"
|
|
28
|
+
press=".onPressGo"
|
|
29
|
+
fesr:press="myh:apps:go"
|
|
30
|
+
/>
|
|
31
|
+
<Button
|
|
32
|
+
id="clearAllBtn"
|
|
33
|
+
text="{i18n>clearAllButton}"
|
|
34
|
+
enabled="{= ${/searchStatus} !== 'searching' && ${/query/length} > 0 }"
|
|
35
|
+
press=".resetPanel"
|
|
36
|
+
fesr:press="myh:apps:clearAll"
|
|
37
|
+
type="Transparent"
|
|
38
|
+
/>
|
|
43
39
|
</HBox>
|
|
44
40
|
<VBox
|
|
45
|
-
id="
|
|
41
|
+
id="sampleQueriesContainer"
|
|
46
42
|
renderType="Bare"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
class="sapUiTinyMarginTop"
|
|
43
|
+
visible="{= ${/searchStatus} === 'idle' }"
|
|
44
|
+
class="sapUiTinyMarginBottom"
|
|
50
45
|
>
|
|
51
|
-
<HBox id="
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
htmlText="<em style='color:var(--sapContent_LabelColor)'>{index}.</em>"
|
|
55
|
-
class="sapUiTinyMarginTop sapUiTinyMarginEnd"
|
|
56
|
-
/>
|
|
57
|
-
<FormattedText
|
|
58
|
-
id="query"
|
|
59
|
-
htmlText="<em style='color:var(--sapContent_LabelColor)'>{query}</em>"
|
|
60
|
-
class="sapUiTinyMarginTop"
|
|
61
|
-
/>
|
|
46
|
+
<HBox id="sampleQueriesHeader" alignItems="Center" renderType="Bare">
|
|
47
|
+
<core:Icon src="sap-icon://sys-help" color="Neutral" size="0.875rem" class="sapUiTinyMarginEnd" />
|
|
48
|
+
<Label id="sampleQueries" text="{i18n>sampleQueries}" />
|
|
62
49
|
</HBox>
|
|
50
|
+
<VBox
|
|
51
|
+
id="sampleQueriesList"
|
|
52
|
+
renderType="Bare"
|
|
53
|
+
items="{/sampleQueries}"
|
|
54
|
+
justifyContent="SpaceBetween"
|
|
55
|
+
class="sapUiTinyMarginTop"
|
|
56
|
+
>
|
|
57
|
+
<HBox id="sampleQuery" renderType="Bare">
|
|
58
|
+
<FormattedText
|
|
59
|
+
id="number"
|
|
60
|
+
htmlText="<em style='color:var(--sapContent_LabelColor)'>{index}.</em>"
|
|
61
|
+
class="sapUiTinyMarginTop sapUiTinyMarginEnd"
|
|
62
|
+
/>
|
|
63
|
+
<FormattedText
|
|
64
|
+
id="query"
|
|
65
|
+
htmlText="<em style='color:var(--sapContent_LabelColor)'>{query}</em>"
|
|
66
|
+
class="sapUiTinyMarginTop"
|
|
67
|
+
/>
|
|
68
|
+
</HBox>
|
|
69
|
+
</VBox>
|
|
63
70
|
</VBox>
|
|
64
71
|
</VBox>
|
|
65
|
-
</VBox>
|
|
66
72
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/>
|
|
77
|
-
<HBox
|
|
78
|
-
id="footer"
|
|
79
|
-
renderType="Bare"
|
|
80
|
-
class="footer"
|
|
81
|
-
alignItems="Center"
|
|
82
|
-
visible="{= !${/hasError} && ${/searchStatus} === 'complete' }"
|
|
83
|
-
>
|
|
84
|
-
<Label id="createdwithAI" text="{/aiPolicyText}" class="sapUiTinyMarginEnd" />
|
|
85
|
-
<ToggleButton
|
|
86
|
-
id="thumbsUp"
|
|
87
|
-
icon="sap-icon://thumb-up"
|
|
88
|
-
type="Transparent"
|
|
89
|
-
tooltip="{i18n>thumbsUpButton}"
|
|
90
|
-
pressed="{= ${/feedback/thumbsUp} }"
|
|
91
|
-
press=".sendFeedback('thumbsUp')"
|
|
92
|
-
fesr:press="myh:apps:thumbsUp"
|
|
93
|
-
/>
|
|
94
|
-
<ToggleButton
|
|
95
|
-
id="thumbsDown"
|
|
96
|
-
icon="sap-icon://thumb-down"
|
|
97
|
-
type="Transparent"
|
|
98
|
-
tooltip="{i18n>thumbsDownButton}"
|
|
99
|
-
pressed="{= ${/feedback/thumbsDown} }"
|
|
100
|
-
press=".sendFeedback('thumbsDown')"
|
|
101
|
-
fesr:press="myh:apps:thumbsDown"
|
|
102
|
-
class="sapUiTinyMarginBegin"
|
|
73
|
+
<!-- CONTENT AREA -->
|
|
74
|
+
<VBox id="resultContent" renderType="Bare">
|
|
75
|
+
<!-- RESULT AREA HEADER -->
|
|
76
|
+
<VBox id="resultHeader" renderType="Bare" class="sapUiTinyMarginTop sapUiSmallMarginBeginEnd sapUiSmallMarginBottom">
|
|
77
|
+
<HBox renderType="Bare" alignItems="Center" justifyContent="SpaceBetween" width="100%">
|
|
78
|
+
<Title
|
|
79
|
+
id="resultTitle"
|
|
80
|
+
text="{= ${/suggestedAppsCount} > 0 ? ${i18n>resultTitle} + ' (' + ${/suggestedAppsCount} + ')' : ${i18n>resultTitle} }"
|
|
81
|
+
titleStyle="H6"
|
|
103
82
|
/>
|
|
83
|
+
<HBox
|
|
84
|
+
id="footer"
|
|
85
|
+
renderType="Bare"
|
|
86
|
+
class="footer"
|
|
87
|
+
alignItems="Center"
|
|
88
|
+
visible="{= !${/hasError} && ${/searchStatus} === 'complete' }"
|
|
89
|
+
>
|
|
90
|
+
<Label id="createdwithAI" text="{/aiPolicyText}" class="sapUiTinyMarginEnd" />
|
|
91
|
+
<ToggleButton
|
|
92
|
+
id="thumbsUp"
|
|
93
|
+
icon="sap-icon://thumb-up"
|
|
94
|
+
type="Transparent"
|
|
95
|
+
tooltip="{i18n>thumbsUpButton}"
|
|
96
|
+
pressed="{= ${/feedback/thumbsUp} }"
|
|
97
|
+
press=".sendFeedback('thumbsUp')"
|
|
98
|
+
fesr:press="myh:apps:thumbsUp"
|
|
99
|
+
/>
|
|
100
|
+
<ToggleButton
|
|
101
|
+
id="thumbsDown"
|
|
102
|
+
icon="sap-icon://thumb-down"
|
|
103
|
+
type="Transparent"
|
|
104
|
+
tooltip="{i18n>thumbsDownButton}"
|
|
105
|
+
pressed="{= ${/feedback/thumbsDown} }"
|
|
106
|
+
press=".sendFeedback('thumbsDown')"
|
|
107
|
+
fesr:press="myh:apps:thumbsDown"
|
|
108
|
+
class="sapUiTinyMarginBegin"
|
|
109
|
+
/>
|
|
110
|
+
</HBox>
|
|
104
111
|
</HBox>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
</VBox>
|
|
112
|
+
<Text
|
|
113
|
+
id="resultDescription"
|
|
114
|
+
text="{i18n>resultDescription}"
|
|
115
|
+
visible="{= !${/hasError} && ${/searchStatus} === 'complete' }"
|
|
116
|
+
/>
|
|
117
|
+
<MessageStrip
|
|
118
|
+
id="searchingMessage"
|
|
119
|
+
type="Information"
|
|
120
|
+
showIcon="true"
|
|
121
|
+
class="sapUiTinyMarginTop"
|
|
122
|
+
text="{i18n>searchingMessage}"
|
|
123
|
+
visible="{= ${/searchStatus} === 'searching' }"
|
|
124
|
+
/>
|
|
125
|
+
</VBox>
|
|
120
126
|
|
|
121
|
-
|
|
122
|
-
<ScrollContainer id="resultsContainer" vertical="true" class="suggestionListContainer">
|
|
127
|
+
<!-- SUGGESTION LIST CONTAINER -->
|
|
123
128
|
<!-- SEARCHING ANIMATION -->
|
|
124
129
|
<VBox
|
|
125
130
|
id="lodingAnimationContainer"
|
|
@@ -142,55 +147,54 @@
|
|
|
142
147
|
selectionChange=".onListSelectionChange"
|
|
143
148
|
class="appSuggestionList"
|
|
144
149
|
/>
|
|
145
|
-
</ScrollContainer>
|
|
146
150
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
class="illustratedMessageContainer"
|
|
154
|
-
visible="{= ${/searchStatus} === 'idle' }"
|
|
155
|
-
>
|
|
156
|
-
<!-- BEFORE SEARCH ILLUSTRATION -->
|
|
157
|
-
<IllustratedMessage
|
|
158
|
-
id="beforeSearch"
|
|
159
|
-
illustrationSize="Medium"
|
|
160
|
-
src="sap-illustration://SimpleMagnifier"
|
|
161
|
-
description="{i18n>beforeSearchDescription}"
|
|
151
|
+
<!-- SEARCH ILLUSTRATION CONTAINER -->
|
|
152
|
+
<VBox
|
|
153
|
+
id="beforeSearchContainer"
|
|
154
|
+
renderType="Bare"
|
|
155
|
+
justifyContent="Center"
|
|
156
|
+
class="illustratedMessageContainer"
|
|
162
157
|
visible="{= ${/searchStatus} === 'idle' }"
|
|
163
|
-
|
|
164
|
-
|
|
158
|
+
>
|
|
159
|
+
<!-- BEFORE SEARCH ILLUSTRATION -->
|
|
160
|
+
<IllustratedMessage
|
|
161
|
+
id="beforeSearch"
|
|
162
|
+
illustrationSize="Dot"
|
|
163
|
+
src="sap-illustration://SimpleMagnifier"
|
|
164
|
+
description="{i18n>beforeSearchDescription}"
|
|
165
|
+
visible="{= ${/searchStatus} === 'idle' }"
|
|
166
|
+
/>
|
|
167
|
+
</VBox>
|
|
165
168
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
169
|
+
<!-- GENERIC ERROR CONTAINER -->
|
|
170
|
+
<VBox
|
|
171
|
+
id="errorContainer"
|
|
172
|
+
renderType="Bare"
|
|
173
|
+
height="29.3125rem"
|
|
174
|
+
class="illustratedMessageContainer"
|
|
175
|
+
visible="{/hasError}"
|
|
176
|
+
justifyContent="Center"
|
|
177
|
+
>
|
|
178
|
+
<!-- NO RESULTS FOUND -->
|
|
179
|
+
<IllustratedMessage
|
|
180
|
+
id="noResultsFound"
|
|
181
|
+
illustrationSize="Medium"
|
|
182
|
+
title="{i18n>validationErrorTitle}"
|
|
183
|
+
description="{/errorDescription}"
|
|
184
|
+
src="sap-illustration://SimpleNotFoundMagnifier"
|
|
185
|
+
visible="{= ${/errorType} === 'noResultsFound' }"
|
|
186
|
+
/>
|
|
187
|
+
<!-- SERVICE INTERRUPTED -->
|
|
188
|
+
<IllustratedMessage
|
|
189
|
+
id="serviceError"
|
|
190
|
+
illustrationSize="Medium"
|
|
191
|
+
title="{i18n>serviceErrorTitle}"
|
|
192
|
+
description="{/errorDescription}"
|
|
193
|
+
illustrationType="sapIllus-SimpleConnection"
|
|
194
|
+
visible="{= ${/errorType} === 'serviceError' }"
|
|
195
|
+
/>
|
|
196
|
+
</VBox>
|
|
193
197
|
</VBox>
|
|
194
|
-
</
|
|
198
|
+
</ScrollContainer>
|
|
195
199
|
</VBox>
|
|
196
200
|
</core:FragmentDefinition>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare module "sap/cux/home/utils/placeholder/CardsPlaceholder" {
|
|
2
|
+
/*!
|
|
3
|
+
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
4
|
+
* * (c) Copyright 2009-2025 SAP SE. All rights reserved
|
|
5
|
+
*/
|
|
6
|
+
function getCardsPlaceholder(): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=CardsPlaceholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardsPlaceholder.d.ts","sourceRoot":"../../../../../../..","sources":["src/sap/cux/home/utils/placeholder/CardsPlaceholder.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,iDAAiD,CAAC;IACjE;;;OAGG;IACH,SAAgB,mBAAmB,IAAI,MAAM,CAwT5C;CAEA"}
|
|
@@ -5,84 +5,10 @@
|
|
|
5
5
|
sap.ui.define([], function () {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
function getCardsPlaceholder() {
|
|
9
9
|
return `
|
|
10
10
|
<div class="plText sapMGTLoadingShimmer plTextWeightL plTextWidthM" style="width: 225px;"></div>
|
|
11
11
|
<div class='plVerticalLayout plVerticalContent plTextAlignStart plVerticalAlignTop plContent plResponsivePadding' style="background-color:transparent">
|
|
12
|
-
<div class="pInsightsTilesContainer">
|
|
13
|
-
<div class="plOVPCard pInsightsTiles" style="background-color:white">
|
|
14
|
-
<div class="plOVPCardHeader">
|
|
15
|
-
<div class="plVerticalLayout plVerticalContent plTextAlignStart plVerticalAlignTop">
|
|
16
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
17
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 100px;"></div>
|
|
18
|
-
<div class="plHorizontalLayout plHorizontalContent plTextAlignStart plVerticalAlignTop">
|
|
19
|
-
<div class="plAvatar sapMGTLoadingShimmer plAvatarSizeM plAvatarShapeSquare plOVPCardHeaderAvatar" style="width: 120px; height: 40px; background-size: 900px 900px;"></div>
|
|
20
|
-
</div>
|
|
21
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="plOVPCard pInsightsTiles" style="background-color:white">
|
|
26
|
-
<div class="plOVPCardHeader">
|
|
27
|
-
<div class="plVerticalLayout plVerticalContent plTextAlignStart plVerticalAlignTop">
|
|
28
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
29
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 100px;"></div>
|
|
30
|
-
<div class="plHorizontalLayout plHorizontalContent plTextAlignStart plVerticalAlignTop">
|
|
31
|
-
<div class="plAvatar sapMGTLoadingShimmer plAvatarSizeM plAvatarShapeSquare plOVPCardHeaderAvatar" style="width: 120px; height: 40px; background-size: 900px 900px;"></div>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="plOVPCard pInsightsTiles" style="background-color:white">
|
|
38
|
-
<div class="plOVPCardHeader">
|
|
39
|
-
<div class="plVerticalLayout plVerticalContent plTextAlignStart plVerticalAlignTop">
|
|
40
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
41
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 100px;"></div>
|
|
42
|
-
<div class="plHorizontalLayout plHorizontalContent plTextAlignStart plVerticalAlignTop">
|
|
43
|
-
<div class="plAvatar sapMGTLoadingShimmer plAvatarSizeM plAvatarShapeSquare plOVPCardHeaderAvatar" style="width: 120px; height: 40px; background-size: 900px 900px;"></div>
|
|
44
|
-
</div>
|
|
45
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="plOVPCard pInsightsTiles" style="background-color:white">
|
|
50
|
-
<div class="plOVPCardHeader">
|
|
51
|
-
<div class="plVerticalLayout plVerticalContent plTextAlignStart plVerticalAlignTop">
|
|
52
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
53
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 100px;"></div>
|
|
54
|
-
<div class="plHorizontalLayout plHorizontalContent plTextAlignStart plVerticalAlignTop">
|
|
55
|
-
<div class="plAvatar sapMGTLoadingShimmer plAvatarSizeM plAvatarShapeSquare plOVPCardHeaderAvatar" style="width: 120px; height: 40px; background-size: 900px 900px;"></div>
|
|
56
|
-
</div>
|
|
57
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="plOVPCard pInsightsTiles" style="background-color:white">
|
|
62
|
-
<div class="plOVPCardHeader">
|
|
63
|
-
<div class="plVerticalLayout plVerticalContent plTextAlignStart plVerticalAlignTop">
|
|
64
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
65
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 100px;"></div>
|
|
66
|
-
<div class="plHorizontalLayout plHorizontalContent plTextAlignStart plVerticalAlignTop">
|
|
67
|
-
<div class="plAvatar sapMGTLoadingShimmer plAvatarSizeM plAvatarShapeSquare plOVPCardHeaderAvatar" style="width: 120px; height: 40px; background-size: 900px 900px;"></div>
|
|
68
|
-
</div>
|
|
69
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
<div class="plOVPCard pInsightsTiles" style="background-color:white">
|
|
74
|
-
<div class="plOVPCardHeader">
|
|
75
|
-
<div class="plVerticalLayout plVerticalContent plTextAlignStart plVerticalAlignTop">
|
|
76
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
77
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 100px;"></div>
|
|
78
|
-
<div class="plHorizontalLayout plHorizontalContent plTextAlignStart plVerticalAlignTop">
|
|
79
|
-
<div class="plAvatar sapMGTLoadingShimmer plAvatarSizeM plAvatarShapeSquare plOVPCardHeaderAvatar" style="width: 120px; height: 40px; background-size: 900px 900px;"></div>
|
|
80
|
-
</div>
|
|
81
|
-
<div class="plText sapMGTLoadingShimmer plTextWeightM plTextWidthM plOVPCardHeaderText" style="width: 80px;"></div>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
12
|
<div class="plOVPCardContainer">
|
|
87
13
|
<div class="plOVPCard plOVPCardVersion4 OVPContentCard5 plSmallestVisibleSizeS" style="background-color:white">
|
|
88
14
|
<div class="plOVPCardHeader">
|
|
@@ -395,7 +321,7 @@ sap.ui.define([], function () {
|
|
|
395
321
|
var __exports = {
|
|
396
322
|
__esModule: true
|
|
397
323
|
};
|
|
398
|
-
__exports.
|
|
324
|
+
__exports.getCardsPlaceholder = getCardsPlaceholder;
|
|
399
325
|
return __exports;
|
|
400
326
|
});
|
|
401
|
-
//# sourceMappingURL=
|
|
327
|
+
//# sourceMappingURL=CardsPlaceholder.js.map
|