@sapui5/sap.cux.home 1.135.0 → 1.136.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/AdvancedSettingsPanel-dbg.js +23 -5
- package/src/sap/cux/home/AdvancedSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts +7 -0
- package/src/sap/cux/home/AdvancedSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/AdvancedSettingsPanel.ts +24 -5
- package/src/sap/cux/home/AppsAdditionPanel-dbg.js +919 -0
- package/src/sap/cux/home/AppsAdditionPanel-dbg.js.map +1 -0
- package/src/sap/cux/home/AppsAdditionPanel.d.ts +293 -0
- package/src/sap/cux/home/AppsAdditionPanel.d.ts.map +1 -0
- package/src/sap/cux/home/AppsAdditionPanel.js +6 -0
- package/src/sap/cux/home/AppsAdditionPanel.js.map +1 -0
- package/src/sap/cux/home/AppsAdditionPanel.ts +757 -0
- package/src/sap/cux/home/AppsContainer-dbg.js +42 -28
- package/src/sap/cux/home/AppsContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.d.ts +17 -1
- package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/AppsContainer.js +1 -1
- package/src/sap/cux/home/AppsContainer.js.map +1 -1
- package/src/sap/cux/home/AppsContainer.ts +27 -6
- package/src/sap/cux/home/AppsContainerGenericPlaceholder-dbg.js +261 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder-dbg.js.map +1 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.js +6 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.js.map +1 -0
- package/src/sap/cux/home/AppsContainerGenericPlaceholder.ts +251 -0
- package/src/sap/cux/home/BaseAppPanel-dbg.js +4 -5
- package/src/sap/cux/home/BaseAppPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.js +1 -1
- package/src/sap/cux/home/BaseAppPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPanel.ts +3 -5
- package/src/sap/cux/home/BaseAppPersPanel-dbg.js +2 -1
- package/src/sap/cux/home/BaseAppPersPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.js +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.js.map +1 -1
- package/src/sap/cux/home/BaseAppPersPanel.ts +2 -1
- package/src/sap/cux/home/BaseContainer-dbg.js +24 -3
- package/src/sap/cux/home/BaseContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.d.ts +10 -0
- package/src/sap/cux/home/BaseContainer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainer.js +1 -1
- package/src/sap/cux/home/BaseContainer.js.map +1 -1
- package/src/sap/cux/home/BaseContainer.ts +24 -2
- package/src/sap/cux/home/BaseContainerRenderer-dbg.js +18 -1
- package/src/sap/cux/home/BaseContainerRenderer-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.d.ts +4 -4
- package/src/sap/cux/home/BaseContainerRenderer.d.ts.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.js.map +1 -1
- package/src/sap/cux/home/BaseContainerRenderer.ts +25 -4
- package/src/sap/cux/home/BaseLayout-dbg.js +22 -2
- package/src/sap/cux/home/BaseLayout-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseLayout.d.ts +6 -0
- package/src/sap/cux/home/BaseLayout.d.ts.map +1 -1
- package/src/sap/cux/home/BaseLayout.js +1 -1
- package/src/sap/cux/home/BaseLayout.js.map +1 -1
- package/src/sap/cux/home/BaseLayout.ts +23 -2
- package/src/sap/cux/home/BaseNewsItem-dbg.js +3 -3
- package/src/sap/cux/home/BaseNewsItem-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseNewsItem.js +1 -1
- package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
- package/src/sap/cux/home/BaseNewsItem.ts +3 -3
- package/src/sap/cux/home/BaseNewsPanel-dbg.js +4 -5
- package/src/sap/cux/home/BaseNewsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.js +1 -1
- package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseNewsPanel.ts +5 -4
- package/src/sap/cux/home/BasePanel-dbg.js +1 -1
- package/src/sap/cux/home/BasePanel-dbg.js.map +1 -1
- package/src/sap/cux/home/BasePanel.js +1 -1
- package/src/sap/cux/home/BasePanel.js.map +1 -1
- package/src/sap/cux/home/BasePanel.ts +1 -1
- package/src/sap/cux/home/BaseSettingsDialog-dbg.js +11 -0
- package/src/sap/cux/home/BaseSettingsDialog-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.js +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsDialog.ts +12 -0
- package/src/sap/cux/home/BaseSettingsPanel-dbg.js +67 -2
- package/src/sap/cux/home/BaseSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.d.ts +42 -0
- package/src/sap/cux/home/BaseSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.gen.d.ts +75 -0
- package/src/sap/cux/home/BaseSettingsPanel.js +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/BaseSettingsPanel.ts +70 -2
- package/src/sap/cux/home/CardsPanel-dbg.js +548 -168
- package/src/sap/cux/home/CardsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.d.ts +121 -15
- package/src/sap/cux/home/CardsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/CardsPanel.gen.d.ts +78 -0
- package/src/sap/cux/home/CardsPanel.js +1 -1
- package/src/sap/cux/home/CardsPanel.js.map +1 -1
- package/src/sap/cux/home/CardsPanel.ts +450 -97
- package/src/sap/cux/home/ContentAdditionDialog-dbg.js +353 -0
- package/src/sap/cux/home/ContentAdditionDialog-dbg.js.map +1 -0
- package/src/sap/cux/home/ContentAdditionDialog.d.ts +82 -0
- package/src/sap/cux/home/ContentAdditionDialog.d.ts.map +1 -0
- package/src/sap/cux/home/ContentAdditionDialog.js +6 -0
- package/src/sap/cux/home/ContentAdditionDialog.js.map +1 -0
- package/src/sap/cux/home/ContentAdditionDialog.ts +214 -0
- package/src/sap/cux/home/ErrorPanel-dbg.js +3 -3
- package/src/sap/cux/home/ErrorPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ErrorPanel.js +1 -1
- package/src/sap/cux/home/ErrorPanel.js.map +1 -1
- package/src/sap/cux/home/ErrorPanel.ts +4 -2
- package/src/sap/cux/home/FavAppPanel-dbg.js +352 -333
- package/src/sap/cux/home/FavAppPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/FavAppPanel.js +1 -1
- package/src/sap/cux/home/FavAppPanel.js.map +1 -1
- package/src/sap/cux/home/FavAppPanel.ts +63 -54
- package/src/sap/cux/home/InsightsAdditionPanel-dbg.js +97 -0
- package/src/sap/cux/home/InsightsAdditionPanel-dbg.js.map +1 -0
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts +57 -0
- package/src/sap/cux/home/InsightsAdditionPanel.d.ts.map +1 -0
- package/src/sap/cux/home/InsightsAdditionPanel.js +6 -0
- package/src/sap/cux/home/InsightsAdditionPanel.js.map +1 -0
- package/src/sap/cux/home/InsightsAdditionPanel.ts +94 -0
- package/src/sap/cux/home/InsightsContainer-dbg.js +22 -2
- package/src/sap/cux/home/InsightsContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/InsightsContainer.d.ts +14 -0
- package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
- package/src/sap/cux/home/InsightsContainer.js +1 -1
- package/src/sap/cux/home/InsightsContainer.js.map +1 -1
- package/src/sap/cux/home/InsightsContainer.ts +22 -1
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder-dbg.js +401 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder-dbg.js.map +1 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.js +6 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.js.map +1 -0
- package/src/sap/cux/home/InsightsContainerGenericPlaceholder.ts +391 -0
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel-dbg.js +10 -9
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserLayoutSettingsPanel.ts +9 -8
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel-dbg.js +2 -2
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserNewsPagesSettingsPanel.ts +2 -2
- package/src/sap/cux/home/KeyUserPagesSettingsPanel-dbg.js +6 -6
- package/src/sap/cux/home/KeyUserPagesSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/KeyUserPagesSettingsPanel.ts +6 -6
- package/src/sap/cux/home/Layout-dbg.js +58 -33
- package/src/sap/cux/home/Layout-dbg.js.map +1 -1
- package/src/sap/cux/home/Layout.d.ts +13 -0
- package/src/sap/cux/home/Layout.d.ts.map +1 -1
- package/src/sap/cux/home/Layout.js +1 -1
- package/src/sap/cux/home/Layout.js.map +1 -1
- package/src/sap/cux/home/Layout.ts +48 -20
- package/src/sap/cux/home/LayoutSettingsPanel-dbg.js +1 -10
- package/src/sap/cux/home/LayoutSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.js +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/LayoutSettingsPanel.ts +2 -10
- package/src/sap/cux/home/NewsAndPagesContainer-dbg.js +35 -17
- package/src/sap/cux/home/NewsAndPagesContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts +7 -0
- package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
- package/src/sap/cux/home/NewsAndPagesContainer.ts +40 -16
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder-dbg.js +164 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder-dbg.js.map +1 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.js +6 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.js.map +1 -0
- package/src/sap/cux/home/NewsAndPagesContainerGenericPlaceholder.ts +154 -0
- package/src/sap/cux/home/NewsGroup-dbg.js +112 -79
- package/src/sap/cux/home/NewsGroup-dbg.js.map +1 -1
- package/src/sap/cux/home/NewsGroup.d.ts +1 -0
- package/src/sap/cux/home/NewsGroup.d.ts.map +1 -1
- package/src/sap/cux/home/NewsGroup.js +1 -1
- package/src/sap/cux/home/NewsGroup.js.map +1 -1
- package/src/sap/cux/home/NewsGroup.ts +136 -100
- package/src/sap/cux/home/NewsPanel-dbg.js +541 -173
- package/src/sap/cux/home/NewsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.d.ts +156 -16
- package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsPanel.js +1 -1
- package/src/sap/cux/home/NewsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsPanel.ts +452 -82
- package/src/sap/cux/home/NewsSettingsPanel-dbg.js +61 -20
- package/src/sap/cux/home/NewsSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.d.ts +14 -0
- package/src/sap/cux/home/NewsSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/NewsSettingsPanel.ts +75 -21
- package/src/sap/cux/home/NoDataContainer-dbg.js +3 -3
- package/src/sap/cux/home/NoDataContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/NoDataContainer.d.ts +1 -0
- package/src/sap/cux/home/NoDataContainer.d.ts.map +1 -1
- package/src/sap/cux/home/NoDataContainer.js +1 -1
- package/src/sap/cux/home/NoDataContainer.js.map +1 -1
- package/src/sap/cux/home/NoDataContainer.ts +4 -2
- package/src/sap/cux/home/PagePanel-dbg.js +86 -75
- package/src/sap/cux/home/PagePanel-dbg.js.map +1 -1
- package/src/sap/cux/home/PagePanel.d.ts +25 -3
- package/src/sap/cux/home/PagePanel.d.ts.map +1 -1
- package/src/sap/cux/home/PagePanel.js +1 -1
- package/src/sap/cux/home/PagePanel.js.map +1 -1
- package/src/sap/cux/home/PagePanel.ts +91 -76
- package/src/sap/cux/home/PageSettingsPanel-dbg.js +16 -15
- package/src/sap/cux/home/PageSettingsPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.d.ts.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.js +1 -1
- package/src/sap/cux/home/PageSettingsPanel.js.map +1 -1
- package/src/sap/cux/home/PageSettingsPanel.ts +15 -14
- package/src/sap/cux/home/RecentAppPanel-dbg.js +2 -2
- package/src/sap/cux/home/RecentAppPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.js +1 -1
- package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecentAppPanel.ts +2 -2
- package/src/sap/cux/home/RecommendedAppPanel-dbg.js +4 -3
- package/src/sap/cux/home/RecommendedAppPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.d.ts.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
- package/src/sap/cux/home/RecommendedAppPanel.ts +4 -2
- package/src/sap/cux/home/SettingsDialog-dbg.js +4 -3
- package/src/sap/cux/home/SettingsDialog-dbg.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.d.ts.map +1 -1
- package/src/sap/cux/home/SettingsDialog.js +1 -1
- package/src/sap/cux/home/SettingsDialog.js.map +1 -1
- package/src/sap/cux/home/SettingsDialog.ts +4 -2
- package/src/sap/cux/home/TaskPanel-dbg.js +16 -12
- package/src/sap/cux/home/TaskPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.d.ts +1 -2
- package/src/sap/cux/home/TaskPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TaskPanel.js +1 -1
- package/src/sap/cux/home/TaskPanel.js.map +1 -1
- package/src/sap/cux/home/TaskPanel.ts +19 -12
- package/src/sap/cux/home/TilesPanel-dbg.js +9 -8
- package/src/sap/cux/home/TilesPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.d.ts.map +1 -1
- package/src/sap/cux/home/TilesPanel.js +1 -1
- package/src/sap/cux/home/TilesPanel.js.map +1 -1
- package/src/sap/cux/home/TilesPanel.ts +15 -8
- package/src/sap/cux/home/ToDoPanel-dbg.js +34 -25
- package/src/sap/cux/home/ToDoPanel-dbg.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.d.ts +0 -7
- package/src/sap/cux/home/ToDoPanel.d.ts.map +1 -1
- package/src/sap/cux/home/ToDoPanel.js +1 -1
- package/src/sap/cux/home/ToDoPanel.js.map +1 -1
- package/src/sap/cux/home/ToDoPanel.ts +27 -29
- package/src/sap/cux/home/ToDosContainer-dbg.js +27 -18
- package/src/sap/cux/home/ToDosContainer-dbg.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.d.ts +7 -0
- package/src/sap/cux/home/ToDosContainer.d.ts.map +1 -1
- package/src/sap/cux/home/ToDosContainer.js +1 -1
- package/src/sap/cux/home/ToDosContainer.js.map +1 -1
- package/src/sap/cux/home/ToDosContainer.ts +10 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder-dbg.js +84 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder-dbg.js.map +1 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.d.ts +8 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.d.ts.map +1 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.js +6 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.js.map +1 -0
- package/src/sap/cux/home/ToDosContainerGenericPlaceholder.ts +74 -0
- package/src/sap/cux/home/i18n/messagebundle.properties +63 -1
- package/src/sap/cux/home/i18n/messagebundle_ar.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_bg.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ca.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_cnr.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_cs.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_cy.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_da.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_de.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_el.properties +44 -2
- package/src/sap/cux/home/i18n/messagebundle_en.properties +43 -246
- package/src/sap/cux/home/i18n/messagebundle_en_GB.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_en_US_sappsd.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_en_US_saprigi.properties +31 -1
- package/src/sap/cux/home/i18n/messagebundle_en_US_saptrc.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_es.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_es_MX.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_et.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_fi.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_fr.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_fr_CA.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_hi.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_hr.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_hu.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_id.properties +47 -5
- package/src/sap/cux/home/i18n/messagebundle_it.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_iw.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ja.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_kk.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ko.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_lt.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_lv.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_mk.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ms.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_nl.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_no.properties +44 -2
- package/src/sap/cux/home/i18n/messagebundle_pl.properties +44 -2
- package/src/sap/cux/home/i18n/messagebundle_pt.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_pt_PT.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ro.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_ru.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_sh.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_sk.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_sl.properties +44 -2
- package/src/sap/cux/home/i18n/messagebundle_sr.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_sv.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_th.properties +43 -2
- package/src/sap/cux/home/i18n/messagebundle_tr.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_uk.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_vi.properties +42 -1
- package/src/sap/cux/home/i18n/messagebundle_zh_CN.properties +43 -1
- package/src/sap/cux/home/i18n/messagebundle_zh_TW.properties +42 -1
- package/src/sap/cux/home/interface/AppsInterface-dbg.js.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.d.ts +5 -3
- package/src/sap/cux/home/interface/AppsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/AppsInterface.ts +5 -3
- package/src/sap/cux/home/interface/CardsInterface-dbg.js +32 -0
- package/src/sap/cux/home/interface/CardsInterface-dbg.js.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.d.ts +320 -55
- package/src/sap/cux/home/interface/CardsInterface.d.ts.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.js +5 -1
- package/src/sap/cux/home/interface/CardsInterface.js.map +1 -1
- package/src/sap/cux/home/interface/CardsInterface.ts +359 -55
- package/src/sap/cux/home/library-preload.js +88 -45
- package/src/sap/cux/home/library-preload.js.map +1 -1
- package/src/sap/cux/home/manifest.json +4 -4
- package/src/sap/cux/home/themes/base/AppsContainer.less +12 -0
- package/src/sap/cux/home/themes/base/BaseLayout.less +1 -0
- package/src/sap/cux/home/themes/base/ContentAdditionDialog.less +69 -0
- package/src/sap/cux/home/themes/base/NewsAndPagesContainer.less +37 -12
- package/src/sap/cux/home/themes/base/PlaceHolder.less +1374 -0
- package/src/sap/cux/home/themes/base/ToDosContainer.less +1 -1
- package/src/sap/cux/home/themes/base/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/base/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/base/library.css +2 -2
- package/src/sap/cux/home/themes/base/library.source.less +2 -0
- package/src/sap/cux/home/themes/sap_fiori_3/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_fiori_3/library.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_dark/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_dark/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_fiori_3_dark/library.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_hcb/AppsContainer.less +1 -0
- package/src/sap/cux/home/themes/sap_fiori_3_hcb/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_hcb/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_fiori_3_hcb/library.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_hcb/library.source.less +2 -0
- package/src/sap/cux/home/themes/sap_fiori_3_hcw/AppsContainer.less +1 -0
- package/src/sap/cux/home/themes/sap_fiori_3_hcw/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_hcw/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_fiori_3_hcw/library.css +2 -2
- package/src/sap/cux/home/themes/sap_fiori_3_hcw/library.source.less +2 -0
- package/src/sap/cux/home/themes/sap_horizon/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_horizon/library.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_dark/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_dark/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_horizon_dark/library.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_hcb/AppsContainer.less +1 -0
- package/src/sap/cux/home/themes/sap_horizon_hcb/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_hcb/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_horizon_hcb/library.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_hcb/library.source.less +2 -0
- package/src/sap/cux/home/themes/sap_horizon_hcw/AppsContainer.less +1 -0
- package/src/sap/cux/home/themes/sap_horizon_hcw/library-RTL.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_hcw/library-parameters.json +1 -1
- package/src/sap/cux/home/themes/sap_horizon_hcw/library.css +2 -2
- package/src/sap/cux/home/themes/sap_horizon_hcw/library.source.less +2 -0
- package/src/sap/cux/home/utils/AppManager-dbg.js +405 -440
- package/src/sap/cux/home/utils/AppManager-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/AppManager.d.ts +88 -124
- package/src/sap/cux/home/utils/AppManager.d.ts.map +1 -1
- package/src/sap/cux/home/utils/AppManager.js +1 -1
- package/src/sap/cux/home/utils/AppManager.js.map +1 -1
- package/src/sap/cux/home/utils/AppManager.ts +351 -542
- package/src/sap/cux/home/utils/Constants-dbg.js +25 -1
- package/src/sap/cux/home/utils/Constants-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/Constants.d.ts +17 -0
- package/src/sap/cux/home/utils/Constants.d.ts.map +1 -1
- package/src/sap/cux/home/utils/Constants.js +1 -1
- package/src/sap/cux/home/utils/Constants.js.map +1 -1
- package/src/sap/cux/home/utils/Constants.ts +20 -1
- package/src/sap/cux/home/utils/Device-dbg.js +49 -1
- package/src/sap/cux/home/utils/Device-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/Device.d.ts +13 -0
- package/src/sap/cux/home/utils/Device.d.ts.map +1 -1
- package/src/sap/cux/home/utils/Device.js +1 -1
- package/src/sap/cux/home/utils/Device.js.map +1 -1
- package/src/sap/cux/home/utils/Device.ts +58 -1
- package/src/sap/cux/home/utils/InsightsUtils-dbg.js +25 -0
- package/src/sap/cux/home/utils/InsightsUtils-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/InsightsUtils.d.ts +14 -0
- package/src/sap/cux/home/utils/InsightsUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/InsightsUtils.js +1 -1
- package/src/sap/cux/home/utils/InsightsUtils.js.map +1 -1
- package/src/sap/cux/home/utils/InsightsUtils.ts +25 -0
- package/src/sap/cux/home/utils/PerformanceUtils-dbg.js +5 -2
- package/src/sap/cux/home/utils/PerformanceUtils-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts +1 -0
- package/src/sap/cux/home/utils/PerformanceUtils.d.ts.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.js +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.js.map +1 -1
- package/src/sap/cux/home/utils/PerformanceUtils.ts +5 -1
- package/src/sap/cux/home/utils/RecommendedCardUtil-dbg.js +1599 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil-dbg.js.map +1 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil.d.ts +534 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil.d.ts.map +1 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil.js +6 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil.js.map +1 -0
- package/src/sap/cux/home/utils/RecommendedCardUtil.ts +1945 -0
- package/src/sap/cux/home/utils/SituationUtils-dbg.js +1 -1
- package/src/sap/cux/home/utils/SituationUtils-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/SituationUtils.js +1 -1
- package/src/sap/cux/home/utils/SituationUtils.js.map +1 -1
- package/src/sap/cux/home/utils/SituationUtils.ts +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer-dbg.js.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts +4 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.d.ts.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.js.map +1 -1
- package/src/sap/cux/home/utils/UshellPersonalizer.ts +2 -1
- package/src/sap/cux/home/utils/fragment/appsAdditionContent.fragment.xml +126 -0
|
@@ -157,6 +157,13 @@ declare module "sap/cux/home/AdvancedSettingsPanel" {
|
|
|
157
157
|
* @returns {List} export section list
|
|
158
158
|
*/
|
|
159
159
|
private setExportSectionList;
|
|
160
|
+
/**
|
|
161
|
+
* Returns the accessibility description for a given title.
|
|
162
|
+
*
|
|
163
|
+
* @param title The title of the list item.
|
|
164
|
+
* @returns The formatted accessibility description string.
|
|
165
|
+
*/
|
|
166
|
+
private _formatAccDescription;
|
|
160
167
|
private _isPanelAvailable;
|
|
161
168
|
/**
|
|
162
169
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedSettingsPanel.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/AdvancedSettingsPanel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,oCAAoC,CAAC;IA+BpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;IAG3D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;IAUjD,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;IACpF,OAAO,iB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AO,CAAC,kBAAkB;QA4B1B;;;;WAIG;QACI,gBAAgB,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;QAW/C;;;;WAIG;gBACW,kBAAkB;QA4BhC,OAAO,CAAC,sBAAsB;gBAgBhB,oBAAoB;QAwClC;;;;;WAKG;gBACW,kBAAkB;QAahC;;;;;WAKG;gBACW,eAAe;QAqD7B;;;;WAIG;QACH,OAAO,CAAC,YAAY;QAuDpB,OAAO,CAAC,0BAA0B;QA2ClC,OAAO,CAAC,eAAe;gBAiBT,uBAAuB;gBAWvB,2BAA2B;QAsCzC;;;;;WAKG;QACH,mBAAmB,CAAC,SAAS,EAAE,eAAe,EAAE,GAAG,eAAe,EAAE;QAQpE;;;;;;WAMG;QACH,iBAAiB,CAAC,QAAQ,EAAE,eAAe,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO;QAO1E;;;;;;;WAOG;gBACW,mBAAmB;gBAyCnB,gBAAgB;gBAahB,eAAe;QAiB7B;;WAEG;QACH,OAAO,CAAC,aAAa;QAoBrB,OAAO,CAAC,oBAAoB;QA2B5B;;;;;;WAMG;QACH,OAAO,CAAC,uBAAuB;QA6B/B;;;;;;WAMG;QACH,OAAO,CAAC,iBAAiB;QAYzB;;;;;;;WAOG;QACH,OAAO,CAAC,8BAA8B;QAQtC;;;;WAIG;QACH,OAAO,CAAC,uBAAuB;QAoB/B;;;;WAIG;QACH,OAAO,CAAC,qBAAqB;QAmB7B,OAAO,CAAC,iBAAiB;QAKzB;;;;WAIG;gBACW,+BAA+B;QAmC7C;;;;WAIG;gBACW,+BAA+B;QAS7C;;;;;WAKG;gBACW,6BAA6B;KAM3C;CAEA"}
|
|
@@ -2,5 +2,5 @@
|
|
|
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/insights/CardHelper","sap/m/Button","sap/m/CheckBox","sap/m/CustomListItem","sap/m/HBox","sap/m/IconTabBar","sap/m/IconTabFilter","sap/m/Input","sap/m/Label","sap/m/library","sap/m/List","sap/m/MessageStrip","sap/m/MessageToast","sap/m/ObjectStatus","sap/m/OverflowToolbar","sap/m/Panel","sap/m/Text","sap/m/Title","sap/m/Toolbar","sap/m/ToolbarSpacer","sap/m/VBox","sap/ui/core/Element","sap/ui/core/EventBus","sap/ui/core/library","sap/ui/layout/form/SimpleForm","sap/ui/model/json/JSONModel","sap/ui/unified/FileUploader","sap/ushell/Container","./BaseSettingsPanel","./utils/Accessibility","./utils/AppManager","./utils/Constants","./utils/FESRUtil","./utils/HttpHelper","./utils/PageManager","./utils/PersonalisationUtils","./utils/UshellPersonalizer"],function(t,e,s,n,o,i,r,a,l,c,p,d,u,h,g,m,f,P,I,x,S,v,T,E,b,C,y,B,M,_,w,z,U,A,R,L,F,N){"use strict";function O(t){return t&&t.__esModule&&typeof t.default!=="undefined"?t.default:t}function D(t,e){try{var s=t()}catch(t){return e(t)}if(s&&s.then){return s.then(void 0,e)}return s}const $=p["FlexAlignItems"];const V=p["ToolbarStyle"];const H=b["ValueState"];const j=O(_);const k=w["checkPanelExists"];const X=O(z);const J=U["SETTINGS_PANELS_KEYS"];const G=A["addFESRSemanticStepName"];const K=A["FESR_EVENTS"];const q=O(R);const W=O(L);const Y=O(F);const Z=O(N);var Q=function(t){t["IMPORT"]="import";t["EXPORT"]="export";return t}(Q||{});const tt="/sap/opu/odata4/ui2/insights_srv/srvd/ui2/";const et=tt+"insights_cards_repo_srv/0001/";const st=et+"INSIGHTS_CARDS/com.sap.gateway.srvd.ui2.insights_cards_repo_srv.v0001.importExport?";const nt="AZHJGRIT78TG7Y65RF6EPFJ9U";const ot="sap.cux.home.NewsAndPagesContainer";const it="sap.cux.home.AppsContainer";const rt="sap.cux.home.InsightsContainer";const at="sap.cux.home.PagePanel";const lt="sap.cux.home.FavAppPanel";const ct="sap.cux.home.RecommendedAppPanel";const pt="sap.cux.home.TilesPanel";const dt="sap.cux.home.CardsPanel";const ut=j.extend("sap.cux.home.AdvancedSettingsPanel",{metadata:{events:{sectionsImported:{}}},constructor:function t(e,s){j.prototype.constructor.call(this,e,s)},init:function t(){j.prototype.init.call(this);this.setProperty("key",J.ADVANCED);this.setProperty("title",this._i18nBundle.getText("advancedSettings"));this.setProperty("icon","sap-icon://grid");this.oEventBus=E.getInstance();this.oAppManagerInstance=X.getInstance();this.oSectionsImported={};this.oUserPersonalization={export:{sections:[],fileName:"MY_HOME",sectionsSelected:false,error:false},import:{sections:[],sectionsSelected:false,error:false},selectedTab:"export",showNoImport:false};this.oControlModel=new y(this.oUserPersonalization);this.addAggregation("content",this.getContent());this.addInnerContent();this.attachPanelNavigated(()=>{const t=this;void function(){try{if(!t.oPageManagerInstance){t.oPageManagerInstance=W.getInstance(Y.getPersContainerId(t._getPanel()),Y.getOwnerComponent(t._getPanel()))}t.oEventBus.subscribe("importChannel","tilesImported",(e,s,n)=>{const o=n.status;t.updateImportStatus("insightsTiles",!o)},t);t.oEventBus.subscribe("importChannel","appsImported",(e,s,n)=>{const o=n.status;t.updateImportStatus("favApps",!o)},t);t.oEventBus.subscribe("importChannel","favPagesImported",(e,s,n)=>{const o=n.status;t.updateImportStatus("pages",!o)},t);t.oEventBus.subscribe("importChannel","cardsImported",(e,s,n)=>{const o=n.status;t.updateImportStatus("insightsCards",!o)},t);t.oDetailPage=T.getElementById(t.getProperty("key")+"-detail-page");const e=t._getPanel();if(k(e,it,ct)){void t._setRecommendationSettingsPanel()}return Promise.resolve(t.loadUserPersonalizationData()).then(function(){t.oImportBtn.setEnabled(t.oUserPersonalization.import.sectionsSelected);t.enableDisableActions(t.oUserPersonalization.selectedTab);t.setImportExportList();t.oExportMessage.setText(t.oUserPersonalization.export.errorMessage?String(t.oUserPersonalization.export.errorMessage):"");t.oExportMessage.setType(t.oUserPersonalization.export.errorType);t.oExportMessage.setProperty("visible",t.oUserPersonalization.export.error,true);t.oFileNameInput.setValue(String(t.oUserPersonalization.export.fileName));t.oImportMessage.setText(t.oUserPersonalization.import.errorMessage?String(t.oUserPersonalization.import.errorMessage):"");t.oImportMessage.setType(t.oUserPersonalization.import.errorType);t.oImportMessage.setVisible(t.oUserPersonalization.import.error)})}catch(t){return Promise.reject(t)}}()})},setImportExportList:function t(){if(!this.oExportList){this.oExportList=this.setExportSectionList();this._importExportPanel.addContent(this.oExportList)}else{this.oExportList.invalidate()}if(!this.oImportList){this.oImportList=this.setImportSectionList();this._importExportPanel.addContent(this.oImportList)}else{this.oImportList.invalidate()}},enableDisableActions:function t(e){this.oImportExportTab?.setSelectedKey(e);this.oImportBtn?.setVisible(e===Q.IMPORT);this.oExportBtn?.setVisible(e===Q.EXPORT);if(this.oUserPersonalization.import.sectionsSelected&&e===Q.IMPORT){this.oImportBtn.setEnabled(true)}else{this.oImportBtn.setEnabled(false)}if(e===Q.EXPORT&&this.oUserPersonalization.export.fileName&&this.oUserPersonalization.export.sections?.length&&this.oUserPersonalization.export.sectionsSelected){this.oExportBtn.setEnabled(true)}else{this.oExportBtn.setEnabled(false)}},setExportImportValues:function t(e){if(e===Q.EXPORT){this.oExportMessage.setText(this.oUserPersonalization.export.errorMessage?String(this.oUserPersonalization.export.errorMessage):"");this.oExportMessage.setType(this.oUserPersonalization.export.errorType);this.oExportMessage.setProperty("visible",this.oUserPersonalization.export.error,true)}else if(e===Q.IMPORT){this.oImportMessage.setText(this.oUserPersonalization.import.errorMessage?String(this.oUserPersonalization.import.errorMessage):"");this.oImportMessage.setType(this.oUserPersonalization.import.errorType);this.oImportMessage.setProperty("visible",this.oUserPersonalization.import.error)}},getContent:function t(){if(!this.oContentVBox){this.oContentVBox=new v(this.getId()+"--idAdvancedVBox",{items:[new P(this.getId()+"--idPersonalizationSubheader",{text:this._i18nBundle.getText("advancedSettingsSubheader")}).addStyleClass("sapUiSmallMarginBegin sapUiSmallMarginTop"),this._getImportExportPanel()]})}return this.oContentVBox},_getImportExportPanel:function t(){if(!this._importExportPanel){this._importExportPanel=new f(`${this.getId()}-importExportPanel`,{headerToolbar:new m(`${this.getId()}-importExportPanelToolbar`,{style:V.Clear,content:[new P(`${this.getId()}-importExportPanelToolbarText`,{text:this._i18nBundle.getText("importAndExportPanelHeader")}),new S(`${this.getId()}-importExportPanelToolbarSpacer`),this._getImportButton(),this._getExportButton()]}),headerText:this._i18nBundle.getText("importAndExportPanelHeader"),expanded:true,expandable:true,content:[]}).addStyleClass("sapUiSmallMarginTop")}return this._importExportPanel},_getImportButton:function t(){if(!this.oImportBtn){this.oImportBtn=new s({id:`${this.getId()}-importBtn`,text:this._i18nBundle.getText("import"),type:"Transparent",press:()=>{void this.onImportPress()},visible:false});G(this._getImportButton(),K.PRESS,"importBtn")}return this.oImportBtn},_getExportButton:function t(){if(!this.oExportBtn){this.oExportBtn=new s({id:`${this.getId()}-exportBtn`,text:this._i18nBundle.getText("export"),type:"Transparent",press:this.onExportPress.bind(this),visible:true});G(this.oExportBtn,K.PRESS,"exportBtn")}return this.oExportBtn},addInnerContent:function t(){if(!this.oImportExportTab){this.oImportExportTab=new r(this.getId()+"--idImportExportTab",{expandable:false,backgroundDesign:"Transparent",selectedKey:this.oSelectedTab?this.oSelectedTab:"export",select:this.onImportExportTabSelect.bind(this)});const t=new a(this.getId()+"--idExportTab",{key:"export",text:this._i18nBundle.getText("exportFile")});G(t,K.SELECT,"exportTab");this.oExportMessage=new u(this.getId()+"--idExportMessageStrip",{showIcon:true,visible:false}).addStyleClass("sapUiNoMarginBegin sapUiTinyMarginBottom");const e=new P(this.getId()+"--idExportText",{text:this._i18nBundle.getText("exportText")}).addStyleClass("advancePadding");const n=new i(this.getId()+"--idFileInputContainer",{alignItems:"Center"}).addStyleClass("sapUiSmallMargin");const o=new c(this.getId()+"--idFilenameLabel",{text:this._i18nBundle.getText("exportFileNameLabel"),labelFor:"idTitleFilenameInput",required:true,showColon:true}).addStyleClass("sapUiSmallMarginEnd");this.oFileNameInput=new l(this.getId()+"--idFileNameInput",{ariaLabelledBy:[`${this.getId()}--idExportText`,`${this.getId()}--idFilenameLabel`],required:true,width:"13rem",liveChange:this.onFileNameInputChange.bind(this),value:""});n.addItem(o);n.addItem(this.oFileNameInput);t.addContent(this.oExportMessage);t.addContent(e);t.addContent(n);const p=new a(this.getId()+"--idImportTab",{key:"import",text:this._i18nBundle.getText("importFile")});G(p,K.SELECT,"importTab");this.oImportMessage=new u(this.getId()+"--idImportMessageStrip",{text:"{advsettings>/import/errorMessage}",type:"{advsettings>/import/errorType}",showIcon:true,visible:false}).addStyleClass("sapUiNoMarginBegin sapUiTinyMarginBottom");const d=new P(this.getId()+"--idImportText",{text:this._i18nBundle.getText("importText")}).addStyleClass("advancePadding");const h=new C(this.getId()+"--idImportSimpleForm",{editable:true,layout:"ResponsiveGridLayout",labelSpanS:4,labelSpanM:4});const g=new B(this.getId()+"--idImportFileUploader",{tooltip:this._i18nBundle.getText("uploadImportFile"),fileType:["txt"],change:t=>{void this.onFileImport(t)},maximumFileSize:25,sameFilenameAllowed:true,width:"80%",ariaLabelledBy:[`${this.getId()}--idImportText`],buttonText:this._i18nBundle.getText("importFileUploaderButton")});h.addContent(g);p.addContent(this.oImportMessage);p.addContent(d);p.addContent(h);const m=new a(this.getId()+"--idClassicImportTab",{key:"classicImport",text:this._i18nBundle.getText("classicImport")});G(m,K.SELECT,"classicImportTab");const f=new P(this.getId()+"--idClassicImportText",{text:this._i18nBundle.getText("classicImportText")}).addStyleClass("sapUiSmallMarginBottom advancePadding");const I=new s(this.getId()+"--resetImportAppsNow",{text:this._i18nBundle.getText("resetButton"),press:this.onResetImportApps.bind(this),ariaLabelledBy:[`${this.getId()}--idClassicImportText`]}).addStyleClass("resetButtonPadding");G(I,K.PRESS,"resetImportApps");m.addContent(f);m.addContent(I);this.oImportExportTab.addItem(t);this.oImportExportTab.addItem(p);this.oImportExportTab.addItem(m);this._importExportPanel.addContent(this.oImportExportTab);this._importExportPanel.addContent(this.setExportSectionList())}},setExportSectionList:function t(){const e=new d(`${this.getId()}--exportSectionsList`,{width:"calc(100% - 2rem)",growingThreshold:50,includeItemInSelection:true,visible:"{= ${advsettings>/selectedTab} === 'export'}"}).addStyleClass("sapUiSmallMarginBegin");const s=new x(`${this.getId()}--exportSectionsListToolbar`,{content:[new I(this.getId()+"--idExportSectionsListHeaderText",{text:this._i18nBundle.getText("sectionExportListHeader")}).addStyleClass("sectionTitle")]});e.setHeaderToolbar(s);e.setModel(this.oControlModel,"advsettings");e.bindItems({path:"advsettings>/export/sections",template:new o(`${this.getId()}--exportCustomListItem`,{visible:{path:"advsettings>panelClass",formatter:this._isPanelAvailable.bind(this)},content:[new i(`${this.getId()}--exportContentBox`,{alignItems:"Center",items:[new n(`${this.getId()}--exportListItemCheck`,{select:this.onSectionsSelectionChange.bind(this,false),selected:"{advsettings>selected}",enabled:"{advsettings>enabled}"}),new P(`${this.getId()}--exportListItemText`,{text:"{advsettings>title}"})],width:"100%"})]})});this.oExportList=e;return e},_isPanelAvailable:function t(e){const s={[lt]:{containerName:it,panelName:lt},[at]:{containerName:ot,panelName:at},[pt]:{containerName:rt,panelName:pt},[dt]:{containerName:rt,panelName:dt}};const n=s[e];if(!n)return false;const o=this._getPanel();return k(o,n.containerName,n.panelName)},setImportSectionList:function t(){const e=new d(this.getId()+"--idImportSectionsList",{width:"calc(100% - 2rem)",growingThreshold:50,includeItemInSelection:true,visible:"{= ${advsettings>/selectedTab} === 'import' && (${advsettings>/import/sections/length} > 0 || ${advsettings>/showNoImport})}"}).addStyleClass("sapUiSmallMarginBegin");const s=new x(this.getId()+"--idImportSectionsListToolbar",{content:[new I(`${this.getId()}--importSectionsListHeaderText`,{text:this._i18nBundle.getText("sectionImportListHeader")}).addStyleClass("sectionTitle")]});e.setHeaderToolbar(s);e.setModel(this.oControlModel,"advsettings");e.bindItems({path:"advsettings>/import/sections",template:new o(`${this.getId()}--importCustomListItem`,{content:[new i({justifyContent:"SpaceBetween",items:[new i({items:[new n(`${this.getId()}--importListItemCheck`,{select:this.onSectionsSelectionChange.bind(this,true),selected:"{advsettings>selected}",enabled:"{advsettings>enabled}"}),new P(`${this.getId()}--importListItemText`,{text:"{advsettings>title}"}).addStyleClass("sapUiTinyMarginTop")]}),new i({items:[new g(`${this.getId()}--importItemStatus`,{icon:"{= ${advsettings>status} === 'Success' ? 'sap-icon://status-positive' : 'sap-icon://status-negative' }",state:"{advsettings>status}",visible:"{= ${advsettings>status} !== 'None'}"}).addStyleClass("sapUiSmallMarginEnd sapUiTinyMarginTop")]})],width:"100%"})]})});return e},onSectionsSelectionChange:function t(e){const s=e?this.oImportList.getItems():this.oExportList.getItems();let n=false;let o,i;const r=s.some(function(t){if(!e){o=t.getAggregation("content");i=o[0].getItems()[0];n=i.getSelected()}else{o=t.getAggregation("content");const e=o[0].getItems()[0];i=e.getItems()[0];n=i.getSelected()}return n});this.oControlModel.setProperty((e?"/import":"/export")+"/sectionsSelected",r);this.enableDisableActions(e?"import":"export")},onImportPress:function e(){try{const e=this;e.attachEvent("sectionsImported",()=>{e.oDetailPage.setBusy(false);e.oControlModel.setProperty("/import/sectionsSelected",false)});e.oImportBtn.setEnabled(false);e.oDetailPage.setBusy(true);e.handleUserPersonalizationError(Q.IMPORT,false,"","");const s=e.oUserPersonalization.import.data;const n=D(function(){return Promise.resolve(e.importSections(s)).then(function(t){const s=t.some(t=>t.status===H.Error);if(s){e.handleUserPersonalizationError(Q.IMPORT,true,String(e._i18nBundle.getText("userPersonalizationImportError")),"Warning")}e.oControlModel.setProperty("/import/sections",t)})},function(s){t.error("importpress",String(s));e.handleUserPersonalizationError(Q.IMPORT,true,String(e._i18nBundle.getText("userPersonalizationImportError")),"Error")});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},importSections:function e(s){const n=[];const o=[];const i=this.oControlModel.getProperty("/import/sections");n.push(()=>this.importApps(s));n.push(()=>this.importTiles(s));n.push(()=>this.importFavPages(s));o.push(n.reduce((t,e)=>t.then(()=>e()),Promise.resolve()));o.push(this.importCards(s));return Promise.all(o).then(()=>i).catch(e=>{t.error("import failed",String(e));return[]})},importApps:function t(e){return new Promise(t=>{const s=this.oControlModel.getProperty("/import/sections");if(e?.apps&&e?.apps.length>0&&this.isSectionSelected(s,String(this._i18nBundle.getText("favApps")))){this.oSectionsImported[String(this._i18nBundle.getText("favApps"))]=false;this.oEventBus.publish("importChannel","appsImport",{apps:e.apps,groupInfo:e.groupInfo});t()}else{this.oSectionsImported[String(this._i18nBundle.getText("favApps"))]=true;this.updateImportStatus("favApps");t()}})},importTiles:function t(e){return new Promise(t=>{const s=this.oControlModel.getProperty("/import/sections");if(e?.tiles&&e.tiles.length>0&&this.isSectionSelected(s,String(this._i18nBundle.getText("insightsTiles")))){this.oSectionsImported[String(this._i18nBundle.getText("insightsTiles"))]=false;this.oEventBus.publish("importChannel","tilesImport",e.tiles);t()}else{this.oSectionsImported[String(this._i18nBundle.getText("insightsTiles"))]=true;this.updateImportStatus("insightsTiles");t()}})},importFavPages:function t(e){return new Promise(t=>{const s=this.oControlModel.getProperty("/import/sections");if(e?.favouritePages&&e.favouritePages.length>0&&this.isSectionSelected(s,String(this._i18nBundle.getText("pages")))){this.oSectionsImported[String(this._i18nBundle.getText("pages"))]=false;this.oEventBus.publish("importChannel","favPagesImport",e.favouritePages);t()}else{this.oSectionsImported[String(this._i18nBundle.getText("pages"))]=true;this.updateImportStatus("pages");t()}})},importCards:function t(e){return new Promise(t=>{const s=this.oControlModel.getProperty("/import/sections");if(e?.cards&&e.cards.length>0&&this.isSectionSelected(s,String(this._i18nBundle.getText("insightsCards")))){this.oSectionsImported[String(this._i18nBundle.getText("insightsCards"))]=false;this.oEventBus.publish("importChannel","cardsImport",e.cards);t()}else{this.oSectionsImported[String(this._i18nBundle.getText("insightsCards"))]=true;this.updateImportStatus("insightsCards");t()}})},updateImportStatus:function t(e,s){const n=String(this._i18nBundle.getText(e));const o=this.oControlModel.getProperty("/import/sections");const i=o.find(function(t){return t.title===n});if(i){if(s!==undefined){i.status=s?H.Error:H.Success}else{i.status=H.None}if(i.status===H.Success){i.enabled=false}}this.oSectionsImported[n]=true;const r=Object.keys(this.oSectionsImported);const a=r.every(t=>this.oSectionsImported[t]);if(a){this.fireEvent("sectionsImported")}},resetImportModel:function t(e){this.oControlModel.setProperty("/import/sections",[]);this.oControlModel.setProperty("/import/sectionsSelected",false);this.oControlModel.setProperty("/import/error",false);if(e){this.oControlModel.setProperty("/selectedTab","export");T.getElementById(this.getId()+"--idImportFileUploader")?.setValue("")}},getDeltaSectionViz:function e(s){try{const e=this;return Promise.resolve(D(function(){return Promise.resolve(e.oAppManagerInstance._getSections(true)).then(function(t){s.forEach(e=>{let s;if(e.default){s=t.find(t=>t.default)}else{s=t.find(t=>t.id===e.id)}if(s){const t=e.visualizations?.filter(t=>s.visualizations?.every(e=>e.isBookmark?e.targetURL!==t.targetURL:e.vizId!==t.vizId));e.visualizations=t}});return s})},function(e){t.error("Error occurred while fetching delta section visualizations:"+String(e));return[]}))}catch(t){return Promise.reject(t)}},getDeltaAuthSectionViz:function e(s){if(s&&s.length){return this.getDeltaSectionViz(s).then(t=>this.filterAuthSectionViz(t)).catch(e=>{t.error(String(e));return[]})}return Promise.resolve([])},filterAuthSectionViz:function t(e){try{const t=function(){return M.getServiceAsync("SearchableContent").then(function(t){return t.getApps({includeAppsWithoutVisualizations:false})})};const s=function(t,e){const s=[];e?.forEach(function(e){for(let n of t){const t=n;const o=t.visualizations.find(function(t){return t.vizId===e.vizId||e.isBookmark&&t.target&&e.target?.action===t.target.action&&e.target?.semanticObject===t.target.semanticObject});if(o){o.displayFormatHint=e.displayFormatHint!=="standard"?String(e.displayFormatHint):String(o.displayFormatHint);s.push(e.isBookmark?e:o);break}}});return s};return Promise.resolve(t().then(function(t){return e.map(function(e){e.visualizations=s(t,e.visualizations);return e})}))}catch(t){return Promise.reject(t)}},filterAuthFavPages:function t(e){try{let s=false;const n=this;function o(t){return s?t:Promise.resolve([])}const i=function(){if(e&&e.length>0){return Promise.resolve(n.oPageManagerInstance.fetchAllAvailablePages().then(function(t){return e.filter(function(e){return t.filter(function(t){return t.pageId===e.pageId&&t.spaceId===e.spaceId}).length})})).then(function(t){s=true;return t})}}();return Promise.resolve(i&&i.then?i.then(o):o(i))}catch(r){return Promise.reject(r)}},filterAuthCards:function t(e){try{let s=false;function n(t){return s?t:Promise.resolve([])}const o=function(t,e){return t.find(function(t){return t.resolutionResult&&t.resolutionResult.applicationDependencies&&e["sap.insights"]&&t.resolutionResult.applicationDependencies.name===e["sap.insights"].parentAppId})};const i=function(t,e){if(e){return t.isNavigationSupported([{target:{semanticObject:e.semanticObject,action:e.action}}]).then(function(t){return t[0].supported||false})}return Promise.resolve(false)};const r=function(){if(e&&e.length>0){return Promise.resolve(Promise.all([M.getServiceAsync("ClientSideTargetResolution"),M.getServiceAsync("Navigation")]).then(function(t){const s=t[0];const n=t[1];const r=s._oAdapter._aInbounds||[];return e.reduce(function(t,e){return Promise.resolve(t).then(function(t){const s=o(r,e);return Promise.resolve(i(n,s)).then(function(s){if(s){t.push(e)}return t})})},Promise.resolve([]))})).then(function(t){s=true;return t})}}();return Promise.resolve(r&&r.then?r.then(n):n(r))}catch(a){return Promise.reject(a)}},onFileImport:function e(s){this.handleUserPersonalizationError(Q.IMPORT,false,"","");this.resetImportModel();this.oDetailPage.setBusy(true);const n=s.getParameter("files");const o=n&&n[0];return this.readFileContent(o).then(t=>{const e=window.btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(t,e){return String.fromCharCode(parseInt(e,16))}));return q.Post(st,{fileContent:e}).then(t=>{if(t&&t.error){throw new Error(t.error)}if(t&&t.value&&t.value.length){const e=t.value[0].fileContent;const s=JSON.parse(e);if(s.host===window.location.host){const t=s.sections||[];t.push({id:nt,visualizations:s.tiles||[]});return this.filterAuthorizedImportData(t,s)}else{this.handleUserPersonalizationError(Q.IMPORT,true,String(this._i18nBundle.getText("importSourceErrorMessage")),"");return Promise.resolve()}}})}).catch(e=>{t.error(String(e));this.handleUserPersonalizationError(Q.IMPORT,true,"","")}).finally(()=>{this.oDetailPage.setBusy(false);this.enableDisableActions(Q.IMPORT)})},filterAuthorizedImportData:function t(e,s){const n=this;return Promise.all([this.getDeltaAuthSectionViz(e),this.filterAuthFavPages(s.favouritePages),this.filterAuthCards(s.cards),this.getInsightCards()]).then(function(t){try{const e=t[0];const o=t[1];const i=t[2];const r=t[3].getProperty("/cardCount");s.apps=e.filter(function(t){return t.id!==nt});s.tiles=(e.find(function(t){return t.id===nt})||{}).visualizations||[];s.favouritePages=o;s.cards=i||[];const a=r+Number(i?.length);if(a>99){n.handleUserPersonalizationError(Q.IMPORT,true,String(n._i18nBundle.getText("importCardCountErrorMessage")),"")}return Promise.resolve(n.getImportedSections(s,Q.IMPORT,r)).then(function(t){t=t.map(function(t){t.status=H.None;return t});n.oUserPersonalization.import.data=s;n.oControlModel.setProperty("/import/sections",t);n.oControlModel.setProperty("/import/sectionsSelected",n.getSelectedSections(t).length>0);n.oControlModel.setProperty("/showNoImport",t.length===0)})}catch(t){return Promise.reject(t)}})},readFileContent:function t(e){return new Promise(function(t,s){if(e&&window.FileReader){const s=new FileReader;s.onload=function(e){const s=e.target;t(s?.result)};const n=e;s.readAsText(n)}else{s(new Error("Error"))}})},_getPersonalizationData:function t(){try{const e=this;function s(){return Promise.resolve(e.oPersonalizerInstance.read()).then(function(t){e.persData=t||{};return e.persData})}const n=function(){if(!e.oPersonalizerInstance){return Promise.resolve(Z.getInstance(Y.getPersContainerId(e._getPanel()),Y.getOwnerComponent(e._getPanel()))).then(function(t){e.oPersonalizerInstance=t})}}();return Promise.resolve(n&&n.then?n.then(s):s(n))}catch(o){return Promise.reject(o)}},loadUserPersonalizationData:function t(){try{const t=this;t.oExportList.setBusy(true);return Promise.resolve(t._getPersonalizationData()).then(function(e){return Promise.resolve(Promise.all([t.oAppManagerInstance._getSections(true),t.getInsightCards()])).then(function(s){let[n,o]=s;const i=n,r=i.filter(t=>t.id!==nt&&t.visualizations?.length);const a=i.find(t=>t.id===nt)?.visualizations||[];const l=o&&o.getProperty("/visibleCards")?o.getProperty("/visibleCards").map(t=>t.descriptorContent):[];const c={apps:r,tiles:a,favouritePages:e.favouritePages,cards:l,personalization:e};return Promise.resolve(t.getImportedSections(c,Q.EXPORT,0)).then(function(e){t.oUserPersonalization.export.data=c;t.oUserPersonalization.export.sections=e;t.oUserPersonalization.export.sectionsSelected=t.getSelectedSections(e).length>0;t.oControlModel.refresh();t.oExportList.setBusy(false)})})})}catch(t){return Promise.reject(t)}},getSelectedSections:function t(e){return e.filter(function(t){return t.selected&&t.enabled})||[]},isSectionSelected:function t(e,s){const n=e.find(function(t){return t.title===s});return!!(n&&n.selected&&n.enabled)},getImportedSections:function t(e,s,n){try{const o=this;function i(t){const s=e.apps&&e.apps.some(function(t){return t&&t.visualizations&&t.visualizations.length>0});return[{title:o._i18nBundle.getText("favApps"),selected:s,enabled:s,panelClass:lt},{title:o._i18nBundle.getText("pages"),selected:t.length>0,enabled:t.length>0,panelClass:at},{title:o._i18nBundle.getText("insightsTiles"),selected:e.tiles&&e.tiles.length>0,enabled:e.tiles&&e.tiles.length>0,panelClass:pt},{title:o._i18nBundle.getText("insightsCards"),selected:e.cards&&e.cards.length>0&&e.cards.length+n<=99,enabled:e.cards&&e.cards.length>0&&e.cards.length+n<=99,panelClass:dt}]}const r=s===Q.IMPORT;return Promise.resolve(r?Promise.resolve(o.getDeltaFavPages(e.favouritePages)).then(i):i(e.favouritePages))}catch(a){return Promise.reject(a)}},getDeltaFavPages:function t(e){try{const t=this;return Promise.resolve(t._getPersonalizationData()).then(function(t){const s=t.favouritePages||[];return s.length!==e.length?e:e.filter(function(t){return!s.find(function(e){return t.pageId===e.pageId&&t.spaceId===e.spaceId})})})}catch(t){return Promise.reject(t)}},getInsightCards:function t(){try{const t=this;return Promise.resolve(D(function(){return Promise.resolve(e.getServiceAsync()).then(function(e){t.cardHelperInstance=e;return Promise.resolve(t.cardHelperInstance._getUserAllCardModel()).then(function(t){const e=t.getProperty("/cards");const s=e.filter(function(t){return t.visibility});t.setProperty("/visibleCards",s);return t})})},function(t){throw t}))}catch(t){return Promise.reject(t)}},onExportPress:function e(){this.handleUserPersonalizationError(Q.EXPORT,false,"","");const s=this.oControlModel.getProperty("/export/fileName"),n=this.oControlModel.getProperty("/export/sections"),o=this.oUserPersonalization.export.data;const i=this.getExportFileContent(o,n);sap.ui.require(["sap/ui/core/util/File"],e=>{try{e.save(JSON.stringify(i),s,"txt","text/plain","utf-8");h.show(String(this._i18nBundle.getText("userPersonalizationExportSuccess")))}catch(e){t.error(e instanceof Error?e.message:String(e));if(e instanceof Error&&e?.name!==undefined&&e.name!=="AbortError"){this.handleUserPersonalizationError(Q.EXPORT,true,"","")}}})},getExportFileContent:function t(e,s){const n=e?.personalization,o={host:window.location.host,createdDate:new Date,sections:[],groupInfo:[],tiles:[],cards:[],favouritePages:[]};if(this.isSectionSelected(s,this._i18nBundle.getText("favApps"))){o.sections=e?.apps||[];o.groupInfo=n?.favoriteApps||[]}if(this.isSectionSelected(s,this._i18nBundle.getText("pages"))){o.favouritePages=n?.favouritePages||[]}if(this.isSectionSelected(s,this._i18nBundle.getText("insightsTiles"))){o.tiles=e?.tiles||[]}if(this.isSectionSelected(s,this._i18nBundle.getText("insightsCards"))){o.cards=this.filterNonSensitiveCards(e?.cards||[])}return o},filterNonSensitiveCards:function t(e){const s=[];e.forEach(t=>{if(t["sap.card"]?.configuration?.parameters){const e=t["sap.card"].configuration.parameters;let n=[];n=n.concat(this.getSensitiveProps(e.headerState)).concat(this.getSensitiveProps(e.lineItemState)).concat(this.getSensitiveProps(e.state));if(n.length===0){s.push(t)}}else{s.push(t)}});if(e.length!==s.length){this.handleUserPersonalizationError(Q.EXPORT,true,String(this._i18nBundle.getText("exportSensitiveCardsErrorMessage")),"Warning")}return s},getSensitiveProps:function t(e){let s=[];if(e?.value){const t=JSON.parse(e.value);const n=t.sensitiveProps||Object.keys(t.parameters?.ibnParams?.sensitiveProps||{});if(n.length>0){s=s.concat(n)}}return s},handleUserPersonalizationError:function t(e,s,n,o){const i=this._i18nBundle.getText(e===Q.IMPORT?"importErrorMessage":"exportErrorMessage");this.oControlModel.setProperty("/"+e+"/error",s,undefined,true);this.oControlModel.setProperty("/"+e+"/errorMessage",n||i,undefined,true);this.oControlModel.setProperty("/"+e+"/errorType",o||"Error",undefined,true);this.setExportImportValues(e)},onImportExportTabSelect:function t(e){const s=e.getParameter("selectedKey");this.oSelectedTab=s;this.oControlModel.setProperty("/selectedTab",s);this.oExportList.setVisible(s==="export");this.oImportBtn.setVisible(s==="import");this.oExportBtn.setVisible(s==="export");this.oImportBtn.setEnabled(this.oUserPersonalization.import.sectionsSelected);this.oExportBtn.setEnabled(this.oUserPersonalization.export.sectionsSelected);this.oExportBtn.setEnabled(!!(this.oUserPersonalization.export.fileName&&this.oUserPersonalization.export.sections&&this.oUserPersonalization.export.sections.length>0&&this.oUserPersonalization.export.sectionsSelected))},onFileNameInputChange:function t(e){const s=e.getParameter("value")?.trim();const n=e.getSource();let o=H.None;let i="";if(!s||!s.length){o=H.Error;i=String(this._i18nBundle.getText("invalidExportFileName"))}n.setValueState(o);n.setValueStateText(i);this.oControlModel.setProperty("/export/fileName",s);this.enableDisableActions(Q.EXPORT)},onResetImportApps:function t(){this.oEventBus.publish("importChannel","resetImported");h.show(this._i18nBundle.getText("importAppsNowBtnEnabled"))},_getRecommendationSettingsPanel:function t(){try{const t=this;return Promise.resolve(t._getPersonalizationData()).then(function(e){if(!t._recommendationSettingsPanel){const s=t.getId()+"--recommendationSettingsPanel";t._recommendationSettingsPanel=new f(s,{headerText:t._i18nBundle.getText("recommendationSettingsHeader"),expanded:true,expandable:true,content:[new P({id:`${s}-container-subHeader`,text:t._i18nBundle.getText("recommendationSettingsSubHeader")}),new i({id:`${s}-container`,items:[new n({id:`${s}-container-checkBox`,selected:e.showRecommendation??true,select:e=>t.onRecommendationSettingChange(e),ariaLabelledBy:[`${s}-container-subHeader`,`${s}-container-label`]}),new P({id:`${s}-container-label`,text:t._i18nBundle.getText("recommendationSettingsCheckboxLabel")})],alignItems:$.Center}).addStyleClass("sapUiSmallMarginTop")]}).addStyleClass("sapUiSmallMarginTop")}return t._recommendationSettingsPanel})}catch(t){return Promise.reject(t)}},_setRecommendationSettingsPanel:function t(){try{const t=this;t.oDetailPage.setBusy(true);return Promise.resolve(t._getRecommendationSettingsPanel()).then(function(e){if(e){t.oContentVBox.addItem(e);t.oDetailPage.setBusy(false)}})}catch(t){return Promise.reject(t)}},onRecommendationSettingChange:function t(e){try{const t=this;const s=e.getParameter("selected");t.oEventBus.publish("importChannel","recommendationSettingChanged",{showRecommendation:s});return Promise.resolve(t._getPersonalizationData()).then(function(e){void t.oPersonalizerInstance.write({...e,showRecommendation:s})})}catch(t){return Promise.reject(t)}}});ut.ImportExportType=Q;return ut});
|
|
5
|
+
sap.ui.define(["sap/base/Log","sap/insights/CardHelper","sap/m/Button","sap/m/CheckBox","sap/m/CustomListItem","sap/m/HBox","sap/m/IconTabBar","sap/m/IconTabFilter","sap/m/Input","sap/m/Label","sap/m/library","sap/m/List","sap/m/MessageStrip","sap/m/MessageToast","sap/m/ObjectStatus","sap/m/OverflowToolbar","sap/m/Panel","sap/m/Text","sap/m/Title","sap/m/Toolbar","sap/m/ToolbarSpacer","sap/m/VBox","sap/ui/core/Element","sap/ui/core/EventBus","sap/ui/core/library","sap/ui/layout/form/SimpleForm","sap/ui/model/json/JSONModel","sap/ui/unified/FileUploader","sap/ushell/Container","./BaseSettingsPanel","./utils/Accessibility","./utils/AppManager","./utils/Constants","./utils/FESRUtil","./utils/HttpHelper","./utils/PageManager","./utils/PersonalisationUtils","./utils/UshellPersonalizer"],function(t,e,s,n,o,i,r,a,l,c,p,d,u,h,g,m,f,P,I,x,S,v,T,E,b,C,y,B,M,_,w,z,U,A,L,R,F,N){"use strict";function D(t){return t&&t.__esModule&&typeof t.default!=="undefined"?t.default:t}function O(t,e){try{var s=t()}catch(t){return e(t)}if(s&&s.then){return s.then(void 0,e)}return s}const $=p["FlexAlignItems"];const V=p["ToolbarStyle"];const H=b["ValueState"];const j=D(_);const k=w["checkPanelExists"];const X=D(z);const J=U["SETTINGS_PANELS_KEYS"];const G=A["addFESRSemanticStepName"];const K=A["FESR_EVENTS"];const q=D(L);const W=D(R);const Y=D(F);const Z=D(N);var Q=function(t){t["IMPORT"]="import";t["EXPORT"]="export";return t}(Q||{});const tt="/sap/opu/odata4/ui2/insights_srv/srvd/ui2/";const et=tt+"insights_cards_repo_srv/0001/";const st=et+"INSIGHTS_CARDS/com.sap.gateway.srvd.ui2.insights_cards_repo_srv.v0001.importExport?";const nt="AZHJGRIT78TG7Y65RF6EPFJ9U";const ot="sap.cux.home.NewsAndPagesContainer";const it="sap.cux.home.AppsContainer";const rt="sap.cux.home.InsightsContainer";const at="sap.cux.home.PagePanel";const lt="sap.cux.home.FavAppPanel";const ct="sap.cux.home.RecommendedAppPanel";const pt="sap.cux.home.TilesPanel";const dt="sap.cux.home.CardsPanel";const ut=j.extend("sap.cux.home.AdvancedSettingsPanel",{metadata:{events:{sectionsImported:{}}},constructor:function t(e,s){j.prototype.constructor.call(this,e,s)},init:function t(){j.prototype.init.call(this);this.setProperty("key",J.ADVANCED);this.setProperty("title",this._i18nBundle.getText("advancedSettings"));this.setProperty("icon","sap-icon://grid");this.oEventBus=E.getInstance();this.oAppManagerInstance=X.getInstance();this.oSectionsImported={};this.oUserPersonalization={export:{sections:[],fileName:"MY_HOME",sectionsSelected:false,error:false},import:{sections:[],sectionsSelected:false,error:false},selectedTab:"export",showNoImport:false};this.oControlModel=new y(this.oUserPersonalization);this.addAggregation("content",this.getContent());this.addInnerContent();this.attachPanelNavigated(()=>{const t=this;void function(){try{if(!t.oPageManagerInstance){t.oPageManagerInstance=W.getInstance(Y.getPersContainerId(t._getPanel()),Y.getOwnerComponent(t._getPanel()))}t.oEventBus.subscribe("importChannel","tilesImported",(e,s,n)=>{const o=n.status;t.updateImportStatus("insightsTiles",!o)},t);t.oEventBus.subscribe("importChannel","appsImported",(e,s,n)=>{const o=n.status;t.updateImportStatus("favApps",!o)},t);t.oEventBus.subscribe("importChannel","favPagesImported",(e,s,n)=>{const o=n.status;t.updateImportStatus("pages",!o)},t);t.oEventBus.subscribe("importChannel","cardsImported",(e,s,n)=>{const o=n.status;t.updateImportStatus("insightsCards",!o)},t);t.oDetailPage=T.getElementById(t.getProperty("key")+"-detail-page");const e=t._getPanel();if(k(e,it,ct)){void t._setRecommendationSettingsPanel()}return Promise.resolve(t.loadUserPersonalizationData()).then(function(){t.oImportBtn.setEnabled(t.oUserPersonalization.import.sectionsSelected);t.enableDisableActions(t.oUserPersonalization.selectedTab);t.setImportExportList();t.oExportMessage.setText(t.oUserPersonalization.export.errorMessage?String(t.oUserPersonalization.export.errorMessage):"");t.oExportMessage.setType(t.oUserPersonalization.export.errorType);t.oExportMessage.setProperty("visible",t.oUserPersonalization.export.error,true);t.oFileNameInput.setValue(String(t.oUserPersonalization.export.fileName));t.oImportMessage.setText(t.oUserPersonalization.import.errorMessage?String(t.oUserPersonalization.import.errorMessage):"");t.oImportMessage.setType(t.oUserPersonalization.import.errorType);t.oImportMessage.setVisible(t.oUserPersonalization.import.error)})}catch(t){return Promise.reject(t)}}()})},setImportExportList:function t(){if(!this.oExportList){this.oExportList=this.setExportSectionList();this._importExportPanel.addContent(this.oExportList)}else{this.oExportList.invalidate()}if(!this.oImportList){this.oImportList=this.setImportSectionList();this._importExportPanel.addContent(this.oImportList)}else{this.oImportList.invalidate()}},enableDisableActions:function t(e){this.oImportExportTab?.setSelectedKey(e);this.oImportBtn?.setVisible(e===Q.IMPORT);this.oExportBtn?.setVisible(e===Q.EXPORT);if(this.oUserPersonalization.import.sectionsSelected&&e===Q.IMPORT){this.oImportBtn.setEnabled(true)}else{this.oImportBtn.setEnabled(false)}if(e===Q.EXPORT&&this.oUserPersonalization.export.fileName&&this.oUserPersonalization.export.sections?.length&&this.oUserPersonalization.export.sectionsSelected){this.oExportBtn.setEnabled(true)}else{this.oExportBtn.setEnabled(false)}},setExportImportValues:function t(e){if(e===Q.EXPORT){this.oExportMessage.setText(this.oUserPersonalization.export.errorMessage?String(this.oUserPersonalization.export.errorMessage):"");this.oExportMessage.setType(this.oUserPersonalization.export.errorType);this.oExportMessage.setProperty("visible",this.oUserPersonalization.export.error,true)}else if(e===Q.IMPORT){this.oImportMessage.setText(this.oUserPersonalization.import.errorMessage?String(this.oUserPersonalization.import.errorMessage):"");this.oImportMessage.setType(this.oUserPersonalization.import.errorType);this.oImportMessage.setProperty("visible",this.oUserPersonalization.import.error)}},getContent:function t(){if(!this.oContentVBox){this.oContentVBox=new v(this.getId()+"--idAdvancedVBox",{items:[new P(this.getId()+"--idPersonalizationSubheader",{text:this._i18nBundle.getText("advancedSettingsSubheader")}).addStyleClass("sapUiSmallMarginBegin sapUiSmallMarginTop"),this._getImportExportPanel()]})}return this.oContentVBox},_getImportExportPanel:function t(){if(!this._importExportPanel){this._importExportPanel=new f(`${this.getId()}-importExportPanel`,{headerToolbar:new m(`${this.getId()}-importExportPanelToolbar`,{style:V.Clear,content:[new P(`${this.getId()}-importExportPanelToolbarText`,{text:this._i18nBundle.getText("importAndExportPanelHeader")}),new S(`${this.getId()}-importExportPanelToolbarSpacer`),this._getImportButton(),this._getExportButton()]}),headerText:this._i18nBundle.getText("importAndExportPanelHeader"),expanded:true,expandable:true,content:[]}).addStyleClass("sapUiSmallMarginTop")}return this._importExportPanel},_getImportButton:function t(){if(!this.oImportBtn){this.oImportBtn=new s({id:`${this.getId()}-importBtn`,text:this._i18nBundle.getText("import"),type:"Transparent",press:()=>{void this.onImportPress()},visible:false});G(this._getImportButton(),K.PRESS,"importBtn")}return this.oImportBtn},_getExportButton:function t(){if(!this.oExportBtn){this.oExportBtn=new s({id:`${this.getId()}-exportBtn`,text:this._i18nBundle.getText("export"),type:"Transparent",press:this.onExportPress.bind(this),visible:true});G(this.oExportBtn,K.PRESS,"exportBtn")}return this.oExportBtn},addInnerContent:function t(){if(!this.oImportExportTab){this.oImportExportTab=new r(this.getId()+"--idImportExportTab",{expandable:false,backgroundDesign:"Transparent",selectedKey:this.oSelectedTab?this.oSelectedTab:"export",select:this.onImportExportTabSelect.bind(this)});const t=new a(this.getId()+"--idExportTab",{key:"export",text:this._i18nBundle.getText("exportFile")});G(t,K.SELECT,"exportTab");this.oExportMessage=new u(this.getId()+"--idExportMessageStrip",{showIcon:true,visible:false}).addStyleClass("sapUiNoMarginBegin sapUiTinyMarginBottom");const e=new P(this.getId()+"--idExportText",{text:this._i18nBundle.getText("exportText")}).addStyleClass("advancePadding");const n=new i(this.getId()+"--idFileInputContainer",{alignItems:"Center"}).addStyleClass("sapUiSmallMargin");const o=new c(this.getId()+"--idFilenameLabel",{text:this._i18nBundle.getText("exportFileNameLabel"),labelFor:"idTitleFilenameInput",required:true,showColon:true}).addStyleClass("sapUiSmallMarginEnd");this.oFileNameInput=new l(this.getId()+"--idFileNameInput",{ariaLabelledBy:[`${this.getId()}--idExportText`,`${this.getId()}--idFilenameLabel`],required:true,width:"13rem",liveChange:this.onFileNameInputChange.bind(this),value:""});n.addItem(o);n.addItem(this.oFileNameInput);t.addContent(this.oExportMessage);t.addContent(e);t.addContent(n);const p=new a(this.getId()+"--idImportTab",{key:"import",text:this._i18nBundle.getText("importFile")});G(p,K.SELECT,"importTab");this.oImportMessage=new u(this.getId()+"--idImportMessageStrip",{text:"{advsettings>/import/errorMessage}",type:"{advsettings>/import/errorType}",showIcon:true,visible:false}).addStyleClass("sapUiNoMarginBegin sapUiTinyMarginBottom");const d=new P(this.getId()+"--idImportText",{text:this._i18nBundle.getText("importText")}).addStyleClass("advancePadding");const h=new C(this.getId()+"--idImportSimpleForm",{editable:true,layout:"ResponsiveGridLayout",labelSpanS:4,labelSpanM:4});const g=new B(this.getId()+"--idImportFileUploader",{tooltip:this._i18nBundle.getText("uploadImportFile"),fileType:["txt"],change:t=>{void this.onFileImport(t)},maximumFileSize:25,sameFilenameAllowed:true,width:"80%",ariaLabelledBy:[`${this.getId()}--idImportText`],buttonText:this._i18nBundle.getText("importFileUploaderButton")});h.addContent(g);p.addContent(this.oImportMessage);p.addContent(d);p.addContent(h);const m=new a(this.getId()+"--idClassicImportTab",{key:"classicImport",text:this._i18nBundle.getText("classicImport")});G(m,K.SELECT,"classicImportTab");const f=new P(this.getId()+"--idClassicImportText",{text:this._i18nBundle.getText("classicImportText")}).addStyleClass("sapUiSmallMarginBottom advancePadding");const I=new s(this.getId()+"--resetImportAppsNow",{text:this._i18nBundle.getText("resetButton"),press:this.onResetImportApps.bind(this),ariaLabelledBy:[`${this.getId()}--idClassicImportText`]}).addStyleClass("resetButtonPadding");G(I,K.PRESS,"resetImportApps");m.addContent(f);m.addContent(I);this.oImportExportTab.addItem(t);this.oImportExportTab.addItem(p);this.oImportExportTab.addItem(m);this._importExportPanel.addContent(this.oImportExportTab);this._importExportPanel.addContent(this.setExportSectionList())}},setExportSectionList:function t(){const e=new d(`${this.getId()}--exportSectionsList`,{width:"calc(100% - 2rem)",growingThreshold:50,includeItemInSelection:true,visible:"{= ${advsettings>/selectedTab} === 'export'}"}).addStyleClass("sapUiSmallMarginBegin");const s=new x(`${this.getId()}--exportSectionsListToolbar`,{content:[new I(this.getId()+"--idExportSectionsListHeaderText",{text:this._i18nBundle.getText("sectionExportListHeader")}).addStyleClass("sectionTitle")]});e.setHeaderToolbar(s);e.setModel(this.oControlModel,"advsettings");e.bindItems({path:"advsettings>/export/sections",template:new o(`${this.getId()}--exportCustomListItem`,{visible:{path:"advsettings>panelClass",formatter:this._isPanelAvailable.bind(this)},accDescription:{path:"advsettings>title",formatter:this._formatAccDescription.bind(this)},content:[new i(`${this.getId()}--exportContentBox`,{alignItems:"Center",items:[new n(`${this.getId()}--exportListItemCheck`,{select:this.onSectionsSelectionChange.bind(this,false),selected:"{advsettings>selected}",enabled:"{advsettings>enabled}"}),new P(`${this.getId()}--exportListItemText`,{text:"{advsettings>title}"})],width:"100%"})]})});this.oExportList=e;return e},_formatAccDescription:function t(e){const s=this._i18nBundle.getText("checkboxInstructionText");return`${e}. ${s}`},_isPanelAvailable:function t(e){const s={[lt]:{containerName:it,panelName:lt},[at]:{containerName:ot,panelName:at},[pt]:{containerName:rt,panelName:pt},[dt]:{containerName:rt,panelName:dt}};const n=s[e];if(!n)return false;const o=this._getPanel();return k(o,n.containerName,n.panelName)},setImportSectionList:function t(){const e=new d(this.getId()+"--idImportSectionsList",{width:"calc(100% - 2rem)",growingThreshold:50,includeItemInSelection:true,visible:"{= ${advsettings>/selectedTab} === 'import' && (${advsettings>/import/sections/length} > 0 || ${advsettings>/showNoImport})}"}).addStyleClass("sapUiSmallMarginBegin");const s=new x(this.getId()+"--idImportSectionsListToolbar",{content:[new I(`${this.getId()}--importSectionsListHeaderText`,{text:this._i18nBundle.getText("sectionImportListHeader")}).addStyleClass("sectionTitle")]});e.setHeaderToolbar(s);e.setModel(this.oControlModel,"advsettings");e.bindItems({path:"advsettings>/import/sections",template:new o(`${this.getId()}--importCustomListItem`,{accDescription:{path:"advsettings>title",formatter:this._formatAccDescription.bind(this)},content:[new i(`${this.getId()}--importListCheckBox`,{justifyContent:"SpaceBetween",items:[new i(`${this.getId()}--importListItemCheckHBox`,{items:[new n(`${this.getId()}--importListItemCheck`,{select:this.onSectionsSelectionChange.bind(this,true),selected:"{advsettings>selected}",enabled:"{advsettings>enabled}"}),new P(`${this.getId()}--importListItemText`,{text:"{advsettings>title}"}).addStyleClass("sapUiTinyMarginTop")]}),new i(`${this.getId()}--importStatusHBox`,{items:[new g(`${this.getId()}--importItemStatus`,{icon:"{= ${advsettings>status} === 'Success' ? 'sap-icon://status-positive' : 'sap-icon://status-negative' }",state:"{advsettings>status}",visible:"{= ${advsettings>status} !== 'None'}"}).addStyleClass("sapUiSmallMarginEnd sapUiTinyMarginTop")]})],width:"100%"})]})});return e},onSectionsSelectionChange:function t(e){const s=e?this.oImportList.getItems():this.oExportList.getItems();let n=false;let o,i;const r=s.some(function(t){if(!e){o=t.getAggregation("content");i=o[0].getItems()[0];n=i.getSelected()}else{o=t.getAggregation("content");const e=o[0].getItems()[0];i=e.getItems()[0];n=i.getSelected()}return n});this.oControlModel.setProperty((e?"/import":"/export")+"/sectionsSelected",r);this.enableDisableActions(e?"import":"export")},onImportPress:function e(){try{const e=this;e.attachEvent("sectionsImported",()=>{e.oDetailPage.setBusy(false);e.oControlModel.setProperty("/import/sectionsSelected",false)});e.oImportBtn.setEnabled(false);e.oDetailPage.setBusy(true);e.handleUserPersonalizationError(Q.IMPORT,false,"","");const s=e.oUserPersonalization.import.data;const n=O(function(){return Promise.resolve(e.importSections(s)).then(function(t){const s=t.some(t=>t.status===H.Error);if(s){e.handleUserPersonalizationError(Q.IMPORT,true,String(e._i18nBundle.getText("userPersonalizationImportError")),"Warning")}e.oControlModel.setProperty("/import/sections",t)})},function(s){t.error("importpress",String(s));e.handleUserPersonalizationError(Q.IMPORT,true,String(e._i18nBundle.getText("userPersonalizationImportError")),"Error")});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},importSections:function e(s){const n=[];const o=[];const i=this.oControlModel.getProperty("/import/sections");n.push(()=>this.importApps(s));n.push(()=>this.importTiles(s));n.push(()=>this.importFavPages(s));o.push(n.reduce((t,e)=>t.then(()=>e()),Promise.resolve()));o.push(this.importCards(s));return Promise.all(o).then(()=>i).catch(e=>{t.error("import failed",String(e));return[]})},importApps:function t(e){return new Promise(t=>{const s=this.oControlModel.getProperty("/import/sections");if(e?.apps&&e?.apps.length>0&&this.isSectionSelected(s,String(this._i18nBundle.getText("favApps")))){this.oSectionsImported[String(this._i18nBundle.getText("favApps"))]=false;this.oEventBus.publish("importChannel","appsImport",{apps:e.apps,groupInfo:e.groupInfo});t()}else{this.oSectionsImported[String(this._i18nBundle.getText("favApps"))]=true;this.updateImportStatus("favApps");t()}})},importTiles:function t(e){return new Promise(t=>{const s=this.oControlModel.getProperty("/import/sections");if(e?.tiles&&e.tiles.length>0&&this.isSectionSelected(s,String(this._i18nBundle.getText("insightsTiles")))){this.oSectionsImported[String(this._i18nBundle.getText("insightsTiles"))]=false;this.oEventBus.publish("importChannel","tilesImport",e.tiles);t()}else{this.oSectionsImported[String(this._i18nBundle.getText("insightsTiles"))]=true;this.updateImportStatus("insightsTiles");t()}})},importFavPages:function t(e){return new Promise(t=>{const s=this.oControlModel.getProperty("/import/sections");if(e?.favouritePages&&e.favouritePages.length>0&&this.isSectionSelected(s,String(this._i18nBundle.getText("pages")))){this.oSectionsImported[String(this._i18nBundle.getText("pages"))]=false;this.oEventBus.publish("importChannel","favPagesImport",e.favouritePages);t()}else{this.oSectionsImported[String(this._i18nBundle.getText("pages"))]=true;this.updateImportStatus("pages");t()}})},importCards:function t(e){return new Promise(t=>{const s=this.oControlModel.getProperty("/import/sections");if(e?.cards&&e.cards.length>0&&this.isSectionSelected(s,String(this._i18nBundle.getText("insightsCards")))){this.oSectionsImported[String(this._i18nBundle.getText("insightsCards"))]=false;this.oEventBus.publish("importChannel","cardsImport",e.cards);t()}else{this.oSectionsImported[String(this._i18nBundle.getText("insightsCards"))]=true;this.updateImportStatus("insightsCards");t()}})},updateImportStatus:function t(e,s){const n=String(this._i18nBundle.getText(e));const o=this.oControlModel.getProperty("/import/sections");const i=o.find(function(t){return t.title===n});if(i){if(s!==undefined){i.status=s?H.Error:H.Success}else{i.status=H.None}if(i.status===H.Success){i.enabled=false}}this.oSectionsImported[n]=true;const r=Object.keys(this.oSectionsImported);const a=r.every(t=>this.oSectionsImported[t]);if(a){this.fireEvent("sectionsImported")}},resetImportModel:function t(e){this.oControlModel.setProperty("/import/sections",[]);this.oControlModel.setProperty("/import/sectionsSelected",false);this.oControlModel.setProperty("/import/error",false);if(e){this.oControlModel.setProperty("/selectedTab","export");T.getElementById(this.getId()+"--idImportFileUploader")?.setValue("")}},getDeltaSectionViz:function e(s){try{const e=this;return Promise.resolve(O(function(){return Promise.resolve(e.oAppManagerInstance._getSections(true)).then(function(t){s.forEach(e=>{let s;if(e.default){s=t.find(t=>t.default)}else{s=t.find(t=>t.id===e.id)}if(s){const t=e.visualizations?.filter(t=>s.visualizations?.every(e=>e.isBookmark?e.targetURL!==t.targetURL:e.vizId!==t.vizId));e.visualizations=t}});return s})},function(e){t.error("Error occurred while fetching delta section visualizations:"+String(e));return[]}))}catch(t){return Promise.reject(t)}},getDeltaAuthSectionViz:function e(s){if(s&&s.length){return this.getDeltaSectionViz(s).then(t=>this.filterAuthSectionViz(t)).catch(e=>{t.error(String(e));return[]})}return Promise.resolve([])},filterAuthSectionViz:function t(e){try{const t=function(){return M.getServiceAsync("SearchableContent").then(function(t){return t.getApps({includeAppsWithoutVisualizations:false})})};const s=function(t,e){const s=[];e?.forEach(function(e){for(let n of t){const t=n;const o=t.visualizations.find(function(t){return t.vizId===e.vizId||e.isBookmark&&t.target&&e.target?.action===t.target.action&&e.target?.semanticObject===t.target.semanticObject});if(o){o.displayFormatHint=e.displayFormatHint!=="standard"?String(e.displayFormatHint):String(o.displayFormatHint);s.push(e.isBookmark?e:o);break}}});return s};return Promise.resolve(t().then(function(t){return e.map(function(e){e.visualizations=s(t,e.visualizations);return e})}))}catch(t){return Promise.reject(t)}},filterAuthFavPages:function t(e){try{let s=false;const n=this;function o(t){return s?t:Promise.resolve([])}const i=function(){if(e&&e.length>0){return Promise.resolve(n.oPageManagerInstance.fetchAllAvailablePages().then(function(t){return e.filter(function(e){return t.filter(function(t){return t.pageId===e.pageId&&t.spaceId===e.spaceId}).length})})).then(function(t){s=true;return t})}}();return Promise.resolve(i&&i.then?i.then(o):o(i))}catch(r){return Promise.reject(r)}},filterAuthCards:function t(e){try{let s=false;function n(t){return s?t:Promise.resolve([])}const o=function(t,e){return t.find(function(t){return t.resolutionResult&&t.resolutionResult.applicationDependencies&&e["sap.insights"]&&t.resolutionResult.applicationDependencies.name===e["sap.insights"].parentAppId})};const i=function(t,e){if(e){return t.isNavigationSupported([{target:{semanticObject:e.semanticObject,action:e.action}}]).then(function(t){return t[0].supported||false})}return Promise.resolve(false)};const r=function(){if(e&&e.length>0){return Promise.resolve(Promise.all([M.getServiceAsync("ClientSideTargetResolution"),M.getServiceAsync("Navigation")]).then(function(t){const s=t[0];const n=t[1];const r=s._oAdapter._aInbounds||[];return e.reduce(function(t,e){return Promise.resolve(t).then(function(t){const s=o(r,e);return Promise.resolve(i(n,s)).then(function(s){if(s){t.push(e)}return t})})},Promise.resolve([]))})).then(function(t){s=true;return t})}}();return Promise.resolve(r&&r.then?r.then(n):n(r))}catch(a){return Promise.reject(a)}},onFileImport:function e(s){this.handleUserPersonalizationError(Q.IMPORT,false,"","");this.resetImportModel();this.oDetailPage.setBusy(true);const n=s.getParameter("files");const o=n&&n[0];return this.readFileContent(o).then(t=>{const e=window.btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(t,e){return String.fromCharCode(parseInt(e,16))}));return q.Post(st,{fileContent:e}).then(t=>{if(t&&t.error){throw new Error(t.error)}if(t&&t.value&&t.value.length){const e=t.value[0].fileContent;const s=JSON.parse(e);if(s.host===window.location.host){const t=s.sections||[];t.push({id:nt,visualizations:s.tiles||[]});return this.filterAuthorizedImportData(t,s)}else{this.handleUserPersonalizationError(Q.IMPORT,true,String(this._i18nBundle.getText("importSourceErrorMessage")),"");return Promise.resolve()}}})}).catch(e=>{t.error(String(e));this.handleUserPersonalizationError(Q.IMPORT,true,"","")}).finally(()=>{this.oDetailPage.setBusy(false);this.enableDisableActions(Q.IMPORT)})},filterAuthorizedImportData:function t(e,s){const n=this;return Promise.all([this.getDeltaAuthSectionViz(e),this.filterAuthFavPages(s.favouritePages),this.filterAuthCards(s.cards),this.getInsightCards()]).then(function(t){try{const e=t[0];const o=t[1];const i=t[2];const r=t[3].getProperty("/cardCount");s.apps=e.filter(function(t){return t.id!==nt});s.tiles=(e.find(function(t){return t.id===nt})||{}).visualizations||[];s.favouritePages=o;s.cards=i||[];const a=r+Number(i?.length);if(a>99){n.handleUserPersonalizationError(Q.IMPORT,true,String(n._i18nBundle.getText("importCardCountErrorMessage")),"")}return Promise.resolve(n.getImportedSections(s,Q.IMPORT,r)).then(function(t){t=t.map(function(t){t.status=H.None;return t});n.oUserPersonalization.import.data=s;n.oControlModel.setProperty("/import/sections",t);n.oControlModel.setProperty("/import/sectionsSelected",n.getSelectedSections(t).length>0);n.oControlModel.setProperty("/showNoImport",t.length===0)})}catch(t){return Promise.reject(t)}})},readFileContent:function t(e){return new Promise(function(t,s){if(e&&window.FileReader){const s=new FileReader;s.onload=function(e){const s=e.target;t(s?.result)};const n=e;s.readAsText(n)}else{s(new Error("Error"))}})},_getPersonalizationData:function t(){try{const e=this;function s(){return Promise.resolve(e.oPersonalizerInstance.read()).then(function(t){e.persData=t||{};return e.persData})}const n=function(){if(!e.oPersonalizerInstance){return Promise.resolve(Z.getInstance(Y.getPersContainerId(e._getPanel()),Y.getOwnerComponent(e._getPanel()))).then(function(t){e.oPersonalizerInstance=t})}}();return Promise.resolve(n&&n.then?n.then(s):s(n))}catch(o){return Promise.reject(o)}},loadUserPersonalizationData:function t(){try{const t=this;t.oExportList.setBusy(true);return Promise.resolve(t._getPersonalizationData()).then(function(e){return Promise.resolve(Promise.all([t.oAppManagerInstance._getSections(true),t.getInsightCards()])).then(function(s){let[n,o]=s;const i=n,r=i.filter(t=>t.id!==nt&&t.visualizations?.length);const a=i.find(t=>t.id===nt)?.visualizations||[];const l=o&&o.getProperty("/visibleCards")?o.getProperty("/visibleCards").map(t=>t.descriptorContent):[];const c={apps:r,tiles:a,favouritePages:e.favouritePages,cards:l,personalization:e};return Promise.resolve(t.getImportedSections(c,Q.EXPORT,0)).then(function(e){t.oUserPersonalization.export.data=c;t.oUserPersonalization.export.sections=e;t.oUserPersonalization.export.sectionsSelected=t.getSelectedSections(e).length>0;t.oControlModel.refresh();t.oExportList.setBusy(false)})})})}catch(t){return Promise.reject(t)}},getSelectedSections:function t(e){return e.filter(function(t){return t.selected&&t.enabled})||[]},isSectionSelected:function t(e,s){const n=e.find(function(t){return t.title===s});return!!(n&&n.selected&&n.enabled)},getImportedSections:function t(e,s,n){try{const o=this;function i(t){const s=e.apps&&e.apps.some(function(t){return t&&t.visualizations&&t.visualizations.length>0});return[{title:o._i18nBundle.getText("favApps"),selected:s,enabled:s,panelClass:lt},{title:o._i18nBundle.getText("pages"),selected:t?.length>0,enabled:t?.length>0,panelClass:at},{title:o._i18nBundle.getText("insightsTiles"),selected:e.tiles&&e.tiles.length>0,enabled:e.tiles&&e.tiles.length>0,panelClass:pt},{title:o._i18nBundle.getText("insightsCards"),selected:e.cards&&e.cards.length>0&&e.cards.length+n<=99,enabled:e.cards&&e.cards.length>0&&e.cards.length+n<=99,panelClass:dt}]}const r=s===Q.IMPORT;return Promise.resolve(r?Promise.resolve(o.getDeltaFavPages(e.favouritePages)).then(i):i(e.favouritePages))}catch(a){return Promise.reject(a)}},getDeltaFavPages:function t(e){try{const t=this;return Promise.resolve(t._getPersonalizationData()).then(function(t){const s=t.favouritePages||[];return s.length!==e.length?e:e.filter(function(t){return!s.find(function(e){return t.pageId===e.pageId&&t.spaceId===e.spaceId})})})}catch(t){return Promise.reject(t)}},getInsightCards:function t(){try{const t=this;return Promise.resolve(O(function(){return Promise.resolve(e.getServiceAsync()).then(function(e){t.cardHelperInstance=e;return Promise.resolve(t.cardHelperInstance._getUserAllCardModel()).then(function(t){const e=t.getProperty("/cards");const s=e.filter(function(t){return t.visibility});t.setProperty("/visibleCards",s);return t})})},function(t){throw t}))}catch(t){return Promise.reject(t)}},onExportPress:function e(){this.handleUserPersonalizationError(Q.EXPORT,false,"","");const s=this.oControlModel.getProperty("/export/fileName"),n=this.oControlModel.getProperty("/export/sections"),o=this.oUserPersonalization.export.data;const i=this.getExportFileContent(o,n);sap.ui.require(["sap/ui/core/util/File"],e=>{try{e.save(JSON.stringify(i),s,"txt","text/plain","utf-8");h.show(String(this._i18nBundle.getText("userPersonalizationExportSuccess")))}catch(e){t.error(e instanceof Error?e.message:String(e));if(e instanceof Error&&e?.name!==undefined&&e.name!=="AbortError"){this.handleUserPersonalizationError(Q.EXPORT,true,"","")}}})},getExportFileContent:function t(e,s){const n=e?.personalization,o={host:window.location.host,createdDate:new Date,sections:[],groupInfo:[],tiles:[],cards:[],favouritePages:[]};if(this.isSectionSelected(s,this._i18nBundle.getText("favApps"))){o.sections=e?.apps||[];o.groupInfo=n?.favoriteApps||[]}if(this.isSectionSelected(s,this._i18nBundle.getText("pages"))){o.favouritePages=n?.favouritePages||[]}if(this.isSectionSelected(s,this._i18nBundle.getText("insightsTiles"))){o.tiles=e?.tiles||[]}if(this.isSectionSelected(s,this._i18nBundle.getText("insightsCards"))){o.cards=this.filterNonSensitiveCards(e?.cards||[])}return o},filterNonSensitiveCards:function t(e){const s=[];e.forEach(t=>{if(t["sap.card"]?.configuration?.parameters){const e=t["sap.card"].configuration.parameters;let n=[];n=n.concat(this.getSensitiveProps(e.headerState)).concat(this.getSensitiveProps(e.lineItemState)).concat(this.getSensitiveProps(e.state));if(n.length===0){s.push(t)}}else{s.push(t)}});if(e.length!==s.length){this.handleUserPersonalizationError(Q.EXPORT,true,String(this._i18nBundle.getText("exportSensitiveCardsErrorMessage")),"Warning")}return s},getSensitiveProps:function t(e){let s=[];if(e?.value){const t=JSON.parse(e.value);const n=t.sensitiveProps||Object.keys(t.parameters?.ibnParams?.sensitiveProps||{});if(n.length>0){s=s.concat(n)}}return s},handleUserPersonalizationError:function t(e,s,n,o){const i=this._i18nBundle.getText(e===Q.IMPORT?"importErrorMessage":"exportErrorMessage");this.oControlModel.setProperty("/"+e+"/error",s,undefined,true);this.oControlModel.setProperty("/"+e+"/errorMessage",n||i,undefined,true);this.oControlModel.setProperty("/"+e+"/errorType",o||"Error",undefined,true);this.setExportImportValues(e)},onImportExportTabSelect:function t(e){const s=e.getParameter("selectedKey");this.oSelectedTab=s;this.oControlModel.setProperty("/selectedTab",s);this.oExportList.setVisible(s==="export");this.oImportBtn.setVisible(s==="import");this.oExportBtn.setVisible(s==="export");this.oImportBtn.setEnabled(this.oUserPersonalization.import.sectionsSelected);this.oExportBtn.setEnabled(this.oUserPersonalization.export.sectionsSelected);this.oExportBtn.setEnabled(!!(this.oUserPersonalization.export.fileName&&this.oUserPersonalization.export.sections&&this.oUserPersonalization.export.sections.length>0&&this.oUserPersonalization.export.sectionsSelected))},onFileNameInputChange:function t(e){const s=e.getParameter("value")?.trim();const n=e.getSource();let o=H.None;let i="";if(!s||!s.length){o=H.Error;i=String(this._i18nBundle.getText("invalidExportFileName"))}n.setValueState(o);n.setValueStateText(i);this.oControlModel.setProperty("/export/fileName",s);this.enableDisableActions(Q.EXPORT)},onResetImportApps:function t(){this.oEventBus.publish("importChannel","resetImported");h.show(this._i18nBundle.getText("importAppsNowBtnEnabled"))},_getRecommendationSettingsPanel:function t(){try{const t=this;return Promise.resolve(t._getPersonalizationData()).then(function(e){if(!t._recommendationSettingsPanel){const s=t.getId()+"--recommendationSettingsPanel";t._recommendationSettingsPanel=new f(s,{headerText:t._i18nBundle.getText("recommendationSettingsHeader"),expanded:true,expandable:true,content:[new P({id:`${s}-container-subHeader`,text:t._i18nBundle.getText("recommendationSettingsSubHeader")}),new i({id:`${s}-container`,items:[new n({id:`${s}-container-checkBox`,selected:e.showRecommendation??true,select:e=>t.onRecommendationSettingChange(e),ariaLabelledBy:[`${s}-container-subHeader`,`${s}-container-label`]}),new P({id:`${s}-container-label`,text:t._i18nBundle.getText("recommendationSettingsCheckboxLabel")})],alignItems:$.Center}).addStyleClass("sapUiSmallMarginTop")]}).addStyleClass("sapUiSmallMarginTop")}return t._recommendationSettingsPanel})}catch(t){return Promise.reject(t)}},_setRecommendationSettingsPanel:function t(){try{const t=this;t.oDetailPage.setBusy(true);return Promise.resolve(t._getRecommendationSettingsPanel()).then(function(e){if(e){t.oContentVBox.addItem(e);t.oDetailPage.setBusy(false)}})}catch(t){return Promise.reject(t)}},onRecommendationSettingChange:function t(e){try{const t=this;const s=e.getParameter("selected");t.oEventBus.publish("importChannel","recommendationSettingChanged",{showRecommendation:s});return Promise.resolve(t._getPersonalizationData()).then(function(e){void t.oPersonalizerInstance.write({...e,showRecommendation:s})})}catch(t){return Promise.reject(t)}}});ut.ImportExportType=Q;return ut});
|
|
6
6
|
//# sourceMappingURL=AdvancedSettingsPanel.js.map
|