@sapui5/sap.rules.ui 1.107.0 → 1.108.1

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.
Files changed (70) hide show
  1. package/package.json +1 -1
  2. package/src/sap/rules/ui/.library +1 -1
  3. package/src/sap/rules/ui/AstExpressionBasic.js +27 -6
  4. package/src/sap/rules/ui/AstExpressionBasicRenderer.js +71 -55
  5. package/src/sap/rules/ui/AutoCompleteSuggestionContent.js +5 -3
  6. package/src/sap/rules/ui/AutoCompleteSuggestionContentRenderer.js +39 -40
  7. package/src/sap/rules/ui/BindingSpy.js +1 -1
  8. package/src/sap/rules/ui/DecisionTable.js +2157 -2154
  9. package/src/sap/rules/ui/DecisionTableCell.js +7 -4
  10. package/src/sap/rules/ui/DecisionTableCellAstExpressionBasic.js +7 -4
  11. package/src/sap/rules/ui/DecisionTableCellAstExpressionBasicRenderer.js +5 -3
  12. package/src/sap/rules/ui/DecisionTableCellExpressionAdvanced.js +238 -236
  13. package/src/sap/rules/ui/DecisionTableCellExpressionAdvancedRenderer.js +6 -4
  14. package/src/sap/rules/ui/DecisionTableCellExpressionBasic.js +29 -22
  15. package/src/sap/rules/ui/DecisionTableCellExpressionBasicRenderer.js +6 -4
  16. package/src/sap/rules/ui/DecisionTableCellRenderer.js +10 -10
  17. package/src/sap/rules/ui/DecisionTableConfiguration.js +1 -1
  18. package/src/sap/rules/ui/DecisionTableRenderer.js +163 -161
  19. package/src/sap/rules/ui/DecisionTableSettings.js +6 -4
  20. package/src/sap/rules/ui/DecisionTableSettingsOld.js +963 -961
  21. package/src/sap/rules/ui/DecisionTableSettingsOldRenderer.js +9 -10
  22. package/src/sap/rules/ui/DecisionTableSettingsRenderer.js +9 -10
  23. package/src/sap/rules/ui/ExpressionAdvanced.js +1726 -1724
  24. package/src/sap/rules/ui/ExpressionAdvancedRenderer.js +8 -8
  25. package/src/sap/rules/ui/ExpressionBase.js +1 -1
  26. package/src/sap/rules/ui/ExpressionBasic.js +7 -4
  27. package/src/sap/rules/ui/ExpressionBasicRenderer.js +8 -7
  28. package/src/sap/rules/ui/InstructionRenderer.js +73 -33
  29. package/src/sap/rules/ui/RuleBase.js +1 -1
  30. package/src/sap/rules/ui/RuleBuilder.js +433 -430
  31. package/src/sap/rules/ui/RuleBuilderRenderer.js +8 -9
  32. package/src/sap/rules/ui/TextRule.js +7 -4
  33. package/src/sap/rules/ui/TextRuleConfiguration.js +1 -1
  34. package/src/sap/rules/ui/TextRuleRenderer.js +45 -44
  35. package/src/sap/rules/ui/TextRuleSettings.js +6 -4
  36. package/src/sap/rules/ui/TextRuleSettingsRenderer.js +9 -9
  37. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAdvancedFunctionPanel.js +4 -3
  38. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAdvancedFunctionPanelRenderer.js +10 -11
  39. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAggregateFunctionPanel.js +100 -98
  40. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAggregateFunctionPanelRenderer.js +9 -10
  41. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionArrayOperatorPanel.js +4 -3
  42. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionArrayOperatorPanelRenderer.js +10 -10
  43. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionComparisionOperatorPanel.js +109 -107
  44. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionComparisionOperatorPanelRenderer.js +39 -40
  45. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionDateAndTimePanel.js +5 -3
  46. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionDateAndTimePanelRenderer.js +10 -10
  47. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFixedValuePanel.js +840 -838
  48. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFixedValuePanelRenderer.js +40 -40
  49. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFunctionalOperatorPanel.js +4 -3
  50. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFunctionalOperatorPanelRenderer.js +10 -11
  51. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLogicalOperatorPanel.js +112 -110
  52. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLogicalOperatorPanelRenderer.js +39 -40
  53. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanel.js +100 -98
  54. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanelRenderer.js +9 -10
  55. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMathematicalOperatorPanel.js +122 -119
  56. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMathematicalOperatorPanelRenderer.js +39 -40
  57. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMiscellaneousOperatorPanel.js +5 -2
  58. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMiscellaneousOperatorPanelRenderer.js +10 -11
  59. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionOperationsPanel.js +4 -3
  60. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionOperationsPanelRenderer.js +10 -11
  61. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionRangeOperatorPanel.js +4 -3
  62. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionRangeOperatorPanelRenderer.js +10 -11
  63. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionSelectFunctionPanel.js +108 -106
  64. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionSelectFunctionPanelRenderer.js +40 -40
  65. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionTimeAndDurationFunctionPanel.js +254 -252
  66. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionTimeAndDurationFunctionPanelRenderer.js +40 -40
  67. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionVocabularyPanel.js +631 -629
  68. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionVocabularyPanelRenderer.js +40 -40
  69. package/src/sap/rules/ui/library.js +31 -10
  70. package/src/sap/rules/ui/type/ExpressionAbs.js +1 -1
@@ -1,44 +1,44 @@
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(['jquery.sap.global'],
9
-
10
- function (jQuery) {
11
- "use strict";
12
-
13
- /**
14
- * AutoSuggestionFixedValuePanelRenderer
15
- * @namespace
16
- */
17
- var AutoSuggestionFixedValuePanelRenderer = {};
18
-
19
- /**
20
- * Renders the HTML for the given control, using the provided
21
- * {@link sap.ui.core.RenderManager}.
22
- *
23
- * @param {sap.ui.core.RenderManager} oRm
24
- * the RenderManager that can be used for writing to
25
- * the Render-Output-Buffer
26
- * @param {sap.ui.core.Control} oControl
27
- * the control to be rendered
28
- */
29
- AutoSuggestionFixedValuePanelRenderer.render = function (oRm, oControl) {
30
-
31
- oRm.write("<div");
32
- oRm.writeControlData(oControl);
33
- oRm.addClass("sapAstFixedValuePanel");
34
- oRm.writeClasses();
35
- oRm.write(">");
36
- var AutoSuggestionFixedValuePanelRenderer = oControl.getAggregation("PanelLayout");
37
- oRm.renderControl(AutoSuggestionFixedValuePanelRenderer);
38
- oRm.write("</div>");
39
-
40
- };
41
-
42
- return AutoSuggestionFixedValuePanelRenderer;
43
-
5
+
6
+ */
7
+
8
+ sap.ui.define([],
9
+
10
+ function () {
11
+ "use strict";
12
+
13
+ /**
14
+ * AutoSuggestionFixedValuePanelRenderer
15
+ * @namespace
16
+ */
17
+ var AutoSuggestionFixedValuePanelRenderer = {
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
+ AutoSuggestionFixedValuePanelRenderer.render = function (oRm, oControl) {
32
+
33
+ oRm.openStart("div", oControl);
34
+ oRm.class("sapAstFixedValuePanel");
35
+ oRm.openEnd();
36
+ var AutoSuggestionFixedValuePanelRenderer = oControl.getAggregation("PanelLayout");
37
+ oRm.renderControl(AutoSuggestionFixedValuePanelRenderer);
38
+ oRm.close("div");
39
+
40
+ };
41
+
42
+ return AutoSuggestionFixedValuePanelRenderer;
43
+
44
44
  }, /* bExport= */ true);
@@ -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
- ], function (jQuery, library, Control, ResponsivePopover, List, JSONModel, ListMode, CustomData, Sorter, infraUtils) {
10
+ "sap/rules/ui/parser/infrastructure/util/utilsBase",
11
+ "./AutoSuggestionFunctionalOperatorPanelRenderer"
12
+ ], function (jQuery, library, Control, List, JSONModel, ListMode, CustomData, Sorter, infraUtils, AutoSuggestionFunctionalOperatorPanelRenderer) {
12
13
  "use strict";
13
14
 
14
15
  var autoSuggestionFunctionalOperatorPanel = Control.extend(
@@ -105,7 +106,7 @@ sap.ui.define([
105
106
 
106
107
  return functionalOperatorslistPanel;
107
108
  },
108
-
109
+ renderer: AutoSuggestionFunctionalOperatorPanelRenderer
109
110
 
110
111
  });
111
112
 
@@ -5,16 +5,18 @@
5
5
 
6
6
  */
7
7
 
8
- sap.ui.define(['jquery.sap.global'],
8
+ sap.ui.define([],
9
9
 
10
- function(jQuery) {
10
+ function() {
11
11
  "use strict";
12
12
 
13
13
  /**
14
14
  * autoSuggestionFunctionalOperatorPanelRenderer
15
15
  * @namespace
16
16
  */
17
- var autoSuggestionFunctionalOperatorPanelRenderer = {};
17
+ var autoSuggestionFunctionalOperatorPanelRenderer = {
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
  autoSuggestionFunctionalOperatorPanelRenderer.render = function(oRm, oControl) {
30
32
 
31
- oRm.write("<div");
32
- oRm.writeControlData(oControl);
33
- oRm.addClass("sapAstFunctionalOperatorPanel");
34
- oRm.writeClasses();
35
- oRm.write(">");
36
- var autoSuggestionFunctionalOperatorPanelRenderer = oControl.getAggregation("PanelLayout");
33
+ oRm.openStart("div", oControl);
34
+ oRm.class("sapAstFunctionalOperatorPanel");
35
+ oRm.openEnd();
36
+ var autoSuggestionFunctionalOperatorPanelRenderer = oControl.getAggregation("PanelLayout");
37
37
  oRm.renderControl(autoSuggestionFunctionalOperatorPanelRenderer);
38
- oRm.write("</div>");
39
-
38
+ oRm.close("div");
40
39
  };
41
40
 
42
41
  return autoSuggestionFunctionalOperatorPanelRenderer;
@@ -1,111 +1,113 @@
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
- ], function (jQuery, library, Control, ResponsivePopover, List, JSONModel, ListMode, CustomData, Sorter, infraUtils) {
12
- "use strict";
13
-
14
- var autoSuggestionLogicalOperatorPanel = Control.extend("sap.rules.ui.ast.autoCompleteContent.AutoSuggestionLogicalOperatorPanel", {
15
- metadata: {
16
- library: "sap.rules.ui",
17
- properties: {
18
- reference: {
19
- type: "object",
20
- defaultValue: null,
21
- },
22
- data: {
23
- type: "object",
24
- defaultValue: null
25
- },
26
- expand: {
27
- type: "boolean",
28
- defaultValue: false
29
- }
30
- },
31
- aggregations: {
32
- PanelLayout: {
33
- type: "sap.m.Panel",
34
- multiple: false
35
- }
36
- },
37
- events: {}
38
- },
39
-
40
- init: function () {
41
- this.oBundle = sap.ui.getCore().getLibraryResourceBundle("sap.rules.ui.i18n");
42
- this.infraUtils = new sap.rules.ui.parser.infrastructure.util.utilsBase.utilsBaseLib();
43
- this.needCreateLayout = true;
44
- this.AttributeSegmentSelected = true;
45
- this.dataObjectName = "";
46
- },
47
- onBeforeRendering: function () {
48
- this._reference = this.getReference();
49
- if (this.needCreateLayout) {
50
- var layout = this._createLayout();
51
- this.setAggregation("PanelLayout", layout, true);
52
- this.needCreateLayout = false;
53
- }
54
- },
55
-
56
- initializeVariables: function () {
57
-
58
- },
59
-
60
- _createLayout: function () {
61
- var that = this;
62
- var vocabularyData = this.getData();
63
- // create a Model with this data
64
- var model = new sap.ui.model.json.JSONModel();
65
- model.setData(vocabularyData);
66
-
67
- // create a list
68
- this.logicalOperatorslist = new sap.m.List({
69
- growing: true,
70
- growingScrollToLoad: true,
71
- enableBusyIndicator: true,
72
- });
73
-
74
- //for every item, add relevant icon and description and add item to the list
75
- var listData = vocabularyData;
76
- // bind the List items to the data collection
77
- this.logicalOperatorslist.bindItems({
78
- path: "/logical",
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.logicalOperatorslist.setModel(model);
94
- var that = this;
95
-
96
- // add list to the panel
97
- var logicalOperatorsListPanel = new sap.m.Panel({
98
- headerText: this.oBundle.getText("logicalOperatorsPanelTitle"),
99
- expandable: true,
100
- expanded: this.getExpand(),
101
- content: this.logicalOperatorslist,
102
- width: "auto"
103
- });
104
-
105
- return logicalOperatorsListPanel;
106
- }
107
-
108
- });
109
-
110
- return autoSuggestionLogicalOperatorPanel;
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
+ "./AutoSuggestionLogicalOperatorPanelRenderer"
12
+ ], function (jQuery, library, Control, List, JSONModel, ListMode, CustomData, Sorter, infraUtils, AutoSuggestionLogicalOperatorPanelRenderer) {
13
+ "use strict";
14
+
15
+ var autoSuggestionLogicalOperatorPanel = Control.extend("sap.rules.ui.ast.autoCompleteContent.AutoSuggestionLogicalOperatorPanel", {
16
+ metadata: {
17
+ library: "sap.rules.ui",
18
+ properties: {
19
+ reference: {
20
+ type: "object",
21
+ defaultValue: null,
22
+ },
23
+ data: {
24
+ type: "object",
25
+ defaultValue: null
26
+ },
27
+ expand: {
28
+ type: "boolean",
29
+ defaultValue: false
30
+ }
31
+ },
32
+ aggregations: {
33
+ PanelLayout: {
34
+ type: "sap.m.Panel",
35
+ multiple: false
36
+ }
37
+ },
38
+ events: {}
39
+ },
40
+
41
+ init: function () {
42
+ this.oBundle = sap.ui.getCore().getLibraryResourceBundle("sap.rules.ui.i18n");
43
+ this.infraUtils = new sap.rules.ui.parser.infrastructure.util.utilsBase.utilsBaseLib();
44
+ this.needCreateLayout = true;
45
+ this.AttributeSegmentSelected = true;
46
+ this.dataObjectName = "";
47
+ },
48
+ onBeforeRendering: function () {
49
+ this._reference = this.getReference();
50
+ if (this.needCreateLayout) {
51
+ var layout = this._createLayout();
52
+ this.setAggregation("PanelLayout", layout, true);
53
+ this.needCreateLayout = false;
54
+ }
55
+ },
56
+
57
+ initializeVariables: function () {
58
+
59
+ },
60
+
61
+ _createLayout: function () {
62
+ var that = this;
63
+ var vocabularyData = this.getData();
64
+ // create a Model with this data
65
+ var model = new sap.ui.model.json.JSONModel();
66
+ model.setData(vocabularyData);
67
+
68
+ // create a list
69
+ this.logicalOperatorslist = new sap.m.List({
70
+ growing: true,
71
+ growingScrollToLoad: true,
72
+ enableBusyIndicator: true,
73
+ });
74
+
75
+ //for every item, add relevant icon and description and add item to the list
76
+ var listData = vocabularyData;
77
+ // bind the List items to the data collection
78
+ this.logicalOperatorslist.bindItems({
79
+ path: "/logical",
80
+ sorter: new sap.ui.model.Sorter("name"),
81
+ rememberSelections: false,
82
+ mode: ListMode.SingleSelectMaster,
83
+ template: new sap.m.DisplayListItem({
84
+ label: "{name}",
85
+ value: "{label}",
86
+ type: "Active",
87
+ press: function (oEvent) {
88
+ that._reference(oEvent);
89
+ }
90
+ })
91
+ });
92
+
93
+ // set the model to the List, so it knows which data to use
94
+ this.logicalOperatorslist.setModel(model);
95
+ var that = this;
96
+
97
+ // add list to the panel
98
+ var logicalOperatorsListPanel = new sap.m.Panel({
99
+ headerText: this.oBundle.getText("logicalOperatorsPanelTitle"),
100
+ expandable: true,
101
+ expanded: this.getExpand(),
102
+ content: this.logicalOperatorslist,
103
+ width: "auto"
104
+ });
105
+
106
+ return logicalOperatorsListPanel;
107
+ },
108
+ renderer: AutoSuggestionLogicalOperatorPanelRenderer
109
+
110
+ });
111
+
112
+ return autoSuggestionLogicalOperatorPanel;
111
113
  }, /* bExport= */ true);
@@ -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(['jquery.sap.global'],
9
-
10
- function (jQuery) {
11
- "use strict";
12
-
13
- /**
14
- * AutoSuggestionLogicalOperatorPanelRenderer
15
- * @namespace
16
- */
17
- var AutoSuggestionLogicalOperatorPanelRenderer = {};
18
-
19
- /**
20
- * Renders the HTML for the given control, using the provided
21
- * {@link sap.ui.core.RenderManager}.
22
- *
23
- * @param {sap.ui.core.RenderManager} oRm
24
- * the RenderManager that can be used for writing to
25
- * the Render-Output-Buffer
26
- * @param {sap.ui.core.Control} oControl
27
- * the control to be rendered
28
- */
29
- AutoSuggestionLogicalOperatorPanelRenderer.render = function (oRm, oControl) {
30
-
31
- oRm.write("<div");
32
- oRm.writeControlData(oControl);
33
- oRm.addClass("sapAstLogicalOperatorPanel");
34
- oRm.writeClasses();
35
- oRm.write(">");
36
- var AutoSuggestionLogicalOperatorPanelRenderer = oControl.getAggregation("PanelLayout");
37
- oRm.renderControl(AutoSuggestionLogicalOperatorPanelRenderer);
38
- oRm.write("</div>");
39
-
40
- };
41
-
42
- return AutoSuggestionLogicalOperatorPanelRenderer;
43
-
5
+
6
+ */
7
+
8
+ sap.ui.define([],
9
+
10
+ function () {
11
+ "use strict";
12
+
13
+ /**
14
+ * AutoSuggestionLogicalOperatorPanelRenderer
15
+ * @namespace
16
+ */
17
+ var AutoSuggestionLogicalOperatorPanelRenderer = {
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
+ AutoSuggestionLogicalOperatorPanelRenderer.render = function (oRm, oControl) {
32
+
33
+ oRm.openStart("div", oControl);
34
+ oRm.class("sapAstLogicalOperatorPanel");
35
+ oRm.openEnd();
36
+ var AutoSuggestionLogicalOperatorPanelRenderer = oControl.getAggregation("PanelLayout");
37
+ oRm.renderControl(AutoSuggestionLogicalOperatorPanelRenderer);
38
+ oRm.close("div");
39
+ };
40
+
41
+ return AutoSuggestionLogicalOperatorPanelRenderer;
42
+
44
43
  }, /* bExport= */ true);