@sapui5/sap.zen.dsh 1.140.0 → 1.142.0
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/.eslintrc.json +1 -1
- package/src/sap/zen/dsh/.library +1 -1
- package/src/sap/zen/dsh/firefly/ff8310.zen.buddha.js +24 -13
- package/src/sap/zen/dsh/i18n/dsb/localization_da.properties +1 -1
- package/src/sap/zen/dsh/library.js +2 -2
- package/src/sap/zen/dsh/widgets/ValueHelpDialog.js +407 -411
|
@@ -41,7 +41,7 @@ sap.ui.define(
|
|
|
41
41
|
"sap/ui/model/odata/type/Boolean",
|
|
42
42
|
"sap/ui/table/Table"
|
|
43
43
|
],
|
|
44
|
-
function(
|
|
44
|
+
function (
|
|
45
45
|
jQuery, _, HorizontalLayout, OverflowToolbarLayoutData, Grid, Dialog, Panel, List, StandardListItem,
|
|
46
46
|
VBox, HBox, Token, FlexItemData, IconTabBar, IconTabFilter,
|
|
47
47
|
IconPool, Link, Button, Text, Title, Bar, InvisibleText, Tokenizer, ValueHelpRangeOperation,
|
|
@@ -64,9 +64,9 @@ sap.ui.define(
|
|
|
64
64
|
"sap.zen.dsh.ValueHelpDialog",
|
|
65
65
|
/** @lends sap.zen.dsh.ValueHelpDialog.prototype */
|
|
66
66
|
{
|
|
67
|
-
metadata
|
|
67
|
+
metadata: {
|
|
68
68
|
//library : "sap.ui.comp",
|
|
69
|
-
properties
|
|
69
|
+
properties: {
|
|
70
70
|
/**
|
|
71
71
|
* Defines the value for the basic search field. The value is set into the basic search field of the filter bar used.
|
|
72
72
|
*
|
|
@@ -201,7 +201,7 @@ sap.ui.define(
|
|
|
201
201
|
defaultValue: false
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
|
-
aggregations
|
|
204
|
+
aggregations: {
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* Allows you to add a {@link sap.ui.comp.filterbar.FilterBar FilterBar} or
|
|
@@ -212,14 +212,14 @@ sap.ui.define(
|
|
|
212
212
|
multiple: false
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
|
-
events
|
|
215
|
+
events: {
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
218
|
* This event is fired when the OK button is pressed.
|
|
219
219
|
*
|
|
220
220
|
* @since 1.24
|
|
221
221
|
*/
|
|
222
|
-
ok
|
|
222
|
+
ok: {
|
|
223
223
|
parameters: {
|
|
224
224
|
/**
|
|
225
225
|
* The array of tokens created or modified on the ValueHelpDialog.
|
|
@@ -235,7 +235,7 @@ sap.ui.define(
|
|
|
235
235
|
*
|
|
236
236
|
* @since 1.24
|
|
237
237
|
*/
|
|
238
|
-
cancel
|
|
238
|
+
cancel: {},
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* This event is fired when the user selects an item in the items table.
|
|
@@ -245,7 +245,7 @@ sap.ui.define(
|
|
|
245
245
|
*
|
|
246
246
|
* @since 1.32
|
|
247
247
|
*/
|
|
248
|
-
selectionChange
|
|
248
|
+
selectionChange: {
|
|
249
249
|
parameters: {
|
|
250
250
|
/**
|
|
251
251
|
* The RowSelectionChange event parameter from the hosted table that contains the selected items.
|
|
@@ -344,7 +344,7 @@ sap.ui.define(
|
|
|
344
344
|
* @public
|
|
345
345
|
* @since 1.24
|
|
346
346
|
*/
|
|
347
|
-
ValueHelpDialog.prototype.update = function(tMessages) {
|
|
347
|
+
ValueHelpDialog.prototype.update = function (tMessages) {
|
|
348
348
|
this._bIgnoreSelectionChange = true;
|
|
349
349
|
|
|
350
350
|
var ltSelectedItems = this._oSelectedItems.getItems();
|
|
@@ -381,7 +381,7 @@ sap.ui.define(
|
|
|
381
381
|
|
|
382
382
|
var lIsRow = lRowKey === lKey;
|
|
383
383
|
if (lIsRow || // either the rowKey is equal the token key or we search if the main key with the value is part of the rowKey
|
|
384
|
-
|
|
384
|
+
lRowKey.indexOf(lRowKeyPart) >= 0) {
|
|
385
385
|
|
|
386
386
|
if (!lIsRow) { // in this case we will update the old key and use the longKey from the rows
|
|
387
387
|
this._oSelectedItems.remove(lKey); // remove the old key
|
|
@@ -435,7 +435,7 @@ sap.ui.define(
|
|
|
435
435
|
var loTable = this._oTable;
|
|
436
436
|
for (i = 0; i < ltSelectedItems.length; i++) {
|
|
437
437
|
lKey = ltSelectedItems[i];
|
|
438
|
-
for (
|
|
438
|
+
for (j = 0; j < loTable.getItems().length; j++) {
|
|
439
439
|
var loColListItem = loTable.getItems()[j];
|
|
440
440
|
if (!loColListItem) {
|
|
441
441
|
continue;
|
|
@@ -462,7 +462,7 @@ sap.ui.define(
|
|
|
462
462
|
/**
|
|
463
463
|
* Initialize (Create, Update)
|
|
464
464
|
*/
|
|
465
|
-
ValueHelpDialog.prototype.init = function() {
|
|
465
|
+
ValueHelpDialog.prototype.init = function () {
|
|
466
466
|
Dialog.prototype.init.apply(this);
|
|
467
467
|
|
|
468
468
|
this._bTableCreatedInternal = false;
|
|
@@ -536,7 +536,7 @@ sap.ui.define(
|
|
|
536
536
|
|
|
537
537
|
// to support touch scrolling we have to set the event to marked, otherwise when using a sap.m.App touch events are not handled.
|
|
538
538
|
if (!sap.ui.Device.system.desktop) {
|
|
539
|
-
this._oVBox.attachBrowserEvent("touchmove", function(oEvent) {
|
|
539
|
+
this._oVBox.attachBrowserEvent("touchmove", function (oEvent) {
|
|
540
540
|
oEvent.setMarked();
|
|
541
541
|
});
|
|
542
542
|
}
|
|
@@ -552,7 +552,7 @@ sap.ui.define(
|
|
|
552
552
|
*
|
|
553
553
|
* @private
|
|
554
554
|
*/
|
|
555
|
-
ValueHelpDialog.prototype._createHeaderBar = function() {
|
|
555
|
+
ValueHelpDialog.prototype._createHeaderBar = function () {
|
|
556
556
|
this._oTitle = new Title();
|
|
557
557
|
|
|
558
558
|
var loBackButton = null;
|
|
@@ -560,7 +560,7 @@ sap.ui.define(
|
|
|
560
560
|
loBackButton = new Button({
|
|
561
561
|
visible: false,
|
|
562
562
|
type: sap.m.ButtonType.Back,
|
|
563
|
-
press: function() {
|
|
563
|
+
press: function () {
|
|
564
564
|
if (this._currentViewMode === sap.zen._ValueHelpViewMode.PHONE_SEARCH_VIEW) {
|
|
565
565
|
this._updateView(sap.zen._ValueHelpViewMode.PHONE_LIST_VIEW);
|
|
566
566
|
} else {
|
|
@@ -584,7 +584,7 @@ sap.ui.define(
|
|
|
584
584
|
*
|
|
585
585
|
* @private
|
|
586
586
|
*/
|
|
587
|
-
ValueHelpDialog.prototype._createCollectiveSearch = function() {
|
|
587
|
+
ValueHelpDialog.prototype._createCollectiveSearch = function () {
|
|
588
588
|
// the oSelectionText and oSelectionButton are accessed outside the dialog!!!
|
|
589
589
|
this.oSelectionTitle = new Text(
|
|
590
590
|
{
|
|
@@ -612,13 +612,13 @@ sap.ui.define(
|
|
|
612
612
|
).addStyleClass("compVHColSearchVBox");
|
|
613
613
|
};
|
|
614
614
|
|
|
615
|
-
ValueHelpDialog.prototype._createTokenizer = function() {
|
|
615
|
+
ValueHelpDialog.prototype._createTokenizer = function () {
|
|
616
616
|
if (this._oTokenizerGrid) {
|
|
617
617
|
return this._oTokenizerGrid;
|
|
618
618
|
}
|
|
619
619
|
this._oSelectedTokenTitle = new InvisibleText();
|
|
620
620
|
this._oSelectedTokens = new Tokenizer({
|
|
621
|
-
tokenUpdate: function(oControlEvent) {
|
|
621
|
+
tokenUpdate: function (oControlEvent) {
|
|
622
622
|
if (this._ignoreRemoveToken) {
|
|
623
623
|
return;
|
|
624
624
|
}
|
|
@@ -664,14 +664,14 @@ sap.ui.define(
|
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
if (loEventArgs.useDefault) {
|
|
667
|
-
ltTokenKeys.forEach(function(tokenKey) {
|
|
667
|
+
ltTokenKeys.forEach(function (tokenKey) {
|
|
668
668
|
this._changeTableRowSelectionForKey(tokenKey, false);
|
|
669
669
|
}.bind(this));
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
// try to set the focus to other token - Workaround because the Tokenizer does not set the focus to other token
|
|
673
673
|
if (ltRemovedTokens.length === 1) {
|
|
674
|
-
setTimeout(function() {
|
|
674
|
+
setTimeout(function () {
|
|
675
675
|
if (this._oSelectedTokens.getTokens()) {
|
|
676
676
|
var i = this._oSelectedTokens.getTokens().length - 1;
|
|
677
677
|
if (i >= 0) {
|
|
@@ -693,7 +693,7 @@ sap.ui.define(
|
|
|
693
693
|
type: sap.m.ButtonType.Transparent,
|
|
694
694
|
icon: IconPool.getIconURI("sys-cancel"),
|
|
695
695
|
tooltip: this._oRb.getText("VALUEHELPVALDLG_REMOVETOKENS_TOOLTIP"),
|
|
696
|
-
press: function() {
|
|
696
|
+
press: function () {
|
|
697
697
|
this._oSelectedTokens.destroyTokens();
|
|
698
698
|
this._removeRangeByKey(Object.keys(this._oSelectedRanges), false);
|
|
699
699
|
this._oSelectedItems.removeAll();
|
|
@@ -728,7 +728,7 @@ sap.ui.define(
|
|
|
728
728
|
this._oExcludedTokenTitle = new Text().addStyleClass("compVHSelectedItemsText");
|
|
729
729
|
this._oExcludedTokens = new Tokenizer(
|
|
730
730
|
{
|
|
731
|
-
tokenChange: function(oControlEvent) {
|
|
731
|
+
tokenChange: function (oControlEvent) {
|
|
732
732
|
if (this._ignoreRemoveToken) {
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
@@ -761,9 +761,9 @@ sap.ui.define(
|
|
|
761
761
|
type: sap.m.ButtonType.Transparent,
|
|
762
762
|
icon: sap.ui.core.IconPool.getIconURI("sys-cancel"),
|
|
763
763
|
tooltip: this._oRb.getText("VALUEHELPVALDLG_REMOVETOKENS_TOOLTIP"),
|
|
764
|
-
press: function() {
|
|
764
|
+
press: function () {
|
|
765
765
|
this._oExcludedTokens.destroyTokens();
|
|
766
|
-
this._removeRangeByKey(Object.keys(
|
|
766
|
+
this._removeRangeByKey(Object.keys(this._oSelectedRanges), true);
|
|
767
767
|
this._updateTitles();
|
|
768
768
|
}.bind(this),
|
|
769
769
|
ariaLabelledBy: this._oExcludedTokenTitle
|
|
@@ -792,7 +792,7 @@ sap.ui.define(
|
|
|
792
792
|
headerText: "",
|
|
793
793
|
width: "auto",
|
|
794
794
|
content: [this._oIncludeTokenGrid, this._oExcludeTokenGrid],
|
|
795
|
-
expand: function(oEvent) {
|
|
795
|
+
expand: function (oEvent) {
|
|
796
796
|
this._updateTokenizer();
|
|
797
797
|
if (oEvent.mParameters.expand && !(this._oTable instanceof sap.m.Table)) {
|
|
798
798
|
// when we open the tokens scroll the dialog content to the end
|
|
@@ -830,7 +830,7 @@ sap.ui.define(
|
|
|
830
830
|
*
|
|
831
831
|
* @private
|
|
832
832
|
*/
|
|
833
|
-
ValueHelpDialog.prototype._createNavigationControl = function() {
|
|
833
|
+
ValueHelpDialog.prototype._createNavigationControl = function () {
|
|
834
834
|
if (!this._isPhone()) {
|
|
835
835
|
this._oTabBar = new IconTabBar(
|
|
836
836
|
{
|
|
@@ -850,7 +850,7 @@ sap.ui.define(
|
|
|
850
850
|
}
|
|
851
851
|
)
|
|
852
852
|
],
|
|
853
|
-
select: function(oControlEvent) {
|
|
853
|
+
select: function (oControlEvent) {
|
|
854
854
|
this._updateView(oControlEvent.getParameters().key);
|
|
855
855
|
}.bind(this)
|
|
856
856
|
}
|
|
@@ -887,7 +887,7 @@ sap.ui.define(
|
|
|
887
887
|
items: [
|
|
888
888
|
this._oSelectItemLI, this._oDefineConditionsLI
|
|
889
889
|
],
|
|
890
|
-
itemPress: function(oEvent) {
|
|
890
|
+
itemPress: function (oEvent) {
|
|
891
891
|
if (oEvent) {
|
|
892
892
|
this._updateView(oEvent.mParameters.listItem.data("key"));
|
|
893
893
|
}
|
|
@@ -905,7 +905,7 @@ sap.ui.define(
|
|
|
905
905
|
this._oAdvancedSearchLink = new Link(
|
|
906
906
|
{
|
|
907
907
|
text: this._oRb.getText("VALUEHELPDLG_ADVANCEDSEARCH"),
|
|
908
|
-
press: function() {
|
|
908
|
+
press: function () {
|
|
909
909
|
this._updateView(sap.zen._ValueHelpViewMode.PHONE_SEARCH_VIEW);
|
|
910
910
|
}.bind(this)
|
|
911
911
|
}
|
|
@@ -921,7 +921,7 @@ sap.ui.define(
|
|
|
921
921
|
}
|
|
922
922
|
};
|
|
923
923
|
|
|
924
|
-
ValueHelpDialog.prototype._createFooterControls = function() {
|
|
924
|
+
ValueHelpDialog.prototype._createFooterControls = function () {
|
|
925
925
|
var loMessageView = this._getMessageView();
|
|
926
926
|
var loMsgBtn = loMessageView.getMessageButton();
|
|
927
927
|
this.addButton(loMsgBtn);
|
|
@@ -979,7 +979,7 @@ sap.ui.define(
|
|
|
979
979
|
/**
|
|
980
980
|
* Get Message View: create if necessary
|
|
981
981
|
*/
|
|
982
|
-
ValueHelpDialog.prototype._getMessageView = function() {
|
|
982
|
+
ValueHelpDialog.prototype._getMessageView = function () {
|
|
983
983
|
if (!this._oMessageView) {
|
|
984
984
|
var lId = this.getId() + "_MessageView";
|
|
985
985
|
this._oMessageView = new sap.zen.MessageViewHandler.MessageView(lId, null, null, null);
|
|
@@ -990,7 +990,7 @@ sap.ui.define(
|
|
|
990
990
|
/**
|
|
991
991
|
* Update Message View: apply Messages
|
|
992
992
|
*/
|
|
993
|
-
ValueHelpDialog.prototype._updateMessageView = function(tMessages) {
|
|
993
|
+
ValueHelpDialog.prototype._updateMessageView = function (tMessages) {
|
|
994
994
|
var loMessageView = this._getMessageView();
|
|
995
995
|
if (loMessageView) {
|
|
996
996
|
loMessageView.init(tMessages);
|
|
@@ -1003,165 +1003,165 @@ sap.ui.define(
|
|
|
1003
1003
|
* @private
|
|
1004
1004
|
* @param {sap.zen.valuehelpdialog._ValueHelpViewMode} newViewMode View mode which should be shown
|
|
1005
1005
|
*/
|
|
1006
|
-
ValueHelpDialog.prototype._updateView = function(newViewMode) {
|
|
1006
|
+
ValueHelpDialog.prototype._updateView = function (newViewMode) {
|
|
1007
1007
|
if (this._currentViewMode === newViewMode) {
|
|
1008
1008
|
return;
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
1011
|
switch (newViewMode) {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1012
|
+
case sap.zen._ValueHelpViewMode.DESKTOP_LIST_VIEW:
|
|
1013
|
+
this._validateRanges(function () {
|
|
1014
|
+
// when valid show the Items Table
|
|
1015
|
+
this._oTokenizerGrid.setVisible(this.getSupportMultiselect());
|
|
1016
|
+
this._oMainLayout.removeAllItems();
|
|
1017
|
+
if (this._oTabBar && this._oTabBar.getSelectedKey() !== sap.zen._ValueHelpViewMode.DESKTOP_LIST_VIEW) {
|
|
1018
|
+
this._oTabBar.setSelectedKey(sap.zen._ValueHelpViewMode.DESKTOP_LIST_VIEW);
|
|
1019
|
+
}
|
|
1020
|
+
this._oMainLayout.addItem(this._oFilterBar);
|
|
1021
|
+
this._oMainLayout.addItem(this._oTable);
|
|
1022
|
+
this._updateDlgTitle();
|
|
1023
|
+
}.bind(this), function () {
|
|
1024
|
+
// if not valid go back to the Ranges Tab
|
|
1025
|
+
this._oTabBar.setSelectedKey(sap.zen._ValueHelpViewMode.DESKTOP_CONDITIONS_VIEW);
|
|
1026
|
+
this._updateView(sap.zen._ValueHelpViewMode.DESKTOP_CONDITIONS_VIEW);
|
|
1027
|
+
}.bind(this));
|
|
1028
|
+
break;
|
|
1029
|
+
|
|
1030
|
+
case sap.zen._ValueHelpViewMode.DESKTOP_CONDITIONS_VIEW:
|
|
1031
|
+
if (this.getSupportRanges()) {
|
|
1032
|
+
this.bCollectiveSearchActive = this.oSelectionTitle.getVisible() && this.oSelectionButton.getVisible();
|
|
1033
|
+
this._oMainLayout.removeAllItems();
|
|
1034
|
+
if (this._oTabBar && this._oTabBar.getSelectedKey() !== sap.zen._ValueHelpViewMode.DESKTOP_CONDITIONS_VIEW) {
|
|
1035
|
+
this._oTabBar.setSelectedKey(sap.zen._ValueHelpViewMode.DESKTOP_CONDITIONS_VIEW);
|
|
1036
|
+
}
|
|
1037
|
+
this._oMainLayout.addItem(this._getRanges());
|
|
1038
|
+
//ZEN this._oButtonOk.setVisible(this.getSupportRangesOnly() || this.getSupportMultiselect());
|
|
1039
|
+
|
|
1040
|
+
this._oTokenizerGrid.setVisible(this.getSupportMultiselect());
|
|
1041
|
+
if (!(this.getMaxIncludeRanges() === "-1" && this.getMaxExcludeRanges() !== "0" && !this.getFilterMode())) {
|
|
1042
|
+
this._oTokenizerGrid.setVisible(false);
|
|
1043
|
+
}
|
|
1019
1044
|
}
|
|
1020
|
-
|
|
1021
|
-
this._oMainLayout.addItem(this._oTable);
|
|
1022
|
-
this._updateDlgTitle();
|
|
1023
|
-
}.bind(this), function() {
|
|
1024
|
-
// if not valid go back to the Ranges Tab
|
|
1025
|
-
this._oTabBar.setSelectedKey(sap.zen._ValueHelpViewMode.DESKTOP_CONDITIONS_VIEW);
|
|
1026
|
-
this._updateView(sap.zen._ValueHelpViewMode.DESKTOP_CONDITIONS_VIEW);
|
|
1027
|
-
}.bind(this));
|
|
1028
|
-
break;
|
|
1045
|
+
break;
|
|
1029
1046
|
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
this.
|
|
1034
|
-
|
|
1035
|
-
|
|
1047
|
+
case sap.zen._ValueHelpViewMode.PHONE_MAIN_VIEW:
|
|
1048
|
+
this.setVerticalScrolling(false);
|
|
1049
|
+
|
|
1050
|
+
this._oColSearchBox.setVisible(false);
|
|
1051
|
+
this._oMainListMenu.setVisible(true);
|
|
1052
|
+
this._updateNavigationControl();
|
|
1053
|
+
this._oAdvancedSearchLink.setVisible(false);
|
|
1054
|
+
if (this._oFilterBar && this._oFilterBar.setFilterBarExpanded) { //ZEN
|
|
1055
|
+
this._oFilterBar.setVisible(false); this._oFilterBar.setFilterBarExpanded(false);
|
|
1036
1056
|
}
|
|
1037
|
-
this.
|
|
1038
|
-
//ZEN this._oButtonOk.setVisible(this.getSupportRangesOnly() || this.getSupportMultiselect());
|
|
1057
|
+
this._oTable.setVisible(false);
|
|
1039
1058
|
|
|
1040
1059
|
this._oTokenizerGrid.setVisible(this.getSupportMultiselect());
|
|
1041
1060
|
if (!(this.getMaxIncludeRanges() === "-1" && this.getMaxExcludeRanges() !== "0" && !this.getFilterMode())) {
|
|
1042
1061
|
this._oTokenizerGrid.setVisible(false);
|
|
1043
1062
|
}
|
|
1044
|
-
}
|
|
1045
|
-
break;
|
|
1046
|
-
|
|
1047
|
-
case sap.zen._ValueHelpViewMode.PHONE_MAIN_VIEW:
|
|
1048
|
-
this.setVerticalScrolling(false);
|
|
1049
1063
|
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
this._oAdvancedSearchLink.setVisible(false);
|
|
1054
|
-
if (this._oFilterBar && this._oFilterBar.setFilterBarExpanded) { //ZEN
|
|
1055
|
-
this._oFilterBar.setVisible(false); this._oFilterBar.setFilterBarExpanded(false);
|
|
1056
|
-
}
|
|
1057
|
-
this._oTable.setVisible(false);
|
|
1058
|
-
|
|
1059
|
-
this._oTokenizerGrid.setVisible(this.getSupportMultiselect());
|
|
1060
|
-
if (!(this.getMaxIncludeRanges() === "-1" && this.getMaxExcludeRanges() !== "0" && !this.getFilterMode())) {
|
|
1061
|
-
this._oTokenizerGrid.setVisible(false);
|
|
1062
|
-
}
|
|
1064
|
+
if (this._oRanges) {
|
|
1065
|
+
this._oRanges.setVisible(false);
|
|
1066
|
+
}
|
|
1063
1067
|
|
|
1064
|
-
|
|
1065
|
-
this.
|
|
1066
|
-
|
|
1068
|
+
this._oButtonGo.setVisible(false);
|
|
1069
|
+
this._oButtonClear.setVisible(false);
|
|
1070
|
+
this._oButtonOk.setVisible(true);
|
|
1071
|
+
this._oButtonCancel.setVisible(true);
|
|
1072
|
+
this._oBackButton.setVisible(false);
|
|
1073
|
+
|
|
1074
|
+
this._bNoneMainView = false;
|
|
1075
|
+
// if we do not show the Tokenizer (Selected/Excluded Items and only have either a List or the Condition part as ListItem we directly
|
|
1076
|
+
// open the List or Condition view in the dialog
|
|
1077
|
+
if (!this._oTokenizerGrid.getVisible() && !(this._oSelectItemLI.getVisible() && this._oDefineConditionsLI.getVisible())) {
|
|
1078
|
+
this._bNoneMainView = true; // used to not show the backbutton on the list and condition view
|
|
1079
|
+
if (this._oSelectItemLI.getVisible()) {
|
|
1080
|
+
// make the Selection Table visible by default
|
|
1081
|
+
this._updateView(sap.zen._ValueHelpViewMode.PHONE_LIST_VIEW);
|
|
1082
|
+
}
|
|
1083
|
+
if (this._oDefineConditionsLI.getVisible()) {
|
|
1084
|
+
// make the condition screen visible by default
|
|
1085
|
+
this._updateView(sap.zen._ValueHelpViewMode.PHONE_CONDITIONS_VIEW);
|
|
1086
|
+
}
|
|
1087
|
+
return;
|
|
1088
|
+
}
|
|
1067
1089
|
|
|
1068
|
-
|
|
1069
|
-
this._oButtonClear.setVisible(false);
|
|
1070
|
-
this._oButtonOk.setVisible(true);
|
|
1071
|
-
this._oButtonCancel.setVisible(true);
|
|
1072
|
-
this._oBackButton.setVisible(false);
|
|
1090
|
+
break;
|
|
1073
1091
|
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
this.
|
|
1079
|
-
if (this.
|
|
1080
|
-
|
|
1081
|
-
this.
|
|
1092
|
+
case sap.zen._ValueHelpViewMode.PHONE_LIST_VIEW:
|
|
1093
|
+
this.setVerticalScrolling(true);
|
|
1094
|
+
|
|
1095
|
+
this._oColSearchBox.setVisible(this.bCollectiveSearchActive);
|
|
1096
|
+
this._oMainListMenu.setVisible(false);
|
|
1097
|
+
if (this._oFilterBar && this._oFilterBar.getFilterGroupItems) { //ZEN
|
|
1098
|
+
var bShowAdvancedSearch = this._oFilterBar && this._oFilterBar.getFilterGroupItems() && this._oFilterBar.getFilterGroupItems().length > 0;
|
|
1099
|
+
this._oAdvancedSearchLink.setVisible(bShowAdvancedSearch);
|
|
1100
|
+
this._oFilterBar.setShowGoButton(!(this._oFilterBar && this._oFilterBar.getBasicSearch()));
|
|
1101
|
+
this._oFilterBar.setVisible(true);
|
|
1102
|
+
this._oFilterBar.setFilterBarExpanded(false);
|
|
1082
1103
|
}
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1104
|
+
this._oTable.setVisible(true);
|
|
1105
|
+
this._oTokenizerGrid.setVisible(false);
|
|
1106
|
+
if (this._oRanges) {
|
|
1107
|
+
this._oRanges.setVisible(false);
|
|
1086
1108
|
}
|
|
1087
|
-
return;
|
|
1088
|
-
}
|
|
1089
1109
|
|
|
1090
|
-
|
|
1110
|
+
this._oButtonGo.setVisible(false);
|
|
1111
|
+
this._oButtonClear.setVisible(false);
|
|
1112
|
+
//ZEN this._oButtonOk.setVisible(this.getSupportMultiselect());
|
|
1113
|
+
this._oButtonCancel.setVisible(true);
|
|
1114
|
+
this._oBackButton.setVisible(!this._bNoneMainView);
|
|
1115
|
+
break;
|
|
1091
1116
|
|
|
1092
|
-
|
|
1093
|
-
|
|
1117
|
+
case sap.zen._ValueHelpViewMode.PHONE_SEARCH_VIEW:
|
|
1118
|
+
this.setVerticalScrolling(true);
|
|
1094
1119
|
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
this.
|
|
1102
|
-
this.
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
this._oRanges.setVisible(false);
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
this._oButtonGo.setVisible(false);
|
|
1111
|
-
this._oButtonClear.setVisible(false);
|
|
1112
|
-
//ZEN this._oButtonOk.setVisible(this.getSupportMultiselect());
|
|
1113
|
-
this._oButtonCancel.setVisible(true);
|
|
1114
|
-
this._oBackButton.setVisible(!this._bNoneMainView);
|
|
1115
|
-
break;
|
|
1116
|
-
|
|
1117
|
-
case sap.zen._ValueHelpViewMode.PHONE_SEARCH_VIEW:
|
|
1118
|
-
this.setVerticalScrolling(true);
|
|
1119
|
-
|
|
1120
|
-
this._oColSearchBox.setVisible(false);
|
|
1121
|
-
this._oMainListMenu.setVisible(false);
|
|
1122
|
-
if (this._oFilterBar) {
|
|
1123
|
-
this._oFilterBar.setVisible(true);
|
|
1124
|
-
this._oFilterBar.setFilterBarExpanded(true);
|
|
1125
|
-
}
|
|
1126
|
-
this._oAdvancedSearchLink.setVisible(false);
|
|
1127
|
-
this._oTable.setVisible(false);
|
|
1128
|
-
this._oTokenizerGrid.setVisible(false);
|
|
1129
|
-
if (this._oRanges) {
|
|
1130
|
-
this._oRanges.setVisible(false);
|
|
1131
|
-
}
|
|
1120
|
+
this._oColSearchBox.setVisible(false);
|
|
1121
|
+
this._oMainListMenu.setVisible(false);
|
|
1122
|
+
if (this._oFilterBar) {
|
|
1123
|
+
this._oFilterBar.setVisible(true);
|
|
1124
|
+
this._oFilterBar.setFilterBarExpanded(true);
|
|
1125
|
+
}
|
|
1126
|
+
this._oAdvancedSearchLink.setVisible(false);
|
|
1127
|
+
this._oTable.setVisible(false);
|
|
1128
|
+
this._oTokenizerGrid.setVisible(false);
|
|
1129
|
+
if (this._oRanges) {
|
|
1130
|
+
this._oRanges.setVisible(false);
|
|
1131
|
+
}
|
|
1132
1132
|
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1133
|
+
this._oButtonGo.setVisible(true);
|
|
1134
|
+
this._oButtonClear.setVisible(true);
|
|
1135
|
+
this._oButtonOk.setVisible(false);
|
|
1136
|
+
this._oButtonCancel.setVisible(true);
|
|
1137
|
+
this._oBackButton.setVisible(true);
|
|
1138
|
+
break;
|
|
1139
1139
|
|
|
1140
|
-
|
|
1141
|
-
|
|
1140
|
+
case sap.zen._ValueHelpViewMode.PHONE_CONDITIONS_VIEW:
|
|
1141
|
+
this.setVerticalScrolling(true);
|
|
1142
1142
|
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1143
|
+
this._oColSearchBox.setVisible(false);
|
|
1144
|
+
this._oMainListMenu.setVisible(false);
|
|
1145
|
+
if (this._oFilterBar) {
|
|
1146
|
+
this._oFilterBar.setVisible(false);
|
|
1147
|
+
}
|
|
1148
|
+
this._oAdvancedSearchLink.setVisible(false);
|
|
1149
|
+
this._oTable.setVisible(false);
|
|
1150
|
+
this._oTokenizerGrid.setVisible(false);
|
|
1151
|
+
if (!this._oRanges) {
|
|
1152
|
+
this._oMainLayout.addItem(this._getRanges());
|
|
1153
|
+
}
|
|
1154
|
+
this._oRanges.setVisible(true);
|
|
1155
1155
|
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1156
|
+
this._oButtonGo.setVisible(false);
|
|
1157
|
+
this._oButtonClear.setVisible(false);
|
|
1158
|
+
this._oButtonOk.setVisible(true);
|
|
1159
|
+
this._oButtonCancel.setVisible(true);
|
|
1160
|
+
this._oBackButton.setVisible(!this._bNoneMainView);
|
|
1161
|
+
break;
|
|
1162
1162
|
|
|
1163
|
-
|
|
1164
|
-
|
|
1163
|
+
default:
|
|
1164
|
+
break;
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
1167
|
if (this._oMainListMenu && this._oVBox) {
|
|
@@ -1189,7 +1189,7 @@ sap.ui.define(
|
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Update Property SupportMultiselect
|
|
1191
1191
|
*/
|
|
1192
|
-
ValueHelpDialog.prototype._updatePropertySupportMultiselect = function(enabled) {
|
|
1192
|
+
ValueHelpDialog.prototype._updatePropertySupportMultiselect = function (enabled) {
|
|
1193
1193
|
if (!this._oTable) {
|
|
1194
1194
|
return undefined;
|
|
1195
1195
|
}
|
|
@@ -1212,7 +1212,7 @@ sap.ui.define(
|
|
|
1212
1212
|
* @private
|
|
1213
1213
|
* @since 1.40
|
|
1214
1214
|
*/
|
|
1215
|
-
ValueHelpDialog.prototype._updateNoDataText = function(sNoDataText) {
|
|
1215
|
+
ValueHelpDialog.prototype._updateNoDataText = function (sNoDataText) {
|
|
1216
1216
|
if (this._oTable) {
|
|
1217
1217
|
if (this._oTable.setNoDataText) {
|
|
1218
1218
|
this._oTable.setNoDataText(sNoDataText);
|
|
@@ -1227,7 +1227,7 @@ sap.ui.define(
|
|
|
1227
1227
|
*
|
|
1228
1228
|
* @private
|
|
1229
1229
|
*/
|
|
1230
|
-
ValueHelpDialog.prototype._updateTitles = function() {
|
|
1230
|
+
ValueHelpDialog.prototype._updateTitles = function () {
|
|
1231
1231
|
this._updateTableTitle();
|
|
1232
1232
|
this._updateTokenizer();
|
|
1233
1233
|
};
|
|
@@ -1237,7 +1237,7 @@ sap.ui.define(
|
|
|
1237
1237
|
*
|
|
1238
1238
|
* @private
|
|
1239
1239
|
*/
|
|
1240
|
-
ValueHelpDialog.prototype._updateDlgTitle = function() {
|
|
1240
|
+
ValueHelpDialog.prototype._updateDlgTitle = function () {
|
|
1241
1241
|
var lMsgKey = "";
|
|
1242
1242
|
if (this._oTitle) {
|
|
1243
1243
|
if (this._oTabBar && !this._oTabBar.getVisible() && !this.getFilterMode()) {
|
|
@@ -1256,29 +1256,29 @@ sap.ui.define(
|
|
|
1256
1256
|
} else if (this._isPhone() && !this.getFilterMode()) {
|
|
1257
1257
|
// on a phone we show the title which depends on the current viewmode
|
|
1258
1258
|
switch (this._currentViewMode) {
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1259
|
+
case sap.zen._ValueHelpViewMode.PHONE_MAIN_VIEW:
|
|
1260
|
+
lMsgKey = "";
|
|
1261
|
+
break;
|
|
1262
1262
|
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1263
|
+
case sap.zen._ValueHelpViewMode.PHONE_LIST_VIEW:
|
|
1264
|
+
lMsgKey = "VALUEHELPDLG_ITEMSTABLE";
|
|
1265
|
+
break;
|
|
1266
1266
|
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1267
|
+
case sap.zen._ValueHelpViewMode.PHONE_SEARCH_VIEW:
|
|
1268
|
+
lMsgKey = "VALUEHELPDLG_ADVANCEDSEARCH";
|
|
1269
|
+
break;
|
|
1270
1270
|
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1271
|
+
case sap.zen._ValueHelpViewMode.PHONE_CONDITIONS_VIEW:
|
|
1272
|
+
if (this.getMaxIncludeRanges() === "1" && this.getMaxExcludeRanges() === "0") {
|
|
1273
|
+
lMsgKey = "VALUEHELPDLG_SINGLECONDITION_TITLE";
|
|
1274
|
+
} else {
|
|
1275
|
+
lMsgKey = "VALUEHELPDLG_RANGESTITLE";
|
|
1276
|
+
lMsg = "";
|
|
1277
|
+
}
|
|
1278
|
+
break;
|
|
1279
1279
|
|
|
1280
|
-
|
|
1281
|
-
|
|
1280
|
+
default:
|
|
1281
|
+
break;
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
1284
|
|
|
@@ -1287,11 +1287,11 @@ sap.ui.define(
|
|
|
1287
1287
|
lMsg = this.getTitle();
|
|
1288
1288
|
}
|
|
1289
1289
|
|
|
1290
|
-
if (lMsgKey)
|
|
1290
|
+
if (lMsgKey) {
|
|
1291
1291
|
lMsg = this._oRb.getText(lMsgKey, [lMsg]);
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
-
if (lMsg)
|
|
1294
|
+
if (lMsg) {
|
|
1295
1295
|
this._oTitle.setText(lMsg);
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
@@ -1302,7 +1302,7 @@ sap.ui.define(
|
|
|
1302
1302
|
*
|
|
1303
1303
|
* @private
|
|
1304
1304
|
*/
|
|
1305
|
-
ValueHelpDialog.prototype._updateTableTitle = function() {
|
|
1305
|
+
ValueHelpDialog.prototype._updateTableTitle = function () {
|
|
1306
1306
|
if (!this._oTable) {
|
|
1307
1307
|
return;
|
|
1308
1308
|
}
|
|
@@ -1331,7 +1331,7 @@ sap.ui.define(
|
|
|
1331
1331
|
*
|
|
1332
1332
|
* @private
|
|
1333
1333
|
*/
|
|
1334
|
-
ValueHelpDialog.prototype._updateTokenizer = function() {
|
|
1334
|
+
ValueHelpDialog.prototype._updateTokenizer = function () {
|
|
1335
1335
|
var lExpanded = false;
|
|
1336
1336
|
if (this._oTokenizerPanel) {
|
|
1337
1337
|
lExpanded = this._oTokenizerPanel.getExpanded();
|
|
@@ -1400,12 +1400,12 @@ sap.ui.define(
|
|
|
1400
1400
|
*
|
|
1401
1401
|
* @private
|
|
1402
1402
|
*/
|
|
1403
|
-
ValueHelpDialog.prototype._updateNavigationControl = function() {
|
|
1403
|
+
ValueHelpDialog.prototype._updateNavigationControl = function () {
|
|
1404
1404
|
var lListTabVisible = !this.getSupportRangesOnly();
|
|
1405
1405
|
var lRangesTabVisible = this.getSupportRangesOnly() || this.getSupportRanges();
|
|
1406
1406
|
if (this._oTabBar) {
|
|
1407
1407
|
var ltTabItems = this._oTabBar.getItems();
|
|
1408
|
-
ltTabItems[0].setVisible(lListTabVisible
|
|
1408
|
+
ltTabItems[0].setVisible(lListTabVisible);
|
|
1409
1409
|
ltTabItems[1].setVisible(lRangesTabVisible);
|
|
1410
1410
|
this._oTabBar.setVisible(lListTabVisible && lRangesTabVisible);
|
|
1411
1411
|
this._updateDlgTitle();
|
|
@@ -1422,13 +1422,13 @@ sap.ui.define(
|
|
|
1422
1422
|
*
|
|
1423
1423
|
* @private
|
|
1424
1424
|
*/
|
|
1425
|
-
ValueHelpDialog.prototype._updateFooterControls = function() {
|
|
1425
|
+
ValueHelpDialog.prototype._updateFooterControls = function () {
|
|
1426
1426
|
};
|
|
1427
1427
|
|
|
1428
1428
|
/**
|
|
1429
1429
|
* setSupportMultiselect
|
|
1430
1430
|
*/
|
|
1431
|
-
ValueHelpDialog.prototype.setSupportMultiselect = function(enabled) {
|
|
1431
|
+
ValueHelpDialog.prototype.setSupportMultiselect = function (enabled) {
|
|
1432
1432
|
this.setProperty("supportMultiselect", enabled);
|
|
1433
1433
|
this._updatePropertySupportMultiselect(enabled);
|
|
1434
1434
|
this._oTokenizerGrid.setVisible(enabled);
|
|
@@ -1439,7 +1439,7 @@ sap.ui.define(
|
|
|
1439
1439
|
/**
|
|
1440
1440
|
* setSupportRanges
|
|
1441
1441
|
*/
|
|
1442
|
-
ValueHelpDialog.prototype.setSupportRanges = function(enabled) {
|
|
1442
|
+
ValueHelpDialog.prototype.setSupportRanges = function (enabled) {
|
|
1443
1443
|
this.setProperty("supportRanges", enabled);
|
|
1444
1444
|
this._updateNavigationControl();
|
|
1445
1445
|
return this;
|
|
@@ -1448,7 +1448,7 @@ sap.ui.define(
|
|
|
1448
1448
|
/**
|
|
1449
1449
|
* setSupportRangesOnly
|
|
1450
1450
|
*/
|
|
1451
|
-
ValueHelpDialog.prototype.setSupportRangesOnly = function(enabled) {
|
|
1451
|
+
ValueHelpDialog.prototype.setSupportRangesOnly = function (enabled) {
|
|
1452
1452
|
this.setProperty("supportRangesOnly", enabled);
|
|
1453
1453
|
this._updateNavigationControl();
|
|
1454
1454
|
return this;
|
|
@@ -1460,7 +1460,7 @@ sap.ui.define(
|
|
|
1460
1460
|
* The value is used for the different titles which we display during runtime on the dialog header.
|
|
1461
1461
|
* The dialog title changes depending on the content.
|
|
1462
1462
|
*/
|
|
1463
|
-
ValueHelpDialog.prototype.setTitle = function(title) {
|
|
1463
|
+
ValueHelpDialog.prototype.setTitle = function (title) {
|
|
1464
1464
|
this.setProperty("title", title);
|
|
1465
1465
|
|
|
1466
1466
|
this._updateDlgTitle();
|
|
@@ -1471,7 +1471,7 @@ sap.ui.define(
|
|
|
1471
1471
|
/**
|
|
1472
1472
|
* setBasicSearchText
|
|
1473
1473
|
*/
|
|
1474
|
-
ValueHelpDialog.prototype.setBasicSearchText = function(text) {
|
|
1474
|
+
ValueHelpDialog.prototype.setBasicSearchText = function (text) {
|
|
1475
1475
|
this.setProperty("basicSearchText", text);
|
|
1476
1476
|
if (this._oFilterBar && this._oFilterBar._oBasicSearchField) {
|
|
1477
1477
|
this._oFilterBar._oBasicSearchField.setValue(text);
|
|
@@ -1481,14 +1481,14 @@ sap.ui.define(
|
|
|
1481
1481
|
};
|
|
1482
1482
|
|
|
1483
1483
|
/**
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
ValueHelpDialog.prototype.setUpdateSingleRowCallback = function(fSingleRowCallback) {
|
|
1484
|
+
* setUpdateSingleRowCallback
|
|
1485
|
+
* Setter for the singleRowCallback function.
|
|
1486
|
+
*
|
|
1487
|
+
* @param {function} fSingleRowCallback Callback function
|
|
1488
|
+
* @private
|
|
1489
|
+
* @deprecated since 1.89.0
|
|
1490
|
+
*/
|
|
1491
|
+
ValueHelpDialog.prototype.setUpdateSingleRowCallback = function (fSingleRowCallback) {
|
|
1492
1492
|
this.fSingleRowCallback = fSingleRowCallback;
|
|
1493
1493
|
this._updateNavigationControl();
|
|
1494
1494
|
};
|
|
@@ -1496,14 +1496,14 @@ sap.ui.define(
|
|
|
1496
1496
|
/**
|
|
1497
1497
|
* _isPhone
|
|
1498
1498
|
*/
|
|
1499
|
-
ValueHelpDialog.prototype._isPhone = function() {
|
|
1499
|
+
ValueHelpDialog.prototype._isPhone = function () {
|
|
1500
1500
|
return sap.ui.Device.system.phone;
|
|
1501
1501
|
};
|
|
1502
1502
|
|
|
1503
1503
|
/**
|
|
1504
1504
|
* _hasListeners
|
|
1505
1505
|
*/
|
|
1506
|
-
ValueHelpDialog.prototype._hasListeners = function(eventName) {
|
|
1506
|
+
ValueHelpDialog.prototype._hasListeners = function (eventName) {
|
|
1507
1507
|
if (this._bTableCreatedInternal) {
|
|
1508
1508
|
return false;
|
|
1509
1509
|
}
|
|
@@ -1514,7 +1514,7 @@ sap.ui.define(
|
|
|
1514
1514
|
/**
|
|
1515
1515
|
* _rotateSelectionButtonIcon
|
|
1516
1516
|
*/
|
|
1517
|
-
ValueHelpDialog.prototype._rotateSelectionButtonIcon = function(flag) {
|
|
1517
|
+
ValueHelpDialog.prototype._rotateSelectionButtonIcon = function (flag) {
|
|
1518
1518
|
if (!sap.ui.Device.system.phone) {
|
|
1519
1519
|
var loCtrl = sap.ui.getCore().byId(this.oSelectionButton.$("img")[0].id);
|
|
1520
1520
|
if (flag) {
|
|
@@ -1528,14 +1528,14 @@ sap.ui.define(
|
|
|
1528
1528
|
/**
|
|
1529
1529
|
* onAfterRendering
|
|
1530
1530
|
*/
|
|
1531
|
-
ValueHelpDialog.prototype.onAfterRendering = function() {
|
|
1531
|
+
ValueHelpDialog.prototype.onAfterRendering = function () {
|
|
1532
1532
|
sap.m.Dialog.prototype.onAfterRendering.apply(this);
|
|
1533
1533
|
|
|
1534
1534
|
if (this._oTable) {
|
|
1535
1535
|
this._updateTitles();
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
|
-
if (!this._isPhone() &&
|
|
1538
|
+
if (!this._isPhone() && this.getContentHeight() === "") {
|
|
1539
1539
|
if (this.getSupportRangesOnly() && (this.getMaxExcludeRanges() === "-1" || this.getMaxIncludeRanges() === "-1")) { //} && this._oSelectedTokens.getTokens().length <= 2) {
|
|
1540
1540
|
// in case of a conditions only with multiple condition rows we give the dialog a height of 70%
|
|
1541
1541
|
this.setContentHeight("70%");
|
|
@@ -1547,7 +1547,7 @@ sap.ui.define(
|
|
|
1547
1547
|
}
|
|
1548
1548
|
// correct the minRowCount
|
|
1549
1549
|
if (sap.ui.table.Table && this._oTable && this._oTable instanceof sap.ui.table.Table) {
|
|
1550
|
-
this._oTable.setVisibleRowCountMode(
|
|
1550
|
+
this._oTable.setVisibleRowCountMode(sap.ui.table.VisibleRowCountMode.Auto);
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
1553
|
};
|
|
@@ -1557,7 +1557,7 @@ sap.ui.define(
|
|
|
1557
1557
|
* Overwriting the Dialog._getDialogOffset function
|
|
1558
1558
|
* In our case we will return some other left and top margin values!
|
|
1559
1559
|
*/
|
|
1560
|
-
ValueHelpDialog.prototype._getDialogOffset = function(windowWidth) {
|
|
1560
|
+
ValueHelpDialog.prototype._getDialogOffset = function (windowWidth) {
|
|
1561
1561
|
var lWindowWidth = windowWidth || this._$Window.width();
|
|
1562
1562
|
|
|
1563
1563
|
var loScreenSize = {
|
|
@@ -1570,7 +1570,7 @@ sap.ui.define(
|
|
|
1570
1570
|
lRem = 2;
|
|
1571
1571
|
}
|
|
1572
1572
|
|
|
1573
|
-
var remToPixelMargin = function(rem) {
|
|
1573
|
+
var remToPixelMargin = function (rem) {
|
|
1574
1574
|
var lRemInPx = parseInt(window.getComputedStyle(document.body).fontSize, 10);
|
|
1575
1575
|
return (rem * lRemInPx) * 2;
|
|
1576
1576
|
};
|
|
@@ -1585,7 +1585,7 @@ sap.ui.define(
|
|
|
1585
1585
|
/**
|
|
1586
1586
|
* suggest
|
|
1587
1587
|
*/
|
|
1588
|
-
ValueHelpDialog.prototype.suggest = function(fSuggestProviderCallback) {
|
|
1588
|
+
ValueHelpDialog.prototype.suggest = function (fSuggestProviderCallback) {
|
|
1589
1589
|
this._fSuggestCallback = fSuggestProviderCallback;
|
|
1590
1590
|
|
|
1591
1591
|
if (this._oFilterPanel) {
|
|
@@ -1601,7 +1601,7 @@ sap.ui.define(
|
|
|
1601
1601
|
/**
|
|
1602
1602
|
* open
|
|
1603
1603
|
*/
|
|
1604
|
-
ValueHelpDialog.prototype.open = function() {
|
|
1604
|
+
ValueHelpDialog.prototype.open = function () {
|
|
1605
1605
|
this._bIgnoreSelectionChange = false;
|
|
1606
1606
|
|
|
1607
1607
|
// take the current visibility of the title and button for the visibility of the colSearchBox
|
|
@@ -1633,8 +1633,8 @@ sap.ui.define(
|
|
|
1633
1633
|
/**
|
|
1634
1634
|
* Exit ValueHelp Dialog
|
|
1635
1635
|
*/
|
|
1636
|
-
ValueHelpDialog.prototype.exit = function() {
|
|
1637
|
-
var loDestroyObject = function(oObject) {
|
|
1636
|
+
ValueHelpDialog.prototype.exit = function () {
|
|
1637
|
+
var loDestroyObject = function (oObject) {
|
|
1638
1638
|
if (oObject && oObject.destroy) {
|
|
1639
1639
|
oObject.destroy();
|
|
1640
1640
|
}
|
|
@@ -1697,10 +1697,10 @@ sap.ui.define(
|
|
|
1697
1697
|
*
|
|
1698
1698
|
* @private
|
|
1699
1699
|
*/
|
|
1700
|
-
ValueHelpDialog.prototype._onCloseAndTakeOverValues = function() {
|
|
1700
|
+
ValueHelpDialog.prototype._onCloseAndTakeOverValues = function () {
|
|
1701
1701
|
var that = this;
|
|
1702
1702
|
|
|
1703
|
-
var fnCallback = function() {
|
|
1703
|
+
var fnCallback = function () {
|
|
1704
1704
|
var ltTokens = that._oSelectedItems.getSelectedItemsTokenArray(that.getKey(), that.getDescriptionKey(), that.getTokenDisplayBehaviour());
|
|
1705
1705
|
|
|
1706
1706
|
if (that._oSelectedRanges) {
|
|
@@ -1717,16 +1717,16 @@ sap.ui.define(
|
|
|
1717
1717
|
if (!loRange._oGrid || loRange._oGrid.select.getSelected()) {
|
|
1718
1718
|
var loToken = new sap.m.Token(
|
|
1719
1719
|
{
|
|
1720
|
-
key: "range_" + i
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1720
|
+
key: "range_" + i
|
|
1721
|
+
}
|
|
1722
|
+
).data("range", {
|
|
1723
|
+
"isRange": true,
|
|
1724
|
+
"exclude": loRange.exclude,
|
|
1725
|
+
"operation": loRange.operation,
|
|
1726
|
+
"keyField": loRange.keyField,
|
|
1727
|
+
"value1": loRange.value1,
|
|
1728
|
+
"value2": loRange.value2
|
|
1729
|
+
});
|
|
1730
1730
|
loToken.setText(lTokenValue);
|
|
1731
1731
|
loToken.setTooltip(typeof lTokenValue === "string" ? lTokenValue : null);
|
|
1732
1732
|
ltTokens.push(loToken);
|
|
@@ -1749,7 +1749,7 @@ sap.ui.define(
|
|
|
1749
1749
|
*
|
|
1750
1750
|
* @private
|
|
1751
1751
|
*/
|
|
1752
|
-
ValueHelpDialog.prototype._onCancel = function() {
|
|
1752
|
+
ValueHelpDialog.prototype._onCancel = function () {
|
|
1753
1753
|
this.fireCancel();
|
|
1754
1754
|
};
|
|
1755
1755
|
|
|
@@ -1759,7 +1759,7 @@ sap.ui.define(
|
|
|
1759
1759
|
*
|
|
1760
1760
|
* @private
|
|
1761
1761
|
*/
|
|
1762
|
-
ValueHelpDialog.prototype._onGo = function() {
|
|
1762
|
+
ValueHelpDialog.prototype._onGo = function () {
|
|
1763
1763
|
this._oFilterBar.search();
|
|
1764
1764
|
};
|
|
1765
1765
|
|
|
@@ -1769,7 +1769,7 @@ sap.ui.define(
|
|
|
1769
1769
|
*
|
|
1770
1770
|
* @private
|
|
1771
1771
|
*/
|
|
1772
|
-
ValueHelpDialog.prototype._onClear = function() {
|
|
1772
|
+
ValueHelpDialog.prototype._onClear = function () {
|
|
1773
1773
|
this._oFilterBar.clear();
|
|
1774
1774
|
};
|
|
1775
1775
|
|
|
@@ -1780,7 +1780,7 @@ sap.ui.define(
|
|
|
1780
1780
|
/**
|
|
1781
1781
|
* setFilterBar
|
|
1782
1782
|
*/
|
|
1783
|
-
ValueHelpDialog.prototype.setFilterBar = function(oCtrl) {
|
|
1783
|
+
ValueHelpDialog.prototype.setFilterBar = function (oCtrl) {
|
|
1784
1784
|
this.setAggregation("filterBar", oCtrl);
|
|
1785
1785
|
|
|
1786
1786
|
if (this._oMainLayout && oCtrl) {
|
|
@@ -1806,7 +1806,7 @@ sap.ui.define(
|
|
|
1806
1806
|
var loSearchField = sap.ui.getCore().byId(this._oFilterBar.getBasicSearch());
|
|
1807
1807
|
if (loSearchField instanceof sap.m.SearchField) {
|
|
1808
1808
|
loSearchField.setShowSearchButton(true);
|
|
1809
|
-
loSearchField.attachSearch(function(oEvent) {
|
|
1809
|
+
loSearchField.attachSearch(function (oEvent) {
|
|
1810
1810
|
if (oEvent.mParameters.refreshButtonPressed !== undefined) { // Workaround to ignore the remove icon click on the
|
|
1811
1811
|
// Search control.
|
|
1812
1812
|
this.getFilterBar().search();
|
|
@@ -1834,13 +1834,13 @@ sap.ui.define(
|
|
|
1834
1834
|
)
|
|
1835
1835
|
);
|
|
1836
1836
|
}
|
|
1837
|
-
this._oVBox.insertItem(
|
|
1837
|
+
this._oVBox.insertItem(this._oFilterBar, 1);
|
|
1838
1838
|
// On the phone listen on the Search event to show the LIST_VIEW.
|
|
1839
|
-
this._oFilterBar.attachSearch(function() {
|
|
1839
|
+
this._oFilterBar.attachSearch(function () {
|
|
1840
1840
|
this._updateView(sap.zen._ValueHelpViewMode.PHONE_LIST_VIEW);
|
|
1841
1841
|
}.bind(this));
|
|
1842
1842
|
if (this._currentViewMode === sap.zen._ValueHelpViewMode.PHONE_LIST_VIEW
|
|
1843
|
-
|
|
1843
|
+
&& this._oFilterBar.setFilterBarExpanded) { //ZEN
|
|
1844
1844
|
// update the Filterbar states
|
|
1845
1845
|
this._oFilterBar.setVisible(true);
|
|
1846
1846
|
this._oFilterBar.setFilterBarExpanded(false);
|
|
@@ -1871,7 +1871,7 @@ sap.ui.define(
|
|
|
1871
1871
|
/**
|
|
1872
1872
|
* _handleFilterBarInitialize
|
|
1873
1873
|
*/
|
|
1874
|
-
ValueHelpDialog.prototype._handleFilterBarInitialize = function() {
|
|
1874
|
+
ValueHelpDialog.prototype._handleFilterBarInitialize = function () {
|
|
1875
1875
|
if (this._currentViewMode === sap.ui.comp.valuehelpdialog._ValueHelpViewMode.PHONE_LIST_VIEW) {
|
|
1876
1876
|
// update the Filterbar states
|
|
1877
1877
|
this._oFilterBar._handleVisibilityOfToolbar();
|
|
@@ -1886,7 +1886,7 @@ sap.ui.define(
|
|
|
1886
1886
|
/**
|
|
1887
1887
|
* getFilterBar
|
|
1888
1888
|
*/
|
|
1889
|
-
ValueHelpDialog.prototype.getFilterBar = function() {
|
|
1889
|
+
ValueHelpDialog.prototype.getFilterBar = function () {
|
|
1890
1890
|
return this._oFilterBar;
|
|
1891
1891
|
};
|
|
1892
1892
|
|
|
@@ -1903,7 +1903,7 @@ sap.ui.define(
|
|
|
1903
1903
|
* @since 1.32
|
|
1904
1904
|
* @public
|
|
1905
1905
|
*/
|
|
1906
|
-
ValueHelpDialog.prototype.setTable = function(oTable) {
|
|
1906
|
+
ValueHelpDialog.prototype.setTable = function (oTable) {
|
|
1907
1907
|
if (this._oTable) {
|
|
1908
1908
|
this._oMainLayout.removeItem(this._oTable);
|
|
1909
1909
|
}
|
|
@@ -1934,7 +1934,7 @@ sap.ui.define(
|
|
|
1934
1934
|
* @returns {object} the used table instance
|
|
1935
1935
|
* @since 1.28
|
|
1936
1936
|
*/
|
|
1937
|
-
ValueHelpDialog.prototype.getTable = function() {
|
|
1937
|
+
ValueHelpDialog.prototype.getTable = function () {
|
|
1938
1938
|
if (!this._oTable) {
|
|
1939
1939
|
this._createDefaultTable();
|
|
1940
1940
|
}
|
|
@@ -1951,7 +1951,7 @@ sap.ui.define(
|
|
|
1951
1951
|
*
|
|
1952
1952
|
* @private
|
|
1953
1953
|
*/
|
|
1954
|
-
ValueHelpDialog.prototype._setTableTitle = function(title) {
|
|
1954
|
+
ValueHelpDialog.prototype._setTableTitle = function (title) {
|
|
1955
1955
|
if (sap.ui.Device.system.desktop && !(this._oTable instanceof sap.m.Table)) {
|
|
1956
1956
|
if (this._oTable.getTitle()) {
|
|
1957
1957
|
this._oTable.getTitle().setText(title);
|
|
@@ -1968,7 +1968,7 @@ sap.ui.define(
|
|
|
1968
1968
|
* @private
|
|
1969
1969
|
* @since 1.24
|
|
1970
1970
|
*/
|
|
1971
|
-
ValueHelpDialog.prototype.resetTableState = function() {
|
|
1971
|
+
ValueHelpDialog.prototype.resetTableState = function () {
|
|
1972
1972
|
if (this._oTable) {
|
|
1973
1973
|
if (this._oTable.unbindRows) {
|
|
1974
1974
|
this._oTable.unbindRows();
|
|
@@ -1984,7 +1984,7 @@ sap.ui.define(
|
|
|
1984
1984
|
* @private
|
|
1985
1985
|
* @returns {string} The width in px
|
|
1986
1986
|
*/
|
|
1987
|
-
ValueHelpDialog.prototype._getDefaultContentWidth = function() {
|
|
1987
|
+
ValueHelpDialog.prototype._getDefaultContentWidth = function () {
|
|
1988
1988
|
var lColumns = 0;
|
|
1989
1989
|
if (this._oTable) {
|
|
1990
1990
|
lColumns = this._oTable.getColumns().length;
|
|
@@ -2002,7 +2002,7 @@ sap.ui.define(
|
|
|
2002
2002
|
* @private
|
|
2003
2003
|
* @since 1.24
|
|
2004
2004
|
*/
|
|
2005
|
-
ValueHelpDialog.prototype.TableStateSearchData = function() {
|
|
2005
|
+
ValueHelpDialog.prototype.TableStateSearchData = function () {
|
|
2006
2006
|
this._updateNoDataText(this._oRb.getText("VALUEHELPDLG_TABLE_PRESSSEARCH"));
|
|
2007
2007
|
};
|
|
2008
2008
|
|
|
@@ -2013,7 +2013,7 @@ sap.ui.define(
|
|
|
2013
2013
|
* @private
|
|
2014
2014
|
* @since 1.24
|
|
2015
2015
|
*/
|
|
2016
|
-
ValueHelpDialog.prototype.TableStateDataFilled = function() {
|
|
2016
|
+
ValueHelpDialog.prototype.TableStateDataFilled = function () {
|
|
2017
2017
|
this._updateNoDataText(this._oRb.getText("VALUEHELPDLG_TABLE_NODATA"));
|
|
2018
2018
|
};
|
|
2019
2019
|
|
|
@@ -2024,15 +2024,15 @@ sap.ui.define(
|
|
|
2024
2024
|
* @private
|
|
2025
2025
|
* @since 1.28
|
|
2026
2026
|
*/
|
|
2027
|
-
ValueHelpDialog.prototype.TableStateDataSearching = function() {
|
|
2027
|
+
ValueHelpDialog.prototype.TableStateDataSearching = function () {
|
|
2028
2028
|
this._updateNoDataText(this._oRb.getText("VALUEHELPDLG_TABLE_SEARCHING"));
|
|
2029
2029
|
};
|
|
2030
2030
|
|
|
2031
2031
|
/**
|
|
2032
2032
|
* _createDefaultTable
|
|
2033
2033
|
*/
|
|
2034
|
-
ValueHelpDialog.prototype._createDefaultTable = function() {
|
|
2035
|
-
this.setTable(
|
|
2034
|
+
ValueHelpDialog.prototype._createDefaultTable = function () {
|
|
2035
|
+
this.setTable(new sap.ui.table.Table(), true);
|
|
2036
2036
|
};
|
|
2037
2037
|
|
|
2038
2038
|
/**
|
|
@@ -2041,21 +2041,21 @@ sap.ui.define(
|
|
|
2041
2041
|
*
|
|
2042
2042
|
* @private
|
|
2043
2043
|
*/
|
|
2044
|
-
ValueHelpDialog.prototype._initializeTable = function() {
|
|
2044
|
+
ValueHelpDialog.prototype._initializeTable = function () {
|
|
2045
2045
|
if (sap.ui.table.Table && this._oTable instanceof sap.ui.table.Table) {
|
|
2046
|
-
this._oTable.setTitle(
|
|
2046
|
+
this._oTable.setTitle(sap.ui.Device.system.desktop ? this._sTableTitleNoCount : null);
|
|
2047
2047
|
|
|
2048
2048
|
if (this._bTableCreatedInternal) {
|
|
2049
|
-
this._oTable.setSelectionBehavior(
|
|
2049
|
+
this._oTable.setSelectionBehavior(sap.ui.table.SelectionBehavior.Row);
|
|
2050
2050
|
}
|
|
2051
2051
|
|
|
2052
|
-
this._oTable.setSelectionMode(
|
|
2052
|
+
this._oTable.setSelectionMode(this.getSupportMultiselect() ? sap.ui.table.SelectionMode.MultiToggle : sap.ui.table.SelectionMode.Single);
|
|
2053
2053
|
|
|
2054
|
-
this._updateNoDataText(
|
|
2054
|
+
this._updateNoDataText(this._oRb.getText("VALUEHELPDLG_TABLE_PRESSSEARCH"));
|
|
2055
2055
|
|
|
2056
2056
|
//initial we use Fixed mode to give the table the chance to render and calculate the correct height
|
|
2057
|
-
this._oTable.setVisibleRowCountMode(
|
|
2058
|
-
this._oTable.setMinAutoRowCount(
|
|
2057
|
+
this._oTable.setVisibleRowCountMode(sap.ui.table.VisibleRowCountMode.Fixed);
|
|
2058
|
+
this._oTable.setMinAutoRowCount(sap.ui.Device.system.desktop ? 5 : 4);
|
|
2059
2059
|
|
|
2060
2060
|
this._oTable.addStyleClass("compVHMainTable");
|
|
2061
2061
|
} else {
|
|
@@ -2088,7 +2088,7 @@ sap.ui.define(
|
|
|
2088
2088
|
this.fireSelectionChange(loEventArgs);
|
|
2089
2089
|
this._bIgnoreSelectionChange = false;
|
|
2090
2090
|
|
|
2091
|
-
loEventArgs.updateTokens.forEach(function(oCurrentValue) {
|
|
2091
|
+
loEventArgs.updateTokens.forEach(function (oCurrentValue) {
|
|
2092
2092
|
this._addRemoveTokenByKey(oCurrentValue.sKey, oCurrentValue.oRow, oCurrentValue.bSelected);
|
|
2093
2093
|
}.bind(this));
|
|
2094
2094
|
|
|
@@ -2249,7 +2249,7 @@ sap.ui.define(
|
|
|
2249
2249
|
* @param {string} sKey the key of the row
|
|
2250
2250
|
* @param {boolean} bSelect specifies if the row should be selected or deselected
|
|
2251
2251
|
*/
|
|
2252
|
-
ValueHelpDialog.prototype._changeTableRowSelectionForKey = function(key, select) {
|
|
2252
|
+
ValueHelpDialog.prototype._changeTableRowSelectionForKey = function (key, select) {
|
|
2253
2253
|
this._bIgnoreSelectionChange = true;
|
|
2254
2254
|
|
|
2255
2255
|
var loTable = this._oTable;
|
|
@@ -2312,7 +2312,7 @@ sap.ui.define(
|
|
|
2312
2312
|
// Token Handling
|
|
2313
2313
|
// ################################################################################
|
|
2314
2314
|
|
|
2315
|
-
ValueHelpDialog.prototype.removeAllSelections = function(destroy) {
|
|
2315
|
+
ValueHelpDialog.prototype.removeAllSelections = function (destroy) {
|
|
2316
2316
|
this._oSelectedItems.removeAll();
|
|
2317
2317
|
this._oSelectedTokens.removeAllTokens();
|
|
2318
2318
|
if (destroy) {
|
|
@@ -2320,7 +2320,7 @@ sap.ui.define(
|
|
|
2320
2320
|
}
|
|
2321
2321
|
};
|
|
2322
2322
|
|
|
2323
|
-
ValueHelpDialog.prototype.setSelection = function(selected, key, oRow) {
|
|
2323
|
+
ValueHelpDialog.prototype.setSelection = function (selected, key, oRow) {
|
|
2324
2324
|
var lTokenExists = true;
|
|
2325
2325
|
|
|
2326
2326
|
if (!key) {
|
|
@@ -2339,20 +2339,20 @@ sap.ui.define(
|
|
|
2339
2339
|
return lTokenExists;
|
|
2340
2340
|
};
|
|
2341
2341
|
|
|
2342
|
-
ValueHelpDialog.prototype.setChildSelection = function(selected, oRow, includeRow) {
|
|
2342
|
+
ValueHelpDialog.prototype.setChildSelection = function (selected, oRow, includeRow) {
|
|
2343
2343
|
if (oRow) {
|
|
2344
2344
|
if (includeRow) {
|
|
2345
2345
|
this.setSelection(selected, oRow.key, oRow);
|
|
2346
2346
|
}
|
|
2347
2347
|
|
|
2348
|
-
var ltMembers = _.filter(oRow, function(oChild) {
|
|
2348
|
+
var ltMembers = _.filter(oRow, function (oChild) {
|
|
2349
2349
|
return oChild.key && !oChild.node; // only return valid Children (fake child exists for "Loading Members..." with node := true)
|
|
2350
2350
|
}.bind(this));
|
|
2351
2351
|
if (!ltMembers || ltMembers.length <= 0) {
|
|
2352
2352
|
return;
|
|
2353
2353
|
}
|
|
2354
2354
|
|
|
2355
|
-
_.forEach(ltMembers, function(oChild) {
|
|
2355
|
+
_.forEach(ltMembers, function (oChild) {
|
|
2356
2356
|
this.setChildSelection(selected, oChild, true);
|
|
2357
2357
|
}.bind(this));
|
|
2358
2358
|
}
|
|
@@ -2372,7 +2372,7 @@ sap.ui.define(
|
|
|
2372
2372
|
* @since 1.24
|
|
2373
2373
|
* @param {sap.m.Token[]} aTokens An array of token controls
|
|
2374
2374
|
*/
|
|
2375
|
-
ValueHelpDialog.prototype.setTokens = function(tTokens) {
|
|
2375
|
+
ValueHelpDialog.prototype.setTokens = function (tTokens) {
|
|
2376
2376
|
var loCurrentKeyField = null;
|
|
2377
2377
|
|
|
2378
2378
|
if (!tTokens || !tTokens.length) {
|
|
@@ -2442,7 +2442,7 @@ sap.ui.define(
|
|
|
2442
2442
|
* @param {string} sType supported type string, date, time or boolean
|
|
2443
2443
|
* @returns {string|date|float} Value as object
|
|
2444
2444
|
*/
|
|
2445
|
-
ValueHelpDialog.prototype._convertValue2Object = function(value, type) {
|
|
2445
|
+
ValueHelpDialog.prototype._convertValue2Object = function (value, type) {
|
|
2446
2446
|
if (!value) {
|
|
2447
2447
|
return value;
|
|
2448
2448
|
}
|
|
@@ -2450,36 +2450,36 @@ sap.ui.define(
|
|
|
2450
2450
|
var loValue = value;
|
|
2451
2451
|
|
|
2452
2452
|
switch (type) {
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2453
|
+
case "date":
|
|
2454
|
+
loValue = new Date(value);
|
|
2455
|
+
break;
|
|
2456
2456
|
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2457
|
+
case "time":
|
|
2458
|
+
// value is a formatted Date-Time value
|
|
2459
|
+
loValue = new Date(value);
|
|
2460
|
+
if (!loValue || (loValue.getDate && Number.isNaN(loValue.getDate()))) { // value is a formatted Time value
|
|
2461
|
+
loValue = sap.ui.core.format.DateFormat.getTimeInstance().parse(value);
|
|
2462
|
+
}
|
|
2463
|
+
break;
|
|
2464
2464
|
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2465
|
+
case "datetime":
|
|
2466
|
+
loValue = new Date(value);
|
|
2467
|
+
break;
|
|
2468
2468
|
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2469
|
+
case "numeric":
|
|
2470
|
+
loValue = parseFloat(value);
|
|
2471
|
+
break;
|
|
2472
2472
|
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2473
|
+
case "boolean":
|
|
2474
|
+
if (value === "") {
|
|
2475
|
+
loValue = null;
|
|
2476
|
+
} else {
|
|
2477
|
+
loValue = value == "true";
|
|
2478
|
+
}
|
|
2479
|
+
break;
|
|
2480
2480
|
|
|
2481
|
-
|
|
2482
|
-
|
|
2481
|
+
default:
|
|
2482
|
+
break;
|
|
2483
2483
|
}
|
|
2484
2484
|
|
|
2485
2485
|
return loValue;
|
|
@@ -2494,7 +2494,7 @@ sap.ui.define(
|
|
|
2494
2494
|
* @param {sap.m.Tokenizer} oTokenizer the Tokenizer which contain the token
|
|
2495
2495
|
* @returns {sap.m.Token} the found token instance or null
|
|
2496
2496
|
*/
|
|
2497
|
-
ValueHelpDialog.prototype._getTokenByKey = function(key, oTokenizer) {
|
|
2497
|
+
ValueHelpDialog.prototype._getTokenByKey = function (key, oTokenizer) {
|
|
2498
2498
|
var ltTokens = oTokenizer.getTokens();
|
|
2499
2499
|
|
|
2500
2500
|
for (var i = 0; i < ltTokens.length; i++) {
|
|
@@ -2514,7 +2514,7 @@ sap.ui.define(
|
|
|
2514
2514
|
/**
|
|
2515
2515
|
* _addRemoveTokenByKey
|
|
2516
2516
|
*/
|
|
2517
|
-
ValueHelpDialog.prototype._addRemoveTokenByKey = function(key, oRow, add) {
|
|
2517
|
+
ValueHelpDialog.prototype._addRemoveTokenByKey = function (key, oRow, add) {
|
|
2518
2518
|
if (add) {
|
|
2519
2519
|
this._oSelectedItems.add(key, oRow);
|
|
2520
2520
|
this._addToken2Tokenizer(key, this._getFormattedTokenText(key), this._oSelectedTokens);
|
|
@@ -2531,7 +2531,7 @@ sap.ui.define(
|
|
|
2531
2531
|
* @private
|
|
2532
2532
|
* @param {string} sKey of the token
|
|
2533
2533
|
*/
|
|
2534
|
-
ValueHelpDialog.prototype._removeToken = function(key) {
|
|
2534
|
+
ValueHelpDialog.prototype._removeToken = function (key) {
|
|
2535
2535
|
if (!this._removeTokenFromTokenizer(key, this._oSelectedTokens)) {
|
|
2536
2536
|
this._removeTokenFromTokenizer(key, this._oExcludedTokens);
|
|
2537
2537
|
}
|
|
@@ -2546,7 +2546,7 @@ sap.ui.define(
|
|
|
2546
2546
|
* @param {string} sText the token text
|
|
2547
2547
|
* @param {sap.m.Tokenizer} oTokenizer the Tokenizer which contain the token
|
|
2548
2548
|
*/
|
|
2549
|
-
ValueHelpDialog.prototype._addToken2Tokenizer = function(key, text, oTokenizer) {
|
|
2549
|
+
ValueHelpDialog.prototype._addToken2Tokenizer = function (key, text, oTokenizer) {
|
|
2550
2550
|
var lTooltip = (typeof text === "string") ? text : "";
|
|
2551
2551
|
|
|
2552
2552
|
var loToken = this._getTokenByKey(key, oTokenizer);
|
|
@@ -2575,7 +2575,7 @@ sap.ui.define(
|
|
|
2575
2575
|
* @param {sap.m.Tokenizer} oTokenizer the Tokenizer which contain the token
|
|
2576
2576
|
* @returns {boolean} true when the token has been found and removed, else false
|
|
2577
2577
|
*/
|
|
2578
|
-
ValueHelpDialog.prototype._removeTokenFromTokenizer = function(key, oTokenizer) {
|
|
2578
|
+
ValueHelpDialog.prototype._removeTokenFromTokenizer = function (key, oTokenizer) {
|
|
2579
2579
|
var loToken = this._getTokenByKey(key, oTokenizer);
|
|
2580
2580
|
|
|
2581
2581
|
if (loToken) {
|
|
@@ -2597,7 +2597,7 @@ sap.ui.define(
|
|
|
2597
2597
|
* @param {string} sKey the key of the selectedItems item
|
|
2598
2598
|
* @returns {string} the token text for the selected items with the sKey
|
|
2599
2599
|
*/
|
|
2600
|
-
ValueHelpDialog.prototype._getFormattedTokenText = function(key) {
|
|
2600
|
+
ValueHelpDialog.prototype._getFormattedTokenText = function (key) {
|
|
2601
2601
|
var loItem = this._oSelectedItems.getItem(key);
|
|
2602
2602
|
var lTokenText = loItem[this.getDescriptionKey()];
|
|
2603
2603
|
var lDisplayKey = loItem["displaykey"];//ZEN
|
|
@@ -2639,7 +2639,7 @@ sap.ui.define(
|
|
|
2639
2639
|
* @private
|
|
2640
2640
|
* @returns {sap.ui.layout.Grid} the ranges grid
|
|
2641
2641
|
*/
|
|
2642
|
-
ValueHelpDialog.prototype._getRanges = function() {
|
|
2642
|
+
ValueHelpDialog.prototype._getRanges = function () {
|
|
2643
2643
|
if (!this._oRanges) {
|
|
2644
2644
|
this._oRanges = this._createRanges();
|
|
2645
2645
|
}
|
|
@@ -2654,12 +2654,12 @@ sap.ui.define(
|
|
|
2654
2654
|
* @private
|
|
2655
2655
|
* @returns {sap.ui.layout.Grid} the ranges grid
|
|
2656
2656
|
*/
|
|
2657
|
-
ValueHelpDialog.prototype._createRanges = function() {
|
|
2657
|
+
ValueHelpDialog.prototype._createRanges = function () {
|
|
2658
2658
|
this._oFilterPanel = new sap.m.P13nFilterPanel({
|
|
2659
2659
|
maxIncludes: this.getMaxIncludeRanges(),
|
|
2660
2660
|
maxExcludes: this.getMaxExcludeRanges(),
|
|
2661
2661
|
containerQuery: true,
|
|
2662
|
-
addFilterItem: function(oEvent) {
|
|
2662
|
+
addFilterItem: function (oEvent) {
|
|
2663
2663
|
var loParams = oEvent.mParameters;
|
|
2664
2664
|
|
|
2665
2665
|
var loRange = {
|
|
@@ -2685,14 +2685,14 @@ sap.ui.define(
|
|
|
2685
2685
|
this._updateTokenizer();
|
|
2686
2686
|
}.bind(this),
|
|
2687
2687
|
|
|
2688
|
-
removeFilterItem: function(oEvent) {
|
|
2688
|
+
removeFilterItem: function (oEvent) {
|
|
2689
2689
|
var loParams = oEvent.mParameters;
|
|
2690
2690
|
delete this._oSelectedRanges[loParams.key];
|
|
2691
2691
|
this._removeToken(loParams.key);
|
|
2692
2692
|
this._updateTokenizer();
|
|
2693
2693
|
}.bind(this),
|
|
2694
2694
|
|
|
2695
|
-
updateFilterItem: function(oEvent) {
|
|
2695
|
+
updateFilterItem: function (oEvent) {
|
|
2696
2696
|
var loParams = oEvent.mParameters;
|
|
2697
2697
|
|
|
2698
2698
|
var loRange = this._oSelectedRanges[loParams.key];
|
|
@@ -2733,7 +2733,7 @@ sap.ui.define(
|
|
|
2733
2733
|
}
|
|
2734
2734
|
|
|
2735
2735
|
if (this._aRangeKeyFields) {
|
|
2736
|
-
this._aRangeKeyFields.forEach(
|
|
2736
|
+
this._aRangeKeyFields.forEach(function (oItem) {
|
|
2737
2737
|
this._oFilterPanel.addItem(new sap.m.P13nItem({
|
|
2738
2738
|
columnKey: oItem.key,
|
|
2739
2739
|
text: oItem.label,
|
|
@@ -2801,7 +2801,7 @@ sap.ui.define(
|
|
|
2801
2801
|
/**
|
|
2802
2802
|
* getRangeKeyFields
|
|
2803
2803
|
*/
|
|
2804
|
-
ValueHelpDialog.prototype.getRangeKeyFields = function() {
|
|
2804
|
+
ValueHelpDialog.prototype.getRangeKeyFields = function () {
|
|
2805
2805
|
return this._aRangeKeyFields;
|
|
2806
2806
|
};
|
|
2807
2807
|
|
|
@@ -2815,12 +2815,12 @@ sap.ui.define(
|
|
|
2815
2815
|
*
|
|
2816
2816
|
* @private
|
|
2817
2817
|
*/
|
|
2818
|
-
ValueHelpDialog.prototype._getKeyFieldByKey = function(key) {
|
|
2818
|
+
ValueHelpDialog.prototype._getKeyFieldByKey = function (key) {
|
|
2819
2819
|
var loCurrentKeyField;
|
|
2820
2820
|
|
|
2821
2821
|
if (this._aRangeKeyFields) {
|
|
2822
2822
|
// search the current KeyField
|
|
2823
|
-
this._aRangeKeyFields.some(
|
|
2823
|
+
this._aRangeKeyFields.some(function (keyField) {
|
|
2824
2824
|
if (typeof keyField !== "string" && keyField.key === key) {
|
|
2825
2825
|
loCurrentKeyField = keyField;
|
|
2826
2826
|
return true;
|
|
@@ -2841,7 +2841,7 @@ sap.ui.define(
|
|
|
2841
2841
|
*
|
|
2842
2842
|
* @private
|
|
2843
2843
|
*/
|
|
2844
|
-
ValueHelpDialog.prototype._removeRangeByKey = function(key, isExclude) {
|
|
2844
|
+
ValueHelpDialog.prototype._removeRangeByKey = function (key, isExclude) {
|
|
2845
2845
|
var ltKeys = key;
|
|
2846
2846
|
|
|
2847
2847
|
if (typeof ltKeys === "string") {
|
|
@@ -2850,13 +2850,13 @@ sap.ui.define(
|
|
|
2850
2850
|
];
|
|
2851
2851
|
}
|
|
2852
2852
|
|
|
2853
|
-
ltKeys.forEach(function(key, index, tKeys) {
|
|
2853
|
+
ltKeys.forEach(function (key, index, tKeys) {
|
|
2854
2854
|
var loRange = this._oSelectedRanges[key];
|
|
2855
2855
|
if (loRange.exclude === isExclude && !loRange._oGrid) {
|
|
2856
2856
|
delete this._oSelectedRanges[key];
|
|
2857
2857
|
|
|
2858
2858
|
if (this._oFilterPanel) {
|
|
2859
|
-
var loConditionPanel =
|
|
2859
|
+
var loConditionPanel = loRange.exclude ? this._oFilterPanel._oExcludeFilterPanel : this._oFilterPanel._oIncludeFilterPanel;
|
|
2860
2860
|
|
|
2861
2861
|
if (tKeys.length === 1) {
|
|
2862
2862
|
// only in case of a single key we remove the condition
|
|
@@ -2870,7 +2870,7 @@ sap.ui.define(
|
|
|
2870
2870
|
}, this);
|
|
2871
2871
|
|
|
2872
2872
|
if (ltKeys.length > 1 && this._oFilterPanel) {
|
|
2873
|
-
var loConditionPanel =
|
|
2873
|
+
var loConditionPanel = isExclude ? this._oFilterPanel._oExcludeFilterPanel : this._oFilterPanel._oIncludeFilterPanel;
|
|
2874
2874
|
loConditionPanel._clearConditions();
|
|
2875
2875
|
loConditionPanel._fillConditions();
|
|
2876
2876
|
}
|
|
@@ -2886,7 +2886,7 @@ sap.ui.define(
|
|
|
2886
2886
|
* dialog
|
|
2887
2887
|
* @param {function} fnCancelCallback will be called when ranges are invalid and the user press Cancel on a message dialog
|
|
2888
2888
|
*/
|
|
2889
|
-
ValueHelpDialog.prototype._validateRanges = function(fnCallback, fnCancelCallback) {
|
|
2889
|
+
ValueHelpDialog.prototype._validateRanges = function (fnCallback, fnCancelCallback) {
|
|
2890
2890
|
if (this._oRanges) {
|
|
2891
2891
|
if (!this._oRanges.getParent()) {
|
|
2892
2892
|
fnCallback();
|
|
@@ -2902,7 +2902,7 @@ sap.ui.define(
|
|
|
2902
2902
|
title: this._sValidationDialogTitle,
|
|
2903
2903
|
actions: [sap.m.MessageBox.Action.OK, sap.m.MessageBox.Action.CANCEL],
|
|
2904
2904
|
styleClass: this.$().closest(".sapUiSizeCompact").length ? "sapUiSizeCompact" : "",
|
|
2905
|
-
onClose: function(result) {
|
|
2905
|
+
onClose: function (result) {
|
|
2906
2906
|
if (result === sap.m.MessageBox.Action.OK && fnCallback) {
|
|
2907
2907
|
fnCallback();
|
|
2908
2908
|
}
|
|
@@ -2928,7 +2928,7 @@ sap.ui.define(
|
|
|
2928
2928
|
* @param {object[]} aRangeKeyFields An array of range KeyFields
|
|
2929
2929
|
* <code>[{key: "CompanyCode", label: "ID"}, {key:"CompanyName", label : "Name"}]</code>
|
|
2930
2930
|
*/
|
|
2931
|
-
ValueHelpDialog.prototype.setRangeKeyFields = function(aRangeKeyFields) {
|
|
2931
|
+
ValueHelpDialog.prototype.setRangeKeyFields = function (aRangeKeyFields) {
|
|
2932
2932
|
this._aRangeKeyFields = aRangeKeyFields;
|
|
2933
2933
|
};
|
|
2934
2934
|
|
|
@@ -2941,7 +2941,7 @@ sap.ui.define(
|
|
|
2941
2941
|
* @param {sap.zen.dsh.ValueHelpRangeOperation[]} aOperation An array of range operations
|
|
2942
2942
|
* @param {string} sType the type for which the operations are defined
|
|
2943
2943
|
*/
|
|
2944
|
-
ValueHelpDialog.prototype.setIncludeRangeOperations = function(aOperation, type) {
|
|
2944
|
+
ValueHelpDialog.prototype.setIncludeRangeOperations = function (aOperation, type) {
|
|
2945
2945
|
type = type || "default";
|
|
2946
2946
|
this._aIncludeRangeOperations[type] = aOperation;
|
|
2947
2947
|
|
|
@@ -2959,7 +2959,7 @@ sap.ui.define(
|
|
|
2959
2959
|
* @param {sap.zen.dsh.ValueHelpRangeOperation[]} aOperation An array of range operations
|
|
2960
2960
|
* @param {string} sType the type for which the operations are defined
|
|
2961
2961
|
*/
|
|
2962
|
-
ValueHelpDialog.prototype.setExcludeRangeOperations = function(tOperations, type) {
|
|
2962
|
+
ValueHelpDialog.prototype.setExcludeRangeOperations = function (tOperations, type) {
|
|
2963
2963
|
type = type || "default";
|
|
2964
2964
|
this._aExcludeRangeOperations[type] = tOperations;
|
|
2965
2965
|
|
|
@@ -2980,69 +2980,69 @@ sap.ui.define(
|
|
|
2980
2980
|
* @param {string} sKeyField id
|
|
2981
2981
|
* @returns {string} the range token text
|
|
2982
2982
|
*/
|
|
2983
|
-
ValueHelpDialog.prototype._getFormattedRangeTokenText = function(operation, value1, value2, exclude, keyField) {
|
|
2983
|
+
ValueHelpDialog.prototype._getFormattedRangeTokenText = function (operation, value1, value2, exclude, keyField) {
|
|
2984
2984
|
var lTokenText = "";
|
|
2985
2985
|
|
|
2986
2986
|
var loFormatter = null;
|
|
2987
2987
|
var loCurrentKeyField = this._getKeyFieldByKey(keyField);
|
|
2988
2988
|
if (loCurrentKeyField) {
|
|
2989
2989
|
switch (loCurrentKeyField.type) {
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2990
|
+
case "numc":
|
|
2991
|
+
loFormatter = {
|
|
2992
|
+
format: function (oValue) {
|
|
2993
|
+
return this.oType.formatValue(oValue, "string");
|
|
2994
|
+
},
|
|
2995
|
+
oType: new sap.ui.model.odata.type.String({}, loCurrentKeyField.formatSettings)
|
|
2996
|
+
};
|
|
2997
|
+
break;
|
|
2998
2998
|
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
2999
|
+
case "numeric":
|
|
3000
|
+
var loFloatFormatOptions;
|
|
3001
|
+
if (loCurrentKeyField.precision || loCurrentKeyField.scale) {
|
|
3002
|
+
loFloatFormatOptions = {};
|
|
3003
|
+
if (loCurrentKeyField.precision) {
|
|
3004
|
+
loFloatFormatOptions["maxIntegerDigits"] = parseInt(loCurrentKeyField.precision, 10);
|
|
3005
|
+
}
|
|
3006
|
+
if (loCurrentKeyField.scale) {
|
|
3007
|
+
loFloatFormatOptions["maxFractionDigits"] = parseInt(loCurrentKeyField.scale, 10);
|
|
3008
|
+
}
|
|
3008
3009
|
}
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
break;
|
|
3010
|
+
loFormatter = sap.ui.core.format.NumberFormat.getFloatInstance(loFloatFormatOptions);
|
|
3011
|
+
break;
|
|
3012
3012
|
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3013
|
+
case "date":
|
|
3014
|
+
loFormatter = sap.ui.core.format.DateFormat.getDateInstance(jQuery.extend({}, loCurrentKeyField.formatSettings, { strictParsing: true }));
|
|
3015
|
+
value1 = new Date(value1);
|
|
3016
|
+
value2 = value2 !== "" ? new Date(value2) : null; // value2 can be "" string if the operation != BT.
|
|
3017
|
+
break;
|
|
3018
3018
|
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3019
|
+
case "time":
|
|
3020
|
+
loFormatter = sap.ui.core.format.DateFormat.getTimeInstance(jQuery.extend({}, loCurrentKeyField.formatSettings, { strictParsing: true }));
|
|
3021
|
+
value1 = new Date(value1);
|
|
3022
|
+
value2 = value2 !== "" ? new Date(value2) : null;
|
|
3023
|
+
break;
|
|
3024
3024
|
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3025
|
+
case "datetime":
|
|
3026
|
+
loFormatter = sap.ui.core.format.DateFormat.getDateTimeInstance(jQuery.extend({}, loCurrentKeyField.formatSettings, { strictParsing: true }));
|
|
3027
|
+
value1 = new Date(value1);
|
|
3028
|
+
value2 = value2 !== "" ? new Date(value2) : null;
|
|
3029
|
+
break;
|
|
3030
3030
|
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3031
|
+
case "boolean":
|
|
3032
|
+
var ltBooleanValues = this._getBooleanValues();
|
|
3033
|
+
value1 = ltBooleanValues[value1 ? 2 : 1];
|
|
3034
|
+
value2 = ltBooleanValues[value2 ? 2 : 1];
|
|
3035
|
+
break;
|
|
3036
3036
|
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3037
|
+
case "stringdate":
|
|
3038
|
+
if (sap.m.P13nConditionStringDateFormatter) {
|
|
3039
|
+
loFormatter = new sap.m.P13nConditionStringDateFormatter(jQuery.extend({}, loCurrentKeyField.formatSettings, { strictParsing: true }));
|
|
3040
|
+
}
|
|
3041
3041
|
|
|
3042
|
-
|
|
3042
|
+
break;
|
|
3043
3043
|
|
|
3044
|
-
|
|
3045
|
-
|
|
3044
|
+
default:
|
|
3045
|
+
break;
|
|
3046
3046
|
}
|
|
3047
3047
|
|
|
3048
3048
|
if (loFormatter) {
|
|
@@ -3057,63 +3057,59 @@ sap.ui.define(
|
|
|
3057
3057
|
|
|
3058
3058
|
if (value1 !== "") {
|
|
3059
3059
|
switch (operation) {
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3060
|
+
case ValueHelpRangeOperation.Initial:
|
|
3061
|
+
lTokenText = "=''";
|
|
3062
|
+
break;
|
|
3063
3063
|
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3064
|
+
case ValueHelpRangeOperation.EQ:
|
|
3065
|
+
lTokenText = "=" + value1;
|
|
3066
|
+
break;
|
|
3067
3067
|
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3068
|
+
case ValueHelpRangeOperation.GT:
|
|
3069
|
+
lTokenText = ">" + value1;
|
|
3070
|
+
break;
|
|
3071
3071
|
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3072
|
+
case ValueHelpRangeOperation.GE:
|
|
3073
|
+
lTokenText = ">=" + value1;
|
|
3074
|
+
break;
|
|
3075
3075
|
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3076
|
+
case ValueHelpRangeOperation.LT:
|
|
3077
|
+
lTokenText = "<" + value1;
|
|
3078
|
+
break;
|
|
3079
3079
|
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3080
|
+
case ValueHelpRangeOperation.LE:
|
|
3081
|
+
lTokenText = "<=" + value1;
|
|
3082
|
+
break;
|
|
3083
3083
|
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
if (!lTokenText.endsWith("*")) {
|
|
3090
|
-
lTokenText = lTokenText + "*";
|
|
3091
|
-
}
|
|
3092
|
-
break;
|
|
3084
|
+
case ValueHelpRangeOperation.Contains:
|
|
3085
|
+
if (!lTokenText.includes("*")) {
|
|
3086
|
+
lTokenText = "*" + lTokenText + "*";
|
|
3087
|
+
}
|
|
3088
|
+
break;
|
|
3093
3089
|
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3090
|
+
case ValueHelpRangeOperation.StartsWith:
|
|
3091
|
+
lTokenText = value1;
|
|
3092
|
+
if (!lTokenText.endsWith("*")) {
|
|
3093
|
+
lTokenText = lTokenText + "*";
|
|
3094
|
+
}
|
|
3095
|
+
break;
|
|
3100
3096
|
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3097
|
+
case ValueHelpRangeOperation.EndsWith:
|
|
3098
|
+
lTokenText = value1;
|
|
3099
|
+
if (!lTokenText.startsWith("*")) {
|
|
3100
|
+
lTokenText = "*" + lTokenText;
|
|
3101
|
+
}
|
|
3102
|
+
break;
|
|
3107
3103
|
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3104
|
+
case ValueHelpRangeOperation.BT:
|
|
3105
|
+
if (value2 !== "") {
|
|
3106
|
+
lTokenText = value1 + "..." + value2;
|
|
3107
|
+
break;
|
|
3108
|
+
}
|
|
3111
3109
|
break;
|
|
3112
|
-
}
|
|
3113
|
-
break;
|
|
3114
3110
|
|
|
3115
|
-
|
|
3116
|
-
|
|
3111
|
+
default:
|
|
3112
|
+
break;
|
|
3117
3113
|
}
|
|
3118
3114
|
|
|
3119
3115
|
}
|
|
@@ -3135,7 +3131,7 @@ sap.ui.define(
|
|
|
3135
3131
|
*
|
|
3136
3132
|
* @returns {string[]} ["", "No", "Yes"]
|
|
3137
3133
|
*/
|
|
3138
|
-
ValueHelpDialog.prototype._getBooleanValues = function() {
|
|
3134
|
+
ValueHelpDialog.prototype._getBooleanValues = function () {
|
|
3139
3135
|
var loBooleanType = new sap.ui.model.odata.type.Boolean();
|
|
3140
3136
|
|
|
3141
3137
|
var ltBooleanValues = null;
|