@sapui5/sap.fe.base 1.146.0 → 1.148.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.
|
@@ -2274,7 +2274,7 @@ export function addTypeInformation<T, U extends Fn<T>>(
|
|
|
2274
2274
|
oFormatOptions ??= {};
|
|
2275
2275
|
oFormatOptions.preserveDecimals = oConstraintOptions?.skipDecimalsValidation ?? false;
|
|
2276
2276
|
parameterExpressions.push(uomPath);
|
|
2277
|
-
} else if (type === "sap.ui.model.odata.type.Currency") {
|
|
2277
|
+
} else if (type === "sap.ui.model.odata.type.Currency" || type === "sap.fe.core.type.DynamicCurrency") {
|
|
2278
2278
|
const currencyPath = pathInModel("/##@@requestCurrencyCodes");
|
|
2279
2279
|
currencyPath.targetType = "any";
|
|
2280
2280
|
currencyPath.mode = "OneTime";
|
|
@@ -2339,8 +2339,15 @@ function _getComplexTypeFormatOptionsFromFirstParam(
|
|
|
2339
2339
|
//sap.ui.model.odata.type.Int64 do not support parseAsString false
|
|
2340
2340
|
formatOptions =
|
|
2341
2341
|
formatOptions?.showMeasure === false
|
|
2342
|
-
? {
|
|
2343
|
-
|
|
2342
|
+
? {
|
|
2343
|
+
showMeasure: false,
|
|
2344
|
+
decimalPadding: formatOptions.decimalPadding,
|
|
2345
|
+
emptyString: formatOptions?.emptyString
|
|
2346
|
+
}
|
|
2347
|
+
: {
|
|
2348
|
+
decimalPadding: formatOptions?.decimalPadding,
|
|
2349
|
+
emptyString: formatOptions?.emptyString
|
|
2350
|
+
};
|
|
2344
2351
|
} else {
|
|
2345
2352
|
formatOptions =
|
|
2346
2353
|
formatOptions?.showMeasure === false
|
|
@@ -2350,7 +2357,11 @@ function _getComplexTypeFormatOptionsFromFirstParam(
|
|
|
2350
2357
|
decimalPadding: formatOptions.decimalPadding,
|
|
2351
2358
|
emptyString: formatOptions?.emptyString
|
|
2352
2359
|
}
|
|
2353
|
-
: {
|
|
2360
|
+
: {
|
|
2361
|
+
parseAsString: false,
|
|
2362
|
+
decimalPadding: formatOptions?.decimalPadding,
|
|
2363
|
+
emptyString: formatOptions?.emptyString
|
|
2364
|
+
};
|
|
2354
2365
|
}
|
|
2355
2366
|
if (param?.constraints?.nullable !== false) {
|
|
2356
2367
|
formatOptions.emptyString = null;
|
|
@@ -22,7 +22,7 @@ sap.ui.define(["sap/ui/core/Lib"], function (Library) {
|
|
|
22
22
|
controls: [],
|
|
23
23
|
elements: [],
|
|
24
24
|
// eslint-disable-next-line no-template-curly-in-string
|
|
25
|
-
version: "1.
|
|
25
|
+
version: "1.148.0",
|
|
26
26
|
noLibraryCSS: true
|
|
27
27
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
28
|
});
|