@openui5/sap.ui.documentation 1.96.2 → 1.98.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.
Files changed (164) hide show
  1. package/.reuse/dep5 +26 -31
  2. package/THIRDPARTY.txt +15 -21
  3. package/package.json +6 -6
  4. package/src/sap/ui/documentation/.library +2 -2
  5. package/src/sap/ui/documentation/BorrowedList.js +1 -1
  6. package/src/sap/ui/documentation/DemokitTreeItem.js +1 -1
  7. package/src/sap/ui/documentation/DemokitTreeItemRenderer.js +1 -1
  8. package/src/sap/ui/documentation/JSDocText.js +1 -1
  9. package/src/sap/ui/documentation/LightTable.js +1 -1
  10. package/src/sap/ui/documentation/ObjectPageSubSection.js +1 -1
  11. package/src/sap/ui/documentation/ParamText.js +1 -1
  12. package/src/sap/ui/documentation/Row.js +1 -1
  13. package/src/sap/ui/documentation/Search.js +1 -1
  14. package/src/sap/ui/documentation/TitleLink.js +1 -1
  15. package/src/sap/ui/documentation/WebPageTitleUtil.js +1 -1
  16. package/src/sap/ui/documentation/library.js +3 -3
  17. package/src/sap/ui/documentation/messagebundle.properties +56 -10
  18. package/src/sap/ui/documentation/messagebundle_ar.properties +32 -6
  19. package/src/sap/ui/documentation/messagebundle_bg.properties +31 -5
  20. package/src/sap/ui/documentation/messagebundle_ca.properties +32 -6
  21. package/src/sap/ui/documentation/messagebundle_cs.properties +32 -6
  22. package/src/sap/ui/documentation/messagebundle_cy.properties +32 -6
  23. package/src/sap/ui/documentation/messagebundle_da.properties +32 -6
  24. package/src/sap/ui/documentation/messagebundle_de.properties +32 -6
  25. package/src/sap/ui/documentation/messagebundle_el.properties +31 -5
  26. package/src/sap/ui/documentation/messagebundle_en.properties +32 -6
  27. package/src/sap/ui/documentation/messagebundle_en_GB.properties +32 -6
  28. package/src/sap/ui/documentation/messagebundle_en_US_sappsd.properties +35 -9
  29. package/src/sap/ui/documentation/messagebundle_en_US_saprigi.properties +4 -9
  30. package/src/sap/ui/documentation/messagebundle_en_US_saptrc.properties +35 -9
  31. package/src/sap/ui/documentation/messagebundle_es.properties +32 -6
  32. package/src/sap/ui/documentation/messagebundle_es_MX.properties +34 -8
  33. package/src/sap/ui/documentation/messagebundle_et.properties +32 -6
  34. package/src/sap/ui/documentation/messagebundle_fi.properties +33 -7
  35. package/src/sap/ui/documentation/messagebundle_fr.properties +32 -6
  36. package/src/sap/ui/documentation/messagebundle_fr_CA.properties +32 -6
  37. package/src/sap/ui/documentation/messagebundle_hi.properties +32 -6
  38. package/src/sap/ui/documentation/messagebundle_hr.properties +32 -6
  39. package/src/sap/ui/documentation/messagebundle_hu.properties +31 -5
  40. package/src/sap/ui/documentation/messagebundle_id.properties +33 -7
  41. package/src/sap/ui/documentation/messagebundle_it.properties +32 -6
  42. package/src/sap/ui/documentation/messagebundle_iw.properties +32 -6
  43. package/src/sap/ui/documentation/messagebundle_ja.properties +32 -6
  44. package/src/sap/ui/documentation/messagebundle_kk.properties +32 -6
  45. package/src/sap/ui/documentation/messagebundle_ko.properties +32 -6
  46. package/src/sap/ui/documentation/messagebundle_lt.properties +32 -6
  47. package/src/sap/ui/documentation/messagebundle_lv.properties +31 -5
  48. package/src/sap/ui/documentation/messagebundle_ms.properties +32 -6
  49. package/src/sap/ui/documentation/messagebundle_nl.properties +32 -6
  50. package/src/sap/ui/documentation/messagebundle_no.properties +33 -7
  51. package/src/sap/ui/documentation/messagebundle_pl.properties +31 -5
  52. package/src/sap/ui/documentation/messagebundle_pt.properties +32 -6
  53. package/src/sap/ui/documentation/messagebundle_pt_PT.properties +32 -6
  54. package/src/sap/ui/documentation/messagebundle_ro.properties +32 -6
  55. package/src/sap/ui/documentation/messagebundle_ru.properties +32 -6
  56. package/src/sap/ui/documentation/messagebundle_sh.properties +33 -7
  57. package/src/sap/ui/documentation/messagebundle_sk.properties +32 -6
  58. package/src/sap/ui/documentation/messagebundle_sl.properties +32 -6
  59. package/src/sap/ui/documentation/messagebundle_sv.properties +32 -6
  60. package/src/sap/ui/documentation/messagebundle_th.properties +32 -6
  61. package/src/sap/ui/documentation/messagebundle_tr.properties +32 -6
  62. package/src/sap/ui/documentation/messagebundle_uk.properties +47 -21
  63. package/src/sap/ui/documentation/messagebundle_vi.properties +32 -6
  64. package/src/sap/ui/documentation/messagebundle_zh_CN.properties +32 -6
  65. package/src/sap/ui/documentation/messagebundle_zh_TW.properties +32 -6
  66. package/src/sap/ui/documentation/sdk/Component.js +1 -1
  67. package/src/sap/ui/documentation/sdk/blocks/IndexEntry.js +1 -1
  68. package/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js +3 -3
  69. package/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js +1 -1
  70. package/src/sap/ui/documentation/sdk/controller/ApiDetailInitial.controller.js +1 -1
  71. package/src/sap/ui/documentation/sdk/controller/ApiMaster.controller.js +1 -1
  72. package/src/sap/ui/documentation/sdk/controller/App.controller.js +78 -2
  73. package/src/sap/ui/documentation/sdk/controller/BaseController.js +1 -1
  74. package/src/sap/ui/documentation/sdk/controller/Code.controller.js +1 -1
  75. package/src/sap/ui/documentation/sdk/controller/Controls.controller.js +1 -1
  76. package/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js +7 -6
  77. package/src/sap/ui/documentation/sdk/controller/DemoApps.controller.js +1 -1
  78. package/src/sap/ui/documentation/sdk/controller/Downloads.controller.js +1 -1
  79. package/src/sap/ui/documentation/sdk/controller/Entity.controller.js +1 -1
  80. package/src/sap/ui/documentation/sdk/controller/ErrorHandler.js +1 -1
  81. package/src/sap/ui/documentation/sdk/controller/Group.controller.js +1 -1
  82. package/src/sap/ui/documentation/sdk/controller/License.controller.js +1 -1
  83. package/src/sap/ui/documentation/sdk/controller/LiveEditor.controller.js +1 -1
  84. package/src/sap/ui/documentation/sdk/controller/MasterTreeBaseController.js +1 -1
  85. package/src/sap/ui/documentation/sdk/controller/News.controller.js +77 -0
  86. package/src/sap/ui/documentation/sdk/controller/NotFound.controller.js +1 -1
  87. package/src/sap/ui/documentation/sdk/controller/ReleaseNotes.controller.js +1 -1
  88. package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +233 -23
  89. package/src/sap/ui/documentation/sdk/controller/SampleBaseController.js +1 -1
  90. package/src/sap/ui/documentation/sdk/controller/SampleNotFound.controller.js +1 -1
  91. package/src/sap/ui/documentation/sdk/controller/SearchPage.controller.js +1 -1
  92. package/src/sap/ui/documentation/sdk/controller/Sitemap.controller.js +1 -1
  93. package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +1 -1
  94. package/src/sap/ui/documentation/sdk/controller/TermsOfUse.controller.js +1 -1
  95. package/src/sap/ui/documentation/sdk/controller/Tools.controller.js +1 -1
  96. package/src/sap/ui/documentation/sdk/controller/TopicDetail.controller.js +1 -1
  97. package/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js +1 -1
  98. package/src/sap/ui/documentation/sdk/controller/TopicMaster.controller.js +1 -1
  99. package/src/sap/ui/documentation/sdk/controller/VersionNotFound.controller.js +106 -0
  100. package/src/sap/ui/documentation/sdk/controller/Welcome.controller.js +1 -1
  101. package/src/sap/ui/documentation/sdk/controller/config/datatable.js +1 -1
  102. package/src/sap/ui/documentation/sdk/controller/util/APIInfo.js +1 -1
  103. package/src/sap/ui/documentation/sdk/controller/util/ConfigUtil.js +17 -1
  104. package/src/sap/ui/documentation/sdk/controller/util/ControlsInfo.js +1 -1
  105. package/src/sap/ui/documentation/sdk/controller/util/DataTable.js +1 -1
  106. package/src/sap/ui/documentation/sdk/controller/util/DataTableHelper.js +1 -1
  107. package/src/sap/ui/documentation/sdk/controller/util/DataTableUtil.js +1 -1
  108. package/src/sap/ui/documentation/sdk/controller/util/DocuInfo.js +1 -1
  109. package/src/sap/ui/documentation/sdk/controller/util/EntityInfo.js +1 -1
  110. package/src/sap/ui/documentation/sdk/controller/util/Highlighter.js +1 -1
  111. package/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js +1 -1
  112. package/src/sap/ui/documentation/sdk/controller/util/JSDocUtil.js +1 -1
  113. package/src/sap/ui/documentation/sdk/controller/util/NewsInfo.js +188 -0
  114. package/src/sap/ui/documentation/sdk/controller/util/ResourceDownloadUtil.js +1 -1
  115. package/src/sap/ui/documentation/sdk/controller/util/ResponsiveImageMap.js +1 -1
  116. package/src/sap/ui/documentation/sdk/controller/util/SearchUtil.js +1 -1
  117. package/src/sap/ui/documentation/sdk/controller/util/SidyBySideImageMap.js +1 -1
  118. package/src/sap/ui/documentation/sdk/controller/util/ToolsInfo.js +8 -2
  119. package/src/sap/ui/documentation/sdk/controller/util/Tooltip.js +1 -1
  120. package/src/sap/ui/documentation/sdk/controller/util/TreeUtil.js +1 -1
  121. package/src/sap/ui/documentation/sdk/controller/util/XML2JSONUtils.js +1 -1
  122. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterDropDown.js +1 -1
  123. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterDropDownRenderer.js +8 -2
  124. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterRange.js +1 -1
  125. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterRangeRenderer.js +1 -1
  126. package/src/sap/ui/documentation/sdk/controller/util/overlay/Overlay.js +1 -1
  127. package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Circle.js +1 -1
  128. package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Polygon.js +1 -1
  129. package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Rect.js +1 -1
  130. package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Shape.js +1 -1
  131. package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/ShapeFactory.js +1 -1
  132. package/src/sap/ui/documentation/sdk/cookieSettingsDialog/Component.js +1 -1
  133. package/src/sap/ui/documentation/sdk/cookieSettingsDialog/controller/CookieSettingsDialog.controller.js +1 -1
  134. package/src/sap/ui/documentation/sdk/css/style.css +42 -2
  135. package/src/sap/ui/documentation/sdk/images/tools/FlexibleProgrammingModelExplorer.jpg +0 -0
  136. package/src/sap/ui/documentation/sdk/manifest.json +16 -0
  137. package/src/sap/ui/documentation/sdk/model/formatter.js +1 -1
  138. package/src/sap/ui/documentation/sdk/model/libraryData.js +1 -1
  139. package/src/sap/ui/documentation/sdk/model/models.js +1 -1
  140. package/src/sap/ui/documentation/sdk/util/DocumentationRouter.js +4 -2
  141. package/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js +1 -1
  142. package/src/sap/ui/documentation/sdk/util/Resources.js +1 -1
  143. package/src/sap/ui/documentation/sdk/util/ToggleFullScreenHandler.js +1 -1
  144. package/src/sap/ui/documentation/sdk/view/App.view.xml +18 -0
  145. package/src/sap/ui/documentation/sdk/view/ChangeVersionDialog.fragment.xml +1 -2
  146. package/src/sap/ui/documentation/sdk/view/News.view.xml +68 -0
  147. package/src/sap/ui/documentation/sdk/view/NewsPopover.fragment.xml +51 -0
  148. package/src/sap/ui/documentation/sdk/view/Sample.view.xml +5 -1
  149. package/src/sap/ui/documentation/sdk/view/Tools.view.xml +23 -25
  150. package/src/sap/ui/documentation/sdk/view/VersionNotFound.view.xml +44 -0
  151. package/src/sap/ui/documentation/sdk/view/Welcome.view.xml +90 -8
  152. package/src/sap/ui/documentation/sdk/view/appSettingsDialog.fragment.xml +1 -0
  153. package/src/sap/ui/documentation/themes/base/Documentation.less +1 -7
  154. package/src/sap/ui/documentation/themes/base/library.source.less +1 -1
  155. package/src/sap/ui/documentation/themes/sap_belize/library.source.less +1 -1
  156. package/src/sap/ui/documentation/themes/sap_belize_hcb/library.source.less +1 -1
  157. package/src/sap/ui/documentation/themes/sap_belize_hcw/library.source.less +1 -1
  158. package/src/sap/ui/documentation/themes/sap_belize_plus/library.source.less +1 -1
  159. package/src/sap/ui/documentation/themes/sap_fiori_3/library.source.less +1 -1
  160. package/src/sap/ui/documentation/themes/sap_fiori_3_dark/library.source.less +1 -1
  161. package/src/sap/ui/documentation/themes/sap_fiori_3_hcb/library.source.less +1 -1
  162. package/src/sap/ui/documentation/themes/sap_fiori_3_hcw/library.source.less +1 -1
  163. package/src/sap/ui/documentation/themes/sap_horizon/library.source.less +1 -1
  164. package/ui5.yaml +4 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -114,7 +114,7 @@ sap.ui.define([
114
114
 
115
115
  /**
116
116
  * Init the Sub View and controller
117
- * @param {sap.ui.view} oView the pre-processed sub view
117
+ * @param {sap.ui.core.mvc.View} oView the pre-processed sub view
118
118
  * @private
119
119
  */
120
120
  _initSubView: function (oView) {
@@ -153,7 +153,7 @@ sap.ui.define([
153
153
  * Create the JSON model and the Sub View. The model will be used in both lifecycle phases of the sub view
154
154
  * by the preprocessor and by the view initiation afterwards.
155
155
  * @param {object} oBorrowedData the data extracted by the borrowed methods promise
156
- * @return {Promise} sap.ui.view.loaded promise
156
+ * @return {Promise} promise returned by <code>XMLView.create</code>
157
157
  * @private
158
158
  */
159
159
  _createModelAndSubView: function (oBorrowedData) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -8,6 +8,7 @@ sap.ui.define([
8
8
  "sap/ui/events/KeyCodes",
9
9
  "sap/ui/thirdparty/jquery",
10
10
  "sap/ui/documentation/sdk/controller/BaseController",
11
+ "sap/ui/documentation/sdk/controller/util/NewsInfo",
11
12
  "sap/ui/documentation/sdk/controller/util/SearchUtil",
12
13
  "sap/ui/core/mvc/Controller",
13
14
  "sap/ui/model/Filter",
@@ -36,6 +37,7 @@ sap.ui.define([
36
37
  KeyCodes,
37
38
  jQuery,
38
39
  BaseController,
40
+ NewsInfo,
39
41
  SearchUtil,
40
42
  Controller,
41
43
  Filter,
@@ -129,7 +131,8 @@ sap.ui.define([
129
131
  aResultArr.push({
130
132
  "groupTitle": sCurrGroupTitle,
131
133
  "version": sCurrGroupTitle + " (" + iCounter + " versions)",
132
- "nodes": aNodes
134
+ "nodes": aNodes,
135
+ "path": aNodes[0].path
133
136
  });
134
137
  }
135
138
 
@@ -194,6 +197,9 @@ sap.ui.define([
194
197
 
195
198
  }.bind(this));
196
199
 
200
+ this._oNewsModel = new JSONModel();
201
+ this.setModel(this._oNewsModel, "news");
202
+
197
203
  // Cache view reference
198
204
  this._oSupportedLangModel = new JSONModel();
199
205
 
@@ -213,6 +219,10 @@ sap.ui.define([
213
219
 
214
220
  this._oConfigUtil = this.getOwnerComponent().getConfigUtil();
215
221
  this._oCookieNames = this._oConfigUtil.COOKIE_NAMES;
222
+ this._sLocalStorageNewsName = this._oConfigUtil.LOCAL_STORAGE_NAMES['OLD_NEWS_IDS'];
223
+
224
+ NewsInfo.prepareNewsData(this._oConfigUtil);
225
+
216
226
  this._bSupportsPrefersColorScheme = !!(window.matchMedia &&
217
227
  (window.matchMedia('(prefers-color-scheme: dark)').matches ||
218
228
  window.matchMedia('(prefers-color-scheme: light)').matches));
@@ -232,6 +242,7 @@ sap.ui.define([
232
242
  }, this);
233
243
 
234
244
  this.bus = Core.getEventBus();
245
+ this.bus.subscribe("newsChanged", "onDemoKitNewsChanged", this._syncNewsModelWithNewsInfo, this);
235
246
 
236
247
  this._createConfigurationBasedOnURIInput();
237
248
 
@@ -288,6 +299,8 @@ sap.ui.define([
288
299
  jQuery(document.body).addClass(this.getOwnerComponent().getContentDensityClass());
289
300
 
290
301
  Device.orientation.attachHandler(this._onOrientationChange, this);
302
+
303
+ this._syncNewsModelWithNewsInfo();
291
304
  },
292
305
 
293
306
  onExit: function() {
@@ -379,6 +392,69 @@ sap.ui.define([
379
392
  }
380
393
  },
381
394
 
395
+ navigateToNews: function() {
396
+ this.getRouter().navTo("news");
397
+ },
398
+
399
+ handleNewsPress: function (oEvent) {
400
+ var oButton = oEvent.getSource(),
401
+ oView = this.getView();
402
+
403
+ if (this._oNewsModel.getProperty("/newsCount") === 0) {
404
+ this.navigateToNews();
405
+ } else if (!this._oNewsPopover) {
406
+ Fragment.load({
407
+ name: "sap.ui.documentation.sdk.view.NewsPopover",
408
+ controller: this
409
+ }).then(function(oPopover) {
410
+ oView.addDependent(oPopover);
411
+ this._oNewsPopover = oPopover;
412
+ this._oNewsPopover.openBy(oButton);
413
+ }.bind(this));
414
+ } else {
415
+ this._oNewsPopover.openBy(oButton);
416
+ }
417
+ },
418
+
419
+ handleShowAllPress: function () {
420
+ this._oNewsPopover.close();
421
+ this.navigateToNews();
422
+ },
423
+
424
+ handleDismissAllPress: function () {
425
+ NewsInfo.moveAllNewItemsToOld();
426
+ },
427
+
428
+ handleNewsItemClose: function (oEvent) {
429
+ var oItem = oEvent.getSource(),
430
+ iItemCustomId = oItem.getCustomData()[0].getValue(),
431
+ oItemInfoInItemsProperty = this._oNewsModel.getProperty("/items").find(function(oItem){
432
+ return oItem.id === iItemCustomId;
433
+ });
434
+
435
+ NewsInfo.moveNewItemToOld(oItemInfoInItemsProperty);
436
+ },
437
+
438
+ handleVisitNewsLink: function(oEvent) {
439
+ var oItem = oEvent.getSource(),
440
+ sItemLink = oItem.getCustomData()[0].getValue();
441
+
442
+ URLHelper.redirect(sItemLink, true);
443
+ },
444
+
445
+ _syncNewsModelWithNewsInfo: function() {
446
+ var aNewsInfoCopy,
447
+ sPreparationFailureMessage = NewsInfo.getPreparationFailureMessage();
448
+
449
+ if (!sPreparationFailureMessage) {
450
+ aNewsInfoCopy = NewsInfo.getNewNewsArray().slice();
451
+ this._oNewsModel.setProperty("/items", aNewsInfoCopy);
452
+ this._oNewsModel.setProperty("/newsCount", aNewsInfoCopy.length);
453
+ }
454
+
455
+ this._oNewsModel.setProperty("/newsPreparationFailureMessage", sPreparationFailureMessage);
456
+ },
457
+
382
458
  handleMenuItemClick: function (oEvent) {
383
459
  var sTargetText = oEvent.getParameter("item").getKey(),
384
460
  sTarget = this.MENU_LINKS_MAP[sTargetText];
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -19,7 +19,8 @@ sap.ui.define([
19
19
  "sap/base/util/UriParameters",
20
20
  "sap/ui/util/Storage",
21
21
  "sap/ui/core/Core",
22
- "sap/ui/documentation/sdk/controller/util/Highlighter"
22
+ "sap/ui/documentation/sdk/controller/util/Highlighter",
23
+ "sap/ui/documentation/sdk/util/Resources"
23
24
  ], function(
24
25
  jQuery,
25
26
  Device,
@@ -35,7 +36,8 @@ sap.ui.define([
35
36
  UriParameters,
36
37
  Storage,
37
38
  Core,
38
- Highlighter
39
+ Highlighter,
40
+ ResourcesUtil
39
41
  ) {
40
42
  "use strict";
41
43
 
@@ -280,7 +282,7 @@ sap.ui.define([
280
282
  }
281
283
 
282
284
  // Apply theme and compact mode also to iframe samples if there is actually a change
283
- if (bRTLChanged || bContentDensityChanged || bThemeChanged) {
285
+ if ((bRTLChanged || bContentDensityChanged || bThemeChanged) && !ResourcesUtil.getHasProxy()) {
284
286
 
285
287
  $SampleFrame = jQueryDOM("#sampleFrame");
286
288
  if ($SampleFrame.length > 0) {
@@ -403,8 +405,7 @@ sap.ui.define([
403
405
 
404
406
  getGroupHeader: function (oGroup) {
405
407
  return new GroupHeaderListItem({
406
- title: oGroup.key,
407
- upperCase: false
408
+ title: oGroup.key
408
409
  });
409
410
  },
410
411
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -0,0 +1,77 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ sap.ui.define([
8
+ "sap/ui/documentation/sdk/controller/BaseController",
9
+ 'sap/ui/model/json/JSONModel',
10
+ "sap/ui/documentation/sdk/controller/util/NewsInfo",
11
+ "sap/ui/core/Core",
12
+ "sap/m/library"
13
+ ],
14
+ function (BaseController, JSONModel, NewsInfo, Core, mobileLibrary) {
15
+ 'use strict';
16
+
17
+ return BaseController.extend('sap.ui.documentation.sdk.controller.News', {
18
+ onInit: function() {
19
+ this.getRouter().getRoute("news").attachPatternMatched(this._onMatched, this);
20
+
21
+ this._oModel = new JSONModel();
22
+ this.setModel(this._oModel);
23
+
24
+ NewsInfo.prepareNewsData(this.getOwnerComponent().getConfigUtil());
25
+
26
+ Core.getEventBus().subscribe("newsChanged", "onDemoKitNewsChanged", this._syncModelWithNewsInfo, this);
27
+ },
28
+
29
+ onAfterRendering: function() {
30
+ this._syncModelWithNewsInfo();
31
+ },
32
+
33
+ handleNewsItemClose: function (oEvent) {
34
+ var oItem = oEvent.getSource(),
35
+ iItemCustomId = oItem.getCustomData()[0].getValue(),
36
+ oItemInfoInItemsProperty = this._oModel.getProperty("/new").find(function(oItem){
37
+ return oItem.id === iItemCustomId;
38
+ });
39
+
40
+ NewsInfo.moveNewItemToOld(oItemInfoInItemsProperty);
41
+ },
42
+
43
+ handleMarkAsRead: function () {
44
+ NewsInfo.moveAllNewItemsToOld();
45
+ },
46
+
47
+ handleVisitLink: function(oEvent) {
48
+ var oItem = oEvent.getSource(),
49
+ sItemLink = oItem.getCustomData()[0].getValue();
50
+
51
+ mobileLibrary.URLHelper.redirect(sItemLink, true);
52
+ },
53
+
54
+ _syncModelWithNewsInfo: function() {
55
+ var sPreparationFailureMessage = NewsInfo.getPreparationFailureMessage();
56
+
57
+ if (!sPreparationFailureMessage) {
58
+ this._oModel.setProperty("/new", NewsInfo.getNewNewsArray().slice());
59
+ this._oModel.setProperty("/old", NewsInfo.getOldNewsArray().slice());
60
+ }
61
+ this._oModel.setProperty("/preparationFailureMessage", sPreparationFailureMessage);
62
+ },
63
+
64
+ /**
65
+ * Handles "demoapps" routing
66
+ * @function
67
+ * @private
68
+ */
69
+ _onMatched: function () {
70
+ try {
71
+ this.hideMasterSide();
72
+ } catch (e) {
73
+ // try-catch due to a bug in UI5 SplitApp, CL 1898264 should fix it
74
+ }
75
+ }
76
+ });
77
+ });
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6