@sapui5/sap.zen.dsh 1.114.7 → 1.114.13
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 +1 -1
- package/src/sap/zen/dsh/.library +1 -1
- package/src/sap/zen/dsh/AnalyticGrid.js +18 -18
- package/src/sap/zen/dsh/Dsh.js +1 -1
- package/src/sap/zen/dsh/ValueHelpRangeOperation.js +9 -9
- package/src/sap/zen/dsh/firefly/ff8310.zen.buddha.js +53 -56
- package/src/sap/zen/dsh/library.js +2 -2
- package/src/sap/zen/dsh/widgets/SDKModel.js +1 -1
- package/src/sap/zen/dsh/widgets/ValueHelpDialog.js +2 -2
- package/src/sap/zen/dsh/widgets/formattedTextView.js +5 -2
package/package.json
CHANGED
package/src/sap/zen/dsh/.library
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<vendor>SAP SE</vendor>
|
|
8
8
|
<copyright>SAPUI5
|
|
9
9
|
(c) Copyright 2009-2021 SAP SE. All rights reserved</copyright>
|
|
10
|
-
<version>1.114.
|
|
10
|
+
<version>1.114.13</version>
|
|
11
11
|
<documentation>Design Studio Runtime Library. Intended only to be used within S/4 HANA Fiori applications.</documentation>
|
|
12
12
|
<appData>
|
|
13
13
|
<jsdoc xmlns="http://www.sap.com/ui5/buildext/jsdoc" >
|
|
@@ -15,24 +15,24 @@ sap.ui.define(
|
|
|
15
15
|
],
|
|
16
16
|
function (jQuery, Log, Control, URI, AnalyticGridRenderer ) {
|
|
17
17
|
// Provides control sap.zen.dsh.AnalyticGrid.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Constructor for a new AnalyticGrid.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
22
|
+
* @param {object} [mSettings] initial settings for the new control
|
|
23
|
+
*
|
|
24
|
+
* @class
|
|
25
|
+
* Control for embedding a Design Studio Analytic Grid in an S/4 HANA Fiori application
|
|
26
|
+
* @extends sap.ui.core.Control
|
|
27
|
+
*
|
|
28
|
+
* @constructor
|
|
29
|
+
* @public
|
|
30
|
+
* @since 1.46
|
|
31
|
+
* @deprecated Since version 1.89.0, Please use the WD Grid control instead.
|
|
32
|
+
* @experimental Since version 1.46.
|
|
33
|
+
* API is incomplete and may change incompatibly
|
|
34
|
+
* @alias sap.zen.dsh.AnalyticGrid
|
|
35
|
+
*/
|
|
36
36
|
var AnalyticGrid = Control.extend(
|
|
37
37
|
"sap.zen.dsh.AnalyticGrid", /** @lends sap.zen.dsh.AnalyticGrid.prototype */
|
|
38
38
|
{
|
package/src/sap/zen/dsh/Dsh.js
CHANGED
|
@@ -8,15 +8,15 @@ sap.ui.define(
|
|
|
8
8
|
[
|
|
9
9
|
],
|
|
10
10
|
function(){
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Sort Type
|
|
13
|
+
*
|
|
14
|
+
* @enum {string}
|
|
15
|
+
* @alias sap.zen.dsh.ValueHelpRangeOperation
|
|
16
|
+
* @public
|
|
17
|
+
* @experimental
|
|
18
|
+
* @deprecated Since version 1.89.0, Please use the WD Grid control instead.
|
|
19
|
+
*/
|
|
20
20
|
var ValueHelpRangeOperation = {
|
|
21
21
|
/**
|
|
22
22
|
* The Between operation for the ranges.
|
|
@@ -11457,9 +11457,17 @@ sap.zen.CharacteristicWrapper.prototype.getMembersByField = function(tKeys, oFie
|
|
|
11457
11457
|
var loFieldValue = loInternalDimensionMember.getFieldValue(oField);
|
|
11458
11458
|
if (oFF.notNull(loFieldValue))
|
|
11459
11459
|
{
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11460
|
+
for (lKeyIndex = 0; lKeyIndex < tKeys.size(); lKeyIndex++) {
|
|
11461
|
+
lSearchString = tKeys.get(lKeyIndex);
|
|
11462
|
+
if (!loInternalDimension.supportsLowerCase() || oField.getValueType() === oFF.XValueType.UPPER_CASE_STRING) {
|
|
11463
|
+
lSearchString = oFF.XString.toUpperCase(lSearchString);
|
|
11464
|
+
}
|
|
11465
|
+
else if (oField.getValueType() === oFF.XValueType.LOWER_CASE_STRING) {
|
|
11466
|
+
lSearchString = oFF.XString.toLowerCase(lSearchString);
|
|
11467
|
+
}
|
|
11468
|
+
if (oFF.XString.isEqual(lSearchString, loFieldValue.getString())) {
|
|
11469
|
+
ltInternalMembers.add(loInternalDimensionMember);
|
|
11470
|
+
}
|
|
11463
11471
|
}
|
|
11464
11472
|
}
|
|
11465
11473
|
}
|
|
@@ -11661,6 +11669,17 @@ sap.zen.CharacteristicWrapper.prototype.getMemberFromListByFieldValue = function
|
|
|
11661
11669
|
lFound = true;
|
|
11662
11670
|
break;
|
|
11663
11671
|
}
|
|
11672
|
+
var lValueRespectingCase = value;
|
|
11673
|
+
if (!loInternalDimension.supportsLowerCase() || loInternalFieldValue.getValueType() === oFF.XValueType.UPPER_CASE_STRING) {
|
|
11674
|
+
lValueRespectingCase = oFF.XString.toUpperCase(value);
|
|
11675
|
+
}
|
|
11676
|
+
else if (loInternalFieldValue.getValueType() === oFF.XValueType.LOWER_CASE_STRING) {
|
|
11677
|
+
lValueRespectingCase = oFF.XString.toLowerCase(value);
|
|
11678
|
+
}
|
|
11679
|
+
if (oFF.XString.isEqual(loInternalFieldValue.getString(), lValueRespectingCase)) {
|
|
11680
|
+
lFound = true;
|
|
11681
|
+
break;
|
|
11682
|
+
}
|
|
11664
11683
|
if (oFF.XString.containsString(loInternalFieldValue.getString(), value))
|
|
11665
11684
|
{
|
|
11666
11685
|
ltMatchingDimensionMembers.add(loInternalDimensionMember);
|
|
@@ -12267,47 +12286,34 @@ sap.zen.CharacteristicWrapper.prototype.setFilterRangesForField = function(oQuer
|
|
|
12267
12286
|
{
|
|
12268
12287
|
loInternalField = loInternalDimension.getFlatKeyField();
|
|
12269
12288
|
}
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
|
|
12273
|
-
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
{
|
|
12277
|
-
|
|
12278
|
-
|
|
12279
|
-
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
{
|
|
12283
|
-
if (lFullRangesIndex < lCartesianListOriginalSize)
|
|
12284
|
-
{
|
|
12285
|
-
ltKeysForCartesianListField.add(loRange.getFrom().getKey());
|
|
12286
|
-
}
|
|
12287
|
-
else
|
|
12288
|
-
{
|
|
12289
|
-
ltKeysForProvidedField.add(loRange.getFrom().getKey());
|
|
12290
|
-
}
|
|
12289
|
+
for (lFullRangesIndex = 0; lFullRangesIndex < tFullRanges.size(); lFullRangesIndex++) {
|
|
12290
|
+
loRange = tFullRanges.get(lFullRangesIndex);
|
|
12291
|
+
if (oFF.isNull(loRange)) {
|
|
12292
|
+
continue;
|
|
12293
|
+
}
|
|
12294
|
+
if (loRange.getFrom() !== null) {
|
|
12295
|
+
if (loRange.getFrom().getKey() !== null) {
|
|
12296
|
+
if (lFullRangesIndex < lCartesianListOriginalSize) {
|
|
12297
|
+
ltKeysForCartesianListField.add(loRange.getFrom().getKey());
|
|
12298
|
+
}
|
|
12299
|
+
else {
|
|
12300
|
+
ltKeysForProvidedField.add(loRange.getFrom().getKey());
|
|
12291
12301
|
}
|
|
12292
12302
|
}
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
{
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
|
|
12301
|
-
else
|
|
12302
|
-
{
|
|
12303
|
-
ltKeysForProvidedField.add(loRange.getTo().getKey());
|
|
12304
|
-
}
|
|
12303
|
+
}
|
|
12304
|
+
if (loRange.getTo() !== null) {
|
|
12305
|
+
if (loRange.getTo().getKey() !== null) {
|
|
12306
|
+
if (lFullRangesIndex < lCartesianListOriginalSize) {
|
|
12307
|
+
ltKeysForCartesianListField.add(loRange.getFrom().getKey());
|
|
12308
|
+
}
|
|
12309
|
+
else {
|
|
12310
|
+
ltKeysForProvidedField.add(loRange.getTo().getKey());
|
|
12305
12311
|
}
|
|
12306
12312
|
}
|
|
12307
12313
|
}
|
|
12308
|
-
ltInternalDimensionMembers.addAll(this.getMembersByField(ltKeysForProvidedField, oInternalField));
|
|
12309
|
-
ltInternalDimensionMembers.addAll(this.getMembersByField(ltKeysForCartesianListField, loCartesianListOriginalField));
|
|
12310
12314
|
}
|
|
12315
|
+
ltInternalDimensionMembers.addAll(this.getMembersByField(ltKeysForProvidedField, oInternalField));
|
|
12316
|
+
ltInternalDimensionMembers.addAll(this.getMembersByField(ltKeysForCartesianListField, loCartesianListOriginalField));
|
|
12311
12317
|
loCartesianList.setField(loInternalField);
|
|
12312
12318
|
for (lFullRangesIndex = 0; lFullRangesIndex < tFullRanges.size(); lFullRangesIndex++)
|
|
12313
12319
|
{
|
|
@@ -12317,7 +12323,7 @@ sap.zen.CharacteristicWrapper.prototype.setFilterRangesForField = function(oQuer
|
|
|
12317
12323
|
continue;
|
|
12318
12324
|
}
|
|
12319
12325
|
var loLookupField = null;
|
|
12320
|
-
if (
|
|
12326
|
+
if (!ltInternalDimensionMembers.isEmpty())
|
|
12321
12327
|
{
|
|
12322
12328
|
if (lFullRangesIndex < lCartesianListOriginalSize)
|
|
12323
12329
|
{
|
|
@@ -12342,7 +12348,7 @@ sap.zen.CharacteristicWrapper.prototype.setFilterRangesForField = function(oQuer
|
|
|
12342
12348
|
var lValueFrom = null;
|
|
12343
12349
|
if (oFF.notNull(lStringValueFrom))
|
|
12344
12350
|
{
|
|
12345
|
-
if (
|
|
12351
|
+
if (!ltInternalDimensionMembers.isEmpty())
|
|
12346
12352
|
{
|
|
12347
12353
|
loInternalDimensionMember = this.getMemberFromListByFieldValue(ltInternalDimensionMembers, loLookupField, lStringValueFrom.getString(), false);
|
|
12348
12354
|
if (oFF.notNull(loInternalDimensionMember))
|
|
@@ -12362,7 +12368,7 @@ sap.zen.CharacteristicWrapper.prototype.setFilterRangesForField = function(oQuer
|
|
|
12362
12368
|
var lValueTo = null;
|
|
12363
12369
|
if (loRange.getOperation() === sap.zen.Operation.BT && oFF.notNull(lStringValueTo))
|
|
12364
12370
|
{
|
|
12365
|
-
if (
|
|
12371
|
+
if (!ltInternalDimensionMembers.isEmpty())
|
|
12366
12372
|
{
|
|
12367
12373
|
loInternalDimensionMember = this.getMemberFromListByFieldValue(ltInternalDimensionMembers, loLookupField, lStringValueTo.getString(), false);
|
|
12368
12374
|
if (oFF.notNull(loInternalDimensionMember))
|
|
@@ -12380,6 +12386,9 @@ sap.zen.CharacteristicWrapper.prototype.setFilterRangesForField = function(oQuer
|
|
|
12380
12386
|
}
|
|
12381
12387
|
}
|
|
12382
12388
|
var loCartesianElement = loCartesianList.addNewCartesianElement();
|
|
12389
|
+
var cWildcard = "*";
|
|
12390
|
+
var lIsManualInput = !(oFF.XString.startsWith(lValueFrom.toString(), cWildcard) || oFF.XString.endsWith(lValueFrom.toString(), cWildcard)) &&
|
|
12391
|
+
!(loCartesianList.getField().isHierarchyKeyField() || this.mVariableMode && this.getVariable().getVariableType() === oFF.VariableType.HIERARCHY_NODE_VARIABLE);
|
|
12383
12392
|
loCartesianElement.setComparisonOperator(lOperation);
|
|
12384
12393
|
if (loRange.isExclude())
|
|
12385
12394
|
{
|
|
@@ -12389,27 +12398,16 @@ sap.zen.CharacteristicWrapper.prototype.setFilterRangesForField = function(oQuer
|
|
|
12389
12398
|
{
|
|
12390
12399
|
loCartesianElement.setSetSign(oFF.SetSign.INCLUDING);
|
|
12391
12400
|
}
|
|
12392
|
-
var cWildcard = "*";
|
|
12393
12401
|
var loFieldValue = loCartesianList.getField().createFieldLiteralValue();
|
|
12394
12402
|
loFieldValue.setValue(lValueFrom);
|
|
12395
12403
|
loCartesianElement.getLow().setFieldValue(loFieldValue);
|
|
12396
|
-
|
|
12397
|
-
{
|
|
12398
|
-
loCartesianElement.getLow().setIsManualInput(false);
|
|
12399
|
-
} else {
|
|
12400
|
-
loCartesianElement.getLow().setIsManualInput(true);
|
|
12401
|
-
}
|
|
12404
|
+
loCartesianElement.getLow().setIsManualInput(lIsManualInput);
|
|
12402
12405
|
if (loRange.getOperation() === sap.zen.Operation.BT)
|
|
12403
12406
|
{
|
|
12404
12407
|
loFieldValue = loCartesianList.getField().createFieldLiteralValue();
|
|
12405
12408
|
loFieldValue.setValue(lValueTo);
|
|
12406
12409
|
loCartesianElement.getHigh().setFieldValue(loFieldValue);
|
|
12407
|
-
|
|
12408
|
-
{
|
|
12409
|
-
loCartesianElement.getHigh().setIsManualInput(false);
|
|
12410
|
-
} else {
|
|
12411
|
-
loCartesianElement.getHigh().setIsManualInput(true);
|
|
12412
|
-
}
|
|
12410
|
+
loCartesianElement.getHigh().setIsManualInput(lIsManualInput);
|
|
12413
12411
|
}
|
|
12414
12412
|
}
|
|
12415
12413
|
};
|
|
@@ -21308,7 +21306,7 @@ sap.zen.Dimension.sGetKeyFieldObject = function(oDataSource, dimensionName, attr
|
|
|
21308
21306
|
loInternalField = loInternalAttribute.getHierarchyKeyField();
|
|
21309
21307
|
}
|
|
21310
21308
|
}
|
|
21311
|
-
if (
|
|
21309
|
+
if (lIsCompound)
|
|
21312
21310
|
{
|
|
21313
21311
|
if (useDisplayKey)
|
|
21314
21312
|
{
|
|
@@ -21320,7 +21318,6 @@ sap.zen.Dimension.sGetKeyFieldObject = function(oDataSource, dimensionName, attr
|
|
|
21320
21318
|
}
|
|
21321
21319
|
}
|
|
21322
21320
|
}
|
|
21323
|
-
// standard
|
|
21324
21321
|
if (oFF.isNull(loInternalField))
|
|
21325
21322
|
{
|
|
21326
21323
|
if (useDisplayKey)
|
|
@@ -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.13
|
|
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.13"
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
62
|
|
|
@@ -26,7 +26,7 @@ sap.ui.define(
|
|
|
26
26
|
* @constructor
|
|
27
27
|
* @public
|
|
28
28
|
* @name sap.zen.dsh.widgets.SDKModel
|
|
29
|
-
* @deprecated
|
|
29
|
+
* @deprecated Since version 1.89.0, Please use the WD Grid control instead.
|
|
30
30
|
*/
|
|
31
31
|
var SDKModel = ClientModel.extend(
|
|
32
32
|
"sap.zen.dsh.widgets.SDKModel", {
|
|
@@ -55,7 +55,7 @@ sap.ui.define(
|
|
|
55
55
|
* @param {object} [mSettings] Initial settings for the new control
|
|
56
56
|
* @class The ValueHelpDialog control can be used to implement a value help for an input field.
|
|
57
57
|
* @extends sap.m.Dialog
|
|
58
|
-
* @deprecated
|
|
58
|
+
* @deprecated Since version 1.89.0, Please use the WD Grid control instead.
|
|
59
59
|
* @constructor
|
|
60
60
|
* @public
|
|
61
61
|
* @alias sap.zen.dsh.ValueHelpDialog
|
|
@@ -1688,7 +1688,7 @@ sap.ui.define(
|
|
|
1688
1688
|
this._oColSearchBox = loDestroyObject(this._oColSearchBox);
|
|
1689
1689
|
}
|
|
1690
1690
|
Dialog.prototype.exit.apply(this);
|
|
1691
|
-
|
|
1691
|
+
|
|
1692
1692
|
};
|
|
1693
1693
|
|
|
1694
1694
|
/**
|
|
@@ -144,8 +144,11 @@ sap.ui.define(
|
|
|
144
144
|
setContent : function(sContent, bFromHtml){
|
|
145
145
|
var sanitizePrev = this.getSanitizeContent();
|
|
146
146
|
this.setSanitizeContent(!bFromHtml && sanitizePrev);
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
|
|
148
|
+
var encodeXML = sap.ui.require("sap/base/security/encodeXML");
|
|
149
|
+
var sSanitizedContent = encodeXML(sContent);
|
|
150
|
+
HTML.prototype.setContent.call(this, sSanitizedContent);
|
|
151
|
+
|
|
149
152
|
this.setSanitizeContent(sanitizePrev);
|
|
150
153
|
},
|
|
151
154
|
getHtmlText : function(){
|