@ui5/webcomponents-localization 2.0.1 → 2.1.0-rc.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/CHANGELOG.md +8 -0
- package/dist/sap/base/Event.js +1 -1
- package/dist/sap/base/Eventing.js +1 -1
- package/dist/sap/base/i18n/Formatting.js +18 -15
- package/dist/sap/base/i18n/LanguageTag.js +1 -1
- package/dist/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/dist/sap/ui/base/Metadata.js +1 -1
- package/dist/sap/ui/base/Object.js +1 -1
- package/dist/sap/ui/core/Locale.js +1 -1
- package/dist/sap/ui/core/LocaleData.js +1 -1
- package/dist/sap/ui/core/date/UI5Date.js +1 -1
- package/dist/sap/ui/core/format/DateFormat.js +3 -3
- package/dist/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [2.1.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.0.1...v2.1.0-rc.0) (2024-07-11)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @ui5/webcomponents-localization
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
6
14
|
## [2.0.1](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0...v2.0.1) (2024-07-05)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @ui5/webcomponents-localization
|
package/dist/sap/base/Event.js
CHANGED
@@ -9,7 +9,7 @@ const EVENT_PARAMETERS_SYMBOL = Symbol("parameters");
|
|
9
9
|
|
10
10
|
/**
|
11
11
|
* @author SAP SE
|
12
|
-
* @version 1.120.
|
12
|
+
* @version 1.120.17
|
13
13
|
*
|
14
14
|
* Creates an event with the given <code>sType</code>,
|
15
15
|
* linked to the provided <code>oTarget</code> and enriched with the <code>oParameters</code>.
|
@@ -172,7 +172,8 @@ function createLanguageTag(vLanguageTag) {
|
|
172
172
|
const Formatting = {
|
173
173
|
/**
|
174
174
|
* The <code>change</code> event is fired, when the configuration options are changed.
|
175
|
-
* For the event parameters please refer to {@link module:sap/base/i18n/Formatting$ChangeEvent
|
175
|
+
* For the event parameters please refer to {@link module:sap/base/i18n/Formatting$ChangeEvent
|
176
|
+
* Formatting$ChangeEvent}.
|
176
177
|
*
|
177
178
|
* @name module:sap/base/i18n/Formatting.change
|
178
179
|
* @event
|
@@ -538,11 +539,11 @@ const Formatting = {
|
|
538
539
|
*
|
539
540
|
* If a pattern is defined, it will be preferred over patterns derived from the current locale.
|
540
541
|
*
|
541
|
-
* See class {@link sap.ui.core.format.DateFormat} for details about the pattern syntax.
|
542
|
+
* See class {@link sap.ui.core.format.DateFormat DateFormat} for details about the pattern syntax.
|
542
543
|
*
|
543
544
|
* After changing the date pattern, the framework tries to update localization
|
544
|
-
* specific parts of the UI. See the documentation of {@link module:sap/base/i18n/Localization.setLanguage
|
545
|
-
* for details and restrictions.
|
545
|
+
* specific parts of the UI. See the documentation of {@link module:sap/base/i18n/Localization.setLanguage
|
546
|
+
* Localization.setLanguage()} for details and restrictions.
|
546
547
|
*
|
547
548
|
* @param {"short"|"medium"|"long"|"full"} sStyle must be one of short, medium, long or full.
|
548
549
|
* @param {string} sPattern the format pattern to be used in LDML syntax.
|
@@ -571,7 +572,7 @@ const Formatting = {
|
|
571
572
|
*
|
572
573
|
* If a pattern is defined, it will be preferred over patterns derived from the current locale.
|
573
574
|
*
|
574
|
-
* See class {@link sap.ui.core.format.DateFormat} for details about the pattern syntax.
|
575
|
+
* See class {@link sap.ui.core.format.DateFormat DateFormat} for details about the pattern syntax.
|
575
576
|
*
|
576
577
|
* After changing the time pattern, the framework tries to update localization
|
577
578
|
* specific parts of the UI. See the documentation of
|
@@ -614,7 +615,7 @@ const Formatting = {
|
|
614
615
|
*
|
615
616
|
* If a symbol is defined, it will be preferred over symbols derived from the current locale.
|
616
617
|
*
|
617
|
-
* See class {@link sap.ui.core.format.NumberFormat} for details about the symbols.
|
618
|
+
* See class {@link sap.ui.core.format.NumberFormat NumberFormat} for details about the symbols.
|
618
619
|
*
|
619
620
|
* After changing the number symbol, the framework tries to update localization
|
620
621
|
* specific parts of the UI. See the documentation of
|
@@ -642,8 +643,8 @@ const Formatting = {
|
|
642
643
|
* @returns {object} the mapping between custom currencies and its digits
|
643
644
|
* @public
|
644
645
|
* @since 1.120
|
645
|
-
* @see {@link module:sap/base/i18n/Formatting.setCustomCurrencies}
|
646
|
-
* @see {@link module:sap/base/i18n/Formatting.addCustomCurrencies}
|
646
|
+
* @see {@link module:sap/base/i18n/Formatting.setCustomCurrencies Formatting.setCustomCurrencies}
|
647
|
+
* @see {@link module:sap/base/i18n/Formatting.addCustomCurrencies Formatting.addCustomCurrencies}
|
647
648
|
*/
|
648
649
|
getCustomCurrencies() {
|
649
650
|
return mSettings["currency"];
|
@@ -681,7 +682,7 @@ const Formatting = {
|
|
681
682
|
* @public
|
682
683
|
* @since 1.120
|
683
684
|
* @param {object} mCurrencies currency map which is set
|
684
|
-
* @see {@link module:sap/base/i18n/Formatting.addCustomCurrencies}
|
685
|
+
* @see {@link module:sap/base/i18n/Formatting.addCustomCurrencies Formatting.addCustomCurrencies}
|
685
686
|
*/
|
686
687
|
setCustomCurrencies(mCurrencies) {
|
687
688
|
check(typeof mCurrencies === "object" || mCurrencies == null, "mCurrencyDigits must be an object");
|
@@ -704,7 +705,7 @@ const Formatting = {
|
|
704
705
|
* @public
|
705
706
|
* @since 1.120
|
706
707
|
* @param {object} mCurrencies adds to the currency map
|
707
|
-
* @see {@link module:sap/base/i18n/Formatting.setCustomCurrencies}
|
708
|
+
* @see {@link module:sap/base/i18n/Formatting.setCustomCurrencies Formatting.setCustomCurrencies}
|
708
709
|
*/
|
709
710
|
addCustomCurrencies(mCurrencies) {
|
710
711
|
// add custom units, or remove the existing ones if none are given
|
@@ -944,8 +945,8 @@ const Formatting = {
|
|
944
945
|
* When set to <code>false</code> the placement of the currency code is done dynamically, depending on the
|
945
946
|
* configured locale using data provided by the Unicode Common Locale Data Repository (CLDR).
|
946
947
|
*
|
947
|
-
* Each currency instance ({@link sap.ui.core.format.NumberFormat.getCurrencyInstance
|
948
|
-
* with this setting unless overwritten on instance level.
|
948
|
+
* Each currency instance ({@link sap.ui.core.format.NumberFormat.getCurrencyInstance
|
949
|
+
* NumberFormat.getCurrencyInstance}) will be created with this setting unless overwritten on instance level.
|
949
950
|
*
|
950
951
|
* @param {boolean} bTrailingCurrencyCode Whether currency codes shall always be placed after the numeric value
|
951
952
|
* @public
|
@@ -984,7 +985,8 @@ const Formatting = {
|
|
984
985
|
},
|
985
986
|
/**
|
986
987
|
* Returns the calendar week numbering algorithm used to determine the first day of the week
|
987
|
-
* and the first calendar week of the year, see {@link module:sap/base/i18n/
|
988
|
+
* and the first calendar week of the year, see {@link module:sap/base/i18n/date/CalendarWeekNumbering
|
989
|
+
* CalendarWeekNumbering}.
|
988
990
|
*
|
989
991
|
* @returns {module:sap/base/i18n/date/CalendarWeekNumbering} The calendar week numbering algorithm
|
990
992
|
*
|
@@ -1007,13 +1009,14 @@ const Formatting = {
|
|
1007
1009
|
},
|
1008
1010
|
/**
|
1009
1011
|
* Sets the calendar week numbering algorithm which is used to determine the first day of the week
|
1010
|
-
* and the first calendar week of the year, see {@link module:sap/base/i18n/date/CalendarWeekNumbering
|
1012
|
+
* and the first calendar week of the year, see {@link module:sap/base/i18n/date/CalendarWeekNumbering
|
1013
|
+
* CalendarWeekNumbering}.
|
1011
1014
|
*
|
1012
1015
|
* @param {module:sap/base/i18n/date/CalendarWeekNumbering} sCalendarWeekNumbering
|
1013
1016
|
* The calendar week numbering algorithm
|
1014
1017
|
* @throws {TypeError}
|
1015
1018
|
* If <code>sCalendarWeekNumbering</code> is not a valid calendar week numbering algorithm,
|
1016
|
-
* defined in {@link module:sap/base/i18n/date/CalendarWeekNumbering}
|
1019
|
+
* defined in {@link module:sap/base/i18n/date/CalendarWeekNumbering CalendarWeekNumbering}
|
1017
1020
|
*
|
1018
1021
|
* @public
|
1019
1022
|
* @since 1.120
|
@@ -31,7 +31,7 @@ var rLanguageTag = /^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-(
|
|
31
31
|
* @param {string} sLanguageTag the language tag identifier, in format en-US or en_US.
|
32
32
|
*
|
33
33
|
* @author SAP SE
|
34
|
-
* @version 1.120.
|
34
|
+
* @version 1.120.17
|
35
35
|
* @public
|
36
36
|
* @alias module:sap/base/i18n/LanguageTag
|
37
37
|
*/
|
@@ -21,7 +21,7 @@ import Log from "../../base/Log.js";
|
|
21
21
|
* @class Base class for all SAPUI5 Objects.
|
22
22
|
* @abstract
|
23
23
|
* @author Malte Wedel
|
24
|
-
* @version 1.120.
|
24
|
+
* @version 1.120.17
|
25
25
|
* @public
|
26
26
|
* @alias sap.ui.base.Object
|
27
27
|
* @throws {Error} When an instance of the class or its subclasses is created without the <code>new</code> operator.
|
@@ -64,7 +64,7 @@ function addLeadingZeros(iValue, iLength) {
|
|
64
64
|
* @hideconstructor
|
65
65
|
* @public
|
66
66
|
* @since 1.111.0
|
67
|
-
* @version 1.120.
|
67
|
+
* @version 1.120.17
|
68
68
|
*/
|
69
69
|
function UI5Date(vDateParts, sTimezoneID) {
|
70
70
|
var oDateInstance = UI5Date._createDateInstance(vDateParts);
|
@@ -2596,9 +2596,9 @@ var fnCreateDate = function (oDateValue, sCalendarType, bUTC, bStrict, sTimezone
|
|
2596
2596
|
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
2597
2597
|
oDate = UniversalDate.getInstance(new Date(0), sCalendarType);
|
2598
2598
|
oDate.setUTCEra(oDateValue.era || UniversalDate.getCurrentEra(sCalendarType));
|
2599
|
-
|
2600
|
-
|
2601
|
-
oDate.
|
2599
|
+
// Set parsed year, month and day in one call to avoid calculation issues when converting the calendar specific
|
2600
|
+
// date into a Gregorian date.
|
2601
|
+
oDate.setUTCFullYear(iYear, oDateValue.month || 0, oDateValue.day || 1);
|
2602
2602
|
oDate.setUTCHours(oDateValue.hour || 0);
|
2603
2603
|
oDate.setUTCMinutes(oDateValue.minute || 0);
|
2604
2604
|
oDate.setUTCSeconds(oDateValue.second || 0);
|
@@ -8,7 +8,7 @@ import TimezoneUtils from "../../../base/i18n/date/TimezoneUtils.js";
|
|
8
8
|
* Static collection of utility functions to handle time zone related conversions
|
9
9
|
*
|
10
10
|
* @author SAP SE
|
11
|
-
* @version 1.120.
|
11
|
+
* @version 1.120.17
|
12
12
|
* @namespace
|
13
13
|
* @name module:sap/ui/core/format/TimezoneUtils
|
14
14
|
* @private
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-localization",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.1.0-rc.0",
|
4
4
|
"description": "Localization for UI5 Web Components",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -32,8 +32,8 @@
|
|
32
32
|
"@babel/core": "^7.23.7",
|
33
33
|
"@babel/generator": "^7.23.6",
|
34
34
|
"@babel/parser": "^7.23.6",
|
35
|
-
"@openui5/sap.ui.core": "1.120.
|
36
|
-
"@ui5/webcomponents-tools": "2.0.
|
35
|
+
"@openui5/sap.ui.core": "1.120.17",
|
36
|
+
"@ui5/webcomponents-tools": "2.1.0-rc.0",
|
37
37
|
"babel-plugin-amd-to-esm": "^2.0.3",
|
38
38
|
"chromedriver": "^125.0.0",
|
39
39
|
"estree-walk": "^2.2.0",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
44
|
"@types/openui5": "^1.113.0",
|
45
|
-
"@ui5/webcomponents-base": "2.0.
|
45
|
+
"@ui5/webcomponents-base": "2.1.0-rc.0"
|
46
46
|
},
|
47
|
-
"gitHead": "
|
47
|
+
"gitHead": "1576c9b11cf85e71b417885e6a710420a15a2617"
|
48
48
|
}
|