@sapui5/sap.rules.ui 1.107.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
|
@@ -1,99 +1,101 @@
|
|
|
1
|
-
sap.ui.define([
|
|
2
|
-
"sap/ui/thirdparty/jquery",
|
|
3
|
-
"../../library",
|
|
4
|
-
"sap/ui/core/Control",
|
|
5
|
-
"sap/m/List",
|
|
6
|
-
"sap/ui/model/json/JSONModel",
|
|
7
|
-
"sap/m/ListMode",
|
|
8
|
-
"sap/ui/core/CustomData",
|
|
9
|
-
"sap/ui/model/Sorter",
|
|
10
|
-
"sap/rules/ui/parser/infrastructure/util/utilsBase",
|
|
11
|
-
"sap/ui/core/LocaleData",
|
|
12
|
-
"sap/rules/ui/Constants",
|
|
13
|
-
"sap/rules/ui/services/AstExpressionLanguage",
|
|
14
|
-
"sap/rules/ui/ast/util/LoopFunctionDialog"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
this.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
var
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
that.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/ui/thirdparty/jquery",
|
|
3
|
+
"../../library",
|
|
4
|
+
"sap/ui/core/Control",
|
|
5
|
+
"sap/m/List",
|
|
6
|
+
"sap/ui/model/json/JSONModel",
|
|
7
|
+
"sap/m/ListMode",
|
|
8
|
+
"sap/ui/core/CustomData",
|
|
9
|
+
"sap/ui/model/Sorter",
|
|
10
|
+
"sap/rules/ui/parser/infrastructure/util/utilsBase",
|
|
11
|
+
"sap/ui/core/LocaleData",
|
|
12
|
+
"sap/rules/ui/Constants",
|
|
13
|
+
"sap/rules/ui/services/AstExpressionLanguage",
|
|
14
|
+
"sap/rules/ui/ast/util/LoopFunctionDialog",
|
|
15
|
+
"./AutoSuggestionLoopFunctionPanelRenderer"
|
|
16
|
+
|
|
17
|
+
], function (jQuery, library, Control, List, JSONModel, ListMode, CustomData, Sorter, infraUtils,
|
|
18
|
+
LocaleData, Constants, AstExpressionLanguage, LoopFunctionDialog, AutoSuggestionLoopFunctionPanelRenderer) {
|
|
19
|
+
"use strict";
|
|
20
|
+
|
|
21
|
+
var autoSuggestionLoopFunctionPanel = Control.extend("sap.rules.ui.ast.autoCompleteContent.AutoSuggestionLoopFunctionPanel", {
|
|
22
|
+
metadata: {
|
|
23
|
+
library: "sap.rules.ui",
|
|
24
|
+
properties: {
|
|
25
|
+
reference: {
|
|
26
|
+
type: "object",
|
|
27
|
+
defaultValue: null,
|
|
28
|
+
},
|
|
29
|
+
dialogOpenedCallbackReference: {
|
|
30
|
+
type: "object",
|
|
31
|
+
defaultValue: null,
|
|
32
|
+
},
|
|
33
|
+
data: {
|
|
34
|
+
type: "object",
|
|
35
|
+
defaultValue: null
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
aggregations: {
|
|
39
|
+
PanelLayout: {
|
|
40
|
+
type: "sap.m.Panel",
|
|
41
|
+
multiple: false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
associations: {
|
|
45
|
+
|
|
46
|
+
astExpressionLanguage: {
|
|
47
|
+
type: "sap.rules.ui.services.AstExpressionLanguage",
|
|
48
|
+
multiple: false,
|
|
49
|
+
singularName: "astExpressionLanguage"
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
},
|
|
53
|
+
events: {}
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
init: function () {
|
|
57
|
+
this.oBundle = sap.ui.getCore().getLibraryResourceBundle("sap.rules.ui.i18n");
|
|
58
|
+
this.loopFunctionDialog = LoopFunctionDialog.getInstance();
|
|
59
|
+
this.infraUtils = new sap.rules.ui.parser.infrastructure.util.utilsBase.utilsBaseLib();
|
|
60
|
+
this._oAstExpressionLanguage = new AstExpressionLanguage();
|
|
61
|
+
this.needCreateLayout = true;
|
|
62
|
+
|
|
63
|
+
},
|
|
64
|
+
onBeforeRendering: function () {
|
|
65
|
+
this._reference = this.getReference();
|
|
66
|
+
this._dialogOpenedCallbackReference = this.getDialogOpenedCallbackReference();
|
|
67
|
+
if (this.needCreateLayout) {
|
|
68
|
+
var layout = this._createLayout();
|
|
69
|
+
this.setAggregation("PanelLayout", layout, true);
|
|
70
|
+
this.needCreateLayout = false;
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
onAfterRendering: function () {
|
|
75
|
+
this._oAstExpressionLanguage = sap.ui.getCore().byId(this.getAstExpressionLanguage());
|
|
76
|
+
},
|
|
77
|
+
initializeVariables: function () {
|
|
78
|
+
|
|
79
|
+
},
|
|
80
|
+
_createLayout: function () {
|
|
81
|
+
var that = this;
|
|
82
|
+
var ForEachFunctionsPanel = new sap.m.Panel({
|
|
83
|
+
expandable: false,
|
|
84
|
+
expanded: true,
|
|
85
|
+
width: "auto",
|
|
86
|
+
content: [new sap.m.Link({
|
|
87
|
+
wrapping: true,
|
|
88
|
+
text: this.oBundle.getText("loopFunctionPanelTitle"),
|
|
89
|
+
press: function (oEvent) {
|
|
90
|
+
that._dialogOpenedCallbackReference(true);
|
|
91
|
+
that.loopFunctionDialog._createLoopFunctionDialog(that.getData(), that._reference, that._oAstExpressionLanguage, that._dialogOpenedCallbackReference);
|
|
92
|
+
}
|
|
93
|
+
})]
|
|
94
|
+
})
|
|
95
|
+
return ForEachFunctionsPanel;
|
|
96
|
+
},
|
|
97
|
+
renderer: AutoSuggestionLoopFunctionPanelRenderer
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
return autoSuggestionLoopFunctionPanel;
|
|
99
101
|
}, /* bExport= */ true);
|
|
@@ -5,16 +5,18 @@
|
|
|
5
5
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
sap.ui.define([
|
|
8
|
+
sap.ui.define([],
|
|
9
9
|
|
|
10
|
-
function (
|
|
10
|
+
function () {
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Loop Functions Panel renderer.
|
|
15
15
|
* @namespace
|
|
16
16
|
*/
|
|
17
|
-
var AutoSuggestionLoopFunctionPanelRenderer = {
|
|
17
|
+
var AutoSuggestionLoopFunctionPanelRenderer = {
|
|
18
|
+
apiVersion: 2
|
|
19
|
+
};
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
22
|
* Renders the HTML for the given control, using the provided
|
|
@@ -28,15 +30,12 @@ sap.ui.define(['jquery.sap.global'],
|
|
|
28
30
|
*/
|
|
29
31
|
AutoSuggestionLoopFunctionPanelRenderer.render = function (oRm, oControl) {
|
|
30
32
|
|
|
31
|
-
oRm.
|
|
32
|
-
oRm.
|
|
33
|
-
oRm.
|
|
34
|
-
oRm.writeClasses();
|
|
35
|
-
oRm.write(">");
|
|
33
|
+
oRm.openStart("div", oControl);
|
|
34
|
+
oRm.class("sapAstLoopFunctionPanel");
|
|
35
|
+
oRm.openEnd();
|
|
36
36
|
var AutoSuggestionLoopFunctionPanelRenderer = oControl.getAggregation("PanelLayout");
|
|
37
37
|
oRm.renderControl(AutoSuggestionLoopFunctionPanelRenderer);
|
|
38
|
-
oRm.
|
|
39
|
-
|
|
38
|
+
oRm.close("div");
|
|
40
39
|
};
|
|
41
40
|
|
|
42
41
|
return AutoSuggestionLoopFunctionPanelRenderer;
|
|
@@ -1,120 +1,123 @@
|
|
|
1
|
-
sap.ui.define([
|
|
2
|
-
"sap/ui/thirdparty/jquery",
|
|
3
|
-
"../../library",
|
|
4
|
-
"sap/ui/core/Control",
|
|
5
|
-
"sap/m/List",
|
|
6
|
-
"sap/ui/model/json/JSONModel",
|
|
7
|
-
"sap/m/ListMode",
|
|
8
|
-
"sap/ui/core/CustomData",
|
|
9
|
-
"sap/ui/model/Sorter",
|
|
10
|
-
"sap/rules/ui/parser/infrastructure/util/utilsBase"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
model.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
oParent.setGrowingThreshold
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/ui/thirdparty/jquery",
|
|
3
|
+
"../../library",
|
|
4
|
+
"sap/ui/core/Control",
|
|
5
|
+
"sap/m/List",
|
|
6
|
+
"sap/ui/model/json/JSONModel",
|
|
7
|
+
"sap/m/ListMode",
|
|
8
|
+
"sap/ui/core/CustomData",
|
|
9
|
+
"sap/ui/model/Sorter",
|
|
10
|
+
"sap/rules/ui/parser/infrastructure/util/utilsBase",
|
|
11
|
+
"./AutoSuggestionMathematicalOperatorPanelRenderer"
|
|
12
|
+
], function (jQuery, library, Control, List, JSONModel, ListMode, CustomData, Sorter, infraUtils, AutoSuggestionMathematicalOperatorPanelRenderer) {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
15
|
+
var autoSuggestionMathematicalOperatorPanel = Control.extend(
|
|
16
|
+
"sap.rules.ui.ast.autoCompleteContent.AutoSuggestionMathematicalOperatorPanel", {
|
|
17
|
+
metadata: {
|
|
18
|
+
library: "sap.rules.ui",
|
|
19
|
+
properties: {
|
|
20
|
+
reference: {
|
|
21
|
+
type: "object",
|
|
22
|
+
defaultValue: null,
|
|
23
|
+
},
|
|
24
|
+
data: {
|
|
25
|
+
type: "object",
|
|
26
|
+
defaultValue: null
|
|
27
|
+
},
|
|
28
|
+
expand: {
|
|
29
|
+
type: "boolean",
|
|
30
|
+
defaultValue: false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
aggregations: {
|
|
34
|
+
PanelLayout: {
|
|
35
|
+
type: "sap.m.Panel",
|
|
36
|
+
multiple: false
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
events: {}
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
init: function () {
|
|
43
|
+
this.oBundle = sap.ui.getCore().getLibraryResourceBundle("sap.rules.ui.i18n");
|
|
44
|
+
this.infraUtils = new sap.rules.ui.parser.infrastructure.util.utilsBase.utilsBaseLib();
|
|
45
|
+
this.needCreateLayout = true;
|
|
46
|
+
this.AttributeSegmentSelected = true;
|
|
47
|
+
this.dataObjectName = "";
|
|
48
|
+
},
|
|
49
|
+
onBeforeRendering: function () {
|
|
50
|
+
this._reference = this.getReference();
|
|
51
|
+
if (this.needCreateLayout) {
|
|
52
|
+
var layout = this._createLayout();
|
|
53
|
+
this.setAggregation("PanelLayout", layout, true);
|
|
54
|
+
this.needCreateLayout = false;
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
initializeVariables: function () {
|
|
59
|
+
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
_createLayout: function () {
|
|
63
|
+
var that = this;
|
|
64
|
+
var vocabularyData = this.getData();
|
|
65
|
+
// create a Model with this data
|
|
66
|
+
var model = new sap.ui.model.json.JSONModel();
|
|
67
|
+
model.setData(vocabularyData);
|
|
68
|
+
|
|
69
|
+
// create a list
|
|
70
|
+
this.mathematicalOperatorslist = new sap.m.List({
|
|
71
|
+
growing: true,
|
|
72
|
+
growingScrollToLoad: true,
|
|
73
|
+
enableBusyIndicator: true,
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
// bind the List items to the data collection
|
|
77
|
+
this.mathematicalOperatorslist.bindItems({
|
|
78
|
+
path: "/arithmetic",
|
|
79
|
+
sorter: new sap.ui.model.Sorter("name"),
|
|
80
|
+
rememberSelections: false,
|
|
81
|
+
mode: ListMode.SingleSelectMaster,
|
|
82
|
+
template: new sap.m.DisplayListItem({
|
|
83
|
+
label: "{name}",
|
|
84
|
+
value: "{label}",
|
|
85
|
+
type: "Active",
|
|
86
|
+
press: function (oEvent) {
|
|
87
|
+
that._reference(oEvent);
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// set the model to the List, so it knows which data to use
|
|
93
|
+
this.mathematicalOperatorslist.setModel(model);
|
|
94
|
+
var that = this;
|
|
95
|
+
|
|
96
|
+
// add list to the panel
|
|
97
|
+
var mathematicalOperatorsListPanel = new sap.m.Panel({
|
|
98
|
+
headerText: this.oBundle.getText("mathOperatorsPanelTitle"),
|
|
99
|
+
expandable: true,
|
|
100
|
+
expanded: this.getExpand(),
|
|
101
|
+
//expand: this.onExpand,
|
|
102
|
+
content: this.mathematicalOperatorslist,
|
|
103
|
+
width: "auto"
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
return mathematicalOperatorsListPanel;
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
renderer: AutoSuggestionMathematicalOperatorPanelRenderer
|
|
110
|
+
|
|
111
|
+
/*onExpand: function (oEvent) {
|
|
112
|
+
if (oEvent.getParameters().expand) {
|
|
113
|
+
var oParent = this.getParent().getParent();
|
|
114
|
+
if (!oParent.setGrowingThreshold) {
|
|
115
|
+
oParent = oParent.getParent();
|
|
116
|
+
}
|
|
117
|
+
oParent.setGrowingThreshold(2);
|
|
118
|
+
}
|
|
119
|
+
}*/
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
return autoSuggestionMathematicalOperatorPanel;
|
|
120
123
|
}, /* bExport= */ true);
|
package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMathematicalOperatorPanelRenderer.js
CHANGED
|
@@ -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
|
-
* AutoSuggestionMathematicalOperatorPanelRenderer
|
|
15
|
-
* @namespace
|
|
16
|
-
*/
|
|
17
|
-
var AutoSuggestionMathematicalOperatorPanelRenderer = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*
|
|
23
|
-
* @
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* the
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
oRm.renderControl(AutoSuggestionMathematicalOperatorPanelRenderer);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
sap.ui.define([],
|
|
9
|
+
|
|
10
|
+
function() {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* AutoSuggestionMathematicalOperatorPanelRenderer
|
|
15
|
+
* @namespace
|
|
16
|
+
*/
|
|
17
|
+
var AutoSuggestionMathematicalOperatorPanelRenderer = {
|
|
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
|
+
AutoSuggestionMathematicalOperatorPanelRenderer.render = function(oRm, oControl) {
|
|
32
|
+
|
|
33
|
+
oRm.openStart("div", oControl);
|
|
34
|
+
oRm.class("sapAstMathematicalOperatorPanel");
|
|
35
|
+
oRm.openEnd();
|
|
36
|
+
var AutoSuggestionMathematicalOperatorPanelRenderer = oControl.getAggregation("PanelLayout");
|
|
37
|
+
oRm.renderControl(AutoSuggestionMathematicalOperatorPanelRenderer);
|
|
38
|
+
oRm.close("div");
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return AutoSuggestionMathematicalOperatorPanelRenderer;
|
|
42
|
+
|
|
44
43
|
}, /* bExport= */ true);
|
package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMiscellaneousOperatorPanel.js
CHANGED
|
@@ -7,8 +7,9 @@ sap.ui.define([
|
|
|
7
7
|
"sap/m/ListMode",
|
|
8
8
|
"sap/ui/core/CustomData",
|
|
9
9
|
"sap/ui/model/Sorter",
|
|
10
|
-
"sap/rules/ui/parser/infrastructure/util/utilsBase"
|
|
11
|
-
|
|
10
|
+
"sap/rules/ui/parser/infrastructure/util/utilsBase",
|
|
11
|
+
"./AutoSuggestionMiscellaneousOperatorPanelRenderer"
|
|
12
|
+
], function (jQuery, library, Control, List, JSONModel, ListMode, CustomData, Sorter, infraUtils, AutoSuggestionMiscellaneousOperatorPanelRenderer) {
|
|
12
13
|
"use strict";
|
|
13
14
|
|
|
14
15
|
var AutoSuggestionMiscellaneousOperatorPanel = Control.extend(
|
|
@@ -104,6 +105,8 @@ sap.ui.define([
|
|
|
104
105
|
|
|
105
106
|
return miscellaneousOperatorslistPanel;
|
|
106
107
|
},
|
|
108
|
+
|
|
109
|
+
renderer: AutoSuggestionMiscellaneousOperatorPanelRenderer
|
|
107
110
|
|
|
108
111
|
/*onExpand: function (oEvent) {
|
|
109
112
|
if (oEvent.getParameters().expand) {
|
package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMiscellaneousOperatorPanelRenderer.js
CHANGED
|
@@ -5,16 +5,18 @@
|
|
|
5
5
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
sap.ui.define([
|
|
8
|
+
sap.ui.define([],
|
|
9
9
|
|
|
10
|
-
function(
|
|
10
|
+
function() {
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* AutoSuggestionMiscellaneousOperatorPanelRenderer
|
|
15
15
|
* @namespace
|
|
16
16
|
*/
|
|
17
|
-
var AutoSuggestionMiscellaneousOperatorPanelRenderer = {
|
|
17
|
+
var AutoSuggestionMiscellaneousOperatorPanelRenderer = {
|
|
18
|
+
apiVersion: 2
|
|
19
|
+
};
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
22
|
* Renders the HTML for the given control, using the provided
|
|
@@ -28,15 +30,12 @@ sap.ui.define(['jquery.sap.global'],
|
|
|
28
30
|
*/
|
|
29
31
|
AutoSuggestionMiscellaneousOperatorPanelRenderer.render = function(oRm, oControl) {
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
oRm.write(">");
|
|
36
|
-
var AutoSuggestionMiscellaneousOperatorPanelRenderer = oControl.getAggregation("PanelLayout");
|
|
33
|
+
oRm.openStart("div", oControl);
|
|
34
|
+
oRm.class("sapAstMiscellaneousOperatorPanel");
|
|
35
|
+
oRm.openEnd();
|
|
36
|
+
var AutoSuggestionMiscellaneousOperatorPanelRenderer = oControl.getAggregation("PanelLayout");
|
|
37
37
|
oRm.renderControl(AutoSuggestionMiscellaneousOperatorPanelRenderer);
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
oRm.close("div");
|
|
40
39
|
};
|
|
41
40
|
|
|
42
41
|
return AutoSuggestionMiscellaneousOperatorPanelRenderer;
|