@sapui5/sap.zen.dsh 1.124.9 → 1.124.11
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
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
"rules": {
|
|
10
10
|
"indent": [
|
|
11
11
|
"error",
|
|
12
|
-
2
|
|
12
|
+
2,
|
|
13
|
+
{
|
|
14
|
+
"SwitchCase": 1
|
|
15
|
+
}
|
|
13
16
|
],
|
|
14
17
|
"linebreak-style": [
|
|
15
18
|
"error",
|
|
@@ -23,6 +26,12 @@
|
|
|
23
26
|
"error",
|
|
24
27
|
"always"
|
|
25
28
|
],
|
|
26
|
-
"no-unused-vars":
|
|
29
|
+
"no-unused-vars": [
|
|
30
|
+
1,
|
|
31
|
+
{
|
|
32
|
+
"vars": "all",
|
|
33
|
+
"args": "none"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
27
36
|
}
|
|
28
37
|
}
|
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.124.
|
|
10
|
+
<version>1.124.11</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" >
|
|
@@ -31,7 +31,7 @@ sap.ui.define(
|
|
|
31
31
|
* @alias sap.zen.dsh
|
|
32
32
|
* @public
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.124.
|
|
34
|
+
* @version 1.124.11
|
|
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.124.
|
|
59
|
+
version: "1.124.11"
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
62
|
|
|
@@ -26,21 +26,21 @@ sap.ui.define(
|
|
|
26
26
|
"sap/ui/comp/util/FormatUtil",
|
|
27
27
|
"sap/ui/core/format/DateFormat"
|
|
28
28
|
],
|
|
29
|
-
function(
|
|
29
|
+
function (
|
|
30
30
|
jQuery, JSONModel, VBox, Label, Token, Tokenizer, Button,
|
|
31
31
|
Toolbar, SearchField, StandardListItem, SelectDialog, BusyIndicator,
|
|
32
32
|
Sorter, Filter, BaseHandler, ValueHelpDialog, Empty, ValueHelpRangeOperation
|
|
33
33
|
) {
|
|
34
34
|
"use strict";
|
|
35
35
|
var dispatcher = BaseHandler.dispatcher;
|
|
36
|
-
var FilterPanelHandler = function() {
|
|
36
|
+
var FilterPanelHandler = function () {
|
|
37
37
|
BaseHandler.apply(this, arguments);
|
|
38
38
|
var that = this;
|
|
39
39
|
this.oClipboard = {};
|
|
40
40
|
/**
|
|
41
41
|
* Create the Control
|
|
42
42
|
*/
|
|
43
|
-
this.create = function(oChainedControl, oControlProperties) {
|
|
43
|
+
this.create = function (oChainedControl, oControlProperties) {
|
|
44
44
|
var lControlId = that.createUI5Identifier(oControlProperties["id"]);
|
|
45
45
|
var loControl;
|
|
46
46
|
var loJsonModel = new JSONModel();
|
|
@@ -48,7 +48,7 @@ sap.ui.define(
|
|
|
48
48
|
var lIsMemberSelector = loJsonModel.getProperty("/property/memberselector") || loJsonModel.getProperty("/property/popupreference");
|
|
49
49
|
if (lIsMemberSelector) {
|
|
50
50
|
loControl = oChainedControl ? oChainedControl : new Empty(lControlId);
|
|
51
|
-
loControl.onAfterRendering = function() {
|
|
51
|
+
loControl.onAfterRendering = function () {
|
|
52
52
|
new Function(that.prepareCommand(loControl.getModel().getProperty("/command/showfilterdialog"), "__STRING__", loControl.getModel().getProperty("/characteristics/0/characteristic/name")))();
|
|
53
53
|
loControl.onAfterRendering = undefined;
|
|
54
54
|
};
|
|
@@ -72,13 +72,13 @@ sap.ui.define(
|
|
|
72
72
|
loControl.ZEN_submit = this.submitExternal(loJsonModel, true);
|
|
73
73
|
loControl.ZEN_submit_with_apply = this.submitExternal(loJsonModel, true, true);
|
|
74
74
|
loControl.ZEN_check = this.submitExternal(loJsonModel, false);
|
|
75
|
-
loControl.ZEN_cancel = function() {
|
|
75
|
+
loControl.ZEN_cancel = function () {
|
|
76
76
|
new Function(loJsonModel.getProperty("/command/cancelonlyfilter"))();
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
var loSuperExit = loControl.exit;
|
|
81
|
-
loControl.exit = function() {
|
|
81
|
+
loControl.exit = function () {
|
|
82
82
|
if (loSuperExit) {
|
|
83
83
|
loSuperExit.apply(loControl, arguments);
|
|
84
84
|
}
|
|
@@ -101,7 +101,7 @@ sap.ui.define(
|
|
|
101
101
|
/**
|
|
102
102
|
* Update the Control
|
|
103
103
|
*/
|
|
104
|
-
this.update = function(oControl, oControlProperties, oComponentProperties) {
|
|
104
|
+
this.update = function (oControl, oControlProperties, oComponentProperties) {
|
|
105
105
|
if (oControl && oControlProperties) {
|
|
106
106
|
var lView = oControlProperties.view;
|
|
107
107
|
if (this.isDesignModeD4LIncluded() || oControlProperties.newds) {
|
|
@@ -219,8 +219,8 @@ sap.ui.define(
|
|
|
219
219
|
if (lHierarchical) {
|
|
220
220
|
var ltMembers = loDialogProperties.members;
|
|
221
221
|
if (ltMembers) {
|
|
222
|
-
for (var i = 0; i === lMaxChildIndex+1; i++) {
|
|
223
|
-
var loChild = ltMembers[""+i];
|
|
222
|
+
for (var i = 0; i === lMaxChildIndex + 1; i++) {
|
|
223
|
+
var loChild = ltMembers["" + i];
|
|
224
224
|
if (!loChild) {
|
|
225
225
|
continue;
|
|
226
226
|
}
|
|
@@ -253,13 +253,13 @@ sap.ui.define(
|
|
|
253
253
|
var loMember = oControlProperties.member;
|
|
254
254
|
loMember.level = lParentLevel;
|
|
255
255
|
|
|
256
|
-
for (i = 0; i === lMaxChildIndex+1; i++) {
|
|
257
|
-
loChild = loMember[""+i];
|
|
256
|
+
for (i = 0; i === lMaxChildIndex + 1; i++) {
|
|
257
|
+
loChild = loMember["" + i];
|
|
258
258
|
if (!loChild) {
|
|
259
259
|
continue;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
loChild.level = lParentLevel+1;
|
|
262
|
+
loChild.level = lParentLevel + 1;
|
|
263
263
|
lMaxChildIndex = i;
|
|
264
264
|
}
|
|
265
265
|
loModel.setProperty(oControlProperties.path, oControlProperties.member);
|
|
@@ -285,7 +285,7 @@ sap.ui.define(
|
|
|
285
285
|
/**
|
|
286
286
|
* Add Items
|
|
287
287
|
*/
|
|
288
|
-
this.addItems = function(oControl) {
|
|
288
|
+
this.addItems = function (oControl) {
|
|
289
289
|
//if "/property/showembedded" is true, render as filter panel
|
|
290
290
|
//if false as dimension filter
|
|
291
291
|
var loModel = oControl.getModel();
|
|
@@ -296,10 +296,10 @@ sap.ui.define(
|
|
|
296
296
|
|
|
297
297
|
var loSearchField = new SearchField(
|
|
298
298
|
{
|
|
299
|
-
liveChange: function(oEvent) {
|
|
299
|
+
liveChange: function (oEvent) {
|
|
300
300
|
var lValue = oEvent.getParameter("newValue");
|
|
301
301
|
var loFilter = new Filter(lNavigationMode ? "entry/text" : "characteristic/text", sap.ui.model.FilterOperator.Contains, lValue);
|
|
302
|
-
var ltFilters = [
|
|
302
|
+
var ltFilters = [loFilter];
|
|
303
303
|
var ltVisiblePrompts = loModel.getProperty("/visibleprompts");
|
|
304
304
|
if (ltVisiblePrompts) {
|
|
305
305
|
ltFilters.push(getFilterForVisibleVariables(ltVisiblePrompts));
|
|
@@ -314,7 +314,7 @@ sap.ui.define(
|
|
|
314
314
|
);
|
|
315
315
|
var loSubHeader = new Toolbar(
|
|
316
316
|
{
|
|
317
|
-
content: [null,loSearchField]
|
|
317
|
+
content: [null, loSearchField]
|
|
318
318
|
}
|
|
319
319
|
);
|
|
320
320
|
if (loModel.getProperty("/property/variablescreen") && loModel.getProperty("/visibleprompts")) {
|
|
@@ -328,7 +328,7 @@ sap.ui.define(
|
|
|
328
328
|
/**
|
|
329
329
|
* Get Main Item
|
|
330
330
|
*/
|
|
331
|
-
this.getMainItem = function(oControl) {
|
|
331
|
+
this.getMainItem = function (oControl) {
|
|
332
332
|
var loForm = new sap.ui.layout.form.Form({
|
|
333
333
|
editable: true,
|
|
334
334
|
formContainers: [this.getMainContent(oControl)],
|
|
@@ -347,7 +347,7 @@ sap.ui.define(
|
|
|
347
347
|
/**
|
|
348
348
|
* Get Main Content
|
|
349
349
|
*/
|
|
350
|
-
this.getMainContent = function(oControl) {
|
|
350
|
+
this.getMainContent = function (oControl) {
|
|
351
351
|
var loContent;
|
|
352
352
|
|
|
353
353
|
var loModel = oControl.getModel();
|
|
@@ -366,10 +366,10 @@ sap.ui.define(
|
|
|
366
366
|
/**
|
|
367
367
|
* Get Form Container
|
|
368
368
|
*/
|
|
369
|
-
this.getFormContainer = function(oControl, tFilters, axis) {
|
|
369
|
+
this.getFormContainer = function (oControl, tFilters, axis) {
|
|
370
370
|
var loFormContainer = new sap.ui.layout.form.FormContainer({
|
|
371
371
|
formElements: {
|
|
372
|
-
path
|
|
372
|
+
path: "/characteristics",
|
|
373
373
|
factory: this.getFromElementsFactory(oControl, axis),
|
|
374
374
|
filters: tFilters
|
|
375
375
|
}
|
|
@@ -381,8 +381,8 @@ sap.ui.define(
|
|
|
381
381
|
/**
|
|
382
382
|
* Get From Elements Factory
|
|
383
383
|
*/
|
|
384
|
-
this.getFromElementsFactory = function(oControl, axis) {
|
|
385
|
-
return function(sId, oContext) {
|
|
384
|
+
this.getFromElementsFactory = function (oControl, axis) {
|
|
385
|
+
return function (sId, oContext) {
|
|
386
386
|
var loModel = oContext.getModel();
|
|
387
387
|
var lCharName = loModel.getProperty(axis ? oContext.getPath("entry/name") : oContext.getPath("characteristic/name"));
|
|
388
388
|
var lCharPath = axis ? getPathForCharName(loModel, lCharName) : oContext.getPath("characteristic");
|
|
@@ -402,26 +402,26 @@ sap.ui.define(
|
|
|
402
402
|
var lsFormElementId;
|
|
403
403
|
var lsFormElementIdLabel;
|
|
404
404
|
if (loModel.getProperty("/property/variablescreen")) {
|
|
405
|
-
lsFormElementId = oControl.getId() + "-" +
|
|
405
|
+
lsFormElementId = oControl.getId() + "-" + that.createUI5Identifier(lCharName);
|
|
406
406
|
lsFormElementIdLabel = lsFormElementId + "-label";
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
if(loModel.getProperty("/property/label")) { //DimensionName
|
|
409
|
+
if (loModel.getProperty("/property/label")) { //DimensionName
|
|
410
410
|
var loLabel = new Label(lsFormElementIdLabel).bindProperty("text", {
|
|
411
411
|
path: lCharPath,
|
|
412
|
-
formatter
|
|
412
|
+
formatter: function (oCharacteristic) {
|
|
413
413
|
return oCharacteristic.text;
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
416
|
loLabel.bindProperty("tooltip", {
|
|
417
417
|
path: lCharPath,
|
|
418
|
-
formatter
|
|
418
|
+
formatter: function (oCharacteristic) {
|
|
419
419
|
return oCharacteristic.text;
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
loLabel.bindProperty("required", {
|
|
423
423
|
path: lCharPath,
|
|
424
|
-
formatter
|
|
424
|
+
formatter: function (oCharacteristic) {
|
|
425
425
|
return oCharacteristic.mandatory;
|
|
426
426
|
}
|
|
427
427
|
});
|
|
@@ -443,16 +443,16 @@ sap.ui.define(
|
|
|
443
443
|
/**
|
|
444
444
|
* Get Input Control
|
|
445
445
|
*/
|
|
446
|
-
this.getInput = function(oModel, charName, charPath, oControl) {
|
|
446
|
+
this.getInput = function (oModel, charName, charPath, oControl) {
|
|
447
447
|
var loChar = this.getCharacteristicByName(oModel, charName);
|
|
448
448
|
|
|
449
449
|
// supported operations (not overridden)
|
|
450
450
|
var lType = oModel.getProperty(charPath + "/type");
|
|
451
|
-
var lHierarchical = oModel.getProperty(charPath +"/hierarchical");
|
|
452
|
-
var lSupportsMultiSelection = oModel.getProperty(charPath +"/supportsMultiSelection");
|
|
451
|
+
var lHierarchical = oModel.getProperty(charPath + "/hierarchical");
|
|
452
|
+
var lSupportsMultiSelection = oModel.getProperty(charPath + "/supportsMultiSelection");
|
|
453
453
|
var lSupportsInterval = oModel.getProperty(charPath + "/supportsInterval");
|
|
454
454
|
var lSupportsRange = oModel.getProperty(charPath + "/supportsRange");
|
|
455
|
-
var lSupportsExcluding = oModel.getProperty(charPath +"/supportsExcluding");
|
|
455
|
+
var lSupportsExcluding = oModel.getProperty(charPath + "/supportsExcluding");
|
|
456
456
|
// display behavior (overridden for special cases)
|
|
457
457
|
var lShowValueHelp = oModel.getProperty(charPath + "/showValueHelp");
|
|
458
458
|
// required behavior (overrides support behavior)
|
|
@@ -460,7 +460,7 @@ sap.ui.define(
|
|
|
460
460
|
var loInput, lInputId;
|
|
461
461
|
|
|
462
462
|
if (oModel.getProperty("/property/variablescreen")) {
|
|
463
|
-
lInputId = oControl.getId() + "-" +
|
|
463
|
+
lInputId = oControl.getId() + "-" + that.createUI5Identifier(charName) + "-input";
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
if ((lType === "DATE" && !lSupportsMultiSelection && !lSupportsExcluding && !lSupportsRange && !lHierarchical) || (lType === "TIME" && !lSupportsMultiSelection && !lSupportsInterval)) {
|
|
@@ -468,12 +468,12 @@ sap.ui.define(
|
|
|
468
468
|
loInput = new sap.m.DateRangeSelection(lInputId, {
|
|
469
469
|
dateValue: {
|
|
470
470
|
path: "/filters",
|
|
471
|
-
mode
|
|
471
|
+
mode: sap.ui.model.BindingMode.OneWay,
|
|
472
472
|
formatter: this.getFilterFormatter(charName, lType, oModel, "from")
|
|
473
473
|
},
|
|
474
474
|
secondDateValue: {
|
|
475
475
|
path: "/filters",
|
|
476
|
-
mode
|
|
476
|
+
mode: sap.ui.model.BindingMode.OneWay,
|
|
477
477
|
formatter: this.getFilterFormatter(charName, lType, oModel, "to")
|
|
478
478
|
},
|
|
479
479
|
change: function (e) {
|
|
@@ -504,7 +504,7 @@ sap.ui.define(
|
|
|
504
504
|
valueFormat: "yyyyMMdd",
|
|
505
505
|
dateValue: {
|
|
506
506
|
path: "/filters",
|
|
507
|
-
mode
|
|
507
|
+
mode: sap.ui.model.BindingMode.OneWay,
|
|
508
508
|
formatter: this.getFilterFormatter(charName, lType, oModel, "from")
|
|
509
509
|
},
|
|
510
510
|
change: function (e) {
|
|
@@ -528,12 +528,12 @@ sap.ui.define(
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
});
|
|
531
|
-
} else if (lType === "TIME"){
|
|
531
|
+
} else if (lType === "TIME") {
|
|
532
532
|
loInput = new sap.m.TimePicker(lInputId, {
|
|
533
533
|
valueFormat: "HH:mm:ss",
|
|
534
534
|
dateValue: {
|
|
535
535
|
path: "/filters",
|
|
536
|
-
mode
|
|
536
|
+
mode: sap.ui.model.BindingMode.OneWay,
|
|
537
537
|
formatter: this.getFilterFormatter(charName, lType, oModel, "from")
|
|
538
538
|
},
|
|
539
539
|
change: function (e) {
|
|
@@ -564,20 +564,20 @@ sap.ui.define(
|
|
|
564
564
|
showValueHelp: lShowValueHelp ? true : false,
|
|
565
565
|
enableMultiLineMode: {
|
|
566
566
|
path: "/filters",
|
|
567
|
-
mode
|
|
567
|
+
mode: sap.ui.model.BindingMode.OneWay,
|
|
568
568
|
formatter: this.applyFilterToTokens(oControl, oModel, charName)
|
|
569
569
|
},
|
|
570
570
|
|
|
571
571
|
// apply Token to Model
|
|
572
|
-
tokenUpdate: function(e) {
|
|
572
|
+
tokenUpdate: function (e) {
|
|
573
573
|
if (e.getParameter("type") === sap.m.MultiInput.TokenChangeType.Removed) {
|
|
574
574
|
var ltRemovedTokens = e.getParameter("removedTokens");
|
|
575
575
|
|
|
576
576
|
// remove Removed Tokens from Token List
|
|
577
577
|
var ltTokens = loInput.getTokens().filter(
|
|
578
|
-
function(loInputToken) {
|
|
578
|
+
function (loInputToken) {
|
|
579
579
|
return ltRemovedTokens.every(
|
|
580
|
-
function(oRemovedToken) {
|
|
580
|
+
function (oRemovedToken) {
|
|
581
581
|
return oRemovedToken !== loInputToken;
|
|
582
582
|
});
|
|
583
583
|
});
|
|
@@ -616,9 +616,9 @@ sap.ui.define(
|
|
|
616
616
|
that.clearClipboard(charName);
|
|
617
617
|
// remove Added Tokens from Token List
|
|
618
618
|
ltTokens = loInput.getTokens().filter(
|
|
619
|
-
function(loInputToken) {
|
|
619
|
+
function (loInputToken) {
|
|
620
620
|
return ltAddedTokens.every(
|
|
621
|
-
function(oAddedToken) {
|
|
621
|
+
function (oAddedToken) {
|
|
622
622
|
return oAddedToken !== loInputToken;
|
|
623
623
|
});
|
|
624
624
|
});
|
|
@@ -634,7 +634,7 @@ sap.ui.define(
|
|
|
634
634
|
|
|
635
635
|
// validate input
|
|
636
636
|
loInput.addValidator(
|
|
637
|
-
function(e) {
|
|
637
|
+
function (e) {
|
|
638
638
|
// create Dummy Token for validation confirmation
|
|
639
639
|
var loToken = new Token(
|
|
640
640
|
{
|
|
@@ -648,7 +648,7 @@ sap.ui.define(
|
|
|
648
648
|
);
|
|
649
649
|
var loTokenizer = loInput.getAggregation("tokenizer");
|
|
650
650
|
// overwrite copy
|
|
651
|
-
loTokenizer._copy = function() {
|
|
651
|
+
loTokenizer._copy = function () {
|
|
652
652
|
if (Tokenizer.prototype._copy) {
|
|
653
653
|
Tokenizer.prototype._copy.apply(this, arguments);
|
|
654
654
|
}
|
|
@@ -656,7 +656,7 @@ sap.ui.define(
|
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
658
|
if (lShowValueHelp && loInput.attachValueHelpRequest) {
|
|
659
|
-
var loFunctionValueHelp = function() {
|
|
659
|
+
var loFunctionValueHelp = function () {
|
|
660
660
|
BusyIndicator.show(0);
|
|
661
661
|
new Function(that.prepareCommand(oModel.getProperty("/command/showfilterdialog"), "__STRING__", charName))();
|
|
662
662
|
};
|
|
@@ -664,13 +664,13 @@ sap.ui.define(
|
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
loInput.addEventDelegate({
|
|
667
|
-
onfocusin:function() {
|
|
667
|
+
onfocusin: function () {
|
|
668
668
|
oControl.$().css("z-index", "1");
|
|
669
669
|
},
|
|
670
|
-
onfocusout:function() {
|
|
670
|
+
onfocusout: function () {
|
|
671
671
|
oControl.$().css("z-index", "");
|
|
672
672
|
},
|
|
673
|
-
oncopy: function() {
|
|
673
|
+
oncopy: function () {
|
|
674
674
|
|
|
675
675
|
}
|
|
676
676
|
});
|
|
@@ -683,7 +683,7 @@ sap.ui.define(
|
|
|
683
683
|
/**
|
|
684
684
|
* Add Tokens to Clipboard
|
|
685
685
|
*/
|
|
686
|
-
this.addTokensToClipboard = function(charName, tTokens) {
|
|
686
|
+
this.addTokensToClipboard = function (charName, tTokens) {
|
|
687
687
|
if (!this.oClipboard[charName]) {
|
|
688
688
|
this.oClipboard[charName] = [];
|
|
689
689
|
}
|
|
@@ -702,22 +702,22 @@ sap.ui.define(
|
|
|
702
702
|
/**
|
|
703
703
|
* Get Tokens from Clipboard
|
|
704
704
|
*/
|
|
705
|
-
this.getTokensFromClipboard = function(charName) {
|
|
705
|
+
this.getTokensFromClipboard = function (charName) {
|
|
706
706
|
return this.oClipboard[charName];
|
|
707
707
|
};
|
|
708
708
|
|
|
709
709
|
/**
|
|
710
710
|
* Clear Clipboard
|
|
711
711
|
*/
|
|
712
|
-
this.clearClipboard = function(charName) {
|
|
712
|
+
this.clearClipboard = function (charName) {
|
|
713
713
|
this.oClipboard[charName] = [];
|
|
714
714
|
};
|
|
715
715
|
|
|
716
716
|
/**
|
|
717
717
|
* Get Filter Formatter (handling of Date and Time)
|
|
718
718
|
*/
|
|
719
|
-
this.getFilterFormatter = function(charName, type, oModel, fromTo) {
|
|
720
|
-
return function(oFilters) {
|
|
719
|
+
this.getFilterFormatter = function (charName, type, oModel, fromTo) {
|
|
720
|
+
return function (oFilters) {
|
|
721
721
|
if (oFilters && charName && oFilters[charName]) {
|
|
722
722
|
var loCharFilter = oFilters[charName];
|
|
723
723
|
if (loCharFilter.ranges) {
|
|
@@ -741,22 +741,22 @@ sap.ui.define(
|
|
|
741
741
|
/**
|
|
742
742
|
* Get Data Format Instance
|
|
743
743
|
*/
|
|
744
|
-
this.getDateFormat = function() {
|
|
745
|
-
return sap.ui.core.format.DateFormat.getInstance({pattern: "yyyyMMdd", strictParsing: true});
|
|
744
|
+
this.getDateFormat = function () {
|
|
745
|
+
return sap.ui.core.format.DateFormat.getInstance({ pattern: "yyyyMMdd", strictParsing: true });
|
|
746
746
|
};
|
|
747
747
|
|
|
748
748
|
/**
|
|
749
749
|
* Get Time Format Instance
|
|
750
750
|
*/
|
|
751
|
-
this.getTimeFormat = function() {
|
|
752
|
-
return sap.ui.core.format.DateFormat.getTimeInstance({pattern: "HH:mm:ss", strictParsing: true});
|
|
751
|
+
this.getTimeFormat = function () {
|
|
752
|
+
return sap.ui.core.format.DateFormat.getTimeInstance({ pattern: "HH:mm:ss", strictParsing: true });
|
|
753
753
|
};
|
|
754
754
|
|
|
755
755
|
/**
|
|
756
756
|
* Transfer Filter to Tokens
|
|
757
757
|
*/
|
|
758
|
-
this.applyFilterToTokens = function(oControl, oModel, charName) {
|
|
759
|
-
return function(oAllFilters) {
|
|
758
|
+
this.applyFilterToTokens = function (oControl, oModel, charName) {
|
|
759
|
+
return function (oAllFilters) {
|
|
760
760
|
// Handle Filter Dialog Destroy for FilterBar
|
|
761
761
|
if (oControl.ZEN_multiInput[0].getId() !== this.getId()) {
|
|
762
762
|
oControl.ZEN_multiInput[0] = this;
|
|
@@ -795,7 +795,7 @@ sap.ui.define(
|
|
|
795
795
|
/**
|
|
796
796
|
* Transfer Tokens to Filter
|
|
797
797
|
*/
|
|
798
|
-
this.applyTokensToFilter = function(oModel, charName, tTokens, displayKey) {
|
|
798
|
+
this.applyTokensToFilter = function (oModel, charName, tTokens, displayKey) {
|
|
799
799
|
var loChar = this.getCharacteristicByName(oModel, charName);
|
|
800
800
|
|
|
801
801
|
var ltAllFilters = oModel.getProperty("/filters");
|
|
@@ -845,7 +845,7 @@ sap.ui.define(
|
|
|
845
845
|
/**
|
|
846
846
|
* Create Token From Range
|
|
847
847
|
*/
|
|
848
|
-
this.createTokenFromRange = function(oModel, charName, oChar, oRange) {
|
|
848
|
+
this.createTokenFromRange = function (oModel, charName, oChar, oRange) {
|
|
849
849
|
if (!oRange || !oRange.from) {
|
|
850
850
|
return null;
|
|
851
851
|
}
|
|
@@ -988,7 +988,7 @@ sap.ui.define(
|
|
|
988
988
|
|
|
989
989
|
return loToken;
|
|
990
990
|
};
|
|
991
|
-
this.copyToken = function(oToken) {
|
|
991
|
+
this.copyToken = function (oToken) {
|
|
992
992
|
if (!oToken) {
|
|
993
993
|
return null;
|
|
994
994
|
}
|
|
@@ -1002,7 +1002,7 @@ sap.ui.define(
|
|
|
1002
1002
|
loToken.data(oToken.data());
|
|
1003
1003
|
return loToken;
|
|
1004
1004
|
};
|
|
1005
|
-
this.createRangeFromToken = function(oModel, charName, oChar, oToken) {
|
|
1005
|
+
this.createRangeFromToken = function (oModel, charName, oChar, oToken) {
|
|
1006
1006
|
if (!oToken) {
|
|
1007
1007
|
return null;
|
|
1008
1008
|
}
|
|
@@ -1088,7 +1088,7 @@ sap.ui.define(
|
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Create Range
|
|
1090
1090
|
*/
|
|
1091
|
-
this.createRange = function(exclude, operation, keyFrom, textFrom, keyTo, textTo) {
|
|
1091
|
+
this.createRange = function (exclude, operation, keyFrom, textFrom, keyTo, textTo) {
|
|
1092
1092
|
if (keyFrom === null || keyFrom === undefined) {
|
|
1093
1093
|
return null;
|
|
1094
1094
|
}
|
|
@@ -1125,7 +1125,7 @@ sap.ui.define(
|
|
|
1125
1125
|
/**
|
|
1126
1126
|
* Check if Range is a Range Definition
|
|
1127
1127
|
*/
|
|
1128
|
-
this.isRangeARangeDefinition = function(oRange) {
|
|
1128
|
+
this.isRangeARangeDefinition = function (oRange) {
|
|
1129
1129
|
var lIsRange = true;
|
|
1130
1130
|
if (!oRange.exclude && (!oRange.operation || oRange.operation === sap.zen.dsh.ValueHelpRangeOperation.EQ)) {
|
|
1131
1131
|
lIsRange = false;
|
|
@@ -1136,8 +1136,8 @@ sap.ui.define(
|
|
|
1136
1136
|
/**
|
|
1137
1137
|
* Submit Model to Backend
|
|
1138
1138
|
*/
|
|
1139
|
-
this.submitExternal = function(oModel, submit, executeOnApply) {
|
|
1140
|
-
return function(sToReplace, sLongReplaceTarget) {
|
|
1139
|
+
this.submitExternal = function (oModel, submit, executeOnApply) {
|
|
1140
|
+
return function (sToReplace, sLongReplaceTarget) {
|
|
1141
1141
|
return that.submitAll(oModel, submit, executeOnApply, sToReplace, sLongReplaceTarget);
|
|
1142
1142
|
};
|
|
1143
1143
|
};
|
|
@@ -1145,7 +1145,7 @@ sap.ui.define(
|
|
|
1145
1145
|
/**
|
|
1146
1146
|
* Submit Model to Backend
|
|
1147
1147
|
*/
|
|
1148
|
-
this.submitAll = function(oModel, submit, executeOnApply, sToReplace, sLongReplaceTarget) {
|
|
1148
|
+
this.submitAll = function (oModel, submit, executeOnApply, sToReplace, sLongReplaceTarget) {
|
|
1149
1149
|
var ltFilters = [];
|
|
1150
1150
|
|
|
1151
1151
|
var ltModelFilters = oModel.getProperty("/filters");
|
|
@@ -1241,8 +1241,8 @@ sap.ui.define(
|
|
|
1241
1241
|
}
|
|
1242
1242
|
|
|
1243
1243
|
var loSubmitJson = {
|
|
1244
|
-
filters
|
|
1245
|
-
axis
|
|
1244
|
+
filters: ltFilters,
|
|
1245
|
+
axis: loAxis
|
|
1246
1246
|
};
|
|
1247
1247
|
|
|
1248
1248
|
if (sToReplace && sLongReplaceTarget) {
|
|
@@ -1261,7 +1261,7 @@ sap.ui.define(
|
|
|
1261
1261
|
/**
|
|
1262
1262
|
* Create the ValueHelp Dialog for a Characteristic
|
|
1263
1263
|
*/
|
|
1264
|
-
this.getValueHelpDialog = function(oControl) {
|
|
1264
|
+
this.getValueHelpDialog = function (oControl) {
|
|
1265
1265
|
var loModel = oControl.getModel();
|
|
1266
1266
|
var lCharName = loModel.getProperty("/dialog/name");
|
|
1267
1267
|
var lDestroyFilterDialogCmd = loModel.getProperty("/command/destroyfilterdialog");
|
|
@@ -1296,7 +1296,7 @@ sap.ui.define(
|
|
|
1296
1296
|
key: "key",
|
|
1297
1297
|
descriptionKey: lCompound ? "" : "text",
|
|
1298
1298
|
|
|
1299
|
-
ok: function(e) {
|
|
1299
|
+
ok: function (e) {
|
|
1300
1300
|
var ltTokens = e.getParameter("tokens");
|
|
1301
1301
|
that.applyTokensToFilter(loModel, lCharName, ltTokens, false);
|
|
1302
1302
|
oControl.zenValueHelpDialog = null;
|
|
@@ -1304,13 +1304,13 @@ sap.ui.define(
|
|
|
1304
1304
|
loValueHelpDialog.close();
|
|
1305
1305
|
},
|
|
1306
1306
|
|
|
1307
|
-
cancel: function() {
|
|
1307
|
+
cancel: function () {
|
|
1308
1308
|
oControl.zenValueHelpDialog = null;
|
|
1309
1309
|
new Function(that.prepareCommand(lDestroyFilterDialogCmd, "__BOOLEAN__", "X"))();
|
|
1310
1310
|
loValueHelpDialog.close();
|
|
1311
1311
|
},
|
|
1312
1312
|
|
|
1313
|
-
afterClose: function() {
|
|
1313
|
+
afterClose: function () {
|
|
1314
1314
|
if (oControl.zenValueHelpDialog) {
|
|
1315
1315
|
oControl.zenValueHelpDialog = null;
|
|
1316
1316
|
new Function(that.prepareCommand(lDestroyFilterDialogCmd, "__BOOLEAN__", "X"))();
|
|
@@ -1322,6 +1322,19 @@ sap.ui.define(
|
|
|
1322
1322
|
sap.ui.core.BusyIndicator.hide();
|
|
1323
1323
|
}
|
|
1324
1324
|
});
|
|
1325
|
+
|
|
1326
|
+
// this is an evil hack that is needed because the ui5 table that is used for value help expects a parent that has exactly this classname
|
|
1327
|
+
var getValueHelpMetadata = loValueHelpDialog.getMetadata;
|
|
1328
|
+
var loValueHelpDialogPrototype = Object.getPrototypeOf(loValueHelpDialog);
|
|
1329
|
+
if (loValueHelpDialogPrototype) {
|
|
1330
|
+
loValueHelpDialogPrototype.getMetadata = function () {
|
|
1331
|
+
var metadata = getValueHelpMetadata();
|
|
1332
|
+
Object.assign(metadata, { _sClassName: "sap.ui.comp.valuehelpdialog.ValueHelpDialog" });
|
|
1333
|
+
metadata.getName = function () { return "sap.ui.comp.valuehelpdialog.ValueHelpDialog"; };
|
|
1334
|
+
return metadata;
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1325
1338
|
if (lHierarchical) {
|
|
1326
1339
|
loValueHelpDialog.setTable(new sap.ui.table.TreeTable());
|
|
1327
1340
|
}
|
|
@@ -1402,7 +1415,7 @@ sap.ui.define(
|
|
|
1402
1415
|
var loTable = loValueHelpDialog.getTable();
|
|
1403
1416
|
if (lHierarchical && loTable.attachToggleOpenState) {
|
|
1404
1417
|
var lDialogUpdate;
|
|
1405
|
-
loTable.attachToggleOpenState(function(e) {
|
|
1418
|
+
loTable.attachToggleOpenState(function (e) {
|
|
1406
1419
|
var loParams = e.getParameters();
|
|
1407
1420
|
loValueHelpDialog._bIgnoreSelectionChange = true;
|
|
1408
1421
|
if (loParams.expanded) {
|
|
@@ -1410,9 +1423,7 @@ sap.ui.define(
|
|
|
1410
1423
|
var loModel = loBindingContext.oModel;
|
|
1411
1424
|
if (loModel.getProperty(loBindingContext.sPath + "/0/node")) {
|
|
1412
1425
|
var lMethod = that.prepareCommand(
|
|
1413
|
-
loModel
|
|
1414
|
-
.getProperty("/command/expandnode"), "__STRING__", loModel
|
|
1415
|
-
.getProperty(loBindingContext.sPath + "/key")
|
|
1426
|
+
loModel.getProperty("/command/expandnode"), "__STRING__", loModel.getProperty(loBindingContext.sPath + "/key")
|
|
1416
1427
|
);
|
|
1417
1428
|
lMethod = that.prepareCommand(
|
|
1418
1429
|
lMethod, "__STRING2__",
|
|
@@ -1426,7 +1437,7 @@ sap.ui.define(
|
|
|
1426
1437
|
});
|
|
1427
1438
|
|
|
1428
1439
|
var lFuncOnClick = loTable.onclick;
|
|
1429
|
-
loTable.onclick = function() {
|
|
1440
|
+
loTable.onclick = function () {
|
|
1430
1441
|
if (lFuncOnClick) {
|
|
1431
1442
|
lFuncOnClick.apply(loTable, arguments);
|
|
1432
1443
|
}
|
|
@@ -1504,7 +1515,7 @@ sap.ui.define(
|
|
|
1504
1515
|
}
|
|
1505
1516
|
});
|
|
1506
1517
|
|
|
1507
|
-
loValueHelpDialog.attachSelectionChange(function(e) {
|
|
1518
|
+
loValueHelpDialog.attachSelectionChange(function (e) {
|
|
1508
1519
|
// collect all the new selected or removed items
|
|
1509
1520
|
var loRowsBinding = loTable.getBinding("rows");
|
|
1510
1521
|
|
|
@@ -1558,33 +1569,33 @@ sap.ui.define(
|
|
|
1558
1569
|
if (lMemberDisplay === "KEY") {
|
|
1559
1570
|
loColModel.setData({
|
|
1560
1571
|
cols: [
|
|
1561
|
-
{label: loModel.getProperty("/text/key"), template: "displaykey"}
|
|
1572
|
+
{ label: loModel.getProperty("/text/key"), template: "displaykey" }
|
|
1562
1573
|
]
|
|
1563
1574
|
});
|
|
1564
1575
|
} else if (lMemberDisplay === "TEXT") {
|
|
1565
1576
|
loColModel.setData({
|
|
1566
1577
|
cols: [
|
|
1567
|
-
{label: loModel.getProperty("/text/text"), template: "text"}
|
|
1578
|
+
{ label: loModel.getProperty("/text/text"), template: "text" }
|
|
1568
1579
|
]
|
|
1569
1580
|
});
|
|
1570
1581
|
} else if (lMemberDisplay === "KEY_TEXT") {
|
|
1571
1582
|
loColModel.setData({
|
|
1572
1583
|
cols: [
|
|
1573
|
-
{label: loModel.getProperty("/text/key"), template: "displaykey"},
|
|
1574
|
-
{label: loModel.getProperty("/text/text"), template: "text"}
|
|
1584
|
+
{ label: loModel.getProperty("/text/key"), template: "displaykey" },
|
|
1585
|
+
{ label: loModel.getProperty("/text/text"), template: "text" }
|
|
1575
1586
|
]
|
|
1576
1587
|
});
|
|
1577
1588
|
} else if (lMemberDisplay === "TEXT_KEY") {
|
|
1578
1589
|
loColModel.setData({
|
|
1579
1590
|
cols: [
|
|
1580
|
-
{label: loModel.getProperty("/text/text"), template: "text"},
|
|
1581
|
-
{label: loModel.getProperty("/text/key"), template: "displaykey"}
|
|
1591
|
+
{ label: loModel.getProperty("/text/text"), template: "text" },
|
|
1592
|
+
{ label: loModel.getProperty("/text/key"), template: "displaykey" }
|
|
1582
1593
|
]
|
|
1583
1594
|
});
|
|
1584
1595
|
}
|
|
1585
1596
|
loTable.setModel(loColModel, "columns");
|
|
1586
1597
|
|
|
1587
|
-
var loRangeKeyField = {label: loModel.getProperty("/text/key"), key: "key"};
|
|
1598
|
+
var loRangeKeyField = { label: loModel.getProperty("/text/key"), key: "key" };
|
|
1588
1599
|
if ((lRangesVisible || lSupportsExcluding)) {
|
|
1589
1600
|
if (lType === "DATE") {
|
|
1590
1601
|
loRangeKeyField.type = "date";
|
|
@@ -1605,15 +1616,16 @@ sap.ui.define(
|
|
|
1605
1616
|
var loSearchField = new sap.m.SearchField(
|
|
1606
1617
|
{
|
|
1607
1618
|
width: "95%",
|
|
1608
|
-
placeholder:"{/text/search}"
|
|
1619
|
+
placeholder: "{/text/search}"
|
|
1620
|
+
}
|
|
1609
1621
|
);
|
|
1610
1622
|
|
|
1611
1623
|
var ltMembers;
|
|
1612
1624
|
if (lHierarchical) {
|
|
1613
1625
|
ltMembers = loModel.getProperty("/dialog/members");
|
|
1614
1626
|
if (ltMembers) {
|
|
1615
|
-
for (var i = 0; i === lMaxChildIndex+1; i++) {
|
|
1616
|
-
var loChild = ltMembers[""+i];
|
|
1627
|
+
for (var i = 0; i === lMaxChildIndex + 1; i++) {
|
|
1628
|
+
var loChild = ltMembers["" + i];
|
|
1617
1629
|
if (!loChild) {
|
|
1618
1630
|
continue;
|
|
1619
1631
|
}
|
|
@@ -1628,7 +1640,7 @@ sap.ui.define(
|
|
|
1628
1640
|
loSearchField.setBusyIndicatorDelay(0);
|
|
1629
1641
|
loValueHelpDialog.TableStateSearchData();
|
|
1630
1642
|
loSearchField.attachSearch(
|
|
1631
|
-
function(e) {
|
|
1643
|
+
function (e) {
|
|
1632
1644
|
loSearchField.setBusy(true);
|
|
1633
1645
|
loValueHelpDialog.TableStateDataSearching();
|
|
1634
1646
|
var lValue = e.getParameters().query;
|
|
@@ -1665,9 +1677,9 @@ sap.ui.define(
|
|
|
1665
1677
|
}
|
|
1666
1678
|
|
|
1667
1679
|
loSearchField.setShowSearchButton(false);
|
|
1668
|
-
loSearchField.attachLiveChange(function(e) {
|
|
1680
|
+
loSearchField.attachLiveChange(function (e) {
|
|
1669
1681
|
var loValue1 = e.getParameters().newValue ? e.getParameters().newValue.toUpperCase() : "";
|
|
1670
|
-
var ltCharsToEscape = [
|
|
1682
|
+
var ltCharsToEscape = ["\\\\", "\\^", "\\$", "\\+", "\\.", "\\(", "\\)", "\\[", "\\]", "\\{", "\\}"];
|
|
1671
1683
|
|
|
1672
1684
|
for (var i = 0; i < ltCharsToEscape.length; i++) {
|
|
1673
1685
|
var lChar = ltCharsToEscape[i];
|
|
@@ -1680,13 +1692,13 @@ sap.ui.define(
|
|
|
1680
1692
|
|
|
1681
1693
|
loValue1 = loValue1.replace(/\?/g, ".").replace(/\*/g, ".*?");
|
|
1682
1694
|
var loFilter = new sap.ui.model.Filter("searchstring", "Wildcard", loValue1);
|
|
1683
|
-
loFilter.fnTest = function(value) {
|
|
1695
|
+
loFilter.fnTest = function (value) {
|
|
1684
1696
|
return value.search(new RegExp(loValue1)) !== -1;
|
|
1685
1697
|
};
|
|
1686
1698
|
if (!loModel.getProperty("/dialog/selection/maxelements")
|
|
1687
|
-
|
|
1699
|
+
&& !loModel.getProperty("/dialog/hierarchical")) {
|
|
1688
1700
|
loValueHelpDialog._bIgnoreSelectionChange = true;
|
|
1689
|
-
loValueHelpDialog.getTable().getBinding("rows").filter([
|
|
1701
|
+
loValueHelpDialog.getTable().getBinding("rows").filter([loFilter]);
|
|
1690
1702
|
loValueHelpDialog._bIgnoreSelectionChange = false;
|
|
1691
1703
|
loValueHelpDialog.update();
|
|
1692
1704
|
}
|
|
@@ -1701,16 +1713,16 @@ sap.ui.define(
|
|
|
1701
1713
|
/**
|
|
1702
1714
|
* Get MemberDispay Mode
|
|
1703
1715
|
*/
|
|
1704
|
-
this.getValueHelpDialogMemberDisplay = function(memberDisplay) {
|
|
1716
|
+
this.getValueHelpDialogMemberDisplay = function (memberDisplay) {
|
|
1705
1717
|
switch (memberDisplay) {
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1718
|
+
case "TEXT_KEY":
|
|
1719
|
+
return "descriptionAndId";
|
|
1720
|
+
case "KEY_TEXT":
|
|
1721
|
+
return "idAndDescription";
|
|
1722
|
+
case "TEXT":
|
|
1723
|
+
return "descriptionOnly";
|
|
1724
|
+
default:
|
|
1725
|
+
return "idOnly";
|
|
1714
1726
|
}
|
|
1715
1727
|
};
|
|
1716
1728
|
|
|
@@ -1722,9 +1734,9 @@ sap.ui.define(
|
|
|
1722
1734
|
/**
|
|
1723
1735
|
* get the Technical Name of a Variable
|
|
1724
1736
|
*/
|
|
1725
|
-
this.getVariableTechnicalName = function(varName) {
|
|
1737
|
+
this.getVariableTechnicalName = function (varName) {
|
|
1726
1738
|
//this technical name recognition works only in S4 mode!!!
|
|
1727
|
-
return varName.substring(varName.indexOf(":")+1, varName.length);
|
|
1739
|
+
return varName.substring(varName.indexOf(":") + 1, varName.length);
|
|
1728
1740
|
};
|
|
1729
1741
|
function getSettingsButton(oControl, oSearchField) {
|
|
1730
1742
|
var loModel = oControl.getModel();
|
|
@@ -1734,14 +1746,14 @@ sap.ui.define(
|
|
|
1734
1746
|
press: function () {
|
|
1735
1747
|
var loDialog = new SelectDialog(
|
|
1736
1748
|
{
|
|
1737
|
-
items:{
|
|
1738
|
-
path:
|
|
1749
|
+
items: {
|
|
1750
|
+
path: "/characteristics",
|
|
1739
1751
|
template: new StandardListItem(
|
|
1740
1752
|
{
|
|
1741
1753
|
title: "{characteristic/text}",
|
|
1742
1754
|
selected: {
|
|
1743
1755
|
path: "/visibleprompts",
|
|
1744
|
-
formatter: function(tVisiblePrompts) {
|
|
1756
|
+
formatter: function (tVisiblePrompts) {
|
|
1745
1757
|
var lVarTechName = that.getVariableTechnicalName(this.getBindingContext().getProperty("characteristic/name"));
|
|
1746
1758
|
for (var i = 0; i < tVisiblePrompts.length; i++) {
|
|
1747
1759
|
if (tVisiblePrompts[i] === lVarTechName) {
|
|
@@ -1763,18 +1775,18 @@ sap.ui.define(
|
|
|
1763
1775
|
//0 === always all of them.
|
|
1764
1776
|
growingThreshold: 0,
|
|
1765
1777
|
multiSelect: true,
|
|
1766
|
-
liveChange: function(oEvent) {
|
|
1778
|
+
liveChange: function (oEvent) {
|
|
1767
1779
|
var loFilter = new sap.ui.model.Filter(
|
|
1768
1780
|
"characteristic/text",
|
|
1769
1781
|
sap.ui.model.FilterOperator.Contains,
|
|
1770
1782
|
oEvent.getParameter("value")
|
|
1771
1783
|
);
|
|
1772
|
-
oEvent.getParameter("itemsBinding").filter([
|
|
1784
|
+
oEvent.getParameter("itemsBinding").filter([getFilterExcludeMandatory(), loFilter]);
|
|
1773
1785
|
},
|
|
1774
|
-
cancel: function() {
|
|
1786
|
+
cancel: function () {
|
|
1775
1787
|
loDialog.destroy();
|
|
1776
1788
|
},
|
|
1777
|
-
confirm: function(oEvent) {
|
|
1789
|
+
confirm: function (oEvent) {
|
|
1778
1790
|
var ltVisiblePrompts = [];
|
|
1779
1791
|
var ltSelectedContexts = oEvent.getParameter("selectedContexts");
|
|
1780
1792
|
for (var i = 0; i < ltSelectedContexts.length; i++) {
|
|
@@ -1783,7 +1795,7 @@ sap.ui.define(
|
|
|
1783
1795
|
continue;
|
|
1784
1796
|
}
|
|
1785
1797
|
var lVarName = loSelectedContext.getProperty("characteristic/name");
|
|
1786
|
-
var lVarTechName = lVarName.substring(lVarName.indexOf(":")+1, lVarName.length);
|
|
1798
|
+
var lVarTechName = lVarName.substring(lVarName.indexOf(":") + 1, lVarName.length);
|
|
1787
1799
|
ltVisiblePrompts.push(lVarTechName);
|
|
1788
1800
|
}
|
|
1789
1801
|
loModel.setProperty("/visibleprompts", ltVisiblePrompts);
|
|
@@ -1801,7 +1813,7 @@ sap.ui.define(
|
|
|
1801
1813
|
function getFilterExcludeMandatory() {
|
|
1802
1814
|
return new sap.ui.model.Filter({
|
|
1803
1815
|
path: "characteristic",
|
|
1804
|
-
test: function(oVar) {
|
|
1816
|
+
test: function (oVar) {
|
|
1805
1817
|
return oVar.mandatory ? false : true;
|
|
1806
1818
|
}
|
|
1807
1819
|
});
|
|
@@ -1809,7 +1821,7 @@ sap.ui.define(
|
|
|
1809
1821
|
function getFilterForVisibleVariables(tVisiblePrompts) {
|
|
1810
1822
|
return new sap.ui.model.Filter({
|
|
1811
1823
|
path: "characteristic",
|
|
1812
|
-
test: function(oVar) {
|
|
1824
|
+
test: function (oVar) {
|
|
1813
1825
|
if (oVar.mandatory) {
|
|
1814
1826
|
return true;
|
|
1815
1827
|
}
|
|
@@ -1833,7 +1845,7 @@ sap.ui.define(
|
|
|
1833
1845
|
}
|
|
1834
1846
|
|
|
1835
1847
|
if (loCharacteristic.name === charName) {
|
|
1836
|
-
return "/characteristics/"+i+"/characteristic";
|
|
1848
|
+
return "/characteristics/" + i + "/characteristic";
|
|
1837
1849
|
}
|
|
1838
1850
|
}
|
|
1839
1851
|
}
|
|
@@ -1869,18 +1881,18 @@ sap.ui.define(
|
|
|
1869
1881
|
}
|
|
1870
1882
|
return true;
|
|
1871
1883
|
}
|
|
1872
|
-
this.isDesignModeD4LIncluded = function(){
|
|
1884
|
+
this.isDesignModeD4LIncluded = function () {
|
|
1873
1885
|
return sap.zen.designmode;
|
|
1874
1886
|
};
|
|
1875
1887
|
function forceModelUpdate(oModel, path) {
|
|
1876
1888
|
var ltBindings = oModel.aBindings.slice(0);
|
|
1877
|
-
jQuery.each(ltBindings, function(index, oBinding) {
|
|
1889
|
+
jQuery.each(ltBindings, function (index, oBinding) {
|
|
1878
1890
|
if (oBinding.sPath === path) {
|
|
1879
1891
|
oBinding.checkUpdate(true);
|
|
1880
1892
|
}
|
|
1881
1893
|
});
|
|
1882
1894
|
}
|
|
1883
|
-
this.getCharacteristicByName = function(oModel, charName) {
|
|
1895
|
+
this.getCharacteristicByName = function (oModel, charName) {
|
|
1884
1896
|
var ltChars = oModel.getProperty("/characteristics");
|
|
1885
1897
|
for (var i = 0; i < ltChars.length; i++) {
|
|
1886
1898
|
var loChar = ltChars[i].characteristic;
|
|
@@ -1893,7 +1905,7 @@ sap.ui.define(
|
|
|
1893
1905
|
}
|
|
1894
1906
|
return null;
|
|
1895
1907
|
};
|
|
1896
|
-
this.getContextMenuAction = function(sContextMenuComponentId, oClickedUI5Component, oDomClickedElement) {
|
|
1908
|
+
this.getContextMenuAction = function (sContextMenuComponentId, oClickedUI5Component, oDomClickedElement) {
|
|
1897
1909
|
var lCommand = oClickedUI5Component.getModel().getProperty("/command/createcontextmenu");
|
|
1898
1910
|
if (lCommand && oClickedUI5Component.ZEN_IdToDimensionMap) {
|
|
1899
1911
|
var loListItem = this.getListItemElement(oDomClickedElement);
|
|
@@ -1911,17 +1923,17 @@ sap.ui.define(
|
|
|
1911
1923
|
}
|
|
1912
1924
|
return null;
|
|
1913
1925
|
};
|
|
1914
|
-
this.getListItemElement = function(oDom) {
|
|
1926
|
+
this.getListItemElement = function (oDom) {
|
|
1915
1927
|
if (oDom.hasClass("sapzenfilterpanelM-ListItem")) {
|
|
1916
1928
|
return oDom;
|
|
1917
1929
|
} else {
|
|
1918
1930
|
return oDom.parents(".sapzenfilterpanelM-ListItem");
|
|
1919
1931
|
}
|
|
1920
1932
|
};
|
|
1921
|
-
this.getType = function() {
|
|
1933
|
+
this.getType = function () {
|
|
1922
1934
|
return "filter";
|
|
1923
1935
|
};
|
|
1924
|
-
this.getDecorator = function() {
|
|
1936
|
+
this.getDecorator = function () {
|
|
1925
1937
|
return "DataSourceControlDecorator";
|
|
1926
1938
|
};
|
|
1927
1939
|
};
|
|
@@ -171,7 +171,7 @@ sap.ui.define(
|
|
|
171
171
|
};
|
|
172
172
|
this.oAppState.setData(loAppStateData);
|
|
173
173
|
this.oAppState.save();
|
|
174
|
-
|
|
174
|
+
|
|
175
175
|
/**
|
|
176
176
|
* - oShellService.hashChanger.replaceHash("sap-iapp-state=" + this.oAppState.getKey());
|
|
177
177
|
* No History is written
|
|
@@ -186,9 +186,8 @@ sap.ui.define(
|
|
|
186
186
|
* Refresh is triggered on initial load <<< ERROR
|
|
187
187
|
* Back Button: goes to the initial Caller
|
|
188
188
|
*/
|
|
189
|
-
loShellNav.toAppHash("sap-iapp-state=" + this.oAppState.getKey(), false);
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
loShellNav.hashChanger.toAppHash("sap-iapp-state=" + this.oAppState.getKey(), false);
|
|
190
|
+
|
|
192
191
|
//On new state creation, the app hash would change so we need to capture this.
|
|
193
192
|
this.setShellUrl();
|
|
194
193
|
}.bind(this)
|
|
@@ -404,7 +403,7 @@ sap.ui.define(
|
|
|
404
403
|
if (!oControlProperties.navigation) {
|
|
405
404
|
return;
|
|
406
405
|
}
|
|
407
|
-
|
|
406
|
+
|
|
408
407
|
var lJumpTarget = oControlProperties.navigation.jumpTarget;
|
|
409
408
|
var loCrossAppNav = getCrossAppNav();
|
|
410
409
|
if (loCrossAppNav && lJumpTarget && lJumpTarget.length > 0) {
|