@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
|
@@ -6,15 +6,16 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
|
|
10
|
-
], function(jQuery) {
|
|
9
|
+
], function() {
|
|
11
10
|
"use strict";
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* RuleBuilder renderer.
|
|
15
14
|
* @namespace
|
|
16
15
|
*/
|
|
17
|
-
var RuleBuilderRenderer = {
|
|
16
|
+
var RuleBuilderRenderer = {
|
|
17
|
+
apiVersion: 2
|
|
18
|
+
};
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Renders the HTML for the given control, using the provided
|
|
@@ -28,14 +29,12 @@ sap.ui.define([
|
|
|
28
29
|
*/
|
|
29
30
|
RuleBuilderRenderer.render = function(oRm, oControl) {
|
|
30
31
|
|
|
31
|
-
oRm.
|
|
32
|
-
oRm.
|
|
33
|
-
oRm.
|
|
34
|
-
oRm.writeClasses();
|
|
35
|
-
oRm.write(">");
|
|
32
|
+
oRm.openStart("div", oControl);
|
|
33
|
+
oRm.class("sapRULRuleBuilder");
|
|
34
|
+
oRm.openEnd();
|
|
36
35
|
oRm.renderControl(oControl.getAggregation("_ruleTypeSelector"));
|
|
37
36
|
oRm.renderControl(oControl.getAggregation("_rule"));
|
|
38
|
-
oRm.
|
|
37
|
+
oRm.close("div");
|
|
39
38
|
|
|
40
39
|
};
|
|
41
40
|
|
|
@@ -29,10 +29,11 @@ sap.ui.define(["sap/base/Log","sap/ui/thirdparty/jquery",
|
|
|
29
29
|
"sap/rules/ui/Constants",
|
|
30
30
|
"sap/rules/ui/AstExpressionBasic",
|
|
31
31
|
"sap/rules/ui/services/ExpressionLanguage",
|
|
32
|
-
"sap/rules/ui/services/AstExpressionLanguage"
|
|
32
|
+
"sap/rules/ui/services/AstExpressionLanguage",
|
|
33
|
+
"./TextRuleRenderer"
|
|
33
34
|
|
|
34
35
|
], function (Log, jQuery, library, Label, RuleBase, Panel, Title, Form, Toolbar, ToolbarSpacer, Text, Button, Grid, FormContainer, FormElement,
|
|
35
|
-
ExpressionAdvanced, Link, FlexBox, Dialog, TextRuleSettings, AstYamlConverter, Constants, AstExpressionBasic, ExpressionLanguage, AstExpressionLanguage) {
|
|
36
|
+
ExpressionAdvanced, Link, FlexBox, Dialog, TextRuleSettings, AstYamlConverter, Constants, AstExpressionBasic, ExpressionLanguage, AstExpressionLanguage, TextRuleRenderer) {
|
|
36
37
|
"use strict";
|
|
37
38
|
|
|
38
39
|
/**
|
|
@@ -46,7 +47,7 @@ sap.ui.define(["sap/base/Log","sap/ui/thirdparty/jquery",
|
|
|
46
47
|
* @extends Control
|
|
47
48
|
*
|
|
48
49
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
50
|
+
* @version 1.108.0
|
|
50
51
|
*
|
|
51
52
|
* @constructor
|
|
52
53
|
* @private
|
|
@@ -1758,7 +1759,9 @@ sap.ui.define(["sap/base/Log","sap/ui/thirdparty/jquery",
|
|
|
1758
1759
|
}
|
|
1759
1760
|
|
|
1760
1761
|
return returnValue;
|
|
1761
|
-
}
|
|
1762
|
+
},
|
|
1763
|
+
|
|
1764
|
+
renderer: TextRuleRenderer
|
|
1762
1765
|
|
|
1763
1766
|
});
|
|
1764
1767
|
|
|
@@ -1,48 +1,49 @@
|
|
|
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
|
-
|
|
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
|
-
oRm.
|
|
39
|
-
oRm.
|
|
40
|
-
oRm.
|
|
41
|
-
oRm.renderControl(oControl.getAggregation("
|
|
42
|
-
oRm.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
+
* OdataTextRuleTable renderer.
|
|
16
|
+
* @namespace
|
|
17
|
+
*/
|
|
18
|
+
var oTextRuleRenderer = {
|
|
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
|
+
oTextRuleRenderer.render = function(oRm, oControl) {
|
|
33
|
+
|
|
34
|
+
if (oControl.getParent() instanceof jQuery){
|
|
35
|
+
syncStyleClass("sapUiSizeCozy", oControl.getParent(), this.oControl);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
oRm.openStart("div", oControl);
|
|
39
|
+
oRm.class("sapRULTextRule");
|
|
40
|
+
oRm.openEnd();
|
|
41
|
+
oRm.renderControl(oControl.getAggregation("_toolbar"));
|
|
42
|
+
oRm.renderControl(oControl.getAggregation("_verticalLayout"));
|
|
43
|
+
oRm.close("div");
|
|
44
|
+
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
return oTextRuleRenderer;
|
|
48
|
+
|
|
48
49
|
}, /* bExport= */ true);
|
|
@@ -27,10 +27,11 @@ sap.ui.define([
|
|
|
27
27
|
"sap/rules/ui/oldast/lib/AstYamlConverter",
|
|
28
28
|
"sap/rules/ui/Constants",
|
|
29
29
|
"sap/rules/ui/AstExpressionBasic",
|
|
30
|
-
"sap/rules/ui/services/AstExpressionLanguage"
|
|
30
|
+
"sap/rules/ui/services/AstExpressionLanguage",
|
|
31
|
+
"./TextRuleSettingsRenderer"
|
|
31
32
|
],
|
|
32
33
|
function (jQuery, library, Control, SimpleForm, Label, Switch, Select, MessageBox, Table, Column, Text, Input, Button, ComboBox,
|
|
33
|
-
ExpressionAdvanced, VerticalLayout, ExpressionType, AstYamlConverter, Constants, ASTExpressionBasic, AstExpressionLanguage) {
|
|
34
|
+
ExpressionAdvanced, VerticalLayout, ExpressionType, AstYamlConverter, Constants, ASTExpressionBasic, AstExpressionLanguage, TextRuleSettingsRenderer) {
|
|
34
35
|
"use strict";
|
|
35
36
|
|
|
36
37
|
/**
|
|
@@ -44,7 +45,7 @@ sap.ui.define([
|
|
|
44
45
|
* @extends Control
|
|
45
46
|
*
|
|
46
47
|
* @author SAP SE
|
|
47
|
-
* @version 1.
|
|
48
|
+
* @version 1.108.0
|
|
48
49
|
*
|
|
49
50
|
* @constructor
|
|
50
51
|
* @private
|
|
@@ -89,7 +90,8 @@ sap.ui.define([
|
|
|
89
90
|
singularName: "astExpressionLanguage"
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
|
-
}
|
|
93
|
+
},
|
|
94
|
+
renderer: TextRuleSettingsRenderer
|
|
93
95
|
});
|
|
94
96
|
|
|
95
97
|
sap.rules.ui.TextRuleSettings.prototype._addNodeObject = function (astNode) {
|
|
@@ -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
|
* TextRuleSettings renderer.
|
|
15
15
|
* @namespace
|
|
16
16
|
*/
|
|
17
|
-
var oTextRuleSettingsRenderer = {
|
|
17
|
+
var oTextRuleSettingsRenderer = {
|
|
18
|
+
apiVersion: 2
|
|
19
|
+
};
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
22
|
* Renders the HTML for the given control, using the provided
|
|
@@ -28,14 +30,12 @@ sap.ui.define(['jquery.sap.global'],
|
|
|
28
30
|
*/
|
|
29
31
|
oTextRuleSettingsRenderer.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("sapRULTDecisionTableSettings");
|
|
35
|
+
oRm.openEnd();
|
|
36
36
|
var settings = oControl.getAggregation("mainLayout");
|
|
37
37
|
oRm.renderControl(settings);
|
|
38
|
-
oRm.
|
|
38
|
+
oRm.close("div");
|
|
39
39
|
|
|
40
40
|
};
|
|
41
41
|
|
|
@@ -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
|
+
"./AutoSuggestionAdvancedFunctionPanelRenderer"
|
|
12
|
+
], function (jQuery, library, Control, List, JSONModel, ListMode, CustomData, Sorter, infraUtils, AutoSuggestionAdvancedFunctionPanelRenderer) {
|
|
12
13
|
"use strict";
|
|
13
14
|
|
|
14
15
|
var autoSuggestionAdvancedFunctionPanel = Control.extend(
|
|
@@ -103,7 +104,7 @@ sap.ui.define([
|
|
|
103
104
|
|
|
104
105
|
return advancedFunctionslistPanel;
|
|
105
106
|
},
|
|
106
|
-
|
|
107
|
+
renderer: AutoSuggestionAdvancedFunctionPanelRenderer
|
|
107
108
|
|
|
108
109
|
});
|
|
109
110
|
|
package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAdvancedFunctionPanelRenderer.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
|
* autoSuggestionAdvancedFunctionPanelRenderer renderer.
|
|
15
15
|
* @namespace
|
|
16
16
|
*/
|
|
17
|
-
var autoSuggestionAdvancedFunctionPanelRenderer = {
|
|
17
|
+
var autoSuggestionAdvancedFunctionPanelRenderer = {
|
|
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
|
autoSuggestionAdvancedFunctionPanelRenderer.render = function(oRm, oControl) {
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
oRm.write(">");
|
|
36
|
-
var autoSuggestionAdvancedFunctionPanelRenderer = oControl.getAggregation("PanelLayout");
|
|
33
|
+
oRm.openStart("div", oControl);
|
|
34
|
+
oRm.class("sapAstAdvancedFunctionPanel");
|
|
35
|
+
oRm.openEnd();
|
|
36
|
+
var autoSuggestionAdvancedFunctionPanelRenderer = oControl.getAggregation("PanelLayout");
|
|
37
37
|
oRm.renderControl(autoSuggestionAdvancedFunctionPanelRenderer);
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
oRm.close("div");
|
|
40
39
|
};
|
|
41
40
|
|
|
42
41
|
return autoSuggestionAdvancedFunctionPanelRenderer;
|
|
@@ -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/AggregateFunctionDialog"
|
|
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/AggregateFunctionDialog",
|
|
15
|
+
"./AutoSuggestionAggregateFunctionPanelRenderer"
|
|
16
|
+
|
|
17
|
+
], function (jQuery, library, Control, List, JSONModel, ListMode, CustomData, Sorter, infraUtils,
|
|
18
|
+
LocaleData, Constants, AstExpressionLanguage, AggregateFunctionDialog, AutoSuggestionAggregateFunctionPanelRenderer) {
|
|
19
|
+
"use strict";
|
|
20
|
+
|
|
21
|
+
var autoSuggestionAggregateFunctionPanel = Control.extend("sap.rules.ui.ast.autoCompleteContent.AutoSuggestionAggregateFunctionPanel", {
|
|
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.aggregateFunctionDialog = AggregateFunctionDialog.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 AggregateFunctionsPanel = 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("aggregateFunctionPanelTitle"),
|
|
89
|
+
press: function (oEvent) {
|
|
90
|
+
that._dialogOpenedCallbackReference(true);
|
|
91
|
+
that.aggregateFunctionDialog._createAggregationFunctionDialog(that.getData(), that._reference, that._oAstExpressionLanguage, that._dialogOpenedCallbackReference);
|
|
92
|
+
}
|
|
93
|
+
})]
|
|
94
|
+
})
|
|
95
|
+
return AggregateFunctionsPanel;
|
|
96
|
+
},
|
|
97
|
+
renderer: AutoSuggestionAggregateFunctionPanelRenderer
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
return autoSuggestionAggregateFunctionPanel;
|
|
99
101
|
}, /* bExport= */ true);
|
package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAggregateFunctionPanelRenderer.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
|
* DecisionTableSettings renderer.
|
|
15
15
|
* @namespace
|
|
16
16
|
*/
|
|
17
|
-
var AutoSuggestionAggregateFunctionPanelRenderer = {
|
|
17
|
+
var AutoSuggestionAggregateFunctionPanelRenderer = {
|
|
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
|
AutoSuggestionAggregateFunctionPanelRenderer.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("sapAstAggregateFunctionPanel");
|
|
35
|
+
oRm.openEnd();
|
|
36
36
|
var AutoSuggestionAggregateFunctionPanelRenderer = oControl.getAggregation("PanelLayout");
|
|
37
37
|
oRm.renderControl(AutoSuggestionAggregateFunctionPanelRenderer);
|
|
38
|
-
oRm.
|
|
39
|
-
|
|
38
|
+
oRm.close("div");
|
|
40
39
|
};
|
|
41
40
|
|
|
42
41
|
return AutoSuggestionAggregateFunctionPanelRenderer;
|
|
@@ -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
|
+
"./AutoSuggestionArrayOperatorPanelRenderer"
|
|
12
|
+
], function (jQuery, library, Control, List, JSONModel, ListMode, CustomData, Sorter, infraUtils, AutoSuggestionArrayOperatorPanelRenderer) {
|
|
12
13
|
"use strict";
|
|
13
14
|
|
|
14
15
|
var autoSuggestionArrayOperatorPanel = Control.extend(
|
|
@@ -103,7 +104,7 @@ sap.ui.define([
|
|
|
103
104
|
|
|
104
105
|
return arrayOperatorslistPanel;
|
|
105
106
|
},
|
|
106
|
-
|
|
107
|
+
renderer: AutoSuggestionArrayOperatorPanelRenderer
|
|
107
108
|
|
|
108
109
|
});
|
|
109
110
|
|
package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionArrayOperatorPanelRenderer.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
|
* autoSuggestionArrayOperatorPanelRenderer renderer.
|
|
15
15
|
* @namespace
|
|
16
16
|
*/
|
|
17
|
-
var autoSuggestionArrayOperatorPanelRenderer = {
|
|
17
|
+
var autoSuggestionArrayOperatorPanelRenderer = {
|
|
18
|
+
apiVersion: 2
|
|
19
|
+
};
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
22
|
* Renders the HTML for the given control, using the provided
|
|
@@ -28,14 +30,12 @@ sap.ui.define(['jquery.sap.global'],
|
|
|
28
30
|
*/
|
|
29
31
|
autoSuggestionArrayOperatorPanelRenderer.render = function(oRm, oControl) {
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
oRm.write(">");
|
|
36
|
-
var autoSuggestionArrayOperatorPanelRenderer = oControl.getAggregation("PanelLayout");
|
|
33
|
+
oRm.openStart("div", oControl);
|
|
34
|
+
oRm.class("sapAstArrayOperatorPanel");
|
|
35
|
+
oRm.openEnd();
|
|
36
|
+
var autoSuggestionArrayOperatorPanelRenderer = oControl.getAggregation("PanelLayout");
|
|
37
37
|
oRm.renderControl(autoSuggestionArrayOperatorPanelRenderer);
|
|
38
|
-
|
|
38
|
+
oRm.close("div");
|
|
39
39
|
|
|
40
40
|
};
|
|
41
41
|
|