@sapui5/sap.rules.ui 1.106.0 → 1.108.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 +27 -6
- package/src/sap/rules/ui/AstExpressionBasicRenderer.js +71 -55
- package/src/sap/rules/ui/AutoCompleteSuggestionContent.js +5 -3
- package/src/sap/rules/ui/AutoCompleteSuggestionContentRenderer.js +39 -40
- package/src/sap/rules/ui/BindingSpy.js +1 -1
- package/src/sap/rules/ui/DecisionTable.js +2157 -2154
- package/src/sap/rules/ui/DecisionTableCell.js +7 -4
- package/src/sap/rules/ui/DecisionTableCellAstExpressionBasic.js +7 -4
- package/src/sap/rules/ui/DecisionTableCellAstExpressionBasicRenderer.js +5 -3
- package/src/sap/rules/ui/DecisionTableCellExpressionAdvanced.js +238 -236
- package/src/sap/rules/ui/DecisionTableCellExpressionAdvancedRenderer.js +6 -4
- package/src/sap/rules/ui/DecisionTableCellExpressionBasic.js +7 -4
- package/src/sap/rules/ui/DecisionTableCellExpressionBasicRenderer.js +6 -4
- package/src/sap/rules/ui/DecisionTableCellRenderer.js +10 -10
- package/src/sap/rules/ui/DecisionTableConfiguration.js +1 -1
- package/src/sap/rules/ui/DecisionTableRenderer.js +163 -161
- package/src/sap/rules/ui/DecisionTableSettings.js +6 -4
- package/src/sap/rules/ui/DecisionTableSettingsOld.js +963 -961
- package/src/sap/rules/ui/DecisionTableSettingsOldRenderer.js +9 -10
- package/src/sap/rules/ui/DecisionTableSettingsRenderer.js +9 -10
- package/src/sap/rules/ui/ExpressionAdvanced.js +1726 -1724
- package/src/sap/rules/ui/ExpressionAdvancedRenderer.js +8 -8
- package/src/sap/rules/ui/ExpressionBase.js +1 -1
- package/src/sap/rules/ui/ExpressionBasic.js +7 -4
- package/src/sap/rules/ui/ExpressionBasicRenderer.js +8 -7
- package/src/sap/rules/ui/InstructionRenderer.js +73 -33
- package/src/sap/rules/ui/RuleBase.js +1 -1
- package/src/sap/rules/ui/RuleBuilder.js +433 -430
- package/src/sap/rules/ui/RuleBuilderRenderer.js +8 -9
- package/src/sap/rules/ui/TextRule.js +7 -4
- package/src/sap/rules/ui/TextRuleConfiguration.js +1 -1
- package/src/sap/rules/ui/TextRuleRenderer.js +45 -44
- package/src/sap/rules/ui/TextRuleSettings.js +6 -4
- package/src/sap/rules/ui/TextRuleSettingsRenderer.js +9 -9
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAdvancedFunctionPanel.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAdvancedFunctionPanelRenderer.js +10 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAggregateFunctionPanel.js +100 -98
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAggregateFunctionPanelRenderer.js +9 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionArrayOperatorPanel.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionArrayOperatorPanelRenderer.js +10 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionComparisionOperatorPanel.js +109 -107
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionComparisionOperatorPanelRenderer.js +39 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionDateAndTimePanel.js +5 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionDateAndTimePanelRenderer.js +10 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFixedValuePanel.js +840 -838
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFixedValuePanelRenderer.js +40 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFunctionalOperatorPanel.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFunctionalOperatorPanelRenderer.js +10 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLogicalOperatorPanel.js +112 -110
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLogicalOperatorPanelRenderer.js +39 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanel.js +100 -98
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanelRenderer.js +9 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMathematicalOperatorPanel.js +122 -119
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMathematicalOperatorPanelRenderer.js +39 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMiscellaneousOperatorPanel.js +5 -2
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMiscellaneousOperatorPanelRenderer.js +10 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionOperationsPanel.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionOperationsPanelRenderer.js +10 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionRangeOperatorPanel.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionRangeOperatorPanelRenderer.js +10 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionSelectFunctionPanel.js +108 -106
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionSelectFunctionPanelRenderer.js +40 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionTimeAndDurationFunctionPanel.js +254 -252
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionTimeAndDurationFunctionPanelRenderer.js +40 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionVocabularyPanel.js +631 -629
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionVocabularyPanelRenderer.js +40 -40
- package/src/sap/rules/ui/library.js +31 -10
- package/src/sap/rules/ui/type/ExpressionAbs.js +1 -1
package/package.json
CHANGED
|
@@ -22,11 +22,12 @@ sap.ui.define([
|
|
|
22
22
|
"sap/rules/ui/ast/provider/TermsProvider",
|
|
23
23
|
"sap/rules/ui/ast/parser/bundlelibrary",
|
|
24
24
|
"sap/ui/core/LocaleData",
|
|
25
|
-
"sap/rules/ui/ast/util/LoopFunctionDialog"
|
|
25
|
+
"sap/rules/ui/ast/util/LoopFunctionDialog",
|
|
26
|
+
"./AstExpressionBasicRenderer"
|
|
26
27
|
|
|
27
28
|
], function (Log, jQuery, library, Control, ResponsivePopover, List, JSONModel, ListMode, PlacementType, StandardListItem, CustomData, Sorter,
|
|
28
29
|
infraUtils, AstExpressionLanguage, ExpressionAdvanced, AutoCompleteSuggestionContent, ExpressionBase, Constants, AggregateFunctionDialog,
|
|
29
|
-
SelectFunctionDialog, TermsProvider, astBundleLibrary, LocaleData, LoopFunctionDialog) {
|
|
30
|
+
SelectFunctionDialog, TermsProvider, astBundleLibrary, LocaleData, LoopFunctionDialog, AstExpressionBasicRenderer) {
|
|
30
31
|
"use strict";
|
|
31
32
|
|
|
32
33
|
var AstExpressionBasic = ExpressionBase.extend("sap.rules.ui.AstExpressionBasic", {
|
|
@@ -916,10 +917,15 @@ sap.ui.define([
|
|
|
916
917
|
119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135
|
|
917
918
|
]; //Non printable keys refer https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
|
|
918
919
|
|
|
920
|
+
this.aKeyTracker = [];
|
|
919
921
|
if (!this._focusedOut) {
|
|
920
922
|
that._setCurrentCursorPosition(that._cursorPostion);
|
|
921
923
|
}
|
|
922
924
|
this._input.on('keydown', function (event) {
|
|
925
|
+
if(event.key != "Tab"){
|
|
926
|
+
that.aKeyTracker.push({key:event.key, keyCode:event.keyCode, pressed: true});
|
|
927
|
+
}
|
|
928
|
+
|
|
923
929
|
//Handling for Arrow Up and Arrow Down to navigate to Autosuggest popup
|
|
924
930
|
if (event.keyCode === 8 || event.keyCode == 46) { // BackSpace Keyup event handling
|
|
925
931
|
that._selectedSpans = that._getSelectedSpans();
|
|
@@ -946,6 +952,14 @@ sap.ui.define([
|
|
|
946
952
|
that.shiftKey = event.key;
|
|
947
953
|
that.bShiftPressed = false;
|
|
948
954
|
} else if (event.key === "Tab" || event.keyCode === 27) {
|
|
955
|
+
var iIndex = that.aKeyTracker.findIndex(function (oItem) { return oItem.pressed === true; });
|
|
956
|
+
if ( iIndex !== -1) {
|
|
957
|
+
var e = jQuery.Event('keyup');
|
|
958
|
+
e.which = that.aKeyTracker[iIndex];
|
|
959
|
+
e.key = that.aKeyTracker[iIndex].key;
|
|
960
|
+
e.keyCode = that.aKeyTracker[iIndex].keyCode;
|
|
961
|
+
$this.trigger(e);
|
|
962
|
+
}
|
|
949
963
|
that._closeAutoSuggestionPopup();
|
|
950
964
|
} else if (keyCodes.indexOf(event.keyCode) !== -1 && event.keyCode !== 35 && event.keyCode !== 36 && event.keyCode !== 37 &&
|
|
951
965
|
event.keyCode !== 39) { //Keys in order: End, Home, Arrow Left, Arrow Right
|
|
@@ -988,6 +1002,10 @@ sap.ui.define([
|
|
|
988
1002
|
});
|
|
989
1003
|
|
|
990
1004
|
this._input.on('keyup', function (event) {
|
|
1005
|
+
if (event.key != "Tab") {
|
|
1006
|
+
var iKeydownIndex = that.aKeyTracker.findIndex(function(oItem){return oItem.keyCode == event.keyCode});
|
|
1007
|
+
that.aKeyTracker.splice(iKeydownIndex,1);
|
|
1008
|
+
}
|
|
991
1009
|
var context = jQuery(this);
|
|
992
1010
|
var bPrintable = false;
|
|
993
1011
|
|
|
@@ -1207,6 +1225,9 @@ sap.ui.define([
|
|
|
1207
1225
|
}
|
|
1208
1226
|
this._fireChange(this.textContent);
|
|
1209
1227
|
}
|
|
1228
|
+
else if(event.relatedTarget == null){
|
|
1229
|
+
this._fireChange(this.textContent);
|
|
1230
|
+
}
|
|
1210
1231
|
},
|
|
1211
1232
|
|
|
1212
1233
|
_isAutoSuggestionPopover: function (element) {
|
|
@@ -1912,8 +1933,7 @@ sap.ui.define([
|
|
|
1912
1933
|
xPos += 10; //For clear view of cursor pos during typing (temporary fix)
|
|
1913
1934
|
var that = this;
|
|
1914
1935
|
setTimeout(function(){
|
|
1915
|
-
|
|
1916
|
-
if (that._oAutoSuggestionPopUp && !that._oAutoSuggestionPopUp.isOpen()) {
|
|
1936
|
+
if (that._oAutoSuggestionPopUp && !that._oAutoSuggestionPopUp.isOpen() && that._focusedOut == false) {
|
|
1917
1937
|
that._oAutoSuggestionPopUp.destroyContent();
|
|
1918
1938
|
that._oAutoSuggestionPopUp.addContent(new sap.rules.ui.AutoCompleteSuggestionContent({
|
|
1919
1939
|
content: suggestionContent.autoComplete,
|
|
@@ -1941,7 +1961,7 @@ sap.ui.define([
|
|
|
1941
1961
|
that._oAutoSuggestionPopUp.setOffsetX(xPos);
|
|
1942
1962
|
that._oAutoSuggestionPopUp.setOffsetY(yPos);
|
|
1943
1963
|
}
|
|
1944
|
-
if (!that._oAutoSuggestionPopUp.isOpen()) {
|
|
1964
|
+
if (!that._oAutoSuggestionPopUp.isOpen() && that._focusedOut == false) {
|
|
1945
1965
|
that._oAutoSuggestionPopUp.setOffsetX(xPos);
|
|
1946
1966
|
that._oAutoSuggestionPopUp.setOffsetY(yPos);
|
|
1947
1967
|
that._oAutoSuggestionPopUp.openBy(that.getDomRef("input"));
|
|
@@ -2988,7 +3008,8 @@ sap.ui.define([
|
|
|
2988
3008
|
}
|
|
2989
3009
|
}
|
|
2990
3010
|
|
|
2991
|
-
}
|
|
3011
|
+
},
|
|
3012
|
+
renderer: AstExpressionBasicRenderer
|
|
2992
3013
|
});
|
|
2993
3014
|
|
|
2994
3015
|
return AstExpressionBasic;
|
|
@@ -1,59 +1,75 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
/*!
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
3
|
|
|
4
4
|
(c) Copyright 2009-2016 SAP SE. All rights reserved
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
sap.ui.define([
|
|
9
|
-
"jquery
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @param {sap.ui.core.
|
|
27
|
-
* the
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
oRm.
|
|
48
|
-
oRm.
|
|
49
|
-
oRm.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
oRm.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/ui/thirdparty/jquery",
|
|
10
|
+
"sap/ui/core/syncStyleClass"
|
|
11
|
+
], function (jQuery, syncStyleClass) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* AstExpression renderer.
|
|
16
|
+
* @namespace
|
|
17
|
+
*/
|
|
18
|
+
var AstExpressionBasicRenderer = {
|
|
19
|
+
apiVersion: 2
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Renders the HTML for the given control, using the provided
|
|
24
|
+
* {@link sap.ui.core.RenderManager}.
|
|
25
|
+
*
|
|
26
|
+
* @param {sap.ui.core.RenderManager} oRm
|
|
27
|
+
* the RenderManager that can be used for writing to
|
|
28
|
+
* the Render-Output-Buffer
|
|
29
|
+
* @param {sap.ui.core.Control} oControl
|
|
30
|
+
* the control to be rendered
|
|
31
|
+
*/
|
|
32
|
+
AstExpressionBasicRenderer.render = function (oRm, oControl) {
|
|
33
|
+
|
|
34
|
+
//oRm.addClass("sapUiSizeCozy");
|
|
35
|
+
if (oControl.getParent() instanceof jQuery){
|
|
36
|
+
syncStyleClass("sapUiSizeCozy", oControl.getParent(), this.oControl);
|
|
37
|
+
}
|
|
38
|
+
var oBundle = sap.ui.getCore().getLibraryResourceBundle("sap.rules.ui.i18n");
|
|
39
|
+
var placeHolderText = oBundle.getText("ctrlSpaceCue");
|
|
40
|
+
if(placeHolderText.length>50 && oControl.getParent().getId() === "popover") {
|
|
41
|
+
placeHolderText = placeHolderText.substring(0,50) + " ...";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
var sEditable = "contenteditable=\"true\"";
|
|
45
|
+
var sPlaceHolder = "data-placeholder=\"" + placeHolderText + "\"";
|
|
46
|
+
var aAriaPlaceholder = "aria-placeholder=\"" + placeHolderText + "\"";
|
|
47
|
+
oRm.openStart("div", oControl);
|
|
48
|
+
oRm.class("sapAstExpressionInputWrapper");
|
|
49
|
+
oRm.openEnd();
|
|
50
|
+
oRm.openStart("pre");
|
|
51
|
+
oRm.class("sapAstExpressionPreSpaceMargin");
|
|
52
|
+
oRm.openEnd();
|
|
53
|
+
|
|
54
|
+
oRm.openStart("div");
|
|
55
|
+
oRm.accessibilityState(oControl, {
|
|
56
|
+
role: "textbox",
|
|
57
|
+
labelledBy:"",
|
|
58
|
+
placeholder:placeHolderText
|
|
59
|
+
|
|
60
|
+
});
|
|
61
|
+
oRm.attr("id", oControl.getId() + "-input");
|
|
62
|
+
oRm.attr("data-placeholder", placeHolderText);
|
|
63
|
+
oRm.attr("contenteditable", "true");
|
|
64
|
+
oRm.attr("spellcheck", "false");
|
|
65
|
+
oRm.class("sapAstExpressionInput");
|
|
66
|
+
oRm.openEnd();
|
|
67
|
+
oRm.close("div");
|
|
68
|
+
oRm.close("pre");
|
|
69
|
+
oRm.close("div");
|
|
70
|
+
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
return AstExpressionBasicRenderer;
|
|
74
|
+
|
|
59
75
|
}, /* bExport= */ true);
|
|
@@ -18,14 +18,15 @@ sap.ui.define([
|
|
|
18
18
|
"sap/rules/ui/ast/autoCompleteContent/AutoSuggestionTimeAndDurationFunctionPanel",
|
|
19
19
|
"sap/rules/ui/ast/autoCompleteContent/AutoSuggestionSelectFunctionPanel",
|
|
20
20
|
"sap/rules/ui/ast/autoCompleteContent/AutoSuggestionOperationsPanel",
|
|
21
|
-
"sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanel"
|
|
21
|
+
"sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanel",
|
|
22
|
+
"./AutoCompleteSuggestionContentRenderer"
|
|
22
23
|
|
|
23
24
|
], function (jQuery, library, Control, List, JSONModel, AutoSuggestionVocabularyPanel, AutoSuggestionFixedValuePanel,
|
|
24
25
|
AutoSuggestionMathematicalOperatorPanel,
|
|
25
26
|
AutoSuggestionComparisionOperatorPanel, AutoSuggestionLogicalOperatorPanel, AutoSuggestionAggregateFunctionPanel,
|
|
26
27
|
AutoSuggestionArrayOperatorPanel, AutoSuggestionRangeOperatorPanel, AutoSuggestionMiscellaneousOperatorPanel,
|
|
27
28
|
AutoSuggestionFunctionalOperatorPanel, AutoSuggestionAdvancedFunctionPanel, AutoSuggestionTimeAndDurationFunctionPanel,
|
|
28
|
-
AutoSuggestionSelectFunctionPanel, AutoSuggestionOperationsPanel, AutoSuggestionLoopFunctionPanel) {
|
|
29
|
+
AutoSuggestionSelectFunctionPanel, AutoSuggestionOperationsPanel, AutoSuggestionLoopFunctionPanel, AutoCompleteSuggestionContentRenderer) {
|
|
29
30
|
"use strict";
|
|
30
31
|
|
|
31
32
|
var AutoCompleteSuggestionContent = Control.extend("sap.rules.ui.AutoCompleteSuggestionContent", {
|
|
@@ -334,7 +335,8 @@ sap.ui.define([
|
|
|
334
335
|
}
|
|
335
336
|
}
|
|
336
337
|
return false;
|
|
337
|
-
}
|
|
338
|
+
},
|
|
339
|
+
renderer: AutoCompleteSuggestionContentRenderer
|
|
338
340
|
|
|
339
341
|
});
|
|
340
342
|
|
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
/*!
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
3
|
|
|
4
4
|
(c) Copyright 2009-2016 SAP SE. All rights reserved
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
sap.ui.define([
|
|
9
|
-
|
|
10
|
-
function (
|
|
11
|
-
"use strict";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* DecisionTableSettings renderer.
|
|
15
|
-
* @namespace
|
|
16
|
-
*/
|
|
17
|
-
var AutoCompleteSuggestionContentRenderer = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*
|
|
23
|
-
* @
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* the
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
oRm.renderControl(AutoCompleteSuggestionContentRenderer);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
sap.ui.define([],
|
|
9
|
+
|
|
10
|
+
function () {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* DecisionTableSettings renderer.
|
|
15
|
+
* @namespace
|
|
16
|
+
*/
|
|
17
|
+
var AutoCompleteSuggestionContentRenderer = {
|
|
18
|
+
apiVersion: 2
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Renders the HTML for the given control, using the provided
|
|
23
|
+
* {@link sap.ui.core.RenderManager}.
|
|
24
|
+
*
|
|
25
|
+
* @param {sap.ui.core.RenderManager} oRm
|
|
26
|
+
* the RenderManager that can be used for writing to
|
|
27
|
+
* the Render-Output-Buffer
|
|
28
|
+
* @param {sap.ui.core.Control} oControl
|
|
29
|
+
* the control to be rendered
|
|
30
|
+
*/
|
|
31
|
+
AutoCompleteSuggestionContentRenderer.render = function (oRm, oControl) {
|
|
32
|
+
|
|
33
|
+
oRm.openStart("div", oControl);
|
|
34
|
+
oRm.class("sapAstAutoCompleteSuggestionContentRenderer");
|
|
35
|
+
oRm.openEnd();
|
|
36
|
+
var AutoCompleteSuggestionContentRenderer = oControl.getAggregation("mainLayout");
|
|
37
|
+
oRm.renderControl(AutoCompleteSuggestionContentRenderer);
|
|
38
|
+
oRm.close("div");
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return AutoCompleteSuggestionContentRenderer;
|
|
42
|
+
|
|
44
43
|
}, /* bExport= */ true);
|