@sapui5/sap.fe.macros 1.96.9 → 1.96.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.fe.macros",
3
- "version": "1.96.9",
3
+ "version": "1.96.10",
4
4
  "description": "SAPUI5 Library sap.fe.macros",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -6,7 +6,7 @@
6
6
  <copyright>SAP UI development toolkit for HTML5 (SAPUI5)
7
7
  (c) Copyright 2009-2021 SAP SE. All rights reserved
8
8
  </copyright>
9
- <version>1.96.9</version>
9
+ <version>1.96.10</version>
10
10
 
11
11
  <documentation>UI5 library: sap.fe.macros</documentation>
12
12
 
@@ -15,7 +15,7 @@ sap.ui.define(
15
15
  "sap/ui/Device",
16
16
  "sap/m/library"
17
17
  ],
18
- function (
18
+ function(
19
19
  ResourceModel,
20
20
  ODataModelAnnotationHelper,
21
21
  Log,
@@ -30,7 +30,7 @@ sap.ui.define(
30
30
  "use strict";
31
31
  var ValueColor = mobilelibrary.ValueColor;
32
32
  var Helper = {
33
- getPathToKey: function (oCtx) {
33
+ getPathToKey: function(oCtx) {
34
34
  return oCtx.getObject();
35
35
  },
36
36
 
@@ -41,7 +41,7 @@ sap.ui.define(
41
41
  * @param {object} oInterface Interface instance
42
42
  * @returns {string|boolean} Returns true, false, or expression with path, for example "{= !${IsActiveEntity} }"
43
43
  */
44
- isVisible: function (target, oInterface) {
44
+ isVisible: function(target, oInterface) {
45
45
  var oModel = oInterface.context.getModel(),
46
46
  sPropertyPath = oInterface.context.getPath(),
47
47
  oAnnotations = oModel.getObject(sPropertyPath + "@"),
@@ -57,7 +57,7 @@ sap.ui.define(
57
57
  * @param oInterface
58
58
  * @returns {boolean} `true` if a dialog is needed
59
59
  */
60
- isDialog: function (oActionContext, oInterface) {
60
+ isDialog: function(oActionContext, oInterface) {
61
61
  var oModel = oInterface.context.getModel(),
62
62
  sPropertyPath = oInterface.context.getPath(),
63
63
  isCritical = oModel.getObject(sPropertyPath + "/@$ui5.overload@com.sap.vocabularies.Common.v1.IsActionCritical");
@@ -79,7 +79,7 @@ sap.ui.define(
79
79
  * @param {object} oInterface Interface instance
80
80
  * @returns {string} A Binding Expression to determine if a field should be editable or not.
81
81
  */
82
- getParameterEditMode: function (target, oInterface) {
82
+ getParameterEditMode: function(target, oInterface) {
83
83
  var oModel = oInterface.context.getModel(),
84
84
  sPropertyPath = oInterface.context.getPath(),
85
85
  oAnnotations = oModel.getObject(sPropertyPath + "@"),
@@ -126,13 +126,13 @@ sap.ui.define(
126
126
  * @param oInterface
127
127
  * @returns {string | undefined}
128
128
  */
129
- getMetaPath: function (target, oInterface) {
129
+ getMetaPath: function(target, oInterface) {
130
130
  return (oInterface && oInterface.context && oInterface.context.getPath()) || undefined;
131
131
  },
132
- isDesktop: function () {
132
+ isDesktop: function() {
133
133
  return Device.system.desktop === true;
134
134
  },
135
- getTargetCollection: function (oContext, navCollection) {
135
+ getTargetCollection: function(oContext, navCollection) {
136
136
  var sPath = oContext.getPath(),
137
137
  aParts,
138
138
  entitySet,
@@ -146,10 +146,13 @@ sap.ui.define(
146
146
  if (oContext.getModel) {
147
147
  sPath =
148
148
  (oContext.getModel().getMetaPath && oContext.getModel().getMetaPath(sPath)) ||
149
- oContext.getModel().getMetaModel().getMetaPath(sPath);
149
+ oContext
150
+ .getModel()
151
+ .getMetaModel()
152
+ .getMetaPath(sPath);
150
153
  }
151
154
  //Supporting sPath of any format, either '/<entitySet>/<navigationCollection>' <OR> '/<entitySet>/$Type/<navigationCollection>'
152
- aParts = sPath.split("/").filter(function (sPart) {
155
+ aParts = sPath.split("/").filter(function(sPart) {
153
156
  return sPart && sPart != "$Type";
154
157
  }); //filter out empty strings and parts referring to '$Type'
155
158
  entitySet = "/" + aParts[0];
@@ -160,7 +163,7 @@ sap.ui.define(
160
163
  return entitySet + "/$NavigationPropertyBinding/" + navigationCollection; // used in gotoTargetEntitySet method in the same file
161
164
  },
162
165
 
163
- isPropertyFilterable: function (property, oInterface, oDataField) {
166
+ isPropertyFilterable: function(property, oInterface, oDataField) {
164
167
  var oModel = oInterface.context.getModel(),
165
168
  sPropertyPath = oInterface.context.getPath(),
166
169
  // LoacationPath would be the prefix of sPropertyPath, example: sPropertyPath = '/Customer/Set/Name' -> sPropertyLocationPath = '/Customer/Set'
@@ -178,7 +181,7 @@ sap.ui.define(
178
181
  return CommonUtils.isPropertyFilterable(oModel, sPropertyLocationPath, sProperty);
179
182
  },
180
183
 
181
- getLocationForPropertyPath: function (oModel, sPropertyPath) {
184
+ getLocationForPropertyPath: function(oModel, sPropertyPath) {
182
185
  var iLength;
183
186
  var sCollectionPath = sPropertyPath.slice(0, sPropertyPath.lastIndexOf("/"));
184
187
  if (oModel.getObject(sCollectionPath + "/$kind") === "EntityContainer") {
@@ -187,18 +190,10 @@ sap.ui.define(
187
190
  }
188
191
  return sCollectionPath;
189
192
  },
190
- gotoActionParameter: function (oContext) {
193
+ gotoActionParameter: function(oContext) {
191
194
  var sPath = oContext.getPath(),
192
195
  sPropertyName = oContext.getObject(sPath + "/$Name");
193
- var sContext;
194
- if (sPath.indexOf("@$ui5.overload") > -1) {
195
- sContext = sPath.split("@$ui5.overload")[0];
196
- } else {
197
- // For Unbound Actions in Action Parameter Dialogs
198
- var aAction = sPath.split("/0/")[0].split(".");
199
- sContext = "/" + aAction[aAction.length - 1] + "/";
200
- }
201
- return sContext + sPropertyName;
196
+ return CommonUtils.getParameterPath(sPath, sPropertyName);
202
197
  },
203
198
 
204
199
  /**
@@ -210,7 +205,7 @@ sap.ui.define(
210
205
  * @private
211
206
  * @ui5-restricted
212
207
  */
213
- getEntitySetName: function (oMetaModel, sEntityType) {
208
+ getEntitySetName: function(oMetaModel, sEntityType) {
214
209
  var oEntityContainer = oMetaModel.getObject("/");
215
210
  for (var key in oEntityContainer) {
216
211
  if (typeof oEntityContainer[key] === "object" && oEntityContainer[key].$Type === sEntityType) {
@@ -234,7 +229,7 @@ sap.ui.define(
234
229
  * @private
235
230
  * @ui5-restricted
236
231
  */
237
- getActionPath: function (oAction, bReturnOnlyPath, sActionName, bCheckStaticValue) {
232
+ getActionPath: function(oAction, bReturnOnlyPath, sActionName, bCheckStaticValue) {
238
233
  var sContextPath = oAction.getPath().split("/@")[0];
239
234
 
240
235
  sActionName = !sActionName ? oAction.getObject(oAction.getPath()) : sActionName;
@@ -280,7 +275,7 @@ sap.ui.define(
280
275
  * @param {string} sPropertyPath The property path
281
276
  * @returns {string|boolean} A runtime binding or fixed string value for Field true/false for Rating Indicator
282
277
  */
283
- getEditMode: function (
278
+ getEditMode: function(
284
279
  oAnnotations,
285
280
  sDataFieldType,
286
281
  oFieldControl,
@@ -482,7 +477,7 @@ sap.ui.define(
482
477
  return sExpression;
483
478
  },
484
479
 
485
- getNavigationContext: function (oContext) {
480
+ getNavigationContext: function(oContext) {
486
481
  return ODataModelAnnotationHelper.getNavigationPath(oContext.getPath());
487
482
  },
488
483
 
@@ -497,9 +492,9 @@ sap.ui.define(
497
492
  * @param bKeepProperty
498
493
  * @returns {string} The navigation path
499
494
  */
500
- getNavigationPath: function (sPropertyPath, bKeepProperty) {
495
+ getNavigationPath: function(sPropertyPath, bKeepProperty) {
501
496
  var bStartsWithEntityType = sPropertyPath.startsWith("/");
502
- var aParts = sPropertyPath.split("/").filter(function (part) {
497
+ var aParts = sPropertyPath.split("/").filter(function(part) {
503
498
  return !!part;
504
499
  });
505
500
  if (bStartsWithEntityType) {
@@ -528,7 +523,7 @@ sap.ui.define(
528
523
  * @private
529
524
  * @ui5-restricted
530
525
  **/
531
- getActionContext: function (oAction) {
526
+ getActionContext: function(oAction) {
532
527
  return Helper.getActionPath(oAction, true);
533
528
  },
534
529
  /**
@@ -545,7 +540,7 @@ sap.ui.define(
545
540
  * @private
546
541
  * @ui5-restricted
547
542
  **/
548
- getPathToBoundActionOverload: function (oAction) {
543
+ getPathToBoundActionOverload: function(oAction) {
549
544
  var sPath = Helper.getActionPath(oAction, true);
550
545
  return sPath + "/@$ui5.overload/0";
551
546
  },
@@ -559,7 +554,7 @@ sap.ui.define(
559
554
  * @param {boolean} bEscape Should the string be escaped beforehand
560
555
  * @returns {string} String with single quotes
561
556
  **/
562
- addSingleQuotes: function (sValue, bEscape) {
557
+ addSingleQuotes: function(sValue, bEscape) {
563
558
  if (bEscape && sValue) {
564
559
  sValue = sValue.replace(/[']/g, "\\'");
565
560
  }
@@ -575,7 +570,7 @@ sap.ui.define(
575
570
  * @param {string} sFuncName Some string for the function name
576
571
  * @returns {string} Function string depends on arguments passed
577
572
  **/
578
- generateFunction: function (sFuncName) {
573
+ generateFunction: function(sFuncName) {
579
574
  var sParams = "";
580
575
  for (var i = 1; i < arguments.length; i++) {
581
576
  sParams += arguments[i];
@@ -601,7 +596,7 @@ sap.ui.define(
601
596
  *
602
597
  */
603
598
 
604
- getHeaderDataPointLinkVisibility: function (sPath, bLink, bFieldVisibility) {
599
+ getHeaderDataPointLinkVisibility: function(sPath, bLink, bFieldVisibility) {
605
600
  var sVisibilityExp;
606
601
  if (bFieldVisibility) {
607
602
  sVisibilityExp = bLink
@@ -623,7 +618,7 @@ sap.ui.define(
623
618
  * @param {string} oParams Some object
624
619
  * @returns {string} - Object string
625
620
  **/
626
- objectToString: function (oParams) {
621
+ objectToString: function(oParams) {
627
622
  var iNumberOfKeys = Object.keys(oParams).length,
628
623
  sParams = "";
629
624
 
@@ -651,7 +646,7 @@ sap.ui.define(
651
646
  * @param {string} sExpression An expression with escape characters
652
647
  * @returns {string} Expression string without escape characters or undefined
653
648
  **/
654
- removeEscapeCharacters: function (sExpression) {
649
+ removeEscapeCharacters: function(sExpression) {
655
650
  return sExpression ? sExpression.replace(/\\?\\([{}])/g, "$1") : undefined;
656
651
  },
657
652
 
@@ -661,7 +656,7 @@ sap.ui.define(
661
656
  * @param {string} sStringified
662
657
  * @returns {string} The updated string representation of the object
663
658
  */
664
- stringifyObject: function (sStringified) {
659
+ stringifyObject: function(sStringified) {
665
660
  if (!sStringified) {
666
661
  return undefined;
667
662
  } else {
@@ -686,7 +681,7 @@ sap.ui.define(
686
681
  * @param {object} vData The data to stringify
687
682
  * @returns {string} The string representation of the data.
688
683
  */
689
- stringifyCustomData: function (vData) {
684
+ stringifyCustomData: function(vData) {
690
685
  var oObject = {
691
686
  ui5object: true
692
687
  };
@@ -700,7 +695,7 @@ sap.ui.define(
700
695
  * @param {object | string} vData The data to parse
701
696
  * @returns {object} The result of the data parsing
702
697
  */
703
- parseCustomData: function (vData) {
698
+ parseCustomData: function(vData) {
704
699
  var vData = typeof vData === "string" ? JSON.parse(vData) : vData;
705
700
  if ("customData" in vData) {
706
701
  return vData["customData"];
@@ -714,7 +709,7 @@ sap.ui.define(
714
709
  * @param {string} sEntityType The EntityType name
715
710
  * @returns {object} The DraftAdministrativeData
716
711
  */
717
- _getDraftAdministrativeDataType: function (oMetaModel, sEntityType) {
712
+ _getDraftAdministrativeDataType: function(oMetaModel, sEntityType) {
718
713
  return oMetaModel.requestObject("/" + sEntityType + "/DraftAdministrativeData/");
719
714
  },
720
715
  /**
@@ -724,8 +719,8 @@ sap.ui.define(
724
719
  * @param {string} sEntityType The EntityType name
725
720
  * @returns {string} The Binding Expression for the draft popover
726
721
  */
727
- getPopoverText: function (iContext, sEntityType) {
728
- return Helper._getDraftAdministrativeDataType(iContext.getModel(), sEntityType).then(function (oDADEntityType) {
722
+ getPopoverText: function(iContext, sEntityType) {
723
+ return Helper._getDraftAdministrativeDataType(iContext.getModel(), sEntityType).then(function(oDADEntityType) {
729
724
  var sBinding =
730
725
  "{parts: [{path: 'HasDraftEntity', targetType: 'any'}, " +
731
726
  //"{path: 'DraftAdministrativeData/LastChangeDateTime'}, " +
@@ -742,7 +737,7 @@ sap.ui.define(
742
737
  return sBinding;
743
738
  });
744
739
  },
745
- getContextPath: function (oValue, oInterface) {
740
+ getContextPath: function(oValue, oInterface) {
746
741
  return oInterface && oInterface.context && oInterface.context.getPath();
747
742
  },
748
743
  /**
@@ -751,7 +746,7 @@ sap.ui.define(
751
746
  * @param sPresentationVariantPath
752
747
  * @returns {string} Stringified JSON object
753
748
  */
754
- getSortConditions: function (oPresentationVariant, sPresentationVariantPath) {
749
+ getSortConditions: function(oPresentationVariant, sPresentationVariantPath) {
755
750
  if (
756
751
  oPresentationVariant &&
757
752
  this._isPresentationVariantAnnotation(sPresentationVariantPath) &&
@@ -760,7 +755,7 @@ sap.ui.define(
760
755
  var aSortConditions = {
761
756
  sorters: []
762
757
  };
763
- oPresentationVariant.SortOrder.forEach(function (oCondition) {
758
+ oPresentationVariant.SortOrder.forEach(function(oCondition) {
764
759
  var oSorter = {};
765
760
  oSorter.name = oCondition.Property.$PropertyPath;
766
761
  oSorter.descending = !!oCondition.Descending;
@@ -770,13 +765,13 @@ sap.ui.define(
770
765
  }
771
766
  return undefined;
772
767
  },
773
- _isPresentationVariantAnnotation: function (sAnnotationPath) {
768
+ _isPresentationVariantAnnotation: function(sAnnotationPath) {
774
769
  return (
775
770
  sAnnotationPath.indexOf("@com.sap.vocabularies.UI.v1.PresentationVariant") > -1 ||
776
771
  sAnnotationPath.indexOf("@com.sap.vocabularies.UI.v1.SelectionPresentationVariant") > -1
777
772
  );
778
773
  },
779
- createPresentationPathContext: function (oPresentationContext) {
774
+ createPresentationPathContext: function(oPresentationContext) {
780
775
  var aPaths = oPresentationContext.sPath.split("@") || [];
781
776
  var oModel = oPresentationContext.getModel();
782
777
  if (aPaths.length && aPaths[aPaths.length - 1].indexOf("com.sap.vocabularies.UI.v1.SelectionPresentationVariant") > -1) {
@@ -785,7 +780,7 @@ sap.ui.define(
785
780
  }
786
781
  return oModel.createBindingContext(oPresentationContext.sPath + "@sapui.name");
787
782
  },
788
- getPressHandlerForDataFieldForIBN: function (oDataField, sContext, bNavigateWithConfirmationDialog) {
783
+ getPressHandlerForDataFieldForIBN: function(oDataField, sContext, bNavigateWithConfirmationDialog) {
789
784
  var mNavigationParameters = {
790
785
  navigationContexts: sContext ? sContext : "${$source>/}.getBindingContext()"
791
786
  };
@@ -808,11 +803,11 @@ sap.ui.define(
808
803
  this.objectToString(mNavigationParameters)
809
804
  );
810
805
  },
811
- getEntitySet: function (oContext) {
806
+ getEntitySet: function(oContext) {
812
807
  var sPath = oContext.getPath();
813
808
  return ModelHelper.getEntitySetPath(sPath);
814
809
  },
815
- _isRatingIndicator: function (oControl) {
810
+ _isRatingIndicator: function(oControl) {
816
811
  if (oControl.isA("sap.fe.core.controls.FieldWrapper")) {
817
812
  var vContentDisplay = Array.isArray(oControl.getContentDisplay())
818
813
  ? oControl.getContentDisplay()[0]
@@ -823,7 +818,7 @@ sap.ui.define(
823
818
  }
824
819
  return false;
825
820
  },
826
- _updateStyleClassForRatingIndicator: function (oFieldWrapper, bLast) {
821
+ _updateStyleClassForRatingIndicator: function(oFieldWrapper, bLast) {
827
822
  var vContentDisplay = Array.isArray(oFieldWrapper.getContentDisplay())
828
823
  ? oFieldWrapper.getContentDisplay()[0]
829
824
  : oFieldWrapper.getContentDisplay();
@@ -850,7 +845,7 @@ sap.ui.define(
850
845
  * @param {*} sVisibleValue Either static boolean values or Array of path expressions for visibility of menu button.
851
846
  * @returns {*} The binding expression determining the visibility of menu actions.
852
847
  **/
853
- handleVisibilityOfMenuActions: function (sVisibleValue) {
848
+ handleVisibilityOfMenuActions: function(sVisibleValue) {
854
849
  var combinedConditions = [];
855
850
  if (Array.isArray(sVisibleValue)) {
856
851
  for (var i = 0; i < sVisibleValue.length; i++) {
@@ -902,7 +897,7 @@ sap.ui.define(
902
897
  * @param {string} sDeviationHigh ExpressionBinding for Higher Deviation level
903
898
  * @returns {string} Returns criticality calculation as expression binding
904
899
  */
905
- getCriticalityCalculationBinding: function (
900
+ getCriticalityCalculationBinding: function(
906
901
  sImprovementDirection,
907
902
  sValue,
908
903
  sDeviationLow,
@@ -1055,7 +1050,7 @@ sap.ui.define(
1055
1050
  * @returns {sIndicator} Return the indicator for criticality
1056
1051
  * @private
1057
1052
  */
1058
- _getCriticalityFromEnum: function (sCriticality) {
1053
+ _getCriticalityFromEnum: function(sCriticality) {
1059
1054
  var sIndicator;
1060
1055
  if (sCriticality === "com.sap.vocabularies.UI.v1.CriticalityType/Negative") {
1061
1056
  sIndicator = ValueColor.Error;
@@ -1068,11 +1063,11 @@ sap.ui.define(
1068
1063
  }
1069
1064
  return sIndicator;
1070
1065
  },
1071
- getValueCriticality: function (sDimension, aValueCriticality) {
1066
+ getValueCriticality: function(sDimension, aValueCriticality) {
1072
1067
  var sResult,
1073
1068
  aValues = [];
1074
1069
  if (aValueCriticality && aValueCriticality.length > 0) {
1075
- aValueCriticality.forEach(function (oVC) {
1070
+ aValueCriticality.forEach(function(oVC) {
1076
1071
  if (oVC.Value && oVC.Criticality.$EnumMember) {
1077
1072
  var sValue =
1078
1073
  "${" +
@@ -1097,13 +1092,13 @@ sap.ui.define(
1097
1092
  * @returns {string} MeasureAttribute index.
1098
1093
  * @private
1099
1094
  */
1100
- getMeasureAttributeIndex: function (iMeasure, oChartAnnotations) {
1095
+ getMeasureAttributeIndex: function(iMeasure, oChartAnnotations) {
1101
1096
  var aMeasures = oChartAnnotations.Measures,
1102
1097
  bMeasureAttributeExists,
1103
1098
  aMeasureAttributes = oChartAnnotations.MeasureAttributes,
1104
1099
  sMeasurePropertyPath = aMeasures && aMeasures[iMeasure] && aMeasures[iMeasure].$PropertyPath,
1105
1100
  iMeasureAttribute = -1,
1106
- fnCheckMeasure = function (sMeasure, oMeasureAttribute, index) {
1101
+ fnCheckMeasure = function(sMeasure, oMeasureAttribute, index) {
1107
1102
  if ((oMeasureAttribute && oMeasureAttribute.Measure && oMeasureAttribute.Measure.$PropertyPath) === sMeasure) {
1108
1103
  iMeasureAttribute = index;
1109
1104
  return true;
@@ -1120,13 +1115,13 @@ sap.ui.define(
1120
1115
  * @param {object} oContext Context to the measure annotation
1121
1116
  * @returns {string} Path to the measureAttribute of the measure
1122
1117
  */
1123
- getMeasureAttributeForMeasure: function (oContext) {
1118
+ getMeasureAttributeForMeasure: function(oContext) {
1124
1119
  var oMetaModel = oContext.getModel(),
1125
1120
  sMeasurePath = oContext.getPath(),
1126
1121
  sChartAnnotationPath = sMeasurePath.substring(0, sMeasurePath.lastIndexOf("Measure")),
1127
1122
  iMeasure = sMeasurePath.replace(/.*\//, "");
1128
1123
 
1129
- return oMetaModel.requestObject(sChartAnnotationPath).then(function (oChartAnnotations) {
1124
+ return oMetaModel.requestObject(sChartAnnotationPath).then(function(oChartAnnotations) {
1130
1125
  var aMeasureAttributes = oChartAnnotations.MeasureAttributes,
1131
1126
  iMeasureAttribute = Helper.getMeasureAttributeIndex(iMeasure, oChartAnnotations);
1132
1127
  var sMeasureAttributePath =
@@ -1145,7 +1140,7 @@ sap.ui.define(
1145
1140
  * @param {object} oTableMetadata Table metadata for which draft support shall be checked
1146
1141
  * @returns {boolean} Returns true if draft
1147
1142
  */
1148
- isDraftParentEntityForContainment: function (oTargetCollectionContainsTarget, oTableMetadata) {
1143
+ isDraftParentEntityForContainment: function(oTargetCollectionContainsTarget, oTableMetadata) {
1149
1144
  if (oTargetCollectionContainsTarget) {
1150
1145
  if (oTableMetadata && oTableMetadata.parentEntitySet && oTableMetadata.parentEntitySet.sPath) {
1151
1146
  var sParentEntitySetPath = oTableMetadata.parentEntitySet.sPath;
@@ -1175,7 +1170,7 @@ sap.ui.define(
1175
1170
  * @param {object} dataElement The data that is currently being processed.
1176
1171
  * @returns {string} The correct path according to the template.
1177
1172
  **/
1178
- getDataFromTemplate: function (dataElement) {
1173
+ getDataFromTemplate: function(dataElement) {
1179
1174
  var splitPath = dataElement.getPath().split("/");
1180
1175
  var dataKey = splitPath[splitPath.length - 1];
1181
1176
  var connectedDataPath = "/" + splitPath.slice(1, -2).join("/") + "/@";
@@ -1187,7 +1182,7 @@ sap.ui.define(
1187
1182
  var key = splitTemp[i].split("{")[1].trim();
1188
1183
  tempArray.push(key);
1189
1184
  }
1190
- Object.keys(connectedObject.Data).forEach(function (sKey) {
1185
+ Object.keys(connectedObject.Data).forEach(function(sKey) {
1191
1186
  if (sKey.startsWith("$")) {
1192
1187
  delete connectedObject.Data[sKey];
1193
1188
  }
@@ -1205,7 +1200,7 @@ sap.ui.define(
1205
1200
  * @param {object} element The element that is currently being processed.
1206
1201
  * @returns {boolean} True or False (depending on the template index).
1207
1202
  **/
1208
- notLastIndex: function (target, element) {
1203
+ notLastIndex: function(target, element) {
1209
1204
  var template = target.Template;
1210
1205
  var splitTemp = template.split("}");
1211
1206
  var tempArray = [];
@@ -1215,7 +1210,7 @@ sap.ui.define(
1215
1210
  tempArray.push(dataKey);
1216
1211
  }
1217
1212
 
1218
- tempArray.forEach(function (template) {
1213
+ tempArray.forEach(function(template) {
1219
1214
  if (target.Data[template] === element && tempArray.indexOf(template) !== tempArray.length - 1) {
1220
1215
  isLastIndex = true;
1221
1216
  }
@@ -1231,11 +1226,14 @@ sap.ui.define(
1231
1226
  * @param {string} template The template string.
1232
1227
  * @returns {string} The delimiter in the template string.
1233
1228
  **/
1234
- getDelimiter: function (template) {
1235
- return template.split("}")[1].split("{")[0].trim();
1229
+ getDelimiter: function(template) {
1230
+ return template
1231
+ .split("}")[1]
1232
+ .split("{")[0]
1233
+ .trim();
1236
1234
  },
1237
1235
 
1238
- getParameters: function (oContext, oInterface) {
1236
+ getParameters: function(oContext, oInterface) {
1239
1237
  if (oContext) {
1240
1238
  var oMetaModel = oInterface.context.getModel();
1241
1239
  var sPath = oInterface.context.getPath();
@@ -59,7 +59,7 @@ sap.ui.define(
59
59
  interfaces: [],
60
60
  controls: [],
61
61
  elements: [],
62
- version: "1.96.9",
62
+ version: "1.96.10",
63
63
  noLibraryCSS: true
64
64
  });
65
65