@sapui5/sap.fe.core 1.93.2 → 1.93.3
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/core/.library +1 -1
- package/src/sap/fe/core/AnnotationHelper.js +2 -2
- package/src/sap/fe/core/CommonUtils.js +13 -1
- package/src/sap/fe/core/TransactionHelper.js +1 -1
- package/src/sap/fe/core/controllerextensions/EditFlow.js +8 -1
- package/src/sap/fe/core/library.js +1 -1
package/package.json
CHANGED
package/src/sap/fe/core/.library
CHANGED
|
@@ -362,8 +362,8 @@ sap.ui.define(
|
|
|
362
362
|
buildActionWrapper: function(oAction, oThis) {
|
|
363
363
|
var aParams = [
|
|
364
364
|
"$event",
|
|
365
|
-
CommonHelper.addSingleQuotes(oAction.handlerModule),
|
|
366
|
-
CommonHelper.addSingleQuotes(oAction.handlerMethod)
|
|
365
|
+
CommonHelper.addSingleQuotes(oAction.handlerModule, true),
|
|
366
|
+
CommonHelper.addSingleQuotes(oAction.handlerMethod, true)
|
|
367
367
|
];
|
|
368
368
|
|
|
369
369
|
if (oThis && oThis.id) {
|
|
@@ -1358,13 +1358,14 @@ sap.ui.define(
|
|
|
1358
1358
|
* @param {object} oSelectionVariant Instance of {@link sap.fe.navigation.SelectionVariant} SelectionVariant to be used.
|
|
1359
1359
|
* @param {object} mFilters Conditons to be added to the SelectionVariant
|
|
1360
1360
|
* @param {object} oTargetInfo Object returned after selection variant from the table is prepared.
|
|
1361
|
+
* @param {object} oFilterInfo Object containing the converted FilterBar filters
|
|
1361
1362
|
* @returns {object} Instance of {@link sap.fe.navigation.SelectionVariant} SelectionVariant with the conditions.
|
|
1362
1363
|
* @private
|
|
1363
1364
|
* @ui5-restricted
|
|
1364
1365
|
* @example <code>
|
|
1365
1366
|
* </code>
|
|
1366
1367
|
*/
|
|
1367
|
-
function addExternalStateFiltersToSelectionVariant(oSelectionVariant, mFilters, oTargetInfo) {
|
|
1368
|
+
function addExternalStateFiltersToSelectionVariant(oSelectionVariant, mFilters, oTargetInfo, oFilterInfo) {
|
|
1368
1369
|
var sFilter,
|
|
1369
1370
|
sLow = "",
|
|
1370
1371
|
sHigh = null;
|
|
@@ -1395,6 +1396,10 @@ sap.ui.define(
|
|
|
1395
1396
|
case "EQ":
|
|
1396
1397
|
oSelectOptionState.option = sOperator;
|
|
1397
1398
|
break;
|
|
1399
|
+
case "TODAY":
|
|
1400
|
+
case "DATE":
|
|
1401
|
+
oSelectOptionState.option = "EQ";
|
|
1402
|
+
break;
|
|
1398
1403
|
case "EEQ":
|
|
1399
1404
|
oSelectOptionState.option = "EQ";
|
|
1400
1405
|
break;
|
|
@@ -1454,6 +1459,13 @@ sap.ui.define(
|
|
|
1454
1459
|
var oFilter = aFilters[item];
|
|
1455
1460
|
sLow = (oFilter.values[0] && oFilter.values[0].toString()) || "";
|
|
1456
1461
|
sHigh = (oFilter.values[1] && oFilter.values[1].toString()) || null;
|
|
1462
|
+
if (oFilter.operator === "TODAY" || oFilter.operator === "DATE") {
|
|
1463
|
+
var aFilter = oFilterInfo[0].aFilters.filter(function(oFilter) {
|
|
1464
|
+
return oFilter.sPath === sFilter;
|
|
1465
|
+
});
|
|
1466
|
+
sLow = aFilter[0].oValue1 || "";
|
|
1467
|
+
sHigh = null;
|
|
1468
|
+
}
|
|
1457
1469
|
var oSelectOptionValues = fnGetSignAndOption(oFilter.operator, sLow, sHigh);
|
|
1458
1470
|
if (oSelectOptionValues.option) {
|
|
1459
1471
|
oSelectionVariant.addSelectOption(
|
|
@@ -367,7 +367,7 @@ sap.ui.define(
|
|
|
367
367
|
oContextData.HasDraftEntity === true &&
|
|
368
368
|
oContextData.DraftAdministrativeData &&
|
|
369
369
|
oContextData.DraftAdministrativeData.InProcessByUser &&
|
|
370
|
-
!oContextData.DraftAdministrativeData.
|
|
370
|
+
!oContextData.DraftAdministrativeData.DraftIsCreatedByMe
|
|
371
371
|
) {
|
|
372
372
|
MessageBox.show(
|
|
373
373
|
CommonUtils.getTranslatedText(
|
|
@@ -568,10 +568,17 @@ sap.ui.define(
|
|
|
568
568
|
if (sProgrammingModel === ProgrammingModel.Sticky) {
|
|
569
569
|
that._getInternalModel().setProperty("/sessionOn", true);
|
|
570
570
|
}
|
|
571
|
+
var bIsNewPageCreation =
|
|
572
|
+
mParameters.creationMode !== CreationMode.CreationRow &&
|
|
573
|
+
mParameters.creationMode !== CreationMode.Inline;
|
|
571
574
|
if (oCreation) {
|
|
572
575
|
return Promise.all([oCreation, oNavigation])
|
|
573
576
|
.then(function(aParams) {
|
|
574
|
-
|
|
577
|
+
if (bIsNewPageCreation) {
|
|
578
|
+
that._setEditMode(EditMode.Editable, bIsNewPageCreation);
|
|
579
|
+
} else {
|
|
580
|
+
that._setEditMode(EditMode.Editable);
|
|
581
|
+
}
|
|
575
582
|
var oNewDocumentContext = aParams[0];
|
|
576
583
|
if (oNewDocumentContext) {
|
|
577
584
|
EditState.setEditStateDirty();
|