@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
3
|
* * (c) Copyright 2009-2025 SAP SE. All rights reserved
|
|
4
4
|
*/
|
|
5
|
-
sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLayoutData", "sap/m/Button", "sap/m/CustomListItem", "sap/m/Dialog", "sap/m/GenericTile", "sap/m/HBox", "sap/m/HeaderContainer", "sap/m/IllustratedMessage", "sap/m/IllustratedMessageSize", "sap/m/IllustratedMessageType", "sap/m/Label", "sap/m/List", "sap/m/ObjectIdentifier", "sap/m/Title", "sap/m/VBox", "sap/m/library", "sap/ui/core/EventBus", "sap/ui/core/Icon", "sap/ui/core/Lib", "sap/ui/model/json/JSONModel", "sap/ushell/Config", "sap/ushell/Container", "sap/ushell/api/S4MyHome", "./BasePanel", "./MenuItem", "./utils/Accessibility", "./utils/AppManager", "./utils/Constants", "./utils/DataFormatUtils", "./utils/Device", "./utils/DragDropUtils", "./utils/FESRUtil", "./utils/InsightsUtils"], function (Log, GridContainer, GridContainerItemLayoutData, Button, CustomListItem, Dialog, GenericTile, HBox, HeaderContainer, IllustratedMessage, IllustratedMessageSize, IllustratedMessageType, Label, List, ObjectIdentifier, Title, VBox, sap_m_library, EventBus, Icon, Lib, JSONModel, Config, Container, S4MyHome, __BasePanel, __MenuItem, ___utils_Accessibility, __AppManager, ___utils_Constants, ___utils_DataFormatUtils, ___utils_Device, ___utils_DragDropUtils, ___utils_FESRUtil, ___utils_InsightsUtils) {
|
|
5
|
+
sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLayoutData", "sap/m/Button", "sap/m/CustomListItem", "sap/m/Dialog", "sap/m/GenericTile", "sap/m/HBox", "sap/m/HeaderContainer", "sap/m/IllustratedMessage", "sap/m/IllustratedMessageSize", "sap/m/IllustratedMessageType", "sap/m/Label", "sap/m/List", "sap/m/ObjectIdentifier", "sap/m/Title", "sap/m/VBox", "sap/m/library", "sap/ui/core/EventBus", "sap/ui/core/Icon", "sap/ui/core/Lib", "sap/ui/model/json/JSONModel", "sap/ushell/Config", "sap/ushell/Container", "sap/ushell/api/S4MyHome", "./BasePanel", "./ErrorPanel", "./MenuItem", "./utils/Accessibility", "./utils/AppManager", "./utils/Constants", "./utils/DataFormatUtils", "./utils/Device", "./utils/DragDropUtils", "./utils/FESRUtil", "./utils/InsightsUtils"], function (Log, GridContainer, GridContainerItemLayoutData, Button, CustomListItem, Dialog, GenericTile, HBox, HeaderContainer, IllustratedMessage, IllustratedMessageSize, IllustratedMessageType, Label, List, ObjectIdentifier, Title, VBox, sap_m_library, EventBus, Icon, Lib, JSONModel, Config, Container, S4MyHome, __BasePanel, __ErrorPanel, __MenuItem, ___utils_Accessibility, __AppManager, ___utils_Constants, ___utils_DataFormatUtils, ___utils_Device, ___utils_DragDropUtils, ___utils_FESRUtil, ___utils_InsightsUtils) {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
8
|
function _interopRequireDefault(obj) {
|
|
@@ -33,6 +33,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
33
33
|
}
|
|
34
34
|
const LoadState = sap_m_library["LoadState"];
|
|
35
35
|
const BasePanel = _interopRequireDefault(__BasePanel);
|
|
36
|
+
const ErrorPanel = _interopRequireDefault(__ErrorPanel);
|
|
36
37
|
const MenuItem = _interopRequireDefault(__MenuItem);
|
|
37
38
|
const checkPanelExists = ___utils_Accessibility["checkPanelExists"];
|
|
38
39
|
const AppManager = _interopRequireDefault(__AppManager);
|
|
@@ -50,8 +51,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
50
51
|
const addFESRSemanticStepName = ___utils_FESRUtil["addFESRSemanticStepName"];
|
|
51
52
|
const FESR_EVENTS = ___utils_FESRUtil["FESR_EVENTS"];
|
|
52
53
|
const FESRNavigationSource = ___utils_FESRUtil["FESRNavigationSource"];
|
|
53
|
-
const
|
|
54
|
-
const createShowMoreMenuItem = ___utils_InsightsUtils["createShowMoreMenuItem"];
|
|
54
|
+
const getAssociatedFullScreenButton = ___utils_InsightsUtils["getAssociatedFullScreenButton"];
|
|
55
55
|
const getAssociatedFullScreenMenuItem = ___utils_InsightsUtils["getAssociatedFullScreenMenuItem"];
|
|
56
56
|
const sortMenuItems = ___utils_InsightsUtils["sortMenuItems"];
|
|
57
57
|
var tilesMenuItems = /*#__PURE__*/function (tilesMenuItems) {
|
|
@@ -60,22 +60,20 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
60
60
|
tilesMenuItems["EDIT_TILES"] = "tiles-editTiles";
|
|
61
61
|
return tilesMenuItems;
|
|
62
62
|
}(tilesMenuItems || {});
|
|
63
|
-
var tilesContainerMenuItems = /*#__PURE__*/function (tilesContainerMenuItems) {
|
|
64
|
-
tilesContainerMenuItems["REFRESH"] = "container-tiles-refresh";
|
|
65
|
-
tilesContainerMenuItems["ADD_APPS"] = "container-tiles-addSmartApps";
|
|
66
|
-
tilesContainerMenuItems["EDIT_TILES"] = "container-tiles-editTiles";
|
|
67
|
-
tilesContainerMenuItems["SHOW_MORE"] = "tilesContainerFullScreenMenuItem";
|
|
68
|
-
return tilesContainerMenuItems;
|
|
69
|
-
}(tilesContainerMenuItems || {});
|
|
70
63
|
var tilesActionButtons = /*#__PURE__*/function (tilesActionButtons) {
|
|
71
64
|
tilesActionButtons["ADD_TILES"] = "tiles-addTilesButton";
|
|
65
|
+
tilesActionButtons["SHOW_MORE"] = "fullScreen";
|
|
72
66
|
return tilesActionButtons;
|
|
73
67
|
}(tilesActionButtons || {});
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return
|
|
78
|
-
}(
|
|
68
|
+
var errorPanelMenuItems = /*#__PURE__*/function (errorPanelMenuItems) {
|
|
69
|
+
errorPanelMenuItems["ADD_APPS"] = "tiles-errorPanel-addSmartApps";
|
|
70
|
+
errorPanelMenuItems["EDIT_TILES"] = "tiles-errorPanel-editTiles";
|
|
71
|
+
return errorPanelMenuItems;
|
|
72
|
+
}(errorPanelMenuItems || {});
|
|
73
|
+
var errorPanelActionButtons = /*#__PURE__*/function (errorPanelActionButtons) {
|
|
74
|
+
errorPanelActionButtons["ADD_TILES"] = "tiles-errorPanel-addTilesButton";
|
|
75
|
+
return errorPanelActionButtons;
|
|
76
|
+
}(errorPanelActionButtons || {});
|
|
79
77
|
var DisplayFormat = /*#__PURE__*/function (DisplayFormat) {
|
|
80
78
|
DisplayFormat["Standard"] = "standard";
|
|
81
79
|
DisplayFormat["StandardWide"] = "standardWide";
|
|
@@ -175,10 +173,9 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
175
173
|
*/
|
|
176
174
|
constructor: function _constructor(id, settings) {
|
|
177
175
|
BasePanel.prototype.constructor.call(this, id, settings);
|
|
178
|
-
this._insightsSectionTitle = this._i18nBundle.getText("
|
|
176
|
+
this._insightsSectionTitle = this._i18nBundle.getText("insightsTiles");
|
|
179
177
|
this._addFromFavDialogId = `${this.getId()}-addFromFavDialog`;
|
|
180
178
|
this.aInsightsApps = [];
|
|
181
|
-
this._headerVisible = false;
|
|
182
179
|
},
|
|
183
180
|
/**
|
|
184
181
|
* Initializes the Tiles Panel.
|
|
@@ -200,6 +197,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
200
197
|
this._controlModel = new JSONModel(this._oData);
|
|
201
198
|
this.appManagerInstance = AppManager.getInstance();
|
|
202
199
|
this.setProperty("key", "tiles");
|
|
200
|
+
this.setProperty("title", this._i18nBundle.getText("insightsTiles"));
|
|
203
201
|
this.setProperty("enableFullScreen", true);
|
|
204
202
|
const refreshMenuItem = this._createRefreshMenuItem(tilesMenuItems.REFRESH, "tilesRefresh");
|
|
205
203
|
const editTilesMenuItem = this._createEditTilesMenuItem(tilesMenuItems.EDIT_TILES, "manageTiles");
|
|
@@ -234,6 +232,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
234
232
|
|
|
235
233
|
// Toggles the activity of tiles
|
|
236
234
|
this._toggleTileActivity();
|
|
235
|
+
//Add error panel to the parent container 'TilesContainer'
|
|
236
|
+
const parentContainer = this._getTilesContainer();
|
|
237
|
+
parentContainer?.addContent(this._errorPanel);
|
|
238
|
+
//set its visibility to false initially
|
|
239
|
+
this._errorPanel?.setVisible(false);
|
|
237
240
|
},
|
|
238
241
|
/**
|
|
239
242
|
* Toggles the activity of tiles on route change.
|
|
@@ -353,6 +356,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
353
356
|
_this3._showPlaceHolders();
|
|
354
357
|
if (checkPanelExists(container, appsConatinerlName, favAppPanelName)) {
|
|
355
358
|
const addFromFavAppMenuItem = _this3._createAddFromFavMenuItem(tilesMenuItems.ADD_APPS, "smartAppsDialog");
|
|
359
|
+
addFromFavAppMenuItem.setVisible(_showAddApps());
|
|
356
360
|
_this3.addAggregation("menuItems", addFromFavAppMenuItem);
|
|
357
361
|
_this3._sortMenuItems(sortedMenuItems);
|
|
358
362
|
}
|
|
@@ -362,6 +366,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
362
366
|
});
|
|
363
367
|
}, function (error) {
|
|
364
368
|
_this3.fireHandleHidePanel();
|
|
369
|
+
_this3._addErrorPanel();
|
|
365
370
|
});
|
|
366
371
|
}, function (_wasThrown, _result) {
|
|
367
372
|
_this3.fireEvent("loaded");
|
|
@@ -395,26 +400,52 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
395
400
|
refreshData: function _refreshData(refreshTiles = false) {
|
|
396
401
|
try {
|
|
397
402
|
const _this4 = this;
|
|
398
|
-
const panelName = _this4.getMetadata().getName();
|
|
399
403
|
return Promise.resolve(_this4.appManagerInstance.fetchInsightApps(true, _this4._insightsSectionTitle)).then(function (_this4$appManagerInst) {
|
|
400
404
|
function _temp6() {
|
|
401
405
|
_this4._clearPlaceHolders();
|
|
402
406
|
_this4._controlModel.setProperty("/tiles", _this4.aInsightsApps);
|
|
403
407
|
if (_this4.aInsightsApps?.length) {
|
|
408
|
+
_this4._errorPanel?.setVisible(false);
|
|
409
|
+
//loop through the contents of parent container of this panel i.e., TilesContainer
|
|
410
|
+
const parentContainer = _this4._getTilesContainer();
|
|
411
|
+
parentContainer?.getContent().forEach(content => {
|
|
412
|
+
if (content instanceof ErrorPanel) {
|
|
413
|
+
//remove the error panel from the TilesContainer
|
|
414
|
+
parentContainer.removeContent(content);
|
|
415
|
+
}
|
|
416
|
+
});
|
|
404
417
|
_this4.fireHandleUnhidePanel();
|
|
405
418
|
if (refreshTiles) {
|
|
406
419
|
const isMobile = _this4.getDeviceType() === DeviceType.Mobile;
|
|
407
|
-
const container = isMobile ? _this4.tilesMobileContainer : _this4.
|
|
420
|
+
const container = isMobile ? _this4.tilesMobileContainer : _this4.tilesDesktopContainer;
|
|
408
421
|
const sDefaultAggreName = container.getMetadata().getDefaultAggregationName();
|
|
409
422
|
const dynamicTiles = container.getAggregation(sDefaultAggreName) || [];
|
|
410
423
|
dynamicTiles.forEach(tiles => tiles.refresh?.());
|
|
411
424
|
}
|
|
412
|
-
_this4.
|
|
413
|
-
if
|
|
414
|
-
|
|
415
|
-
|
|
425
|
+
_this4.setProperty("title", `${_this4._i18nBundle?.getText("insightsTiles")} (${_this4.aInsightsApps.length})`);
|
|
426
|
+
//if the panel has been loaded and has tiles, update the visibility of header elements of the panel
|
|
427
|
+
_this4.getMenuItems().forEach(item => {
|
|
428
|
+
if (item.getId().includes(tilesMenuItems.REFRESH) || item.getId().includes(tilesMenuItems.EDIT_TILES) || item.getId().includes("showMore")) {
|
|
429
|
+
item.setVisible(true);
|
|
430
|
+
}
|
|
431
|
+
});
|
|
416
432
|
} else {
|
|
433
|
+
//if there are no tiles, hide the panel and show the error panel
|
|
434
|
+
_this4.setProperty("title", `${_this4._i18nBundle?.getText("insightsTiles")}`);
|
|
435
|
+
_this4.getMenuItems().forEach(item => {
|
|
436
|
+
if (item.getId().includes(tilesMenuItems.REFRESH) || item.getId().includes(tilesMenuItems.EDIT_TILES) || item.getId().includes("showMore")) {
|
|
437
|
+
item.setVisible(false);
|
|
438
|
+
}
|
|
439
|
+
});
|
|
417
440
|
_this4.fireHandleHidePanel();
|
|
441
|
+
_this4._addErrorPanel();
|
|
442
|
+
const layout = _this4._getTilesContainer()?._getLayout();
|
|
443
|
+
if (layout?.getProperty("expanded")) {
|
|
444
|
+
_this4.tilesContainer.addContent(_this4);
|
|
445
|
+
layout?.toggleFullScreen(_this4);
|
|
446
|
+
//remove the tiles panel from the tiles container
|
|
447
|
+
_this4.tilesContainer.removeContent(_this4);
|
|
448
|
+
}
|
|
418
449
|
}
|
|
419
450
|
}
|
|
420
451
|
_this4.aInsightsApps = _this4$appManagerInst;
|
|
@@ -432,6 +463,69 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
432
463
|
return Promise.reject(e);
|
|
433
464
|
}
|
|
434
465
|
},
|
|
466
|
+
/**
|
|
467
|
+
* Adds an error panel when there are no tiles available.
|
|
468
|
+
*
|
|
469
|
+
* @private
|
|
470
|
+
* @returns {void}
|
|
471
|
+
*/
|
|
472
|
+
_addErrorPanel: function _addErrorPanel() {
|
|
473
|
+
const _this5 = this;
|
|
474
|
+
const parentContainer = this._getTilesContainer();
|
|
475
|
+
//set the visibility of tiles panel to false
|
|
476
|
+
this.setVisible(false);
|
|
477
|
+
if (!this._errorPanel) {
|
|
478
|
+
this._errorPanel = new ErrorPanel(`${this.getId()}-errorTilesPanel`, {
|
|
479
|
+
additionalData: [new Button(`${this.getId()}-addInsightsTilesBtn`, {
|
|
480
|
+
text: this._i18nBundle.getText("appFinderLink"),
|
|
481
|
+
type: "Emphasized",
|
|
482
|
+
press: function () {
|
|
483
|
+
try {
|
|
484
|
+
const container = _this5._getTilesContainer();
|
|
485
|
+
const _temp7 = function () {
|
|
486
|
+
if (checkPanelExists(container, appsConatinerlName, favAppPanelName)) {
|
|
487
|
+
// Favorite App Panel is visible, proceed as usual
|
|
488
|
+
void _this5._handleAddFromFavApps();
|
|
489
|
+
} else {
|
|
490
|
+
// Favorite App Panel is NOT visible, navigate to App Finder
|
|
491
|
+
return Promise.resolve(_this5.navigateToAppFinder()).then(function () {});
|
|
492
|
+
}
|
|
493
|
+
}();
|
|
494
|
+
return Promise.resolve(_temp7 && _temp7.then ? _temp7.then(function () {}) : void 0);
|
|
495
|
+
} catch (e) {
|
|
496
|
+
return Promise.reject(e);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
})],
|
|
500
|
+
messageTitle: this._i18nBundle.getText("noAppsTitle"),
|
|
501
|
+
messageDescription: this._i18nBundle.getText("noInsightsTileMsg")
|
|
502
|
+
});
|
|
503
|
+
this._errorPanel.getData();
|
|
504
|
+
//Add the menu items and action buttons to the error panel
|
|
505
|
+
const editTilesMenuItem = this._createEditTilesMenuItem(errorPanelMenuItems.EDIT_TILES, "manageTiles");
|
|
506
|
+
const addFromFavAppMenuItem = this._createAddFromFavMenuItem(errorPanelMenuItems.ADD_APPS, "smartAppsDialog");
|
|
507
|
+
this._errorPanel.setProperty("enableSettings", true);
|
|
508
|
+
addFromFavAppMenuItem.setVisible(_showAddApps());
|
|
509
|
+
const menuItems = [editTilesMenuItem, addFromFavAppMenuItem];
|
|
510
|
+
menuItems.forEach(menuItem => this._errorPanel.addAggregation("menuItems", menuItem));
|
|
511
|
+
this._sortMenuItems(sortedMenuItems);
|
|
512
|
+
const addTilesButton = this._createAddTilesButton(errorPanelActionButtons.ADD_TILES, "addTiles");
|
|
513
|
+
const actionButtons = [addTilesButton];
|
|
514
|
+
actionButtons.forEach(actionButton => this._errorPanel.addAggregation("actionButtons", actionButton));
|
|
515
|
+
}
|
|
516
|
+
//Add the title to the error panel
|
|
517
|
+
this._errorPanel.setTitle(this._i18nBundle.getText("insightsTiles"));
|
|
518
|
+
|
|
519
|
+
//Add error panel to the parent container 'TilesContainer'
|
|
520
|
+
parentContainer.addAggregation("content", this._errorPanel);
|
|
521
|
+
this._errorPanel.setVisible(true);
|
|
522
|
+
|
|
523
|
+
//set the visibility of header elements of the error panel
|
|
524
|
+
this._errorPanel.getMenuItems().forEach(item => {
|
|
525
|
+
const itemVisibility = item.getId().includes(errorPanelMenuItems.ADD_APPS) || item.getId().includes(errorPanelMenuItems.EDIT_TILES) || item.getId().includes("settings");
|
|
526
|
+
item.setVisible(itemVisibility);
|
|
527
|
+
});
|
|
528
|
+
},
|
|
435
529
|
/**
|
|
436
530
|
* Generates the wrapper for the tiles container, if it doesn't already exist
|
|
437
531
|
*
|
|
@@ -480,17 +574,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
480
574
|
* @returns {sap.m.GridContainer} The generated tiles wrapper.
|
|
481
575
|
*/
|
|
482
576
|
_createWrapperFlexBox: function _createWrapperFlexBox() {
|
|
483
|
-
// Check if the
|
|
484
|
-
if (!this.
|
|
577
|
+
// Check if the tilesDesktopContainer already exists
|
|
578
|
+
if (!this.tilesDesktopContainer) {
|
|
485
579
|
// Create the GridContainer with required properties
|
|
486
|
-
this.
|
|
580
|
+
this.tilesDesktopContainer = new GridContainer(`${this.getId()}-insightsTilesContainer`, {
|
|
487
581
|
visible: "{= !${/isPhone}}"
|
|
488
582
|
}).addStyleClass("insightTiles sapUiSmallMarginTop");
|
|
489
583
|
// Attach aggregation to the container
|
|
490
|
-
this._attachAggregationToContainer(this.
|
|
584
|
+
this._attachAggregationToContainer(this.tilesDesktopContainer);
|
|
491
585
|
}
|
|
492
586
|
// Return the existing or newly created container
|
|
493
|
-
return this.
|
|
587
|
+
return this.tilesDesktopContainer;
|
|
494
588
|
},
|
|
495
589
|
/**
|
|
496
590
|
* Updates the activation flags for Insights Tiles based on the device type and viewport.
|
|
@@ -511,15 +605,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
511
605
|
* Attaches necessary aggregations and configurations to the provided container.
|
|
512
606
|
*
|
|
513
607
|
* @private
|
|
514
|
-
* @param {GridContainer | HeaderContainer}
|
|
608
|
+
* @param {GridContainer | HeaderContainer} tilesDesktopContainer - The container to which the aggregation and events are to be attached.
|
|
515
609
|
* @returns {void}
|
|
516
610
|
*
|
|
517
611
|
*/
|
|
518
|
-
_attachAggregationToContainer: function _attachAggregationToContainer(
|
|
519
|
-
|
|
520
|
-
const sDefaultAggreName =
|
|
612
|
+
_attachAggregationToContainer: function _attachAggregationToContainer(tilesDesktopContainer) {
|
|
613
|
+
tilesDesktopContainer.setModel(this._controlModel);
|
|
614
|
+
const sDefaultAggreName = tilesDesktopContainer.getMetadata().getDefaultAggregationName();
|
|
521
615
|
const isPhoneScreen = this.getDeviceType() === DeviceType.Mobile;
|
|
522
|
-
|
|
616
|
+
tilesDesktopContainer.bindAggregation(sDefaultAggreName, {
|
|
523
617
|
path: "/tiles",
|
|
524
618
|
factory: (id, context) => {
|
|
525
619
|
const oApp = context.getObject();
|
|
@@ -539,7 +633,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
539
633
|
return oVisualization;
|
|
540
634
|
}
|
|
541
635
|
});
|
|
542
|
-
this.addDragDropConfigTo(
|
|
636
|
+
this.addDragDropConfigTo(tilesDesktopContainer, oEvent => this._handleTilesDnd(oEvent));
|
|
543
637
|
},
|
|
544
638
|
/**
|
|
545
639
|
* Sets the drop area rectangle function for the given visualization.
|
|
@@ -600,15 +694,15 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
600
694
|
*/
|
|
601
695
|
_DragnDropTiles: function _DragnDropTiles(iDragItemIndex, iDropItemIndex, sInsertPosition) {
|
|
602
696
|
try {
|
|
603
|
-
const
|
|
697
|
+
const _this6 = this;
|
|
604
698
|
if (sInsertPosition === "Before" && iDragItemIndex < iDropItemIndex) {
|
|
605
699
|
iDropItemIndex--;
|
|
606
700
|
} else if (sInsertPosition === "After" && iDragItemIndex > iDropItemIndex) {
|
|
607
701
|
iDropItemIndex++;
|
|
608
702
|
}
|
|
609
|
-
const oDisplacedItem =
|
|
610
|
-
oItemMoved =
|
|
611
|
-
|
|
703
|
+
const oDisplacedItem = _this6.aInsightsApps[iDropItemIndex],
|
|
704
|
+
oItemMoved = _this6.aInsightsApps.splice(iDragItemIndex, 1)[0];
|
|
705
|
+
_this6.aInsightsApps.splice(iDropItemIndex, 0, oItemMoved);
|
|
612
706
|
const moveConfigs = {
|
|
613
707
|
pageId: MYHOME_PAGE_ID,
|
|
614
708
|
sourceSectionIndex: oItemMoved.persConfig?.sectionIndex,
|
|
@@ -616,12 +710,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
616
710
|
targetSectionIndex: oDisplacedItem.persConfig?.sectionIndex,
|
|
617
711
|
targetVisualizationIndex: oDisplacedItem.persConfig?.visualizationIndex
|
|
618
712
|
};
|
|
619
|
-
|
|
620
|
-
return Promise.resolve(
|
|
621
|
-
return Promise.resolve(
|
|
713
|
+
_this6._controlModel.setProperty("/tiles", _this6.aInsightsApps);
|
|
714
|
+
return Promise.resolve(_this6.appManagerInstance.moveVisualization(moveConfigs)).then(function () {
|
|
715
|
+
return Promise.resolve(_this6.refreshData(true)).then(function () {
|
|
622
716
|
// Ensures focus on tile after Panel refresh during DnD.
|
|
623
717
|
setTimeout(() => {
|
|
624
|
-
focusDraggedItem(
|
|
718
|
+
focusDraggedItem(_this6.tilesDesktopContainer, iDropItemIndex);
|
|
625
719
|
}, 0);
|
|
626
720
|
});
|
|
627
721
|
});
|
|
@@ -635,32 +729,14 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
635
729
|
* @param {Event} event - The event object.
|
|
636
730
|
*/
|
|
637
731
|
handleEditTiles: function _handleEditTiles(event) {
|
|
638
|
-
/* If called from Panel Header event.source() will return TilesPanel, if called from Insights Container event.source() will return
|
|
732
|
+
/* If called from Panel Header event.source() will return TilesPanel, if called from Insights Container event.source() will return TilesContainer.
|
|
639
733
|
_getLayout is available at Container Level*/
|
|
640
734
|
let parent = event.getSource().getParent() || this;
|
|
641
|
-
if (parent instanceof TilesPanel) {
|
|
735
|
+
if (parent instanceof TilesPanel || parent instanceof ErrorPanel) {
|
|
642
736
|
parent = parent.getParent();
|
|
643
737
|
}
|
|
644
738
|
parent?._getLayout().openSettingsDialog(SETTINGS_PANELS_KEYS.INSIGHTS_TILES);
|
|
645
739
|
},
|
|
646
|
-
/**
|
|
647
|
-
* Hides the header of the tiles panel.
|
|
648
|
-
* @private
|
|
649
|
-
*/
|
|
650
|
-
handleHideHeader: function _handleHideHeader() {
|
|
651
|
-
this._headerVisible = false;
|
|
652
|
-
this.setProperty("title", "");
|
|
653
|
-
this._toggleHeaderActions(false);
|
|
654
|
-
},
|
|
655
|
-
/**
|
|
656
|
-
* Adds the header to the tiles panel.
|
|
657
|
-
* @private
|
|
658
|
-
*/
|
|
659
|
-
handleAddHeader: function _handleAddHeader() {
|
|
660
|
-
this._headerVisible = true;
|
|
661
|
-
this.setProperty("title", `${this._i18nBundle?.getText("insightsTiles")} (${this.aInsightsApps.length})`);
|
|
662
|
-
this._toggleHeaderActions(true);
|
|
663
|
-
},
|
|
664
740
|
/**
|
|
665
741
|
* Closes the "Add from Favorites" dialog.
|
|
666
742
|
*
|
|
@@ -711,11 +787,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
711
787
|
*/
|
|
712
788
|
_handleAddFromFavApps: function _handleAddFromFavApps() {
|
|
713
789
|
try {
|
|
714
|
-
const
|
|
715
|
-
return Promise.resolve(
|
|
716
|
-
const dialog =
|
|
717
|
-
|
|
718
|
-
|
|
790
|
+
const _this7 = this;
|
|
791
|
+
return Promise.resolve(_this7._getFavToAdd()).then(function (appsToAdd) {
|
|
792
|
+
const dialog = _this7._generateAddFromFavAppsDialog();
|
|
793
|
+
_this7._controlMap.get(`${_this7._addFromFavDialogId}-errorMessage`)?.setVisible(appsToAdd.length === 0);
|
|
794
|
+
_this7._generateAddFromFavAppsListItems(appsToAdd);
|
|
719
795
|
dialog.open();
|
|
720
796
|
});
|
|
721
797
|
} catch (e) {
|
|
@@ -731,13 +807,13 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
731
807
|
*/
|
|
732
808
|
_getFavToAdd: function _getFavToAdd() {
|
|
733
809
|
try {
|
|
734
|
-
const
|
|
735
|
-
return Promise.resolve(
|
|
810
|
+
const _this8 = this;
|
|
811
|
+
return Promise.resolve(_this8.appManagerInstance.fetchFavVizs(false, true)).then(function (aFavApps) {
|
|
736
812
|
const aDynamicApps = aFavApps.filter(function (oDynApp) {
|
|
737
813
|
return oDynApp.isCount || oDynApp.isSmartBusinessTile;
|
|
738
814
|
});
|
|
739
815
|
const aFilteredFavApps = aDynamicApps.filter(oDynApp => {
|
|
740
|
-
const iAppIndex =
|
|
816
|
+
const iAppIndex = _this8.aInsightsApps.findIndex(function (oInsightApps) {
|
|
741
817
|
return !oDynApp.visualization?.isBookmark && oInsightApps.visualization?.vizId === oDynApp.visualization?.vizId || oDynApp.visualization?.isBookmark && oInsightApps.visualization?.targetURL === oDynApp.visualization?.targetURL;
|
|
742
818
|
});
|
|
743
819
|
return iAppIndex === -1;
|
|
@@ -888,11 +964,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
888
964
|
*/
|
|
889
965
|
_addFromFavApps: function _addFromFavApps() {
|
|
890
966
|
try {
|
|
891
|
-
const
|
|
892
|
-
const dialog =
|
|
967
|
+
const _this9 = this;
|
|
968
|
+
const dialog = _this9._controlMap.get(_this9._addFromFavDialogId);
|
|
893
969
|
dialog.setBusy(true);
|
|
894
|
-
const selectedItems =
|
|
895
|
-
return Promise.resolve(
|
|
970
|
+
const selectedItems = _this9._getSelectedInsights();
|
|
971
|
+
return Promise.resolve(_this9.appManagerInstance._getSections()).then(function (sections) {
|
|
896
972
|
return Promise.resolve(selectedItems.reduce(function (promise, oApp) {
|
|
897
973
|
return Promise.resolve(promise).then(function () {
|
|
898
974
|
const app = oApp.data("app");
|
|
@@ -900,7 +976,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
900
976
|
pageId: MYHOME_PAGE_ID,
|
|
901
977
|
sourceSectionIndex: app.persConfig?.sectionIndex,
|
|
902
978
|
sourceVisualizationIndex: app.persConfig?.visualizationIndex,
|
|
903
|
-
targetSectionIndex:
|
|
979
|
+
targetSectionIndex: _this9.appManagerInstance.insightsSectionIndex,
|
|
904
980
|
targetVisualizationIndex: -1
|
|
905
981
|
};
|
|
906
982
|
|
|
@@ -915,11 +991,11 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
915
991
|
if (recentAppSectionIndex === -1) {
|
|
916
992
|
oMovingConfig.sourceSectionIndex = 0;
|
|
917
993
|
oMovingConfig.sourceVisualizationIndex = 0;
|
|
918
|
-
oMovingConfig.targetSectionIndex =
|
|
994
|
+
oMovingConfig.targetSectionIndex = _this9.appManagerInstance.insightsSectionIndex + 1;
|
|
919
995
|
} else {
|
|
920
996
|
oMovingConfig.sourceSectionIndex = recentAppSectionIndex;
|
|
921
997
|
oMovingConfig.sourceVisualizationIndex = sections[recentAppSectionIndex]?.visualizations?.length || 0;
|
|
922
|
-
oMovingConfig.targetSectionIndex =
|
|
998
|
+
oMovingConfig.targetSectionIndex = _this9.appManagerInstance.insightsSectionIndex;
|
|
923
999
|
}
|
|
924
1000
|
}
|
|
925
1001
|
if (app.visualization?.displayFormatHint !== "standard" && app.visualization?.displayFormatHint !== "standardWide") {
|
|
@@ -932,17 +1008,17 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
932
1008
|
if (!app.visualization?.vizId) {
|
|
933
1009
|
app.visualization.vizId = app.visualization?.targetURL ?? "";
|
|
934
1010
|
}
|
|
935
|
-
const
|
|
1011
|
+
const _temp8 = function () {
|
|
936
1012
|
if (app.visualization?.isBookmark === true) {
|
|
937
|
-
return Promise.resolve(
|
|
1013
|
+
return Promise.resolve(_this9.appManagerInstance.addBookMark(app.visualization, oMovingConfig)).then(function () {});
|
|
938
1014
|
} else {
|
|
939
|
-
return Promise.resolve(
|
|
1015
|
+
return Promise.resolve(_this9.appManagerInstance.addVisualization(app.visualization?.vizId, MYINSIGHT_SECTION_ID)).then(function () {});
|
|
940
1016
|
}
|
|
941
1017
|
}();
|
|
942
|
-
if (
|
|
1018
|
+
if (_temp8 && _temp8.then) return _temp8.then(function () {});
|
|
943
1019
|
});
|
|
944
1020
|
}, Promise.resolve())).then(function () {
|
|
945
|
-
return Promise.resolve(
|
|
1021
|
+
return Promise.resolve(_this9.refreshData()).then(function () {
|
|
946
1022
|
dialog.setBusy(false);
|
|
947
1023
|
dialog.close();
|
|
948
1024
|
});
|
|
@@ -960,7 +1036,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
960
1036
|
* @returns {number} - The number of visible tiles.
|
|
961
1037
|
*/
|
|
962
1038
|
_calculateVisibleTileCount: function _calculateVisibleTileCount(insightsApps) {
|
|
963
|
-
const layout = this.
|
|
1039
|
+
const layout = this._getTilesContainer()?._getLayout();
|
|
964
1040
|
const layoutDomRef = layout?.getDomRef();
|
|
965
1041
|
const apps = insightsApps || [];
|
|
966
1042
|
let count = 0;
|
|
@@ -983,7 +1059,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
983
1059
|
return count || 1;
|
|
984
1060
|
},
|
|
985
1061
|
_calculatePlaceholderTileCount: function _calculatePlaceholderTileCount() {
|
|
986
|
-
const layoutDomRef = this.
|
|
1062
|
+
const layoutDomRef = this._getTilesContainer()?._getLayout()?.getDomRef();
|
|
987
1063
|
let count = 0;
|
|
988
1064
|
if (layoutDomRef) {
|
|
989
1065
|
const sectionDomRef = layoutDomRef.childNodes[0];
|
|
@@ -1001,7 +1077,7 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
1001
1077
|
* @override
|
|
1002
1078
|
*/
|
|
1003
1079
|
_adjustLayout: function _adjustLayout() {
|
|
1004
|
-
const layout = this.
|
|
1080
|
+
const layout = this._getTilesContainer()?._getLayout();
|
|
1005
1081
|
const isMobileDevice = this.getDeviceType() === DeviceType.Mobile;
|
|
1006
1082
|
if (layout) {
|
|
1007
1083
|
const visibleTileCount = isMobileDevice ? this.aInsightsApps?.length : this._calculateVisibleTileCount(this.aInsightsApps);
|
|
@@ -1011,73 +1087,28 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
1011
1087
|
this._updateTilesActivity();
|
|
1012
1088
|
//Show/Hide Full Screen Button if panel header is visible otherwise update visibility of container Full Screen Button
|
|
1013
1089
|
const showFullScreenButton = isElementExpanded || this.aInsightsApps.length > visibleTileCount;
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
} else {
|
|
1024
|
-
const fullScreenButton = getAssociatedFullScreenMenuItem(this);
|
|
1025
|
-
const fullScreenText = fullScreenButton?.getTitle() ?? "";
|
|
1026
|
-
this._getInsightsContainer()?.updateMenuItem(this._controlMap.get(`${this.getId()}-${tilesContainerMenuItems.SHOW_MORE}`), showFullScreenButton, fullScreenText);
|
|
1027
|
-
this._getInsightsContainer()?.updateActionButton(this._controlMap.get(`${this.getId()}-${tilesContainerActionButtons.SHOW_MORE}`), showFullScreenButton, fullScreenText);
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
},
|
|
1031
|
-
/**
|
|
1032
|
-
* Retrieves the InsightsContainer instance associated with this TilesPanel.
|
|
1033
|
-
*
|
|
1034
|
-
* @private
|
|
1035
|
-
* @returns {InsightsContainer} The InsightsContainer instance.
|
|
1036
|
-
*/
|
|
1037
|
-
_getInsightsContainer: function _getInsightsContainer() {
|
|
1038
|
-
if (!this.insightsContainer) {
|
|
1039
|
-
this.insightsContainer = this.getParent();
|
|
1040
|
-
}
|
|
1041
|
-
return this.insightsContainer;
|
|
1042
|
-
},
|
|
1043
|
-
/**
|
|
1044
|
-
* Retrieves the menu items for the container.
|
|
1045
|
-
*
|
|
1046
|
-
* @private
|
|
1047
|
-
* @returns {MenuItem[]} An array of MenuItem instances.
|
|
1048
|
-
*/
|
|
1049
|
-
getContainerMenuItems: function _getContainerMenuItems() {
|
|
1050
|
-
if (!this._containerMenuItems) {
|
|
1051
|
-
const containerRefresh = this._createRefreshMenuItem(tilesContainerMenuItems.REFRESH, "containerTilesRefresh");
|
|
1052
|
-
const containerEditTiles = this._createEditTilesMenuItem(tilesContainerMenuItems.EDIT_TILES, "containerManageTiles");
|
|
1053
|
-
const containerShowMore = createShowMoreMenuItem(this, tilesContainerMenuItems.SHOW_MORE, "containerTilesShowMore");
|
|
1054
|
-
const container = this.getParent();
|
|
1055
|
-
this._controlMap.set(`${this.getId()}-${tilesContainerMenuItems.SHOW_MORE}`, containerShowMore);
|
|
1056
|
-
this._containerMenuItems = [containerRefresh, containerEditTiles, containerShowMore];
|
|
1057
|
-
if (checkPanelExists(container, appsConatinerlName, favAppPanelName)) {
|
|
1058
|
-
const containerAddFromFav = this._createAddFromFavMenuItem(tilesContainerMenuItems.ADD_APPS, "containerSmartAppsDialog");
|
|
1059
|
-
this._containerMenuItems.splice(1, 0, containerAddFromFav);
|
|
1060
|
-
}
|
|
1090
|
+
const fullScreenButton = getAssociatedFullScreenMenuItem(this);
|
|
1091
|
+
const fullScreenText = fullScreenButton?.getTitle() ?? "";
|
|
1092
|
+
|
|
1093
|
+
//update the panel menu-item show more button and show more action button in panel header
|
|
1094
|
+
fullScreenButton?.setVisible(showFullScreenButton);
|
|
1095
|
+
fullScreenButton?.setTitle(fullScreenText);
|
|
1096
|
+
const fullScreenActionButton = getAssociatedFullScreenButton(this);
|
|
1097
|
+
fullScreenActionButton?.setVisible(showFullScreenButton);
|
|
1098
|
+
fullScreenActionButton?.setText(fullScreenText);
|
|
1061
1099
|
}
|
|
1062
|
-
return this._containerMenuItems;
|
|
1063
1100
|
},
|
|
1064
1101
|
/**
|
|
1065
|
-
* Retrieves the
|
|
1102
|
+
* Retrieves the TilesContainer instance associated with this TilesPanel.
|
|
1066
1103
|
*
|
|
1067
1104
|
* @private
|
|
1068
|
-
* @returns {
|
|
1105
|
+
* @returns {TilesContainer} The TilesContainer instance.
|
|
1069
1106
|
*/
|
|
1070
|
-
|
|
1071
|
-
if (!this.
|
|
1072
|
-
this.
|
|
1073
|
-
this._containerActionButtons.push(this._createAddTilesButton(tilesContainerActionButtons.ADD_TILES, "containerSmartAppsDialog"));
|
|
1074
|
-
const containerFullScreenActionButton = createShowMoreActionButton(this, tilesContainerActionButtons.SHOW_MORE, "containerTilesShowMore");
|
|
1075
|
-
if (containerFullScreenActionButton) {
|
|
1076
|
-
this._controlMap.set(`${this.getId()}-${tilesContainerActionButtons.SHOW_MORE}`, containerFullScreenActionButton);
|
|
1077
|
-
this._containerActionButtons.push(containerFullScreenActionButton);
|
|
1078
|
-
}
|
|
1107
|
+
_getTilesContainer: function _getTilesContainer() {
|
|
1108
|
+
if (!this.tilesContainer) {
|
|
1109
|
+
this.tilesContainer = this.getParent();
|
|
1079
1110
|
}
|
|
1080
|
-
return this.
|
|
1111
|
+
return this.tilesContainer;
|
|
1081
1112
|
},
|
|
1082
1113
|
/**
|
|
1083
1114
|
* Creates a refresh menu item.
|
|
@@ -1153,23 +1184,23 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
1153
1184
|
* @returns {Button} The created Button instance.
|
|
1154
1185
|
*/
|
|
1155
1186
|
_createAddTilesButton: function _createAddTilesButton(id, fesrId) {
|
|
1156
|
-
const
|
|
1187
|
+
const _this0 = this;
|
|
1157
1188
|
const actionButton = new Button(`${this.getId()}-${id}`, {
|
|
1158
1189
|
text: this._i18nBundle.getText("appFinderLink"),
|
|
1159
1190
|
tooltip: this._i18nBundle.getText("appFinderLink"),
|
|
1160
1191
|
press: function () {
|
|
1161
1192
|
try {
|
|
1162
|
-
const container =
|
|
1163
|
-
const
|
|
1193
|
+
const container = _this0._getTilesContainer();
|
|
1194
|
+
const _temp9 = function () {
|
|
1164
1195
|
if (checkPanelExists(container, appsConatinerlName, favAppPanelName)) {
|
|
1165
1196
|
// Favorite App Panel is visible, proceed as usual
|
|
1166
|
-
void
|
|
1197
|
+
void _this0._handleAddFromFavApps();
|
|
1167
1198
|
} else {
|
|
1168
1199
|
// Favorite App Panel is NOT visible, navigate to App Finder
|
|
1169
|
-
return Promise.resolve(
|
|
1200
|
+
return Promise.resolve(_this0.navigateToAppFinder()).then(function () {});
|
|
1170
1201
|
}
|
|
1171
1202
|
}();
|
|
1172
|
-
return Promise.resolve(
|
|
1203
|
+
return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(function () {}) : void 0);
|
|
1173
1204
|
} catch (e) {
|
|
1174
1205
|
return Promise.reject(e);
|
|
1175
1206
|
}
|
|
@@ -1180,24 +1211,12 @@ sap.ui.define(["sap/base/Log", "sap/f/GridContainer", "sap/f/GridContainerItemLa
|
|
|
1180
1211
|
addFESRId(actionButton, fesrId);
|
|
1181
1212
|
}
|
|
1182
1213
|
return actionButton;
|
|
1183
|
-
},
|
|
1184
|
-
/**
|
|
1185
|
-
* Toggles the visibility of the header actions.
|
|
1186
|
-
*
|
|
1187
|
-
* @param {boolean} bShow - Whether to show or hide the header actions.
|
|
1188
|
-
* @private
|
|
1189
|
-
*/
|
|
1190
|
-
_toggleHeaderActions: function _toggleHeaderActions(bShow) {
|
|
1191
|
-
this.getAggregation("menuItems")?.forEach(menuItem => {
|
|
1192
|
-
this._getInsightsContainer()?.toggleMenuListItem(menuItem, bShow);
|
|
1193
|
-
});
|
|
1194
|
-
this.getAggregation("actionButtons")?.forEach(actionButton => this._getInsightsContainer()?.toggleActionButton(actionButton, bShow));
|
|
1195
1214
|
}
|
|
1196
1215
|
});
|
|
1197
1216
|
TilesPanel.tilesMenuItems = tilesMenuItems;
|
|
1198
|
-
TilesPanel.tilesContainerMenuItems = tilesContainerMenuItems;
|
|
1199
1217
|
TilesPanel.tilesActionButtons = tilesActionButtons;
|
|
1200
|
-
TilesPanel.
|
|
1218
|
+
TilesPanel.errorPanelMenuItems = errorPanelMenuItems;
|
|
1219
|
+
TilesPanel.errorPanelActionButtons = errorPanelActionButtons;
|
|
1201
1220
|
TilesPanel.DisplayFormat = DisplayFormat;
|
|
1202
1221
|
return TilesPanel;
|
|
1203
1222
|
});
|