@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
|
@@ -128,7 +128,8 @@ const oFilterUtils = {
|
|
|
128
128
|
metaModel?: ODataMetaModel,
|
|
129
129
|
appComponent?: AppComponent,
|
|
130
130
|
oModifier?: BaseTreeModifier,
|
|
131
|
-
lineItemTerm?: string
|
|
131
|
+
lineItemTerm?: string,
|
|
132
|
+
propertyInfosFromFilterBar?: PropertyInfo[]
|
|
132
133
|
): FilterField[] {
|
|
133
134
|
const oMetaModel = this._getFilterMetaModel(oFilterControl, metaModel);
|
|
134
135
|
const sFilterEntityTypePath = DelegateUtil.getCustomData<string>(oFilterControl, "entityType");
|
|
@@ -151,7 +152,8 @@ const oFilterUtils = {
|
|
|
151
152
|
includeHidden,
|
|
152
153
|
oModifier,
|
|
153
154
|
lineItemTerm,
|
|
154
|
-
annotationPath
|
|
155
|
+
annotationPath,
|
|
156
|
+
propertyInfosFromFilterBar
|
|
155
157
|
);
|
|
156
158
|
},
|
|
157
159
|
|
|
@@ -1165,7 +1167,8 @@ const oFilterUtils = {
|
|
|
1165
1167
|
includeHidden?: boolean,
|
|
1166
1168
|
oModifier?: BaseTreeModifier,
|
|
1167
1169
|
lineItemTerm?: string,
|
|
1168
|
-
annotationPath?: string
|
|
1170
|
+
annotationPath?: string,
|
|
1171
|
+
propertyInfosFromFilterBar?: PropertyInfo[]
|
|
1169
1172
|
): FilterField[] {
|
|
1170
1173
|
const filterFields = FilterBarConverter.getSelectionFields(
|
|
1171
1174
|
oConverterContext,
|
|
@@ -1175,9 +1178,15 @@ const oFilterUtils = {
|
|
|
1175
1178
|
lineItemTerm
|
|
1176
1179
|
);
|
|
1177
1180
|
let selectionFields: FilterField[] = filterFields.selectionFields;
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
+
let propertyInfos: PropertyInfo[];
|
|
1182
|
+
//During templating time while adding a flex change propertyInfosFromFilterBar will be passed
|
|
1183
|
+
if (propertyInfosFromFilterBar && propertyInfosFromFilterBar.length > 0) {
|
|
1184
|
+
propertyInfos = propertyInfosFromFilterBar;
|
|
1185
|
+
} else {
|
|
1186
|
+
propertyInfos = (oFilterControl as Partial<IFilterControl>).data
|
|
1187
|
+
? this.getFilterPropertyInfo(oFilterControl)
|
|
1188
|
+
: JSON.parse(filterFields.sPropertyInfo.replace(/\\\{/g, "{").replace(/\\\}/g, "}")); // propertyInfo string is returned from the getSelectionFields
|
|
1189
|
+
}
|
|
1181
1190
|
if (
|
|
1182
1191
|
(oModifier
|
|
1183
1192
|
? oModifier.getControlType(oFilterControl) === "sap.ui.mdc.FilterBar"
|
|
@@ -1389,6 +1398,31 @@ const oFilterUtils = {
|
|
|
1389
1398
|
}
|
|
1390
1399
|
return _propertyInfo;
|
|
1391
1400
|
});
|
|
1401
|
+
},
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* Checks if the Property already exists in the propertyInfo array, used during templating to avoid duplicates.
|
|
1405
|
+
* @param parentControl FilterBar control where the custom data is stored
|
|
1406
|
+
* @param modifier Modifier
|
|
1407
|
+
* @param propertyInfoName Name of the property to be checked
|
|
1408
|
+
* @returns Array of PropertyInfos after removing the unwanted properties
|
|
1409
|
+
*/
|
|
1410
|
+
_checkIfPropertyInfoExists: async function (
|
|
1411
|
+
parentControl: FilterBar,
|
|
1412
|
+
modifier: BaseTreeModifier,
|
|
1413
|
+
propertyInfoName: string
|
|
1414
|
+
): Promise<boolean> {
|
|
1415
|
+
let propertyInfo: PropertyInfo[] = [];
|
|
1416
|
+
try {
|
|
1417
|
+
const customDataValue = await DelegateUtil.getCustomDataWithModifier<string>(parentControl, "feFilterInfo", modifier);
|
|
1418
|
+
if (customDataValue) {
|
|
1419
|
+
propertyInfo = JSON.parse(customDataValue);
|
|
1420
|
+
return propertyInfo.some((obj: PropertyInfo) => obj.name === propertyInfoName);
|
|
1421
|
+
}
|
|
1422
|
+
return false;
|
|
1423
|
+
} catch (error) {
|
|
1424
|
+
return false;
|
|
1425
|
+
}
|
|
1392
1426
|
}
|
|
1393
1427
|
};
|
|
1394
1428
|
|