@openui5/sap.f 1.120.7 → 1.121.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 (152) hide show
  1. package/.reuse/dep5 +23 -21
  2. package/THIRDPARTY.txt +6 -43
  3. package/package.json +4 -4
  4. package/src/sap/f/.library +1 -1
  5. package/src/sap/f/Avatar.js +5 -4
  6. package/src/sap/f/AvatarGroup.js +4 -4
  7. package/src/sap/f/AvatarGroupItem.js +1 -1
  8. package/src/sap/f/CalendarAppointmentInCard.js +1 -1
  9. package/src/sap/f/CalendarInCard.js +7 -5
  10. package/src/sap/f/CalendarInCardRenderer.js +6 -11
  11. package/src/sap/f/Card.js +1 -1
  12. package/src/sap/f/CardBase.js +6 -6
  13. package/src/sap/f/DynamicPage.js +35 -15
  14. package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
  15. package/src/sap/f/DynamicPageHeader.js +30 -16
  16. package/src/sap/f/DynamicPageTitle.js +10 -8
  17. package/src/sap/f/FlexibleColumnLayout.js +220 -90
  18. package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
  19. package/src/sap/f/FlexibleColumnLayoutRenderer.js +7 -3
  20. package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
  21. package/src/sap/f/GridContainer.js +45 -46
  22. package/src/sap/f/GridContainerItemLayoutData.js +1 -1
  23. package/src/sap/f/GridContainerRenderer.js +19 -11
  24. package/src/sap/f/GridContainerSettings.js +2 -2
  25. package/src/sap/f/GridList.js +15 -4
  26. package/src/sap/f/GridListItem.js +1 -1
  27. package/src/sap/f/GridNavigationMatrix.js +3 -3
  28. package/src/sap/f/IllustratedMessage.js +1 -1
  29. package/src/sap/f/Illustration.js +1 -1
  30. package/src/sap/f/PlanningCalendarInCardLegend.js +4 -5
  31. package/src/sap/f/PlanningCalendarInCardLegendRenderer.js +4 -4
  32. package/src/sap/f/ProductSwitch.js +7 -7
  33. package/src/sap/f/ProductSwitchItem.js +1 -1
  34. package/src/sap/f/ProductSwitchRenderer.js +3 -3
  35. package/src/sap/f/SearchManager.js +4 -4
  36. package/src/sap/f/ShellBar.js +71 -10
  37. package/src/sap/f/ShellBarRenderer.js +3 -3
  38. package/src/sap/f/SidePanel.js +22 -11
  39. package/src/sap/f/SidePanelItem.js +1 -1
  40. package/src/sap/f/cards/BaseHeader.js +21 -9
  41. package/src/sap/f/cards/Header.js +1 -1
  42. package/src/sap/f/cards/NumericHeader.js +1 -1
  43. package/src/sap/f/cards/NumericIndicators.js +1 -1
  44. package/src/sap/f/cards/NumericSideIndicator.js +1 -1
  45. package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +1 -1
  46. package/src/sap/f/cards/loading/CalendarPlaceholder.js +1 -1
  47. package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
  48. package/src/sap/f/cards/loading/ListPlaceholder.js +1 -1
  49. package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
  50. package/src/sap/f/cards/loading/PlaceholderBase.js +1 -1
  51. package/src/sap/f/cards/loading/PlaceholderBaseRenderer.js +2 -2
  52. package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
  53. package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
  54. package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
  55. package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
  56. package/src/sap/f/delegate/GridItemNavigation.js +1 -1
  57. package/src/sap/f/designtime/messagebundle_en_US_saprigi.properties +4 -4
  58. package/src/sap/f/dnd/GridDragOver.js +5 -5
  59. package/src/sap/f/dnd/GridDropInfo.js +1 -1
  60. package/src/sap/f/library.js +23 -19
  61. package/src/sap/f/messagebundle.properties +4 -1
  62. package/src/sap/f/messagebundle_ar.properties +2 -0
  63. package/src/sap/f/messagebundle_bg.properties +2 -0
  64. package/src/sap/f/messagebundle_ca.properties +2 -0
  65. package/src/sap/f/messagebundle_cnr.properties +2 -0
  66. package/src/sap/f/messagebundle_cs.properties +2 -0
  67. package/src/sap/f/messagebundle_cy.properties +2 -0
  68. package/src/sap/f/messagebundle_da.properties +2 -0
  69. package/src/sap/f/messagebundle_de.properties +2 -0
  70. package/src/sap/f/messagebundle_el.properties +2 -0
  71. package/src/sap/f/messagebundle_en.properties +86 -1
  72. package/src/sap/f/messagebundle_en_GB.properties +2 -0
  73. package/src/sap/f/messagebundle_en_US_saprigi.properties +82 -80
  74. package/src/sap/f/messagebundle_es.properties +2 -0
  75. package/src/sap/f/messagebundle_es_MX.properties +2 -0
  76. package/src/sap/f/messagebundle_et.properties +2 -0
  77. package/src/sap/f/messagebundle_fi.properties +2 -0
  78. package/src/sap/f/messagebundle_fr.properties +2 -0
  79. package/src/sap/f/messagebundle_fr_CA.properties +2 -0
  80. package/src/sap/f/messagebundle_hi.properties +2 -0
  81. package/src/sap/f/messagebundle_hr.properties +2 -0
  82. package/src/sap/f/messagebundle_hu.properties +2 -0
  83. package/src/sap/f/messagebundle_id.properties +2 -0
  84. package/src/sap/f/messagebundle_it.properties +2 -0
  85. package/src/sap/f/messagebundle_iw.properties +2 -0
  86. package/src/sap/f/messagebundle_ja.properties +2 -0
  87. package/src/sap/f/messagebundle_kk.properties +2 -0
  88. package/src/sap/f/messagebundle_ko.properties +2 -0
  89. package/src/sap/f/messagebundle_lt.properties +2 -0
  90. package/src/sap/f/messagebundle_lv.properties +2 -0
  91. package/src/sap/f/messagebundle_mk.properties +2 -0
  92. package/src/sap/f/messagebundle_ms.properties +2 -0
  93. package/src/sap/f/messagebundle_nl.properties +2 -0
  94. package/src/sap/f/messagebundle_no.properties +2 -0
  95. package/src/sap/f/messagebundle_pl.properties +2 -0
  96. package/src/sap/f/messagebundle_pt.properties +2 -0
  97. package/src/sap/f/messagebundle_pt_PT.properties +2 -0
  98. package/src/sap/f/messagebundle_ro.properties +2 -0
  99. package/src/sap/f/messagebundle_ru.properties +2 -0
  100. package/src/sap/f/messagebundle_sh.properties +2 -0
  101. package/src/sap/f/messagebundle_sk.properties +2 -0
  102. package/src/sap/f/messagebundle_sl.properties +2 -0
  103. package/src/sap/f/messagebundle_sr.properties +2 -0
  104. package/src/sap/f/messagebundle_sv.properties +2 -0
  105. package/src/sap/f/messagebundle_th.properties +2 -0
  106. package/src/sap/f/messagebundle_tr.properties +2 -0
  107. package/src/sap/f/messagebundle_uk.properties +3 -1
  108. package/src/sap/f/messagebundle_vi.properties +2 -0
  109. package/src/sap/f/messagebundle_zh_CN.properties +2 -0
  110. package/src/sap/f/messagebundle_zh_TW.properties +2 -0
  111. package/src/sap/f/semantic/AddAction.js +1 -1
  112. package/src/sap/f/semantic/CloseAction.js +1 -1
  113. package/src/sap/f/semantic/CopyAction.js +1 -1
  114. package/src/sap/f/semantic/DeleteAction.js +1 -1
  115. package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
  116. package/src/sap/f/semantic/EditAction.js +1 -1
  117. package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
  118. package/src/sap/f/semantic/FavoriteAction.js +1 -1
  119. package/src/sap/f/semantic/FlagAction.js +1 -1
  120. package/src/sap/f/semantic/FooterMainAction.js +1 -1
  121. package/src/sap/f/semantic/FullScreenAction.js +1 -1
  122. package/src/sap/f/semantic/MainAction.js +1 -1
  123. package/src/sap/f/semantic/MessagesIndicator.js +1 -1
  124. package/src/sap/f/semantic/NegativeAction.js +1 -1
  125. package/src/sap/f/semantic/PositiveAction.js +1 -1
  126. package/src/sap/f/semantic/PrintAction.js +1 -1
  127. package/src/sap/f/semantic/SemanticButton.js +1 -1
  128. package/src/sap/f/semantic/SemanticConfiguration.js +7 -8
  129. package/src/sap/f/semantic/SemanticControl.js +1 -1
  130. package/src/sap/f/semantic/SemanticFooter.js +2 -2
  131. package/src/sap/f/semantic/SemanticPage.js +19 -17
  132. package/src/sap/f/semantic/SemanticShareMenu.js +5 -2
  133. package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
  134. package/src/sap/f/semantic/SendEmailAction.js +1 -1
  135. package/src/sap/f/semantic/SendMessageAction.js +1 -1
  136. package/src/sap/f/semantic/ShareInJamAction.js +1 -1
  137. package/src/sap/f/semantic/TitleMainAction.js +1 -1
  138. package/src/sap/f/shellBar/Accessibility.js +5 -5
  139. package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
  140. package/src/sap/f/shellBar/CoPilot.js +8 -7
  141. package/src/sap/f/shellBar/ControlSpacer.js +1 -1
  142. package/src/sap/f/shellBar/Factory.js +14 -8
  143. package/src/sap/f/shellBar/ResponsiveHandler.js +23 -6
  144. package/src/sap/f/shellBar/Search.js +20 -4
  145. package/src/sap/f/themes/base/Card.less +2 -2
  146. package/src/sap/f/themes/base/CardLoading.less +94 -5
  147. package/src/sap/f/themes/base/DynamicPage.less +1 -1
  148. package/src/sap/f/themes/base/DynamicPageHeader.less +1 -1
  149. package/src/sap/f/themes/base/DynamicPageTitle.less +1 -1
  150. package/src/sap/f/themes/base/GridContainer.less +6 -4
  151. package/src/sap/f/themes/base/ShellBar.less +32 -13
  152. package/LICENSES/BSD-2-Clause.txt +0 -22
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.120.7
26
+ * @version 1.121.0
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -6,20 +6,22 @@
6
6
 
7
7
  // Provides control sap.f.DynamicPageHeader.
8
8
  sap.ui.define([
9
- "./library",
10
- "sap/ui/Device",
11
- "sap/ui/core/Control",
9
+ "./library",
10
+ "sap/ui/Device",
11
+ "sap/ui/core/Control",
12
+ "sap/ui/core/Lib",
12
13
  "sap/ui/core/library",
13
14
  "sap/ui/core/IconPool",
14
15
  "sap/ui/core/theming/Parameters",
15
- "sap/m/ToggleButton",
16
- "sap/m/Button",
17
- "./DynamicPageHeaderRenderer",
16
+ "sap/m/ToggleButton",
17
+ "sap/m/Button",
18
+ "./DynamicPageHeaderRenderer",
18
19
  "sap/ui/core/InvisibleMessage"
19
20
  ], function(
20
- library,
21
+ library,
21
22
  Device,
22
23
  Control,
24
+ Library,
23
25
  CoreLibrary,
24
26
  IconPool,
25
27
  ThemeParameters,
@@ -62,7 +64,7 @@ sap.ui.define([
62
64
  * @extends sap.ui.core.Control
63
65
  *
64
66
  * @author SAP SE
65
- * @version 1.120.7
67
+ * @version 1.121.0
66
68
  *
67
69
  * @constructor
68
70
  * @public
@@ -119,9 +121,11 @@ sap.ui.define([
119
121
  * @returns {Object} the resource bundle object
120
122
  */
121
123
  DynamicPageHeader._getResourceBundle = function () {
122
- return sap.ui.getCore().getLibraryResourceBundle("sap.f");
124
+ return Library.getResourceBundleFor("sap.f");
123
125
  };
124
126
 
127
+ DynamicPageHeader.UNPRESSED_PIN_ICON = "sap-icon://pushpin-off";
128
+
125
129
  DynamicPageHeader.ARIA = {
126
130
  ARIA_CONTROLS: "aria-controls",
127
131
  ARIA_LABEL: "aria-label",
@@ -146,6 +150,11 @@ sap.ui.define([
146
150
  if (!this._oInvisibleMessage) {
147
151
  this._oInvisibleMessage = InvisibleMessage.getInstance();
148
152
  }
153
+ // Required if the parent has "headerPinned" set to "true" initially.
154
+ // Without the explicit "_setPressedStatePinIcon" an empty button is rendered.
155
+ if (this.getPinnable()) {
156
+ this._setPressedStatePinIcon();
157
+ }
149
158
  };
150
159
 
151
160
  /*************************************** Private members ******************************************/
@@ -157,6 +166,7 @@ sap.ui.define([
157
166
  */
158
167
  DynamicPageHeader.prototype._togglePinButton = function (bValue) {
159
168
  this._getPinButton().setPressed(bValue);
169
+ this._getPinButton().setIcon(bValue ? this._sPressedStatePinIconURI : DynamicPageHeader.UNPRESSED_PIN_ICON);
160
170
  };
161
171
 
162
172
  /**
@@ -172,8 +182,9 @@ sap.ui.define([
172
182
  * Fires the pin/unpin press event.
173
183
  * @private
174
184
  */
175
- DynamicPageHeader.prototype._pinUnpinFireEvent = function () {
185
+ DynamicPageHeader.prototype._pinUnpinFireEvent = function (oEvent) {
176
186
  this.fireEvent("_pinUnpinPress");
187
+ this._togglePinButton(oEvent.getSource().getPressed());
177
188
  };
178
189
 
179
190
  /**
@@ -247,7 +258,7 @@ sap.ui.define([
247
258
  if (!this.getAggregation("_pinButton")) {
248
259
  var oPinButton = new ToggleButton({
249
260
  id: this.getId() + "-pinBtn",
250
- icon: "sap-icon://pushpin-off",
261
+ icon: DynamicPageHeader.UNPRESSED_PIN_ICON,
251
262
  tooltip: DynamicPageHeader.ARIA.LABEL_PINNED,
252
263
  press: this._pinUnpinFireEvent.bind(this)
253
264
  }).addStyleClass("sapFDynamicPageHeaderPinButton");
@@ -359,15 +370,18 @@ sap.ui.define([
359
370
  };
360
371
  };
361
372
 
373
+ DynamicPageHeader.prototype.onThemeChanged = function () {
374
+ this._setPressedStatePinIcon();
375
+ };
376
+
362
377
  /**
363
- * Sets the icon of the pin button depending on the current theme
378
+ * Sets the icon URI for the pressed state of the pin button
379
+ * @private
364
380
  */
365
- DynamicPageHeader.prototype.onThemeChanged = function () {
366
- var sIcon = IconPool.getIconURI(ThemeParameters.get({
381
+ DynamicPageHeader.prototype._setPressedStatePinIcon = function () {
382
+ this._sPressedStatePinIconURI = IconPool.getIconURI(ThemeParameters.get({
367
383
  name: "_sap_f_DynamicPageHeader_PinButton_Icon"
368
384
  }));
369
-
370
- this._getPinButton().setIcon(sIcon);
371
385
  };
372
386
 
373
387
  return DynamicPageHeader;
@@ -7,6 +7,7 @@
7
7
  // Provides control sap.f.DynamicPageTitle.
8
8
  sap.ui.define([
9
9
  "./library",
10
+ "sap/ui/core/Lib",
10
11
  "sap/ui/core/library",
11
12
  "sap/ui/core/Control",
12
13
  "sap/ui/base/ManagedObjectObserver",
@@ -20,11 +21,12 @@ sap.ui.define([
20
21
  "sap/base/Log",
21
22
  "sap/ui/core/Icon",
22
23
  "sap/ui/Device",
23
- "sap/ui/events/KeyCodes",
24
- "sap/ui/core/InvisibleMessage",
25
- "sap/ui/core/Core"
24
+ "sap/ui/core/RenderManager",
25
+ "sap/ui/events/KeyCodes",
26
+ "sap/ui/core/InvisibleMessage"
26
27
  ], function(
27
28
  library,
29
+ Library,
28
30
  CoreLibrary,
29
31
  Control,
30
32
  ManagedObjectObserver,
@@ -38,9 +40,9 @@ sap.ui.define([
38
40
  Log,
39
41
  Icon,
40
42
  Device,
43
+ RenderManager,
41
44
  KeyCodes,
42
- InvisibleMessage,
43
- oCore
45
+ InvisibleMessage
44
46
  ) {
45
47
  "use strict";
46
48
 
@@ -93,7 +95,7 @@ sap.ui.define([
93
95
  * @extends sap.ui.core.Control
94
96
  *
95
97
  * @author SAP SE
96
- * @version 1.120.7
98
+ * @version 1.121.0
97
99
  *
98
100
  * @constructor
99
101
  * @public
@@ -382,7 +384,7 @@ sap.ui.define([
382
384
  * @private
383
385
  */
384
386
  DynamicPageTitle._getResourceBundle = function () {
385
- return oCore.getLibraryResourceBundle("sap.f");
387
+ return Library.getResourceBundleFor("sap.f");
386
388
  };
387
389
 
388
390
  DynamicPageTitle.ARIA = {
@@ -402,7 +404,7 @@ sap.ui.define([
402
404
  return;
403
405
  }
404
406
 
405
- oRenderManager = oCore.createRenderManager();
407
+ oRenderManager = new RenderManager().getInterface();
406
408
  oRenderManager.renderControl(oControlToRender);
407
409
  oRenderManager.flush(oContainerDOM);
408
410
  oRenderManager.destroy();