@sapui5/sap.rules.ui 1.100.0 → 1.103.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/AstExpressionBasicRenderer.js +3 -0
- package/src/sap/rules/ui/BindingSpy.js +1 -1
- package/src/sap/rules/ui/DecisionTable.js +1 -1
- package/src/sap/rules/ui/DecisionTableCell.js +1 -1
- package/src/sap/rules/ui/DecisionTableCellAstExpressionBasic.js +1 -1
- package/src/sap/rules/ui/DecisionTableCellExpressionAdvanced.js +1 -1
- package/src/sap/rules/ui/DecisionTableCellExpressionBasic.js +1 -1
- package/src/sap/rules/ui/DecisionTableConfiguration.js +1 -1
- package/src/sap/rules/ui/DecisionTableSettings.js +22 -11
- package/src/sap/rules/ui/DecisionTableSettingsOld.js +1 -1
- package/src/sap/rules/ui/ExpressionBase.js +1 -1
- package/src/sap/rules/ui/ExpressionBasic.js +1 -1
- package/src/sap/rules/ui/RuleBase.js +1 -1
- package/src/sap/rules/ui/RuleBuilder.js +1 -1
- package/src/sap/rules/ui/TextRule.js +1 -1
- package/src/sap/rules/ui/TextRuleConfiguration.js +1 -1
- package/src/sap/rules/ui/TextRuleSettings.js +1 -1
- package/src/sap/rules/ui/library.js +18 -18
- package/src/sap/rules/ui/parser/i18n/src/sap/hrf/res/properties/messages_descriptions.properties +1 -1
- package/src/sap/rules/ui/parser/i18n/src/sap/hrf/res/properties/messages_descriptions_ar.properties +0 -1
- package/src/sap/rules/ui/parser/i18n/src/sap/hrf/res/properties/messages_descriptions_bg.properties +0 -1
- package/src/sap/rules/ui/parser/i18n/src/sap/hrf/res/properties/messages_descriptions_de.properties +0 -1
- package/src/sap/rules/ui/parser/i18n/src/sap/hrf/res/properties/messages_descriptions_iw.properties +0 -1
- package/src/sap/rules/ui/services/AstExpressionLanguage.js +1 -1
- package/src/sap/rules/ui/services/ExpressionLanguage.js +1 -1
- package/src/sap/rules/ui/themes/base/AstExpression.less +2 -3
- package/src/sap/rules/ui/themes/base/DecisionTableSettings.less +10 -7
- package/src/sap/rules/ui/type/ExpressionAbs.js +1 -1
package/package.json
CHANGED
|
@@ -34,6 +34,9 @@ sap.ui.define([
|
|
|
34
34
|
}
|
|
35
35
|
var oBundle = sap.ui.getCore().getLibraryResourceBundle("sap.rules.ui.i18n");
|
|
36
36
|
var placeHolderText = oBundle.getText("ctrlSpaceCue");
|
|
37
|
+
if(placeHolderText.length>50 && oControl.getParent().getId() === "popover") {
|
|
38
|
+
placeHolderText = placeHolderText.substring(0,50) + " ...";
|
|
39
|
+
}
|
|
37
40
|
|
|
38
41
|
var sEditable = "contenteditable=\"true\"";
|
|
39
42
|
var sPlaceHolder = "data-placeholder=\"" + placeHolderText + "\"";
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* @extends Control
|
|
44
44
|
*
|
|
45
45
|
* @author SAP SE
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.103.0
|
|
47
47
|
*
|
|
48
48
|
* @constructor
|
|
49
49
|
* @private
|
|
@@ -984,7 +984,22 @@ sap.ui.define([
|
|
|
984
984
|
}).setBindingContext(oContext);
|
|
985
985
|
this._setExpressionRelevantOperators(displayExpression.relString, oContext.getProperty("Condition/Id"), oContext.getProperty(
|
|
986
986
|
"Condition/ValueOnly"), astExpressionBasic);
|
|
987
|
-
|
|
987
|
+
if(document.getElementById("content")&& document.getElementById("content").classList &&
|
|
988
|
+
document.getElementById("content").classList.length>0 &&
|
|
989
|
+
isCompactClassPresent(document.getElementById("content").classList)){
|
|
990
|
+
astExpressionBasic.addStyleClass("sapRULDecisionTableSettingsAstExpressionCompactSize");
|
|
991
|
+
} else {
|
|
992
|
+
astExpressionBasic.addStyleClass("sapRULDecisionTableSettingsAstExpressionCozySize");
|
|
993
|
+
}
|
|
994
|
+
function isCompactClassPresent(List){
|
|
995
|
+
for(var i=0;i< List.length;i++) {
|
|
996
|
+
if (List[i] === "sapUiSizeCompact") {
|
|
997
|
+
return true;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
return false;
|
|
1001
|
+
};
|
|
1002
|
+
//astExpressionBasic.addStyleClass("sapRULDecisionTableSettingsAstExpression");
|
|
988
1003
|
return astExpressionBasic;
|
|
989
1004
|
};
|
|
990
1005
|
|
|
@@ -1882,10 +1897,6 @@ sap.ui.define([
|
|
|
1882
1897
|
var type = oContext.getProperty("Type");
|
|
1883
1898
|
var fixedOperator = oContext.getProperty("Condition/FixedOperator");
|
|
1884
1899
|
var sOperator = this.getAstExpressionLanguage() ? this.astUtil._getCapitalOperatorName(fixedOperator) : fixedOperator;
|
|
1885
|
-
var styleClass ="";
|
|
1886
|
-
if (this.getAstExpressionLanguage()) {
|
|
1887
|
-
styleClass = "sapRULDecisionTableSettingsTableContent";
|
|
1888
|
-
}
|
|
1889
1900
|
|
|
1890
1901
|
return new sap.m.ColumnListItem({
|
|
1891
1902
|
visible: type === sap.rules.ui.DecisionTableColumn.Condition,
|
|
@@ -1903,7 +1914,7 @@ sap.ui.define([
|
|
|
1903
1914
|
model.setProperty(oContext.getPath() + "/Label", labelValue);
|
|
1904
1915
|
this._changeColumnStatusToUpdate(oContext);
|
|
1905
1916
|
}.bind(this)
|
|
1906
|
-
})
|
|
1917
|
+
}),
|
|
1907
1918
|
|
|
1908
1919
|
// gets the vocab col
|
|
1909
1920
|
new sap.m.Select({
|
|
@@ -1928,7 +1939,7 @@ sap.ui.define([
|
|
|
1928
1939
|
//Mark column as "Updated"
|
|
1929
1940
|
this._changeColumnStatusToUpdate(oContext);
|
|
1930
1941
|
}.bind(this)
|
|
1931
|
-
})
|
|
1942
|
+
}),
|
|
1932
1943
|
|
|
1933
1944
|
// text or guided selection- this will not be supported
|
|
1934
1945
|
/*new sap.m.Select({
|
|
@@ -1971,7 +1982,7 @@ sap.ui.define([
|
|
|
1971
1982
|
//Remove coulmn from JSON model
|
|
1972
1983
|
this._removeColumnFromJsonModel(sequence, status);
|
|
1973
1984
|
}.bind(this)
|
|
1974
|
-
}).setTooltip(this.oBundle.getText("removeColumn"))
|
|
1985
|
+
}).setTooltip(this.oBundle.getText("removeColumn")),
|
|
1975
1986
|
new sap.m.Button({
|
|
1976
1987
|
type: sap.m.ButtonType.Transparent,
|
|
1977
1988
|
icon: sap.ui.core.IconPool.getIconURI("add"),
|
|
@@ -1979,11 +1990,11 @@ sap.ui.define([
|
|
|
1979
1990
|
//Add coulmn from JSON model
|
|
1980
1991
|
this._addColumnToJsonModel(sequence);
|
|
1981
1992
|
}.bind(this)
|
|
1982
|
-
}).setTooltip(this.oBundle.getText("addColumn"))
|
|
1993
|
+
}).setTooltip(this.oBundle.getText("addColumn"))
|
|
1983
1994
|
]
|
|
1984
1995
|
})
|
|
1985
1996
|
]
|
|
1986
|
-
});
|
|
1997
|
+
}).addStyleClass("sapRULDecisionTableSettingsConditionRow");
|
|
1987
1998
|
};
|
|
1988
1999
|
|
|
1989
2000
|
sap.rules.ui.DecisionTableSettings.prototype._updateDecisionTableHeader = function () {
|
|
@@ -19,13 +19,13 @@ sap.ui.define([
|
|
|
19
19
|
* UI5 library: sap.rules.ui.
|
|
20
20
|
*
|
|
21
21
|
* @namespace
|
|
22
|
-
* @
|
|
22
|
+
* @alias sap.rules.ui
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
// library dependencies
|
|
27
27
|
// delegate further initialization of this library to the Core
|
|
28
|
-
sap.ui.getCore().initLibrary({
|
|
28
|
+
var rulesUI = sap.ui.getCore().initLibrary({
|
|
29
29
|
name: "sap.rules.ui",
|
|
30
30
|
dependencies: ["sap.ui.core","sap.ui.comp"],
|
|
31
31
|
types: [
|
|
@@ -64,7 +64,7 @@ sap.ui.define([
|
|
|
64
64
|
"sap.rules.ui.services.AstExpressionLanguage"
|
|
65
65
|
],
|
|
66
66
|
noLibraryCSS: false,
|
|
67
|
-
version: "1.
|
|
67
|
+
version: "1.103.0"
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
// sap.rules.ui library contants
|
|
@@ -78,7 +78,7 @@ sap.ui.define([
|
|
|
78
78
|
* @enum {string}
|
|
79
79
|
* @private
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
rulesUI.DecisionTableColumn = {
|
|
82
82
|
/**
|
|
83
83
|
* Condition column
|
|
84
84
|
* @public
|
|
@@ -97,7 +97,7 @@ sap.ui.define([
|
|
|
97
97
|
* @enum {string}
|
|
98
98
|
* @private
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
rulesUI.ChangeId = {
|
|
101
101
|
/**
|
|
102
102
|
* oDataModel groupId for New Rule
|
|
103
103
|
* @public
|
|
@@ -130,7 +130,7 @@ sap.ui.define([
|
|
|
130
130
|
* @enum {string}
|
|
131
131
|
* @public
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
rulesUI.RuleType = {
|
|
134
134
|
/**
|
|
135
135
|
* Specifies that the rule is formulated as a table that allows complex rules to be visualized according to an if-then-else logic.
|
|
136
136
|
* @public
|
|
@@ -154,7 +154,7 @@ sap.ui.define([
|
|
|
154
154
|
* @public
|
|
155
155
|
* @deprecated This attribute is deprecated since version 1.52.8, use the property decisionTableFormat.
|
|
156
156
|
*/
|
|
157
|
-
|
|
157
|
+
rulesUI.DecisionTableCellFormat = {
|
|
158
158
|
/**
|
|
159
159
|
* Specifies that both rule formats are available in the decision table; allowing the rule creator to choose whether to formulate the decision table cells in either the basic or advanced format.
|
|
160
160
|
* @public
|
|
@@ -178,7 +178,7 @@ sap.ui.define([
|
|
|
178
178
|
* @enum {string}
|
|
179
179
|
* @private
|
|
180
180
|
*/
|
|
181
|
-
|
|
181
|
+
rulesUI.RuleFormat = {
|
|
182
182
|
/**
|
|
183
183
|
* Specifies that both rule formats are available; allowing the rule creator to choose whether to formulate the rule's expression in either the basic or advanced format.
|
|
184
184
|
* @private
|
|
@@ -205,7 +205,7 @@ sap.ui.define([
|
|
|
205
205
|
* @enum {string}
|
|
206
206
|
* @public
|
|
207
207
|
*/
|
|
208
|
-
|
|
208
|
+
rulesUI.DecisionTableFormat = {
|
|
209
209
|
/**
|
|
210
210
|
* Specifies that the rendering of a cell is based on cellFormat and each cell can have a different format during rendering
|
|
211
211
|
* @public
|
|
@@ -227,7 +227,7 @@ sap.ui.define([
|
|
|
227
227
|
* @enum {string}
|
|
228
228
|
* @public
|
|
229
229
|
*/
|
|
230
|
-
|
|
230
|
+
rulesUI.RuleHitPolicy = {
|
|
231
231
|
/**
|
|
232
232
|
* Specifies that only the first condition that matches the input (the first matching row by order in the decision table) is returned as an output.
|
|
233
233
|
* @public
|
|
@@ -240,11 +240,11 @@ sap.ui.define([
|
|
|
240
240
|
AllMatch: "AM"
|
|
241
241
|
};
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
rulesUI.ValidationStatus = {
|
|
244
244
|
Success: "Success",
|
|
245
245
|
Error: "Error"
|
|
246
246
|
};
|
|
247
|
-
|
|
247
|
+
rulesUI.ExpressionTokenType = {
|
|
248
248
|
alias: "alias",
|
|
249
249
|
parameter: "parameter",
|
|
250
250
|
reservedWord: "reservedword",
|
|
@@ -254,7 +254,7 @@ sap.ui.define([
|
|
|
254
254
|
valueList: "valueList",
|
|
255
255
|
unknown: "unknown"
|
|
256
256
|
};
|
|
257
|
-
|
|
257
|
+
rulesUI.ExpressionCategory = {
|
|
258
258
|
fixed: "fixed",
|
|
259
259
|
dynamic: "dynamic",
|
|
260
260
|
value: "value",
|
|
@@ -280,7 +280,7 @@ sap.ui.define([
|
|
|
280
280
|
* @enum {string}
|
|
281
281
|
* @private
|
|
282
282
|
*/
|
|
283
|
-
|
|
283
|
+
rulesUI.SuggestionsPart = {
|
|
284
284
|
all: "all",
|
|
285
285
|
leftPart: "leftPart",
|
|
286
286
|
compPart: "compPart",
|
|
@@ -293,7 +293,7 @@ sap.ui.define([
|
|
|
293
293
|
* @enum {string}
|
|
294
294
|
* @public
|
|
295
295
|
*/
|
|
296
|
-
|
|
296
|
+
rulesUI.ExpressionType = {
|
|
297
297
|
/**
|
|
298
298
|
* Specifies that the expression can be of any of the supported business data types.
|
|
299
299
|
* @public
|
|
@@ -346,11 +346,11 @@ sap.ui.define([
|
|
|
346
346
|
BooleanEnhanced:"BooleanEnhanced"
|
|
347
347
|
};
|
|
348
348
|
|
|
349
|
-
|
|
349
|
+
rulesUI.BackendParserRequest = {
|
|
350
350
|
Validate: "validate",
|
|
351
351
|
Suggests: "autocomplete",
|
|
352
352
|
GetMetadata: "tokens"
|
|
353
353
|
};
|
|
354
354
|
|
|
355
|
-
return
|
|
356
|
-
});
|
|
355
|
+
return rulesUI;
|
|
356
|
+
});
|
|
@@ -29,7 +29,7 @@ sap.ui.define(['jquery.sap.global',
|
|
|
29
29
|
*
|
|
30
30
|
* @class
|
|
31
31
|
* Provides the AstExpressionLanguage service functionality, such as expression validations, expression parsing, auto-complete suggestions, retrieving expression metadata and tokens, and performing runtime services (fetching data objects, outputs, etc).
|
|
32
|
-
* @extends
|
|
32
|
+
* @extends sap.ui.core.Element
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
35
|
* @version 1.58.1
|
|
@@ -25,7 +25,7 @@ sap.ui.define(["jquery.sap.global",
|
|
|
25
25
|
*
|
|
26
26
|
* @class
|
|
27
27
|
* Provides the ExpressionLanguage service functionality, such as expression validations, expression parsing, auto-complete suggestions, retrieving expression metadata and tokens, and performing runtime services (fetching data objects, outputs, etc).
|
|
28
|
-
* @extends
|
|
28
|
+
* @extends sap.ui.core.Element
|
|
29
29
|
*
|
|
30
30
|
* @author SAP SE
|
|
31
31
|
* @version 1.58.1
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
box-sizing: border-box;
|
|
35
35
|
background-color: @sapUiFieldBackground;
|
|
36
36
|
width: 100%;
|
|
37
|
-
min-width:
|
|
37
|
+
min-width: 20rem;
|
|
38
38
|
display: block;
|
|
39
39
|
color: @_sap_rules_ui_AstExpression_Color;
|
|
40
40
|
}
|
|
@@ -205,7 +205,6 @@
|
|
|
205
205
|
|
|
206
206
|
.sapAstAutoCompleteSuggestionContentRenderer .sapMDLILabel {
|
|
207
207
|
font-size: 12px;
|
|
208
|
-
height: 28px;
|
|
209
208
|
}
|
|
210
209
|
|
|
211
210
|
.sapAstAutoCompleteSuggestionContentRenderer .sapUiSizeCompact .sapMDLI {
|
|
@@ -229,7 +228,7 @@
|
|
|
229
228
|
padding-left: 1.1rem;
|
|
230
229
|
}
|
|
231
230
|
|
|
232
|
-
div:empty:
|
|
231
|
+
div:empty:after {
|
|
233
232
|
content:attr(data-placeholder);
|
|
234
233
|
color:@sapUiFieldPlaceholderTextColor;
|
|
235
234
|
font-size : 0.75rem !important;
|
|
@@ -49,16 +49,19 @@
|
|
|
49
49
|
padding-right: 0.25rem;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
.sapRULDecisionTableSettingsConditionRow {
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
.sapRULDecisionTableSettingsConditionRow .sapAstExpressionPreSpaceMargin {
|
|
56
|
+
margin: 0.1875rem 0 !important;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
.
|
|
59
|
+
.sapRULDecisionTableSettingsAstExpressionCompactSize {
|
|
59
60
|
min-height: 1.6rem !important;
|
|
60
61
|
line-height:1.5rem !important;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
.sapRULDecisionTableSettingsAstExpressionCozySize {
|
|
65
|
+
min-height: 1.6rem !important;
|
|
66
|
+
line-height:2.125rem !important;
|
|
67
|
+
}
|