@sapui5/sap.fe.macros 1.93.0 → 1.93.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/fe/macros/.library +1 -1
- package/src/sap/fe/macros/DelegateUtil.js +5 -1
- package/src/sap/fe/macros/FilterBarDelegate.js +1 -1
- package/src/sap/fe/macros/field/FieldRuntime.js +9 -6
- package/src/sap/fe/macros/field/QuickViewLinkDelegate.js +2 -0
- package/src/sap/fe/macros/internal/field/editStyle/TextArea.fragment.xml +1 -0
- package/src/sap/fe/macros/internal/valuehelp/ValueListHelper.js +15 -0
- package/src/sap/fe/macros/library.js +1 -1
- package/src/sap/fe/macros/table/Actions.fragment.xml +2 -2
- package/src/sap/fe/macros/table/delegates/TableDelegate.js +3 -1
package/package.json
CHANGED
|
@@ -196,12 +196,16 @@ sap.ui.define(
|
|
|
196
196
|
oModifier = mParameters.oModifier,
|
|
197
197
|
sOriginalProperty = mParameters.sBindingPath + "/" + sPropertyName,
|
|
198
198
|
oPropertyContext = oMetaModel.createBindingContext(sOriginalProperty),
|
|
199
|
-
sValueHelpProperty = FieldHelper.valueHelpProperty(oPropertyContext)
|
|
199
|
+
sValueHelpProperty = FieldHelper.valueHelpProperty(oPropertyContext),
|
|
200
|
+
bIsAbsolute = mParameters.sBindingPath && mParameters.sBindingPath.indexOf("/") === 0;
|
|
200
201
|
|
|
201
202
|
// unit/currency
|
|
202
203
|
if (sValueHelpProperty.indexOf("$Path") > -1) {
|
|
203
204
|
sValueHelpProperty = oMetaModel.getObject(sValueHelpProperty);
|
|
204
205
|
}
|
|
206
|
+
if (bIsAbsolute) {
|
|
207
|
+
sValueHelpProperty = mParameters.sBindingPath + "/" + sValueHelpProperty;
|
|
208
|
+
}
|
|
205
209
|
var sGeneratedId = ValueHelpTemplating.generateID(
|
|
206
210
|
mParameters.flexId,
|
|
207
211
|
StableIdHelper.generate([oModifier ? oModifier.getId(mParameters.oControl) : mParameters.oControl.getId(), sValueHelpType]),
|
|
@@ -443,7 +443,7 @@ sap.ui.define(
|
|
|
443
443
|
oParameters = {
|
|
444
444
|
sPropertyName: sPropertyPath,
|
|
445
445
|
sBindingPath: sBindingPath,
|
|
446
|
-
sValueHelpType: VALUE_HELP_TYPE,
|
|
446
|
+
sValueHelpType: sIdPrefix + VALUE_HELP_TYPE,
|
|
447
447
|
oControl: oParentControl,
|
|
448
448
|
oMetaModel: oMetaModel,
|
|
449
449
|
oModifier: oModifier,
|
|
@@ -138,7 +138,10 @@ sap.ui.define(
|
|
|
138
138
|
*/
|
|
139
139
|
getFieldStateOnChange: function(oEvent) {
|
|
140
140
|
var oSourceField = oEvent.getSource(),
|
|
141
|
-
mFieldState = {}
|
|
141
|
+
mFieldState = {},
|
|
142
|
+
_isBindingStateMessages = function(oBinding) {
|
|
143
|
+
return oBinding && oBinding.getDataState() ? oBinding.getDataState().getInvalidValue() === undefined : true;
|
|
144
|
+
};
|
|
142
145
|
if (oSourceField.isA("sap.fe.macros.FieldAPI")) {
|
|
143
146
|
oSourceField = oSourceField.getContent();
|
|
144
147
|
}
|
|
@@ -151,9 +154,8 @@ sap.ui.define(
|
|
|
151
154
|
var bIsValid = oEvent.getParameter("valid") || oEvent.getParameter("isValid");
|
|
152
155
|
if (bIsValid === undefined) {
|
|
153
156
|
if (oSourceField.getMaxConditions() === 1) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
oSourceField.getConditions()[0].validated === ConditionValidated.Validated;
|
|
157
|
+
var oValueBindingInfo = oSourceField.getBindingInfo("value");
|
|
158
|
+
bIsValid = _isBindingStateMessages(oValueBindingInfo && oValueBindingInfo.binding);
|
|
157
159
|
}
|
|
158
160
|
if (oSourceField.getValue() === "" && !oSourceField.getProperty("required")) {
|
|
159
161
|
bIsValid = true;
|
|
@@ -164,10 +166,11 @@ sap.ui.define(
|
|
|
164
166
|
validity: !!bIsValid
|
|
165
167
|
};
|
|
166
168
|
} else {
|
|
167
|
-
|
|
169
|
+
// oSourceField extends from Input || is a CheckBox
|
|
170
|
+
var oBinding = oSourceField.getBinding("value") || oSourceField.getBinding("selected");
|
|
168
171
|
mFieldState = {
|
|
169
172
|
fieldValue: oBinding && oBinding.getValue(),
|
|
170
|
-
validity:
|
|
173
|
+
validity: _isBindingStateMessages(oBinding)
|
|
171
174
|
};
|
|
172
175
|
}
|
|
173
176
|
return {
|
|
@@ -457,6 +457,8 @@ sap.ui.define(
|
|
|
457
457
|
});
|
|
458
458
|
// check if all link items in this.aLinkCustomData are also present in aNewLinkCustomData
|
|
459
459
|
if (
|
|
460
|
+
aNewLinkCustomData &&
|
|
461
|
+
that.aLinkCustomData &&
|
|
460
462
|
that.aLinkCustomData.filter(function(link) {
|
|
461
463
|
return (
|
|
462
464
|
aNewLinkCustomData.filter(function(otherLink) {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
enabled="{this>enabledExpression}"
|
|
29
29
|
change="FieldRuntime.handleChange($controller, $event)"
|
|
30
30
|
fieldGroupIds="{parts:[{path:'dataField>Value/$Path'}, {path:'entityType>'}], formatter: 'FIELD.getFieldGroupIds'}"
|
|
31
|
+
validateFieldGroup=".sideEffects.handleFieldGroupChange($event)"
|
|
31
32
|
ariaLabelledBy="{this>ariaLabelledBy}"
|
|
32
33
|
/>
|
|
33
34
|
|
|
@@ -284,6 +284,21 @@ sap.ui.define(
|
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
var ValueListHelper = {
|
|
287
|
+
initializeCachedValueHelp: function() {
|
|
288
|
+
// Destroy existing MDC value help objects (BCP 2180373096)
|
|
289
|
+
aCachedValueHelp.forEach(function(oValueHelp) {
|
|
290
|
+
if (!oValueHelp.oVHFilterBar.isDestroyed()) {
|
|
291
|
+
oValueHelp.oVHFilterBar.destroy();
|
|
292
|
+
}
|
|
293
|
+
if (!oValueHelp.oVHDialogTable.isDestroyed()) {
|
|
294
|
+
oValueHelp.oVHDialogTable.destroy();
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
// initialize cache
|
|
298
|
+
aCachedValueHelp = [];
|
|
299
|
+
aSuggestCachedValueHelp = [];
|
|
300
|
+
},
|
|
301
|
+
|
|
287
302
|
getColumnVisibility: function(oValueList, oVLParameter, oSource) {
|
|
288
303
|
var bIsDropDownListe = oSource && !!oSource.valueHelpWithFixedValues,
|
|
289
304
|
sRedundantColumn = _redundantDescription(oValueList, oVLParameter, bIsDropDownListe);
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
press="{= ${action>noWrap} ? ${action>press} : CORE.buildActionWrapper(${action>}, ${this>})}"
|
|
28
28
|
type="Transparent"
|
|
29
29
|
visible="{action>visible}"
|
|
30
|
-
enabled="{
|
|
30
|
+
enabled="{action>enabled}"
|
|
31
31
|
/>
|
|
32
32
|
</mdcat:ActionToolbarAction>
|
|
33
33
|
</template:then>
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
ariaHasPopup="Dialog"
|
|
167
167
|
/>
|
|
168
168
|
</mdcat:ActionToolbarAction>
|
|
169
|
-
</template:if>
|
|
169
|
+
</template:if>
|
|
170
170
|
</template:if>
|
|
171
171
|
<template:if
|
|
172
172
|
test="{= ${collection>@com.sap.vocabularies.Common.v1.DraftRoot} || ${targetCollection>@com.sap.vocabularies.Common.v1.DraftNode} || ${collection>@@CORE.isStickySessionSupported} || TABLE.getIBNData(${this>}) || (COMMON.isDraftParentEntityForContainment(${targetCollection>$ContainsTarget}, ${this>}) ? ${this>showCreate} : 'false')}"
|
|
@@ -396,7 +396,9 @@ sap.ui.define(
|
|
|
396
396
|
TableHelper.handleTableDeleteEnablementForSideEffects(oTable, oInternalModelContext);
|
|
397
397
|
// Refresh the selected contexts to trigger re-calculation of enabled state of actions.
|
|
398
398
|
oInternalModelContext.setProperty("selectedContexts", []);
|
|
399
|
-
|
|
399
|
+
var aSelectedContexts = oTable.getSelectedContexts();
|
|
400
|
+
oInternalModelContext.setProperty("selectedContexts", aSelectedContexts);
|
|
401
|
+
oInternalModelContext.setProperty("numberOfSelectedContexts", aSelectedContexts.length);
|
|
400
402
|
});
|
|
401
403
|
oInternalModelContext.setProperty("dataReceivedAttached", true);
|
|
402
404
|
}
|