@sapui5/sap.rules.ui 1.108.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.
- package/package.json +1 -1
- package/src/sap/rules/ui/.library +1 -1
- 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 +23 -19
- package/src/sap/rules/ui/DecisionTableConfiguration.js +1 -1
- package/src/sap/rules/ui/DecisionTableSettings.js +1 -1
- 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 +1 -1
- package/src/sap/rules/ui/type/ExpressionAbs.js +1 -1
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.rules.ui.ExpressionBasic
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.108.
|
|
29
|
+
* @version 1.108.1
|
|
30
30
|
*
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
@@ -171,12 +171,14 @@ sap.ui.define([
|
|
|
171
171
|
DecisionTableCellExpressionBasic.prototype.onAfterRendering = function() {
|
|
172
172
|
sap.rules.ui.ExpressionBasic.prototype.onAfterRendering.apply(this, arguments);
|
|
173
173
|
this._calculateOffSet();
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
174
|
+
this.oDecisionTableCell = (this.getParent() && this.getParent().getParent()) ? this.getParent().getParent() : null;
|
|
175
|
+
if (this.oDecisionTableCell) {
|
|
176
|
+
var valueStatePath = this.oDecisionTableCell.getValueStatePath();
|
|
177
|
+
var dtModel = this.oDecisionTableCell.getModel("dtModel");
|
|
178
|
+
this.setProperty("valueStateText", "");
|
|
179
|
+
dtModel.setProperty(valueStatePath.slice(8), sap.ui.core.ValueState.None);
|
|
180
|
+
this.createEventListeners();
|
|
181
|
+
}
|
|
180
182
|
};
|
|
181
183
|
|
|
182
184
|
DecisionTableCellExpressionBasic.prototype.onBeforeRendering = function() {
|
|
@@ -225,18 +227,20 @@ sap.ui.define([
|
|
|
225
227
|
}
|
|
226
228
|
}.bind(this));
|
|
227
229
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
230
|
+
if (this.oDecisionTableCell) {
|
|
231
|
+
var valueStateTextPath = this.oDecisionTableCell.getValueStateTextPath();
|
|
232
|
+
var valueStatePath = this.oDecisionTableCell.getValueStatePath();
|
|
233
|
+
var dtModel = this.oDecisionTableCell.getModel("dtModel");
|
|
234
|
+
if (oResult.status === sap.rules.ui.ValidationStatus.Error) {
|
|
235
|
+
errorDetails = oResult.errorDetails.replace(/\r\n/g, " ").replace(/\r/g, " ").replace(/\n/g, " ");
|
|
236
|
+
this.setProperty("valueStateText", errorDetails);
|
|
237
|
+
dtModel.setProperty(valueStateTextPath.slice(8), errorDetails);
|
|
238
|
+
dtModel.setProperty(valueStatePath.slice(8), sap.ui.core.ValueState.Error);
|
|
239
|
+
} else {
|
|
240
|
+
this.setProperty("valueStateText", "");
|
|
241
|
+
dtModel.setProperty(valueStateTextPath.slice(8), "null");
|
|
242
|
+
dtModel.setProperty(valueStatePath.slice(8), sap.ui.core.ValueState.None);
|
|
243
|
+
}
|
|
240
244
|
}
|
|
241
245
|
}
|
|
242
246
|
};
|