@sapui5/sap.fe.macros 1.96.7 → 1.96.8

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.7",
3
+ "version": "1.96.8",
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.7</version>
9
+ <version>1.96.8</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,13 +146,10 @@ sap.ui.define(
146
146
  if (oContext.getModel) {
147
147
  sPath =
148
148
  (oContext.getModel().getMetaPath && oContext.getModel().getMetaPath(sPath)) ||
149
- oContext
150
- .getModel()
151
- .getMetaModel()
152
- .getMetaPath(sPath);
149
+ oContext.getModel().getMetaModel().getMetaPath(sPath);
153
150
  }
154
151
  //Supporting sPath of any format, either '/<entitySet>/<navigationCollection>' <OR> '/<entitySet>/$Type/<navigationCollection>'
155
- aParts = sPath.split("/").filter(function(sPart) {
152
+ aParts = sPath.split("/").filter(function (sPart) {
156
153
  return sPart && sPart != "$Type";
157
154
  }); //filter out empty strings and parts referring to '$Type'
158
155
  entitySet = "/" + aParts[0];
@@ -163,7 +160,7 @@ sap.ui.define(
163
160
  return entitySet + "/$NavigationPropertyBinding/" + navigationCollection; // used in gotoTargetEntitySet method in the same file
164
161
  },
165
162
 
166
- isPropertyFilterable: function(property, oInterface, oDataField) {
163
+ isPropertyFilterable: function (property, oInterface, oDataField) {
167
164
  var oModel = oInterface.context.getModel(),
168
165
  sPropertyPath = oInterface.context.getPath(),
169
166
  // LoacationPath would be the prefix of sPropertyPath, example: sPropertyPath = '/Customer/Set/Name' -> sPropertyLocationPath = '/Customer/Set'
@@ -181,7 +178,7 @@ sap.ui.define(
181
178
  return CommonUtils.isPropertyFilterable(oModel, sPropertyLocationPath, sProperty);
182
179
  },
183
180
 
184
- getLocationForPropertyPath: function(oModel, sPropertyPath) {
181
+ getLocationForPropertyPath: function (oModel, sPropertyPath) {
185
182
  var iLength;
186
183
  var sCollectionPath = sPropertyPath.slice(0, sPropertyPath.lastIndexOf("/"));
187
184
  if (oModel.getObject(sCollectionPath + "/$kind") === "EntityContainer") {
@@ -190,7 +187,7 @@ sap.ui.define(
190
187
  }
191
188
  return sCollectionPath;
192
189
  },
193
- gotoActionParameter: function(oContext) {
190
+ gotoActionParameter: function (oContext) {
194
191
  var sPath = oContext.getPath(),
195
192
  sPropertyName = oContext.getObject(sPath + "/$Name");
196
193
  var sContext;
@@ -213,7 +210,7 @@ sap.ui.define(
213
210
  * @private
214
211
  * @ui5-restricted
215
212
  */
216
- getEntitySetName: function(oMetaModel, sEntityType) {
213
+ getEntitySetName: function (oMetaModel, sEntityType) {
217
214
  var oEntityContainer = oMetaModel.getObject("/");
218
215
  for (var key in oEntityContainer) {
219
216
  if (typeof oEntityContainer[key] === "object" && oEntityContainer[key].$Type === sEntityType) {
@@ -237,7 +234,7 @@ sap.ui.define(
237
234
  * @private
238
235
  * @ui5-restricted
239
236
  */
240
- getActionPath: function(oAction, bReturnOnlyPath, sActionName, bCheckStaticValue) {
237
+ getActionPath: function (oAction, bReturnOnlyPath, sActionName, bCheckStaticValue) {
241
238
  var sContextPath = oAction.getPath().split("/@")[0];
242
239
 
243
240
  sActionName = !sActionName ? oAction.getObject(oAction.getPath()) : sActionName;
@@ -283,7 +280,7 @@ sap.ui.define(
283
280
  * @param {string} sPropertyPath The property path
284
281
  * @returns {string|boolean} A runtime binding or fixed string value for Field true/false for Rating Indicator
285
282
  */
286
- getEditMode: function(
283
+ getEditMode: function (
287
284
  oAnnotations,
288
285
  sDataFieldType,
289
286
  oFieldControl,
@@ -485,7 +482,7 @@ sap.ui.define(
485
482
  return sExpression;
486
483
  },
487
484
 
488
- getNavigationContext: function(oContext) {
485
+ getNavigationContext: function (oContext) {
489
486
  return ODataModelAnnotationHelper.getNavigationPath(oContext.getPath());
490
487
  },
491
488
 
@@ -500,9 +497,9 @@ sap.ui.define(
500
497
  * @param bKeepProperty
501
498
  * @returns {string} The navigation path
502
499
  */
503
- getNavigationPath: function(sPropertyPath, bKeepProperty) {
500
+ getNavigationPath: function (sPropertyPath, bKeepProperty) {
504
501
  var bStartsWithEntityType = sPropertyPath.startsWith("/");
505
- var aParts = sPropertyPath.split("/").filter(function(part) {
502
+ var aParts = sPropertyPath.split("/").filter(function (part) {
506
503
  return !!part;
507
504
  });
508
505
  if (bStartsWithEntityType) {
@@ -531,7 +528,7 @@ sap.ui.define(
531
528
  * @private
532
529
  * @ui5-restricted
533
530
  **/
534
- getActionContext: function(oAction) {
531
+ getActionContext: function (oAction) {
535
532
  return Helper.getActionPath(oAction, true);
536
533
  },
537
534
  /**
@@ -548,7 +545,7 @@ sap.ui.define(
548
545
  * @private
549
546
  * @ui5-restricted
550
547
  **/
551
- getPathToBoundActionOverload: function(oAction) {
548
+ getPathToBoundActionOverload: function (oAction) {
552
549
  var sPath = Helper.getActionPath(oAction, true);
553
550
  return sPath + "/@$ui5.overload/0";
554
551
  },
@@ -562,7 +559,7 @@ sap.ui.define(
562
559
  * @param {boolean} bEscape Should the string be escaped beforehand
563
560
  * @returns {string} String with single quotes
564
561
  **/
565
- addSingleQuotes: function(sValue, bEscape) {
562
+ addSingleQuotes: function (sValue, bEscape) {
566
563
  if (bEscape && sValue) {
567
564
  sValue = sValue.replace(/[']/g, "\\'");
568
565
  }
@@ -578,7 +575,7 @@ sap.ui.define(
578
575
  * @param {string} sFuncName Some string for the function name
579
576
  * @returns {string} Function string depends on arguments passed
580
577
  **/
581
- generateFunction: function(sFuncName) {
578
+ generateFunction: function (sFuncName) {
582
579
  var sParams = "";
583
580
  for (var i = 1; i < arguments.length; i++) {
584
581
  sParams += arguments[i];
@@ -604,7 +601,7 @@ sap.ui.define(
604
601
  *
605
602
  */
606
603
 
607
- getHeaderDataPointLinkVisibility: function(sPath, bLink, bFieldVisibility) {
604
+ getHeaderDataPointLinkVisibility: function (sPath, bLink, bFieldVisibility) {
608
605
  var sVisibilityExp;
609
606
  if (bFieldVisibility) {
610
607
  sVisibilityExp = bLink
@@ -626,7 +623,7 @@ sap.ui.define(
626
623
  * @param {string} oParams Some object
627
624
  * @returns {string} - Object string
628
625
  **/
629
- objectToString: function(oParams) {
626
+ objectToString: function (oParams) {
630
627
  var iNumberOfKeys = Object.keys(oParams).length,
631
628
  sParams = "";
632
629
 
@@ -654,7 +651,7 @@ sap.ui.define(
654
651
  * @param {string} sExpression An expression with escape characters
655
652
  * @returns {string} Expression string without escape characters or undefined
656
653
  **/
657
- removeEscapeCharacters: function(sExpression) {
654
+ removeEscapeCharacters: function (sExpression) {
658
655
  return sExpression ? sExpression.replace(/\\?\\([{}])/g, "$1") : undefined;
659
656
  },
660
657
 
@@ -664,7 +661,7 @@ sap.ui.define(
664
661
  * @param {string} sStringified
665
662
  * @returns {string} The updated string representation of the object
666
663
  */
667
- stringifyObject: function(sStringified) {
664
+ stringifyObject: function (sStringified) {
668
665
  if (!sStringified) {
669
666
  return undefined;
670
667
  } else {
@@ -689,7 +686,7 @@ sap.ui.define(
689
686
  * @param {object} vData The data to stringify
690
687
  * @returns {string} The string representation of the data.
691
688
  */
692
- stringifyCustomData: function(vData) {
689
+ stringifyCustomData: function (vData) {
693
690
  var oObject = {
694
691
  ui5object: true
695
692
  };
@@ -703,7 +700,7 @@ sap.ui.define(
703
700
  * @param {object | string} vData The data to parse
704
701
  * @returns {object} The result of the data parsing
705
702
  */
706
- parseCustomData: function(vData) {
703
+ parseCustomData: function (vData) {
707
704
  var vData = typeof vData === "string" ? JSON.parse(vData) : vData;
708
705
  if ("customData" in vData) {
709
706
  return vData["customData"];
@@ -717,7 +714,7 @@ sap.ui.define(
717
714
  * @param {string} sEntityType The EntityType name
718
715
  * @returns {object} The DraftAdministrativeData
719
716
  */
720
- _getDraftAdministrativeDataType: function(oMetaModel, sEntityType) {
717
+ _getDraftAdministrativeDataType: function (oMetaModel, sEntityType) {
721
718
  return oMetaModel.requestObject("/" + sEntityType + "/DraftAdministrativeData/");
722
719
  },
723
720
  /**
@@ -727,8 +724,8 @@ sap.ui.define(
727
724
  * @param {string} sEntityType The EntityType name
728
725
  * @returns {string} The Binding Expression for the draft popover
729
726
  */
730
- getPopoverText: function(iContext, sEntityType) {
731
- return Helper._getDraftAdministrativeDataType(iContext.getModel(), sEntityType).then(function(oDADEntityType) {
727
+ getPopoverText: function (iContext, sEntityType) {
728
+ return Helper._getDraftAdministrativeDataType(iContext.getModel(), sEntityType).then(function (oDADEntityType) {
732
729
  var sBinding =
733
730
  "{parts: [{path: 'HasDraftEntity', targetType: 'any'}, " +
734
731
  //"{path: 'DraftAdministrativeData/LastChangeDateTime'}, " +
@@ -745,7 +742,7 @@ sap.ui.define(
745
742
  return sBinding;
746
743
  });
747
744
  },
748
- getContextPath: function(oValue, oInterface) {
745
+ getContextPath: function (oValue, oInterface) {
749
746
  return oInterface && oInterface.context && oInterface.context.getPath();
750
747
  },
751
748
  /**
@@ -754,7 +751,7 @@ sap.ui.define(
754
751
  * @param sPresentationVariantPath
755
752
  * @returns {string} Stringified JSON object
756
753
  */
757
- getSortConditions: function(oPresentationVariant, sPresentationVariantPath) {
754
+ getSortConditions: function (oPresentationVariant, sPresentationVariantPath) {
758
755
  if (
759
756
  oPresentationVariant &&
760
757
  this._isPresentationVariantAnnotation(sPresentationVariantPath) &&
@@ -763,7 +760,7 @@ sap.ui.define(
763
760
  var aSortConditions = {
764
761
  sorters: []
765
762
  };
766
- oPresentationVariant.SortOrder.forEach(function(oCondition) {
763
+ oPresentationVariant.SortOrder.forEach(function (oCondition) {
767
764
  var oSorter = {};
768
765
  oSorter.name = oCondition.Property.$PropertyPath;
769
766
  oSorter.descending = !!oCondition.Descending;
@@ -773,13 +770,13 @@ sap.ui.define(
773
770
  }
774
771
  return undefined;
775
772
  },
776
- _isPresentationVariantAnnotation: function(sAnnotationPath) {
773
+ _isPresentationVariantAnnotation: function (sAnnotationPath) {
777
774
  return (
778
775
  sAnnotationPath.indexOf("@com.sap.vocabularies.UI.v1.PresentationVariant") > -1 ||
779
776
  sAnnotationPath.indexOf("@com.sap.vocabularies.UI.v1.SelectionPresentationVariant") > -1
780
777
  );
781
778
  },
782
- createPresentationPathContext: function(oPresentationContext) {
779
+ createPresentationPathContext: function (oPresentationContext) {
783
780
  var aPaths = oPresentationContext.sPath.split("@") || [];
784
781
  var oModel = oPresentationContext.getModel();
785
782
  if (aPaths.length && aPaths[aPaths.length - 1].indexOf("com.sap.vocabularies.UI.v1.SelectionPresentationVariant") > -1) {
@@ -788,7 +785,7 @@ sap.ui.define(
788
785
  }
789
786
  return oModel.createBindingContext(oPresentationContext.sPath + "@sapui.name");
790
787
  },
791
- getPressHandlerForDataFieldForIBN: function(oDataField, sContext, bNavigateWithConfirmationDialog) {
788
+ getPressHandlerForDataFieldForIBN: function (oDataField, sContext, bNavigateWithConfirmationDialog) {
792
789
  var mNavigationParameters = {
793
790
  navigationContexts: sContext ? sContext : "${$source>/}.getBindingContext()"
794
791
  };
@@ -811,11 +808,11 @@ sap.ui.define(
811
808
  this.objectToString(mNavigationParameters)
812
809
  );
813
810
  },
814
- getEntitySet: function(oContext) {
811
+ getEntitySet: function (oContext) {
815
812
  var sPath = oContext.getPath();
816
813
  return ModelHelper.getEntitySetPath(sPath);
817
814
  },
818
- _isRatingIndicator: function(oControl) {
815
+ _isRatingIndicator: function (oControl) {
819
816
  if (oControl.isA("sap.fe.core.controls.FieldWrapper")) {
820
817
  var vContentDisplay = Array.isArray(oControl.getContentDisplay())
821
818
  ? oControl.getContentDisplay()[0]
@@ -826,7 +823,7 @@ sap.ui.define(
826
823
  }
827
824
  return false;
828
825
  },
829
- _updateStyleClassForRatingIndicator: function(oFieldWrapper, bLast) {
826
+ _updateStyleClassForRatingIndicator: function (oFieldWrapper, bLast) {
830
827
  var vContentDisplay = Array.isArray(oFieldWrapper.getContentDisplay())
831
828
  ? oFieldWrapper.getContentDisplay()[0]
832
829
  : oFieldWrapper.getContentDisplay();
@@ -853,7 +850,7 @@ sap.ui.define(
853
850
  * @param {*} sVisibleValue Either static boolean values or Array of path expressions for visibility of menu button.
854
851
  * @returns {*} The binding expression determining the visibility of menu actions.
855
852
  **/
856
- handleVisibilityOfMenuActions: function(sVisibleValue) {
853
+ handleVisibilityOfMenuActions: function (sVisibleValue) {
857
854
  var combinedConditions = [];
858
855
  if (Array.isArray(sVisibleValue)) {
859
856
  for (var i = 0; i < sVisibleValue.length; i++) {
@@ -905,7 +902,7 @@ sap.ui.define(
905
902
  * @param {string} sDeviationHigh ExpressionBinding for Higher Deviation level
906
903
  * @returns {string} Returns criticality calculation as expression binding
907
904
  */
908
- getCriticalityCalculationBinding: function(
905
+ getCriticalityCalculationBinding: function (
909
906
  sImprovementDirection,
910
907
  sValue,
911
908
  sDeviationLow,
@@ -1058,7 +1055,7 @@ sap.ui.define(
1058
1055
  * @returns {sIndicator} Return the indicator for criticality
1059
1056
  * @private
1060
1057
  */
1061
- _getCriticalityFromEnum: function(sCriticality) {
1058
+ _getCriticalityFromEnum: function (sCriticality) {
1062
1059
  var sIndicator;
1063
1060
  if (sCriticality === "com.sap.vocabularies.UI.v1.CriticalityType/Negative") {
1064
1061
  sIndicator = ValueColor.Error;
@@ -1071,11 +1068,11 @@ sap.ui.define(
1071
1068
  }
1072
1069
  return sIndicator;
1073
1070
  },
1074
- getValueCriticality: function(sDimension, aValueCriticality) {
1071
+ getValueCriticality: function (sDimension, aValueCriticality) {
1075
1072
  var sResult,
1076
1073
  aValues = [];
1077
1074
  if (aValueCriticality && aValueCriticality.length > 0) {
1078
- aValueCriticality.forEach(function(oVC) {
1075
+ aValueCriticality.forEach(function (oVC) {
1079
1076
  if (oVC.Value && oVC.Criticality.$EnumMember) {
1080
1077
  var sValue =
1081
1078
  "${" +
@@ -1100,13 +1097,13 @@ sap.ui.define(
1100
1097
  * @returns {string} MeasureAttribute index.
1101
1098
  * @private
1102
1099
  */
1103
- getMeasureAttributeIndex: function(iMeasure, oChartAnnotations) {
1100
+ getMeasureAttributeIndex: function (iMeasure, oChartAnnotations) {
1104
1101
  var aMeasures = oChartAnnotations.Measures,
1105
1102
  bMeasureAttributeExists,
1106
1103
  aMeasureAttributes = oChartAnnotations.MeasureAttributes,
1107
1104
  sMeasurePropertyPath = aMeasures && aMeasures[iMeasure] && aMeasures[iMeasure].$PropertyPath,
1108
1105
  iMeasureAttribute = -1,
1109
- fnCheckMeasure = function(sMeasure, oMeasureAttribute, index) {
1106
+ fnCheckMeasure = function (sMeasure, oMeasureAttribute, index) {
1110
1107
  if ((oMeasureAttribute && oMeasureAttribute.Measure && oMeasureAttribute.Measure.$PropertyPath) === sMeasure) {
1111
1108
  iMeasureAttribute = index;
1112
1109
  return true;
@@ -1123,13 +1120,13 @@ sap.ui.define(
1123
1120
  * @param {object} oContext Context to the measure annotation
1124
1121
  * @returns {string} Path to the measureAttribute of the measure
1125
1122
  */
1126
- getMeasureAttributeForMeasure: function(oContext) {
1123
+ getMeasureAttributeForMeasure: function (oContext) {
1127
1124
  var oMetaModel = oContext.getModel(),
1128
1125
  sMeasurePath = oContext.getPath(),
1129
1126
  sChartAnnotationPath = sMeasurePath.substring(0, sMeasurePath.lastIndexOf("Measure")),
1130
1127
  iMeasure = sMeasurePath.replace(/.*\//, "");
1131
1128
 
1132
- return oMetaModel.requestObject(sChartAnnotationPath).then(function(oChartAnnotations) {
1129
+ return oMetaModel.requestObject(sChartAnnotationPath).then(function (oChartAnnotations) {
1133
1130
  var aMeasureAttributes = oChartAnnotations.MeasureAttributes,
1134
1131
  iMeasureAttribute = Helper.getMeasureAttributeIndex(iMeasure, oChartAnnotations);
1135
1132
  var sMeasureAttributePath =
@@ -1148,7 +1145,7 @@ sap.ui.define(
1148
1145
  * @param {object} oTableMetadata Table metadata for which draft support shall be checked
1149
1146
  * @returns {boolean} Returns true if draft
1150
1147
  */
1151
- isDraftParentEntityForContainment: function(oTargetCollectionContainsTarget, oTableMetadata) {
1148
+ isDraftParentEntityForContainment: function (oTargetCollectionContainsTarget, oTableMetadata) {
1152
1149
  if (oTargetCollectionContainsTarget) {
1153
1150
  if (oTableMetadata && oTableMetadata.parentEntitySet && oTableMetadata.parentEntitySet.sPath) {
1154
1151
  var sParentEntitySetPath = oTableMetadata.parentEntitySet.sPath;
@@ -1178,7 +1175,7 @@ sap.ui.define(
1178
1175
  * @param {object} dataElement The data that is currently being processed.
1179
1176
  * @returns {string} The correct path according to the template.
1180
1177
  **/
1181
- getDataFromTemplate: function(dataElement) {
1178
+ getDataFromTemplate: function (dataElement) {
1182
1179
  var splitPath = dataElement.getPath().split("/");
1183
1180
  var dataKey = splitPath[splitPath.length - 1];
1184
1181
  var connectedDataPath = "/" + splitPath.slice(1, -2).join("/") + "/@";
@@ -1190,7 +1187,12 @@ sap.ui.define(
1190
1187
  var key = splitTemp[i].split("{")[1].trim();
1191
1188
  tempArray.push(key);
1192
1189
  }
1193
- var index = Object.keys(connectedObject.Data).indexOf(dataKey) - 1;
1190
+ Object.keys(connectedObject.Data).forEach(function (sKey) {
1191
+ if (sKey.startsWith("$")) {
1192
+ delete connectedObject.Data[sKey];
1193
+ }
1194
+ });
1195
+ var index = Object.keys(connectedObject.Data).indexOf(dataKey);
1194
1196
  return "/" + splitPath.slice(1, -2).join("/") + "/Data/" + tempArray[index];
1195
1197
  },
1196
1198
 
@@ -1203,7 +1205,7 @@ sap.ui.define(
1203
1205
  * @param {object} element The element that is currently being processed.
1204
1206
  * @returns {boolean} True or False (depending on the template index).
1205
1207
  **/
1206
- notLastIndex: function(target, element) {
1208
+ notLastIndex: function (target, element) {
1207
1209
  var template = target.Template;
1208
1210
  var splitTemp = template.split("}");
1209
1211
  var tempArray = [];
@@ -1213,7 +1215,7 @@ sap.ui.define(
1213
1215
  tempArray.push(dataKey);
1214
1216
  }
1215
1217
 
1216
- tempArray.forEach(function(template) {
1218
+ tempArray.forEach(function (template) {
1217
1219
  if (target.Data[template] === element && tempArray.indexOf(template) !== tempArray.length - 1) {
1218
1220
  isLastIndex = true;
1219
1221
  }
@@ -1229,14 +1231,11 @@ sap.ui.define(
1229
1231
  * @param {string} template The template string.
1230
1232
  * @returns {string} The delimiter in the template string.
1231
1233
  **/
1232
- getDelimiter: function(template) {
1233
- return template
1234
- .split("}")[1]
1235
- .split("{")[0]
1236
- .trim();
1234
+ getDelimiter: function (template) {
1235
+ return template.split("}")[1].split("{")[0].trim();
1237
1236
  },
1238
1237
 
1239
- getParameters: function(oContext, oInterface) {
1238
+ getParameters: function (oContext, oInterface) {
1240
1239
  if (oContext) {
1241
1240
  var oMetaModel = oInterface.context.getModel();
1242
1241
  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.7",
62
+ version: "1.96.8",
63
63
  noLibraryCSS: true
64
64
  });
65
65