@openui5/sap.ui.core 1.120.34 → 1.120.36
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/THIRDPARTY.txt +1 -1
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +1 -1
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +1 -1
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +1 -1
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +1 -1
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +1 -1
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/Fragment.js +1 -1
- package/src/sap/ui/core/HTML.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -1
- package/src/sap/ui/core/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -1
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +1 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +1 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +1 -1
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/NumberFormat.js +246 -78
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/messagebundle_fi.properties +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +1 -1
- package/src/sap/ui/core/mvc/XMLView.js +1 -1
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/routing/History.js +1 -0
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/Plugin.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/webc/WebComponent.js +1 -1
- package/src/sap/ui/core/webc/WebComponentMetadata.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +1 -1
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +1 -1
- package/src/sap/ui/model/odata/type/Byte.js +1 -1
- package/src/sap/ui/model/odata/type/Currency.js +1 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
- package/src/sap/ui/model/odata/type/Decimal.js +1 -1
- package/src/sap/ui/model/odata/type/Double.js +1 -1
- package/src/sap/ui/model/odata/type/Guid.js +1 -1
- package/src/sap/ui/model/odata/type/Int.js +1 -1
- package/src/sap/ui/model/odata/type/Int16.js +1 -1
- package/src/sap/ui/model/odata/type/Int32.js +1 -1
- package/src/sap/ui/model/odata/type/Int64.js +1 -1
- package/src/sap/ui/model/odata/type/ODataType.js +1 -1
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
|
@@ -47,17 +47,22 @@ sap.ui.define([
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
const rAllWhiteSpaces = /\s/g;
|
|
51
|
+
const rDigit = /\d/;
|
|
52
|
+
// Regex for checking if a number has leading zeros
|
|
53
|
+
const rLeadingZeros = /^(-?)0+(\d)/;
|
|
54
|
+
// Not matching Sc (currency symbol) and Z (separator) characters
|
|
55
|
+
// https://www.unicode.org/reports/tr44/#General_Category_Values
|
|
56
|
+
const rNotSAndNotZ = /[^\$\xA2-\xA5\u058F\u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u0E3F\u17DB\u20A0-\u20BD\uA838\uFDFC\uFE69\uFF04\uFFE0\uFFE1\uFFE5\uFFE6\u0020\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
|
|
57
|
+
// Regex for matching the number placeholder in pattern
|
|
58
|
+
const rNumPlaceHolder = /0+(\.0+)?/;
|
|
59
|
+
// Regex for checking that the given string only consists of '0' characters
|
|
60
|
+
const rOnlyZeros = /^0+$/;
|
|
61
|
+
// A regular expresssion that can be used to remove a leading "-" from a number representing zero,
|
|
62
|
+
// e.g. "-0", or "-0.00"; $1 contains the number without the leading "-"
|
|
63
|
+
const rRemoveMinusFromZero = /^-(0(?:.0+)?)$/;
|
|
64
|
+
// A regular expression that can be used to remove trailing zeros from a number
|
|
65
|
+
const rTrailingZeros = /0+$/;
|
|
61
66
|
|
|
62
67
|
/*
|
|
63
68
|
* Is used to validate existing grouping separators.
|
|
@@ -166,25 +171,154 @@ sap.ui.define([
|
|
|
166
171
|
return decimals;
|
|
167
172
|
};
|
|
168
173
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
174
|
+
/**
|
|
175
|
+
* Adds the summand given as a number to an decimal given as a string.
|
|
176
|
+
*
|
|
177
|
+
* @param {string} sDecimal A positive or negative decimal number as string
|
|
178
|
+
* @param {int} iSummand An integer between -9 and 9 to be added to the given decimal number
|
|
179
|
+
* @returns {string} The sum of the two numbers as a string
|
|
180
|
+
*
|
|
181
|
+
* @private
|
|
182
|
+
*/
|
|
183
|
+
NumberFormat.add = function (sDecimal, iSummand) {
|
|
184
|
+
const aParts = sDecimal.split(".");
|
|
185
|
+
let sInteger = aParts[0];
|
|
186
|
+
const sFractionPart = aParts[1];
|
|
187
|
+
const bNegative = sInteger[0] === "-";
|
|
188
|
+
if (bNegative) {
|
|
189
|
+
sInteger = sInteger.slice(1);
|
|
190
|
+
iSummand = -iSummand;
|
|
191
|
+
}
|
|
192
|
+
const aDigits = sInteger.split("").map(Number);
|
|
193
|
+
const iLastIndex = aDigits.length - 1;
|
|
194
|
+
aDigits[iLastIndex] += iSummand;
|
|
195
|
+
for (let i = iLastIndex; i >= 0; i -= 1) {
|
|
196
|
+
if (aDigits[i] >= 10) {
|
|
197
|
+
aDigits[i] = aDigits[i] % 10;
|
|
198
|
+
if (i === 0) {
|
|
199
|
+
aDigits.unshift(1);
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
aDigits[i - 1] += 1;
|
|
203
|
+
} else if (aDigits[i] < 0 && i > 0) {
|
|
204
|
+
aDigits[i] = 10 + aDigits[i];
|
|
205
|
+
aDigits[i - 1] -= 1;
|
|
206
|
+
if (i === 1 && aDigits[0] === 0) {
|
|
207
|
+
aDigits.shift();
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
} else {
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
if (bNegative) {
|
|
215
|
+
aDigits[0] = -aDigits[0];
|
|
216
|
+
}
|
|
217
|
+
let sResult = aDigits.join("");
|
|
218
|
+
if (!sFractionPart) {
|
|
219
|
+
return sResult;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// If sResult is 0, the sign may be lost and has to be restored, e.g. "-5.123" + 5 => -5 + 5 = 0 => "-0.123"
|
|
223
|
+
sResult = sResult === "0" && bNegative ? "-0" : sResult;
|
|
224
|
+
const sResultSign = sResult[0] === "-" ? "-" : "";
|
|
225
|
+
// If both signs are equal, the fraction part can simply be appended
|
|
226
|
+
if (bNegative === !!sResultSign) {
|
|
227
|
+
return sResult + "." + sFractionPart;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// If the signs are different, aDigits contains only one digit which is different from zero; to compute the
|
|
231
|
+
// result, the result sign has to be kept, the integer part is the absolute sResult reduced by one, and the
|
|
232
|
+
// fractional part is (1 - fractional part), e.g. "2.123" - 5 => 2 - 5 = -3 => sign = "-", integer part is
|
|
233
|
+
// |-3| - 1 = 2 and fractional part is 1 - 0.123 = 0.877 without the leading "0." => "-2.877"
|
|
234
|
+
const aFractionDigits = sFractionPart.split("").map(Number);
|
|
235
|
+
for (let i = aFractionDigits.length - 1; i >= 0; i -= 1) {
|
|
236
|
+
aFractionDigits[i] = 10 - aFractionDigits[i];
|
|
237
|
+
if (i > 0) {
|
|
238
|
+
aFractionDigits[i - 1] += 1;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return sResultSign + (Math.abs(aDigits[0]) - 1) + "." + aFractionDigits.join("");
|
|
183
242
|
};
|
|
184
|
-
|
|
185
|
-
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Rounds the given number up to the smallest integer greater than or equal to the given number.
|
|
246
|
+
*
|
|
247
|
+
* @param {number|string} vNumber
|
|
248
|
+
* The number to be rounded up; it has at least one digit in front of the decimal point in case of type "string"
|
|
249
|
+
* @returns {number|string}
|
|
250
|
+
* The smallest integer greater than or equal to the given number; the returned type is the same as the type of
|
|
251
|
+
* the given number
|
|
252
|
+
*/
|
|
253
|
+
function ceil(vNumber) {
|
|
254
|
+
if (typeof vNumber === "number") {
|
|
255
|
+
return Math.ceil(vNumber);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
const [sIntegerPart, sFractionPart = "0"] = vNumber.split(".");
|
|
259
|
+
return rOnlyZeros.test(sFractionPart) || sIntegerPart[0] === "-"
|
|
260
|
+
? sIntegerPart
|
|
261
|
+
: NumberFormat.add(sIntegerPart, 1);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Rounds the given number down to the largest integer less than or equal to the given number.
|
|
266
|
+
*
|
|
267
|
+
* @param {number|string} vNumber
|
|
268
|
+
* The number to be rounded down; it has at least one digit in front of the decimal point in case of type "string"
|
|
269
|
+
* @returns {number|string}
|
|
270
|
+
* The largest integer less than or equal to the given number; the returned type is the same as the type of the
|
|
271
|
+
* given number
|
|
272
|
+
*/
|
|
273
|
+
function floor(vNumber) {
|
|
274
|
+
if (typeof vNumber === "number") {
|
|
275
|
+
return Math.floor(vNumber);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const [sIntegerPart, sFractionPart = "0"] = vNumber.split(".");
|
|
279
|
+
return rOnlyZeros.test(sFractionPart) || sIntegerPart[0] !== "-"
|
|
280
|
+
? sIntegerPart
|
|
281
|
+
: NumberFormat.add(sIntegerPart, -1);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Adds 0.5 to or subtracts 0.5 from the given number.
|
|
286
|
+
*
|
|
287
|
+
* @param {number|string} vNumber
|
|
288
|
+
* The number to be increased or decreased by 0.5
|
|
289
|
+
* @param {boolean} bIncrease
|
|
290
|
+
* Whether to increase the number by 0.5; otherwise the number is decreased by 0.5
|
|
291
|
+
* @returns {number|string}
|
|
292
|
+
* The number increased or decreased by 0.5; the returned type is the same as the type of the given number
|
|
293
|
+
*/
|
|
294
|
+
function increaseOrDecreaseByHalf(vNumber, bIncrease) {
|
|
295
|
+
if (typeof vNumber === "number") {
|
|
296
|
+
return bIncrease ? vNumber + 0.5 : vNumber - 0.5;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
vNumber = NumberFormat._shiftDecimalPoint(vNumber, 1);
|
|
300
|
+
vNumber = NumberFormat.add(vNumber, bIncrease ? 5 : -5);
|
|
301
|
+
return NumberFormat._shiftDecimalPoint(vNumber, -1);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
const mRoundingFunction = {
|
|
305
|
+
[mRoundingMode.FLOOR]: floor,
|
|
306
|
+
[mRoundingMode.CEILING]: ceil,
|
|
307
|
+
[mRoundingMode.TOWARDS_ZERO]: (vNumber) => (vNumber > 0 ? floor(vNumber) : ceil(vNumber)),
|
|
308
|
+
[mRoundingMode.AWAY_FROM_ZERO]: (vNumber) => (vNumber > 0 ? ceil(vNumber) : floor(vNumber)),
|
|
309
|
+
[mRoundingMode.HALF_TOWARDS_ZERO]: (vNumber) => {
|
|
310
|
+
const bPositive = vNumber > 0;
|
|
311
|
+
vNumber = increaseOrDecreaseByHalf(vNumber, !bPositive);
|
|
312
|
+
return bPositive ? ceil(vNumber) : floor(vNumber);
|
|
313
|
+
},
|
|
314
|
+
[mRoundingMode.HALF_AWAY_FROM_ZERO]: (vNumber) => {
|
|
315
|
+
const bPositive = vNumber > 0;
|
|
316
|
+
vNumber = increaseOrDecreaseByHalf(vNumber, bPositive);
|
|
317
|
+
return bPositive ? floor(vNumber) : ceil(vNumber);
|
|
318
|
+
},
|
|
319
|
+
[mRoundingMode.HALF_FLOOR]: (vNumber) => ceil(increaseOrDecreaseByHalf(vNumber, false)),
|
|
320
|
+
[mRoundingMode.HALF_CEILING]: (vNumber) => floor(increaseOrDecreaseByHalf(vNumber, true))
|
|
186
321
|
};
|
|
187
|
-
mRoundingFunction[mRoundingMode.HALF_CEILING] = Math.round;
|
|
188
322
|
|
|
189
323
|
NumberFormat.RoundingMode = mRoundingMode;
|
|
190
324
|
|
|
@@ -410,12 +544,14 @@ sap.ui.define([
|
|
|
410
544
|
* <code>maxFractionDigits</code> format option allows.
|
|
411
545
|
* If decimals are not preserved, the formatted number is rounded to <code>maxFractionDigits</code>.
|
|
412
546
|
* @param {sap.ui.core.format.NumberFormat.RoundingMode} [oFormatOptions.roundingMode=HALF_AWAY_FROM_ZERO]
|
|
413
|
-
*
|
|
414
|
-
* defined by
|
|
547
|
+
* Specifies the rounding behavior for discarding the digits after the maximum fraction digits
|
|
548
|
+
* defined by <code>maxFractionDigits</code>.
|
|
415
549
|
* This can be assigned
|
|
416
550
|
* <ul>
|
|
417
551
|
* <li>by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode},</li>
|
|
418
|
-
* <li>via a function that is used for rounding the number and takes two parameters: the number itself, and the
|
|
552
|
+
* <li>via a function that is used for rounding the number and takes two parameters: the number itself, and the
|
|
553
|
+
* number of decimal digits that should be reserved. <b>Using a function is deprecated since 1.120</b>;
|
|
554
|
+
* string based numbers are not rounded via this custom function.</li>
|
|
419
555
|
* </ul>
|
|
420
556
|
* @param {int} [oFormatOptions.shortDecimals] defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' options is used
|
|
421
557
|
* @param {int} [oFormatOptions.shortLimit] only use short number formatting for values above this limit
|
|
@@ -508,12 +644,14 @@ sap.ui.define([
|
|
|
508
644
|
* <code>maxFractionDigits</code> format option allows.
|
|
509
645
|
* If decimals are not preserved, the formatted number is rounded to <code>maxFractionDigits</code>.
|
|
510
646
|
* @param {sap.ui.core.format.NumberFormat.RoundingMode} [oFormatOptions.roundingMode=TOWARDS_ZERO]
|
|
511
|
-
*
|
|
512
|
-
* defined by
|
|
647
|
+
* Specifies the rounding behavior for discarding the digits after the maximum fraction digits
|
|
648
|
+
* defined by <code>maxFractionDigits</code>.
|
|
513
649
|
* This can be assigned
|
|
514
650
|
* <ul>
|
|
515
651
|
* <li>by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode},</li>
|
|
516
|
-
* <li>via a function that is used for rounding the number and takes two parameters: the number itself, and the
|
|
652
|
+
* <li>via a function that is used for rounding the number and takes two parameters: the number itself, and the
|
|
653
|
+
* number of decimal digits that should be reserved. <b>Using a function is deprecated since 1.120</b>;
|
|
654
|
+
* string based numbers are not rounded via this custom function.</li>
|
|
517
655
|
* </ul>
|
|
518
656
|
* @param {int} [oFormatOptions.shortDecimals] defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' options is used
|
|
519
657
|
* @param {int} [oFormatOptions.shortLimit] only use short number formatting for values above this limit
|
|
@@ -647,12 +785,14 @@ sap.ui.define([
|
|
|
647
785
|
* <code>maxFractionDigits</code> format option allows.
|
|
648
786
|
* If decimals are not preserved, the formatted number is rounded to <code>maxFractionDigits</code>.
|
|
649
787
|
* @param {sap.ui.core.format.NumberFormat.RoundingMode} [oFormatOptions.roundingMode=HALF_AWAY_FROM_ZERO]
|
|
650
|
-
*
|
|
651
|
-
* defined by
|
|
788
|
+
* Specifies the rounding behavior for discarding the digits after the maximum fraction digits
|
|
789
|
+
* defined by <code>maxFractionDigits</code>.
|
|
652
790
|
* This can be assigned
|
|
653
791
|
* <ul>
|
|
654
792
|
* <li>by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode},</li>
|
|
655
|
-
* <li>via a function that is used for rounding the number and takes two parameters: the number itself, and the
|
|
793
|
+
* <li>via a function that is used for rounding the number and takes two parameters: the number itself, and the
|
|
794
|
+
* number of decimal digits that should be reserved. <b>Using a function is deprecated since 1.120</b>;
|
|
795
|
+
* string based numbers are not rounded via this custom function.</li>
|
|
656
796
|
* </ul>
|
|
657
797
|
* @param {int} [oFormatOptions.shortDecimals] defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' options is used
|
|
658
798
|
* @param {int} [oFormatOptions.shortLimit] only use short number formatting for values above this limit
|
|
@@ -781,12 +921,14 @@ sap.ui.define([
|
|
|
781
921
|
* <code>maxFractionDigits</code> format option allows.
|
|
782
922
|
* If decimals are not preserved, the formatted number is rounded to <code>maxFractionDigits</code>.
|
|
783
923
|
* @param {sap.ui.core.format.NumberFormat.RoundingMode} [oFormatOptions.roundingMode=HALF_AWAY_FROM_ZERO]
|
|
784
|
-
*
|
|
785
|
-
* defined by
|
|
924
|
+
* Specifies the rounding behavior for discarding the digits after the maximum fraction digits
|
|
925
|
+
* defined by <code>maxFractionDigits</code>.
|
|
786
926
|
* This can be assigned
|
|
787
927
|
* <ul>
|
|
788
928
|
* <li>by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode},</li>
|
|
789
|
-
* <li>via a function that is used for rounding the number and takes two parameters: the number itself, and the
|
|
929
|
+
* <li>via a function that is used for rounding the number and takes two parameters: the number itself, and the
|
|
930
|
+
* number of decimal digits that should be reserved. <b>Using a function is deprecated since 1.120</b>;
|
|
931
|
+
* string based numbers are not rounded via this custom function.</li>
|
|
790
932
|
* </ul>
|
|
791
933
|
* @param {int} [oFormatOptions.shortDecimals] defines the number of decimals in the shortened
|
|
792
934
|
* format string. If this option isn't specified, the 'decimals' option is used instead.
|
|
@@ -884,12 +1026,14 @@ sap.ui.define([
|
|
|
884
1026
|
* <code>maxFractionDigits</code> format option allows.
|
|
885
1027
|
* If decimals are not preserved, the formatted number is rounded to <code>maxFractionDigits</code>.
|
|
886
1028
|
* @param {sap.ui.core.format.NumberFormat.RoundingMode} [oFormatOptions.roundingMode=HALF_AWAY_FROM_ZERO]
|
|
887
|
-
*
|
|
888
|
-
* defined by
|
|
1029
|
+
* Specifies the rounding behavior for discarding the digits after the maximum fraction digits
|
|
1030
|
+
* defined by <code>maxFractionDigits</code>.
|
|
889
1031
|
* This can be assigned
|
|
890
1032
|
* <ul>
|
|
891
1033
|
* <li>by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode},</li>
|
|
892
|
-
* <li>via a function that is used for rounding the number and takes two parameters: the number itself, and the
|
|
1034
|
+
* <li>via a function that is used for rounding the number and takes two parameters: the number itself, and the
|
|
1035
|
+
* number of decimal digits that should be reserved. <b>Using a function is deprecated since 1.120</b>;
|
|
1036
|
+
* string based numbers are not rounded via this custom function.</li>
|
|
893
1037
|
* </ul>
|
|
894
1038
|
* @param {int} [oFormatOptions.shortDecimals] defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' options is used
|
|
895
1039
|
* @param {int} [oFormatOptions.shortLimit] only use short number formatting for values above this limit
|
|
@@ -1467,7 +1611,8 @@ sap.ui.define([
|
|
|
1467
1611
|
// If the number of fraction digits are equal or less than oOptions.maxFractionDigits, the
|
|
1468
1612
|
// number isn't changed. After this operation, the number of fraction digits is
|
|
1469
1613
|
// equal or less than oOptions.maxFractionDigits.
|
|
1470
|
-
if (typeof vValue === "number" &&
|
|
1614
|
+
if ((typeof vValue === "number" || typeof vValue === "string" && typeof oOptions.roundingMode !== "function")
|
|
1615
|
+
&& !oOptions.preserveDecimals) {
|
|
1471
1616
|
vValue = rounding(vValue, oOptions.maxFractionDigits, oOptions.roundingMode);
|
|
1472
1617
|
}
|
|
1473
1618
|
|
|
@@ -2088,10 +2233,22 @@ sap.ui.define([
|
|
|
2088
2233
|
}
|
|
2089
2234
|
};
|
|
2090
2235
|
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2236
|
+
/**
|
|
2237
|
+
* Moves the decimal seperator of the given number by the given steps to the right or left.
|
|
2238
|
+
*
|
|
2239
|
+
* @param {number|string} vValue
|
|
2240
|
+
* The number
|
|
2241
|
+
* @param {int} iStep
|
|
2242
|
+
* The number of decimal places to shift the "."; positive values shift to the right, negative values shift to the
|
|
2243
|
+
* left
|
|
2244
|
+
* @param {boolean} bNormalize
|
|
2245
|
+
* Whether the result is normalized if <code>vValue</code> is of type "string"; that means whether trailing zeros
|
|
2246
|
+
* are removed and whether scientific notation is resolved to a decimal string without exponent
|
|
2247
|
+
* @returns {number|string|null}
|
|
2248
|
+
* The number with shifted decimal point; or <code>null</code> if the given value is neither of type "number", nor
|
|
2249
|
+
* of type "string"
|
|
2250
|
+
*/
|
|
2251
|
+
NumberFormat._shiftDecimalPoint = function(vValue, iStep, bNormalize) {
|
|
2095
2252
|
var sMinus = "";
|
|
2096
2253
|
var aExpParts = vValue.toString().toLowerCase().split("e");
|
|
2097
2254
|
|
|
@@ -2104,7 +2261,7 @@ sap.ui.define([
|
|
|
2104
2261
|
|
|
2105
2262
|
return +(aExpParts[0] + "e" + iStep);
|
|
2106
2263
|
} else if (typeof vValue === "string") {
|
|
2107
|
-
if (parseFloat(vValue) === 0 && iStep >= 0) {
|
|
2264
|
+
if (!bNormalize && parseFloat(vValue) === 0 && iStep >= 0) {
|
|
2108
2265
|
// input "00000" should become "0"
|
|
2109
2266
|
// input "000.000" should become "0.000" to keep precision of decimals
|
|
2110
2267
|
// input "1e-1337" should remain "1e-1337" in order to keep the precision
|
|
@@ -2116,7 +2273,7 @@ sap.ui.define([
|
|
|
2116
2273
|
var sFirstChar = aExpParts[0].charAt(0);
|
|
2117
2274
|
sMinus = sFirstChar === "-" ? sFirstChar : "";
|
|
2118
2275
|
|
|
2119
|
-
if (sMinus) {
|
|
2276
|
+
if (sMinus || sFirstChar === "+") {
|
|
2120
2277
|
aExpParts[0] = aExpParts[0].slice(1);
|
|
2121
2278
|
}
|
|
2122
2279
|
|
|
@@ -2155,9 +2312,11 @@ sap.ui.define([
|
|
|
2155
2312
|
|
|
2156
2313
|
sInt = vValue.substring(0, iAfterMovePos);
|
|
2157
2314
|
sDecimal = vValue.substring(iAfterMovePos);
|
|
2158
|
-
|
|
2159
2315
|
// remove unnecessary leading zeros
|
|
2160
2316
|
sInt = sInt.replace(rLeadingZeros, "$1$2");
|
|
2317
|
+
if (bNormalize) {
|
|
2318
|
+
sDecimal = sDecimal.replace(rTrailingZeros, "");
|
|
2319
|
+
}
|
|
2161
2320
|
|
|
2162
2321
|
return sMinus + sInt + (sDecimal ? ("." + sDecimal) : "");
|
|
2163
2322
|
} else {
|
|
@@ -2640,54 +2799,63 @@ sap.ui.define([
|
|
|
2640
2799
|
return iInt;
|
|
2641
2800
|
}
|
|
2642
2801
|
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2802
|
+
/**
|
|
2803
|
+
* Rounds the given value by the given number of fraction digits based on the given rounding mode.
|
|
2804
|
+
*
|
|
2805
|
+
* @param {number|string} vValue
|
|
2806
|
+
* The number to be rounded, may be a string or a number; has to be of type number if a custom rounding function
|
|
2807
|
+
* is used
|
|
2808
|
+
* @param {int|string} iMaxFractionDigits
|
|
2809
|
+
* The maximum number of fraction digits
|
|
2810
|
+
* @param {sap.ui.core.format.NumberFormat.RoundingMode|function(number,int):number} vRoundingMode
|
|
2811
|
+
* The rounding mode or a custom function for rounding which is called with the number and the number of decimal
|
|
2812
|
+
* digits that should be reserved; <b>using a function is deprecated since 1.120</b>; string based numbers are
|
|
2813
|
+
* not rounded via this custom function.
|
|
2814
|
+
* @returns {number|string}
|
|
2815
|
+
* The rounded value; the returned type is the same as the type of the given <code>vValue</code>
|
|
2816
|
+
*/
|
|
2817
|
+
function rounding(vValue, iMaxFractionDigits, vRoundingMode) {
|
|
2818
|
+
vRoundingMode = vRoundingMode || NumberFormat.RoundingMode.HALF_AWAY_FROM_ZERO;
|
|
2649
2819
|
iMaxFractionDigits = parseInt(iMaxFractionDigits);
|
|
2650
2820
|
|
|
2651
2821
|
// only round if it is required (number of fraction digits is bigger than the maxFractionDigits option)
|
|
2652
|
-
var sValue = "" +
|
|
2822
|
+
var sValue = "" + vValue;
|
|
2653
2823
|
if (!isScientificNotation(sValue)) {
|
|
2654
2824
|
var iIndexOfPoint = sValue.indexOf(".");
|
|
2655
2825
|
if (iIndexOfPoint < 0) {
|
|
2656
|
-
return
|
|
2826
|
+
return vValue;
|
|
2657
2827
|
}
|
|
2658
2828
|
if (sValue.substring(iIndexOfPoint + 1).length <= iMaxFractionDigits) {
|
|
2659
|
-
|
|
2829
|
+
if (typeof vValue === "string") {
|
|
2830
|
+
vValue = NumberFormat._shiftDecimalPoint(vValue, 0, true);
|
|
2831
|
+
}
|
|
2832
|
+
return vValue;
|
|
2660
2833
|
}
|
|
2661
2834
|
}
|
|
2662
2835
|
|
|
2663
|
-
if (typeof
|
|
2836
|
+
if (typeof vRoundingMode === "function") {
|
|
2664
2837
|
// Support custom function for rounding the number
|
|
2665
|
-
|
|
2838
|
+
vValue = vRoundingMode(vValue, iMaxFractionDigits);
|
|
2666
2839
|
} else {
|
|
2667
2840
|
// The NumberFormat.RoundingMode had all values in lower case before and later changed all values to upper case
|
|
2668
2841
|
// to match the key according to the UI5 guideline for defining enum. Therefore it's needed to support both
|
|
2669
2842
|
// lower and upper cases. Here checks whether the value has only lower case letters and converts it all to upper
|
|
2670
2843
|
// case if so.
|
|
2671
|
-
if (
|
|
2672
|
-
|
|
2844
|
+
if (vRoundingMode.match(/^[a-z_]+$/)) {
|
|
2845
|
+
vRoundingMode = vRoundingMode.toUpperCase();
|
|
2673
2846
|
}
|
|
2674
2847
|
|
|
2675
|
-
|
|
2676
|
-
|
|
2848
|
+
// 1. Move the decimal point to right by maxFactionDigits; e.g. 1.005 with maxFractionDigits 2 => 100.5
|
|
2849
|
+
vValue = NumberFormat._shiftDecimalPoint(vValue, iMaxFractionDigits, true);
|
|
2850
|
+
// 2. Use the rounding function to round the first digit after decimal point; e.g. ceil(100.5) => 101
|
|
2851
|
+
vValue = mRoundingFunction[vRoundingMode](vValue);
|
|
2852
|
+
// 3. Finally move the decimal point back to the original position; e.g. by 2 digits => 1.01
|
|
2853
|
+
vValue = NumberFormat._shiftDecimalPoint(vValue, -iMaxFractionDigits, true);
|
|
2854
|
+
if (typeof vValue === "string") {
|
|
2855
|
+
vValue = vValue.replace(rRemoveMinusFromZero, "$1");
|
|
2677
2856
|
}
|
|
2678
|
-
|
|
2679
|
-
// First move the decimal point towards right by maxFactionDigits
|
|
2680
|
-
// Then using the rounding function to round the first digit after decimal point
|
|
2681
|
-
// In the end, move the decimal point back to the original position
|
|
2682
|
-
//
|
|
2683
|
-
// For example rounding 1.005 by maxFractionDigits 2
|
|
2684
|
-
// 1. Move the decimal point to right by 2 digits, result 100.5
|
|
2685
|
-
// 2. Using the round function, for example, Math.round(100.5) = 101
|
|
2686
|
-
// 3. Move the decimal point back by 2 digits, result 1.01
|
|
2687
|
-
fValue = NumberFormat._shiftDecimalPoint(mRoundingFunction[sRoundingMode](NumberFormat._shiftDecimalPoint(fValue, iMaxFractionDigits)), -iMaxFractionDigits);
|
|
2688
2857
|
}
|
|
2689
|
-
|
|
2690
|
-
return fValue;
|
|
2858
|
+
return vValue;
|
|
2691
2859
|
}
|
|
2692
2860
|
|
|
2693
2861
|
function quote(sRegex) {
|
|
@@ -400,7 +400,7 @@ sap.ui.define([
|
|
|
400
400
|
* @see {@link topic:6322164936f047de941ec522b95d7b70 Hyphenation for Text Controls}
|
|
401
401
|
* @extends sap.ui.base.ManagedObject
|
|
402
402
|
* @author SAP SE
|
|
403
|
-
* @version 1.120.
|
|
403
|
+
* @version 1.120.36
|
|
404
404
|
* @hideconstructor
|
|
405
405
|
* @public
|
|
406
406
|
* @since 1.60
|
|
@@ -26,13 +26,13 @@ sap.ui.define([
|
|
|
26
26
|
* @namespace
|
|
27
27
|
* @alias sap.ui.core
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.120.
|
|
29
|
+
* @version 1.120.36
|
|
30
30
|
* @since 0.8
|
|
31
31
|
* @public
|
|
32
32
|
*/
|
|
33
33
|
var thisLib = Library.init({
|
|
34
34
|
name: "sap.ui.core",
|
|
35
|
-
version: "1.120.
|
|
35
|
+
version: "1.120.36",
|
|
36
36
|
designtime: "sap/ui/core/designtime/library.designtime",
|
|
37
37
|
// "apiVersion" is still WIP and in 1.120 restricted to the sap.ui.core library only!
|
|
38
38
|
// TODO: Remove spread operator once UI5 Tooling can validate this new property
|
|
@@ -1630,7 +1630,7 @@ sap.ui.define([
|
|
|
1630
1630
|
/**
|
|
1631
1631
|
* Sort order of a column.
|
|
1632
1632
|
*
|
|
1633
|
-
* @version 1.120.
|
|
1633
|
+
* @version 1.120.36
|
|
1634
1634
|
* @enum {string}
|
|
1635
1635
|
* @public
|
|
1636
1636
|
* @since 1.61.0
|
|
@@ -29,7 +29,7 @@ sap.ui.define(['sap/ui/core/Element', 'sap/ui/core/message/MessageProcessor'],
|
|
|
29
29
|
* @extends sap.ui.core.message.MessageProcessor
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.120.
|
|
32
|
+
* @version 1.120.36
|
|
33
33
|
*
|
|
34
34
|
* @public
|
|
35
35
|
* @alias sap.ui.core.message.ControlMessageProcessor
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.base.Object
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.120.
|
|
38
|
+
* @version 1.120.36
|
|
39
39
|
*
|
|
40
40
|
* @param {object} [mParameters] a map which contains the following parameter properties:
|
|
41
41
|
* @param {string} [mParameters.id] The message id: will be generated if no id is set
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
SAPUI5_FRIDAY=Friday
|
|
3
3
|
SAPUI5_GM_ZSTEP=Zoom step {0}
|
|
4
4
|
|
|
5
|
-
VALUE_STATE_ERROR=Virheellinen sy\u00F6tt\u00F6
|
|
5
|
+
VALUE_STATE_ERROR=Virheellinen sy\u00F6tt\u00F6'
|
|
6
6
|
VALUE_STATE_WARNING=Varoitus tulostettu
|
|
7
7
|
VALUE_STATE_SUCCESS=Merkinn\u00E4n validointi onnistui
|
|
8
8
|
VALUE_STATE_INFORMATION=Informatiivinen merkint\u00E4
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @param {object} [mSettings] initial settings for the new control
|
|
28
28
|
*
|
|
29
29
|
* @extends sap.ui.core.mvc.View
|
|
30
|
-
* @version 1.120.
|
|
30
|
+
* @version 1.120.36
|
|
31
31
|
* @deprecated Since 1.90. Instead use {@link topic:e6bb33d076dc4f23be50c082c271b9f0 Typed Views}
|
|
32
32
|
* by defining the view class with {@link sap.ui.core.mvc.View.extend View.extend} and
|
|
33
33
|
* creating the view instances with {@link sap.ui.core.mvc.View.create View.create}.
|
|
@@ -29,7 +29,7 @@ function(View, TemplateViewRenderer, ViewType, Log) {
|
|
|
29
29
|
* @extends sap.ui.core.mvc.View
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.120.
|
|
32
|
+
* @version 1.120.36
|
|
33
33
|
*
|
|
34
34
|
* @public
|
|
35
35
|
* @deprecated Since version 1.56.0, use {@link sap.ui.core.mvc.XMLView} in combination with
|
|
@@ -110,7 +110,7 @@ sap.ui.define([
|
|
|
110
110
|
* bound content aggregation. An error will be thrown when the above combination is detected.
|
|
111
111
|
*
|
|
112
112
|
* @extends sap.ui.core.mvc.View
|
|
113
|
-
* @version 1.120.
|
|
113
|
+
* @version 1.120.36
|
|
114
114
|
*
|
|
115
115
|
* @public
|
|
116
116
|
* @alias sap.ui.core.mvc.XMLView
|