@sapui5/sap.zen.dsh 1.114.3 → 1.114.5
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
package/src/sap/zen/dsh/.library
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<vendor>SAP SE</vendor>
|
|
5
5
|
<copyright>SAPUI5
|
|
6
6
|
(c) Copyright 2009-2021 SAP SE. All rights reserved</copyright>
|
|
7
|
-
<version>1.114.
|
|
7
|
+
<version>1.114.5</version>
|
|
8
8
|
<documentation>Design Studio Runtime Library. Intended only to be used within S/4 HANA Fiori applications.</documentation>
|
|
9
9
|
<appData>
|
|
10
10
|
<jsdoc xmlns="http://www.sap.com/ui5/buildext/jsdoc" >
|
|
@@ -10675,7 +10675,12 @@ sap.zen.CharacteristicWrapper.prototype.getAxis = function()
|
|
|
10675
10675
|
};
|
|
10676
10676
|
sap.zen.CharacteristicWrapper.prototype.getValueType = function()
|
|
10677
10677
|
{
|
|
10678
|
-
var
|
|
10678
|
+
var loVariable = null;
|
|
10679
|
+
if (this.mVariableMode)
|
|
10680
|
+
{
|
|
10681
|
+
loVariable = this.getVariable();
|
|
10682
|
+
}
|
|
10683
|
+
var loInternalField = sap.zen.Dimension.sGetKeyFieldObject(this.getDataSource(), this.getDimensionName(), null, false, loVariable);
|
|
10679
10684
|
return loInternalField.getValueType();
|
|
10680
10685
|
};
|
|
10681
10686
|
sap.zen.CharacteristicWrapper.prototype.getMemberType = function()
|
|
@@ -11473,7 +11478,13 @@ sap.zen.CharacteristicWrapper.prototype.hasSelectionState = function()
|
|
|
11473
11478
|
};
|
|
11474
11479
|
sap.zen.CharacteristicWrapper.prototype.getKeyField = function(useDisplayKey)
|
|
11475
11480
|
{
|
|
11476
|
-
|
|
11481
|
+
var loVariable = null;
|
|
11482
|
+
if (this.mVariableMode)
|
|
11483
|
+
{
|
|
11484
|
+
loVariable = this.getVariable();
|
|
11485
|
+
}
|
|
11486
|
+
var loInternalField = sap.zen.Dimension.sGetKeyFieldObject(this.getDataSource(), this.getDimensionName(), null, useDisplayKey, loVariable);
|
|
11487
|
+
return loInternalField;
|
|
11477
11488
|
};
|
|
11478
11489
|
sap.zen.CharacteristicWrapper.prototype.getCorrectFieldForCartesianList = function(oCartesianList)
|
|
11479
11490
|
{
|
|
@@ -12379,16 +12390,27 @@ sap.zen.CharacteristicWrapper.prototype.setFilterRangesForField = function(oQuer
|
|
|
12379
12390
|
{
|
|
12380
12391
|
loCartesianElement.setSetSign(oFF.SetSign.INCLUDING);
|
|
12381
12392
|
}
|
|
12393
|
+
var cWildcard = "*";
|
|
12382
12394
|
var loFieldValue = loCartesianList.getField().createFieldLiteralValue();
|
|
12383
12395
|
loFieldValue.setValue(lValueFrom);
|
|
12384
12396
|
loCartesianElement.getLow().setFieldValue(loFieldValue);
|
|
12385
|
-
|
|
12397
|
+
if (oFF.XString.startsWith(lValueFrom.toString(), cWildcard) || oFF.XString.endsWith(lValueFrom.toString(), cWildcard))
|
|
12398
|
+
{
|
|
12399
|
+
loCartesianElement.getLow().setIsManualInput(false);
|
|
12400
|
+
} else {
|
|
12401
|
+
loCartesianElement.getLow().setIsManualInput(true);
|
|
12402
|
+
}
|
|
12386
12403
|
if (loRange.getOperation() === sap.zen.Operation.BT)
|
|
12387
12404
|
{
|
|
12388
12405
|
loFieldValue = loCartesianList.getField().createFieldLiteralValue();
|
|
12389
12406
|
loFieldValue.setValue(lValueTo);
|
|
12390
12407
|
loCartesianElement.getHigh().setFieldValue(loFieldValue);
|
|
12391
|
-
|
|
12408
|
+
if (oFF.XString.startsWith(lValueTo.toString(), cWildcard) || oFF.XString.endsWith(lValueTo.toString(), cWildcard))
|
|
12409
|
+
{
|
|
12410
|
+
loCartesianElement.getHigh().setIsManualInput(false);
|
|
12411
|
+
} else {
|
|
12412
|
+
loCartesianElement.getHigh().setIsManualInput(true);
|
|
12413
|
+
}
|
|
12392
12414
|
}
|
|
12393
12415
|
}
|
|
12394
12416
|
};
|
|
@@ -21245,7 +21267,7 @@ sap.zen.Dimension.sGetAttributeObject = function(oDataSource, dimensionName, att
|
|
|
21245
21267
|
}
|
|
21246
21268
|
return loInternalAttribute;
|
|
21247
21269
|
};
|
|
21248
|
-
sap.zen.Dimension.sGetKeyFieldObject = function(oDataSource, dimensionName, attributeName, useDisplayKey)
|
|
21270
|
+
sap.zen.Dimension.sGetKeyFieldObject = function(oDataSource, dimensionName, attributeName, useDisplayKey, oInternalVariable)
|
|
21249
21271
|
{
|
|
21250
21272
|
if (oFF.isNull(oDataSource))
|
|
21251
21273
|
{
|
|
@@ -21267,38 +21289,39 @@ sap.zen.Dimension.sGetKeyFieldObject = function(oDataSource, dimensionName, attr
|
|
|
21267
21289
|
return null;
|
|
21268
21290
|
}
|
|
21269
21291
|
var lIsMainAttribute = oFF.XString.isEqual(loInternalAttribute.getName(), loInternalDimension.getMainAttribute().getName());
|
|
21292
|
+
var lIsHierarchy = loInternalDimension.supportsHierarchy() && loInternalDimension.isHierarchyAssignedAndActive();
|
|
21293
|
+
if (oFF.notNull(oInternalVariable))
|
|
21294
|
+
{
|
|
21295
|
+
lIsHierarchy = oInternalVariable.getVariableType().isTypeOf(oFF.VariableType.DIMENSION_MEMBER_VARIABLE) && oFF.XStringUtils.isNotNullAndNotEmpty(oInternalVariable.getHierarchyName());
|
|
21296
|
+
}
|
|
21297
|
+
var lIsCompound = loInternalDimension.isCompound() || loInternalDimension.getFirstFieldByType(oFF.PresentationType.DISPLAY_KEY_NOT_COMPOUND) !== null;
|
|
21270
21298
|
var loInternalField = null;
|
|
21271
21299
|
if (lIsMainAttribute)
|
|
21272
21300
|
{
|
|
21273
|
-
if (
|
|
21301
|
+
if (lIsHierarchy)
|
|
21274
21302
|
{
|
|
21275
|
-
if (
|
|
21303
|
+
if (useDisplayKey)
|
|
21276
21304
|
{
|
|
21277
|
-
loInternalField = loInternalAttribute.
|
|
21305
|
+
loInternalField = loInternalAttribute.getHierarchyDisplayKeyField();
|
|
21278
21306
|
}
|
|
21279
21307
|
if (oFF.isNull(loInternalField))
|
|
21280
21308
|
{
|
|
21281
|
-
|
|
21282
|
-
{
|
|
21283
|
-
loInternalField = loInternalAttribute.getHierarchyDisplayKeyField();
|
|
21284
|
-
}
|
|
21309
|
+
loInternalField = loInternalAttribute.getHierarchyKeyField();
|
|
21285
21310
|
}
|
|
21286
21311
|
}
|
|
21287
|
-
if (oFF.isNull(loInternalField))
|
|
21312
|
+
if (oFF.isNull(loInternalField) && lIsCompound)
|
|
21288
21313
|
{
|
|
21289
|
-
if (
|
|
21314
|
+
if (useDisplayKey)
|
|
21290
21315
|
{
|
|
21291
|
-
loInternalField = loInternalAttribute.
|
|
21316
|
+
loInternalField = loInternalAttribute.getFirstFieldByType(oFF.PresentationType.DISPLAY_KEY_NOT_COMPOUND);
|
|
21292
21317
|
}
|
|
21293
|
-
|
|
21294
|
-
if (oFF.isNull(loInternalField))
|
|
21295
|
-
{
|
|
21296
|
-
if (loInternalDimension.isCompound() || loInternalDimension.getFirstFieldByType(oFF.PresentationType.DISPLAY_KEY_NOT_COMPOUND) !== null)
|
|
21318
|
+
if (oFF.isNull(loInternalField))
|
|
21297
21319
|
{
|
|
21298
21320
|
loInternalField = loInternalAttribute.getFirstFieldByType(oFF.PresentationType.KEY_NOT_COMPOUND);
|
|
21299
21321
|
}
|
|
21300
21322
|
}
|
|
21301
21323
|
}
|
|
21324
|
+
// standard
|
|
21302
21325
|
if (oFF.isNull(loInternalField))
|
|
21303
21326
|
{
|
|
21304
21327
|
if (useDisplayKey)
|
|
@@ -22118,7 +22141,7 @@ sap.zen.Dimension.prototype.getHeaderText = function(fieldName)
|
|
|
22118
22141
|
sap.zen.Dimension.prototype.getKeyField = function(attributeName, useDisplayKey)
|
|
22119
22142
|
{
|
|
22120
22143
|
var lFieldName = null;
|
|
22121
|
-
var loInternalField = sap.zen.Dimension.sGetKeyFieldObject(this.getDataSource(), this.getName(), attributeName, useDisplayKey);
|
|
22144
|
+
var loInternalField = sap.zen.Dimension.sGetKeyFieldObject(this.getDataSource(), this.getName(), attributeName, useDisplayKey, null);
|
|
22122
22145
|
if (oFF.notNull(loInternalField))
|
|
22123
22146
|
{
|
|
22124
22147
|
lFieldName = loInternalField.getName();
|
|
@@ -22137,7 +22160,7 @@ sap.zen.Dimension.prototype.getTextField = function(attributeName, textPresentat
|
|
|
22137
22160
|
};
|
|
22138
22161
|
sap.zen.Dimension.prototype.getValueType = function()
|
|
22139
22162
|
{
|
|
22140
|
-
var loField = sap.zen.Dimension.sGetKeyFieldObject(this.getDataSource(), this.getName(), null, false);
|
|
22163
|
+
var loField = sap.zen.Dimension.sGetKeyFieldObject(this.getDataSource(), this.getName(), null, false, null);
|
|
22141
22164
|
if (oFF.notNull(loField))
|
|
22142
22165
|
{
|
|
22143
22166
|
return loField.getValueType();
|
|
@@ -23327,7 +23350,7 @@ sap.zen.Dimension.prototype.setMemberDisplay = function(attributeName, memberDis
|
|
|
23327
23350
|
var ltInternalKeyFields = oFF.XList.create();
|
|
23328
23351
|
var loInternalKeyField = null;
|
|
23329
23352
|
ltInternalKeyFields.add(loInternalAttribute.getFlatKeyField());
|
|
23330
|
-
loInternalKeyField = sap.zen.Dimension.sGetKeyFieldObject(loDataSource, this.getName(), attributeName, false);
|
|
23353
|
+
loInternalKeyField = sap.zen.Dimension.sGetKeyFieldObject(loDataSource, this.getName(), attributeName, false, null);
|
|
23331
23354
|
if (!ltInternalKeyFields.contains(loInternalKeyField))
|
|
23332
23355
|
{
|
|
23333
23356
|
ltInternalKeyFields.add(loInternalKeyField);
|
|
@@ -23342,7 +23365,7 @@ sap.zen.Dimension.prototype.setMemberDisplay = function(attributeName, memberDis
|
|
|
23342
23365
|
}
|
|
23343
23366
|
loField.setObtainability(oFF.ObtainabilityType.USER_INTERFACE);
|
|
23344
23367
|
}
|
|
23345
|
-
var loInternalDisplayKeyField = sap.zen.Dimension.sGetKeyFieldObject(loDataSource, this.getName(), attributeName, true);
|
|
23368
|
+
var loInternalDisplayKeyField = sap.zen.Dimension.sGetKeyFieldObject(loDataSource, this.getName(), attributeName, true, null);
|
|
23346
23369
|
var loInternalTextField = sap.zen.Dimension.sGetTextFieldObject(loDataSource, this.getName(), attributeName, textPresentationType);
|
|
23347
23370
|
var ltInternalResultSetFields = loInternalAttribute.getResultSetFields();
|
|
23348
23371
|
ltInternalResultSetFields.clear();
|
|
@@ -31,7 +31,7 @@ sap.ui.define(
|
|
|
31
31
|
* @alias sap.zen.dsh
|
|
32
32
|
* @public
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.114.
|
|
34
|
+
* @version 1.114.5
|
|
35
35
|
*/
|
|
36
36
|
var thisLib = sap.ui.getCore().initLibrary(
|
|
37
37
|
{
|
|
@@ -56,7 +56,7 @@ sap.ui.define(
|
|
|
56
56
|
],
|
|
57
57
|
elements: [],
|
|
58
58
|
noLibraryCSS: true,
|
|
59
|
-
version: "1.114.
|
|
59
|
+
version: "1.114.5"
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
62
|
|