@sapui5/sap.rules.ui 1.121.0 → 1.122.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/rules/ui/.library +1 -1
- package/src/sap/rules/ui/AstExpressionBasic.js +25 -18
- package/src/sap/rules/ui/AstExpressionBasicRenderer.js +6 -4
- package/src/sap/rules/ui/AutoCompleteSuggestionContent.js +36 -34
- package/src/sap/rules/ui/BindingSpy.js +3 -4
- package/src/sap/rules/ui/DecisionTable.js +101 -74
- package/src/sap/rules/ui/DecisionTableCell.js +63 -33
- package/src/sap/rules/ui/DecisionTableCellAstExpressionBasic.js +17 -13
- package/src/sap/rules/ui/DecisionTableCellExpressionAdvanced.js +40 -32
- package/src/sap/rules/ui/DecisionTableCellExpressionBasic.js +21 -19
- package/src/sap/rules/ui/DecisionTableConfiguration.js +5 -6
- package/src/sap/rules/ui/DecisionTableRenderer.js +6 -5
- package/src/sap/rules/ui/DecisionTableSettings.js +254 -225
- package/src/sap/rules/ui/DecisionTableSettingsOld.js +59 -59
- package/src/sap/rules/ui/ExpressionAdvanced.js +135 -111
- package/src/sap/rules/ui/ExpressionBase.js +1 -1
- package/src/sap/rules/ui/ExpressionBasic.js +17 -12
- package/src/sap/rules/ui/InstructionRenderer.js +1 -2
- package/src/sap/rules/ui/RuleBase.js +2 -3
- package/src/sap/rules/ui/RuleBuilder.js +23 -23
- package/src/sap/rules/ui/TextRule.js +70 -54
- package/src/sap/rules/ui/TextRuleConfiguration.js +2 -3
- package/src/sap/rules/ui/TextRuleSettings.js +133 -116
- package/src/sap/rules/ui/ast/autoComplete/AutoComplete.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAdvancedFunctionPanel.js +15 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAggregateFunctionPanel.js +14 -9
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionArrayOperatorPanel.js +14 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionComparisionOperatorPanel.js +15 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionDateAndTimePanel.js +26 -17
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFixedValuePanel.js +75 -53
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFunctionalOperatorPanel.js +14 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLogicalOperatorPanel.js +14 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanel.js +14 -9
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMathematicalOperatorPanel.js +14 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMiscellaneousOperatorPanel.js +14 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionOperationsPanel.js +14 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionRangeOperatorPanel.js +14 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionSelectFunctionPanel.js +14 -9
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionTimeAndDurationFunctionPanel.js +35 -23
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionVocabularyPanel.js +93 -73
- package/src/sap/rules/ui/ast/util/AggregateFunctionDialog.js +172 -157
- package/src/sap/rules/ui/ast/util/LoopFunctionDialog.js +186 -163
- package/src/sap/rules/ui/ast/util/SelectFunctionDialog.js +205 -182
- package/src/sap/rules/ui/ast/util/utilsBase.js +85 -0
- package/src/sap/rules/ui/codemirror/addon/hint/show-hint.js +8 -4
- package/src/sap/rules/ui/i18n/messagebundle_ar.properties +1 -1
- package/src/sap/rules/ui/i18n/messagebundle_cnr.properties +34 -34
- package/src/sap/rules/ui/i18n/messagebundle_en_US_saprigi.properties +285 -285
- package/src/sap/rules/ui/i18n/messagebundle_hu.properties +1 -1
- package/src/sap/rules/ui/i18n/messagebundle_mk.properties +3 -3
- package/src/sap/rules/ui/i18n/messagebundle_sh.properties +88 -88
- package/src/sap/rules/ui/i18n/messagebundle_uk.properties +5 -5
- package/src/sap/rules/ui/library.js +6 -6
- package/src/sap/rules/ui/parser/businessLanguage/lib/IDPParser.js +115 -114
- package/src/sap/rules/ui/parser/businessLanguage/lib/antlr3_all_min.js +4 -4
- package/src/sap/rules/ui/parser/businessLanguage/lib/autoCompleteUtils.js +4 -3
- package/src/sap/rules/ui/parser/businessLanguage/lib/conversionUtils.js +10 -6
- package/src/sap/rules/ui/parser/businessLanguage/lib/entityModel.js +8 -7
- package/src/sap/rules/ui/parser/businessLanguage/lib/entityModelConstractor.js +17 -16
- package/src/sap/rules/ui/parser/businessLanguage/lib/parsingBackendMediator.js +10 -9
- package/src/sap/rules/ui/parser/businessLanguage/lib/termsUtils.js +4 -3
- package/src/sap/rules/ui/parser/i18n/messages_descriptions_cnr.properties +57 -57
- package/src/sap/rules/ui/parser/i18n/messages_descriptions_en_US_saprigi.properties +210 -210
- package/src/sap/rules/ui/parser/i18n/messages_descriptions_mk.properties +1 -1
- package/src/sap/rules/ui/parser/i18n/messages_descriptions_sh.properties +90 -90
- package/src/sap/rules/ui/parser/i18n/messages_descriptions_sr.properties +1 -1
- package/src/sap/rules/ui/parser/i18n/messages_descriptions_uk.properties +2 -2
- package/src/sap/rules/ui/parser/i18n/op_messages_descriptions_cnr.properties +19 -19
- package/src/sap/rules/ui/parser/i18n/op_messages_descriptions_en_US_saprigi.properties +26 -26
- package/src/sap/rules/ui/parser/i18n/op_messages_descriptions_mk.properties +2 -2
- package/src/sap/rules/ui/parser/i18n/op_messages_descriptions_sh.properties +26 -26
- package/src/sap/rules/ui/parser/infrastructure/errorHandling/hrfException.js +3 -3
- package/src/sap/rules/ui/parser/infrastructure/locale/lib/resourceBundleContext.js +4 -3
- package/src/sap/rules/ui/parser/infrastructure/messageHandling/lib/responseCollector.js +8 -7
- package/src/sap/rules/ui/parser/ruleBody/lib/ruleBody.js +8 -7
- package/src/sap/rules/ui/parser/ruleBody/lib/ruleBodyConvertor.js +4 -3
- package/src/sap/rules/ui/parser/ruleBody/lib/ruleBodyValidator.js +9 -8
- package/src/sap/rules/ui/providers/ValueHelpDialogProvider.js +63 -46
- package/src/sap/rules/ui/providers/ValueHelpProvider.js +8 -7
- package/src/sap/rules/ui/services/AstExpressionLanguage.js +12 -10
- package/src/sap/rules/ui/services/ExpressionLanguage.js +89 -83
- package/src/sap/rules/ui/type/DecisionTableCell.js +2 -2
- package/src/sap/rules/ui/type/DecisionTableHeader.js +3 -3
- package/src/sap/rules/ui/type/Expression.js +3 -3
- package/src/sap/rules/ui/type/ExpressionAbs.js +5 -5
package/package.json
CHANGED
|
@@ -6,8 +6,7 @@ sap.ui.define([
|
|
|
6
6
|
"sap/m/ResponsivePopover",
|
|
7
7
|
"sap/m/List",
|
|
8
8
|
"sap/ui/model/json/JSONModel",
|
|
9
|
-
"sap/m/
|
|
10
|
-
"sap/m/PlacementType",
|
|
9
|
+
"sap/m/library",
|
|
11
10
|
"sap/m/StandardListItem",
|
|
12
11
|
"sap/ui/core/CustomData",
|
|
13
12
|
"sap/ui/model/Sorter",
|
|
@@ -23,13 +22,21 @@ sap.ui.define([
|
|
|
23
22
|
"sap/rules/ui/ast/parser/bundlelibrary",
|
|
24
23
|
"sap/ui/core/LocaleData",
|
|
25
24
|
"sap/rules/ui/ast/util/LoopFunctionDialog",
|
|
25
|
+
"sap/rules/ui/ast/util/utilsBase",
|
|
26
|
+
"sap/ui/core/EventBus",
|
|
27
|
+
"sap/base/i18n/Formatting",
|
|
28
|
+
"sap/ui/core/format/DateFormat",
|
|
29
|
+
"sap/ui/Device",
|
|
30
|
+
"sap/ui/core/Lib",
|
|
31
|
+
"sap/ui/core/Element",
|
|
26
32
|
"./AstExpressionBasicRenderer"
|
|
27
|
-
|
|
28
|
-
], function (Log, jQuery, library, Control, ResponsivePopover, List, JSONModel,
|
|
33
|
+
|
|
34
|
+
], function (Log, jQuery, library, Control, ResponsivePopover, List, JSONModel, mobileLibrary, StandardListItem, CustomData, Sorter,
|
|
29
35
|
infraUtils, AstExpressionLanguage, ExpressionAdvanced, AutoCompleteSuggestionContent, ExpressionBase, Constants, AggregateFunctionDialog,
|
|
30
|
-
SelectFunctionDialog, TermsProvider, astBundleLibrary, LocaleData, LoopFunctionDialog, AstExpressionBasicRenderer) {
|
|
36
|
+
SelectFunctionDialog, TermsProvider, astBundleLibrary, LocaleData, LoopFunctionDialog, UtilsBase, EventBus, Formatting, DateFormat, Device, coreLib, Element, AstExpressionBasicRenderer) {
|
|
31
37
|
"use strict";
|
|
32
38
|
|
|
39
|
+
var PlacementType = mobileLibrary.PlacementType;
|
|
33
40
|
var AstExpressionBasic = ExpressionBase.extend("sap.rules.ui.AstExpressionBasic", {
|
|
34
41
|
metadata: {
|
|
35
42
|
properties: {
|
|
@@ -127,8 +134,8 @@ sap.ui.define([
|
|
|
127
134
|
},
|
|
128
135
|
|
|
129
136
|
init: function () {
|
|
130
|
-
this.infraUtils = new
|
|
131
|
-
this.oBundle =
|
|
137
|
+
this.infraUtils = new UtilsBase.utilsBaseLib();
|
|
138
|
+
this.oBundle = coreLib.getResourceBundleFor("sap.rules.ui.i18n");
|
|
132
139
|
this.aggregateFunctionCallBack = jQuery.proxy(this._updateAggregateFunction, this);
|
|
133
140
|
this.functionCallBack = jQuery.proxy(this._updateSelectFunction, this);
|
|
134
141
|
this.loopFunctionCallBack = jQuery.proxy(this._updateLoopFunction, this);
|
|
@@ -160,7 +167,7 @@ sap.ui.define([
|
|
|
160
167
|
this.filterText = "";
|
|
161
168
|
this.filterTextLength = 0; // For finding cursor position inside the current span
|
|
162
169
|
this.isFirstTimeRendering = true;
|
|
163
|
-
var oEventBus =
|
|
170
|
+
var oEventBus = EventBus.getInstance();
|
|
164
171
|
oEventBus.subscribeOnce("sap.ui.rules","_onHiddenSelected",this._hiddenAccessModeSelected,this);
|
|
165
172
|
},
|
|
166
173
|
|
|
@@ -192,7 +199,7 @@ sap.ui.define([
|
|
|
192
199
|
this.referenceId = "";
|
|
193
200
|
this.isAutoSuggestionRequired = true;
|
|
194
201
|
this.dotInOperationsContext = false;
|
|
195
|
-
this._oAstExpressionLanguage =
|
|
202
|
+
this._oAstExpressionLanguage = Element.getElementById(this.getAstExpressionLanguage());
|
|
196
203
|
this._input = this.$("input");
|
|
197
204
|
this._validateControl();
|
|
198
205
|
this._input[0].contentEditable = this.getEditable();
|
|
@@ -327,7 +334,7 @@ sap.ui.define([
|
|
|
327
334
|
inputText = this.getAttributeInfo() + " " + Constants.EQUAL + " ";
|
|
328
335
|
}
|
|
329
336
|
if (!this._oAstExpressionLanguage) {
|
|
330
|
-
this._oAstExpressionLanguage =
|
|
337
|
+
this._oAstExpressionLanguage = Element.getElementById(this.getAstExpressionLanguage());
|
|
331
338
|
}
|
|
332
339
|
if (this.getDataObjectInfo() && this.getIsAttributeContext()) {
|
|
333
340
|
_attributeContext = this.getIsAttributeContext();
|
|
@@ -851,18 +858,18 @@ sap.ui.define([
|
|
|
851
858
|
|
|
852
859
|
//Returns date or time stamp formatter based on business data type
|
|
853
860
|
_getDateTimeFormatter: function (tokenType) {
|
|
854
|
-
var oLocale =
|
|
861
|
+
var oLocale = Formatting.getLanguageTag();
|
|
855
862
|
var oLocaleData = LocaleData.getInstance(oLocale);
|
|
856
863
|
if (tokenType === Constants.DATEBUSINESSDATATYPE) {
|
|
857
864
|
var datePattern = oLocaleData.getDatePattern('medium');
|
|
858
|
-
var dateFormatter =
|
|
865
|
+
var dateFormatter = DateFormat.getDateInstance({
|
|
859
866
|
pattern: datePattern
|
|
860
867
|
});
|
|
861
868
|
return dateFormatter;
|
|
862
869
|
} else if (tokenType === Constants.TIMEBUSINESSDATATYPE) {
|
|
863
870
|
var datePattern = oLocaleData.getDatePattern('medium');
|
|
864
871
|
var timePattern = oLocaleData.getTimePattern('medium');
|
|
865
|
-
var dateTimeFormatter =
|
|
872
|
+
var dateTimeFormatter = DateFormat.getDateTimeInstance({
|
|
866
873
|
pattern: datePattern + " " + timePattern
|
|
867
874
|
});
|
|
868
875
|
return dateTimeFormatter;
|
|
@@ -921,7 +928,7 @@ sap.ui.define([
|
|
|
921
928
|
keyCodes = [16, 17, 18, 93, 13, 9, 35, 36, 45, 34, 33, 40, 37, 38, 39, 27, 44, 145, 19, 112, 113, 114, 115, 116, 117, 118,
|
|
922
929
|
119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135
|
|
923
930
|
]; //Non printable keys refer https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
|
|
924
|
-
var isMac =
|
|
931
|
+
var isMac = Device.os.name === "mac";
|
|
925
932
|
this.aKeyTracker = [];
|
|
926
933
|
if (!this._focusedOut) {
|
|
927
934
|
that._setCurrentCursorPosition(that._cursorPostion);
|
|
@@ -1034,7 +1041,7 @@ sap.ui.define([
|
|
|
1034
1041
|
|
|
1035
1042
|
//After space keyup, this is needed, else it continues
|
|
1036
1043
|
// till _handleKeyUpEvent and closes the autosuggestion
|
|
1037
|
-
if (event.key === "Control" || (
|
|
1044
|
+
if (event.key === "Control" || (Device.os.name === "mac" && event.key === "Alt") || event.keyCode === 35 || event.keyCode === 36 || event.keyCode === 37 || event.keyCode === 39 || event.keyCode === 20 || event.keyCode === 144) {
|
|
1038
1045
|
return;
|
|
1039
1046
|
}
|
|
1040
1047
|
|
|
@@ -1961,7 +1968,7 @@ sap.ui.define([
|
|
|
1961
1968
|
setTimeout(function(){
|
|
1962
1969
|
if (that._oAutoSuggestionPopUp && !that._oAutoSuggestionPopUp.isOpen() && that._focusedOut == false) {
|
|
1963
1970
|
that._oAutoSuggestionPopUp.destroyContent();
|
|
1964
|
-
that._oAutoSuggestionPopUp.addContent(new
|
|
1971
|
+
that._oAutoSuggestionPopUp.addContent(new AutoCompleteSuggestionContent({
|
|
1965
1972
|
content: suggestionContent.autoComplete,
|
|
1966
1973
|
reference: that._reference,
|
|
1967
1974
|
enableAggregateFunctionVocabulary: that._enableAggregateFunctionVocabulary,
|
|
@@ -1975,7 +1982,7 @@ sap.ui.define([
|
|
|
1975
1982
|
that._oAutoSuggestionPopUp.openBy(that.getDomRef("input"));
|
|
1976
1983
|
} else {
|
|
1977
1984
|
that._oAutoSuggestionPopUp.destroyContent();
|
|
1978
|
-
that._oAutoSuggestionPopUp.addContent(new
|
|
1985
|
+
that._oAutoSuggestionPopUp.addContent(new AutoCompleteSuggestionContent({
|
|
1979
1986
|
content: suggestionContent.autoComplete,
|
|
1980
1987
|
reference: that._reference,
|
|
1981
1988
|
enableAggregateFunctionVocabulary: that._enableAggregateFunctionVocabulary,
|
|
@@ -2687,7 +2694,7 @@ sap.ui.define([
|
|
|
2687
2694
|
var that = this;
|
|
2688
2695
|
if (!this._oAutoSuggestionPopUp) {
|
|
2689
2696
|
this._oAutoSuggestionPopUp = new ResponsivePopover("autoCompletePopover_" + this._createUUID(),{
|
|
2690
|
-
content: new
|
|
2697
|
+
content: new AutoCompleteSuggestionContent(),
|
|
2691
2698
|
showArrow: false,
|
|
2692
2699
|
placement: PlacementType.Vertical,
|
|
2693
2700
|
horizontalScrolling: true,
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/ui/thirdparty/jquery",
|
|
10
|
-
"sap/ui/
|
|
11
|
-
|
|
10
|
+
"sap/ui/Device",
|
|
11
|
+
"sap/ui/core/syncStyleClass",
|
|
12
|
+
"sap/ui/core/Lib"
|
|
13
|
+
], function (jQuery, Device, syncStyleClass, coreLib) {
|
|
12
14
|
"use strict";
|
|
13
15
|
|
|
14
16
|
/**
|
|
@@ -35,9 +37,9 @@ sap.ui.define([
|
|
|
35
37
|
if (oControl.getParent() instanceof jQuery){
|
|
36
38
|
syncStyleClass("sapUiSizeCozy", oControl.getParent(), this.oControl);
|
|
37
39
|
}
|
|
38
|
-
var oBundle =
|
|
40
|
+
var oBundle = coreLib.getResourceBundleFor("sap.rules.ui.i18n");
|
|
39
41
|
var placeHolderText = oBundle.getText("ctrlSpaceCue");
|
|
40
|
-
if(
|
|
42
|
+
if(Device.os.name == "mac"){
|
|
41
43
|
placeHolderText = oBundle.getText("optionSpaceCue");
|
|
42
44
|
}
|
|
43
45
|
if(placeHolderText.length>50 && oControl.getParent().getId() === "popover") {
|
|
@@ -3,6 +3,7 @@ sap.ui.define([
|
|
|
3
3
|
"./library",
|
|
4
4
|
"sap/ui/core/Control",
|
|
5
5
|
"sap/m/List",
|
|
6
|
+
"sap/m/CustomListItem",
|
|
6
7
|
"sap/ui/model/json/JSONModel",
|
|
7
8
|
"sap/rules/ui/ast/autoCompleteContent/AutoSuggestionVocabularyPanel",
|
|
8
9
|
"sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFixedValuePanel",
|
|
@@ -19,14 +20,15 @@ sap.ui.define([
|
|
|
19
20
|
"sap/rules/ui/ast/autoCompleteContent/AutoSuggestionSelectFunctionPanel",
|
|
20
21
|
"sap/rules/ui/ast/autoCompleteContent/AutoSuggestionOperationsPanel",
|
|
21
22
|
"sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanel",
|
|
23
|
+
"sap/rules/ui/ast/util/utilsBase",
|
|
22
24
|
"./AutoCompleteSuggestionContentRenderer"
|
|
23
25
|
|
|
24
|
-
], function (jQuery, library, Control, List, JSONModel, AutoSuggestionVocabularyPanel, AutoSuggestionFixedValuePanel,
|
|
26
|
+
], function (jQuery, library, Control, List, CustomListItem, JSONModel, AutoSuggestionVocabularyPanel, AutoSuggestionFixedValuePanel,
|
|
25
27
|
AutoSuggestionMathematicalOperatorPanel,
|
|
26
28
|
AutoSuggestionComparisionOperatorPanel, AutoSuggestionLogicalOperatorPanel, AutoSuggestionAggregateFunctionPanel,
|
|
27
29
|
AutoSuggestionArrayOperatorPanel, AutoSuggestionRangeOperatorPanel, AutoSuggestionMiscellaneousOperatorPanel,
|
|
28
30
|
AutoSuggestionFunctionalOperatorPanel, AutoSuggestionAdvancedFunctionPanel, AutoSuggestionTimeAndDurationFunctionPanel,
|
|
29
|
-
AutoSuggestionSelectFunctionPanel, AutoSuggestionOperationsPanel, AutoSuggestionLoopFunctionPanel, AutoCompleteSuggestionContentRenderer) {
|
|
31
|
+
AutoSuggestionSelectFunctionPanel, AutoSuggestionOperationsPanel, AutoSuggestionLoopFunctionPanel,UtilsBase, AutoCompleteSuggestionContentRenderer) {
|
|
30
32
|
"use strict";
|
|
31
33
|
|
|
32
34
|
var AutoCompleteSuggestionContent = Control.extend("sap.rules.ui.AutoCompleteSuggestionContent", {
|
|
@@ -72,7 +74,7 @@ sap.ui.define([
|
|
|
72
74
|
},
|
|
73
75
|
|
|
74
76
|
init: function () {
|
|
75
|
-
this.infraUtils = new
|
|
77
|
+
this.infraUtils = new UtilsBase.utilsBaseLib();
|
|
76
78
|
this.initializeVariables();
|
|
77
79
|
this.needCreateLayout = true;
|
|
78
80
|
},
|
|
@@ -92,7 +94,7 @@ sap.ui.define([
|
|
|
92
94
|
initializeVariables: function () {},
|
|
93
95
|
|
|
94
96
|
_createLayout: function () {
|
|
95
|
-
return new
|
|
97
|
+
return new List();
|
|
96
98
|
},
|
|
97
99
|
|
|
98
100
|
_getAutoSuggestionList: function () {
|
|
@@ -112,11 +114,11 @@ sap.ui.define([
|
|
|
112
114
|
|
|
113
115
|
//Operations section - applicable only for text rule
|
|
114
116
|
if (this.Operations && this.Operations.length > 0 ) {
|
|
115
|
-
var operationsPanel = new
|
|
117
|
+
var operationsPanel = new AutoSuggestionOperationsPanel({
|
|
116
118
|
reference: that._reference,
|
|
117
119
|
data: that.Operations
|
|
118
120
|
});
|
|
119
|
-
this.getAggregation("mainLayout").addItem(new
|
|
121
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
120
122
|
content: operationsPanel
|
|
121
123
|
}));
|
|
122
124
|
}
|
|
@@ -124,13 +126,13 @@ sap.ui.define([
|
|
|
124
126
|
// Vocabulary Section
|
|
125
127
|
if (this.VocabularyTerms && this.VocabularyTerms.length > 0) {
|
|
126
128
|
this.VocabularyTerms = this._handleMissingLabels(this.VocabularyTerms);
|
|
127
|
-
var vocabularyPanel = new
|
|
129
|
+
var vocabularyPanel = new AutoSuggestionVocabularyPanel({
|
|
128
130
|
reference: that._reference,
|
|
129
131
|
dialogOpenedCallbackReference: that._dialogOpenedCallbackReference,
|
|
130
132
|
data: that.VocabularyTerms,
|
|
131
133
|
context: that.suggestionContext
|
|
132
134
|
});
|
|
133
|
-
this.getAggregation("mainLayout").addItem(new
|
|
135
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
134
136
|
content: vocabularyPanel
|
|
135
137
|
}));
|
|
136
138
|
}
|
|
@@ -142,14 +144,14 @@ sap.ui.define([
|
|
|
142
144
|
|
|
143
145
|
// Fixed Value Section
|
|
144
146
|
if (this.autoSuggestions.showLiteral && !this._enableAggregateFunctionVocabulary) {
|
|
145
|
-
var fixedValuePanel = new
|
|
147
|
+
var fixedValuePanel = new AutoSuggestionFixedValuePanel({
|
|
146
148
|
reference: that._reference,
|
|
147
149
|
vocabularyInfo: that.getVocabularyInfo(),
|
|
148
150
|
dialogOpenedCallbackReference: that._dialogOpenedCallbackReference,
|
|
149
151
|
data: this.autoSuggestions,
|
|
150
152
|
inputValue: this.autoSuggestions.literalInput
|
|
151
153
|
});
|
|
152
|
-
this.getAggregation("mainLayout").addItem(new
|
|
154
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
153
155
|
content: fixedValuePanel
|
|
154
156
|
}));
|
|
155
157
|
|
|
@@ -160,68 +162,68 @@ sap.ui.define([
|
|
|
160
162
|
this.VocabularyOperators = this.autoSuggestions.categories.operators;
|
|
161
163
|
//Arithmetic Operators
|
|
162
164
|
if (this.VocabularyOperators.arithmetic && this.VocabularyOperators.arithmetic.length > 0) {
|
|
163
|
-
var mathematicalOperatorsPanel = new
|
|
165
|
+
var mathematicalOperatorsPanel = new AutoSuggestionMathematicalOperatorPanel({
|
|
164
166
|
reference: that._reference,
|
|
165
167
|
data: this.VocabularyOperators,
|
|
166
168
|
expand: this.getExpand()
|
|
167
169
|
});
|
|
168
|
-
this.getAggregation("mainLayout").addItem(new
|
|
170
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
169
171
|
content: mathematicalOperatorsPanel
|
|
170
172
|
}));
|
|
171
173
|
}
|
|
172
174
|
// comparision operators
|
|
173
175
|
if (this.VocabularyOperators.comparision && this.VocabularyOperators.comparision.length > 0 && !this._enableAggregateFunctionVocabulary) {
|
|
174
|
-
var comparisonOperatorsPanel = new
|
|
176
|
+
var comparisonOperatorsPanel = new AutoSuggestionComparisionOperatorPanel({
|
|
175
177
|
reference: that._reference,
|
|
176
178
|
data: that.VocabularyOperators,
|
|
177
179
|
expand: this.getExpand()
|
|
178
180
|
});
|
|
179
|
-
this.getAggregation("mainLayout").addItem(new
|
|
181
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
180
182
|
content: comparisonOperatorsPanel
|
|
181
183
|
}));
|
|
182
184
|
}
|
|
183
185
|
// logical operators
|
|
184
186
|
if (this.VocabularyOperators.logical && this.VocabularyOperators.logical.length > 0 && !this._enableAggregateFunctionVocabulary) {
|
|
185
|
-
var logicalOperatorsPanel = new
|
|
187
|
+
var logicalOperatorsPanel = new AutoSuggestionLogicalOperatorPanel({
|
|
186
188
|
reference: that._reference,
|
|
187
189
|
data: that.VocabularyOperators,
|
|
188
190
|
expand: this.getExpand()
|
|
189
191
|
});
|
|
190
|
-
this.getAggregation("mainLayout").addItem(new
|
|
192
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
191
193
|
content: logicalOperatorsPanel
|
|
192
194
|
}));
|
|
193
195
|
}
|
|
194
196
|
// array operators
|
|
195
197
|
if (this.VocabularyOperators.array && this.VocabularyOperators.array.length > 0 && !this._enableAggregateFunctionVocabulary) {
|
|
196
|
-
var arrayOperatorsPanel = new
|
|
198
|
+
var arrayOperatorsPanel = new AutoSuggestionArrayOperatorPanel({
|
|
197
199
|
reference: that._reference,
|
|
198
200
|
data: that.VocabularyOperators,
|
|
199
201
|
expand: this.getExpand()
|
|
200
202
|
});
|
|
201
|
-
this.getAggregation("mainLayout").addItem(new
|
|
203
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
202
204
|
content: arrayOperatorsPanel
|
|
203
205
|
}));
|
|
204
206
|
}
|
|
205
207
|
// range operators
|
|
206
208
|
if (this.VocabularyOperators.range && this.VocabularyOperators.range.length > 0 && !this._enableAggregateFunctionVocabulary) {
|
|
207
|
-
var rangeOperatorsPanel = new
|
|
209
|
+
var rangeOperatorsPanel = new AutoSuggestionRangeOperatorPanel({
|
|
208
210
|
reference: that._reference,
|
|
209
211
|
data: that.VocabularyOperators,
|
|
210
212
|
expand: this.getExpand()
|
|
211
213
|
});
|
|
212
|
-
this.getAggregation("mainLayout").addItem(new
|
|
214
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
213
215
|
content: rangeOperatorsPanel
|
|
214
216
|
}));
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
// functional operators
|
|
218
220
|
if (this.VocabularyOperators.functional && this.VocabularyOperators.functional.length > 0 && !this._enableAggregateFunctionVocabulary) {
|
|
219
|
-
var functionalOperatorsPanel = new
|
|
221
|
+
var functionalOperatorsPanel = new AutoSuggestionFunctionalOperatorPanel({
|
|
220
222
|
reference: that._reference,
|
|
221
223
|
data: that.VocabularyOperators,
|
|
222
224
|
expand: this.getExpand()
|
|
223
225
|
});
|
|
224
|
-
this.getAggregation("mainLayout").addItem(new
|
|
226
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
225
227
|
content: functionalOperatorsPanel
|
|
226
228
|
}));
|
|
227
229
|
}
|
|
@@ -231,12 +233,12 @@ sap.ui.define([
|
|
|
231
233
|
if (this.autoSuggestions && this.autoSuggestions.categories && this.autoSuggestions.categories.functions && !this._enableAggregateFunctionVocabulary) {
|
|
232
234
|
this.fuctions = this.autoSuggestions.categories.functions;
|
|
233
235
|
if (this.fuctions.advanced) {
|
|
234
|
-
var AdvancedFunctionsPanel = new
|
|
236
|
+
var AdvancedFunctionsPanel = new AutoSuggestionAdvancedFunctionPanel({
|
|
235
237
|
reference: that._reference,
|
|
236
238
|
data: that.fuctions.advanced,
|
|
237
239
|
expand: this.getExpand()
|
|
238
240
|
});
|
|
239
|
-
this.getAggregation("mainLayout").addItem(new
|
|
241
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
240
242
|
content: AdvancedFunctionsPanel
|
|
241
243
|
}));
|
|
242
244
|
}
|
|
@@ -246,13 +248,13 @@ sap.ui.define([
|
|
|
246
248
|
if (this.autoSuggestions && this.autoSuggestions.categories && this.autoSuggestions.categories.functions && !this._enableAggregateFunctionVocabulary) {
|
|
247
249
|
this.fuctions = this.autoSuggestions.categories.functions;
|
|
248
250
|
if (this.fuctions.time_duration) {
|
|
249
|
-
var TimeAndDurationFunctionsPanel = new
|
|
251
|
+
var TimeAndDurationFunctionsPanel = new AutoSuggestionTimeAndDurationFunctionPanel({
|
|
250
252
|
reference: that._reference,
|
|
251
253
|
data: that.fuctions.time_duration,
|
|
252
254
|
dialogOpenedCallbackReference: that._dialogOpenedCallbackReference,
|
|
253
255
|
expand: this.getExpand()
|
|
254
256
|
});
|
|
255
|
-
this.getAggregation("mainLayout").addItem(new
|
|
257
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
256
258
|
content: TimeAndDurationFunctionsPanel
|
|
257
259
|
}));
|
|
258
260
|
}
|
|
@@ -262,12 +264,12 @@ sap.ui.define([
|
|
|
262
264
|
if (this.autoSuggestions && this.autoSuggestions.categories && this.autoSuggestions.categories.operators && !this._enableAggregateFunctionVocabulary) {
|
|
263
265
|
this.VocabularyOperators = this.autoSuggestions.categories.operators;
|
|
264
266
|
if (this.VocabularyOperators.miscellaneous && this.VocabularyOperators.miscellaneous.length > 0 && !this._enableAggregateFunctionVocabulary) {
|
|
265
|
-
var miscellaneousOperatorsPanel = new
|
|
267
|
+
var miscellaneousOperatorsPanel = new AutoSuggestionMiscellaneousOperatorPanel({
|
|
266
268
|
reference: that._reference,
|
|
267
269
|
data: that.VocabularyOperators,
|
|
268
270
|
expand: this.getExpand()
|
|
269
271
|
});
|
|
270
|
-
this.getAggregation("mainLayout").addItem(new
|
|
272
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
271
273
|
content: miscellaneousOperatorsPanel
|
|
272
274
|
}));
|
|
273
275
|
}
|
|
@@ -276,13 +278,13 @@ sap.ui.define([
|
|
|
276
278
|
if (this.autoSuggestions && this.autoSuggestions.categories && this.autoSuggestions.categories.functions) {
|
|
277
279
|
this.fuctions = this.autoSuggestions.categories.functions;
|
|
278
280
|
if (this.fuctions.selection) {
|
|
279
|
-
var SelectFunctionsPanel = new
|
|
281
|
+
var SelectFunctionsPanel = new AutoSuggestionSelectFunctionPanel({
|
|
280
282
|
reference: that._reference,
|
|
281
283
|
dialogOpenedCallbackReference: that._dialogOpenedCallbackReference,
|
|
282
284
|
data: that.fuctions,
|
|
283
285
|
astExpressionLanguage: that.getVocabularyInfo()
|
|
284
286
|
});
|
|
285
|
-
this.getAggregation("mainLayout").addItem(new
|
|
287
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
286
288
|
content: SelectFunctionsPanel,
|
|
287
289
|
}));
|
|
288
290
|
}
|
|
@@ -292,13 +294,13 @@ sap.ui.define([
|
|
|
292
294
|
!this._enableAggregateFunctionWhereClause) {
|
|
293
295
|
this.fuctions = this.autoSuggestions.categories.functions;
|
|
294
296
|
if (this.fuctions.aggregate) {
|
|
295
|
-
var AggregateFunctionsPanel = new
|
|
297
|
+
var AggregateFunctionsPanel = new AutoSuggestionAggregateFunctionPanel({
|
|
296
298
|
reference: that._reference,
|
|
297
299
|
dialogOpenedCallbackReference: that._dialogOpenedCallbackReference,
|
|
298
300
|
data: that.fuctions,
|
|
299
301
|
astExpressionLanguage: that.getVocabularyInfo()
|
|
300
302
|
});
|
|
301
|
-
this.getAggregation("mainLayout").addItem(new
|
|
303
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
302
304
|
content: AggregateFunctionsPanel,
|
|
303
305
|
}));
|
|
304
306
|
}
|
|
@@ -306,13 +308,13 @@ sap.ui.define([
|
|
|
306
308
|
|
|
307
309
|
//Loop Functions
|
|
308
310
|
if (this.autoSuggestions && this.autoSuggestions.categories && this.autoSuggestions.categories.functions && this.autoSuggestions.categories.functions.loop) {
|
|
309
|
-
var LoopFunctionsPanel = new
|
|
311
|
+
var LoopFunctionsPanel = new AutoSuggestionLoopFunctionPanel({
|
|
310
312
|
reference: that._reference,
|
|
311
313
|
dialogOpenedCallbackReference: that._dialogOpenedCallbackReference,
|
|
312
314
|
data: that.fuctions,
|
|
313
315
|
astExpressionLanguage: that.getVocabularyInfo()
|
|
314
316
|
});
|
|
315
|
-
this.getAggregation("mainLayout").addItem(new
|
|
317
|
+
this.getAggregation("mainLayout").addItem(new CustomListItem({
|
|
316
318
|
content: LoopFunctionsPanel,
|
|
317
319
|
}));
|
|
318
320
|
}
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
"jquery.sap.global",
|
|
10
9
|
"./library",
|
|
11
10
|
"sap/ui/base/ManagedObject"
|
|
12
|
-
], function(
|
|
11
|
+
], function(library, ManagedObject) {
|
|
13
12
|
"use strict";
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -25,7 +24,7 @@ sap.ui.define([
|
|
|
25
24
|
* @extends ManagedObject
|
|
26
25
|
*
|
|
27
26
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
27
|
+
* @version 1.122.0
|
|
29
28
|
*
|
|
30
29
|
* @constructor
|
|
31
30
|
* @private
|
|
@@ -52,7 +51,7 @@ sap.ui.define([
|
|
|
52
51
|
}
|
|
53
52
|
});
|
|
54
53
|
|
|
55
|
-
|
|
54
|
+
oShpion.prototype.setPropertyToSpy = function(oValue) {
|
|
56
55
|
this.setProperty("propertyToSpy", oValue);
|
|
57
56
|
|
|
58
57
|
// null means the property was unbinded
|