@sapui5/sap.fe.macros 1.142.0 → 1.143.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/fe/macros/.library +1 -1
- package/src/sap/fe/macros/CollaborativeDraftHandler.js +1 -7
- package/src/sap/fe/macros/CollaborativeDraftHandler.tsx +0 -6
- package/src/sap/fe/macros/ConditionalSwitch.js +1 -2
- package/src/sap/fe/macros/ConditionalSwitch.tsx +0 -1
- package/src/sap/fe/macros/ConditionalSwitchProperty.js +1 -3
- package/src/sap/fe/macros/ConditionalSwitchProperty.tsx +0 -2
- package/src/sap/fe/macros/Field.js +5 -5
- package/src/sap/fe/macros/Field.ts +5 -3
- package/src/sap/fe/macros/FooterContent.js +3 -2
- package/src/sap/fe/macros/FooterContent.tsx +2 -10
- package/src/sap/fe/macros/KPITag.js +6 -6
- package/src/sap/fe/macros/KPITag.tsx +5 -5
- package/src/sap/fe/macros/MacroAPI.js +2 -2
- package/src/sap/fe/macros/MacroAPI.ts +1 -1
- package/src/sap/fe/macros/MessageButton.js +3 -3
- package/src/sap/fe/macros/MessageButton.tsx +3 -2
- package/src/sap/fe/macros/MicroChart.js +3 -2
- package/src/sap/fe/macros/MicroChart.tsx +1 -1
- package/src/sap/fe/macros/Share.js +7 -7
- package/src/sap/fe/macros/Share.tsx +9 -6
- package/src/sap/fe/macros/Status.js +6 -5
- package/src/sap/fe/macros/Status.tsx +3 -4
- package/src/sap/fe/macros/ai/EasyFillDialog.js +2 -1
- package/src/sap/fe/macros/ai/EasyFillDialog.tsx +1 -0
- package/src/sap/fe/macros/ai/SummarizationButton.js +6 -4
- package/src/sap/fe/macros/ai/SummarizationButton.tsx +5 -3
- package/src/sap/fe/macros/chart/ChartDelegate.js +22 -1
- package/src/sap/fe/macros/chart/ChartDelegate.ts +29 -2
- package/src/sap/fe/macros/chart/MdcChartTemplate.js +5 -2
- package/src/sap/fe/macros/chart/MdcChartTemplate.tsx +5 -2
- package/src/sap/fe/macros/controls/BuildingBlockObjectProperty.js +7 -7
- package/src/sap/fe/macros/controls/BuildingBlockObjectProperty.ts +3 -2
- package/src/sap/fe/macros/controls/FileWrapper.js +11 -5
- package/src/sap/fe/macros/controls/FileWrapper.ts +10 -4
- package/src/sap/fe/macros/controls/NumberWithUnitOrCurrency.js +3 -1
- package/src/sap/fe/macros/controls/NumberWithUnitOrCurrency.tsx +2 -0
- package/src/sap/fe/macros/coreUI/CreateDialog.js +2 -2
- package/src/sap/fe/macros/coreUI/CreateDialog.tsx +1 -1
- package/src/sap/fe/macros/coreUI/OperationParameterDialog.js +4 -4
- package/src/sap/fe/macros/coreUI/OperationParameterDialog.tsx +3 -3
- package/src/sap/fe/macros/field/FieldFormatOptions.js +2 -2
- package/src/sap/fe/macros/field/FieldFormatOptions.ts +1 -1
- package/src/sap/fe/macros/field/FieldRuntime.js +7 -2
- package/src/sap/fe/macros/field/FieldRuntime.ts +7 -1
- package/src/sap/fe/macros/filter/FilterUtils.js +31 -5
- package/src/sap/fe/macros/filter/FilterUtils.ts +40 -6
- package/src/sap/fe/macros/filterBar/FilterBarAPI.js +6 -3
- package/src/sap/fe/macros/filterBar/FilterBarAPI.ts +5 -1
- package/src/sap/fe/macros/filterBar/FilterBarDelegate.js +19 -9
- package/src/sap/fe/macros/filterBar/FilterBarDelegate.ts +76 -61
- package/src/sap/fe/macros/filterBar/UOMValidationDelegate.js +376 -0
- package/src/sap/fe/macros/filterBar/UOMValidationDelegate.ts +463 -0
- package/src/sap/fe/macros/form/FormContainer.block.js +22 -6
- package/src/sap/fe/macros/form/FormContainer.block.ts +24 -6
- package/src/sap/fe/macros/internal/valuehelp/ValueListHelper.js +2 -2
- package/src/sap/fe/macros/internal/valuehelp/ValueListHelper.ts +2 -1
- package/src/sap/fe/macros/library.js +5 -6
- package/src/sap/fe/macros/{library.ts → library.tsx} +1 -1
- package/src/sap/fe/macros/messagebundle.properties +6 -0
- package/src/sap/fe/macros/messagebundle_en_US_saprigi.properties +1 -1
- package/src/sap/fe/macros/messages/MessageButton.js +21 -12
- package/src/sap/fe/macros/messages/MessageButton.ts +21 -11
- package/src/sap/fe/macros/multivaluefield/MultiValueFieldDelegate.js +7 -3
- package/src/sap/fe/macros/multivaluefield/MultiValueFieldDelegate.ts +8 -2
- package/src/sap/fe/macros/quickView/QuickView.js +5 -4
- package/src/sap/fe/macros/quickView/QuickView.tsx +10 -3
- package/src/sap/fe/macros/table/Action.js +7 -4
- package/src/sap/fe/macros/table/Action.ts +3 -3
- package/src/sap/fe/macros/table/Column.js +3 -2
- package/src/sap/fe/macros/table/Column.ts +1 -1
- package/src/sap/fe/macros/table/MdcTableTemplate.js +6 -9
- package/src/sap/fe/macros/table/MdcTableTemplate.tsx +5 -7
- package/src/sap/fe/macros/table/Table.block.js +6 -3
- package/src/sap/fe/macros/table/Table.block.tsx +13 -3
- package/src/sap/fe/macros/table/TableAPI.js +13 -8
- package/src/sap/fe/macros/table/TableAPI.ts +10 -3
- package/src/sap/fe/macros/table/TableDefinition.js +2 -2
- package/src/sap/fe/macros/table/TableDefinition.ts +1 -1
- package/src/sap/fe/macros/table/TableEventHandlerProvider.js +3 -1
- package/src/sap/fe/macros/table/TableEventHandlerProvider.ts +4 -0
- package/src/sap/fe/macros/table/TableRuntime.js +24 -12
- package/src/sap/fe/macros/table/TableRuntime.ts +27 -11
- package/src/sap/fe/macros/table/Utils.js +9 -3
- package/src/sap/fe/macros/table/Utils.ts +14 -8
- package/src/sap/fe/macros/table/delegates/TableDelegate.js +6 -4
- package/src/sap/fe/macros/table/delegates/TableDelegate.ts +6 -5
- package/src/sap/fe/macros/table/massEdit/MassEditDialog.js +41 -15
- package/src/sap/fe/macros/table/massEdit/MassEditDialog.tsx +41 -22
- package/src/sap/fe/macros/table/massEdit/MassEditDialogHelper.js +14 -5
- package/src/sap/fe/macros/table/massEdit/MassEditDialogHelper.tsx +13 -4
- package/src/sap/fe/macros/table/mixin/ContextMenuHandler.js +2 -3
- package/src/sap/fe/macros/table/mixin/ContextMenuHandler.ts +3 -2
- package/src/sap/fe/macros/table/mixin/EmptyRowsHandler.js +37 -10
- package/src/sap/fe/macros/table/mixin/EmptyRowsHandler.ts +39 -15
- package/src/sap/fe/macros/table/mixin/TableHierarchy.js +3 -4
- package/src/sap/fe/macros/table/mixin/TableHierarchy.ts +2 -3
- package/src/sap/fe/macros/table/uploadTable/UploadTableRuntime.js +5 -4
- package/src/sap/fe/macros/table/uploadTable/UploadTableRuntime.ts +6 -3
- package/src/sap/fe/macros/valuehelp/ValueHelpDelegate.js +17 -10
- package/src/sap/fe/macros/valuehelp/ValueHelpDelegate.ts +24 -9
|
@@ -436,12 +436,22 @@ export default Object.assign({}, ValueHelpDelegate, {
|
|
|
436
436
|
metaModel,
|
|
437
437
|
filterBarProperties
|
|
438
438
|
);
|
|
439
|
-
if (
|
|
439
|
+
if (
|
|
440
|
+
filterBarProperty &&
|
|
441
|
+
stateItems?.find(
|
|
442
|
+
(item) =>
|
|
443
|
+
item.name === filterBarProperty.name &&
|
|
444
|
+
(filterBarProperty.maxConditions === undefined || filterBarProperty.maxConditions === 1)
|
|
445
|
+
)
|
|
446
|
+
) {
|
|
447
|
+
// if the target field is single-value field, reset the existing conditions
|
|
448
|
+
// maxConditions is ensured to be 1 for single-value field
|
|
449
|
+
// maxConditions = -1 means multiple values allowed
|
|
440
450
|
/* Reset the conditions before create new conditions otherwise it gets not updated */
|
|
441
451
|
const conditionPath = filterBarProperty.conditionPath as string;
|
|
442
|
-
state.filter[conditionPath]?.
|
|
443
|
-
|
|
444
|
-
}
|
|
452
|
+
if (state.filter[conditionPath]?.[0]) {
|
|
453
|
+
state.filter[conditionPath][0].filtered = false;
|
|
454
|
+
}
|
|
445
455
|
}
|
|
446
456
|
}
|
|
447
457
|
// Propagate OUT parameter for each conditions
|
|
@@ -468,11 +478,11 @@ export default Object.assign({}, ValueHelpDelegate, {
|
|
|
468
478
|
const conditionPath = filterBarProperty.conditionPath as string;
|
|
469
479
|
const conditionAlreadyExists = state.filter[conditionPath]?.find((testCondition) => {
|
|
470
480
|
delete testCondition.filtered;
|
|
471
|
-
|
|
481
|
+
const { filtered: _filtered, ...conditionToCompare } = testCondition;
|
|
482
|
+
if (this.checkConditionsEqual(conditionToCompare, newCondition)) {
|
|
483
|
+
testCondition.filtered = true;
|
|
472
484
|
return true;
|
|
473
485
|
}
|
|
474
|
-
// reset filtered to false
|
|
475
|
-
testCondition.filtered = false;
|
|
476
486
|
return false;
|
|
477
487
|
});
|
|
478
488
|
if (!conditionAlreadyExists) {
|
|
@@ -830,7 +840,7 @@ This cannot happen in case of action parameter dialog, which can be identified b
|
|
|
830
840
|
// last part of localData is a property name, thus it cannot match. Otherwise matchCount could be -1 if everything matches
|
|
831
841
|
// (if we want to additionally secure against this situation, the most appropriate would be to set matchCount = localDataParts.length – 1)
|
|
832
842
|
return relativePathParts
|
|
833
|
-
.slice(0, -matchCount) // remove all matched parts (from the end)
|
|
843
|
+
.slice(0, -matchCount ? -matchCount : undefined) // remove all matched parts (from the end)
|
|
834
844
|
.map((part) => part.part)
|
|
835
845
|
.concat(localDataParts.slice(matchCount)) // remove the matched parts from localData (from the beginning)
|
|
836
846
|
.join("/"); // transfer back to string (but only once at the end ;) )
|
|
@@ -1040,8 +1050,13 @@ This cannot happen in case of action parameter dialog, which can be identified b
|
|
|
1040
1050
|
return context?.getObject(keyPath) === value;
|
|
1041
1051
|
} else {
|
|
1042
1052
|
const contextKeys = Object.keys(context.getObject());
|
|
1053
|
+
const conditionSelectedRowKeys = Object.keys(conditionSelectedRow);
|
|
1043
1054
|
return vhKeys.every(function (vhKey) {
|
|
1044
|
-
return
|
|
1055
|
+
return (
|
|
1056
|
+
!contextKeys.includes(vhKey) ||
|
|
1057
|
+
!conditionSelectedRowKeys.includes(vhKey) ||
|
|
1058
|
+
context?.getObject(vhKey) === conditionSelectedRow[vhKey]
|
|
1059
|
+
);
|
|
1045
1060
|
});
|
|
1046
1061
|
}
|
|
1047
1062
|
};
|