@sapui5/sap.rules.ui 1.121.0 → 1.123.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.
Files changed (87) 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 +25 -18
  4. package/src/sap/rules/ui/AstExpressionBasicRenderer.js +6 -4
  5. package/src/sap/rules/ui/AutoCompleteSuggestionContent.js +36 -34
  6. package/src/sap/rules/ui/BindingSpy.js +3 -4
  7. package/src/sap/rules/ui/DecisionTable.js +113 -74
  8. package/src/sap/rules/ui/DecisionTableCell.js +67 -34
  9. package/src/sap/rules/ui/DecisionTableCellAstExpressionBasic.js +17 -13
  10. package/src/sap/rules/ui/DecisionTableCellExpressionAdvanced.js +40 -32
  11. package/src/sap/rules/ui/DecisionTableCellExpressionBasic.js +21 -19
  12. package/src/sap/rules/ui/DecisionTableConfiguration.js +5 -6
  13. package/src/sap/rules/ui/DecisionTableRenderer.js +6 -5
  14. package/src/sap/rules/ui/DecisionTableSettings.js +264 -232
  15. package/src/sap/rules/ui/DecisionTableSettingsOld.js +61 -61
  16. package/src/sap/rules/ui/ExpressionAdvanced.js +135 -111
  17. package/src/sap/rules/ui/ExpressionBase.js +1 -1
  18. package/src/sap/rules/ui/ExpressionBasic.js +17 -12
  19. package/src/sap/rules/ui/InstructionRenderer.js +30 -26
  20. package/src/sap/rules/ui/RuleBase.js +2 -3
  21. package/src/sap/rules/ui/RuleBuilder.js +29 -23
  22. package/src/sap/rules/ui/TextRule.js +78 -62
  23. package/src/sap/rules/ui/TextRuleConfiguration.js +2 -3
  24. package/src/sap/rules/ui/TextRuleSettings.js +133 -116
  25. package/src/sap/rules/ui/ast/autoComplete/AutoComplete.js +4 -3
  26. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAdvancedFunctionPanel.js +15 -10
  27. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAggregateFunctionPanel.js +14 -9
  28. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionArrayOperatorPanel.js +14 -10
  29. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionComparisionOperatorPanel.js +15 -11
  30. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionDateAndTimePanel.js +26 -17
  31. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFixedValuePanel.js +75 -53
  32. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFunctionalOperatorPanel.js +14 -10
  33. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLogicalOperatorPanel.js +14 -10
  34. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanel.js +14 -9
  35. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMathematicalOperatorPanel.js +14 -10
  36. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMiscellaneousOperatorPanel.js +14 -10
  37. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionOperationsPanel.js +14 -10
  38. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionRangeOperatorPanel.js +14 -10
  39. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionSelectFunctionPanel.js +14 -9
  40. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionTimeAndDurationFunctionPanel.js +35 -23
  41. package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionVocabularyPanel.js +93 -73
  42. package/src/sap/rules/ui/ast/util/AggregateFunctionDialog.js +172 -157
  43. package/src/sap/rules/ui/ast/util/LoopFunctionDialog.js +186 -163
  44. package/src/sap/rules/ui/ast/util/SelectFunctionDialog.js +205 -182
  45. package/src/sap/rules/ui/ast/util/utilsBase.js +85 -0
  46. package/src/sap/rules/ui/codemirror/addon/hint/show-hint.js +8 -4
  47. package/src/sap/rules/ui/i18n/messagebundle.properties +9 -1
  48. package/src/sap/rules/ui/i18n/messagebundle_ar.properties +1 -1
  49. package/src/sap/rules/ui/i18n/messagebundle_cnr.properties +34 -34
  50. package/src/sap/rules/ui/i18n/messagebundle_en_US_saprigi.properties +285 -285
  51. package/src/sap/rules/ui/i18n/messagebundle_hu.properties +1 -1
  52. package/src/sap/rules/ui/i18n/messagebundle_mk.properties +3 -3
  53. package/src/sap/rules/ui/i18n/messagebundle_sh.properties +88 -88
  54. package/src/sap/rules/ui/i18n/messagebundle_uk.properties +5 -5
  55. package/src/sap/rules/ui/library.js +6 -7
  56. package/src/sap/rules/ui/parser/businessLanguage/lib/IDPParser.js +115 -114
  57. package/src/sap/rules/ui/parser/businessLanguage/lib/antlr3_all_min.js +4 -4
  58. package/src/sap/rules/ui/parser/businessLanguage/lib/autoCompleteUtils.js +4 -3
  59. package/src/sap/rules/ui/parser/businessLanguage/lib/conversionUtils.js +10 -6
  60. package/src/sap/rules/ui/parser/businessLanguage/lib/entityModel.js +8 -7
  61. package/src/sap/rules/ui/parser/businessLanguage/lib/entityModelConstractor.js +17 -16
  62. package/src/sap/rules/ui/parser/businessLanguage/lib/parsingBackendMediator.js +10 -9
  63. package/src/sap/rules/ui/parser/businessLanguage/lib/termsUtils.js +4 -3
  64. package/src/sap/rules/ui/parser/i18n/messages_descriptions_cnr.properties +57 -57
  65. package/src/sap/rules/ui/parser/i18n/messages_descriptions_en_US_saprigi.properties +210 -210
  66. package/src/sap/rules/ui/parser/i18n/messages_descriptions_mk.properties +1 -1
  67. package/src/sap/rules/ui/parser/i18n/messages_descriptions_sh.properties +90 -90
  68. package/src/sap/rules/ui/parser/i18n/messages_descriptions_sr.properties +1 -1
  69. package/src/sap/rules/ui/parser/i18n/messages_descriptions_uk.properties +2 -2
  70. package/src/sap/rules/ui/parser/i18n/op_messages_descriptions_cnr.properties +19 -19
  71. package/src/sap/rules/ui/parser/i18n/op_messages_descriptions_en_US_saprigi.properties +26 -26
  72. package/src/sap/rules/ui/parser/i18n/op_messages_descriptions_mk.properties +2 -2
  73. package/src/sap/rules/ui/parser/i18n/op_messages_descriptions_sh.properties +26 -26
  74. package/src/sap/rules/ui/parser/infrastructure/errorHandling/hrfException.js +3 -3
  75. package/src/sap/rules/ui/parser/infrastructure/locale/lib/resourceBundleContext.js +4 -3
  76. package/src/sap/rules/ui/parser/infrastructure/messageHandling/lib/responseCollector.js +8 -7
  77. package/src/sap/rules/ui/parser/ruleBody/lib/ruleBody.js +8 -7
  78. package/src/sap/rules/ui/parser/ruleBody/lib/ruleBodyConvertor.js +4 -3
  79. package/src/sap/rules/ui/parser/ruleBody/lib/ruleBodyValidator.js +9 -8
  80. package/src/sap/rules/ui/providers/ValueHelpDialogProvider.js +63 -46
  81. package/src/sap/rules/ui/providers/ValueHelpProvider.js +8 -7
  82. package/src/sap/rules/ui/services/AstExpressionLanguage.js +12 -10
  83. package/src/sap/rules/ui/services/ExpressionLanguage.js +89 -83
  84. package/src/sap/rules/ui/type/DecisionTableCell.js +2 -2
  85. package/src/sap/rules/ui/type/DecisionTableHeader.js +3 -3
  86. package/src/sap/rules/ui/type/Expression.js +3 -3
  87. package/src/sap/rules/ui/type/ExpressionAbs.js +5 -5
@@ -6,13 +6,18 @@
6
6
  */
7
7
 
8
8
  sap.ui.define([
9
- "jquery.sap.global",
9
+ "sap/ui/thirdparty/jquery",
10
10
  "./library",
11
11
  "sap/ui/core/Control",
12
12
  "sap/rules/ui/InstructionRenderer",
13
13
  "sap/rules/ui/ExpressionBase",
14
+ "sap/base/i18n/Formatting",
15
+ "sap/ui/core/format/DateFormat",
16
+ "sap/ui/core/format/NumberFormat",
17
+ "sap/ui/comp/odata/MetadataAnalyser",
18
+ "sap/ui/core/Element",
14
19
  "./ExpressionBasicRenderer"
15
- ], function(jQuery, library, Control, InstructionRenderer, ExpressionBase, ExpressionBasicRenderer) {
20
+ ], function(jQuery, library, Control, InstructionRenderer, ExpressionBase, Formatting, DateFormat, NumberFormat, MetadataAnalyser, Element, ExpressionBasicRenderer) {
16
21
  "use strict";
17
22
 
18
23
  /**
@@ -26,7 +31,7 @@ sap.ui.define([
26
31
  * @extends Control
27
32
  *
28
33
  * @author SAP SE
29
- * @version 1.121.0
34
+ * @version 1.123.0
30
35
  *
31
36
  * @constructor
32
37
  * @private
@@ -76,8 +81,8 @@ sap.ui.define([
76
81
  }
77
82
  this._removeFurtherInstructions(iOriginalIndex);
78
83
  updatedExpression = oInstructionsRenderer.getExpression();
79
- var expressionLanguage = sap.ui.getCore().byId(this.getExpressionLanguage());
80
- var suggestionsPart = sap.rules.ui.SuggestionsPart;
84
+ var expressionLanguage = Element.getElementById(this.getExpressionLanguage());
85
+ var suggestionsPart = library.SuggestionsPart;
81
86
  var suggestions;
82
87
  var updatedInstruction;
83
88
 
@@ -177,9 +182,9 @@ sap.ui.define([
177
182
  }
178
183
 
179
184
  //bug 5339 - remove separators from number
180
- if (suggestion.BDT === sap.rules.ui.ExpressionType.Number) {
181
- var oLocale = sap.ui.getCore().getConfiguration().getFormatSettings().getFormatLocale();
182
- var oFloatFormat = sap.ui.core.format.NumberFormat.getFloatInstance(oLocale);
185
+ if (suggestion.BDT === library.ExpressionType.Number) {
186
+ var oLocale = Formatting.getLanguageTag();
187
+ var oFloatFormat = NumberFormat.getFloatInstance(oLocale);
183
188
  var fnFormatFloat = function (number) {
184
189
  number = oFloatFormat.parse(number);
185
190
  if (isNaN(number)) {
@@ -209,7 +214,7 @@ sap.ui.define([
209
214
  if (suggestion.valueListObject) {
210
215
  var model = [suggestion.valueListObject];
211
216
  instruction.valueListObject = suggestion.valueListObject;
212
- var expressionLanguage = sap.ui.getCore().byId(this.getExpressionLanguage());
217
+ var expressionLanguage = Element.getElementById(this.getExpressionLanguage());
213
218
  instruction.expressionLanguage = expressionLanguage;
214
219
  if (model && model instanceof Array && !model[0].metadata.HasValueSource) {
215
220
  instruction.valueListObject = model[0];
@@ -219,7 +224,7 @@ sap.ui.define([
219
224
  var callback = expressionLanguage.getValueHelpCallback();
220
225
  callback.call(this, model);
221
226
  var tempModel = instruction.valueListObject.model;
222
- var oMetadataAnalyzer = new sap.ui.comp.odata.MetadataAnalyser(tempModel);
227
+ var oMetadataAnalyzer = new MetadataAnalyser(tempModel);
223
228
  var sAnnotationPath = instruction.valueListObject.metadata.propertyPath;
224
229
  var oValueListAnnotation = oMetadataAnalyzer.getValueListAnnotation(sAnnotationPath);
225
230
  instructions.forEach(function(instruction) {
@@ -249,7 +254,7 @@ sap.ui.define([
249
254
  },
250
255
  _reload: function() {
251
256
  this.shouldReload = false;
252
- var suggestions = sap.ui.getCore().byId(this.getExpressionLanguage())._getBasicSuggestions(this.getValue());
257
+ var suggestions = Element.getElementById(this.getExpressionLanguage())._getBasicSuggestions(this.getValue());
253
258
  if (this._checkForValueHelpSuggestions(suggestions)) {
254
259
  return;
255
260
  }
@@ -298,7 +303,7 @@ sap.ui.define([
298
303
 
299
304
 
300
305
 
301
- jQuery.sap.byId(this.getId()).on("change", null, function(event) {
306
+ this.$().on("change", null, function(event) {
302
307
 
303
308
  this.focus();
304
309
 
@@ -1,7 +1,6 @@
1
1
  sap.ui.define([
2
2
  "sap/ui/core/Control",
3
3
  "sap/ui/core/Item",
4
- "sap/ui/core/ValueState",
5
4
  "sap/m/Select",
6
5
  "sap/m/Input",
7
6
  "sap/m/Button",
@@ -23,10 +22,16 @@ sap.ui.define([
23
22
  "sap/rules/ui/providers/ValueHelpProvider",
24
23
  "sap/rules/ui/providers/ValueHelpDialogProvider",
25
24
  "sap/ui/core/LocaleData",
26
- "sap/rules/ui/Constants"
27
- ], function(Control, CoreItem, ValueState, Select, Input, Button, SelectDialog, StandardListItem, Text, DatePicker,
25
+ "sap/rules/ui/Constants",
26
+ "sap/m/Popover",
27
+ "sap/base/i18n/Formatting",
28
+ "sap/ui/model/type/String",
29
+ "sap/m/MessageBox",
30
+ "sap/ui/core/format/DateFormat",
31
+ "sap/ui/core/library",
32
+ ], function(Control, CoreItem, Select, Input, Button, SelectDialog, StandardListItem, Text, DatePicker,
28
33
  TypeFloat, TypeDate, TypeTime, TypeDateTime, HTML, JSONModel, Filter, FilterOperator, Utils, DateTimePicker,
29
- TimePicker, ValueHelpProvider, ValueHelpDialogProvider, LocaleData, Constants) {
34
+ TimePicker, ValueHelpProvider, ValueHelpDialogProvider, LocaleData, Constants, Popover, Formatting, String, MessageBox, DateFormat, coreLibrary) {
30
35
  "use strict";
31
36
 
32
37
  return Control.extend("sap.rules.ui.InstructionRenderer", {
@@ -73,7 +78,7 @@ sap.ui.define([
73
78
  "|" +
74
79
  "^[^" + ILLEGAL_CHARS + "]*$";
75
80
 
76
- this.lineBreakIndexes = { // auxiliary rendering data to support
81
+ this.lineBreakIndexes = { // auxiliary rendering data to support
77
82
  start: {}, // lines breaking in indent mode
78
83
  end: {}
79
84
  };
@@ -185,7 +190,7 @@ sap.ui.define([
185
190
  },
186
191
 
187
192
  /**
188
- * @returns {string} a concatenated string of space separated tokens
193
+ * @returns {string} a concatenated string of space separated tokens
189
194
  * **/
190
195
  getExpression: function() {
191
196
  var expression = [];
@@ -197,7 +202,7 @@ sap.ui.define([
197
202
  expression.push(token);
198
203
  }
199
204
  var tokenExpression = instructions[instructions.length - 1].token;
200
-
205
+
201
206
  if (!tokenExpression && tokenExpression !== 0) {
202
207
  expression.pop(instructions.length - 1);
203
208
  }
@@ -364,12 +369,12 @@ sap.ui.define([
364
369
  bAddSpace: false
365
370
  });
366
371
  var oPopover = this.getParent().getParent();
367
- if (oPopover instanceof sap.m.Popover) {
372
+ if (oPopover instanceof Popover) {
368
373
  this.valueHelpCtrl.oValueHelpDialogProvider._popover = oPopover;
369
374
  }
370
375
  }
371
-
372
-
376
+
377
+
373
378
  this.valueHelpCtrl.addStyleClass(this.TOKENS_GAP_CLASS);
374
379
 
375
380
  return {
@@ -393,7 +398,7 @@ sap.ui.define([
393
398
  change: function(event) {
394
399
 
395
400
  },
396
- enabled: (oParent.bReadOnly && oParent instanceof sap.rules.ui.DecisionTableCellExpressionBasic) ? false : true
401
+ enabled: (oParent.bReadOnly && oParent.isA("sap.rules.ui.DecisionTableCellExpressionBasics")) ? false : true
397
402
  });
398
403
  ctrl.addStyleClass(this.TOKENS_GAP_CLASS);
399
404
 
@@ -499,10 +504,10 @@ sap.ui.define([
499
504
  var valueRange = this._createValueRange(instruction);
500
505
  this._removeTextSingleQuote(localPath);
501
506
  //bug 5312
502
- var oLocale = sap.ui.getCore().getConfiguration().getFormatSettings().getFormatLocale();
507
+ var oLocale = Formatting.getLanguageTag();
503
508
  var oLocaleData = LocaleData.getInstance(oLocale);
504
509
  var timeFormat = oLocaleData.getTimePattern('medium');
505
-
510
+
506
511
  var ctrl = new TimePicker({
507
512
  width: "auto",
508
513
  type: "Time",
@@ -529,7 +534,7 @@ sap.ui.define([
529
534
  var valueRange = this._createValueRange(instruction);
530
535
  this._removeTextSingleQuote(localPath);
531
536
  //bug 5312
532
- var oLocale = sap.ui.getCore().getConfiguration().getFormatSettings().getFormatLocale();
537
+ var oLocale = Formatting.getLanguageTag();
533
538
  var oLocaleData = LocaleData.getInstance(oLocale);
534
539
  var dateFormatted = oLocaleData.getDatePattern('short');
535
540
  var timeFormat = oLocaleData.getTimePattern('medium');
@@ -560,7 +565,7 @@ sap.ui.define([
560
565
  var ctrl = new Input({
561
566
  value: {
562
567
  path: fullPath + this.TEXT,
563
- type: new sap.ui.model.type.String(
568
+ type: new String(
564
569
  null, {
565
570
  search: this.VALIDATION_REGEX
566
571
  }) // prevent illegal characters
@@ -586,7 +591,7 @@ sap.ui.define([
586
591
  },
587
592
 
588
593
  _createBooleanSelectionControl: function(instruction, nextCreateFunction, localPath, fullPath) {
589
- var ctrl = new sap.m.Select({
594
+ var ctrl = new Select({
590
595
  selectedKey: "{" + fullPath + this.TOKEN + "}",
591
596
  width: "auto",
592
597
  items: [{
@@ -791,9 +796,8 @@ sap.ui.define([
791
796
  },
792
797
 
793
798
  _showErrorMessage: function(message) {
794
- sap.ui.require("sap.m.MessageBox");
795
- sap.m.MessageBox.alert(message, {
796
- icon: sap.m.MessageBox.Icon.ERROR //,
799
+ MessageBox.alert(message, {
800
+ icon: "ERROR" //,
797
801
 
798
802
  //title: this.oBundle.getText("ERROR")
799
803
  });
@@ -812,7 +816,7 @@ sap.ui.define([
812
816
  addEndQuote = false;
813
817
  var newValue = "";
814
818
  var businessDataType = "";
815
-
819
+
816
820
  if (model) {
817
821
  newValue = model.getProperty(localPath + this.TEXT);
818
822
  if (model.oData && model.oData.instructions) {
@@ -820,17 +824,17 @@ sap.ui.define([
820
824
  for (var instruction in instructions) {
821
825
  businessDataType = instructions[instruction].businessDataType;
822
826
  }
823
-
827
+
824
828
  }
825
829
  }
826
-
830
+
827
831
  // Date instance which is used to convert the selected date from calendar control to short format
828
- var oLocale = sap.ui.getCore().getConfiguration().getFormatSettings().getFormatLocale();
832
+ var oLocale = Formatting.getLanguageTag();
829
833
  var oLocaleData = LocaleData.getInstance(oLocale);
830
-
831
- this.oFormatDate = sap.ui.core.format.DateFormat.getInstance({
834
+
835
+ this.oFormatDate = DateFormat.getInstance({
832
836
  pattern: oLocaleData.getDatePattern('short'),
833
- calendarType: sap.ui.core.CalendarType.Gregorian
837
+ calendarType: coreLibrary.CalendarType.Gregorian
834
838
  },
835
839
  oLocale
836
840
  );
@@ -7,10 +7,9 @@
7
7
 
8
8
  // Provides control sap.rules.ui.
9
9
  sap.ui.define([
10
- "jquery.sap.global",
11
10
  "./library",
12
11
  "sap/ui/core/Control"
13
- ], function(jQuery, library, Control) {
12
+ ], function(library, Control) {
14
13
  "use strict";
15
14
 
16
15
  /**
@@ -24,7 +23,7 @@ sap.ui.define([
24
23
  * @extends Control
25
24
  *
26
25
  * @author SAP SE
27
- * @version 1.121.0
26
+ * @version 1.123.0
28
27
  *
29
28
  * @constructor
30
29
  * @private
@@ -7,7 +7,6 @@
7
7
 
8
8
  // Provides control sap.rules.ui.
9
9
  sap.ui.define([
10
- "jquery.sap.global",
11
10
  "./library",
12
11
  "sap/ui/core/Control",
13
12
  "sap/m/Select",
@@ -15,12 +14,13 @@ sap.ui.define([
15
14
  "sap/rules/ui/DecisionTable",
16
15
  "sap/rules/ui/DecisionTableConfiguration",
17
16
  "sap/rules/ui/TextRuleConfiguration",
18
- "sap/rules/ui/RuleType",
19
- "sap/rules/ui/RuleFormat",
20
17
  "sap/rules/ui/TextRule",
18
+ "sap/ui/core/Lib",
19
+ "sap/ui/model/json/JSONModel",
20
+ "sap/m/ComboBox",
21
+ "sap/ui/model/Context",
21
22
  "./RuleBuilderRenderer"
22
- ], function(jQuery, library, Control, Select, Item, DecisionTable, DecisionTableConfiguration, TextRuleConfiguration, RuleType,
23
- RuleFormat, TextRule, RuleBuilderRenderer) {
23
+ ], function(library, Control, Select, Item, DecisionTable, DecisionTableConfiguration, TextRuleConfiguration, TextRule, coreLib, JSONModel, ComboBox, Context, RuleBuilderRenderer) {
24
24
  "use strict";
25
25
 
26
26
  /**
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @extends sap.ui.core.Control
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.121.0
37
+ * @version 1.123.0
38
38
  *
39
39
  * @constructor
40
40
  * @public
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  */
54
54
  types: {
55
55
  type: "sap.rules.ui.RuleType[]",
56
- defaultValue: [sap.rules.ui.RuleType.DecisionTable, sap.rules.ui.RuleType.TextRule]
56
+ defaultValue: [library.RuleType.DecisionTable, library.RuleType.TextRule]
57
57
  },
58
58
  /**
59
59
  * Name of the rule's ODataModel (optional).
@@ -158,7 +158,7 @@ sap.ui.define([
158
158
  },
159
159
 
160
160
  init: function() {
161
- this.oBundle = sap.ui.getCore().getLibraryResourceBundle("sap.rules.ui.i18n");
161
+ this.oBundle = coreLib.getResourceBundleFor("sap.rules.ui.i18n");
162
162
  this.needCreateDisplayedControl = true;
163
163
 
164
164
  this.needRebind = true;
@@ -183,7 +183,7 @@ sap.ui.define([
183
183
  decisionTableConfiguration: {},
184
184
  textRuleConfiguration: {}
185
185
  };
186
- var oModel = new sap.ui.model.json.JSONModel();
186
+ var oModel = new JSONModel();
187
187
  oModel.setData(data);
188
188
  return oModel;
189
189
  },
@@ -200,7 +200,7 @@ sap.ui.define([
200
200
  var bindingContextPath = this.getBindingContextPath();
201
201
  var model = this._getModel();
202
202
 
203
- var oContext = new sap.ui.model.Context(model, bindingContextPath);
203
+ var oContext = new Context(model, bindingContextPath);
204
204
  this.setBindingContext(oContext);
205
205
  },
206
206
 
@@ -212,11 +212,11 @@ sap.ui.define([
212
212
  // get DT configuration object, or create it if it doesn't exists
213
213
  var oTextRuleConfiguration = this.getTextRuleConfiguration();
214
214
  if (!oTextRuleConfiguration) {
215
- oTextRuleConfiguration = new sap.rules.ui.TextRuleConfiguration();
215
+ oTextRuleConfiguration = new TextRuleConfiguration();
216
216
  this.setTextRuleConfiguration(oTextRuleConfiguration);
217
217
  };
218
218
 
219
- var oTextRule = new sap.rules.ui.TextRule({
219
+ var oTextRule = new TextRule({
220
220
  bindingContextPath: {
221
221
  path: "ruleBuilderInternalModel>/bindingContextPath"
222
222
  },
@@ -248,14 +248,14 @@ sap.ui.define([
248
248
  // get DT configuration object, or create it if it doesn't exists
249
249
  var oDecisionTableConfiguration = this.getDecisionTableConfiguration();
250
250
  if (!oDecisionTableConfiguration) {
251
- oDecisionTableConfiguration = new sap.rules.ui.DecisionTableConfiguration();
251
+ oDecisionTableConfiguration = new DecisionTableConfiguration();
252
252
  this.setDecisionTableConfiguration(oDecisionTableConfiguration);
253
253
  };
254
254
 
255
- sap.rules.ui.DecisionTable.prototype.VISIBLEROWCOUNT = this.getDecisionTableConfiguration().getVisibleRowCount();
256
- sap.rules.ui.DecisionTable.prototype.THRESHOLD = this.getDecisionTableConfiguration().getThreshold();
255
+ DecisionTable.prototype.VISIBLEROWCOUNT = this.getDecisionTableConfiguration().getVisibleRowCount();
256
+ DecisionTable.prototype.THRESHOLD = this.getDecisionTableConfiguration().getThreshold();
257
257
  // create DT
258
- var oDT = new sap.rules.ui.DecisionTable({
258
+ var oDT = new DecisionTable({
259
259
  bindingContextPath: {
260
260
  path: "ruleBuilderInternalModel>/bindingContextPath"
261
261
  },
@@ -265,6 +265,9 @@ sap.ui.define([
265
265
  editable: {
266
266
  path: "ruleBuilderInternalModel>/editable"
267
267
  },
268
+ /**
269
+ * @deprecated Since 1.52.8, use the attribute RuleFormat instead.
270
+ */
268
271
  cellFormat: {
269
272
  path: "ruleBuilderInternalModel>/decisionTableConfiguration/cellFormat"
270
273
  },
@@ -290,13 +293,13 @@ sap.ui.define([
290
293
  _createDisplayedControl: function(sDisplayedControlType) {
291
294
  var oDisplayedControl;
292
295
  switch (sDisplayedControlType) {
293
- case sap.rules.ui.RuleType.DecisionTable:
296
+ case library.RuleType.DecisionTable:
294
297
  oDisplayedControl = this._createDecisionTable();
295
298
  break;
296
- case "sap.rules.ui.RuleType.Ruleset":
299
+ case "library.RuleType.Ruleset":
297
300
  oDisplayedControl = this._createRuleset();
298
301
  break;
299
- case sap.rules.ui.RuleType.TextRule:
302
+ case library.RuleType.TextRule:
300
303
  oDisplayedControl = this._createTextRule();
301
304
  break;
302
305
  default:
@@ -311,18 +314,18 @@ sap.ui.define([
311
314
 
312
315
  this.oBundle.getText('decisionTable');
313
316
 
314
- var oRuleTypesModel = new sap.ui.model.json.JSONModel({
317
+ var oRuleTypesModel = new JSONModel({
315
318
  items: [{
316
- key: sap.rules.ui.RuleType.DecisionTable,
319
+ key: library.RuleType.DecisionTable,
317
320
  text: this.oBundle.getText('decisionTable')
318
321
  }]
319
322
  });
320
323
 
321
- var oRuleTypeSelector = new sap.m.ComboBox({
324
+ var oRuleTypeSelector = new ComboBox({
322
325
  width: "25%",
323
326
  items: {
324
327
  path: 'ruleTypes>/items',
325
- template: new sap.ui.core.Item({
328
+ template: new Item({
326
329
  text: "{ruleTypes>text}",
327
330
  key: "{ruleTypes>key}"
328
331
  })
@@ -388,6 +391,9 @@ sap.ui.define([
388
391
  this._setDecisionTableConfigurationProperty("enableSettings", oDecisionTableConfiguration.getEnableSettings());
389
392
  this._setDecisionTableConfigurationProperty("enableSettingResult", oDecisionTableConfiguration.getEnableSettingResult());
390
393
  this._setDecisionTableConfigurationProperty("hitPolicies", oDecisionTableConfiguration.getHitPolicies());
394
+ /**
395
+ * @deprecated Since 1.52.8, use the attribute RuleFormat instead.
396
+ */
391
397
  this._setDecisionTableConfigurationProperty("cellFormat", oDecisionTableConfiguration.getCellFormat());
392
398
  this._setDecisionTableConfigurationProperty("decisionTableFormat", oDecisionTableConfiguration.getDecisionTableFormat());
393
399
  this._setDecisionTableConfigurationProperty("visibleRowCount", oDecisionTableConfiguration.getVisibleRowCount());