@sapui5/sap.fe.templates 1.84.6 → 1.84.10

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 (26) hide show
  1. package/package.json +2 -2
  2. package/src/sap/fe/templates/.library +1 -11
  3. package/src/sap/fe/templates/AnalyticalListPage/Component.js +1 -1
  4. package/src/sap/fe/templates/ExtensionAPI.js +1 -1
  5. package/src/sap/fe/templates/ListComponent.js +1 -1
  6. package/src/sap/fe/templates/ListReport/Component.js +1 -1
  7. package/src/sap/fe/templates/ListReport/ExtensionAPI.js +1 -1
  8. package/src/sap/fe/templates/ListReport/ListReportController.controller.js +20 -13
  9. package/src/sap/fe/templates/ListReport/overrides/ViewState.js +19 -3
  10. package/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +5 -3
  11. package/src/sap/fe/templates/ObjectPage/Component.js +1 -1
  12. package/src/sap/fe/templates/ObjectPage/ExtensionAPI.js +1 -1
  13. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +1 -1
  14. package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.js +1 -1
  15. package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.js +1 -1
  16. package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.js +1 -1
  17. package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.js +1 -1
  18. package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.js +1 -1
  19. package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.js +1 -1
  20. package/src/sap/fe/templates/controls/Paginator.js +6 -6
  21. package/src/sap/fe/templates/controls/ViewSwitchContainer.js +1 -1
  22. package/src/sap/fe/templates/controls/ViewSwitchContainerItem.js +1 -1
  23. package/src/sap/fe/templates/controls/messages/MessageButton.js +1 -1
  24. package/src/sap/fe/templates/controls/messages/MessageFilter.js +1 -1
  25. package/src/sap/fe/templates/controls/messages/MessagePopover.js +1 -1
  26. package/src/sap/fe/templates/library.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.fe.templates",
3
- "version": "1.84.6",
3
+ "version": "1.84.10",
4
4
  "description": "SAPUI5 Library sap.fe.templates",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "devDependencies": {
16
16
  "@babel/cli": "7.8.4",
17
- "@ui5/cli": "^2.4.3",
17
+ "@ui5/cli": "2.4.3",
18
18
  "yarn": "1.22.4"
19
19
  }
20
20
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>SAP UI development toolkit for HTML5 (SAPUI5)
7
7
  (c) Copyright 2009-2020 SAP SE. All rights reserved
8
8
  </copyright>
9
- <version>1.84.6</version>
9
+ <version>1.84.10</version>
10
10
 
11
11
  <documentation>UI5 library: sap.fe.templates</documentation>
12
12
 
@@ -56,16 +56,6 @@
56
56
  <!-- excludes for the JSCoverage -->
57
57
  <jscoverage xmlns="http://www.sap.com/ui5/buildext/jscoverage">
58
58
  <exclude name="sap.fe.templates.js."/>
59
- <exclude name="jquery.sap.xml."/>
60
- <exclude name="sap.f." />
61
- <exclude name="sap.fe.core." />
62
- <exclude name="sap.fe.macros." />
63
- <exclude name="sap.m." />
64
- <exclude name="sap.ui." />
65
- <exclude name="sap.uxap." />
66
- <exclude name="sap.suite.ui.microchart." />
67
- <exclude name="sap.ushell." />
68
- <exclude name="*" /> <!-- exclude files within current folder -->
69
59
  </jscoverage>
70
60
  </appData>
71
61
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
  sap.ui.define(
6
6
  ["sap/fe/templates/ListComponent"],
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
  sap.ui.define(
6
6
  [
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
  sap.ui.define(
6
6
  ["sap/fe/core/TemplateComponent", "sap/fe/core/library"],
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
  sap.ui.define(
6
6
  ["sap/fe/templates/ListComponent"],
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
  sap.ui.define(["sap/fe/templates/ExtensionAPI", "sap/fe/macros/filter/FilterUtils"], function(ExtensionAPI, FilterUtils) {
6
6
  "use strict";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define(
@@ -27,6 +27,7 @@ sap.ui.define(
27
27
  "sap/fe/templates/ListReport/ExtensionAPI",
28
28
  "sap/fe/macros/filter/FilterUtils",
29
29
  "sap/fe/macros/chart/ChartUtils",
30
+ "sap/fe/macros/DelegateUtil",
30
31
  "sap/ui/core/mvc/OverrideExecution",
31
32
  "sap/fe/core/controllerextensions/ViewState",
32
33
  "./overrides/ViewState",
@@ -57,6 +58,7 @@ sap.ui.define(
57
58
  ExtensionAPI,
58
59
  FilterUtils,
59
60
  ChartUtils,
61
+ DelegateUtil,
60
62
  OverrideExecution,
61
63
  ViewState,
62
64
  ViewStateOverrides,
@@ -685,23 +687,28 @@ sap.ui.define(
685
687
  },
686
688
  formatters: {
687
689
  /**
688
- * Method to set Message text on multi EntitySet scenario when FitlerBar fields need to be ingored.
690
+ * Method to set the message text for the multi-EntitySet scenario when fields in the FilterBar need to be ignored.
689
691
  *
690
- * @param {Array} aIgnoreFields Array f ignored filterBar for the current Tab (Multi EntitySet scenario)
691
- * @param {string} sTabTitle Tab Title
692
- * @returns {string} Message Text
692
+ * @param {Array} aIgnoredFields Array of ignored fields in the FilterBar for the current tab (multi EntitySet scenario)
693
+ * @param {string} sTabTitle Tab title
694
+ * @returns {string} Message text
693
695
  */
694
- setTabMessageStrip: function(aIgnoreFields, sTabTitle) {
696
+ setTabMessageStrip: function(aIgnoredFields, sTabTitle) {
695
697
  var sText = "";
696
- if (Array.isArray(aIgnoreFields) && aIgnoreFields.length > 0 && sTabTitle) {
697
- var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.fe.templates");
698
+ if (Array.isArray(aIgnoredFields) && aIgnoredFields.length > 0 && sTabTitle) {
699
+ var oFilterBar = this._getFilterBarControl(),
700
+ oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.fe.templates"),
701
+ aIgnoredLabels = aIgnoredFields.map(function(sLabel) {
702
+ return DelegateUtil.getLocalizedText(sLabel, oFilterBar);
703
+ });
698
704
  if (oResourceBundle) {
699
- var sRessource =
700
- "C_LR_MULTIENTITYSET_" +
701
- (aIgnoreFields.length === 1 ? "SINGLE" : "MULTI") +
705
+ var sResource =
706
+ "C_LR_MULTIENTITYSET_" +
707
+ (aIgnoredLabels.length === 1 ? "SINGLE" : "MULTI") +
702
708
  "_IGNORED_FILTER_" +
703
- (Device.system.desktop ? "LARGE" : "SMALL");
704
- sText = oResourceBundle.getText(sRessource, [aIgnoreFields.join(", "), sTabTitle]);
709
+ (Device.system.desktop ? "LARGE" : "SMALL"),
710
+ sLocalizedTableTitle = DelegateUtil.getLocalizedText(sTabTitle, oFilterBar);
711
+ sText = oResourceBundle.getText(sResource, [aIgnoredLabels.join(", "), sLocalizedTableTitle]);
705
712
  }
706
713
  }
707
714
  return sText;
@@ -4,9 +4,10 @@ sap.ui.define(
4
4
  "sap/fe/navigation/library",
5
5
  "sap/fe/core/CommonUtils",
6
6
  "sap/ui/fl/apply/api/ControlVariantApplyAPI",
7
- "sap/ui/mdc/p13n/StateUtil"
7
+ "sap/ui/mdc/p13n/StateUtil",
8
+ "sap/ui/mdc/enum/ConditionValidated"
8
9
  ],
9
- function(CoreLibrary, NavLibrary, CommonUtils, ControlVariantApplyAPI, StateUtil) {
10
+ function(CoreLibrary, NavLibrary, CommonUtils, ControlVariantApplyAPI, StateUtil, ConditionValidated) {
10
11
  "use strict";
11
12
 
12
13
  var NavType = NavLibrary.NavType,
@@ -187,7 +188,19 @@ sap.ui.define(
187
188
  },
188
189
  _fnApplyConditions: function(oFilterBar, oConditions) {
189
190
  var mFilter = {},
190
- aItems = [];
191
+ aItems = [],
192
+ fnAdjustValueHelpCondition = function(oCondition) {
193
+ // in case the condition is meant for a field having a VH, the format required by MDC differs
194
+ oCondition.validated = ConditionValidated.Validated;
195
+ if (oCondition.operator === "Empty") {
196
+ oCondition.operator = "EQ";
197
+ oCondition.values = [""];
198
+ } else if (oCondition.operator === "NotEmpty") {
199
+ oCondition.operator = "NE";
200
+ oCondition.values = [""];
201
+ }
202
+ delete oCondition.isEmpty;
203
+ };
191
204
  return oFilterBar.initialized().then(function() {
192
205
  oFilterBar
193
206
  .getPropertyInfoSet()
@@ -200,6 +213,9 @@ sap.ui.define(
200
213
  if (!oPropertyInfo.hiddenFilter) {
201
214
  aItems.push({ name: oPropertyInfo.path });
202
215
  }
216
+ if (oPropertyInfo.hasValueHelp) {
217
+ mFilter[oPropertyInfo.path].forEach(fnAdjustValueHelpCondition);
218
+ }
203
219
  } else {
204
220
  mFilter[oPropertyInfo.path] = [];
205
221
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define(
@@ -251,8 +251,10 @@ sap.ui.define(
251
251
  * @returns {string} Returns expression binding or boolean value based on oDeleteHidden, viewLevel
252
252
  */
253
253
  getDeleteButtonVisibility: function(oDeletable, viewLevel, oDeleteHidden, bParentDeleteRestrictionEnabled) {
254
- var bParentDeleteRestriction = bParentDeleteRestrictionEnabled && bParentDeleteRestrictionEnabled !== "false";
255
- if ((oDeletable === "false" || oDeleteHidden === "true") && !bParentDeleteRestriction) {
254
+ var bParentDeletable =
255
+ bParentDeleteRestrictionEnabled === "true" ||
256
+ (bParentDeleteRestrictionEnabled !== "false" && typeof bParentDeleteRestrictionEnabled === "string");
257
+ if ((oDeletable === "false" && !bParentDeletable) || oDeleteHidden === "true") {
256
258
  return false;
257
259
  }
258
260
  if (viewLevel > 1) {
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
  sap.ui.define(
6
6
  [
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
  sap.ui.define(["sap/fe/templates/ExtensionAPI", "sap/fe/core/helpers/SideEffectsUtil"], function(ExtensionAPI, SideEffectsUtil) {
6
6
  "use strict";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
  sap.ui.define(
6
6
  [
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define(["sap/uxap/BlockBase"], function(BlockBase) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
  // Provides the Design Time Metadata for the sap.m.FlexBox control
6
6
  sap.ui.define([], function() {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  // Provides the Design Time Metadata for the sap.fe.templates.ObjectPage.controls.StashableHBox control
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  // Provides the Design Time Metadata for the sap.fe.templates.ObjectPage.controls.StashableVBox control
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define(["sap/ui/fl/changeHandler/BaseRename"], function(BaseRename) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define([], function() {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define(
@@ -90,7 +90,7 @@ sap.ui.define(
90
90
  var that = this;
91
91
  var oListBinding = that.getListBinding();
92
92
  if (that.getBindingContext() && oListBinding) {
93
- var oCurrentIndexContext = oListBinding.getContexts(0)[that._currentIndex];
93
+ var oCurrentIndexContext = oListBinding.getCurrentContexts()[that._currentIndex];
94
94
  if (
95
95
  (!that._currentIndex && that._currentIndex !== 0) ||
96
96
  !oCurrentIndexContext ||
@@ -108,7 +108,7 @@ sap.ui.define(
108
108
  // Storing the currentIndex
109
109
  that._currentIndex = that
110
110
  .getListBinding()
111
- .getContexts(0)
111
+ .getCurrentContexts()
112
112
  .findIndex(function(oContext) {
113
113
  return oContext && oContext.getPath() === sPath;
114
114
  });
@@ -119,8 +119,8 @@ sap.ui.define(
119
119
  var that = this;
120
120
  var oListBinding = that.getListBinding();
121
121
  var mButtonEnablementModel = that.getModel("buttonEnablement");
122
- if (oListBinding && oListBinding.getContexts(0).length > 1 && that._currentIndex > -1) {
123
- if (that._currentIndex === oListBinding.getContexts(0).length - 1) {
122
+ if (oListBinding && oListBinding.getCurrentContexts().length > 1 && that._currentIndex > -1) {
123
+ if (that._currentIndex === oListBinding.getCurrentContexts().length - 1) {
124
124
  mButtonEnablementModel.setProperty("/navDownEnabled", false);
125
125
  } else {
126
126
  mButtonEnablementModel.setProperty("/navDownEnabled", true);
@@ -148,7 +148,7 @@ sap.ui.define(
148
148
  return;
149
149
  }
150
150
 
151
- var aCurrentContexts = oListBinding.getContexts(0);
151
+ var aCurrentContexts = oListBinding.getCurrentContexts();
152
152
  var iNewIndex = that._currentIndex + index;
153
153
  if (aCurrentContexts[iNewIndex]) {
154
154
  that.fireNavigate({
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define(
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define(
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define(
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define(
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  sap.ui.define(
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! SAPUI5
3
- * (c) Copyright 2009-2021 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  /**
@@ -51,7 +51,7 @@ sap.ui.define(
51
51
  interfaces: [],
52
52
  controls: [],
53
53
  elements: [],
54
- version: "1.84.6",
54
+ version: "1.84.10",
55
55
  noLibraryCSS: true,
56
56
  extensions: {
57
57
  flChangeHandlers: {