@sapui5/sap.cux.home 1.139.0 → 1.139.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/package.json +1 -1
  2. package/src/sap/cux/home/.library +1 -1
  3. package/src/sap/cux/home/App.d.ts +2 -2
  4. package/src/sap/cux/home/App.js +2 -2
  5. package/src/sap/cux/home/App.js.map +1 -1
  6. package/src/sap/cux/home/App.ts +2 -2
  7. package/src/sap/cux/home/AppsContainer.d.ts +2 -2
  8. package/src/sap/cux/home/AppsContainer.d.ts.map +1 -1
  9. package/src/sap/cux/home/AppsContainer.js +4 -4
  10. package/src/sap/cux/home/AppsContainer.js.map +1 -1
  11. package/src/sap/cux/home/AppsContainer.ts +3 -3
  12. package/src/sap/cux/home/BaseApp.d.ts +2 -2
  13. package/src/sap/cux/home/BaseApp.js +2 -2
  14. package/src/sap/cux/home/BaseApp.js.map +1 -1
  15. package/src/sap/cux/home/BaseApp.ts +2 -2
  16. package/src/sap/cux/home/BaseContainer.d.ts +2 -2
  17. package/src/sap/cux/home/BaseContainer.js +2 -2
  18. package/src/sap/cux/home/BaseContainer.js.map +1 -1
  19. package/src/sap/cux/home/BaseContainer.ts +2 -2
  20. package/src/sap/cux/home/BaseLayout.d.ts +2 -2
  21. package/src/sap/cux/home/BaseLayout.js +2 -2
  22. package/src/sap/cux/home/BaseLayout.js.map +1 -1
  23. package/src/sap/cux/home/BaseLayout.ts +2 -2
  24. package/src/sap/cux/home/BaseNewsItem.d.ts +2 -2
  25. package/src/sap/cux/home/BaseNewsItem.js +2 -2
  26. package/src/sap/cux/home/BaseNewsItem.js.map +1 -1
  27. package/src/sap/cux/home/BaseNewsItem.ts +2 -2
  28. package/src/sap/cux/home/BaseNewsPanel.d.ts +2 -2
  29. package/src/sap/cux/home/BaseNewsPanel.js +2 -2
  30. package/src/sap/cux/home/BaseNewsPanel.js.map +1 -1
  31. package/src/sap/cux/home/BaseNewsPanel.ts +2 -2
  32. package/src/sap/cux/home/BasePagePanel.d.ts +2 -2
  33. package/src/sap/cux/home/BasePagePanel.js +2 -2
  34. package/src/sap/cux/home/BasePagePanel.js.map +1 -1
  35. package/src/sap/cux/home/BasePagePanel.ts +2 -2
  36. package/src/sap/cux/home/BasePanel.d.ts +2 -2
  37. package/src/sap/cux/home/BasePanel.js +2 -2
  38. package/src/sap/cux/home/BasePanel.js.map +1 -1
  39. package/src/sap/cux/home/BasePanel.ts +2 -2
  40. package/src/sap/cux/home/BaseSettingsDialog.d.ts +2 -2
  41. package/src/sap/cux/home/BaseSettingsDialog.js +2 -2
  42. package/src/sap/cux/home/BaseSettingsDialog.js.map +1 -1
  43. package/src/sap/cux/home/BaseSettingsDialog.ts +2 -2
  44. package/src/sap/cux/home/BaseSettingsPanel.d.ts +2 -2
  45. package/src/sap/cux/home/BaseSettingsPanel.js +2 -2
  46. package/src/sap/cux/home/BaseSettingsPanel.js.map +1 -1
  47. package/src/sap/cux/home/BaseSettingsPanel.ts +2 -2
  48. package/src/sap/cux/home/CardsPanel.d.ts +2 -2
  49. package/src/sap/cux/home/CardsPanel.js +2 -2
  50. package/src/sap/cux/home/CardsPanel.js.map +1 -1
  51. package/src/sap/cux/home/CardsPanel.ts +2 -2
  52. package/src/sap/cux/home/ErrorPanel.d.ts +2 -2
  53. package/src/sap/cux/home/ErrorPanel.js +2 -2
  54. package/src/sap/cux/home/ErrorPanel.js.map +1 -1
  55. package/src/sap/cux/home/ErrorPanel.ts +2 -2
  56. package/src/sap/cux/home/FavAppPanel.d.ts +2 -2
  57. package/src/sap/cux/home/FavAppPanel.js +2 -2
  58. package/src/sap/cux/home/FavAppPanel.js.map +1 -1
  59. package/src/sap/cux/home/FavAppPanel.ts +2 -2
  60. package/src/sap/cux/home/FrequentAppPanel.d.ts +2 -2
  61. package/src/sap/cux/home/FrequentAppPanel.js +2 -2
  62. package/src/sap/cux/home/FrequentAppPanel.js.map +1 -1
  63. package/src/sap/cux/home/FrequentAppPanel.ts +2 -2
  64. package/src/sap/cux/home/Group.d.ts +2 -2
  65. package/src/sap/cux/home/Group.js +2 -2
  66. package/src/sap/cux/home/Group.js.map +1 -1
  67. package/src/sap/cux/home/Group.ts +2 -2
  68. package/src/sap/cux/home/IToDoPanel.d.ts +2 -2
  69. package/src/sap/cux/home/IToDoPanel.js.map +1 -1
  70. package/src/sap/cux/home/IToDoPanel.ts +2 -2
  71. package/src/sap/cux/home/InsightsContainer.d.ts +2 -2
  72. package/src/sap/cux/home/InsightsContainer.d.ts.map +1 -1
  73. package/src/sap/cux/home/InsightsContainer.js +4 -4
  74. package/src/sap/cux/home/InsightsContainer.js.map +1 -1
  75. package/src/sap/cux/home/InsightsContainer.ts +3 -3
  76. package/src/sap/cux/home/Layout.d.ts +2 -2
  77. package/src/sap/cux/home/Layout.js +2 -2
  78. package/src/sap/cux/home/Layout.js.map +1 -1
  79. package/src/sap/cux/home/Layout.ts +2 -2
  80. package/src/sap/cux/home/MenuItem.d.ts +2 -2
  81. package/src/sap/cux/home/MenuItem.js +2 -2
  82. package/src/sap/cux/home/MenuItem.js.map +1 -1
  83. package/src/sap/cux/home/MenuItem.ts +2 -2
  84. package/src/sap/cux/home/NewsAndPagesContainer.d.ts +7 -7
  85. package/src/sap/cux/home/NewsAndPagesContainer.d.ts.map +1 -1
  86. package/src/sap/cux/home/NewsAndPagesContainer.js +10 -10
  87. package/src/sap/cux/home/NewsAndPagesContainer.js.map +1 -1
  88. package/src/sap/cux/home/NewsAndPagesContainer.ts +12 -13
  89. package/src/sap/cux/home/NewsPanel.d.ts +2 -2
  90. package/src/sap/cux/home/NewsPanel.d.ts.map +1 -1
  91. package/src/sap/cux/home/NewsPanel.js +2 -2
  92. package/src/sap/cux/home/NewsPanel.js.map +1 -1
  93. package/src/sap/cux/home/NewsPanel.ts +3 -3
  94. package/src/sap/cux/home/NoDataContainer.d.ts +2 -2
  95. package/src/sap/cux/home/NoDataContainer.js +2 -2
  96. package/src/sap/cux/home/NoDataContainer.js.map +1 -1
  97. package/src/sap/cux/home/NoDataContainer.ts +2 -2
  98. package/src/sap/cux/home/PagePanel.d.ts +2 -2
  99. package/src/sap/cux/home/PagePanel.js +2 -2
  100. package/src/sap/cux/home/PagePanel.js.map +1 -1
  101. package/src/sap/cux/home/PagePanel.ts +2 -2
  102. package/src/sap/cux/home/RecentAppPanel.d.ts +2 -2
  103. package/src/sap/cux/home/RecentAppPanel.js +2 -2
  104. package/src/sap/cux/home/RecentAppPanel.js.map +1 -1
  105. package/src/sap/cux/home/RecentAppPanel.ts +2 -2
  106. package/src/sap/cux/home/RecommendedAppPanel.d.ts +2 -2
  107. package/src/sap/cux/home/RecommendedAppPanel.js +2 -2
  108. package/src/sap/cux/home/RecommendedAppPanel.js.map +1 -1
  109. package/src/sap/cux/home/RecommendedAppPanel.ts +2 -2
  110. package/src/sap/cux/home/SituationPanel.d.ts +2 -2
  111. package/src/sap/cux/home/SituationPanel.js +2 -2
  112. package/src/sap/cux/home/SituationPanel.js.map +1 -1
  113. package/src/sap/cux/home/SituationPanel.ts +2 -2
  114. package/src/sap/cux/home/SpaceInsightsPanel.d.ts +2 -2
  115. package/src/sap/cux/home/SpaceInsightsPanel.js +2 -2
  116. package/src/sap/cux/home/SpaceInsightsPanel.js.map +1 -1
  117. package/src/sap/cux/home/SpaceInsightsPanel.ts +2 -2
  118. package/src/sap/cux/home/SpacePanel.d.ts +2 -2
  119. package/src/sap/cux/home/SpacePanel.js +2 -2
  120. package/src/sap/cux/home/SpacePanel.js.map +1 -1
  121. package/src/sap/cux/home/SpacePanel.ts +2 -2
  122. package/src/sap/cux/home/TaskPanel.d.ts +2 -2
  123. package/src/sap/cux/home/TaskPanel.js +2 -2
  124. package/src/sap/cux/home/TaskPanel.js.map +1 -1
  125. package/src/sap/cux/home/TaskPanel.ts +2 -2
  126. package/src/sap/cux/home/TilesPanel.d.ts +2 -2
  127. package/src/sap/cux/home/TilesPanel.js +2 -2
  128. package/src/sap/cux/home/TilesPanel.js.map +1 -1
  129. package/src/sap/cux/home/TilesPanel.ts +2 -2
  130. package/src/sap/cux/home/ToDoPanel.d.ts +2 -2
  131. package/src/sap/cux/home/ToDoPanel.js +2 -2
  132. package/src/sap/cux/home/ToDoPanel.js.map +1 -1
  133. package/src/sap/cux/home/ToDoPanel.ts +2 -2
  134. package/src/sap/cux/home/ToDosContainer.d.ts +2 -2
  135. package/src/sap/cux/home/ToDosContainer.js +5 -5
  136. package/src/sap/cux/home/ToDosContainer.js.map +1 -1
  137. package/src/sap/cux/home/ToDosContainer.ts +3 -3
  138. package/src/sap/cux/home/library.d.ts +10 -6
  139. package/src/sap/cux/home/library.d.ts.map +1 -1
  140. package/src/sap/cux/home/library.js +10 -6
  141. package/src/sap/cux/home/library.js.map +1 -1
  142. package/src/sap/cux/home/library.ts +10 -6
@@ -109,8 +109,8 @@ const sortedMenuItems: (favouritesMenuItems | string)[] = [
109
109
  * @version 0.0.1
110
110
  * @since 1.121.0
111
111
  *
112
- * @internal
113
- * @public
112
+ * @private
113
+ * @ui5-restricted ux.eng.s4producthomes1
114
114
  *
115
115
  * @alias sap.cux.home.FavAppPanel
116
116
  */
@@ -12,8 +12,8 @@ declare module "sap/cux/home/FrequentAppPanel" {
12
12
  * @version 0.0.1
13
13
  * @since 1.121.0
14
14
  *
15
- * @internal
16
- * @public
15
+ * @private
16
+ * @ui5-restricted ux.eng.s4producthomes1
17
17
  *
18
18
  * @alias sap.cux.home.FrequentAppPanel
19
19
  */
@@ -31,8 +31,8 @@ sap.ui.define(["sap/base/Log", "sap/ui/core/EventBus", "sap/ushell/Container", "
31
31
  * @version 0.0.1
32
32
  * @since 1.121.0
33
33
  *
34
- * @internal
35
- * @public
34
+ * @private
35
+ * @ui5-restricted ux.eng.s4producthomes1
36
36
  *
37
37
  * @alias sap.cux.home.FrequentAppPanel
38
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"FrequentAppPanel.js","names":["sap","ui","define","Log","EventBus","Container","EventHub","__BaseAppPersPanel","__MenuItem","_interopRequireDefault","obj","__esModule","default","_catch","body","recover","result","e","then","BaseAppPersPanel","MenuItem","FrequentAppPanel","extend","metadata","library","defaultAggregation","aggregations","apps","type","singularName","multiple","visibility","constructor","_constructor","id","settings","BaseAppPersPanel.prototype.constructor.call","setSupported","init","_init","BaseAppPersPanel.prototype.init.call","setProperty","_i18nBundle","getText","_attachUserActivityTracking","on","do","refresh","oEventBus","getInstance","subscribe","channelId","eventId","data","item","color","_applyUngroupedTileColor","loadApps","_loadApps","_this","Promise","resolve","_getFrequentVisualizations","frequentVisualizations","destroyAggregation","map","visualization","index","menuItems","_getActions","addedInFavorites","frequentApps","generateApps","setApps","reject","_this2","getServiceAsync","UserRecentsService","getFrequentActivity","frequentActivities","convertActivitiesToVisualizations","error","isAppAddedInFavorite","action","push","getKey","title","icon","press","event","_addAppToFavorites","generateIllustratedMessage","_generateIllustratedMessage","illustratedMessage","BaseAppPersPanel.prototype.generateIllustratedMessage.call","setDescription"],"sources":["FrequentAppPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Log from \"sap/base/Log\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport EventBus from \"sap/ui/core/EventBus\";\nimport Container from \"sap/ushell/Container\";\nimport EventHub from \"sap/ushell/EventHub\";\nimport UserRecents from \"sap/ushell/services/UserRecents\";\nimport App from \"./App\";\nimport BaseAppPersPanel from \"./BaseAppPersPanel\";\nimport type { $BasePanelSettings } from \"./BasePanel\";\nimport Group from \"./Group\";\nimport { IActivity } from \"./interface/AppsInterface\";\nimport MenuItem from \"./MenuItem\";\n\n/**\n *\n * Provides the class for managing frequent apps.\n *\n * @extends sap.cux.home.BaseAppPersPanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @internal\n * @public\n *\n * @alias sap.cux.home.FrequentAppPanel\n */\n\nexport default class FrequentAppPanel extends BaseAppPersPanel {\n\tprivate oEventBus!: EventBus;\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tdefaultAggregation: \"apps\",\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Apps aggregation for Frequent apps\n\t\t\t */\n\t\t\tapps: { type: \"sap.cux.home.App\", singularName: \"app\", multiple: true, visibility: \"hidden\" }\n\t\t}\n\t};\n\n\t/**\n\t * Constructor for a new frequent app panel.\n\t *\n\t * @param {string} [id] ID for the new control, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new control\n\t */\n\tpublic constructor(id?: string, settings?: $BasePanelSettings) {\n\t\tsuper(id, settings);\n\t\tthis.setSupported(false);\n\t}\n\n\tpublic init() {\n\t\tsuper.init();\n\t\tthis.setProperty(\"key\", \"frequentApps\");\n\t\tthis.setProperty(\"title\", this._i18nBundle.getText(\"frequentlyUsedTab\"));\n\t\tthis.setProperty(\"tooltip\", this._i18nBundle.getText(\"frequentlyUsedTabInfo\"));\n\t\tthis._attachUserActivityTracking();\n\t\tEventHub.on(\"userRecentsCleared\").do(() => {\n\t\t\tvoid this.refresh();\n\t\t});\n\n\t\tthis.oEventBus = EventBus.getInstance();\n\t\tthis.oEventBus.subscribe(\n\t\t\t\"appsChannel\",\n\t\t\t\"favAppColorChanged\",\n\t\t\t(channelId?: string, eventId?: string, data?) => {\n\t\t\t\tconst { item, color } = data as { item: App | Group; color: string };\n\t\t\t\t//update color of the app in most used apps\n\t\t\t\tthis._applyUngroupedTileColor(item, color);\n\t\t\t},\n\t\t\tthis\n\t\t);\n\t}\n\n\t/**\n\t * Fetch frequent apps and set apps aggregation\n\t * @private\n\t */\n\tpublic async loadApps() {\n\t\tlet frequentVisualizations = await this._getFrequentVisualizations();\n\t\tthis.destroyAggregation(\"apps\", true);\n\t\tfrequentVisualizations = frequentVisualizations.map((visualization, index) => {\n\t\t\treturn {\n\t\t\t\t...visualization,\n\t\t\t\tmenuItems: this._getActions(visualization.addedInFavorites, index)\n\t\t\t};\n\t\t});\n\t\t//convert apps objects array to apps instances\n\t\tconst frequentApps = this.generateApps(frequentVisualizations);\n\t\tthis.setApps(frequentApps);\n\t}\n\n\t/**\n\t * Returns list of frequent apps\n\t * @private\n\t * @returns {object[]} - Array of frequent apps.\n\t */\n\tprivate async _getFrequentVisualizations() {\n\t\ttry {\n\t\t\tconst UserRecentsService = await Container.getServiceAsync<UserRecents>(\"UserRecents\");\n\t\t\tconst frequentActivities: IActivity[] = (await UserRecentsService?.getFrequentActivity()) || [];\n\t\t\t//convert activity to apps\n\t\t\tconst frequentVisualizations = await this.convertActivitiesToVisualizations(frequentActivities);\n\t\t\treturn frequentVisualizations;\n\t\t} catch (error) {\n\t\t\tLog.error(error as string);\n\t\t\treturn [];\n\t\t}\n\t}\n\n\t/**\n\t * Returns list of actions available for selected app\n\t * @private\n\t * @param {boolean} isAppAddedInFavorite - true if app is already present in favorite, false otherwise.\n\t * @returns {sap.cux.home.MenuItem[]} - Array of list items.\n\t */\n\tprivate _getActions(isAppAddedInFavorite: boolean = false, index?: number) {\n\t\tconst action = [];\n\t\tif (!isAppAddedInFavorite) {\n\t\t\taction.push(\n\t\t\t\tnew MenuItem(`${this.getKey()}--addToFavorites--${index}`, {\n\t\t\t\t\ttitle: this._i18nBundle.getText(\"addToFavorites\"),\n\t\t\t\t\ticon: \"sap-icon://add-favorite\",\n\t\t\t\t\tpress: (event) => {\n\t\t\t\t\t\tvoid this._addAppToFavorites(event);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t);\n\t\t}\n\t\treturn action;\n\t}\n\n\t/**\n\t * Generates illustrated message for frequent apps panel.\n\t * @private\n\t * @override\n\t * @returns {sap.m.IllustratedMessage} Illustrated error message.\n\t */\n\tprotected generateIllustratedMessage() {\n\t\tconst illustratedMessage = super.generateIllustratedMessage();\n\t\t//override the default description\n\t\tillustratedMessage.setDescription(this._i18nBundle.getText(\"noFreqAppsDescription\"));\n\t\treturn illustratedMessage;\n\t}\n}\n"],"mappings":"A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C,CAAC,qBAAqBlB,KAAK,EAAE,EAAE;UAC1DmB,KAAK,EAAE,IAAI,CAAC5C,WAAW,CAACC,OAAO,CAAC,gBAAgB,CAAC;UACjD4C,IAAI,EAAE,yBAAyB;UAC/BC,KAAK,EAAGC,KAAK,IAAK;YACjB,KAAK,IAAI,CAACC,kBAAkB,CAACD,KAAK,CAAC;UACpC;QACD,CAAC,CACF,CAAC;MACF;MACA,OAAON,MAAM;IACd,CAAC;IAED;AACD;AACA;AACA;AACA;AACA;IACWQ,0BAA0B,WAAAC,4BAAA,EAAG;MACtC,MAAMC,kBAAkB,GAAAC,0DAAA,MAAqC;MAC7D;MACAD,kBAAkB,CAACE,cAAc,CAAC,IAAI,CAACrD,WAAW,CAACC,OAAO,CAAC,uBAAuB,CAAC,CAAC;MACpF,OAAOkD,kBAAkB;IAC1B;EAAC;EAAA,OApHmBxE,gBAAgB;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"FrequentAppPanel.js","names":["sap","ui","define","Log","EventBus","Container","EventHub","__BaseAppPersPanel","__MenuItem","_interopRequireDefault","obj","__esModule","default","_catch","body","recover","result","e","then","BaseAppPersPanel","MenuItem","FrequentAppPanel","extend","metadata","library","defaultAggregation","aggregations","apps","type","singularName","multiple","visibility","constructor","_constructor","id","settings","BaseAppPersPanel.prototype.constructor.call","setSupported","init","_init","BaseAppPersPanel.prototype.init.call","setProperty","_i18nBundle","getText","_attachUserActivityTracking","on","do","refresh","oEventBus","getInstance","subscribe","channelId","eventId","data","item","color","_applyUngroupedTileColor","loadApps","_loadApps","_this","Promise","resolve","_getFrequentVisualizations","frequentVisualizations","destroyAggregation","map","visualization","index","menuItems","_getActions","addedInFavorites","frequentApps","generateApps","setApps","reject","_this2","getServiceAsync","UserRecentsService","getFrequentActivity","frequentActivities","convertActivitiesToVisualizations","error","isAppAddedInFavorite","action","push","getKey","title","icon","press","event","_addAppToFavorites","generateIllustratedMessage","_generateIllustratedMessage","illustratedMessage","BaseAppPersPanel.prototype.generateIllustratedMessage.call","setDescription"],"sources":["FrequentAppPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Log from \"sap/base/Log\";\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport EventBus from \"sap/ui/core/EventBus\";\nimport Container from \"sap/ushell/Container\";\nimport EventHub from \"sap/ushell/EventHub\";\nimport UserRecents from \"sap/ushell/services/UserRecents\";\nimport App from \"./App\";\nimport BaseAppPersPanel from \"./BaseAppPersPanel\";\nimport type { $BasePanelSettings } from \"./BasePanel\";\nimport Group from \"./Group\";\nimport { IActivity } from \"./interface/AppsInterface\";\nimport MenuItem from \"./MenuItem\";\n\n/**\n *\n * Provides the class for managing frequent apps.\n *\n * @extends sap.cux.home.BaseAppPersPanel\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.FrequentAppPanel\n */\n\nexport default class FrequentAppPanel extends BaseAppPersPanel {\n\tprivate oEventBus!: EventBus;\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tdefaultAggregation: \"apps\",\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Apps aggregation for Frequent apps\n\t\t\t */\n\t\t\tapps: { type: \"sap.cux.home.App\", singularName: \"app\", multiple: true, visibility: \"hidden\" }\n\t\t}\n\t};\n\n\t/**\n\t * Constructor for a new frequent app panel.\n\t *\n\t * @param {string} [id] ID for the new control, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new control\n\t */\n\tpublic constructor(id?: string, settings?: $BasePanelSettings) {\n\t\tsuper(id, settings);\n\t\tthis.setSupported(false);\n\t}\n\n\tpublic init() {\n\t\tsuper.init();\n\t\tthis.setProperty(\"key\", \"frequentApps\");\n\t\tthis.setProperty(\"title\", this._i18nBundle.getText(\"frequentlyUsedTab\"));\n\t\tthis.setProperty(\"tooltip\", this._i18nBundle.getText(\"frequentlyUsedTabInfo\"));\n\t\tthis._attachUserActivityTracking();\n\t\tEventHub.on(\"userRecentsCleared\").do(() => {\n\t\t\tvoid this.refresh();\n\t\t});\n\n\t\tthis.oEventBus = EventBus.getInstance();\n\t\tthis.oEventBus.subscribe(\n\t\t\t\"appsChannel\",\n\t\t\t\"favAppColorChanged\",\n\t\t\t(channelId?: string, eventId?: string, data?) => {\n\t\t\t\tconst { item, color } = data as { item: App | Group; color: string };\n\t\t\t\t//update color of the app in most used apps\n\t\t\t\tthis._applyUngroupedTileColor(item, color);\n\t\t\t},\n\t\t\tthis\n\t\t);\n\t}\n\n\t/**\n\t * Fetch frequent apps and set apps aggregation\n\t * @private\n\t */\n\tpublic async loadApps() {\n\t\tlet frequentVisualizations = await this._getFrequentVisualizations();\n\t\tthis.destroyAggregation(\"apps\", true);\n\t\tfrequentVisualizations = frequentVisualizations.map((visualization, index) => {\n\t\t\treturn {\n\t\t\t\t...visualization,\n\t\t\t\tmenuItems: this._getActions(visualization.addedInFavorites, index)\n\t\t\t};\n\t\t});\n\t\t//convert apps objects array to apps instances\n\t\tconst frequentApps = this.generateApps(frequentVisualizations);\n\t\tthis.setApps(frequentApps);\n\t}\n\n\t/**\n\t * Returns list of frequent apps\n\t * @private\n\t * @returns {object[]} - Array of frequent apps.\n\t */\n\tprivate async _getFrequentVisualizations() {\n\t\ttry {\n\t\t\tconst UserRecentsService = await Container.getServiceAsync<UserRecents>(\"UserRecents\");\n\t\t\tconst frequentActivities: IActivity[] = (await UserRecentsService?.getFrequentActivity()) || [];\n\t\t\t//convert activity to apps\n\t\t\tconst frequentVisualizations = await this.convertActivitiesToVisualizations(frequentActivities);\n\t\t\treturn frequentVisualizations;\n\t\t} catch (error) {\n\t\t\tLog.error(error as string);\n\t\t\treturn [];\n\t\t}\n\t}\n\n\t/**\n\t * Returns list of actions available for selected app\n\t * @private\n\t * @param {boolean} isAppAddedInFavorite - true if app is already present in favorite, false otherwise.\n\t * @returns {sap.cux.home.MenuItem[]} - Array of list items.\n\t */\n\tprivate _getActions(isAppAddedInFavorite: boolean = false, index?: number) {\n\t\tconst action = [];\n\t\tif (!isAppAddedInFavorite) {\n\t\t\taction.push(\n\t\t\t\tnew MenuItem(`${this.getKey()}--addToFavorites--${index}`, {\n\t\t\t\t\ttitle: this._i18nBundle.getText(\"addToFavorites\"),\n\t\t\t\t\ticon: \"sap-icon://add-favorite\",\n\t\t\t\t\tpress: (event) => {\n\t\t\t\t\t\tvoid this._addAppToFavorites(event);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t);\n\t\t}\n\t\treturn action;\n\t}\n\n\t/**\n\t * Generates illustrated message for frequent apps panel.\n\t * @private\n\t * @override\n\t * @returns {sap.m.IllustratedMessage} Illustrated error message.\n\t */\n\tprotected generateIllustratedMessage() {\n\t\tconst illustratedMessage = super.generateIllustratedMessage();\n\t\t//override the default description\n\t\tillustratedMessage.setDescription(this._i18nBundle.getText(\"noFreqAppsDescription\"));\n\t\treturn illustratedMessage;\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,wIAAAC,GAAA,EAAAC,QAAA,EAAAC,SAAA,EAAAC,QAAA,EAAAC,kBAAA,EAAAC,UAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAkjBO,SAAAG,OAAgBC,IAAI,EAAEC,OAAO,EAAE;IACrC,IAAI;MACH,IAAIC,MAAM,GAAGF,IAAI,CAAC,CAAC;IACpB,CAAC,CAAC,OAAMG,CAAC,EAAE;MACV,OAAOF,OAAO,CAACE,CAAC,CAAC;IAClB;IACA,IAAID,MAAM,IAAIA,MAAM,CAACE,IAAI,EAAE;MAC1B,OAAOF,MAAM,CAACE,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AA","ignoreList":[]}
@@ -26,8 +26,8 @@ import MenuItem from "./MenuItem";
26
26
  * @version 0.0.1
27
27
  * @since 1.121.0
28
28
  *
29
- * @internal
30
- * @public
29
+ * @private
30
+ * @ui5-restricted ux.eng.s4producthomes1
31
31
  *
32
32
  * @alias sap.cux.home.FrequentAppPanel
33
33
  */
@@ -16,8 +16,8 @@ declare module "sap/cux/home/Group" {
16
16
  * @version 0.0.1
17
17
  * @since 1.121.0
18
18
  *
19
- * @internal
20
- * @public
19
+ * @private
20
+ * @ui5-restricted ux.eng.s4producthomes1
21
21
  *
22
22
  * @alias sap.cux.home.Group
23
23
  */
@@ -19,8 +19,8 @@ sap.ui.define(["./BaseApp"], function (__BaseApp) {
19
19
  * @version 0.0.1
20
20
  * @since 1.121.0
21
21
  *
22
- * @internal
23
- * @public
22
+ * @private
23
+ * @ui5-restricted ux.eng.s4producthomes1
24
24
  *
25
25
  * @alias sap.cux.home.Group
26
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Group.js","names":["sap","ui","define","__BaseApp","_interopRequireDefault","obj","__esModule","default","BaseApp","Group","extend","metadata","library","properties","number","type","group","defaultValue","groupId","pageId","aggregations","apps","multiple","singularName","events","press","parameters","constructor","_constructor","id","settings","BaseApp.prototype.constructor.call","_handlePress","firePress","getGroupId","getPageId"],"sources":["Group.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport BaseApp from \"./BaseApp\";\nimport { $GroupSettings } from \"./Group\";\n\n/**\n *\n * Class for managing apps group.\n *\n * @extends sap.cux.home.BaseApp\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @internal\n * @public\n *\n * @alias sap.cux.home.Group\n */\nexport default class Group extends BaseApp {\n\tconstructor(idOrSettings?: string | $GroupSettings);\n\tconstructor(id?: string, settings?: $GroupSettings);\n\t/**\n\t * Constructor for a new Group.\n\t *\n\t * @param {string} [id] ID for the new group, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new group\n\t */\n\tpublic constructor(id?: string, settings?: $GroupSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Number of apps, shown as folder badge\n\t\t\t */\n\t\t\tnumber: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Id of the group\n\t\t\t */\n\t\t\tgroupId: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Id of the page associated with the group.\n\t\t\t */\n\t\t\tpageId: { type: \"string\", group: \"Misc\", defaultValue: \"\" }\n\t\t},\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Apps aggregation for Groups\n\t\t\t */\n\t\t\tapps: { type: \"sap.cux.home.App\", multiple: true, singularName: \"app\" }\n\t\t},\n\t\tevents: {\n\t\t\t/**\n\t\t\t * Fired when the control is pressed.\n\t\t\t */\n\t\t\tpress: {\n\t\t\t\tparameters: {\n\t\t\t\t\t/**\n\t\t\t\t\t * ID of the group that was pressed.\n\t\t\t\t\t */\n\t\t\t\t\tgroupId: { type: \"string\" },\n\t\t\t\t\t/**\n\t\t\t\t\t * ID of the page associated with the group that was pressed.\n\t\t\t\t\t */\n\t\t\t\t\tpageId: { type: \"string\" }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * Handles the press event for a group.\n\t * Retrieves the parent of the group and shows the group detail dialog.\n\t * @private\n\t */\n\tpublic _handlePress(): void {\n\t\tthis.firePress({ groupId: this.getGroupId(), pageId: this.getPageId() });\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,0BAAAC,SAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,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ACA;IACQE,YAAY,WAAAA,aAAA,EAAS;MAC3B,IAAI,CAACC,SAAS,CAAC;QAAEf,OAAO,EAAE,IAAI,CAACgB,UAAU,CAAC,CAAC;QAAEf,MAAM,EAAE,IAAI,CAACgB,SAAS,CAAC;MAAE,CAAC,CAAC;IACzE;EAAC;EAAA,OA7DmB1B,KAAK;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"Group.js","names":["sap","ui","define","__BaseApp","_interopRequireDefault","obj","__esModule","default","BaseApp","Group","extend","metadata","library","properties","number","type","group","defaultValue","groupId","pageId","aggregations","apps","multiple","singularName","events","press","parameters","constructor","_constructor","id","settings","BaseApp.prototype.constructor.call","_handlePress","firePress","getGroupId","getPageId"],"sources":["Group.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport type { MetadataOptions } from \"sap/ui/core/Element\";\nimport BaseApp from \"./BaseApp\";\nimport { $GroupSettings } from \"./Group\";\n\n/**\n *\n * Class for managing apps group.\n *\n * @extends sap.cux.home.BaseApp\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121.0\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.Group\n */\nexport default class Group extends BaseApp {\n\tconstructor(idOrSettings?: string | $GroupSettings);\n\tconstructor(id?: string, settings?: $GroupSettings);\n\t/**\n\t * Constructor for a new Group.\n\t *\n\t * @param {string} [id] ID for the new group, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new group\n\t */\n\tpublic constructor(id?: string, settings?: $GroupSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\tstatic readonly metadata: MetadataOptions = {\n\t\tlibrary: \"sap.cux.home\",\n\t\tproperties: {\n\t\t\t/**\n\t\t\t * Number of apps, shown as folder badge\n\t\t\t */\n\t\t\tnumber: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Id of the group\n\t\t\t */\n\t\t\tgroupId: { type: \"string\", group: \"Misc\", defaultValue: \"\" },\n\t\t\t/**\n\t\t\t * Id of the page associated with the group.\n\t\t\t */\n\t\t\tpageId: { type: \"string\", group: \"Misc\", defaultValue: \"\" }\n\t\t},\n\t\taggregations: {\n\t\t\t/**\n\t\t\t * Apps aggregation for Groups\n\t\t\t */\n\t\t\tapps: { type: \"sap.cux.home.App\", multiple: true, singularName: \"app\" }\n\t\t},\n\t\tevents: {\n\t\t\t/**\n\t\t\t * Fired when the control is pressed.\n\t\t\t */\n\t\t\tpress: {\n\t\t\t\tparameters: {\n\t\t\t\t\t/**\n\t\t\t\t\t * ID of the group that was pressed.\n\t\t\t\t\t */\n\t\t\t\t\tgroupId: { type: \"string\" },\n\t\t\t\t\t/**\n\t\t\t\t\t * ID of the page associated with the group that was pressed.\n\t\t\t\t\t */\n\t\t\t\t\tpageId: { type: \"string\" }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * Handles the press event for a group.\n\t * Retrieves the parent of the group and shows the group detail dialog.\n\t * @private\n\t */\n\tpublic _handlePress(): void {\n\t\tthis.firePress({ groupId: this.getGroupId(), pageId: this.getPageId() });\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,0BAAAC,SAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAMOG,OAAO,GAAAJ,sBAAA,CAAAD,SAAA;EAGd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAdA,MAeqBM,KAAK,GAASD,OAAO,CAAAE,MAAA;IAazBC,QAAQ,EAAoB;MAC3CC,OAAO,EAAE,cAAc;MACvBC,UAAU,EAAE;QACX;AACH;AACA;QACGC,MAAM,EAAE;UAAEC,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE;QAAG,CAAC;QAC3D;AACH;AACA;QACGC,OAAO,EAAE;UAAEH,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE;QAAG,CAAC;QAC5D;AACH;AACA;QACGE,MAAM,EAAE;UAAEJ,IAAI,EAAE,QAAQ;UAAEC,KAAK,EAAE,MAAM;UAAEC,YAAY,EAAE;QAAG;MAC3D,CAAC;MACDG,YAAY,EAAE;QACb;AACH;AACA;QACGC,IAAI,EAAE;UAAEN,IAAI,EAAE,kBAAkB;UAAEO,QAAQ,EAAE,IAAI;UAAEC,YAAY,EAAE;QAAM;MACvE,CAAC;MACDC,MAAM,EAAE;QACP;AACH;AACA;QACGC,KAAK,EAAE;UACNC,UAAU,EAAE;YACX;AACL;AACA;YACKR,OAAO,EAAE;cAAEH,IAAI,EAAE;YAAS,CAAC;YAC3B;AACL;AACA;YACKI,MAAM,EAAE;cAAEJ,IAAI,EAAE;YAAS;UAC1B;QACD;MACD;IACD,CAAC;IAjDD;AACD;AACA;AACA;AACA;AACA;IACQY,WAAW,WAAAC,aAACC,EAAW,EAAEC,QAAyB,EAAE;MAC1DC,kCAAA,OAAMF,EAAE,EAAEC,QAAQ;IACnB,CAAC;IA2CD;AACD;AACA;AACA;AACA;IACQE,YAAY,WAAAA,aAAA,EAAS;MAC3B,IAAI,CAACC,SAAS,CAAC;QAAEf,OAAO,EAAE,IAAI,CAACgB,UAAU,CAAC,CAAC;QAAEf,MAAM,EAAE,IAAI,CAACgB,SAAS,CAAC;MAAE,CAAC,CAAC;IACzE;EAAC;EAAA,OA7DmB1B,KAAK;AAAA","ignoreList":[]}
@@ -17,8 +17,8 @@ import { $GroupSettings } from "./Group";
17
17
  * @version 0.0.1
18
18
  * @since 1.121.0
19
19
  *
20
- * @internal
21
- * @public
20
+ * @private
21
+ * @ui5-restricted ux.eng.s4producthomes1
22
22
  *
23
23
  * @alias sap.cux.home.Group
24
24
  */
@@ -14,8 +14,8 @@ declare module "sap/cux/home/IToDoPanel" {
14
14
  * @since 1.121
15
15
  *
16
16
  * @interface
17
- * @internal
18
- * @public
17
+ * @private
18
+ * @ui5-restricted ux.eng.s4producthomes1
19
19
  *
20
20
  * @alias sap.cux.home.IToDoPanel
21
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"IToDoPanel.js","names":["sap","ui","define","IToDoPanel"],"sources":["IToDoPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport Control from \"sap/ui/core/Control\";\nimport Context from \"sap/ui/model/Context\";\nimport { RequestOptions } from \"./ToDoPanel\";\n\n/**\n * Common Interface for creating To-Do Panels displayed in the {@link sap.cux.home.ToDosContainer}.\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @interface\n * @internal\n * @public\n *\n * @alias sap.cux.home.IToDoPanel\n */\nexport default interface IToDoPanel {\n\t/**\n\t * Generate a default card template for the To Do Panel.\n\t * An extended panel can have it's own template by overridding\n\t * this method and providing a custom card template.\n\t *\n\t * @public\n\t * @param {string} id The ID for the template.\n\t * @param {object} context The context required for the template.\n\t * @returns {object} The generated card template.\n\t */\n\tgenerateCardTemplate(id: string, context: Context): Control;\n\t/**\n\t * Provides custom request URLs specific to the To-Do Panel.\n\t *\n\t * @public\n\t * @param {number} cardCount - The number of cards which will be displayed in the To-Do Panel.\n\t * @returns {string[]} An array of request URLs.\n\t */\n\tgenerateRequestUrls?(cardCount: number): string[];\n\n\t/**\n\t * Handles the data received from a batch request.\n\t * This hook can be used to process the data before it is displayed.\n\t *\n\t * @public\n\t * @param {unknown[]} data - The data received from the request.\n\t * @param {RequestOptions} [options] - Optional request options.\n\t * @returns {Promise<void>} A promise that resolves when the data has been processed.\n\t */\n\tonDataReceived?(data: unknown[], options?: RequestOptions): Promise<void>;\n\n\t/**\n\t * Retrieves the text for the \"No Data\" message for the To-Do Panel.\n\t *\n\t * @public\n\t * @returns {string} The text for the \"No Data\" message.\n\t */\n\tgetNoDataText?(): string;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA;EAAA;;EAAA,OAAAC,UAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"IToDoPanel.js","names":["sap","ui","define","IToDoPanel"],"sources":["IToDoPanel.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\nimport Control from \"sap/ui/core/Control\";\nimport Context from \"sap/ui/model/Context\";\nimport { RequestOptions } from \"./ToDoPanel\";\n\n/**\n * Common Interface for creating To-Do Panels displayed in the {@link sap.cux.home.ToDosContainer}.\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @interface\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.IToDoPanel\n */\nexport default interface IToDoPanel {\n\t/**\n\t * Generate a default card template for the To Do Panel.\n\t * An extended panel can have it's own template by overridding\n\t * this method and providing a custom card template.\n\t *\n\t * @public\n\t * @param {string} id The ID for the template.\n\t * @param {object} context The context required for the template.\n\t * @returns {object} The generated card template.\n\t */\n\tgenerateCardTemplate(id: string, context: Context): Control;\n\t/**\n\t * Provides custom request URLs specific to the To-Do Panel.\n\t *\n\t * @public\n\t * @param {number} cardCount - The number of cards which will be displayed in the To-Do Panel.\n\t * @returns {string[]} An array of request URLs.\n\t */\n\tgenerateRequestUrls?(cardCount: number): string[];\n\n\t/**\n\t * Handles the data received from a batch request.\n\t * This hook can be used to process the data before it is displayed.\n\t *\n\t * @public\n\t * @param {unknown[]} data - The data received from the request.\n\t * @param {RequestOptions} [options] - Optional request options.\n\t * @returns {Promise<void>} A promise that resolves when the data has been processed.\n\t */\n\tonDataReceived?(data: unknown[], options?: RequestOptions): Promise<void>;\n\n\t/**\n\t * Retrieves the text for the \"No Data\" message for the To-Do Panel.\n\t *\n\t * @public\n\t * @returns {string} The text for the \"No Data\" message.\n\t */\n\tgetNoDataText?(): string;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA;EAAA;;EAAA,OAAAC,UAAA;AAAA","ignoreList":[]}
@@ -14,8 +14,8 @@ import { RequestOptions } from "./ToDoPanel";
14
14
  * @since 1.121
15
15
  *
16
16
  * @interface
17
- * @internal
18
- * @public
17
+ * @private
18
+ * @ui5-restricted ux.eng.s4producthomes1
19
19
  *
20
20
  * @alias sap.cux.home.IToDoPanel
21
21
  */
@@ -33,8 +33,8 @@ declare module "sap/cux/home/InsightsContainer" {
33
33
  * @version 0.0.1
34
34
  * @since 1.121
35
35
  *
36
- * @internal
37
- * @public
36
+ * @private
37
+ * @ui5-restricted ux.eng.s4producthomes1
38
38
  *
39
39
  * @alias sap.cux.home.InsightsContainer
40
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"InsightsContainer.d.ts","sourceRoot":"../../../../..","sources":["src/sap/cux/home/InsightsContainer.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,gCAAgC,CAAC;IAChD;;;OAGG;IAEH,OAAO,MAAM,MAAM,cAAc,CAAC;IAClC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;IACzE,OAAO,aAAa,MAAM,4BAA4B,CAAC;IACvD,OAAO,SAAS,MAAM,wBAAwB,CAAC;IAC/C,OAAO,UAAU,EAAE,EAA+B,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;IAG3G,OAAO,QAAQ,MAAM,uBAAuB,CAAC;IAE7C,OAAO,UAAU,EAAE,EAA+B,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;IAI3G,MAAM,cAAc,EAAE,MAAkC,CAAC;IACzD,MAAM,cAAc,EAAE,MAAkC,CAAC;IACzD,MAA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AEH,OAAO,CAAC,qBAAqB;QAU7B;;;;;WAKG;QACI,YAAY;QAoBnB;;;;WAIG;QACI,kBAAkB,CAAC,SAAS,EAAE,QAAQ,EAAE;QAM/C;;;;WAIG;QACI,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE;QAIrD;;;;;;;WAOG;QACI,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE;YAAE,MAAM,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE;QAQlF;;;;;;WAMG;QACI,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM;QAQjF;;;;;;WAMG;QACI,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM;QAQ3E;;;;;WAKG;QACH,OAAO,CAAC,oBAAoB;QAI5B;;;;;WAKG;QACH,OAAO,CAAC,yBAAyB;QAGjC;;;;;WAKG;QACH,OAAO,CAAC,cAAc;QAOtB;;;;WAIG;QACH,SAAS,CAAC,4BAA4B,IAAI,MAAM;QAIhD;;;;;WAKG;QACU,WAAW,CAAC,GAAG,EAAE,MAAM;KAIpC;CAEA"}
@@ -2,7 +2,7 @@
2
2
  * SAP UI development toolkit for HTML5 (SAPUI5)
3
3
  * * (c) Copyright 2009-2025 SAP SE. All rights reserved
4
4
  */
5
- sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./utils/placeholder/InsightsPlaceholder", "./SpaceInsightsPanel", "./TilesPanel", "./utils/Device", "./utils/InsightsUtils"], function (__BaseContainer, __CardsPanel, __ErrorPanel, ___utils_placeholder_InsightsPlaceholder, __SpaceInsightsPanel, __TilesPanel, ___utils_Device, ___utils_InsightsUtils) {
5
+ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./SpaceInsightsPanel", "./TilesPanel", "./utils/Device", "./utils/InsightsUtils", "./utils/placeholder/InsightsPlaceholder"], function (__BaseContainer, __CardsPanel, __ErrorPanel, __SpaceInsightsPanel, __TilesPanel, ___utils_Device, ___utils_InsightsUtils, ___utils_placeholder_InsightsPlaceholder) {
6
6
  "use strict";
7
7
 
8
8
  function _interopRequireDefault(obj) {
@@ -13,13 +13,13 @@ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./utils/place
13
13
  const cardsContainerActionButtons = __CardsPanel["cardsContainerActionButtons"];
14
14
  const cardsContainerMenuItems = __CardsPanel["cardsContainerMenuItems"];
15
15
  const ErrorPanel = _interopRequireDefault(__ErrorPanel);
16
- const getInsightsPlaceholder = ___utils_placeholder_InsightsPlaceholder["getInsightsPlaceholder"];
17
16
  const SpaceInsightsPanel = _interopRequireDefault(__SpaceInsightsPanel);
18
17
  const TilesPanel = _interopRequireDefault(__TilesPanel);
19
18
  const tilesContainerActionButtons = __TilesPanel["tilesContainerActionButtons"];
20
19
  const tilesContainerMenuItems = __TilesPanel["tilesContainerMenuItems"];
21
20
  const DeviceType = ___utils_Device["DeviceType"];
22
21
  const sortMenuItems = ___utils_InsightsUtils["sortMenuItems"];
22
+ const getInsightsPlaceholder = ___utils_placeholder_InsightsPlaceholder["getInsightsPlaceholder"];
23
23
  const tilesPanelName = "sap.cux.home.TilesPanel";
24
24
  const cardsPanelName = "sap.cux.home.CardsPanel";
25
25
  const spaceInsightsPanelName = "sap.cux.home.SpaceInsightsPanel";
@@ -34,8 +34,8 @@ sap.ui.define(["./BaseContainer", "./CardsPanel", "./ErrorPanel", "./utils/place
34
34
  * @version 0.0.1
35
35
  * @since 1.121
36
36
  *
37
- * @internal
38
- * @public
37
+ * @private
38
+ * @ui5-restricted ux.eng.s4producthomes1
39
39
  *
40
40
  * @alias sap.cux.home.InsightsContainer
41
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"InsightsContainer.js","names":["sap","ui","define","__BaseContainer","__CardsPanel","__ErrorPanel","___utils_placeholder_InsightsPlaceholder","__SpaceInsightsPanel","__TilesPanel","___utils_Device","___utils_InsightsUtils","_interopRequireDefault","obj","__esModule","default","BaseContainer","CardsPanel","cardsContainerActionButtons","cardsContainerMenuItems","ErrorPanel","getInsightsPlaceholder","SpaceInsightsPanel","TilesPanel","tilesContainerActionButtons","tilesContainerMenuItems","DeviceType","sortMenuItems","tilesPanelName","cardsPanelName","spaceInsightsPanelName","sortedMenuItems","REFRESH","ADD_APPS","EDIT_TILES","EDIT_CARDS","AI_INSIGHT_CARD","SHOW_MORE","InsightsContainer","extend","renderer","apiVersion","constructor","_constructor","id","settings","BaseContainer.prototype.constructor.call","_isInitialRender","init","_init","BaseContainer.prototype.init.call","setProperty","_i18nBundle","getText","panelLoaded","loaded","undefined","count","panelContext","setTooltip","String","addCustomSetting","load","_load","aContent","getContent","forEach","oContent","getMetadata","getName","addCommonMenuItems","getContainerMenuItems","addCommonActionButtons","getContainerActionButtons","_addContainerHeader","content","panel","handleHideHeader","attachHandleHidePanel","handleHidePanel","attachHandleUnhidePanel","unhidePanelIfHidden","renderPanel","_handleHidePanel","removeContent","panelName","handlePanelLoad","panels","_getLoadedPanelNames","visibleOrPendingPanels","getVisibleOrPendingPanels","panelCount","length","_errorPanel","getId","messageTitle","messageDescription","getData","addAggregation","hiddenMenuItems","hiddenActionButtons","_hideMenuItems","_hideActionButtons","getTitle","_removeContainerHeader","getAggregation","menuItem","toggleMenuListItem","actionButton","toggleActionButton","handleAddHeader","containerMenuItems","includedInHiddenItems","some","hiddenItem","includes","containerActionButtons","updatePanelsItemCount","_updatePanelsItemCount","itemCount","isSpaceInsightsPanel","_unhidePanelIfHidden","layout","_getLayout","panelExpandedName","_getCurrentExpandedElementName","processPanelVisibility","insertContentFn","panelWrapper","_getPanelContentWrapper","getProperty","hasStyleClass","removeStyleClass","listener","detachOnCollapse","attachOnCollapse","insertContent","addContent","_updateHeaderElements","adjustLayout","_adjustLayout","getDeviceType","Mobile","toggleActionButtons","ADD_TILES","_addCommonMenuItems","menuItems","_sortMenuItems","_addCommonActionButtons","actionButtons","_handlePanelLoad","oVal","updateActionButton","_updateActionButton","visibility","text","getVisible","setText","_updateContainerHeader","updateMenuItem","_updateMenuItem","setTitle","Object","keys","filter","_getVisibleOrPendingPanels","removeAllAggregation","getGenericPlaceholderContent","_getGenericPlaceholderContent","refreshData","_refreshData","key","_this","values","find","getKey","Promise","resolve","then","e","reject"],"sources":["InsightsContainer.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Button from \"sap/m/Button\";\nimport type { $BaseContainerSettings } from \"./BaseContainer\";\nimport BaseContainer from \"./BaseContainer\";\nimport BasePanel from \"./BasePanel\";\nimport CardsPanel, { cardsContainerActionButtons, cardsContainerMenuItems } from \"./CardsPanel\";\nimport ErrorPanel from \"./ErrorPanel\";\nimport { getInsightsPlaceholder } from \"./utils/placeholder/InsightsPlaceholder\";\nimport MenuItem from \"./MenuItem\";\nimport SpaceInsightsPanel from \"./SpaceInsightsPanel\";\nimport TilesPanel, { tilesContainerActionButtons, tilesContainerMenuItems } from \"./TilesPanel\";\nimport { DeviceType } from \"./utils/Device\";\nimport { sortMenuItems } from \"./utils/InsightsUtils\";\n\nconst tilesPanelName: string = \"sap.cux.home.TilesPanel\";\nconst cardsPanelName: string = \"sap.cux.home.CardsPanel\";\nconst spaceInsightsPanelName: string = \"sap.cux.home.SpaceInsightsPanel\";\nconst sortedMenuItems: (tilesContainerMenuItems | cardsContainerMenuItems | string)[] = [\n\ttilesContainerMenuItems.REFRESH,\n\tcardsContainerMenuItems.REFRESH,\n\ttilesContainerMenuItems.ADD_APPS,\n\ttilesContainerMenuItems.EDIT_TILES,\n\tcardsContainerMenuItems.EDIT_CARDS,\n\tcardsContainerMenuItems.AI_INSIGHT_CARD,\n\ttilesContainerMenuItems.SHOW_MORE,\n\tcardsContainerMenuItems.SHOW_MORE,\n\t\"settings\"\n];\n\ninterface IpanelLoaded {\n\t[key: string]: { loaded: boolean | undefined; count: number };\n}\n\ninterface IpanelContext {\n\t[key: string]: TilesPanel | CardsPanel;\n}\n\n/**\n *\n * Container class for managing and storing Insights Tiles and Insights Cards.\n *\n * @extends sap.cux.home.BaseContainer\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @internal\n * @public\n *\n * @alias sap.cux.home.InsightsContainer\n */\n\nexport default class InsightsContainer extends BaseContainer {\n\tstatic readonly renderer = {\n\t\t...BaseContainer.renderer,\n\t\tapiVersion: 2\n\t};\n\tprivate _errorPanel!: ErrorPanel;\n\tprivate _isInitialRender: boolean = true;\n\tprivate panelLoaded!: IpanelLoaded;\n\tprivate panelContext!: IpanelContext;\n\n\tconstructor(id?: string | $BaseContainerSettings);\n\tconstructor(id?: string, settings?: $BaseContainerSettings);\n\t/**\n\t * Constructor for a new Insights container.\n\t *\n\t * @param {string} [id] ID for the new control, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new control\n\t */\n\tpublic constructor(id?: string, settings?: $BaseContainerSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tsuper.init();\n\t\tthis.setProperty(\"title\", this._i18nBundle?.getText(\"insights\"));\n\t\t/* As Container Level default value for enableSettings is false,\n\t\t\tthis needs to be added from container level.\n\t\t\t(default value cannot be true as News & Page Container header should be hidden)\n\t\t*/\n\t\tthis.setProperty(\"enableSettings\", true);\n\t\tthis.setProperty(\"orientation\", \"Vertical\");\n\t\tthis.panelLoaded = {\n\t\t\t[tilesPanelName]: { loaded: undefined, count: 0 },\n\t\t\t[cardsPanelName]: { loaded: undefined, count: 0 },\n\t\t\t[spaceInsightsPanelName]: { loaded: undefined, count: 0 }\n\t\t};\n\t\tthis.panelContext = {};\n\t\tthis.setTooltip(String(this._i18nBundle.getText(\"insights\")));\n\t\tthis.addCustomSetting(\"title\", this._i18nBundle.getText(\"insightLayoutSectionTitle\") as string);\n\t\tthis.setTooltip(String(this._i18nBundle.getText(\"insightLayoutSectionTitle\")));\n\t}\n\n\t/**\n\t * Loads the Insights section.\n\t * Overrides the load method of the BaseContainer.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic load() {\n\t\tif (this._isInitialRender) {\n\t\t\tconst aContent = this.getContent();\n\t\t\taContent.forEach((oContent) => {\n\t\t\t\tthis.panelContext[oContent.getMetadata().getName()] = oContent as TilesPanel | CardsPanel;\n\t\t\t\tthis.addCommonMenuItems((oContent as TilesPanel | CardsPanel).getContainerMenuItems?.());\n\t\t\t\tthis.addCommonActionButtons((oContent as TilesPanel | CardsPanel).getContainerActionButtons?.());\n\t\t\t});\n\n\t\t\tthis._addContainerHeader();\n\n\t\t\t// Render individual panels\n\t\t\taContent.forEach((content) => {\n\t\t\t\tconst panel = content as TilesPanel | CardsPanel;\n\t\t\t\tpanel.handleHideHeader();\n\t\t\t\tpanel.attachHandleHidePanel(() => this.handleHidePanel(panel));\n\t\t\t\tpanel.attachHandleUnhidePanel(() => this.unhidePanelIfHidden(panel));\n\t\t\t\tvoid panel.renderPanel();\n\t\t\t});\n\t\t\tthis._isInitialRender = false;\n\t\t}\n\t}\n\n\t/**\n\t * Handles the hiding of a panel by removing its content, updating the panel load status,\n\t * and managing the display of the container header and error panel.\n\t *\n\t * @param {BasePanel} panel - The panel to be hidden.\n\t * @private\n\t */\n\tpublic handleHidePanel(panel: BasePanel) {\n\t\tthis.removeContent(panel);\n\t\tconst panelName = panel.getMetadata().getName();\n\t\tthis.handlePanelLoad(panelName, { loaded: false, count: 0 });\n\t\tconst panels = this._getLoadedPanelNames() || [];\n\t\tconst visibleOrPendingPanels = this.getVisibleOrPendingPanels() || [];\n\t\tconst panelCount = panels?.length;\n\t\tthis._addContainerHeader();\n\t\t// only show error panel if all panels loaded state is false\n\t\tif (\n\t\t\tvisibleOrPendingPanels.length === 0 ||\n\t\t\t(visibleOrPendingPanels.length === 1 && visibleOrPendingPanels[0] === spaceInsightsPanelName)\n\t\t) {\n\t\t\tif (!this._errorPanel) {\n\t\t\t\tthis._errorPanel = new ErrorPanel(`${this.getId()}-errorPanel`, {\n\t\t\t\t\tmessageTitle: this._i18nBundle.getText(\"noAppsTitle\"),\n\t\t\t\t\tmessageDescription: this._i18nBundle.getText(\"noInsightsMsg\")\n\t\t\t\t});\n\t\t\t\tthis._errorPanel.getData();\n\t\t\t}\n\t\t\tthis.addAggregation(\"content\", this._errorPanel);\n\t\t} else if (panelCount === 1) {\n\t\t\tconst panel = this.getContent()[0];\n\t\t\tif (panel && !(panel instanceof ErrorPanel)) {\n\t\t\t\t(panel as TilesPanel | CardsPanel)?.handleHideHeader();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Adds the container header based on the number of visible panels.\n\t *\n\t * @private\n\t */\n\tprivate _addContainerHeader() {\n\t\tconst panels: string[] = this._getLoadedPanelNames();\n\t\tlet hiddenMenuItems: string[] = [];\n\t\tlet hiddenActionButtons: string[] = [];\n\t\tthis.setProperty(\"title\", this._i18nBundle?.getText(\"insights\"));\n\t\tif (panels.length === 0 || this.getContent()[0] instanceof ErrorPanel) {\n\t\t\thiddenMenuItems = [\n\t\t\t\ttilesContainerMenuItems.REFRESH,\n\t\t\t\tcardsContainerMenuItems.REFRESH,\n\t\t\t\ttilesContainerMenuItems.SHOW_MORE,\n\t\t\t\tcardsContainerMenuItems.SHOW_MORE\n\t\t\t];\n\t\t\tthis._hideMenuItems(hiddenMenuItems);\n\t\t\thiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE, cardsContainerActionButtons.SHOW_MORE];\n\t\t\tthis._hideActionButtons(hiddenActionButtons);\n\t\t} else if (panels.length === 1) {\n\t\t\tconst panelName = panels[0];\n\t\t\tthis.setProperty(\"title\", `${this._i18nBundle?.getText(\"insights\")} (${this.panelLoaded[panelName].count || 0})`);\n\t\t\tif (this.panelContext[panels[0]] instanceof TilesPanel) {\n\t\t\t\thiddenMenuItems = [cardsContainerMenuItems.REFRESH, cardsContainerMenuItems.SHOW_MORE];\n\t\t\t\thiddenActionButtons = [cardsContainerActionButtons.SHOW_MORE];\n\t\t\t}\n\t\t\tif (this.panelContext[panels[0]] instanceof CardsPanel) {\n\t\t\t\thiddenMenuItems = [tilesContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE];\n\t\t\t\thiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE];\n\t\t\t}\n\t\t\tif (this.panelContext[panels[0]] instanceof SpaceInsightsPanel) {\n\t\t\t\tthis.setProperty(\"title\", `${this.panelContext[panels[0]].getTitle()} (${this.panelLoaded[panelName].count || 0})`);\n\t\t\t\thiddenMenuItems = [tilesContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE, \"settings\"];\n\t\t\t\thiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE];\n\t\t\t}\n\t\t\tthis._hideMenuItems(hiddenMenuItems);\n\t\t\tthis._hideActionButtons(hiddenActionButtons);\n\t\t}\n\t}\n\n\t/**\n\t * Removes the container header.\n\t *\n\t * @private\n\t */\n\tprivate _removeContainerHeader() {\n\t\tthis.setProperty(\"title\", \"\");\n\t\t(this.getAggregation(\"menuItems\") as MenuItem[])?.forEach((menuItem) => this.toggleMenuListItem(menuItem, false));\n\t\t(this.getAggregation(\"actionButtons\") as Button[])?.forEach((actionButton) => this.toggleActionButton(actionButton, false));\n\t\tconst panels = this._getLoadedPanelNames();\n\t\tpanels.forEach((panelName) => {\n\t\t\tthis.panelContext[panelName]?.handleAddHeader?.();\n\t\t});\n\t}\n\n\t/**\n\t * Hides the specified menu items.\n\t *\n\t * @private\n\t * @param {string[]} hiddenMenuItems - The IDs of the menu items to hide.\n\t */\n\tprivate _hideMenuItems(hiddenMenuItems: string[]) {\n\t\tconst containerMenuItems = this.getAggregation(\"menuItems\") as MenuItem[];\n\t\tcontainerMenuItems?.forEach((menuItem) => {\n\t\t\tconst includedInHiddenItems = hiddenMenuItems.some((hiddenItem) => menuItem.getId().includes(hiddenItem));\n\t\t\tthis.toggleMenuListItem(menuItem, !includedInHiddenItems);\n\t\t});\n\t}\n\n\t/**\n\t * Hides the specified action buttons.\n\t *\n\t * @private\n\t * @param {string[]} hiddenActionButtons - The IDs of the action buttons to hide.\n\t */\n\tprivate _hideActionButtons(hiddenActionButtons: string[]) {\n\t\tconst containerActionButtons = this.getAggregation(\"actionButtons\") as Button[];\n\t\tcontainerActionButtons?.forEach((actionButton) => {\n\t\t\tconst includedInHiddenItems = hiddenActionButtons.some((hiddenItem) => actionButton.getId().includes(hiddenItem));\n\t\t\tthis.toggleActionButton(actionButton, !includedInHiddenItems);\n\t\t});\n\t}\n\n\t/**\n\t * Updates the item count for the specified panel.\n\t *\n\t * @param {number} itemCount - The new item count.\n\t * @param {string} panelName - The name of the panel.\n\t */\n\tpublic updatePanelsItemCount(itemCount: number, panelName: string) {\n\t\tthis.panelLoaded[panelName].count = itemCount;\n\t\tconst panels = this._getLoadedPanelNames();\n\t\t// Container Title Will be displayed only in case of only one panel is present\n\t\tif (panels.length === 1) {\n\t\t\tconst isSpaceInsightsPanel = this.panelContext[panels[0]] instanceof SpaceInsightsPanel;\n\t\t\tthis.setProperty(\n\t\t\t\t\"title\",\n\t\t\t\t`${isSpaceInsightsPanel ? this.panelContext[panels[0]].getTitle() : this._i18nBundle?.getText(\"insights\")} (${itemCount || 0})`\n\t\t\t);\n\t\t}\n\t}\n\n\t/**\n\t * Unhides the specified panel if it is hidden.\n\t *\n\t * @param {TilesPanel | CardsPanel} panel - The panel to unhide.\n\t */\n\tpublic unhidePanelIfHidden(panel: TilesPanel | CardsPanel) {\n\t\tconst layout = this._getLayout();\n\t\tconst panelExpandedName = layout._getCurrentExpandedElementName();\n\n\t\tif (this._errorPanel) {\n\t\t\tthis.removeContent(this._errorPanel);\n\t\t}\n\n\t\t// Function to handle panel content insertion\n\t\tconst processPanelVisibility = (panelName: string, insertContentFn: () => void) => {\n\t\t\tconst panelWrapper = this._getPanelContentWrapper(panel);\n\t\t\tif (!panelExpandedName || panelExpandedName === panel.getProperty(\"fullScreenName\")) {\n\t\t\t\t/**\n loaded value can be false or undefined, false being hidden and undefined being loading\n if the panel is hidden then only unhide it\n */\n\t\t\t\tif (this.panelLoaded[panelName].loaded === false) {\n\t\t\t\t\tinsertContentFn();\n\t\t\t\t\t// Remove hidden class if applied\n\t\t\t\t\tif (panelWrapper.hasStyleClass(\"sapCuxHidden\")) {\n\t\t\t\t\t\tpanelWrapper.removeStyleClass(\"sapCuxHidden\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.handlePanelLoad(panelName, { loaded: true, count: this.panelLoaded[panelName].count });\n\t\t\t} else {\n\t\t\t\tconst listener = () => {\n\t\t\t\t\tinsertContentFn();\n\t\t\t\t\t// Remove hidden class if applied\n\t\t\t\t\tif (panelWrapper.hasStyleClass(\"sapCuxHidden\")) {\n\t\t\t\t\t\tpanelWrapper.removeStyleClass(\"sapCuxHidden\");\n\t\t\t\t\t}\n\t\t\t\t\tlayout.detachOnCollapse(listener); // Remove the listener after execution\n\t\t\t\t};\n\t\t\t\tthis.handlePanelLoad(panelName, { loaded: true, count: this.panelLoaded[panelName].count });\n\t\t\t\tlayout.attachOnCollapse(listener);\n\t\t\t}\n\t\t};\n\n\t\t// Handling TilesPanel\n\t\tif (panel instanceof TilesPanel && !this.panelLoaded[tilesPanelName].loaded) {\n\t\t\tprocessPanelVisibility(tilesPanelName, () => this.insertContent(this.panelContext[tilesPanelName], 0));\n\t\t}\n\n\t\t// Handling CardsPanel\n\t\tif (panel instanceof CardsPanel && !this.panelLoaded[cardsPanelName].loaded) {\n\t\t\tprocessPanelVisibility(cardsPanelName, () => this.addContent(this.panelContext[cardsPanelName]));\n\t\t}\n\n\t\t// Handling SpaceInsightsPanel\n\t\tif (panel instanceof SpaceInsightsPanel && !this.panelLoaded[spaceInsightsPanelName].loaded) {\n\t\t\tprocessPanelVisibility(spaceInsightsPanelName, () => this.addContent(this.panelContext[cardsPanelName]));\n\t\t}\n\t}\n\n\t/**\n\t * Updates the container header based on the number of visible panels.\n\t *\n\t * @private\n\t * @param {TilesPanel | CardsPanel} panel - The panel being managed.\n\t */\n\n\tprivate _updateHeaderElements(panel: TilesPanel | CardsPanel) {\n\t\tconst panels = this._getLoadedPanelNames();\n\t\tif (panels.length > 1) {\n\t\t\tthis._removeContainerHeader();\n\t\t} else {\n\t\t\tthis._addContainerHeader();\n\t\t\tpanel.handleHideHeader();\n\t\t}\n\t}\n\n\t/**\n\t * Adjusts the layout of the container.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic adjustLayout() {\n\t\t//hide actions if the device is a phone\n\t\tif (this.getDeviceType() === DeviceType.Mobile) {\n\t\t\tthis.toggleActionButtons(false);\n\t\t} else {\n\t\t\tconst panels = this._getLoadedPanelNames();\n\t\t\t// Unhide the Add Tiles button if the device is not a phone and header is visible\n\t\t\tif (panels.length < 2) {\n\t\t\t\t(this.getAggregation(\"actionButtons\") as Button[])?.forEach((actionButton) => {\n\t\t\t\t\tif (actionButton.getId().includes(tilesContainerActionButtons.ADD_TILES)) {\n\t\t\t\t\t\tthis.toggleActionButton(actionButton, true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t//adjust layout of all panels\n\t\t(this.getContent() as (TilesPanel | CardsPanel)[]).forEach((panel) => panel._adjustLayout?.());\n\t}\n\n\t/**\n\t * Add common Menu Items for Insights Container from Panel\n\t *\n\t * @private\n\t */\n\tpublic addCommonMenuItems(menuItems: MenuItem[]) {\n\t\tmenuItems.forEach((menuItem) => this.addAggregation(\"menuItems\", menuItem));\n\t\t// after adding menu items sort them based on the order\n\t\tthis._sortMenuItems(sortedMenuItems);\n\t}\n\n\t/**\n\t * Add common Action Buttons for Insights Container from Panel\n\t *\n\t * @private\n\t */\n\tpublic addCommonActionButtons(actionButtons: Button[]) {\n\t\tactionButtons.forEach((actionButton) => this.addAggregation(\"actionButtons\", actionButton));\n\t}\n\n\t/**\n\t * Handles the loading of a panel.\n\t *\n\t * @param {string} panelName - The name of the panel.\n\t * @param {object} oVal - The load status and count of the panel.\n\t * @param {boolean} oVal.loaded - The load status of the panel.\n\t * @param {number} oVal.count - The count of items in the panel.\n\t */\n\tpublic handlePanelLoad(panelName: string, oVal: { loaded: boolean; count: number }) {\n\t\tif (this.panelLoaded[panelName].loaded !== oVal.loaded) {\n\t\t\tthis.panelLoaded[panelName] = oVal;\n\t\t\tthis._updateHeaderElements(this.panelContext[panelName]);\n\t\t}\n\t\tthis.adjustLayout();\n\t}\n\n\t/**\n\t * Updates the visibility and text of an action button.\n\t *\n\t * @param {Button} actionButton - The action button to update.\n\t * @param {boolean} visibility - The visibility of the action button.\n\t * @param {string} text - The text of the action button.\n\t */\n\tpublic updateActionButton(actionButton: Button, visibility: boolean, text: string) {\n\t\tif (actionButton?.getVisible() !== visibility || actionButton?.getText() !== text) {\n\t\t\tthis.toggleActionButton(actionButton, visibility);\n\t\t\tactionButton?.setText(text);\n\t\t\tthis._updateContainerHeader(this);\n\t\t}\n\t}\n\n\t/**\n\t * Updates the visibility and text of a menu item.\n\t *\n\t * @param {MenuItem} menuItem - The menu item to update.\n\t * @param {boolean} visibility - The visibility of the menu item.\n\t * @param {string} text - The text of the menu item.\n\t */\n\tpublic updateMenuItem(menuItem: MenuItem, visibility: boolean, text: string) {\n\t\tif (menuItem?.getVisible() !== visibility || menuItem?.getTitle() !== text) {\n\t\t\tthis.toggleMenuListItem(menuItem, visibility);\n\t\t\tmenuItem?.setTitle(text);\n\t\t\tthis._updateContainerHeader(this);\n\t\t}\n\t}\n\n\t/**\n\t * Gets the names of the loaded panels.\n\t *\n\t * @private\n\t * @returns {string[]} The names of the loaded panels.\n\t */\n\tprivate _getLoadedPanelNames() {\n\t\treturn Object.keys(this.panelLoaded).filter((panelName) => this.panelLoaded[panelName].loaded);\n\t}\n\n\t/**\n\t * Returns the names of panels that are still loading or in loaded true state\n\t *\n\t * @private\n\t * @private\n\t */\n\tprivate getVisibleOrPendingPanels() {\n\t\treturn Object.keys(this.panelLoaded).filter((panelName) => this.panelLoaded[panelName].loaded !== false);\n\t}\n\t/**\n\t * Sorts the menu items based on the provided order.\n\t *\n\t * @private\n\t * @param {string[]} menuItems - The order of the menu items.\n\t */\n\tprivate _sortMenuItems(menuItems: string[]) {\n\t\tconst containerMenuItems = this.getAggregation(\"menuItems\") as MenuItem[];\n\t\tlet sortedMenuItems = sortMenuItems(menuItems, containerMenuItems);\n\t\tthis.removeAllAggregation(\"menuItems\");\n\t\tsortedMenuItems?.forEach((menuItem) => this.addAggregation(\"menuItems\", menuItem));\n\t}\n\n\t/**\n\t * Retrieves the generic placeholder content for the Insights container.\n\t *\n\t * @returns {string} The HTML string representing the Insights container's placeholder content.\n\t */\n\tprotected getGenericPlaceholderContent(): string {\n\t\treturn getInsightsPlaceholder();\n\t}\n\n\t/**\n\t * Refreshes the data for a specific panel based on its key.\n\t *\n\t * @private\n\t * @param {string} key - The key of the panel to refresh.\n\t */\n\tpublic async refreshData(key: string) {\n\t\tconst panel = Object.values(this.panelContext).find((panel) => panel.getKey() === key);\n\t\tawait panel?.refreshData?.(true);\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,8LAAAC,eAAA,EAAAC,YAAA,EAAAC,YAAA,EAAAC,wCAAA,EAAAC,oBAAA,EAAAC,YAAA,EAAAC,eAAA,EAAAC,sBAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAOOG,aAAa,GAAAJ,sBAAA,CAAAR,eAAA;EAAA,MAEba,UAAU,GAAAL,sBAAA,CAAAP,YAAA;EAAA,MAAIa,2BAA2B,GAAAb,YAAA;EAAA,MAAEc,uBAAuB,GAAAd,YAAA;EAAA,MAClEe,UAAU,GAAAR,sBAA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,"file":"InsightsContainer.js","names":["sap","ui","define","__BaseContainer","__CardsPanel","__ErrorPanel","__SpaceInsightsPanel","__TilesPanel","___utils_Device","___utils_InsightsUtils","___utils_placeholder_InsightsPlaceholder","_interopRequireDefault","obj","__esModule","default","BaseContainer","CardsPanel","cardsContainerActionButtons","cardsContainerMenuItems","ErrorPanel","SpaceInsightsPanel","TilesPanel","tilesContainerActionButtons","tilesContainerMenuItems","DeviceType","sortMenuItems","getInsightsPlaceholder","tilesPanelName","cardsPanelName","spaceInsightsPanelName","sortedMenuItems","REFRESH","ADD_APPS","EDIT_TILES","EDIT_CARDS","AI_INSIGHT_CARD","SHOW_MORE","InsightsContainer","extend","renderer","apiVersion","constructor","_constructor","id","settings","BaseContainer.prototype.constructor.call","_isInitialRender","init","_init","BaseContainer.prototype.init.call","setProperty","_i18nBundle","getText","panelLoaded","loaded","undefined","count","panelContext","setTooltip","String","addCustomSetting","load","_load","aContent","getContent","forEach","oContent","getMetadata","getName","addCommonMenuItems","getContainerMenuItems","addCommonActionButtons","getContainerActionButtons","_addContainerHeader","content","panel","handleHideHeader","attachHandleHidePanel","handleHidePanel","attachHandleUnhidePanel","unhidePanelIfHidden","renderPanel","_handleHidePanel","removeContent","panelName","handlePanelLoad","panels","_getLoadedPanelNames","visibleOrPendingPanels","getVisibleOrPendingPanels","panelCount","length","_errorPanel","getId","messageTitle","messageDescription","getData","addAggregation","hiddenMenuItems","hiddenActionButtons","_hideMenuItems","_hideActionButtons","getTitle","_removeContainerHeader","getAggregation","menuItem","toggleMenuListItem","actionButton","toggleActionButton","handleAddHeader","containerMenuItems","includedInHiddenItems","some","hiddenItem","includes","containerActionButtons","updatePanelsItemCount","_updatePanelsItemCount","itemCount","isSpaceInsightsPanel","_unhidePanelIfHidden","layout","_getLayout","panelExpandedName","_getCurrentExpandedElementName","processPanelVisibility","insertContentFn","panelWrapper","_getPanelContentWrapper","getProperty","hasStyleClass","removeStyleClass","listener","detachOnCollapse","attachOnCollapse","insertContent","addContent","_updateHeaderElements","adjustLayout","_adjustLayout","getDeviceType","Mobile","toggleActionButtons","ADD_TILES","_addCommonMenuItems","menuItems","_sortMenuItems","_addCommonActionButtons","actionButtons","_handlePanelLoad","oVal","updateActionButton","_updateActionButton","visibility","text","getVisible","setText","_updateContainerHeader","updateMenuItem","_updateMenuItem","setTitle","Object","keys","filter","_getVisibleOrPendingPanels","removeAllAggregation","getGenericPlaceholderContent","_getGenericPlaceholderContent","refreshData","_refreshData","key","_this","values","find","getKey","Promise","resolve","then","e","reject"],"sources":["InsightsContainer.ts"],"sourcesContent":["/*!\n * SAP UI development toolkit for HTML5 (SAPUI5)\n * * (c) Copyright 2009-2025 SAP SE. All rights reserved\n */\n\nimport Button from \"sap/m/Button\";\nimport type { $BaseContainerSettings } from \"./BaseContainer\";\nimport BaseContainer from \"./BaseContainer\";\nimport BasePanel from \"./BasePanel\";\nimport CardsPanel, { cardsContainerActionButtons, cardsContainerMenuItems } from \"./CardsPanel\";\nimport ErrorPanel from \"./ErrorPanel\";\nimport MenuItem from \"./MenuItem\";\nimport SpaceInsightsPanel from \"./SpaceInsightsPanel\";\nimport TilesPanel, { tilesContainerActionButtons, tilesContainerMenuItems } from \"./TilesPanel\";\nimport { DeviceType } from \"./utils/Device\";\nimport { sortMenuItems } from \"./utils/InsightsUtils\";\nimport { getInsightsPlaceholder } from \"./utils/placeholder/InsightsPlaceholder\";\n\nconst tilesPanelName: string = \"sap.cux.home.TilesPanel\";\nconst cardsPanelName: string = \"sap.cux.home.CardsPanel\";\nconst spaceInsightsPanelName: string = \"sap.cux.home.SpaceInsightsPanel\";\nconst sortedMenuItems: (tilesContainerMenuItems | cardsContainerMenuItems | string)[] = [\n\ttilesContainerMenuItems.REFRESH,\n\tcardsContainerMenuItems.REFRESH,\n\ttilesContainerMenuItems.ADD_APPS,\n\ttilesContainerMenuItems.EDIT_TILES,\n\tcardsContainerMenuItems.EDIT_CARDS,\n\tcardsContainerMenuItems.AI_INSIGHT_CARD,\n\ttilesContainerMenuItems.SHOW_MORE,\n\tcardsContainerMenuItems.SHOW_MORE,\n\t\"settings\"\n];\n\ninterface IpanelLoaded {\n\t[key: string]: { loaded: boolean | undefined; count: number };\n}\n\ninterface IpanelContext {\n\t[key: string]: TilesPanel | CardsPanel;\n}\n\n/**\n *\n * Container class for managing and storing Insights Tiles and Insights Cards.\n *\n * @extends sap.cux.home.BaseContainer\n *\n * @author SAP SE\n * @version 0.0.1\n * @since 1.121\n *\n * @private\n * @ui5-restricted ux.eng.s4producthomes1\n *\n * @alias sap.cux.home.InsightsContainer\n */\n\nexport default class InsightsContainer extends BaseContainer {\n\tstatic readonly renderer = {\n\t\t...BaseContainer.renderer,\n\t\tapiVersion: 2\n\t};\n\tprivate _errorPanel!: ErrorPanel;\n\tprivate _isInitialRender: boolean = true;\n\tprivate panelLoaded!: IpanelLoaded;\n\tprivate panelContext!: IpanelContext;\n\n\tconstructor(id?: string | $BaseContainerSettings);\n\tconstructor(id?: string, settings?: $BaseContainerSettings);\n\t/**\n\t * Constructor for a new Insights container.\n\t *\n\t * @param {string} [id] ID for the new control, generated automatically if an ID is not provided\n\t * @param {object} [settings] Initial settings for the new control\n\t */\n\tpublic constructor(id?: string, settings?: $BaseContainerSettings) {\n\t\tsuper(id, settings);\n\t}\n\n\t/**\n\t * Init lifecycle method\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic init(): void {\n\t\tsuper.init();\n\t\tthis.setProperty(\"title\", this._i18nBundle?.getText(\"insights\"));\n\t\t/* As Container Level default value for enableSettings is false,\n\t\t\tthis needs to be added from container level.\n\t\t\t(default value cannot be true as News & Page Container header should be hidden)\n\t\t*/\n\t\tthis.setProperty(\"enableSettings\", true);\n\t\tthis.setProperty(\"orientation\", \"Vertical\");\n\t\tthis.panelLoaded = {\n\t\t\t[tilesPanelName]: { loaded: undefined, count: 0 },\n\t\t\t[cardsPanelName]: { loaded: undefined, count: 0 },\n\t\t\t[spaceInsightsPanelName]: { loaded: undefined, count: 0 }\n\t\t};\n\t\tthis.panelContext = {};\n\t\tthis.setTooltip(String(this._i18nBundle.getText(\"insights\")));\n\t\tthis.addCustomSetting(\"title\", this._i18nBundle.getText(\"insightLayoutSectionTitle\") as string);\n\t\tthis.setTooltip(String(this._i18nBundle.getText(\"insightLayoutSectionTitle\")));\n\t}\n\n\t/**\n\t * Loads the Insights section.\n\t * Overrides the load method of the BaseContainer.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic load() {\n\t\tif (this._isInitialRender) {\n\t\t\tconst aContent = this.getContent();\n\t\t\taContent.forEach((oContent) => {\n\t\t\t\tthis.panelContext[oContent.getMetadata().getName()] = oContent as TilesPanel | CardsPanel;\n\t\t\t\tthis.addCommonMenuItems((oContent as TilesPanel | CardsPanel).getContainerMenuItems?.());\n\t\t\t\tthis.addCommonActionButtons((oContent as TilesPanel | CardsPanel).getContainerActionButtons?.());\n\t\t\t});\n\n\t\t\tthis._addContainerHeader();\n\n\t\t\t// Render individual panels\n\t\t\taContent.forEach((content) => {\n\t\t\t\tconst panel = content as TilesPanel | CardsPanel;\n\t\t\t\tpanel.handleHideHeader();\n\t\t\t\tpanel.attachHandleHidePanel(() => this.handleHidePanel(panel));\n\t\t\t\tpanel.attachHandleUnhidePanel(() => this.unhidePanelIfHidden(panel));\n\t\t\t\tvoid panel.renderPanel();\n\t\t\t});\n\t\t\tthis._isInitialRender = false;\n\t\t}\n\t}\n\n\t/**\n\t * Handles the hiding of a panel by removing its content, updating the panel load status,\n\t * and managing the display of the container header and error panel.\n\t *\n\t * @param {BasePanel} panel - The panel to be hidden.\n\t * @private\n\t */\n\tpublic handleHidePanel(panel: BasePanel) {\n\t\tthis.removeContent(panel);\n\t\tconst panelName = panel.getMetadata().getName();\n\t\tthis.handlePanelLoad(panelName, { loaded: false, count: 0 });\n\t\tconst panels = this._getLoadedPanelNames() || [];\n\t\tconst visibleOrPendingPanels = this.getVisibleOrPendingPanels() || [];\n\t\tconst panelCount = panels?.length;\n\t\tthis._addContainerHeader();\n\t\t// only show error panel if all panels loaded state is false\n\t\tif (\n\t\t\tvisibleOrPendingPanels.length === 0 ||\n\t\t\t(visibleOrPendingPanels.length === 1 && visibleOrPendingPanels[0] === spaceInsightsPanelName)\n\t\t) {\n\t\t\tif (!this._errorPanel) {\n\t\t\t\tthis._errorPanel = new ErrorPanel(`${this.getId()}-errorPanel`, {\n\t\t\t\t\tmessageTitle: this._i18nBundle.getText(\"noAppsTitle\"),\n\t\t\t\t\tmessageDescription: this._i18nBundle.getText(\"noInsightsMsg\")\n\t\t\t\t});\n\t\t\t\tthis._errorPanel.getData();\n\t\t\t}\n\t\t\tthis.addAggregation(\"content\", this._errorPanel);\n\t\t} else if (panelCount === 1) {\n\t\t\tconst panel = this.getContent()[0];\n\t\t\tif (panel && !(panel instanceof ErrorPanel)) {\n\t\t\t\t(panel as TilesPanel | CardsPanel)?.handleHideHeader();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Adds the container header based on the number of visible panels.\n\t *\n\t * @private\n\t */\n\tprivate _addContainerHeader() {\n\t\tconst panels: string[] = this._getLoadedPanelNames();\n\t\tlet hiddenMenuItems: string[] = [];\n\t\tlet hiddenActionButtons: string[] = [];\n\t\tthis.setProperty(\"title\", this._i18nBundle?.getText(\"insights\"));\n\t\tif (panels.length === 0 || this.getContent()[0] instanceof ErrorPanel) {\n\t\t\thiddenMenuItems = [\n\t\t\t\ttilesContainerMenuItems.REFRESH,\n\t\t\t\tcardsContainerMenuItems.REFRESH,\n\t\t\t\ttilesContainerMenuItems.SHOW_MORE,\n\t\t\t\tcardsContainerMenuItems.SHOW_MORE\n\t\t\t];\n\t\t\tthis._hideMenuItems(hiddenMenuItems);\n\t\t\thiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE, cardsContainerActionButtons.SHOW_MORE];\n\t\t\tthis._hideActionButtons(hiddenActionButtons);\n\t\t} else if (panels.length === 1) {\n\t\t\tconst panelName = panels[0];\n\t\t\tthis.setProperty(\"title\", `${this._i18nBundle?.getText(\"insights\")} (${this.panelLoaded[panelName].count || 0})`);\n\t\t\tif (this.panelContext[panels[0]] instanceof TilesPanel) {\n\t\t\t\thiddenMenuItems = [cardsContainerMenuItems.REFRESH, cardsContainerMenuItems.SHOW_MORE];\n\t\t\t\thiddenActionButtons = [cardsContainerActionButtons.SHOW_MORE];\n\t\t\t}\n\t\t\tif (this.panelContext[panels[0]] instanceof CardsPanel) {\n\t\t\t\thiddenMenuItems = [tilesContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE];\n\t\t\t\thiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE];\n\t\t\t}\n\t\t\tif (this.panelContext[panels[0]] instanceof SpaceInsightsPanel) {\n\t\t\t\tthis.setProperty(\"title\", `${this.panelContext[panels[0]].getTitle()} (${this.panelLoaded[panelName].count || 0})`);\n\t\t\t\thiddenMenuItems = [tilesContainerMenuItems.REFRESH, tilesContainerMenuItems.SHOW_MORE, \"settings\"];\n\t\t\t\thiddenActionButtons = [tilesContainerActionButtons.SHOW_MORE];\n\t\t\t}\n\t\t\tthis._hideMenuItems(hiddenMenuItems);\n\t\t\tthis._hideActionButtons(hiddenActionButtons);\n\t\t}\n\t}\n\n\t/**\n\t * Removes the container header.\n\t *\n\t * @private\n\t */\n\tprivate _removeContainerHeader() {\n\t\tthis.setProperty(\"title\", \"\");\n\t\t(this.getAggregation(\"menuItems\") as MenuItem[])?.forEach((menuItem) => this.toggleMenuListItem(menuItem, false));\n\t\t(this.getAggregation(\"actionButtons\") as Button[])?.forEach((actionButton) => this.toggleActionButton(actionButton, false));\n\t\tconst panels = this._getLoadedPanelNames();\n\t\tpanels.forEach((panelName) => {\n\t\t\tthis.panelContext[panelName]?.handleAddHeader?.();\n\t\t});\n\t}\n\n\t/**\n\t * Hides the specified menu items.\n\t *\n\t * @private\n\t * @param {string[]} hiddenMenuItems - The IDs of the menu items to hide.\n\t */\n\tprivate _hideMenuItems(hiddenMenuItems: string[]) {\n\t\tconst containerMenuItems = this.getAggregation(\"menuItems\") as MenuItem[];\n\t\tcontainerMenuItems?.forEach((menuItem) => {\n\t\t\tconst includedInHiddenItems = hiddenMenuItems.some((hiddenItem) => menuItem.getId().includes(hiddenItem));\n\t\t\tthis.toggleMenuListItem(menuItem, !includedInHiddenItems);\n\t\t});\n\t}\n\n\t/**\n\t * Hides the specified action buttons.\n\t *\n\t * @private\n\t * @param {string[]} hiddenActionButtons - The IDs of the action buttons to hide.\n\t */\n\tprivate _hideActionButtons(hiddenActionButtons: string[]) {\n\t\tconst containerActionButtons = this.getAggregation(\"actionButtons\") as Button[];\n\t\tcontainerActionButtons?.forEach((actionButton) => {\n\t\t\tconst includedInHiddenItems = hiddenActionButtons.some((hiddenItem) => actionButton.getId().includes(hiddenItem));\n\t\t\tthis.toggleActionButton(actionButton, !includedInHiddenItems);\n\t\t});\n\t}\n\n\t/**\n\t * Updates the item count for the specified panel.\n\t *\n\t * @param {number} itemCount - The new item count.\n\t * @param {string} panelName - The name of the panel.\n\t */\n\tpublic updatePanelsItemCount(itemCount: number, panelName: string) {\n\t\tthis.panelLoaded[panelName].count = itemCount;\n\t\tconst panels = this._getLoadedPanelNames();\n\t\t// Container Title Will be displayed only in case of only one panel is present\n\t\tif (panels.length === 1) {\n\t\t\tconst isSpaceInsightsPanel = this.panelContext[panels[0]] instanceof SpaceInsightsPanel;\n\t\t\tthis.setProperty(\n\t\t\t\t\"title\",\n\t\t\t\t`${isSpaceInsightsPanel ? this.panelContext[panels[0]].getTitle() : this._i18nBundle?.getText(\"insights\")} (${itemCount || 0})`\n\t\t\t);\n\t\t}\n\t}\n\n\t/**\n\t * Unhides the specified panel if it is hidden.\n\t *\n\t * @param {TilesPanel | CardsPanel} panel - The panel to unhide.\n\t */\n\tpublic unhidePanelIfHidden(panel: TilesPanel | CardsPanel) {\n\t\tconst layout = this._getLayout();\n\t\tconst panelExpandedName = layout._getCurrentExpandedElementName();\n\n\t\tif (this._errorPanel) {\n\t\t\tthis.removeContent(this._errorPanel);\n\t\t}\n\n\t\t// Function to handle panel content insertion\n\t\tconst processPanelVisibility = (panelName: string, insertContentFn: () => void) => {\n\t\t\tconst panelWrapper = this._getPanelContentWrapper(panel);\n\t\t\tif (!panelExpandedName || panelExpandedName === panel.getProperty(\"fullScreenName\")) {\n\t\t\t\t/**\n loaded value can be false or undefined, false being hidden and undefined being loading\n if the panel is hidden then only unhide it\n */\n\t\t\t\tif (this.panelLoaded[panelName].loaded === false) {\n\t\t\t\t\tinsertContentFn();\n\t\t\t\t\t// Remove hidden class if applied\n\t\t\t\t\tif (panelWrapper.hasStyleClass(\"sapCuxHidden\")) {\n\t\t\t\t\t\tpanelWrapper.removeStyleClass(\"sapCuxHidden\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.handlePanelLoad(panelName, { loaded: true, count: this.panelLoaded[panelName].count });\n\t\t\t} else {\n\t\t\t\tconst listener = () => {\n\t\t\t\t\tinsertContentFn();\n\t\t\t\t\t// Remove hidden class if applied\n\t\t\t\t\tif (panelWrapper.hasStyleClass(\"sapCuxHidden\")) {\n\t\t\t\t\t\tpanelWrapper.removeStyleClass(\"sapCuxHidden\");\n\t\t\t\t\t}\n\t\t\t\t\tlayout.detachOnCollapse(listener); // Remove the listener after execution\n\t\t\t\t};\n\t\t\t\tthis.handlePanelLoad(panelName, { loaded: true, count: this.panelLoaded[panelName].count });\n\t\t\t\tlayout.attachOnCollapse(listener);\n\t\t\t}\n\t\t};\n\n\t\t// Handling TilesPanel\n\t\tif (panel instanceof TilesPanel && !this.panelLoaded[tilesPanelName].loaded) {\n\t\t\tprocessPanelVisibility(tilesPanelName, () => this.insertContent(this.panelContext[tilesPanelName], 0));\n\t\t}\n\n\t\t// Handling CardsPanel\n\t\tif (panel instanceof CardsPanel && !this.panelLoaded[cardsPanelName].loaded) {\n\t\t\tprocessPanelVisibility(cardsPanelName, () => this.addContent(this.panelContext[cardsPanelName]));\n\t\t}\n\n\t\t// Handling SpaceInsightsPanel\n\t\tif (panel instanceof SpaceInsightsPanel && !this.panelLoaded[spaceInsightsPanelName].loaded) {\n\t\t\tprocessPanelVisibility(spaceInsightsPanelName, () => this.addContent(this.panelContext[cardsPanelName]));\n\t\t}\n\t}\n\n\t/**\n\t * Updates the container header based on the number of visible panels.\n\t *\n\t * @private\n\t * @param {TilesPanel | CardsPanel} panel - The panel being managed.\n\t */\n\n\tprivate _updateHeaderElements(panel: TilesPanel | CardsPanel) {\n\t\tconst panels = this._getLoadedPanelNames();\n\t\tif (panels.length > 1) {\n\t\t\tthis._removeContainerHeader();\n\t\t} else {\n\t\t\tthis._addContainerHeader();\n\t\t\tpanel.handleHideHeader();\n\t\t}\n\t}\n\n\t/**\n\t * Adjusts the layout of the container.\n\t *\n\t * @private\n\t * @override\n\t */\n\tpublic adjustLayout() {\n\t\t//hide actions if the device is a phone\n\t\tif (this.getDeviceType() === DeviceType.Mobile) {\n\t\t\tthis.toggleActionButtons(false);\n\t\t} else {\n\t\t\tconst panels = this._getLoadedPanelNames();\n\t\t\t// Unhide the Add Tiles button if the device is not a phone and header is visible\n\t\t\tif (panels.length < 2) {\n\t\t\t\t(this.getAggregation(\"actionButtons\") as Button[])?.forEach((actionButton) => {\n\t\t\t\t\tif (actionButton.getId().includes(tilesContainerActionButtons.ADD_TILES)) {\n\t\t\t\t\t\tthis.toggleActionButton(actionButton, true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t//adjust layout of all panels\n\t\t(this.getContent() as (TilesPanel | CardsPanel)[]).forEach((panel) => panel._adjustLayout?.());\n\t}\n\n\t/**\n\t * Add common Menu Items for Insights Container from Panel\n\t *\n\t * @private\n\t */\n\tpublic addCommonMenuItems(menuItems: MenuItem[]) {\n\t\tmenuItems.forEach((menuItem) => this.addAggregation(\"menuItems\", menuItem));\n\t\t// after adding menu items sort them based on the order\n\t\tthis._sortMenuItems(sortedMenuItems);\n\t}\n\n\t/**\n\t * Add common Action Buttons for Insights Container from Panel\n\t *\n\t * @private\n\t */\n\tpublic addCommonActionButtons(actionButtons: Button[]) {\n\t\tactionButtons.forEach((actionButton) => this.addAggregation(\"actionButtons\", actionButton));\n\t}\n\n\t/**\n\t * Handles the loading of a panel.\n\t *\n\t * @param {string} panelName - The name of the panel.\n\t * @param {object} oVal - The load status and count of the panel.\n\t * @param {boolean} oVal.loaded - The load status of the panel.\n\t * @param {number} oVal.count - The count of items in the panel.\n\t */\n\tpublic handlePanelLoad(panelName: string, oVal: { loaded: boolean; count: number }) {\n\t\tif (this.panelLoaded[panelName].loaded !== oVal.loaded) {\n\t\t\tthis.panelLoaded[panelName] = oVal;\n\t\t\tthis._updateHeaderElements(this.panelContext[panelName]);\n\t\t}\n\t\tthis.adjustLayout();\n\t}\n\n\t/**\n\t * Updates the visibility and text of an action button.\n\t *\n\t * @param {Button} actionButton - The action button to update.\n\t * @param {boolean} visibility - The visibility of the action button.\n\t * @param {string} text - The text of the action button.\n\t */\n\tpublic updateActionButton(actionButton: Button, visibility: boolean, text: string) {\n\t\tif (actionButton?.getVisible() !== visibility || actionButton?.getText() !== text) {\n\t\t\tthis.toggleActionButton(actionButton, visibility);\n\t\t\tactionButton?.setText(text);\n\t\t\tthis._updateContainerHeader(this);\n\t\t}\n\t}\n\n\t/**\n\t * Updates the visibility and text of a menu item.\n\t *\n\t * @param {MenuItem} menuItem - The menu item to update.\n\t * @param {boolean} visibility - The visibility of the menu item.\n\t * @param {string} text - The text of the menu item.\n\t */\n\tpublic updateMenuItem(menuItem: MenuItem, visibility: boolean, text: string) {\n\t\tif (menuItem?.getVisible() !== visibility || menuItem?.getTitle() !== text) {\n\t\t\tthis.toggleMenuListItem(menuItem, visibility);\n\t\t\tmenuItem?.setTitle(text);\n\t\t\tthis._updateContainerHeader(this);\n\t\t}\n\t}\n\n\t/**\n\t * Gets the names of the loaded panels.\n\t *\n\t * @private\n\t * @returns {string[]} The names of the loaded panels.\n\t */\n\tprivate _getLoadedPanelNames() {\n\t\treturn Object.keys(this.panelLoaded).filter((panelName) => this.panelLoaded[panelName].loaded);\n\t}\n\n\t/**\n\t * Returns the names of panels that are still loading or in loaded true state\n\t *\n\t * @private\n\t * @private\n\t */\n\tprivate getVisibleOrPendingPanels() {\n\t\treturn Object.keys(this.panelLoaded).filter((panelName) => this.panelLoaded[panelName].loaded !== false);\n\t}\n\t/**\n\t * Sorts the menu items based on the provided order.\n\t *\n\t * @private\n\t * @param {string[]} menuItems - The order of the menu items.\n\t */\n\tprivate _sortMenuItems(menuItems: string[]) {\n\t\tconst containerMenuItems = this.getAggregation(\"menuItems\") as MenuItem[];\n\t\tlet sortedMenuItems = sortMenuItems(menuItems, containerMenuItems);\n\t\tthis.removeAllAggregation(\"menuItems\");\n\t\tsortedMenuItems?.forEach((menuItem) => this.addAggregation(\"menuItems\", menuItem));\n\t}\n\n\t/**\n\t * Retrieves the generic placeholder content for the Insights container.\n\t *\n\t * @returns {string} The HTML string representing the Insights container's placeholder content.\n\t */\n\tprotected getGenericPlaceholderContent(): string {\n\t\treturn getInsightsPlaceholder();\n\t}\n\n\t/**\n\t * Refreshes the data for a specific panel based on its key.\n\t *\n\t * @private\n\t * @param {string} key - The key of the panel to refresh.\n\t */\n\tpublic async refreshData(key: string) {\n\t\tconst panel = Object.values(this.panelContext).find((panel) => panel.getKey() === key);\n\t\tawait panel?.refreshData?.(true);\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHAA,GAAA,CAAAC,EAAA,CAAAC,MAAA,8LAAAC,eAAA,EAAAC,YAAA,EAAAC,YAAA,EAAAC,oBAAA,EAAAC,YAAA,EAAAC,eAAA,EAAAC,sBAAA,EAAAC,wCAAA;EAAA;;EAAA,SAAAC,uBAAAC,GAAA;IAAA,OAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,CAAAE,OAAA,mBAAAF,GAAA,CAAAE,OAAA,GAAAF,GAAA;EAAA;EAAA,MAOOG,aAAa,GAAAJ,sBAAA,CAAAR,eAAA;EAAA,MAEba,UAAU,GAAAL,sB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;QAAA,OAAAH,OAAA,CAAAI,MAAA,CAAAD,CAAA;MAAA;IAAA;EAAA;EAAA,OAnbmB7I,iBAAiB;AAAA","ignoreList":[]}
@@ -9,12 +9,12 @@ import BaseContainer from "./BaseContainer";
9
9
  import BasePanel from "./BasePanel";
10
10
  import CardsPanel, { cardsContainerActionButtons, cardsContainerMenuItems } from "./CardsPanel";
11
11
  import ErrorPanel from "./ErrorPanel";
12
- import { getInsightsPlaceholder } from "./utils/placeholder/InsightsPlaceholder";
13
12
  import MenuItem from "./MenuItem";
14
13
  import SpaceInsightsPanel from "./SpaceInsightsPanel";
15
14
  import TilesPanel, { tilesContainerActionButtons, tilesContainerMenuItems } from "./TilesPanel";
16
15
  import { DeviceType } from "./utils/Device";
17
16
  import { sortMenuItems } from "./utils/InsightsUtils";
17
+ import { getInsightsPlaceholder } from "./utils/placeholder/InsightsPlaceholder";
18
18
 
19
19
  const tilesPanelName: string = "sap.cux.home.TilesPanel";
20
20
  const cardsPanelName: string = "sap.cux.home.CardsPanel";
@@ -49,8 +49,8 @@ interface IpanelContext {
49
49
  * @version 0.0.1
50
50
  * @since 1.121
51
51
  *
52
- * @internal
53
- * @public
52
+ * @private
53
+ * @ui5-restricted ux.eng.s4producthomes1
54
54
  *
55
55
  * @alias sap.cux.home.InsightsContainer
56
56
  */
@@ -32,8 +32,8 @@ declare module "sap/cux/home/Layout" {
32
32
  * @version 0.0.1
33
33
  * @since 1.121
34
34
  *
35
- * @internal
36
- * @public
35
+ * @private
36
+ * @ui5-restricted ux.eng.s4producthomes1
37
37
  *
38
38
  * @alias sap.cux.home.Layout
39
39
  */
@@ -205,8 +205,8 @@ sap.ui.define(["sap/base/Log", "sap/ui/core/Element", "sap/ushell/api/S4MyHome",
205
205
  * @version 0.0.1
206
206
  * @since 1.121
207
207
  *
208
- * @internal
209
- * @public
208
+ * @private
209
+ * @ui5-restricted ux.eng.s4producthomes1
210
210
  *
211
211
  * @alias sap.cux.home.Layout
212
212
  */